* sysdeps/unix/sysv/linux/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]:
[glibc.git] / ChangeLog
blob75a632710ab31b850b0a347aa8c0febe84ab36d1
1 2002-09-29  Roland McGrath  <roland@redhat.com>
3         * sysdeps/unix/sysv/linux/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]:
4         Define errno in .tbss.
5         * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]: Use TLS
6         access for setting errno.
8         * sysdeps/unix/x86_64/sysdep.S: Store 32 bits at errno, not 64 bits.
9         AFAICT, it was just blind luck that the word following errno in .bss
10         was just alignment padding and not some other variable to be clobbered.
12 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
14         * sysdeps/unix/sysv/linux/kernel-features.h
15         (__ASSUME_SETRESUID_SYSCALL): On the sparc, define to 1, not empty.
17 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
19         * nss/bug-erange.c (main): Don't fail if /etc/resolv.conf doesn't
20         exist.
22 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
24         * nss/Makefile: Move bug-erage from tests to xtests.
26 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
28         * stdlib/longlong.h (__udiv_qrnnd): Remove PARAMS from prototype.
30 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
32         * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall0): Make asm
33         volatile.
34         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
35         inline_syscall5, inline_syscall6): Likewise.
36         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
37         Likewise.
38         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (INLINE_SYSCALL):
39         Likewise.
41 2002-09-29  Roland McGrath  <roland@redhat.com>
43         * configure.in (libc_cv_ranlib_necessary check): Put the .o file in
44         the archive, not the .c file.
45         * configure: Regenerated.
47 2002-09-29  Roland McGrath  <roland@redhat.com>
49         * configure: Regenerated after aclocal.m4 change.
51         * sysdeps/x86_64/sysdep.h [HAVE_ELF] (L): Define with .L##name form.
52         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (L): Don't define it here.
54         * sysdeps/generic/dl-lookupcfg.h [USE_TLS] (DL_LOOKUP_RETURNS_MAP):
55         Define it, because _dl_sym presumes it (for any platform).
57         * sysdeps/x86_64/dl-tls.h: New file.
59         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add a cast.
61         * sysdeps/x86_64/elf/configure.in: New file.
62         * sysdeps/x86_64/elf/configure: New generated file.
64 2002-09-28  Roland McGrath  <roland@redhat.com>
66         * elf/rtld.c (_dl_start): Fix conditional for declaring CNT.
68         * aclocal.m4 (LIBC_PROG_BINUTILS): Don't clobber $RANLIB with ranlib
69         before we check it.
71 2002-09-28  Ulrich Drepper  <drepper@redhat.com>
73         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __syscall_exit
74         entry point.
76 2002-09-28  Jakub Jelinek  <jakub@redhat.com>
78         * posix/bug-regex11.c (tests): Add flags field.
79         (main): Avoid warnings.  Use test[i].flags.  Return nonzero
80         if any of the tests failed.
81         * posix/bug-regex12.c: New file.
82         * posix/Makefile (tests): Add bug-regex12.
84 2002-03-02  Thorsten Kukuk  <kukuk@suse.de>
86         * sysdeps/unix/nice.c (nice): Use getpriority() for the return value.
88 2002-09-28  Jeff Bailey  <jbailey@gnu.org>
90         * sysdeps/unix/sysv/sysv4/solaris2/configure.in: Delete.
91         * sysdeps/unix/sysv/aix/configure.in: Update comment and remove
92         stdio=libio setting.
94 2002-09-28  Roland McGrath  <roland@redhat.com>
96         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Use INTUSE for
97         _dl_signal_error.
98         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Likewise.
99         * sysdeps/powerpc/powerpc64/dl-machine.c
100         (_dl_reloc_overflow): Likewise.
101         * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
102         (elf_machine_rela): Likewise.
104 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
106         * include/libc-symbols.h (__hidden_dot_weak1): Fix typo.  Replace
107         ASM_GLOBAL_DIRECTIVE with .weak.
109 2002-09-28  Andreas Jaeger  <aj@suse.de>
111         * sysdeps/unix/sysv/linux/mips/truncate64.c (truncate64): Fix
112         number of args to syscall.
113         * sysdeps/unix/sysv/linux/mips/ftruncate64.c (__ftruncate64): Likewise.
114         Patch by Guido Guenther <agx@sigxcpu.org>.
116 2002-09-27  Roland McGrath  <roland@redhat.com>
118         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_pread, __NR_pwrite):
119         Define these to __NR_pread64, __NR_pwrite64 if not defined.
121         * sysdeps/unix/sysv/linux/powerpc/lchown.S
122         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Use this condition
123         on chown compatibility symbol; use compat_symbol, not symbol_version.
125 2002-09-27  Isamu Hasegawa  <isamu@yamato.ibm.com>
127         * posix/regcomp.c (reg_free): Free the debug area.
128         (re_compile_internal): Allocate debug area for the input string.
129         (create_initial_state): Check the back references in initial states
130         if they are really match null string in the initial state.
131         (parse_reg_exp): Mark the dfa that the dfa can have plural matchings.
132         (parse_expression): Likewise.
133         (parse_bracket_exp): Likewise.
134         * posix/regex_internal.c (re_node_set_intersect): Remove unused
135         function.
136         (re_node_set_contains): Change to return the index of node.
137         * posix/regex_internal.h (re_backref_cache_entry): Change the members.
138         (re_match_context_t): Likewise.
139         (struct re_dfa_t): Likewise.
140         (re_sift_context_t): New structure.
141         * posix/regexec.c (match_ctx_clear_flag): New function.
142         (sift_ctx_init): Likewise.
143         (update_cur_sifted_state): Likewise.
144         (add_epsilon_src_nodes): Likewise.
145         (sub_epsilon_src_nodes): Likewise.
146         (check_subexp_limits): Likewise.
147         (search_subexp): Likewise.
148         (sift_states_bkref): Likewise.
149         (merge_state_array): Likewise.
150         (sift_states_iter_bkref): Remove unused function.
151         (add_epsilon_backreference): Remove unused function.
152         (re_search_internal): Adapt new members and interfaces.
153         (check_matching): Check the back references in initial states
154         if they are really match null string in the initial state.
155         (proceed_next_node): Change the evaluation of back references,
156         since we have real registers here.
157         (set_regs): Adapt new interface of proceed_next_node.
158         (sift_states_backward): Add invocation of update_cur_sifted_state
159         instead of add_epsilon_backreference.
160         Add a sentinel to the outermost while loop.
161         Move the handling of back references to sift_states_bkref function,
162         since we can't handle some back references (e.g. a back reference
163         which match NULL string) here.
164         (transit_state_mb): Handle the new member max_mb_elem_len.
165         (transit_state_bkref_loop): Move the evaluation of back references to
166         search_subexp function, since we can't evaluate some back references
167         (e.g. a back reference which can have plural matchings) here.
168         (match_ctx_init): Adapt the new member.
169         (match_ctx_add_entry): Adapt the new members.
171 2002-09-25  Alan Modra  <amodra@bigpond.net.au>
173         * elf/do-rel.h: Define macro DO_ELF_MACHINE_REL_RELATIVE for
174         'elf_machine_rel_relative'
175         (elf_dynamic_do_rel): Call DO_ELF_MACHINE_REL_RELATIVE macro
176         instead of 'elf_machine_rel_relative'.
177         * sysdeps/hppa/dl-machine.h:
178         Define macro DO_ELF_MACHINE_REL_RELATIVE for
179         'elf_machine_rel_relative' with extra map parameter
180         required by HPPA.
181         (elf_machine_rela_relative): Add plt relocation changes.
183 2001-11-14  Matthew Wilcox  <willy@debian.org>
185         * sysdeps/unix/sysv/linux/hppa/bits/ipc.h: New file.
186         * sysdeps/unix/sysv/linux/hppa/bits/msq.h: New file.
187         * sysdeps/unix/sysv/linux/hppa/bits/sem.h: New file.
188         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: New file.
190 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
192         * sysdeps/powerpc/powerpc32/Makefile: Fix typo in comment.
194         * sysdeps/powerpc/powerpc64/Makefile
195         [$(build-shared) = yes] (pic-ccflag): Define it.
196         [$(subdir) = csu] (CFLAGS-initfini.s): Add -fpic here too.
198 2002-09-27  Roland McGrath  <roland@redhat.com>
200         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Remove
201         unneeded TLS cases.
203 2002-09-27  Jakub Jelinek  <jakub@redhat.com>
205         * elf/dl-addr.c (_dl_addr): Set dli_fbase to l_map_start
206         unconditionally.  Set dli_fname to _dl_argv[0] only for main program.
208 2002-09-27  Roland McGrath  <roland@redhat.com>
210         * elf/dl-addr.c (_dl_addr): Add a cast.
212         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [USE_TLS]: Handle new
213         TLS relocs R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, and R_X86_64_TPOFF64.
215         * elf/elf.h (R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, R_X86_64_TPOFF64,
216         R_X86_64_TLSGD, R_X86_64_TLSLD, R_X86_64_DTPOFF32,
217         R_x86_64_GOTTPOFF, R_X86_64_TPOFF32): New macros.
218         (R_X86_64_NUM): Update the value.
220 2002-09-24  Jakub Jelinek  <jakub@redhat.com>
222         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_load_address): Don't
223         rely on *r_offset of R_SPARC_RELATIVE reloc in .got to contain the
224         addend.
225         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Use
226         the same l_addr computation.
227         * sysdeps/sparc/sparc64/configure.in: Removed.
228         * sysdeps/sparc/sparc64/configure: Removed.
229         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Remove.
231 2002-09-26  Ulrich Drepper  <drepper@redhat.com>
233         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_HASH entry
234         if necessary.
235         * elf/dl-lookup.c (_dl_setup_hash): DT_HASH entry is already relocated.
236         * elf/dl-addr.c (_dl_addr): Use .hash[1] entry to determine end of the
237         symbol table if necessary.
239 2002-09-26  Roland McGrath  <roland@redhat.com>
241         * stdlib/longlong.h: Replaced with current version from GCC mainline,
242         last modified 2002-09-22  Kazu Hirata  <kazu@cs.umass.edu>.
244 2002-09-25  Andreas Jaeger  <aj@suse.de>
246         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add syscall_exit.
247         Patch by Guido Guenther <agx@sigxcpu.org>.
249 2002-09-25  Roland McGrath  <roland@redhat.com>
251         * Makeconfig (%.v.i pattern rule): Use $(CPPFLAGS).
253 2002-09-24  Ulrich Drepper  <drepper@redhat.com>
255         * sysdeps/unix/sysv/linux/configure.in: Recognize nptl add-on name.
257 2002-09-24  Roland McGrath  <roland@redhat.com>
259         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Move __libc_read,
260         __libc_write, __libc_lseek64, to ...
261         (ld: GLIBC_PRIVATE): ... here.
263         * csu/Versions: Use %include <tls.h> to get USE_TLS defined.
264         (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _errno, errno.
265         (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put errno here instead.
266         * resolv/Versions: Use %include <tls.h> to get USE_TLS defined.
267         (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _h_errno, h_errno,
268         and _res.
269         (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put h_errno, _res here.
271         * elf/tls-macros.h [__x86_64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
272         New macros for x86-64.
274         * sysdeps/unix/sysv/linux/alpha/bits/time.h: File removed.
275         It was indentical to the linux/bits/time.h file.
277         * nscd/nscd_gethst_r.c (nscd_gethst_r): Add a cast to silence warning.
279         * resolv/gethnamaddr.c (gethostbyaddr): Use socklen_t for SIZE.
281 2002-09-23  Ulrich Drepper  <drepper@redhat.com>
283         * po/zh_CN.po: New file.
285 2002-09-23  Roland McGrath  <roland@redhat.com>
287         * posix/unistd.h: Test [__USE_UNIX98] instead of [__USE_OPEN2K]
288         for gethostname declaration.
290         * catgets/open_catalog.c (__open_catalog): Don't use a value type
291         as the __builtin_expect expression, just the Boolean value.
293         * sysdeps/generic/wordexp.c (parse_glob): int -> size_t for counter.
294         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
295         * resolv/res_hconf.c (arg_service_list, parse_line): Likewise.
296         * iconvdata/tst-loading.c (main): Likewise.
297         * catgets/tst-catgets.c (main): Likewise.
298         * stdlib/tst-xpg-basename.c (main): Likewise.
299         * stdlib/tst-bsearch.c (main): Likewise.
300         * stdio-common/test-vfprintf.c (main): Likewise.
301         * stdio-common/tst-rndseek.c (do_test): Likewise.
302         * libio/tst_swprintf.c (main): Likewise.
303         * libio/tst-fgetws.c (main): Likewise.
304         * wcsmbs/tst-mbrtowc.c (check_ascii): Likewise.
305         * time/tst-posixtz.c (main): Likewise.
306         * time/tst-strptime.c (test_tm): Likewise.
307         * time/tst-strptime.c (main): Likewise.
308         * time/tst-getdate.c (main): Likewise.
309         * posix/tst-mmap.c (main): Likewise.
310         * posix/tst-getaddrinfo.c (do_test): Likewise.
311         * io/tst-getcwd.c (do_test): Likewise.
312         * resolv/tst-aton.c (main): Likewise.
313         * inet/tst-network.c (main): Likewise.
314         * libio/tst-fgetws.c (main): Likewise.
315         * sysdeps/posix/sprofil.c (add_region): int -> unsigned int for I.
316         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): int -> unsigned int
317         for PTYNO.
319         * stdlib/msort.c (qsort): Add a cast to silence warning.
320         * stdio-common/vfprintf.c (process_string_arg): Likewise.
321         * libio/oldfileops.c (_IO_old_do_write): Likewise.
322         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Likewise.
323         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
324         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
325         * argp/argp-fmtstream.c (__argp_fmtstream_printf): Likewise.
326         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
327         * sysdeps/unix/grantpt.c (grantpt): Likewise.
328         * libio/tst-widetext.c (main): Likewise.
329         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
330         * rt/tst-aio.c (test_file): Likewise.
331         * rt/tst-aio64.c (test_file): Likewise.
332         * resolv/tst-aton.c (main): Likewise.
334         * catgets/catgetsinfo.h (CATGETS_MAGIC): Use U suffix on the constant.
336         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Cast to int32_t
337         instead of uint32_t in these macros.
339 2002-09-22  Bruno Haible  <bruno@clisp.org>
341         * iconv/iconv_prog.c (main): Provide an error message that identifies
342         the wrong encoding.
344         * iconvdata/tscii.c: New file.
345         * iconvdata/testdata/TSCII: New file.
346         * iconvdata/testdata/TSCII..UTF8: New file.
347         * iconvdata/TSCII.precomposed: New file.
348         * iconvdata/TSCII.irreversible: New file.
349         * iconvdata/gconv-modules (TSCII): New module.
350         * iconvdata/Makefile (modules): Add TSCII.
351         (distribute): Add tscii.c.
352         * iconvdata/tst-table-from.c (try, utf8_decode, main): Double output
353         buffer size.
354         * iconvdata/tst-tables.sh: Add TSCII.
355         * iconvdata/TESTS: Add TSCII.
357         Revert 2002-04-18 patch.
358         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
359         FROM_DIRECTION): Make the FROM direction stateful again.
360         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
361         FROM_DIRECTION): Likewise.
363         * iconvdata/tst-e2big.c: New file.
364         * iconvdata/Makefile (tests): Add tst-e2big.
366 2002-09-23  Roland McGrath  <roland@redhat.com>
368         * elf/Makefile (test-extras): Define this instead of test-srcs.
369         * Makerules (all-nonlib): Include $(test-extras) too.
371 2002-09-21  Carlos O'Donell  <carlos@baldric.uwo.ca>
373         * sysdeps/hppa/abort-instr.h: New file.
375 2002-09-22  Roland McGrath  <roland@frob.com>
377         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Remove duplicate entry.
379         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Add alias __GI__exit.
381 2002-09-22  Andreas Schwab  <schwab@suse.de>
383         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Append, not overwrite.
385         * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal)
386         (isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]:
387         Use GCC builtins.
389 2002-09-21  Roland McGrath  <roland@redhat.com>
391         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM):
392         Correct the value so it covers all platforms, and is computed
393         from _DL_PLATFORMS_COUNT rather than hard-wired.
394         From Andrew Suffield <asuffield@debian.org>.
396 2002-09-20  Ulrich Drepper  <drepper@redhat.com>
398         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
399         locking when using mount tab file.
400         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
401         * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
402         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
404         * elf/dl-init.c (_dl_init): Fix test of the size of the
405         preinit_array section.
406         (call_init): Optimize access to DT_INIT_ARRAY entry a bit.
407         Reported by Brian Cabral <cabral@ikuni.com>.
409 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
411         * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros.
412         * sysdeps/powerpc/powerpc32/sysdep.h: New file.  Define powerpc32
413         specific macros copied from sysdeps/powerpc/sysdep.h.
414         * sysdeps/powerpc/powerpc64/sysdep.h: New file.  Define powerpc64
415         specific macros.
416         * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>.
417         [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h.
418         [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h.
420 2002-09-19  Bruno Haible  <bruno@clisp.org>
422         * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
423         returning.
425 2002-09-17  Bruno Haible  <bruno@clisp.org>
427         * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
428         * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
429         also on platforms with !HAVE_UT_TYPE.
430         (proc_utmp_eq): Remove function.
431         (internal_getut_r, pututline_file): Call __utmp_equal instead.
433 2002-09-20  Bruno Haible  <bruno@clisp.org>
435         * abi-tags: Add support for FreeBSD with ABI OS value 3.
436         * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
438 2002-09-20  Roland McGrath  <roland@redhat.com>
440         * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
441         (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
442         terms of __WORDSIZE.
443         * sysdeps/x86_64/gmp-mparam.h: File removed.
444         * sysdeps/sparc/gmp-mparam.h: File removed.
445         * sysdeps/mips/mips64/gmp-mparam.h: File removed.
446         * sysdeps/ia64/gmp-mparam.h: File removed.
447         * sysdeps/alpha/gmp-mparam.h: File removed.
449 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
451         * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
452         load, so as to work on both 32-bit and 64-bit.  Remove unnecessary
453         casts.  Align __libc_stack_end to 8 bytes.
455 2002-09-20  Roland McGrath  <roland@redhat.com>
457         * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
458         instead of asm for lrintf, __lrintf aliases.
460         * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
461         int array for 32-/64-bit compatibility.
462         From Steven Munroe  <sjmunroe@us.ibm.com>.
464 2002-09-17  Bruno Haible  <bruno@clisp.org>
466         * sysdeps/generic/ifreq.h (__if_nextreq): New function.
467         * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
468         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
469         * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
470         for iterating through the list of interfaces.
471         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
473 2002-09-20  Roland McGrath  <roland@redhat.com>
475         * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
476         Reported by Bruno Haible <bruno@clisp.org>.
478         * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
480         * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
481         * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
482         isatty unmodified.  Reported by Bruno Haible <bruno@clisp.org>.
484 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
486         * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
487         * sysdeps/powerpc/bits/wordsize.h: New file.
488         * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
489         array to int array for 32-/64-bit compatibility.
491 2002-09-20  Roland McGrath  <roland@redhat.com>
493         * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
495         * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
496         Reported by Bruno Haible <bruno@clisp.org>.
498         * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
499         before doubling RQ_LEN.
500         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
501         Reported by Bruno Haible <bruno@clisp.org>.
503 2002-09-18  Bruno Haible  <bruno@clisp.org>
505         * login/logout.c (logout): Don't assume ut_time has the same size as
506         a time_t.
507         * login/logwtmp.c (logwtmp): Likewise.
509         * sysdeps/pthread/configure: New file, moved here from
510         linuxthreads/sysdeps/unix/sysv/linux/configure.
512 2002-09-19  Ulrich Drepper  <drepper@redhat.com>
514         * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
515         (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
516         Reported by Glen Nakamura <glen@imodulo.com>.
518 2002-09-19  Neal H. Walfield  <neal@cs.uml.edu>
520         * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
521         thread's sigstate data structure if it has been allocated.
523 2002-09-19  Roland McGrath  <roland@redhat.com>
525         * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
526         [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
528 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
530         * version.h (VERSION): Bump to 2.2.94.
532         * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
533         * sysdeps/powerpc/powerpc32/fpu/Dist: ...here.  New file.
534         * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
537         * sysdeps/i386/Makefile: Remove obsolete db2 rules.
539         * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
541         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
543         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
545 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
547         * sysdeps/wordsize-32/Makefile: New file.
548         * sysdeps/arm/Makefile: Removed.
549         * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
550         Don't add divdi3 here.
551         * sysdeps/m68k/Makefile: Likewise.
552         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
553         * sysdeps/sh/Makefile: Likewise.
554         * sysdeps/s390/s390-32/Makefile: Likewise.
556 2002-09-18  Roland McGrath  <roland@redhat.com>
558         * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
559         the __ctype_* compat symbols, so the relocs generated bind to the
560         right versioned global symbol in the shared object.
562         * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
563         from the value taken from the DT_VERSYM table.
564         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
565         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
566         (RESOLVE_GOTSYM): Likewise.
568         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
569         Add libc_hidden_def.
570         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
571         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
572         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
573         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
574         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
575         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
576         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
577         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
579 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
581         * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
583         * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
584         define sigaction and __sigaction as wrappers around
585         __libc_sigaction which rejects changing SIGCANCEL.
586         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
588         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
589         SETTID/CLEARTID.
591         * signal/allocrtsig.c: Move to...
592         * sysdeps/generic/allocrtsig.c: ...here.  New file.
594 2002-09-17  Jakub Jelinek  <jakub@redhat.com>
596         * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
598         * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
599         R_386_TLS_LE): Define.
600         (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
601         comments.
602         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
603         ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
604         (elf_machine_rel): Handle R_386_TLS_TPOFF.
605         (elf_machine_rela): Likewise.
606         Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
608 2002-09-17  Roland McGrath  <roland@redhat.com>
610         * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
611         file-specific variable override so it compiles properly when using
612         --with-headers.
614 2002-09-17  Steven Munroe  <sjmunroe@us.ibm.com>
616         Ported to PowerPC64 running Linux.
617         * sysdeps/powerpc/powerpc64/Dist: New file.
618         * sysdeps/powerpc/powerpc64/Implies: New file.
619         * sysdeps/powerpc/powerpc64/Makefile: New file.
620         * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
621         * sysdeps/powerpc/powerpc64/atomicity.h: New file.
622         * sysdeps/powerpc/powerpc64/backtrace.c: New file.
623         * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
624         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
625         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
626         * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
627         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
628         * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
629         * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
630         * sysdeps/powerpc/powerpc64/memset.S: New file.
631         * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
632         * sysdeps/powerpc/powerpc64/register-dump.h: New file.
633         * sysdeps/powerpc/powerpc64/setjmp.S: New file.
634         * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
635         * sysdeps/powerpc/powerpc64/strchr.S: New file.
636         * sysdeps/powerpc/powerpc64/strcmp.S: New file.
637         * sysdeps/powerpc/powerpc64/strcpy.S: New file.
638         * sysdeps/powerpc/powerpc64/strlen.S: New file.
639         * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
640         * sysdeps/powerpc/powerpc64/elf/start.S: New file.
641         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
642         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
648         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
651         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
652         (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
653         various gcc versions.  Dot names required for powerpc64.
654         [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
655         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
656         C_SYMBOL_DOT_NAME(alias).
657         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
658         original strong_alias macro.
659         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
660         C_SYMBOL_DOT_NAME(alias).
661         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
662         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
663         '.'ed name.
664         Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
665         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro.  Generate
666         .global C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
667         (hidden_def): Append hidden_dot_def1 macro to definition.
668         (hidden_ver): Append hidden_dot_def1 macro to definition.
669         (hidden_data_def): New macro.  Same as original hidden_def macro.
670         (hidden_data_ver): New macro.  Same as original hidden_ver macro.
671         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro.  Generate
672         .weakext C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
673         (hidden_weak): Append hidden_dot_weak1 macro to definition.
674         (hidden_data_weak): New macro.  Same as original hidden_weak macro.
675         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
676         Otherwise defined as __GI_name.
677         (libc_hidden_data_def): New macro.  Use hidden_data_def.
678         (libc_hidden_data_weak): New macro.  Use hidden_data_weak.
679         (libc_hidden_data_ver): New macro.  Use hidden_data_ver.
680         (rtld_hidden_data_def): New macro.  Use hidden_data_def.
681         (rtld_hidden_data_weak): New macro.  Use hidden_data_weak.
682         (rtld_hidden_data_ver): New macro.  Use hidden_data_ver.
683         (libm_hidden_data_def): New macro.  Use hidden_data_def.
684         (libm_hidden_data_weak): New macro.  Use hidden_data_weak.
685         (libm_hidden_data_ver): New macro.  Use hidden_data_ver.
686         * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
688 2002-09-17  Ulrich Drepper  <drepper@redhat.com>
690         * include/libc-symbols.h: Change *hidden_proto macros to accept
691         option parameters and pass those to the attribute definition.
692         * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
694         * include/unistd.h: Declare __libc_pause.
696         * include/sys/socket.h: Declare __libc_send, __libc_recv,
697         __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
699         * include/unistd.h: Declare __libc_fork.
701 2002-09-17  Roland McGrath  <roland@redhat.com>
703         * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
704         (passwd2des): Define it as an alias.
705         (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
707 2002-09-12  Bruno Haible  <bruno@clisp.org>
709         * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
710         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
712         * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
713         * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
715 2002-09-05  Steven Munroe  <sjmunroe@us.ibm.com>
717         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
718         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
719         __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
720         PowerPC64 does not have separate 64-bit syscalls.
722 2002-09-16  Roland McGrath  <roland@redhat.com>
724         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
726         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
727         New macro.
729         * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
731         * include/unistd.h: Uncomment libc_hidden_proto for _exit.
732         * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
733         * sysdeps/generic/_exit.c: Likewise.
735 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
737         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
739         * elf/rtld.c (struct dl_start_final_info): New.
740         (_dl_start_final): Change second argument to struct
741         dl_start_final_info *.  Set start_time from info.
742         (_dl_start): Remove bootstrap_map variable, add info.
743         Define bootstrap_map as macro.  If not DONT_USE_BOOTSTRAP_MAP,
744         store HP_TIMING_NOW result into info.start_time.
746 2002-09-16  Andreas Jaeger  <aj@suse.de>
748         * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
749         to _Exit.
750         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
752 2002-09-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
754         * sysdeps/powerpc/abort-instr.h: New file.
756 2002-09-14  Ulrich Drepper  <drepper@redhat.com>
758         * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
759         comment.
761         * test-skeleton.c (main): Provide more information in case waitpid
762         fails.
764         * include/unistd.h: Declare __exit_thread.
765         * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
766         Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
767         * sysdeps/unix/sysv/linux/exit-thread.S: New file.
768         * sysdeps/unix/sysv/linux/_exit.c: New file.
769         * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
770         * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
771         Add exit-thread.
773         * configure.in: Add dl_iterate_phdr to test using -nostdlib.
775 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
777         * sysdeps/i386/dl-machine.h (elf_machine_rel)
778         (case R_386_TLS_DTPMOD32): Don't use addend.
779         [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
780         (elf_machine_rela): Add support for TLS relocs.
782 2002-09-14  Roland McGrath  <roland@redhat.com>
784         * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
786 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
788         * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
789         specific asm macros for multiple percision integer math.
791 2002-06-04  Steven Munroe  <sjmunroe@us.ibm.com>
793         * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
794         * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
795         Remove per-machine conditionals for FLAG_* cases.
796         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
797         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
798         * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
800 2002-09-10  Alan Modra <amodra@bigpond.net.au>
802         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
803         defined in entry.h.
804         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
805         lowest address for profiling in  __monstartup call.
806         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
808 2002-09-14  Roland McGrath  <roland@redhat.com>
810         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
811         instead of __NR_pread.
812         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
813         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
814         instead of __NR_pwrite.
815         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
817 2002-09-13  Roland McGrath  <roland@redhat.com>
819         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
821 2002-09-13  Andreas Jaeger  <aj@suse.de>
823         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
824         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
826 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
828         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
830 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
832         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
833         reading the headers.
835 2002-09-12  Roland McGrath  <roland@redhat.com>
837         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
838         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
839         find the ELF header.
841         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
842         executable if needed, in case it's actually a shared object.
844 2002-09-11  Roland McGrath  <roland@redhat.com>
846         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
847         l_map_start to adjust l_tls_initimage.
849         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
850         when using h_errno and it's not set to NETDB_INTERNAL.
851         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
853         * Makefile ($(common-objpfx)testrun.sh): New target.
854         (others): Depend on it.
855         (postclean-generated): Append it.
857         * nss/bug-erange.c: New file.
858         * nss/Makefile (tests): Add it.
860         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
861         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
863         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
864         strncmp, keeps the code smaller for a non-performance-critical case.
866         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
867         no longer wrongly matches arbitrary prefixes of NAME.
868         Reported by Jakub Jelinek <jakub@redhat.com>.
870 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
872         * posix/bug-regex11.c (tests): New array.
873         (main): Rewritten to run more different tests.
875 2002-09-10  Roland McGrath  <roland@redhat.com>
877         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
878         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
879         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
881         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
882         well so we don't get it declared by include/math.h's hidden_proto.
883         Then do hidden_proto for __isnanf locally so hidden_def works right.
885         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
886         a cast to turn nl_langinfo return value into an integer.
888 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
890         * posix/regexec.c (build_trtable): Fix the destination of
891         newline to prevent wrong states from overwriting.
892         Append break statements to optimization.
894 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
896         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
897         (build_range_exp): Add castings to strlen invocations.
898         (build_collating_symbol): Restore the type of characters from "char"
899         to "unsigned char", and supplement castings.
900         (build_collating_symbol): Likewise.
901         (build_equiv_class): Likewise.
902         (build_charclass): Likewise.
903         (seek_collating_symbol_entry): Likewise.
904         (parse_bracket_exp): Likewise.
905         (build_word_op): Supplement a casting.
906         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
907         (re_string_allocate): Fix castings.
908         (re_string_construct): Likewise.
909         (re_string_construct_common): Likewise.
910         (re_string_realloc_buffers): Likewise.
911         (build_wcs_buffer): Likewise.
912         (build_wcs_upper_buffer): Likewise.
913         (re_string_skip_chars): Likewise.
914         (re_string_reconstruct): Likewise.
915         * posix/regex_internal.h: Restore the type of characters in
916         re_string_t and bracket_elem_t from "char" to "unsigned char".
917         (re_string_elem_size_at): Fix castings.
918         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
919         (transit_state_bkref_loop): Restore the type of characters from
920         "char" to "unsigned char", and append a cast to "char*" pointer in
921         array subscript.
922         (check_node_accept_bytes): Likewise.
923         (find_collation_sequence_value): Likewise.
925 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
927         * sysdeps/mips/memcpy.S: New file.
928         * sysdeps/mips/memset.S: New file.
929         * sysdeps/mips/fpu/e_sqrt.c:  New file.
930         * sysdeps/mips/fpu/e_sqrtf.c: New file.
932         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
933         functional before. Also removed all SHLIB_COMPAT stuff.
934         * fpu/fegetenv.c: Likewise.
935         * fpu/fesetenv.c:: Likewise.
936         * fpu/feupdateenv.c: Likewise.
937         * fpu/fgetexcptflg.c: Likewise.
938         * fpu/fraiseexcpt.c: Likewise.
940         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
942 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
944         * include/math.h (__finite_internal, __finitef_internal,
945         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
946         (isfinite): Remove.
947         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
948         __isinfl, __isnanl): Add hidden_proto.
949         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
950         libm_hidden_proto.
951         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
952         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
953         __is{inf,nan} calls.
954         * stdio-common/printf_size.c (printf_size): Likewise.
955         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
956         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
957         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
958         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
959         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
960         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
961         (__finite): Add hidden_def.
962         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
963         (__finitef): Add hidden_def.
964         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
965         (__finitel): Add hidden_def.
966         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
967         hidden_def.
968         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
969         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
970         libm_hidden_def.
971         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
972         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
973         hidden_def.
974         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
975         (__isinfl): Remove INTDEF.
976         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
977         hidden_def.
978         (__isnanl): Remove INTDEF.
979         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
980         libm_hidden_def.
981         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
982         instead of sin and cos.
983         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
984         Add hidden_def.
985         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
986         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
987         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
988         libm_hidden_def.
989         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
990         Add hidden_def.
991         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
992         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
993         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
994         libm_hidden_def.
995         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
996         libm_hidden_def.
997         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
998         Add hidden_def.
999         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
1000         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
1001         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
1002         libm_hidden_def.
1003         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
1004         __finitel_internal): Remove aliases.
1005         (__finite, __finitef, __finitel): Add hidden_def.
1006         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
1007         __isnanl_internal): Remove aliases.
1008         (__isnan, __isnanf, __isnanl): Add hidden_def.
1009         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
1010         __isinfl_internal): Remove aliases.
1011         (__isinf, __isinff, __isinfl): Add hidden_def.
1012         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
1013         __fpclassifyl): Add libm_hidden_def.
1014         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
1015         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
1016         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
1017         (hidden_defx): Define and use.
1018         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
1019         libm_hidden_def.
1020         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
1021         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
1022         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
1023         Remove INTDEF.
1024         (__isnan, __isnanf): Add hidden_def.
1025         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
1026         (__finitel): Add libm_hidden_def.
1027         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
1029         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
1030         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
1031         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1032         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
1033         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1034         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
1035         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
1036         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
1037         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1038         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
1039         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1040         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
1041         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1042         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
1043         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1044         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
1045         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1046         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
1047         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1048         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
1049         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1050         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
1051         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1052         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
1053         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1054         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
1055         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1057 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
1059         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
1061 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
1063         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
1064         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
1066 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
1068         * string/stratcliff.c: Some more strncpy tests.
1069         Patch by Daniel Jacobowitz <drow@mvista.com>.
1071 2002-09-08  Roland McGrath  <roland@redhat.com>
1073         * resolv/resolv.h: Include <sys/types.h> for u_long even in
1074         the [__need_res_state] case.
1075         Reported by Bruno Haible <bruno@clisp.org>.
1077 2002-09-04  Bruno Haible  <bruno@clisp.org>
1079         * sysdeps/generic/bits/ustat.h: Comment fix.
1080         * io/sys/sendfile.h: Comment fix.
1081         * sysdeps/posix/pread.c: Comment fix.
1082         * sysdeps/posix/pread64.c: Comment fix.
1083         * sysdeps/posix/pwrite.c: Comment fix.
1084         * sysdeps/posix/pwrite64.c: Comment fix.
1086 2002-09-06  Roland McGrath  <roland@redhat.com>
1088         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
1089         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
1090         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
1091         (_UTSNAME_MACHINE_LENGTH): Likewise.
1092         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
1094 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
1096         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
1097         test for filesystem type name of mount points.
1099         * include/errno.h: Use errno definition with __thread for now only
1100         in libc and ld.so.
1102         * test-skeleton.c (main): Improve error message for unexpected
1103         signal case.
1105 2002-09-05  Roland McGrath  <roland@redhat.com>
1107         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
1108         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1110 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
1112         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
1113         case of failure.
1115 2002-09-04  Bruno Haible  <bruno@clisp.org>
1117         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
1118         sigset_get_old_mask): Turn into inline functions.
1119         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
1120         sigset_get_old_mask): Likewise.
1121         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
1122         sigset_get_old_mask): Likewise.
1123         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
1124         syntax.
1126         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
1128         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
1129         default definitions.
1130         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
1131         _sys_nerr_internal instead of _sys_nerr.
1133         * nscd/connections.c (handle_request): Declare CALLER inside #if.
1135 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
1137         * sysdeps/powerpc/__longjmp.S: Moved to...
1138         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
1139         * sysdeps/powerpc/add_n.S: Moved to...
1140         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
1141         * sysdeps/powerpc/addmul_1.S: Moved to...
1142         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
1143         * sysdeps/powerpc/atomicity.h: Moved to...
1144         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
1145         * sysdeps/powerpc/backtrace.c: Moved to...
1146         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
1147         * sysdeps/powerpc/bp-asm.h: Moved to...
1148         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
1149         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
1150         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
1151         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
1152         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
1153         * sysdeps/powerpc/dl-machine.c: Moved to...
1154         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
1155         * sysdeps/powerpc/dl-machine.h: Moved to...
1156         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
1157         * sysdeps/powerpc/dl-start.S: Moved to...
1158         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
1159         * sysdeps/powerpc/gprrest0.S: Moved to...
1160         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
1161         * sysdeps/powerpc/gprrest1.S: Moved to...
1162         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
1163         * sysdeps/powerpc/gprsave0.S: Moved to...
1164         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
1165         * sysdeps/powerpc/gprsave1.S: Moved to...
1166         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
1167         * sysdeps/powerpc/lshift.S: Moved to...
1168         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
1169         * sysdeps/powerpc/memset.S: Moved to...
1170         * sysdeps/powerpc/powerpc32/memset.S: ...here.
1171         * sysdeps/powerpc/mul_1.S: Moved to...
1172         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
1173         * sysdeps/powerpc/ppc-mcount.S: Moved to...
1174         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
1175         * sysdeps/powerpc/register-dump.h: Moved to...
1176         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
1177         * sysdeps/powerpc/rshift.S: Moved to...
1178         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
1179         * sysdeps/powerpc/setjmp.S: Moved to...
1180         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
1181         * sysdeps/powerpc/stpcpy.S: Moved to...
1182         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
1183         * sysdeps/powerpc/strchr.S: Moved to...
1184         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
1185         * sysdeps/powerpc/strcmp.S: Moved to...
1186         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
1187         * sysdeps/powerpc/strcpy.S: Moved to...
1188         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
1189         * sysdeps/powerpc/strlen.S: Moved to...
1190         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
1191         * sysdeps/powerpc/sub_n.S: Moved to...
1192         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
1193         * sysdeps/powerpc/submul_1.S: Moved to...
1194         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
1195         * sysdeps/powerpc/elf/bzero.S: Moved to...
1196         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
1197         * sysdeps/powerpc/elf/start.S: Moved to...
1198         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
1199         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
1200         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
1201         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
1202         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
1203         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
1204         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
1205         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
1206         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
1207         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
1208         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
1209         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
1210         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
1211         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
1212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
1213         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
1214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
1215         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
1216         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
1217         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
1218         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
1219         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
1220         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
1221         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
1222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
1223         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
1224         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
1225         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
1226         powerpc/powerpc64.
1228 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
1230         * FAQ.in: Add powerpc64 to supported targets list. Also state the
1231         minimum gcc version is 3.2
1232         * README: Add powerpc64 to supported targets list.
1233         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
1234         Add powerpc64 and machine=powerpc/powerpc64.
1235         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
1236         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
1237         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
1238         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
1239         * sysdeps/powerpc/powerpc32/Dist: New file.
1240         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
1241         * sysdeps/powerpc/powerpc32/Implies: New file.
1242         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
1243         ($(with-fp) = no): Move test to powerpc32/Makefile.
1244         ($(subdir) = misc): Move to powerpc32/Makefile.
1245         ($(build-shared) = yes): Move to powerpc32/Makefile.
1246         ($(subdir) = csu): Move to powerpc32/Makefile.
1247         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
1248         * sysdeps/powerpc/powerpc32/Makefile: New file.
1249         * sysdeps/powerpc/Versions: Remove libgcc functions.
1250         * sysdeps/powerpc/powerpc32/Versions: New file.
1251         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
1252         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
1253         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
1254         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
1255         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
1256         ($machine): Add powerpc/powerpc64 to if ... | for
1257         libc_cv_slibdir=/libc64.
1258         (powerpc*): Set ldd_rewrite_script.
1259         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
1260         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
1261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
1262         Add clone.S.
1263         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
1264         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
1265         functions.  Remove GLIBC_2.2 functions except getrlimit and
1266         setrlimit.  Moved them to ...
1267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
1269 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
1271         * libio/tst-atime.c: Include <errno.h>.
1272         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
1274 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
1276         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
1277         warnings of some compilers.
1278         (build_collating_symbol): Change the type of characters from
1279         "unsigned char" to "char", and append a cast to "char*" pointer in
1280         array subscript.
1281         (build_collating_symbol): Likewise.
1282         (build_equiv_class): Likewise.
1283         (build_charclass): Likewise.
1284         (re_compile_pattern): Remove incorrect cast.
1285         (re_compile_fastmap_iter): Change the type of characters from
1286         "unsigned char" to "char", and append a cast to "char*" pointer
1287         in array subscript.
1288         (parse_bracket_exp): Likewise.
1289         * posix/regex_internal.c (re_string_construct_common): Likewise.
1290         (re_string_allocate): Likewise.
1291         (re_string_construct): Likewise.
1292         (re_string_realloc_buffers): Likewise.
1293         (build_wcs_buffer): Likewise.
1294         (re_string_reconstruct): Likewise.
1295         * posix/regex_internal.h: Change the type of characters in
1296         re_string_t and bracket_elem_t from "unsigned char" to "char".
1297         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
1298         warnings of some compilers.
1299         (transit_state_bkref_loop): Change the type of characters from
1300         "unsigned char" to "char", and append a cast to "char*" pointer in
1301         array subscript.
1302         (check_node_accept_bytes): Likewise.
1303         (find_collation_sequence_value): Likewise.
1305 2002-09-04  Roland McGrath  <roland@redhat.com>
1307         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
1308         from 1024 to 65536, to avoid buffer overrun.
1310 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
1312         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
1314 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
1316         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
1317         for filesystem.
1319 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
1321         * posix/bug-regex11.c: New test.
1322         * posix/Makefile (tests): Add bug-regex11.
1324 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
1326         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
1327         newlocale.
1329 2002-09-02  Roland McGrath  <roland@redhat.com>
1331         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
1332         __pthread_initialize_minimal and __libc_check_standard_fds to
1333         match the generic version.
1335         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
1336         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
1338         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
1339         warnings on platorms where char is unsigned.
1341 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
1343         * version.h (VERSION): Bump to 2.2.93.
1345         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
1347 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
1349         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
1350         as relocated.
1352 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
1354         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
1356 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
1358         * locale/localeinfo.h (struct locale_data): Add private.ctype.
1359         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
1360         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
1361         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
1362         (__wcsmbs_load_conv): Remove const from argument.
1363         (_nl_cleanup_ctype): New proto.
1364         (get_gconv_fcts): New function.
1365         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
1366         (__wcsmbs_to_wc): Rename back to...
1367         (to_wc): ... this.
1368         (__wcsmbs_gconv_fcts): Rename to...
1369         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
1370         (lock): Removed.
1371         (__libc_setlocale_lock): New extern.
1372         (__wcsmbs_load_conv): Remove const from argument.
1373         Initialize new_category->private.ctype instead of a global
1374         variable.
1375         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
1376         update_function_ptrs.  No locking is necessary.
1377         (_nl_cleanup_ctype): New function.
1378         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
1379         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
1380         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1381         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
1382         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
1383         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
1384         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
1385         * wcsmbs/wctob.c (wctob): Likewise.
1386         * stdlib/mblen.c (mblen): Likewise.
1387         * stdlib/mbtowc.c (mbtowc): Likewise.
1388         * stdlib/wctomb.c (wctomb): Likewise.
1389         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
1390         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
1391         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
1392         Removed.
1394 2002-09-02  Roland McGrath  <roland@frob.com>
1396         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
1398 2002-09-01  Roland McGrath  <roland@redhat.com>
1400         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
1401         Variable declarations removed.
1402         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
1403         these functions to replace them.
1404         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
1405         functions plus an indirection rather than the old global variables.
1406         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
1407         Macros removed.
1408         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
1409         inline functions.
1410         * ctype/ctype-info.c: Revert last reversion back the other way.
1411         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
1412         Define real function versions of include/ctype.h inlines here.
1413         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
1414         __ctype_tolower_loc, __ctype_toupper_loc.
1415         * locale/lc-ctype.c: Revert last reversion back the other way.
1416         (_nl_postload_ctype): If current thread uses the global locale,
1417         update its tsd vars.
1418         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
1419         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
1420         CTYPE_TOLOWER, CTYPE_TOUPPER.
1422         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
1423         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
1424         from __libc_tsd_threadvar_location.
1425         (__libc_tsd_set, __libc_tsd_get): Update uses.
1427 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
1429         * ctype/ctype.h: Undo the patch before the last one.  Put back the
1430         macro definitions for the standard functions to access the
1431         classification and mapping arrays.
1432         * include/ctype.h: Partly revert last patch.  Move the macro
1433         definitions for the exported functions back to the public header.
1434         #undef all the macros defined here before redefining.
1435         * ctype/ctype-info.c: Revert last patch.
1436         * locale/lc-ctype.c: Revert last patch.
1438         * ctype/Makefile (routines): Add isctype.
1439         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
1440         * ctype/ctype.h: Add declaration of isctype.
1441         * include/ctype.h: Declare __isctype.
1442         * ctype/isctype.c: New file.
1444 2002-09-01  Roland McGrath  <roland@redhat.com>
1446         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
1447         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1449         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1451         * locale/findlocale.c (_nl_remove_locale): Don't search in
1452         _nl_locale_file_list if DATA->alloc is ld_archive.
1453         Use _nl_unload_locale to do the rest of the work.
1455         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1456         of new structure to UNDELETABLE.
1458         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1459         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1460         towlower, towupper): Macros removed.
1461         * ctype/ctype.h (__tobody): Put parens around macro argument.
1462         (__isctype): Macro removed.
1463         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1464         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1465         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1466         tolower, toupper): Macros and inlines removed.
1467         * include/ctype.h [! NOT_IN_libc]
1468         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1469         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1470         tolower, toupper): Define here instead, using _NL_CURRENT.
1471         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1472         using _NL_CURRENT.
1473         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1474         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1475         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1476         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1477         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1478         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1479         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
1480         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1481         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1482         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1483         (ISSORTMASK): Update use.
1484         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1485         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1486         (_nss_files_getENTNAME_r): Likewise.
1487         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1488         Likewise.
1490         * Makerules (all-nonlib): Renamed from all-tests.
1491         Include $(others) here too.
1492         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1493         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1494         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1495         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1496         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
1497         the program modules via cppflags-iterator.mk.
1498         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1499         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1501 2002-08-31  Roland McGrath  <roland@redhat.com>
1503         * posix/tst-getconf.sh: If no third arg, work with static linking.
1505         * locale/categories.def (LC_TIME): No more _nl_postload_time.
1507         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1508         [_NL_CURRENT_INDIRECT].
1510 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1512         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1514 2002-08-31  Roland McGrath  <roland@redhat.com>
1516         * locale/newlocale.c (__newlocale): Don't use strdup for names.
1517         Instead, make the single allocation of the structure larger to hold
1518         the name strings.
1519         * locale/duplocale.c (__duplocale): Don't strdup names individually.
1520         Instead, calculate size for a single allocation and copy into it.
1521         * locale/freelocale.c (__freelocale): Don't free names individually.
1523         * locale/newlocale.c (__newlocale): Don't leak old data or names.
1525         * locale/xlocale.h (__locale_struct): Move __names member last,
1526         for binary compatibility.
1528         * locale/duplocale.c (__duplocale): Free names from the right array.
1530         * locale/uselocale.c (__uselocale): Return previous locale when
1531         setting a new one.
1533         * locale/newlocale.c: Commit changes from 2002-08-30
1534         batch where I failed to commit this file:
1535         (__newlocale): Fill in __names array.
1537 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1539         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1540         errlist-compat.c if versioning==yes.
1542 2002-08-31  Andreas Jaeger  <aj@suse.de>
1544         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1545         external functions with hidden attribute.
1546         (elf_machine_rela): Optimize.
1548         * sysdeps/x86_64/memset.S: New file.
1549         * sysdeps/x86_64/bzero.S: New file.
1550         * sysdeps/x86_64/stpcpy.S: New file.
1551         * sysdeps/x86_64/strcat.S: New file.
1552         * sysdeps/x86_64/strchr.S: New file.
1553         * sysdeps/x86_64/strcpy.S: New file.
1554         * sysdeps/x86_64/strcspn.S: New file.
1555         * sysdeps/x86_64/strlen.S: New file.
1556         * sysdeps/x86_64/strpbrk.S: New file.
1557         * sysdeps/x86_64/strspn.S: New file.
1558         * sysdeps/x86_64/strcmp.S: New file.
1559         * sysdeps/x86_64/strtok_r.S: New file.
1560         * sysdeps/x86_64/strtok.S: New file.
1561         * sysdeps/x86_64/memcpy.S: New file.
1562         * sysdeps/x86_64/mempcpy.S: New file.
1564         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1566         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1568 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1570         * stdio-common/Makefile (generated): Add errlist-compat.c.
1572         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1574         * locale/localeinfo.h: Pretty printing.
1576         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1577         form_number handling.
1579 2002-08-31  Andreas Jaeger  <aj@suse.de>
1581         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1582         double tests.
1584         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1585         __start_context.
1587         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1589         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1591         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1592         registers used for passing args.
1594         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1595         all needed registers.
1597         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1598         registers.
1600         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1601         registers.
1603 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
1605         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1606         always_inline attribute.
1608 2002-08-30  Roland McGrath  <roland@redhat.com>
1610         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1611         presume it's the stub and bail without error.
1613         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1614         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1616         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1618         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1619         macros replace the i686 versions for 64-bit mode.
1621         * locale/duplocale.c: Include <string.h>.
1623         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1624         [_LIBC] (category_to_name): Don't define the function.  Instead
1625         define a macro using _nl_category_names.
1627         * locale/xlocale.h (struct __locale_struct): New member `__names'.
1628         * locale/xlocale.c (_nl_C_locobj): Update initializer.
1629         * locale/global-locale.c (_nl_global_locale): Likewise.
1630         * locale/duplocale.c (__duplocale): strdup __names elements.
1631         * locale/freelocale.c (__freelocale): Free __names elements.
1632         * locale/localename.c (_nl_current_names): Variable removed.
1633         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1634         * locale/localeinfo.h (_nl_current_names): Removed decl.
1635         * locale/setlocale.c: Use _nl_global_locale->__names in place of
1636         _nl_current_names throughout.
1638         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1640         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1641         and sys_nerr in the output file.
1643         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1644         * scripts/cpp: Just use the environment variable.
1646         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1647         * libio/tst-mmap-offend.c (do_test): Likewise.
1648         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1649         * libio/tst-mmap-eofsync.c (do_test): Likewise.
1650         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1652         * locale/localename.c: If the current locale is the global locale, use
1653         _nl_current_names; otherwise use the locale object.
1655 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1657         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1658         'm' to enable mmap I/O.
1659         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
1660         former wasn't used (anymore?).
1661         (_IO_FLAGS2_MMAP): New define.
1662         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1663         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1664         _IO_FLAGS2_MMAP bit is set.
1665         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1666         Enable mmap-using mode only if 'm' was set.
1668 2002-08-29  Roland McGrath  <roland@frob.com>
1670         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1672         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1673         Change argument type from int to intptr_t.
1675         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1676         initializer on [! _HURD_THREADVAR_H] (bad kludge).
1677         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1678         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1679         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
1681         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1683         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1685         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1687         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1688         * assert/assert-perr.c: Add libc_hidden_def.
1689         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1691         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1692         found at all.
1693         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
1694         sys_errlist stuff to ...
1695         * sysdeps/unix/sysv/linux/Versions: ... here.
1697         * mach/mach.h: Include <features.h>.
1699 2002-08-29  Roland McGrath  <roland@redhat.com>
1701         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1702         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1703         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1705         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1707         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1708         (norm_add_slashes): alloca -> __alloca
1710 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
1712         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1713         string_malloced, it is unlikely to be set.
1714         Only call free with non-NULL workspace.
1715         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1716         -mcpu=ultrasparc, not only tune for it.
1717         (ASFLAGS*): Set unconditionally.
1719         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1720         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
1721         p_vaddr/p_offset when computing LOADADDR.
1723 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1725         * version.h (VERSION): Bump to 2.2.92.
1727         * time/Makefile (tst-ftime_l-ENV): New variable.
1729         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1731         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1732         <U017A>, <U017D> and <U0179>. Add missing mappings.
1733         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1735         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1736         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
1737         (struct tostruct): Use ACRINDEX as type for link field.
1738         (statuc gmonparam): Likewise for froms.
1739         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1740         kcount and froms.
1741         (write_call_graph): Use correct type for from_index and to_index.
1742         * gmon/mcount.c: Use correct types for frompcindex and toindex
1743         variables.
1744         Patches by Dan Kegel <dank@kegel.com>.
1746         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1747         canonical name.
1749         * time/strptime.c (ISSPACE): New #define.  Use isspace or
1750         __isspace_l.  Replace calls to isspace.
1751         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1753 2002-08-29  Roland McGrath  <roland@redhat.com>
1755         * string/tst-strxfrm.c: Remove __ from function names.
1757 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1759         * include/wchar.h: Declare __mbsrtowcs_l.
1760         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1761         * wcsmbs/mbsrtowcs.c: Add support for compilation with
1762         USE_IN_EXTENDED_LOCALE_MODEL.
1763         * wcsmbs/mbsrtowcs_l: New file.
1764         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
1765         define as static.  Change all uses.
1766         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
1767         Change all callers.
1768         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1769         * time/strftime.c: When translating for the extended locale model
1770         use the _l functions.
1771         * time/Makefile (tests): Add tst-ftime_l.
1772         * time/tst-ftime_l.c: New file.
1774 2002-08-28  Roland McGrath  <roland@redhat.com>
1776         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1777         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1778         from _nl_find_locale ok if for _nl_C_name.
1780         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1781         iterator to refer to each category's _nl_current_LC_FOO symbol, so
1782         we know they are all linked in.
1784         * NEWS: Added 2.2.6 text from 2.2 branch version.
1786         * time/strptime.c (strptime_internal): Remove spurious const.
1788         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1789         _nl_select_era_entry): Moved to ...
1790         * time/era.c: ... here, new file.
1791         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1792         Add internal_function to definitions.  Take an additional argument
1793         giving the `struct locale_data *' to use.
1794         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1795         _nl_parse_alt_digit): Moved to ...
1796         * time/alt_digit.c: ... here, new file.
1797         * time/lc-time-cleanup.c: New file.
1798         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1799         * locale/localeinfo.h (_nl_postload_time): Remove decl.
1800         (_nl_cleanup_time): Declare it.
1801         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1802         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1803         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1804         * time/strftime.c: Pass locale data to helper functions.
1805         * time/strptime.c: Likewise.
1807         * locale/localeinfo.h (struct locale_data): New member `private'
1808         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1809         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1810         * locale/C-collate.c: Update initializer.
1811         * locale/C-identification.c: Likewise.
1812         * locale/C-measurement.c: Likewise.
1813         * locale/C-telephone.c: Likewise.
1814         * locale/C-address.c: Likewise.
1815         * locale/C-name.c: Likewise.
1816         * locale/C-paper.c: Likewise.
1817         * locale/C-time.c: Likewise.
1818         * locale/C-numeric.c: Likewise.
1819         * locale/C-monetary.c: Likewise.
1820         * locale/C-messages.c : Likewise.
1821         * locale/C-ctype.c: Likewise.
1823         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1824         Redefine this too.
1826 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1828         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1829         (_rtld_global): Use it.
1831         * sysdeps/gnu/Dist: Remove errlist-compat.c.
1832         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1833         object directory.  Pass all Versions files to the awk script.
1834         * sysdeps/gnu/errlist-compat.c: Removed.
1835         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1836         first Versions file in the search path which has them.
1837         Allow multiple errlist symbol versions to have the same count of
1838         errors.
1839         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1840         of "errlist-compat.c".
1841         * sysdeps/gnu/errlist.c: Regenerated.
1842         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1843         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1844         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1845         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1846         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1847         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1848         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1849         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1850         ECANCELLED if not defined by kernel headers.
1851         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1852         already defined by kernel headers.
1853         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1854         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1855         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1856         is a macro.
1857         * Versions.def (GLIBC_2.3) [librt]: Add.
1859         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1861 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1863         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1864         missing comma to .type directive.
1866 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1868         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1869         unconditionally.
1870         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1871         check.
1872         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1874 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1876         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1877         check to close_and_out close.  Replace return NULL statements where
1878         fd might be >= 0 with goto close_and_out.  Close the file descriptor
1879         when it is no longer needed.
1881 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1883         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1884         string constants.
1885         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1886         * sysdeps/arm/dl-machine.h: Likewise.
1887         * sysdeps/cris/dl-machine.h: Likewise.
1888         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1889         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1891 2002-08-28  Roland McGrath  <roland@redhat.com>
1893         * Makeconfig (default_cflags): Revert unintended change.
1895 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1897         * version.h (VERSION): Bump to 2.2.91.
1899         * configure.in: Disable TLS support by default for now.
1901         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1903         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1904         warnings.
1906         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1908         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1909         fprintf/fwprintf calls.
1911 2002-08-28  Roland McGrath  <roland@redhat.com>
1913         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1914         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
1916         * locale/setlocale.c: Declare postload functions weak.
1918         * elf/tst-tls1-static.c: New file.
1919         * elf/tst-tls2-static.c: New file.
1920         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1922         Make uselocale support static linking.
1923         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1924         This file again just defines _nl_C_locobj.
1925         (_nl_C_locobj): Use a categories.def iterator in the initializer.
1926         * locale/global-locale.c: New file.  Define _nl_global_locale here,
1927         using all weak references in the initializer.
1928         * locale/Makefile (aux): Add global-locale.
1929         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1930         these unconditional, along with the tsd decl.
1931         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1932         Define it under these conditions.
1933         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1934         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
1935         `extern __thread struct locale_data *const *'.
1936         [NL_CURRENT_INDIRECT]
1937         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1938         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
1939         the thread variable _nl_current_LC_FOO and also a special absolute
1940         symbol _nl_current_LC_FOO_used.
1941         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1942         Set each _nl_current_LC_FOO symbol to point into the new locale,
1943         using weak references to test if _nl_current_LC_FOO_used was linked in.
1944         * locale/setlocale.c [! SHARED]: Replace this conditional ...
1945         [NL_CURRENT_INDIRECT]: ... with this one.
1946         (_nl_current, _nl_C): Variables removed.
1947         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1948         weak references to _nl_current_LC_FOO_used.
1949         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1950         (free_category): New function, broken out of ...
1951         (free_mem): ... here.  Call that.
1952         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1953         instead of a loop.
1955         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1956         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1957         it is already absolute.
1959         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1960         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1961         [$(build-static) = yes] (tests-static): New variable.
1962         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1964 2002-08-26  Christoph Hellwig  <hch@lst.de>
1966         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1967         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1969 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1971         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1973         * sysdeps/s390/Dist: Add bits/link.h.
1975         * sysdeps/sh/Dist: New file.
1977         * sysdeps/ia64/Dist: Add ia64libgcc.S.
1979         * sysdeps/wordsize-32/Dist: New file.
1981         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1982         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1983         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1985         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
1986         sys/personality.h.
1988         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
1989         sparc/dl-brk.S.
1991         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
1993         * sysdeps/unix/bsd/sun/Dist: New file.
1995         * sysdeps/unix/bsd/osf/Dist: New file.
1997         * sysdeps/unix/bsd/hp/Dist: New file.
1999         * sysdeps/unix/arm/Dist: New file.
2001         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
2003         * sysdeps/mach/hurd/Dist: Add set-init.c.
2005         * sysdeps/i386/Dist: Add bits/link.h.
2007         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
2009         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
2011         * locale/Makefile (distribute): Add hashval.h.
2013         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
2015         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
2017         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
2018         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
2019         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
2020         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
2021         implementations.
2022         * libio/stdio.h: Likewise.
2023         * locale/locale.h: Likewise.
2024         * math/math.h: Likewise.
2025         * math/bits/mathcalls.h: Likewise.
2026         * setjmp/setjmp.h: Likewise.
2027         * signal/signal.h: Likewise.
2028         * stdlib/stdlib.h: Likewise.
2029         * string/string.h: Likewise.
2030         * time/time.h: Likewise.
2031         * wcsmbs/wchar.h: Likewise.
2032         * wctype/wctype.h: Likewise.
2034 2002-08-28  Roland McGrath  <roland@redhat.com>
2036         * locale/tst-C-locale.c (run_test): Remove __ from function names.
2038 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2039             Roland McGrath <roland@redhat.com>
2041         * locale/hashval.h (compute_hashval): Use prototype defn.
2042         (hashval_t): New macro, defined to unsigned long int
2043         if not already defined.
2044         (compute_hashval): Return hashval_t instead of unsigned long int.
2045         * locale/loadarchive.c (hashval_t): New macro.
2046         * locale/programs/locarchive.c: Include hashval.h directly instead
2047         of simple-hash.h.
2048         (compute_hashval, hashval_t): Define these macros first.
2049         (insert_name): Use archive_hashval instead of compute_hashval.
2050         (add_locale, delete_locales_from_archive): Likewise.
2052 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2054         * locale/programs/locarchive.c (insert_name): Suppress warnings about
2055         hash collisions if be_quiet.
2057 2002-08-27  Roland McGrath  <roland@redhat.com>
2059         * locale/locale.h (__newlocale, __duplocale, __freelocale,
2060         __uselocale): Don't declare these any more.
2061         * include/locale.h (__uselocale): Declare here instead, using __typeof.
2063         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
2064         and treat it as an EOF return.
2065         * sysdeps/unix/readdir_r.c: Likewise.
2067         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
2068         From Alexandre Oliva <aoliva@redhat.com>.
2069         * sysdeps/gnu/errlist-compat.c: Regenerated.
2071 2002-08-27  Brian Youmans  <3diff@gnu.org>
2073         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
2074         wording at request of copyright holder Stephen Moshier.
2075         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2076         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2077         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2078         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2079         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2080         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2081         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2082         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2083         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2084         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2085         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2086         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2087         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2088         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2090 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2092         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
2093         * ctype/ctype-extn.c (isblank_l): Add weak alias.
2094         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
2095         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
2096         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
2097         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
2098         * wctype/iswctype_l.c (iswctype_l): Likewise.
2100 2002-08-27  Roland McGrath  <roland@redhat.com>
2102         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
2104         * ctype/ctype.h (__exctype_l): Don't declare __ name.
2105         * stdlib/stdlib.h: Don't declare __*_l names.
2106         * include/stdlib.h: Declare them here instead.
2107         * include/string.h: Don't declare __*_l names.
2108         * string/string.h: Declare them here instead.
2109         * time/time.h: Don't declare __*_l names.
2110         * include/time.h: Declare them here instead.
2111         * wcsmbs/wchar.h: Don't declare __*_l names.
2112         * include/wchar.h: Declare them here instead.
2113         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
2114         Don't declare __*_l names.
2115         * include/wctype.h: Declare them here instead.
2116         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
2117         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
2118         * locale/langinfo.h: Don't declare __nl_langinfo_l.
2119         * include/langinfo.h: Declare it here with __typeof.
2121         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
2122         instead, taking an extra __locale_t argument.
2123         * time/Makefile (routines): Add strptime_l.
2124         * time/time.h (__strptime_l, strptime_l): Declare them.
2125         * time/strptime_l.c: New file.
2127         * time/time.h (__strftime_l, strftime_l): Declare them.
2128         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
2129         * time/strftime_l.c: New file.
2130         * time/wcsftime_l.c: New file.
2131         * time/Makefile (routines): Add strftime_l, wcsftime_l.
2132         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
2133         strftime_l, wcsftime_l.
2134         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
2135         or __wcsftime_l instead, taking an extra __locale_t argument.
2137         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
2138         (libc: GLIBC_2.3): ... here.
2140 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
2142         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
2144         * Makefile (distribute): Add LICENSES.
2146         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
2147         sys/debugreg.h.
2149         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
2151         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
2153         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
2155         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
2157         * sysdeps/mach/hurd/alpha/Dist: New file.
2159         * sysdeps/arm/Dist: Add bits/link.h.
2161         * sunrpc/Makefile: Distribute thrsvc.
2163         * stdio-common/Makefile: Remove more left-overs from old stdio.
2165         * include/linewrap.h: Removed.
2167         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
2169         * intl/Makefile (distribute): Add plural-eval.c.
2171 2002-08-27  Roland McGrath  <roland@redhat.com>
2173         * manual/sysinfo.texi (Mount Information): Correct file name to macro
2174         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
2175         Say mtab is in either /var/run or /etc.
2177 2002-08-26  Roland McGrath  <roland@redhat.com>
2179         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
2180         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
2182         * sysdeps/gnu/Versions: New file.
2183         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
2184         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
2185         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
2186         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
2187         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
2188         and _sys_nerr_internal instead of anything else.  Make it include
2189         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
2190         Make it emit some asm magic if [EMIT_ERR_MAX].
2191         * sysdeps/gnu/errlist.c: Regenerated.
2192         * sysdeps/gnu/errlist-compat.awk: New file.
2193         * sysdeps/gnu/errlist-compat.c: New file (generated).
2194         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
2195         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
2196         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
2197         (SYS_ERRLIST, SYS_NERR): Macros removed.
2198         (sys_nerr, _sys_nerr): Remove these weak aliases.
2199         * sysdeps/unix/sysv/linux/errlist.c: File removed.
2200         * sysdeps/unix/sysv/linux/errlist.h: File removed.
2201         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
2203         * include/libc-symbols.h (declare_symbol): New macro.
2204         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
2205         * configure.in: New check to define it.
2206         * configure: Regenerated.
2208 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
2210         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
2211         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
2213         * Make-dist: Remove traces of old stdio.
2214         * Makeconfig: Likewise.
2216         * locale/Makefile (localedef-aux): New variable.  Only md5
2217         assigned to it.  These files are not ddistributed in this directory.
2219         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
2220         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
2221         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
2223         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
2225         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
2226         set h_errno to NO_RECOVERY [PR libc/4360].
2228 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2230         * libio/Makefile (tests): Add bug-fopena+.
2231         * libio/bug-fopena+.c: New file.
2232         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
2233         file for _IO_IS_APPENDING if file isn't opened for reading, too.
2235         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
2237         * locale/xlocale.c: Fix the last change.  The variable still has
2238         to end in _data.
2239         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
2240         (__libc_tsd_set): Add _data prefix to variable name.
2242 2002-08-26  Roland McGrath  <roland@redhat.com>
2244         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
2245         macro with inline function.
2246         (sigset_get_old_mask): Likewise.
2247         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
2248         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2249         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2250         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
2251         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
2252         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
2253         values.
2254         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
2255         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
2257 2002-07-06  Bruno Haible  <bruno@clisp.org>
2259         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
2260         sigset_get_old_mask): Make it work with larger sigset_t.
2261         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
2262         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2263         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2265 2002-08-26  Roland McGrath  <roland@redhat.com>
2267         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
2268         * manual/filesys.texi (File Times): Document lutimes and futimes.
2269         * misc/Makefile (routines): Add them.
2270         * misc/Versions (libc: GLIBC_2.3): Likewise.
2271         * sysdeps/generic/lutimes.c: New file.
2272         * sysdeps/generic/futimes.c: New file.
2273         * sysdeps/mach/hurd/lutimes.c: New file.
2274         * sysdeps/mach/hurd/futimes.c: New file.
2276         * manual/filesys.texi (File Times): Add explicit note about null
2277         pointer argument to utimes.
2279 2002-08-26  Roland McGrath  <roland@frob.com>
2281         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
2282         (__ifreq): Add a cast.  Remove an unused variable.
2284         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
2285         _HURD_THREADVAR_LOCALE.
2287 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
2289         * posix/regexec.c (re_search_stub): Return correct match length
2290         if start != 0.
2291         * posix/bug-regex10.c: New test.
2292         * posix/Makefile (tests): Add bug-regex10.
2294 2002-08-26  Brian Youmans  <3diff@gnu.org>
2296         * COPYING.LIB: Replaced with fresh copy from
2297         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
2298         suggested copying permission notice now says version 2.1 instead
2299         of version 2.
2301         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
2302         from Library GPL.
2303         * crypt/crypt_util.c: Likewise.
2304         * crypt/ufc.c: Likewise.
2305         * elf/dl-conflict.c: Likewise.
2306         * elf/dl-iteratephdr.c: Likewise.
2307         * iconv/iconvconfig.h: Likewise.
2308         * malloc/arena.c: Likewise.
2309         * malloc/hooks.c: Likewise.
2310         * malloc/malloc.c: Likewise.
2311         * posix/glob/Makefile.ami: Likewise.
2312         * posix/glob/Makefile.in: Likewise.
2313         * stdlib/gmp-impl.h: Likewise.
2314         * stdlib/gmp.h: Likewise.
2315         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
2316         * sysdeps/generic/strnlen.c: Likewise.
2317         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
2318         * sysdeps/mach/hurd/recvmsg.c: Likewise.
2319         * sysdeps/mach/hurd/sendmsg.c: Likewise.
2320         * sysdeps/mach/hurd/spawni.c: Likewise.
2321         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
2322         * sysdeps/mach/powerpc/sysdep.h: Likewise.
2323         * sysdeps/mach/powerpc/thread_state.h: Likewise.
2324         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
2325         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
2326         * sysdeps/x86_64/gmp-mparam.h: Likewise.
2328         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
2329         Lesser GPL copying permission notice from 2 to 2.1.
2330         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
2331         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
2332         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2333         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
2334         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2335         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2336         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2337         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2338         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2339         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2340         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2341         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2342         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2343         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2344         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2345         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2346         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2347         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2348         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2349         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2350         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2351         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2352         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2353         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2354         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2355         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2356         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2357         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2358         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2359         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2360         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2361         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2362         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2363         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2364         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2365         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2366         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2367         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2368         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2369         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2370         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2371         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2372         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2373         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2374         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2375         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2376         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2377         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2378         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2379         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2380         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2381         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2382         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2383         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2384         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2386         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
2387         Moshier and Lesser GPL copying permission notice, per license from
2388         Moshier.
2389         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2390         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2391         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2392         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2393         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2394         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2395         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2396         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2397         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2398         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2399         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2400         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2401         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2402         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2404         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
2405         notice, per license from copyright holder Stephen Moshier.
2406         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2407         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2408         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2409         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2410         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2411         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2412         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2413         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2414         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2416 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2418         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
2419         (shared-only-routines): Likewise.
2421 2002-08-26  Roland McGrath  <roland@redhat.com>
2423         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
2424         name of "", store a null pointer instead.
2426         * configure.in (elf): Set to yes for freebsd*, netbsd*.
2427         * configure: Regenerated.
2429         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
2430         Initialize this instead of __libc_tsd_LOCALE_data.
2432         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
2433         ptsname_r to EINVAL.
2435         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
2437         * rt/Makefile: Revert last change, it was inappropriate to presume aio
2438         implementations depend on pthreads.
2439         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
2440         * rt/tst-aio64.c (do_test): Likewise.
2441         * rt/tst-aio2.c (do_test): Likewise.
2442         * rt/tst-aio3.c (do_test): Likewise.
2443         * rt/tst-aio4.c (do_test): Likewise.
2444         * rt/tst-aio5.c (do_test): Likewise.
2445         * rt/tst-aio6.c (do_test): Likewise.
2446         * rt/tst-aio7.c (do_test): Likewise.
2448         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2449         void so as to avoid compiler warnings.
2451         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2452         _IO_wide_data_FD, which is never used here.
2454         * libio/iofread.c
2455         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2456         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2457         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2459         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2460         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2462         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2463         (closelog): Likewise.
2465 2002-07-06  Bruno Haible  <bruno@clisp.org>
2467         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2469         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2470         * sysdeps/unix/alpha/pipe.S: ... here.
2471         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2473         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2475         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2476         * sysdeps/unix/i386/fork.S: Likewise.
2477         * sysdeps/unix/i386/pipe.S: Likewise.
2478         * sysdeps/unix/i386/wait.S: Likewise.
2480         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2481         * sysdeps/unix/arm/fork.S: Likewise.
2483         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2484         arguments.
2485         (DO_CALL): Swap argument order.
2486         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2487         arguments.
2488         (DO_CALL): Swap argument order.
2489         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2490         arguments.
2491         (DO_CALL): Swap argument order.
2492         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2493         arguments.
2494         (DO_CALL): Swap argument order.
2495         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2496         arguments.
2497         (DO_CALL): Swap argument order.
2498         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2499         arguments.
2500         (DO_CALL): Swap argument order.
2501         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2502         arguments.
2503         (DO_CALL): Swap argument order.
2505         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2506         (L): Define right for ELF.
2507         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2508         Now defined in sysdeps/i386/sysdep.h.
2510         * sysdeps/posix/readv.c: Ansify function definition.
2511         * sysdeps/posix/writev.c: Likewise.
2513         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2514         have the same size. Avoid direct cast from size_t to off_t.
2516         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2517         nul byte in entry[n].ut_user.
2518         (simulate_logout): Likewise.
2520         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2521         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2522         existence of corresponding members of 'struct utmp'.
2523         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2524         !_HAVE_UT_TYPE.
2526         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2527         allocate a buffer of at least BUFSIZ bytes, not just of
2528         sizeof (struct dirent).
2530         * sysdeps/generic/glob.c: Include <limits.h>.
2531         (NAME_MAX): Define a fallback.
2532         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2533         stack.
2534         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2535         (main): Allocate enough room for a 'struct dirent64' on the stack.
2536         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2537         'struct dirent'.
2539         * sysdeps/unix/sysv/linux/init-first.c: Don't include
2540         kernel-features.h.
2542         * inet/htontest.c: Include <sys/types.h>.
2544         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2546         * include/sys/sysctl.h: Comment fix.
2548         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2549         _dl_load_lock.
2550         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2552         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2554         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2555         (__getpeername): New alias.
2556         (__getsockname): New alias.
2557         (__socket): New alias.
2559         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2561         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2562         (__fcntl_internal): New alias.
2563         (__profil): New alias.
2565 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2567         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2568         entry was for getaddr* lookup or not.  Add only matching cache
2569         entry.  Change all callers [PR libc/4317].
2571         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2572         finding the read position [PR libc/4265].
2573         * libio/Makefile (tests): Add bug-rewind2.
2574         * libio/bug-rewind2.c: New file.
2576         * libio/bug-rewind.c: Fix creation of temp file.
2578 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2580         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2581         neither SUCCESS nor TRYAGAIN [PR libc/4259].
2582         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2583         to ENOENT if no entry is found.
2584         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2585         failure.
2586         * nis/nss_compat/compat-initgroups.c: Likewise.
2587         * nis/nss_compat/compat-pwd.c: Likewise.
2588         * nis/nss_compat/compat-spwd.c: Likewise.
2589         * nis/nss_nis/nis-alias.c: Likewise.
2590         * nis/nss_nis/nis-ethers.c: Likewise.
2591         * nis/nss_nis/nis-grp.c: Likewise.
2592         * nis/nss_nis/nis-hosts.c: Likewise.
2593         * nis/nss_nis/nis-initgroups.c: Likewise.
2594         * nis/nss_nis/nis-netgrp.c: Likewise.
2595         * nis/nss_nis/nis-network.c: Likewise.
2596         * nis/nss_nis/nis-proto.c: Likewise.
2597         * nis/nss_nis/nis-publickey.c: Likewise.
2598         * nis/nss_nis/nis-pwd.c: Likewise.
2599         * nis/nss_nis/nis-rpc.c: Likewise.
2600         * nis/nss_nis/nis-service.c: Likewise.
2601         * nis/nss_nis/nis-spwd.c: Likewise.
2602         * resolv/nss_dns/dns-host.c: Likewise.
2603         * resolv/nss_dns/dns-network.c: Likewise.
2604         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2605         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2606         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2607         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2608         * nis/nss_nisplus/nisplus-network.c: Likewise.
2609         * nis/nss_nisplus/nisplus-proto.c: Likewise.
2610         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2611         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2612         * nis/nss_nisplus/nisplus-service.c: Likewise.
2613         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2614         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2615         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2616         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2617         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2619         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2620         declaring __restore and __restore_rt as hidden (if possible).
2622 2002-08-25  Roland McGrath  <roland@redhat.com>
2624         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2626         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2627         (getutent_r_file, internal_getut_r): Updated all callers.
2628         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2630 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2632         * locale/programs/locale.c: Don't print aliases for non-existing
2633         locales for 'locale -a'.
2634         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2636 2002-07-19  H.J. Lu  <hjl@gnu.org>
2638         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2640 2002-07-16  H.J. Lu  <hjl@gnu.org>
2642         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2643         sys/personality.h.
2644         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2646 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2648         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2649         not moved ahead of the fputs call.
2650         * elf/tst-tlsmod2.c (in_dso): Likewise.
2651         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2652         * elf/tst-tlsmod4.c (in_dso): Likewise.
2654 2002-08-25  Andreas Schwab  <schwab@suse.de>
2656         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2658 2002-08-25  Roland McGrath  <roland@redhat.com>
2660         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2661         resetting handler, to avoid the possibility of a spurious SIGALRM
2662         delivered to the user's handler.
2663         Reported by Amit D. Chaudhary <amitc@brocade.com>,
2665         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
2666         set -fkeep-inline-functions, which is not needed for the current file.
2668         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2669         (_dl_setup_hash): Add attribute_hidden.
2670         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2671         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2672         (_dl_new_object, _dl_map_object_deps): Likewise.
2673         (_dl_map_object_deps_internal): Remove decl.
2674         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2676         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2677         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2678         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2679         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2680         instead relying on the compiler to produce only GOTOFF variable refs.
2682 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2684         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
2686         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2687         inline to avoid defining it in every file which includes this header.
2689         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2690         defining DONT_USE_BOOTSTRAP_MAP.
2692         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2693         * libio/tst-mmap-setvbuf.c (main): Likewise.
2694         * libio/tst-widetext.c (main): Likewise.
2696         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2697         message.
2698         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2699         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2701         * sysdeps/i386/elf/configure.in: Unconditionally define
2702         PI_STATIC_AND_HIDDEN.
2703         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2704         PI_STATIC_AND_HIDDEN is defined as well.
2705         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2707 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
2709         * sysdeps/ia64/bzero.S: Define __bzero as well.
2711         * locale/programs/charmap.c (charmap_new_char): Don't use
2712         ULONG_MAX as maximum UCS4 value.
2714         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2716         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2718         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2719         * malloc/malloc.c (mALLINFo): Likewise.
2721         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2723         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2724         examining result of _IO_do_flush call.
2726         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2727         Use prec not spec when sizing buffers.
2729         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2730         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2731         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2732         * stdio-common/vfscanf.c (inchar): Likewise.
2733         * misc/efgcvt_r.c (fcvt_r): Likewise.
2734         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2735         * elf/readlib.c (process_file): Likewise.
2736         * elf/sprof.c (load_profdata): Likewise.
2737         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2738         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2739         * locale/programs/charmap.c (charmap_read): Likewise.
2740         * libio/fileops.c: Likewise.
2741         * libio/fmemopen.c: Likewise.
2742         * stdlib/strtod.c: Likewise.
2743         * elf/dl-load.c: Likewise.
2744         * iconv/iconvconfig.c: Likewise.
2745         * iconv/iconv_prog.c (process_block): Likewise.
2746         * elf/rtld.c (dl_main): Likewise.
2748         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2749         macro to calm down the compiler.
2751         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2753         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2755         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2756         placement of errno definition.
2757         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2758         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2759         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2760         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2761         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2763         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2764         from 1024 to 65536, to avoid buffer overrun.
2766 2002-08-16  Paul Eggert  <eggert@twinsun.com>
2768         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2769         from 1024 to 65536, to avoid buffer overrun.
2770         * resolv/res_query.c (MAXPACKET): Likewise.
2772 2002-08-24  Andreas Jaeger  <aj@suse.de>
2774         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2776 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
2778         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2779         two52 locally.
2780         (log2): Likewise.
2781         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2782         Patch by Simon Gee <simong@agile.tv>.
2784         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2785         Prefer reading /proc/stat since it is more uniform across
2786         architectures.
2788         * manual/texinfo.tex: Update to latest official version.
2790         * sysvipc/sys/shm.h: Remove SHMLBA definition.
2791         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2792         * sysdeps/gnu/bits/shm.h: Likewise.
2793         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2794         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2795         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2796         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2797         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2798         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2799         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2800         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2801         since this is what the kernel says.
2803         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2804         since ssize_t is needed as well.  Replace const with __const.
2806 2002-08-23  Roland McGrath  <roland@redhat.com>
2808         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2809         __malloc_hook, __realloc_hook, __memalign_hook,
2810         __after_morecore_hook): Variable definitions moved to ...
2811         * malloc/malloc.c: ... here, so as to be before all references.
2813         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2814         global variable reference in an unused asm parameter, to ensure the
2815         compiler has set up the GOT register before we use it.
2817         * malloc/hooks.c: Move variable definitions ahead of uses.
2818         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2819         initializers that make reference to variables they define.
2821 2002-08-23  Andreas Jaeger  <aj@suse.de>
2823         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2824         alloca, free, qsort.
2826         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2828         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2829         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2831         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2832         <hch@lst.de>.
2833         * sysdeps/generic/fgetxattr.c: New file.
2834         * sysdeps/generic/flistxattr.c: New file.
2835         * sysdeps/generic/fremovexattr.c: New file.
2836         * sysdeps/generic/fsetxattr.c: New file.
2837         * sysdeps/generic/getxattr.c: New file.
2838         * sysdeps/generic/listxattr.c: New file.
2839         * sysdeps/generic/lgetxattr.c: New file.
2840         * sysdeps/generic/llistxattr.c: New file.
2841         * sysdeps/generic/lremovexattr.c: New file.
2842         * sysdeps/generic/lsetxattr.c: New file.
2843         * sysdeps/generic/removexattr.c: New file.
2844         * sysdeps/generic/setxattr.c: New file.
2845         * misc/Makefile (headers): Add sys/xattr.h.
2846         (routines): Add *xattr calls.
2847         * misc/Versions: Add *xattr calls with version 2.3.
2848         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2849         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2850         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2851         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2852         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2853         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2854         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2855         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2857 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
2859         * sysdeps/powerpc/elf/libc-start.c
2860         (__cache_line_size): Declare.
2861         (__aux_init_cache): New function.
2862         (__libc_start_main): Change type of `auxvec' parameter to
2863         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
2864         __aux_init_cache.
2865         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2866         (__cache_line_size): Declare.
2867         (__aux_init_cache): New function.
2868         (DL_PLATFORM_INIT): Define.
2869         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2870         value to select the correct stride for dcbz.
2872 2002-08-22  Andreas Jaeger  <aj@suse.de>
2874         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2875         shmat.
2877 2002-08-22  Roland McGrath  <roland@redhat.com>
2879         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2880         position indicated by locrectab against file bounds before rounding to
2881         page size.  In mapping loop, always set TO before breaking out of
2882         contiguous range coalescing loop.
2884         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2885         (or MAP_COPY if available) instead of MAP_SHARED.
2887         * scripts/firstversions.awk: When encountering a version newer than
2888         the specified earliest version, be sure to emit the specified earliest
2889         version first if any renaming of an older version to that has been.
2891 2002-08-21  Roland McGrath  <roland@redhat.com>
2893         * configure.in: Make GCC version check require 3.[2-9]* and no others.
2894         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2895         (Configuring and compiling): Don't mention older GCC versions any more.
2896         * INSTALL: Regenerated.
2898         * manual/install.texi (Configuring and compiling, Installation,
2899         Running make install, Linux): Linux -> GNU/Linux where appropriate.
2901         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2902         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2903         and with noinline otherwise.  Remove hack alloca use to prevent
2904         inlining, we can ask for it explicitly nowadays.
2906         * dlfcn/bug-dlsym1.c: New file.
2907         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2908         * dlfcn/Makefile (distribute): Add them.
2909         (tests): Add bug-dlsym1 here.
2910         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2911         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2912         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2914 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
2916         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
2917         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2918         before relocation.
2919         (_dl_start): Don't use local bootstrap_map variable if
2920         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
2921         pass bootstrap_map to _dl_start_final in this case either.  Don't
2922         pass start_time to _dl_start_final ever.
2923         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2925         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2926         This cripples the scope lists necessary to search for symbols in
2927         dependencies which are not in the global scope.
2929         * include/setjmp.h (__libc_longjmp): Add declaration.
2931 2002-08-21  Andreas Jaeger  <aj@suse.de>
2933         * sysdeps/x86_64/_mcount.S: Fix assembler.
2935         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2936         with biarch support.
2938 2002-08-21  Andreas Jaeger  <aj@suse.de>
2940         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2942         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2944         * sysdeps/x86_64/machine-gmon.h: New file.
2945         * sysdeps/x86_64/_mcount.S: New file.
2947 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2949         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
2950         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2951         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2952         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2953         to TL_INIT_TP.  Otherwise pass 1.
2954         * include/link.h (struct link_map): Add l_tls_tp_initialized.
2955         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2957 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
2959         * locale/programs/localedef.c (add_to_readlist): Error about
2960         circular dependencies only if the locale in question hasn't
2961         been finished.
2962         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2963         CTYPE_LOCALE to load_locale.
2964         * locale/programs/locfile.c (locfile_read): Don't include
2965         unneeded but available locales in locale_mask.
2967         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2968         print any messages about enlarging archive.
2970 2002-08-20  Brian Youmans  <3diff@gnu.org>
2972         * manual/contrib.texi: Removed licenses, added acknowledgements
2973         for contributions by Intel, IBM, Craig Metz.
2974         * LICENSES: New file, contains the text of all non-FSF licenses in the
2975         distribution that require putting the notice in the accompanying
2976         documentation.
2977         * README.template, README: Mention LICENSES.
2979         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2980         new one modelled on the modern BSD license, per recent letter
2981         of permission from CMU.
2982         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2984         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
2985         from IBM to FSF, per the recent Software Letter.  Changed the
2986         distribution terms from GPL to LGPL.
2988         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
2989         copying permission notice (Lesser GPL), per recent IBM Software Letter.
2990         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2991         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2992         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2993         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2994         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2995         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2996         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2997         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2999         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
3000         from IBM to FSF, per the recent Software Letter.  Corrected the
3001         text of the copying permission notice to say Lesser GPL instead
3002         of GPL in warranty disclaimer paragraph.
3003         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
3004         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
3005         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
3006         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
3007         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
3008         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
3009         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
3010         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
3011         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
3012         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
3013         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
3014         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
3015         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
3016         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
3017         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
3018         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
3019         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
3020         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
3021         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
3022         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
3023         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
3025         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
3026         permission notice to say Lesser GPL instead of GPL in warranty
3027         disclaimer paragraph.
3028         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
3029         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3030         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3031         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3032         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3033         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3034         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3035         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3036         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3037         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3038         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
3039         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
3040         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
3041         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
3042         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
3043         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
3044         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
3045         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3046         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3047         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3048         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
3049         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
3050         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
3052 2002-08-20  Roland McGrath  <roland@redhat.com>
3054         Fix ABI compatibility with libc compiled with old tools on powerpc.
3055         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3056         and Jack Howarth <howarth@bromo.med.uc.edu>.
3057         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
3058         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
3059         pass -DHAVE_DOT_HIDDEN for these files.
3060         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
3061         __floatdisf.
3062         * sysdeps/powerpc/divdi3.c: New file.
3063         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
3064         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
3066 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
3068         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
3069         partially overlapping mappings.  Remove unneeded (char *) casts.
3070         Never allow duplication of ranges in mapped areas.
3072 2002-08-20  Roland McGrath  <roland@redhat.com>
3074         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
3075         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
3077 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
3079         * include/unistd.h: Don't hide _exit.
3081         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
3082         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
3083         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
3084         argument 1 to TLS_INIT_TP.
3085         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
3087         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
3089         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
3090         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
3091         memory allocation to...
3092         (allocate_dtv): ...here.  New function.
3093         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
3094         call allocate_dtv instead of _dl_allocate_tls_storage.
3095         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
3096         (_dl_get_tls_static_info): New function.
3097         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
3098         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
3100 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
3102         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
3103         immediately if result == NULL.
3105 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
3107         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
3109 2002-08-18  Roland McGrath  <roland@frob.com>
3111         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
3112         instead of __file_name_split.
3113         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
3115         * sysdeps/mach/hurd/dl-sysdep.c
3116         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
3117         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
3119 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
3121         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
3122         in change before last: MAX -> MIN.
3124 2002-08-15  Roland McGrath  <roland@redhat.com>
3126         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
3127         if seek would go past it.
3128         (mmap_remap_check): If file position is at or past EOF after check,
3129         leave read pointers at EOF and don't seek.
3131         * libio/tst-mmap-offend.c: New file.
3132         * libio/Makefile (tests): Add it.
3134         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
3135         the name as passed, rather than the name in the archive dictionary.
3137 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
3139         * csu/Makefile: Define elide-routines.os not static-only-routines.
3141         * include/sched.h (__clone): Add varargs at the end.
3143         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
3144         case.
3145         (TLS_INIT_HELPER): If defined, use it.
3146         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
3148 2002-08-15  Roland McGrath  <roland@redhat.com>
3150         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
3151         on L->l_prev; it can happen under rtld --verify too.
3153         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
3154         header separately, just map an initial window of 2MB from the file
3155         and remap if that is not large enough to cover the whole header.
3157 2002-08-15  Andreas Jaeger  <aj@suse.de>
3159         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
3160         version 2.3.
3161         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3162         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
3163         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
3164         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
3165         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
3166         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3167         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3168         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
3169         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
3170         Patch by Andreas Gruenbacher <agruen@suse.de>.
3172         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
3174 2002-08-14  Roland McGrath  <roland@redhat.com>
3176         * locale/locarchive.h (struct locale_category_data): Give this name to
3177         the type of locale_data_t's elements.
3178         * locale/programs/locarchive.c (cmpcategorysize): New static function.
3179         (add_locale): Use that to sort the categories by size and put all
3180         those that fit into two pages into the LC_ALL block, instead of
3181         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
3182         (show_archive_content): Detect categories inside LC_ALL block
3183         directly, instead of hard-coding.
3184         (oldlocrecentcmp): Compare just on file locations used.
3186 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
3188         * locale/programs/locarchive.c (struct oldlocrecent): New type.
3189         (oldlocrecentcmp): New function.
3190         (enlarge_archive): Re-add locales in the order they were added
3191         to the archive.
3192         (add_locale): Put all the small locale files together, if the small
3193         locale file block would occupy less pages if page size aligned, align
3194         it.
3195         (show_archive_content): Adjust for locale archives optimized for speed.
3197 2002-08-14  Roland McGrath  <roland@frob.com>
3199         * configure.in: Use "MISSING" as not-found value for MIG.
3200         * sysdeps/mach/configure.in: Fatal if mig not found.
3201         * configure, sysdeps/mach/configure: Regenerated.
3203 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
3205         * locale/loadarchive.c (archfname): Add missing slash.
3207         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
3208         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
3210 2002-08-12  Roland McGrath  <roland@redhat.com>
3212         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
3213         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
3214         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
3215         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
3216         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
3217         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
3218         * sysdeps/generic/waitpid.c: Likewise.
3220         * include/net/if.h: New file.  Use libc_hidden_proto
3221         for if_nametoindex and if_indextoname.
3222         * sysdeps/generic/if_index.c: Add libc_hidden_def.
3223         * sysdeps/mach/hurd/if_index.c: Likewise.
3224         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
3226         * include/grp.h (setgroups): Add libc_hidden_proto.
3227         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
3228         * sysdeps/mach/hurd/setgroups.c: Likewise.
3229         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
3230         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3232 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
3234         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
3235         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
3236         * sysdeps/generic/setegid.c (setegid): Likewise.
3237         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
3238         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
3239         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
3240         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
3241         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
3242         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
3243         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
3244         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
3245         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
3246         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
3247         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
3248         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
3249         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
3251         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
3252         __lxstat_internal, __lxstat64_internal): Remove.
3253         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
3254         Add hidden_proto.
3255         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
3256         Remove INTDEF where present, remove #undef at the beginning.
3257         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
3258         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
3259         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
3260         * sysdeps/generic/xstat.c (__xstat): Likewise.
3261         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
3262         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
3263         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
3264         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
3265         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
3266         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
3267         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
3268         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
3269         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
3270         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
3271         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
3272         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
3273         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
3274         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
3275         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
3276         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
3277         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
3278         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
3279         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
3280         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
3281         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
3282         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
3283         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
3284         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3285         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3286         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3287         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
3288         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
3289         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
3290         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3291         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
3292         * sysdeps/unix/xstat.c (__xstat): Likewise.
3294         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
3295         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
3296         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
3297         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
3298         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
3299         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
3300         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
3302         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
3303         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
3304         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
3305         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
3306         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
3307         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
3308         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
3309         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
3310         Likewise.
3311         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
3312         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
3313         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
3314         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
3315         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
3316         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
3317         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
3318         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
3320         * include/string.h (strcoll): Add libc_hidden_proto.
3321         * string/strcoll.c (strcoll): Add libc_hidden_def.
3323         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
3325 2002-08-11  Philip Blundell  <philb@gnu.org>
3327         * sysdeps/arm/Makefile: New file.
3329 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3331         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
3332         by another '|', end of regex or enclosing ')', clear branch.
3333         * posix/bug-regex9.c: New test.
3334         * posix/Makefile (tests): Add bug-regex9.
3336 2002-08-12  Roland McGrath  <roland@redhat.com>
3338         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
3339         start count condition, use TOTAL instead of variable that was never
3340         set.  Fix outer loop termination condition to TOTAL >= after update.
3342         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
3343         dl_tls_static_align and dl_tls_static_nelem.
3345 2002-08-11  Roland McGrath  <roland@redhat.com>
3347         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
3348         of the TLS macros, otherwise the compiler might not have initialized
3349         the PIC register yet when we use the PLT via asm.
3350         * elf/tst-tlsmod3.c (in_dso2): Likewise.
3351         * elf/tst-tlsmod2.c (in_dso): Likewise.
3353         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
3355         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
3356         Evaluate argument exactly once.  Remove __volatile__ from asm's.
3358         * include/unistd.h: Use libc_hidden_proto for getdomainname
3359         and getlogin_r.
3360         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
3361         * sysdeps/mach/hurd/getdomain.c: Likewise.
3362         * sysdeps/unix/getlogin_r.c: Likewise.
3363         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
3364         * sysdeps/generic/getlogin_r.c: Likewise.
3366         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
3367         * sunrpc/rtime.c: Add libc_hidden_def.
3369         * include/string.h: Use libc_hidden_proto for basename.
3370         * string/basename.c [_LIBC]: Add libc_hidden_def.
3372         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
3374         * locale/loadarchive.c: munmap -> __munmap throughout.
3376         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
3377         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
3378         * sysdeps/generic/gai_strerror.c: Likewise.
3380         * include/sys/errno.h: New file.
3382         * include/signal.h: No libc_hidden_proto for raise,
3383         __libc_current_sigrtmin, __libc_current_sigrtmax.
3384         These need to be overridden by linuxthreads.
3385         * sysdeps/posix/raise.c: Reverted.
3386         * sysdeps/generic/raise.c: Reverted.
3387         * signal/allocrtsig.c: Reverted.
3389         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
3391 2002-08-10  Roland McGrath  <roland@redhat.com>
3393         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
3394         * locale/localeinfo.h: Declare it.
3395         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
3396         current locale if it's not in the file list.
3397         Call _nl_archive_subfreeres.
3399 2002-08-10  Andreas Jaeger  <aj@suse.de>
3401         * sysdeps/i386/strchr.S: Add comment.
3403 2002-08-10  Roland McGrath  <roland@redhat.com>
3405         * include/wchar.h (putwc): Use libc_hidden_proto.
3406         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
3407         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
3408         * stdio-common/dprintf.c: Add libc_hidden_def.
3409         * stdio-common/fprintf.c: Likewise.
3410         * stdio-common/sprintf.c: Likewise.
3411         * stdio-common/sscanf.c: Likewise.
3412         * libio/iofwrite.c: Likewise.
3413         * libio/memstream.c: Likewise.
3414         * libio/putwc.c: Likewise.
3415         * stdio-common/perror.c: Likewise.
3416         * sysdeps/posix/remove.c: Likewise.
3417         * sysdeps/generic/remove.c: Likewise.
3418         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
3419         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
3421 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
3423         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3424         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
3425         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3426         towlower, towupper): Add libc_hidden_weak.
3428         * include/bits/dlfcn.h: New file.
3429         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
3431         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
3432         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
3433         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
3434         * include/pwd.h (_nss_files_parse_pwent): Likewise.
3435         * include/shadow.h (_nss_files_parse_spent): Likewise.
3436         * include/netdb.h (_nss_files_parse_protoent,
3437         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
3438         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
3439         (LINE_PARSER): Use it.
3440         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
3441         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
3443         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
3444         #endif.
3446         * manual/debug.texi (%MENU%): Remove trailing dot.
3447         Reported by <hayastan132@hotmail.com>.
3449         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
3450         aliases.
3451         (lseek): Dummy.
3452         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
3453         Likewise.
3455 2002-08-09  Roland McGrath  <roland@redhat.com>
3457         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
3458         name to find codeset name (if any) and normalize it.  If the
3459         normalized name differs, look up only that in the archive.
3460         * locale/programs/locarchive.c (add_locale_to_archive): If the name
3461         contains a codeset, normalize the codeset store only the normalized
3462         name in the archive.  If not, add an alias containing the locale's
3463         normalized codeset name.  Apply codeset name normalization when
3464         matching entries in the alias file.
3466         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3467         decrement HEAD->namehash_used here.
3468         (add_locale): Only need to insert name string when name_offset != 0.
3470         * locale/programs/localedef.c (options): Add -A/--alias-file.
3471         (alias_file): New variable.
3472         (parse_opt): Grok -A, set that.
3473         * locale/programs/localedef.h: Declare it.
3475         * locale/locarchive.h (struct locrecent): Add `refs' member.
3476         * locale/programs/locarchive.c (insert_name): New function, broken out
3477         of ...
3478         (add_locale_to_archive): ... here.  Call that.
3479         (add_alias): New function.
3480         (add_locale): New static function, add_locale_to_archive renamed.
3481         (add_locale_to_archive): Call that and use add_alias to add an alias
3482         for the name with codeset if the given name lacks it.
3483         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3485         * locale/Makefile (routines): Add loadarchive.
3486         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3487         (_nl_load_locale_from_archive): New function.
3488         * locale/localeinfo.h: Declare it.
3489         * locale/findlocale.c (_nl_find_locale): If using default locale path,
3490         try _nl_load_locale_from_archive first.
3492         * locale/loadlocale.c (_nl_intern_locale_data): New function,
3493         broken out of _nl_load_locale.
3494         (_nl_load_locale): Call that.
3495         * locale/localeinfo.h: Declare it.
3496         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3497         (struct locale_data): Remove unused member `options'.
3498         * locale/findlocale.c (_nl_remove_locale): Update uses.
3499         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3500         * locale/C-collate.c: Update initializer.
3501         * locale/C-identification.c: Likewise.
3502         * locale/C-measurement.c: Likewise.
3503         * locale/C-telephone.c: Likewise.
3504         * locale/C-address.c: Likewise.
3505         * locale/C-name.c: Likewise.
3506         * locale/C-paper.c: Likewise.
3507         * locale/C-time.c: Likewise.
3508         * locale/C-numeric.c: Likewise.
3509         * locale/C-monetary.c: Likewise.
3510         * locale/C-messages.c : Likewise.
3511         * locale/C-ctype.c: Likewise.
3513         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3514         use CHAR_BIT instead of BITSPERBYTE.
3516         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3517         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3518         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3519         (_nl_remove_locale): Likewise.
3520         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3522         * locale/findlocale.c (_nl_default_locale_path): New variable.
3523         (_nl_find_locale): If LOCALE_PATH is null, default to that.
3524         * locale/localeinfo.h: Declare it.
3525         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3526         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
3527         * locale/newlocale.c (__newlocale): Likewise.
3529         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3530         * inet/rexec.c (rexec_af): Add libc_hidden_def.
3531         * sysdeps/generic/morecore.c: Likewise.
3532         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3533         (__libc_current_sigrtmax): Likewise.
3535 2002-08-08  Roland McGrath  <roland@redhat.com>
3537         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3538         * catgets/open_catalog.c (__open_catalog): Likewise.
3540         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3541         from typo INITIAL_NUM_NANES.
3542         (create_archive): Update use.
3544 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3546         * sysdeps/unix/sysv/linux/sigwait.c: New file.
3548 2002-08-08  Roland McGrath  <roland@frob.com>
3550         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3552 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3554         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3555         else and undefine after including wcstol_l.c.
3556         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3558 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3560         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3562 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
3564         * configure.in: Make the test for broken_alias_attribute stricter.
3566 2002-05-24  Robert Love  <rml@tech9.net>
3568         * posix/Makefile (routines): Add sched_getaffinity and
3569         sched_setaffinity.
3570         * posix/sched.h: Add declarations for sched_getaffinity and
3571         sched_setaffinity.
3572         * sysdeps/generic/sched_getaffinity.c: New file.
3573         * sysdeps/generic/sched_setaffinity.c: New file.
3574         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3575         sched_setaffinity.
3577 2002-08-06  Andreas Schwab  <schwab@suse.de>
3579         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3581 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3583         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3584         message.
3586         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3587         It is known to be defined.
3589         * include/string.h: Define index and rindex only if _ISOMAC is not
3590         defined.
3592         * elf/rtld.c: Include <errno.h>.
3593         * sysdeps/generic/libc-tls.c: Likewise.
3595 2002-08-07  Roland McGrath  <roland@redhat.com>
3597         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3598         it internally.
3599         (precsize_aton): Likewise.
3601         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3602         the static symbols added in the last change (doofus is me).
3604         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3605         loop to notice missing categories in a composite name.
3607         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3608         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3609         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3610         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3612 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3614         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3616 2002-08-07  Roland McGrath  <roland@redhat.com>
3618         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3619         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3620         Reported by Jakub Jelinek  <jakub@redhat.com>.
3622 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
3624         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3625         division.
3627 2002-08-06  Roland McGrath  <roland@redhat.com>
3629         * include/getopt.h: Put private decls inside [_GETOPT_H].
3630         Use libc_hidden_proto for getopt_long, getopt_long_only.
3631         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3632         Add libc_hidden_def.
3634         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3635         Define as a macro for __dl_iterate_phdr.
3637         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3638         made static.  Add __ name as a strong alias.
3639         (internal_endnetgrent): Likewise.
3640         (internal_getnetgrent_r): Likewise.
3642         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3643         with no __ prefix.
3644         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3645         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3646         all *_l functions with no __ prefix.
3647         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3648         * ctype/ctype_l.c: Likewise.
3649         * locale/nl_langinfo.c: Likewise.
3650         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3651         * stdlib/stdlib.h [__USE_GNU]: Likewise.
3652         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3653         * wctype/wctype.h [__USE_GNU]: Likewise.
3654         * string/strcoll_l.c (strcoll_l): Define as weak alias.
3655         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3656         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3657         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3658         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3659         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3660         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3661         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3662         (__wcscasecmp_l): Add libc_hidden_def.
3663         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3664         (__wcsncasecmp_l): Add libc_hidden_def.
3665         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3666         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3667         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3668         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3669         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3670         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3671         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3672         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3673         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3674         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3675         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3676         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3677         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3678         * wctype/wctype_l.c (wctype_l) Define as weak alias.
3680 2002-08-05  Roland McGrath  <roland@redhat.com>
3682         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3683         netname2user, host2netname, user2netname, key_gendes.
3684         * sunrpc/netname.c: Add libc_hidden_def.
3685         * sunrpc/key_call.c: Likewise.
3687         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3688         freeaddrinfo.
3689         * inet/getnameinfo.c: Add libc_hidden_def.
3690         * sysdeps/generic/getaddrinfo.c: Likewise.
3691         * sysdeps/posix/getaddrinfo.c: Likewise.
3693         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3694         * wcsmbs/wmemchr.c: Add libc_hidden_def.
3695         * wcsmbs/wmemset.c: Add libc_hidden_def.
3697         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3698         (index, rindex): Define as macros for strchr, strrchr.
3700         * string/envz.c (envz_strip): index -> strchr
3702         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3703         * sunrpc/rpc_prot.c: Add libc_hidden_def.
3705         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3706         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3708         * include/stdlib.h: Use libc_hidden_proto for wctomb.
3709         * stdlib/wctomb.c: Add libc_hidden_def.
3711         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3712         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3713         * resolv/herror.c: Likewise.
3714         * inet/rcmd.c: Add libc_hidden_def.
3715         * inet/ruserpass.c: Likewise.
3716         * inet/getnetgrent_r.c: Likewise.
3718         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3719         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
3720         for svcerr_auth, svcerr_noprog, svcerr_progvers.
3721         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3722         libc_hidden_def.
3723         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3724         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3726         * sysdeps/posix/system.c (do_system): New function, guts broken out of
3727         __libc_system.
3728         (__libc_system): Call it, putting just the line == NULL test here.
3730         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3731         variables work right.
3733         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3734         * elf/dl-close.c (_dl_close): Likewise.
3736         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3737         in6addr_any, in6addr_loopback.  Remove decls for
3738         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3739         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3740         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3741         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3742         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3743         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3744         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3745         in6addr_loopback.
3746         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3748         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3749         ether_aton_r.
3750         * inet/ether_aton_r.c: Add libc_hidden_def.
3751         * inet/ether_ntoa_r.c: Likewise.
3753         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3754         xprt_unregister.
3755         * sunrpc/svc.c: Add libc_hidden_def.
3756         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3757         pmap_set, pmap_unset.
3758         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3759         * sunrpc/pm_getport.c: Likewise.
3760         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3761         * sunrpc/publickey.c: Add libc_hidden_def.
3763 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3765         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
3766         the other memset call in this function.
3768         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3769         at correct index.  Clear BSS region now that memalign is used.
3771 2002-08-05  Roland McGrath  <roland@redhat.com>
3773         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3774         * sysdeps/generic/uname.c: Add libc_hidden_def.
3775         * sysdeps/mach/hurd/uname.c: Likewise.
3777 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
3779         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3780         wcspbrk): Add libc_hidden_proto.
3781         * time/strftime.c (my_strftime): Add libc_hidden_def.
3782         (strftime): Remove libc_hidden_def.
3783         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3784         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3785         * wcsmbs/wcsspn.c (wcsspn): Likewise.
3786         * wcsmbs/wcscmp.c (wcscmp): Likewise.
3787         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3788         * wcsmbs/wcscoll.c (wcscoll): Likewise.
3790         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3791         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3792         __rpc_thread_createerr): Add libc_hidden_proto.
3793         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3794         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3795         __rpc_thread_createerr): Add libc_hidden_def.
3797         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3798         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3799         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3800         clnt_perror, clnt_sperror): Add libc_hidden_def.
3801         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3803         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3804         libc_hidden_proto.
3805         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3806         * sunrpc/des_soft.c (des_setparity): Likewise.
3808         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3809         Add libc_hidden_proto.
3810         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3811         Add libc_hidden_def.
3813 2002-08-05  Roland McGrath  <roland@redhat.com>
3815         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3816         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3817         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3818         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3819         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3820         old data, abandoning the original memory allocated by rtld at startup,
3821         instead of calling realloc normally.
3823 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3825         * po/fr.po: Update from translation team.
3827 2002-08-04  Roland McGrath  <roland@redhat.com>
3829         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3830         then generate a dummy module under the given name, obeying the
3831         normal rules for the "caller" field.
3833         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3834         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
3836         * include/pthread.h: Don't declare __pthread_initialize_minimal as
3837         weak here; we declare it weak or strong in the one place we use it.
3838         * sysdeps/generic/libc-start.c: ... which is here.
3839         Don't make the decl weak if [USE_TLS], since static programs need TLS
3840         setup even when single-threaded.
3842         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3844         * elf/Makefile (test-srcs): Add $(modules-names) to it.
3845         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3846         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3847         all these variables.
3849 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3851         * include/stdio.h: Don't define macro magic to redirect function
3852         calls if _ISOMAC is defined.
3854         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3855         ldouble asin tests.
3857 2002-08-04  Roland McGrath  <roland@redhat.com>
3859         * stdlib/lrand48_r.c: Add libc_hidden_def.
3861         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3862         TCB with __libc_memalign instead of mmap.
3863         (_dl_deallocate_tls): Free it with free instead of munmap.
3865         * Makerules (cpp-srcs-left): When setting this to run
3866         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3867         words.  Combine the two loops into one on the concatenated list,
3868         including those as well as $(test-srcs).
3870         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3871         since we align here with optimally minimal waste anyway.
3872         (malloc): Just call that.
3874         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3875         the right variable.
3877         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3878         to compute memory location for l_tls_initimage.
3879         * elf/rtld.c (_dl_start): Likewise.
3880         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3882         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3883         because the .d file is generated in the non-shared case and
3884         so fails to catch them otherwise.
3886         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3887         split out of _dl_allocate_tls.
3888         (_dl_allocate_tls_init): Likewise.
3889         (_dl_allocate_tls): Call those.
3890         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3891         * elf/rtld.c (dl_main): Call them separately instead of calling
3892         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
3893         is finished, so that the initializer data has been relocated before we
3894         copy it into the main thread's TLS block.
3896         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3897         loop conditions, prevented the last used module from being initialized.
3899 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3901         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3902         if glob resp. globfree are not macros.
3903         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3904         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3905         Add libc_hidden_ver.
3906         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3907         libc_hidden_def.
3908         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3909         instead of libc_hidden_weak.
3910         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3911         libc_hidden_ver instead of libc_hidden_def.
3912         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3913         libc_hidden_ver instead of libc_hidden_def.
3914         (wcstoll, wcstoq): Remove libc_hidden_weak.
3915         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3916         libc_hidden_ver.
3917         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3918         libc_hidden_ver.
3919         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3920         libc_hidden_ver.
3921         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3922         libc_hidden_ver.
3924 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3926         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
3927         to access _sys_siglist.
3928         * string/strsignal.c: Likewise.
3929         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3930         * sysdeps/gnu/siglist.c: Likewise.
3931         * sysdeps/unix/siglist.c: Likewise.
3932         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3934         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3936         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3938         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3939         alias and use it.
3940         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3942         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3943         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3944         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3946         * include/time.h: Add libc_hidden_proto for __gmtime_r.
3947         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3949         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3950         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3951         and __gconv_get_cache respectively.
3952         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3953         defined static.  Change all users.
3954         (__gconv_get_cache): New function.
3955         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3956         (__gconv_get_alias_db): New function.
3957         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3958         (__conv_modules_db): Likewise.
3959         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3960         and __gconv_get_alias_db.
3961         * iconv/iconv_prog.c: Use the new functions instead of accessing the
3962         variables.
3964         * include/stdlib.h: Add prototype and libc_hidden_proto for
3965         __default_morecore.
3966         * sysdeps/generic/morecore.c: Include <stdlib.h>.
3968         * malloc/obstack.c: Remove fputs macro.
3970         * malloc/mtrace.c: Remove fopen macro.
3972 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3974         * manual/debug.texi: Fix spelling to programmatically.
3975         Reported by <hayastan132@hotmail.com>.
3977 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3979         * include/libio.h: Add libc_hidden_proto for __uflow.
3980         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3981         fgetpos to _IO_* names.
3982         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
3983         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
3984         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
3985         putwc_unlocked, vswscanf.
3986         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
3987         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
3988         * libio/fseek.c: Likewise.
3989         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
3990         not fopencookie.
3991         * libio/genops.c (__uflow): Add libc_hidden_def.
3992         * libio/iofflush_u.c (fflush_unlocked): Likewise.
3993         * libio/iofgets_u.c (fgets_unlocked): Likewise.
3994         * libio/iofputs_u.c (fputs_unlocked): Likewise.
3995         * libio/iofputws_u.c (fputws_unlocked): Likewise.
3996         * libio/iofread_u.c (fread_unlocked): Likewise.
3997         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3998         * libio/iovswscanf.c (vswscanf): Likewise.
3999         * libio/putwc_u.c (putwc_unlocked): Likewise.
4000         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
4001         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
4002         * malloc/mtrace.c: Likewise.
4004         * sunrpc/clnt_perr.c: Remove fputs macro.
4005         * sunrpc/svc_simple.c: Likewise.
4006         * sunrpc/svc_tcp.c: Likewise.
4007         * sunrpc/svc_udp.c: Likewise.
4008         * sunrpc/xdr_rec.c: Likewise.
4009         * sunrpc/xdr_ref.c: Likewise.
4011         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
4012         iconv_prog, linereader, and charmap-dir.
4013         * locale/Makefile: Likewise for locale and charmap-dir.
4014         * malloc/Makefile: Likewise for memusagestat.
4015         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
4016         * sunrpc/Makefile: Likewise for rpc_main.
4017         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
4018         * timezone/Makefile: Likewise for zic.
4020         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
4022         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
4023         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
4024         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
4025         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
4026         _dl_close.
4028         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
4029         __wunderflow.
4030         * libio/genops.c (__underflow): Add libc_hidden_def.
4031         * libio/wgenops.c (__wuflow): Likewise.
4032         (__wunderflow): Likewise.
4034         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
4035         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
4037         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
4038         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
4040         * include/string.h: Add libc_hidden_proto for __strverscmp.
4041         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
4043         * include/unistd.h: Add libc_hidden_proto for __sysconf.
4044         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
4045         * sysdeps/posix/sysconf.c: Likewise.
4046         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
4047         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
4049         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
4050         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
4051         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
4052         __iswxdigit_l, __towlower_l, __towupper_l.
4053         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
4054         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
4056         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
4057         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
4058         * sysdeps/mach/hurd/xmknod.c: Likewise.
4059         * sysdeps/unix/xmknod.c: Likewise.
4060         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4061         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
4062         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4064         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
4066 2002-08-03  Roland McGrath  <roland@redhat.com>
4068         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
4069         setpriority.
4070         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
4071         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
4072         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
4073         * sysdeps/mach/hurd/setpriority.c: Likewise.
4074         * sysdeps/mach/hurd/getpriority.c: Likewise.
4075         * sysdeps/generic/setpriority.c: Likewise.
4076         * sysdeps/generic/getpriority.c: Likewise.
4078         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
4079         * malloc/mcheck.c: Add libc_hidden_def.
4081         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
4082         * misc/hsearch_r.c: Add libc_hidden_def.
4084         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
4085         * posix/fnmatch.c: Add libc_hidden_weak.
4087         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
4088         execl, execle, execlp, execvp, getpid, getsid.
4089         * sysdeps/generic/alarm.c: Add libc_hidden_def.
4090         * sysdeps/unix/alarm.c: Likewise.
4091         * posix/confstr.c: Likewise.
4092         * posix/execvp.c: Likewise.
4093         * posix/execlp.c: Likewise.
4094         * posix/execle.c: Likewise.
4095         * posix/execl.c: Likewise.
4096         * sysdeps/generic/getsid.c: Likewise.
4097         * sysdeps/mach/hurd/getsid.c: Likewise.
4098         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
4099         * sysdeps/mach/hurd/getpid.c: Likewise.
4101         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
4102         qecvt_r, qfcvt_r, lrand48_r.
4103         * misc/efgcvt_r.c: Add libc_hidden_def.
4105         * include/wordexp.h: Use libc_hidden_proto for wordfree.
4106         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
4108         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
4109         * locale/nl_langinfo.c: Add libc_hidden_def.
4111         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
4112         * sysdeps/generic/glob.c: Add libc_hidden_def.
4113         * sysdeps/generic/glob64.c: Likewise.
4114         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
4116         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
4118         * elf/Makefile (CFLAGS-vismod2.c): New variable.
4120         * locale/setlocale.c (_nl_current_names): Variable moved ...
4121         * locale/localename.c (_nl_current_names): ... here, new file.
4122         Make it global, with attribute_hidden.
4123         * locale/localeinfo.h: Declare it.
4124         * locale/Makefile (aux): Add localename.
4125         * locale/localename.c (__current_locale_name): New function.
4126         * include/locale.h (__current_locale_name): Declare it.
4127         * intl/dcigettext.c (guess_category_value): Use that instead of
4128         calling setlocale.
4130         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
4131         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
4132         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
4133         * locale/newlocale.c: Add alias to __ name.
4134         * locale/duplocale.c: Likewise.
4135         * locale/freelocale.c: Likewise.
4136         * locale/uselocale.c: New file.
4137         * locale/Makefile (routines): Add it.
4138         * locale/Versions (libc: GLIBC_2.3): New set.
4139         Add newlocale, duplocale, freelocale, uselocale.
4140         (libc: GLIBC_PRIVATE): Add __uselocale.
4142         * locale/localeinfo.h [SHARED]
4143         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
4144         (_NL_CURRENT_DATA): Define using that.
4145         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
4146         (_NL_CURRENT_DEFINE): Define to empty.
4147         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
4148         conditionalized on this.
4149         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
4150         taking initializer of _nl_C_locobj.
4151         [SHARED] (_nl_global_locale): New variable, using that initializer.
4152         (_nl_C_locobj): Use new macro for initialzier.
4153         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
4154         [! SHARED] (CATEGORY_USED): New macro.
4155         [SHARED] (CATEGORY_USED, _nl_C): New macros.
4156         (setdata, setlocale): Use that macro instead of examining _nl_current.
4157         (setdata): Set the slot in _nl_global_locale.
4158         Conditionalize setting of _nl_current on [! SHARED].
4159         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
4160         declaration as an extern.
4161         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
4163         * include/locale.h: Use libc_hidden_proto for setlocale.
4164         * locale/setlocale.c: Add libc_hidden_def.
4166         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
4168         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
4169         * misc/hsearch_r.c: Add libc_hidden_def.
4170         * misc/lsearch.c: Likewise.
4172         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
4173         endttyent.
4174         * misc/getttyent.c: Add libc_hidden_def.
4176         * include/mcheck.h: Use libc_hidden_proto for mcheck.
4177         * malloc/mcheck.c: Add libc_hidden_def.
4179         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
4180         * include/argz.h: Use libc_hidden_proto for argz_delete.
4181         * string/argz-delete.c: Add libc_hidden_def.
4182         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
4184         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
4185         HIDDEN_JUMPTARGET for _exit.
4186         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
4187         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
4188         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
4189         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
4191         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
4192         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
4193         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
4194         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
4196         * include/stdlib.h: Use libc_hidden_proto for abort,
4197         __strtof_internal, __strtod_internal, __strtold_internal,
4198         __strtol_internal, __strtoll_internal, __strtoul_internal,
4199         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
4200         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
4201         __strtoul_l_internal, __strtoull_l_internal.
4202         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
4203         __wcstod_internal, __wcstold_internal, __wcstol_internal,
4204         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
4205         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
4206         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
4207         __wcsncasecmp_l.
4208         * sysdeps/generic/abort.c: Add libc_hidden_def.
4209         * stdlib/strtod.c: Likewise.
4210         * sysdeps/generic/strtol.c: Likewise.
4211         * sysdeps/wordsize-64/strtol.c: Likewise.
4212         * sysdeps/wordsize-64/wcstol.c: Likewise.
4213         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
4215         * include/stdlib.h: Use libc_hidden_proto for qsort.
4216         * stdlib/msort.c: Add libc_hidden_def.
4218         * include/utime.h: Use libc_hidden_proto for utime.
4219         * sysdeps/generic/utime.c: Add libc_hidden_def.
4220         * sysdeps/unix/utime.c: Likewise.
4222         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
4223         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
4224         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
4225         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
4226         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
4228         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
4229         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
4230         and __libc_current_sigrtmax.
4231         * signal/sigismem.c: Add libc_hidden_def.
4232         * signal/sigfillset.c: Likewise.
4233         * signal/sigempty.c: Likewise.
4234         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
4235         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
4236         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
4237         * sysdeps/posix/raise.c: Likewise.
4238         * sysdeps/generic/raise.c: Likewise.
4240 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
4242         * include/string.h: Use libc_hidden_proto for __stpcpy.
4243         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
4244         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
4245         * sysdeps/generic/stpcpy.c: Likewise.
4246         * sysdeps/i386/stpcpy.S: Likewise.
4247         * sysdeps/i386/i586/stpcpy.S: Likewise.
4248         * sysdeps/powerpc/stpcpy.S: Likewise.
4249         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
4250         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
4252         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
4253         __strncasecmp_l, __strdup, __strndup, __strerror_r.
4254         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
4255         libc_hidden_def.
4256         * string/strdup.c (__strdup): Likewise.
4257         * string/strndup.c (__strndup): Likewise.
4258         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
4259         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
4261 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4263         * include/libio.h: New file.
4264         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
4265         * libio/iolibio.h: #include <libio.h>, not "libio.h".
4266         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
4267         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
4268         * sysdeps/unix/common/syscalls.list: Likewise.
4269         * sysdeps/unix/inet/syscalls.list: Likewise.
4270         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
4271         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
4272         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4273         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4274         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4275         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4276         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4277         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4278         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4279         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
4280         * sysdeps/unix/syscalls.list: Likewise.
4282 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4283             Ulrich Drepper  <drepper@redhat.com>
4285         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
4286         the arguments is big enough to cause an overflow.
4288 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
4290         * assert/assert.c: Use hidden_def not INTDEF.
4292 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4294         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
4295         not defined.
4297 2002-08-03  Roland McGrath  <roland@redhat.com>
4299         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
4300         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
4301         verr, verrx.
4302         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
4303         * misc/syslog.c: Add libc_hidden_def.
4304         * misc/err.c: Likewise.
4305         * stdlib/exit.c: Likewise.
4306         * stdlib/bsearch.c: Likewise.
4307         * sysdeps/generic/getenv.c: Likewise.
4309         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
4311         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
4312         libc_hidden_weak for every system call symbol defined.
4314         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
4315         timelocal, localtime, strftime.
4316         * time/asctime.c: Add libc_hidden_def.
4317         * time/mktime.c: Likewise.
4318         * time/localtime.c: Likewise.
4319         * time/strftime.c: Likewise.
4320         * time/strptime.c: Likewise.
4321         * sysdeps/generic/time.c: Likewise.
4322         * sysdeps/unix/time.c: Likewise.
4323         * sysdeps/unix/sysv/i386/time.S: Likewise.
4324         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
4326         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
4327         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
4328         * resolv/inet_ntop.c: Likewise.
4329         * resolv/inet_pton.c: Likewise.
4330         * inet/inet_mkadr.c: Add libc_hidden_def.
4331         * inet/inet_netof.c: Likewise.
4332         * resolv/inet_addr.c: Likewise.
4334         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
4335         clauses from conditionals for now.  Will have to be fixed later
4336         for older compilers.
4338         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
4340 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4342         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
4343         broken alias attribute handling.
4344         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
4346 2002-08-02  Roland McGrath  <roland@frob.com>
4348         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
4349         since it sets the variables we use in a -D switch.
4351 2002-08-02  Roland McGrath  <roland@redhat.com>
4353         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
4354         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
4355         matches long int, not int.
4357         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
4358         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
4359         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4360         * wctype/wctrans.c (wctrans): Likewise.
4361         * wctype/wctype.c (__wctype): Likewise.
4362         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
4364 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4366         * assert/assert.c (__assert_fail): Fix typo in comment.
4368         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
4369         * sunrpc/rpc_thread.c: Define it without static.
4370         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
4372 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4374         * assert/assert.c (__assert_fail): Remove undef.
4375         Replace INTDEF with libc_hidden_def.
4376         * assert/__assert.c (__assert): Remove INTUSE.
4377         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
4378         libc_hidden_weak.
4379         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
4380         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
4381         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
4382         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
4383         libm_hiden_ver): Define.
4384         * include/assert.h (__assert_fail_internal): Remove.
4385         (__assert_fail): Add prototype.  Add hidden_proto.
4386         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
4387         libc_hidden_proto.
4388         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
4389         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
4390         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
4391         Add libc_hidden_proto.
4392         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
4393         __fcntl): Add libc_hidden_proto.  Remove macros.
4394         (__open_internal, __fcntl_internal): Remove.
4395         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
4396         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
4397         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
4398         libc_hiden_proto.
4399         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
4400         libc_hidden_def.
4401         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
4402         Add libc_hidden_def.
4403         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
4404         * sysdeps/generic/open.c (__open): Remove undef.
4405         Add libc_hidden_def.  Remove INTDEF.
4406         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
4407         Add libc_hidden_def.
4408         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
4409         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
4410         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
4411         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4412         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4413         (__libc_fcntl): Add libc_hidden_def.
4414         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
4415         (__open): Remove INTDEF2.  Add libc_hidden_weak.
4416         (__libc_open): Add libc_hidden_def.
4417         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
4418         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
4419         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4420         Add libc_hidden_def.
4421         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
4422         Add libc_hidden_def.
4423         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
4424         undef.
4425         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4426         (__libc_fcntl): Add libc_hidden_def.
4427         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
4428         __getpgid_internal, __chown_internal): Remove.
4429         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
4430         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
4431         __GI___chown): Add.
4432         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
4433         __getpid_internal, __open_internal, __write_internal): Remove.
4434         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
4435         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
4436         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
4437         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
4438         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
4439         Replace INTDEF with libc_hidden_def.
4440         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
4441         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
4442         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
4443         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
4444         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
4445         Add libc_hidden_proto.
4446         * include/sys/poll.h (__poll): Add libc_hidden_proto.
4447         * include/sys/select.h (__select): Likewise.
4448         * include/sys/socket.h (__send): Likewise.
4449         * include/sys/statfs.h (__statfs): Likewise.
4450         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
4451         __getpid, __getpgid, __setpgid, __close, __read, __write,
4452         __getpagesize, __sbrk): Likewise.
4453         (__chown_internal, __dup2_internal, __getpid_internal,
4454         __getpgid_internal, __close_internal, __write_internal,
4455         __getpagesize_internal): Remove.
4456         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
4457         Remove macros.
4458         * include/printf.h (__printf_fp): Add libc_hidden_proto.
4459         * include/sched.h (__sched_setscheduler): Likewise.
4460         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
4461         * include/stdlib.h (__secure_getenv): Likewise.
4462         * include/signal.h (__sigaction, __sigsuspend): Likewise.
4463         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4464         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4465         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4466         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4467         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4468         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4469         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4470         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4471         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4472         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4473         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4474         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4475         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4476         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4477         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4478         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4479         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4480         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4481         * libio/genops.c (__overflow): Add libc_hidden_def.
4482         * libio/iovdprintf.c: Remove libio.h include.
4483         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4484         libc_hidden_weak): Define to nothing if not defined.
4485         (__overflow, __woverflow): Add libc_hidden_proto.
4486         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4487         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4488         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4489         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4490         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4491         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4492         and libc_hidden_def.
4493         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4494         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4495         (__getpgid): Add libc_hidden_proto.
4496         (__bsd_getpgrp): Remove INTUSE.
4497         * resolv/res_init.c (__res_ninit, __res_randomid): Add
4498         libc_hidden_def.
4499         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4500         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4501         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4502         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4503         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4504         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4505         __rpc_thread_createerr): Add libc_hidden_def.
4506         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4507         libc_hidden_def.
4508         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4509         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4510         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4511         * sysdeps/generic/chown.c (__chown): Likewise.
4512         * sysdeps/generic/close.c (__close): Likewise.
4513         * sysdeps/generic/dup2.c (__dup2): Likewise.
4514         * sysdeps/generic/pipe.c (__pipe): Likewise.
4515         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4516         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4517         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4518         * sysdeps/generic/read.c (__libc_read): Likewise.
4519         (__read): Add libc_hidden_weak.
4520         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4521         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4522         * sysdeps/generic/select.c (__select): Likewise.
4523         * sysdeps/generic/send.c (__send): Likewise.
4524         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4525         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4526         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4527         * sysdeps/generic/statfs.c (__statfs): Likewise.
4528         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4529         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4530         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4531         Remove undef and INTDEF.
4532         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4533         * sysdeps/generic/getpid.c (__getpid): Likewise.
4534         * sysdeps/generic/write.c (__libc_write): Likewise.
4535         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4536         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4537         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4538         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4539         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
4540         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4541         Remove undef and INTDEF.
4542         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4543         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4544         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4545         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4546         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4547         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4548         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4549         (__pipe): Add libc_hidden_def.
4550         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4551         libc_hidden_weak.
4552         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4553         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4554         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4555         (__read): Add libc_hidden_weak.
4556         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4557         (__libc_pwrite64): Add libc_hidden_def.
4558         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4559         * sysdeps/mach/hurd/select.c (__select): Likewise.
4560         * sysdeps/mach/hurd/send.c (__send): Likewise.
4561         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4562         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4563         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4564         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4565         * sysdeps/posix/dup2.c: Likewise.
4566         Remove undef and INTDEF.
4567         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4568         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4569         (__pwrite64): Add libc_hidden_weak.
4570         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4571         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4572         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4573         * sysdeps/standalone/close.c (__close): Likewise.
4574         * sysdeps/standalone/write.c (__libc_write): Likewise.
4575         (__write): Add libc_hidden_weak.
4576         * sysdeps/standalone/read.c (__read): Likewise.
4577         (__libc_read): Add libc_hidden_def.
4578         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4579         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4580         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4581         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4582         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4583         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4584         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4585         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4586         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4587         __GI___sigaction): Add.
4588         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4589         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4590         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4591         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4592         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4593         __GI___setpgid): Add.
4594         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4595         Remove undef and INTDEF.
4596         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4597         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4598         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4599         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4600         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4601         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4602         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4603         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4604         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4605         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4606         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4607         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4608         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4609         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4610         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4611         __GI___statfs, __GI___send): Add.
4612         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4613         libc_hidden_ver resp. libc_hidden_def.
4614         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4615         libc_hidden_def.
4616         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4617         Likewise.  Remove undef and INTDEF.
4618         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4619         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4620         __GI___statfs, __GI___send): Add.
4621         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4622         libc_hidden_def.
4623         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4624         Likewise.
4625         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4626         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4627         libc_hidden_ver resp. libc_hidden_def.
4628         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4629         __GI___send): Add.
4630         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4631         Add libc_hidden_weak.
4632         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4633         Add libc_hidden_def.
4634         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4635         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4636         libc_hidden_weak.
4637         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4638         resp. libc_hidden_def.
4639         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4640         libc_hidden_weak.
4641         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
4642         INTDEF.
4643         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4644         Likewise.  Remove undef.
4645         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4646         libc_hidden_weak.
4647         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4648         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4649         libc_hidden_weak.
4650         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4651         libc_hidden_def.
4652         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4653         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4654         Likewise.  Remove undef and INTDEF.
4655         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4656         libc_hidden_def.
4657         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4658         libc_hidden_weak.
4659         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4660         libc_hidden_def.
4661         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4662         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4663         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4664         libc_hidden_weak.
4665         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4666         Add libc_hidden_def.
4667         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4668         __GI___statfs): Add.
4669         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4670         libc_hidden_weak.
4671         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4672         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4673         Remove undef and INTDEF.
4674         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4675         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4676         libc_hidden_def.
4677         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4678         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4679         libc_hidden_weak.
4680         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4681         libc_hidden_def.
4682         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4683         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4684         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4685         Add.
4686         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4687         libc_hidden_def.  Remove undef and INTDEF.
4688         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4689         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4690         libc_hidden_def.
4691         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4692         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4693         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4694         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4695         Remove undef and INTDEF.
4696         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4697         broken visibility attribute handling.
4698         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4700 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4702         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4703         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4705         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4706         previous patch.
4708 2002-06-29  Todd Fries  <todd@openbsd.org>
4710         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4712 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4714         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4716 2002-07-30  Roland McGrath  <roland@redhat.com>
4718         * resolv/resolv.h (_res): Define macro unconditionally.
4719         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4720         * include/resolv.h: ... here.
4721         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4722         as a __thread variable.
4723         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4724         a __thread variable instead of a global.
4725         * resolv/res_data.c [_LIBC]: Don't #undef _res.
4727         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4728         time we test it.
4730         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4732         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4733         decls of memset and memcpy.
4735         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4736         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4738         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4740         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4741         (__libc_tsd_define): Define using __thread.
4743         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4744         (__rpc_thread_variables): Use __libc_tsd_get.
4745         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4746         __rpc_thread_variables, which might allocate what we're about to free.
4748         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4749         thread-local variable.
4750         * resolv/netdb.h (h_errno): Define macro unconditionally.
4751         [_LIBC] (__set_h_errno): Macro moved to ...
4752         * include/netdb.h: ... here.
4753         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4754         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4755         [! _LIBC_REENTRANT]: #undef h_errno here.
4757         * include/errno.h: Protect from multiple inclusion.
4759         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4760         before defining them, since Linux's <linux/posix_types.h> might have
4761         defined them.
4763 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4765         * malloc/malloc.c (public_cALLOc): Check for overflow on
4766         multiplication.
4767         * sunrpc/xdr_array.c (xdr_array): Likewise.
4768         * sunrpc/rpc/types.h (mem_free): Add comment.
4769         Patch by Solar Designer <solar@openwall.com>.
4771 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4773         * sysdeps/unix/sysv/linux/kernel-features.h
4774         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4776 2002-08-01  Roland McGrath  <roland@redhat.com>
4778         * libio/fileops.c (_IO_file_sync_mmap): New function.
4779         (_IO_file_jumps_mmap): Use it.
4780         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
4781         repeat the stat check and resize the mapped buffer as necessary.
4783 2002-07-31  Roland McGrath  <roland@redhat.com>
4785         * libio/fileops.c (decide_maybe_mmap): New static function.
4786         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4787         mmap the file contents.  Then switch the jump tables to the mmap
4788         tables if it worked, or the vanilla file tables if not.
4789         (_IO_file_underflow_maybe_mmap): New function.
4790         (_IO_file_seekoff_maybe_mmap): New function.
4791         (_IO_file_xsgetn_maybe_mmap): New function.
4792         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4793         * libio/libioP.h: Declare those.
4794         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4795         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4796         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4797         If the stream is read-only, set its jump tables to those new ones.
4798         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4799         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4800         We need the tables set before _IO_file_attach.
4802         * libio/tst-mmap-eofsync.c: New file.
4803         * libio/tst-mmap-fflushsync.c: New file.
4804         * libio/bug-mmap-fflush.c: New file.
4805         * libio/tst-mmap2-eofsync.c: New file.
4806         * libio/Makefile (tests): Add them.
4808         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4809         _IO_file_underflow_mmap fails, it already set the appropriate bit.
4811 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
4813         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4814         Declarations moved to <bits/sys_errlist.h>.  Include that file.
4815         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4816         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
4817         declare sys_errlist and sys_nerr.
4818         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
4819         provide declarations.
4821 2002-07-31  Roland McGrath  <roland@redhat.com>
4823         * elf/rtld.c (dl_main): Fix typo in error message.
4825 2002-07-31  Roland McGrath  <roland@frob.com>
4827         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4828         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
4829         sysdeps/mach/hurd/dl-sysdep.c change.
4831 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
4833         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4834         -r`/build/include for kernel headers.
4836         * po/fi.po: New file.
4838 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
4840         * configure.in (static_nss): Set to `yes' if --disable-shared.
4842 2002-07-23  Bruno Haible  <bruno@clisp.org>
4844         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4845         is set.
4847 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4849         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4850         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4851         arguments.
4853 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4855         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4856         alias.
4858 2002-07-21  Bruno Haible  <bruno@clisp.org>
4860         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4861         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4862         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4863         trans_sysdep_tab_offset.
4864         (struct sysdep_segment): New type.
4865         (struct sysdep_string): New type.
4866         (SEGMENTS_END): New macro.
4867         * intl/gettextP.h (struct sysdep_string_desc): New type.
4868         (struct loaded_domain): New fields malloced, n_sysdep_strings,
4869         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4870         orig_tab, trans_tab, hash_tab to const pointers because they point
4871         into read-only memory.
4872         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4873         (PRI*): Define fallback values.
4874         (get_sysdep_segment_value): New function.
4875         (_nl_load_domain): Distinguish major and minor revision parts. Add
4876         support for minor revision 1 with system dependent strings.
4877         (_nl_unload_domain): Also free the 'malloced' field.
4878         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4879         now done in loadmsgcat.c. Add support for system dependent strings.
4881 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4883         * posix/bug-regex7.c: New file.
4884         * posix/bug-regex8.c: New file.
4885         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4887 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4889         * posix/bug-regex4.c (main): Fix typos.
4890         * posix/bug-regex6.c (main): Likewise.
4892 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
4894         * posix/bug-regex6.c (main): Fix warnings.
4896         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4898         * iconv/iconv_prog.c (main): Improve error message for the cases
4899         where -t and/or -f parameter are missing.
4901 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
4903         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4904         (re_search): Likewise.
4905         (re_match_2): Likewise.
4906         (re_search_2): Likewise.
4907         (re_search_stub): New function.
4908         (re_search_2_stub): New function.
4909         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4911 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
4913         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4914         (re_string_eoi): Use STOP instead of LEN.
4915         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4916         (re_string_construct): Likewise.
4917         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4918         * posix/regexec.c (re_search_internal): Add a new argument STOP
4919         so that it can handle the argument STOP of re_search_2 and re_match_2
4920         correctly.
4921         (regexec): Adapt to new I/F of re_search_internal.
4922         (re_search_stub): Likewise.
4924 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
4926         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4928         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4930         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4931         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4932         of __divdi3.
4934         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4935         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4936         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4937         alias for adjtimex syscall.
4939         * elf/dl-minimal.c: Define __assert_fail_internal.
4940         * assert/assert.c: Likewise.
4941         * include/assert.h: Define __assert_file macro if !SHARED and not
4942         NOT_IN_libc.
4944         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4945         programs.
4946         * locale/Makefile: Likewise.
4947         * nscd/Makefile: Likewise.
4948         * catgets/Makefile: Likewise.
4950 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4952         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4953         compute current position.
4955         * stdio-common/tst-fseek.c (main): Improve error messages.
4957         * libio/tst-freopen.c (main): Remove unused variable.
4959         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4960         succesful seek call.  Simplify error checking.
4962 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4964         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4965         * sysdeps/ia64/fpu/libm_support.h: Likewise.
4967 2002-07-19  Roland McGrath  <roland@frob.com>
4969         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4970         __libc_enable_secure is set.
4972 2002-07-24  Roland McGrath  <roland@frob.com>
4974         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4975         This implementation supports only IPv4.
4976         * inet/ifaddrs.h: New file.
4977         * sysdeps/generic/ifaddrs.c: New file.
4978         * sysdeps/gnu/ifaddrs.c: New file.
4979         * inet/test-ifaddrs.c: New file.
4980         * inet/Makefile (routines): Add ifaddrs.
4981         (headers): Add ifaddrs.h here.
4982         (tests): Add test-ifaddrs.
4983         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
4985         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
4986         socket call to get an AF_INET socket, instead of using __opensock.
4987         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
4989         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
4990         if not -1 use it instead of calling __opensock.
4991         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
4992         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
4993         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
4995         * sysdeps/mach/hurd/ifreq.h: New file.
4996         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
4997         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
4998         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
5000         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
5001         which gets moved around.  Calculate size of mmap'd buffer instead.
5003 2002-07-24  Philip Blundell  <philb@gnu.org>
5005         * sysdeps/unix/arm/brk.S: Improve schedule.
5006         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
5007         efficient instruction.
5008         (__socket): Optimize return sequence.
5010 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5012         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
5013         sockets on old kernels.
5015 2002-07-22  Philip Blundell  <philb@gnu.org>
5017         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
5018         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
5019         alias.
5021 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5023         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
5024         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
5026         * locale/programs/locarchive.c (add_locale_to_archive): Correct
5027         test to detect duplicate locales.
5029         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
5030         position would be before beginning of file.
5031         (_IO_file_seekoff_mmap): Likewise.
5032         * libio/Makefile (tests): Add bug-fseek.
5033         * libio/bug-fseek.c: New file.
5035         * intl/explodename.c: Remove support for CEN-style locale variables.
5036         It was never used and shouldn't be since it's not portable.
5037         * intl/finddomain.c: Likewise.
5038         * intl/l10nflist.c: Likewise.
5039         * intl/loadinfo.h: Likewise.
5040         * locale/findlocale.c: Likewise.
5042 2002-07-24  Roland McGrath  <roland@frob.com>
5044         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
5045         position, calculate it to take into account an active pushback buffer.
5047         * libio/Makefile (tests): Add bug-ungetc.
5048         * libio/bug-ungetc.c: New file.
5050 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
5052         * sysdeps/generic/libc-tls.c: New file.
5053         * csu/Makefile (routines): Add libc-tls.
5054         (static-only-routines): Add libc-tls.
5055         * elf/dl-support.c (_dl_phdr): New variable.
5056         (_dl_phnum): New variable.
5057         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
5058         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
5059         for !SHARED.  First look through auxiliary vector.  If TLS always
5060         call __pthread_initialize_minimal.
5062         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
5063         in mmap call is never zero.
5065 2002-07-23  Andreas Jaeger  <aj@suse.de>
5067         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
5068         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
5070 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
5072         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
5073         creation and removal of the temp file.
5075         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
5076         file creation.
5077         * test-skeleton.c (create_temp_file): New function.
5079 2002-07-22  Andreas Jaeger  <aj@suse.de>
5081         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
5082         local label.
5084 2002-07-21  Roland McGrath  <roland@frob.com>
5086         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
5087         put -I../include before -I../stdlib so we get the right errno.h et al.
5088         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
5089         (CFLAGS-wcstof.c): Likewise.
5090         (CFLAGS-wcstold.c): Likewise.
5091         (CFLAGS-wcstod_l.c): Likewise.
5092         (CFLAGS-wcstof_l.c): Likewise.
5093         (CFLAGS-wcstold_l.c): Likewise.
5095 2002-07-19  Roland McGrath  <roland@frob.com>
5097         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
5099 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
5101         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
5102         __ASSUME_AT_XID is defined.
5103         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
5104         for 2.4.1 and up.
5105         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
5106         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
5108         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
5109         (CFLAGS-wcstof.c): Likewise.
5110         (CFLAGS-wcstold.c): Likewise.
5111         (CFLAGS-wcstod_l.c): Likewise.
5112         (CFLAGS-wcstof_l.c): Likewise.
5113         (CFLAGS-wcstold_l.c): Likewise.
5115 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
5117         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
5118         __priority_which_t): Always typedef to int for C++.
5120 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
5122         * configure.in: Add test for __thread support in compiler.
5123         * config.h.in: Add HAVE___THREAD.
5124         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
5125         * include/sys/errno.h: Moved to...
5126         * stdlib/sys/errno.h: ...here.  New file.
5127         * stdlib/errno.h: New file.  Moved from...
5128         * include/errno.h: ...here.  Changed into an internal header defining
5129         libc-local things like __set_errno.
5130         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
5131         bits/errno.h.
5132         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
5133         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
5134         either.
5135         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
5136         from...
5137         (_dl_start_final): ...here.  Add code to initialize tls elements from
5138         bootstrap_map.
5139         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
5140         if USE_TLS && HAVE___THREAD.
5141         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
5142         * sysdeps/mach/hurd/bits/errno.h: Likewise.
5143         * sysdeps/standalone/arm/bits/errno.h: Likewise.
5144         * sysdeps/standalone/bits/errno.h: Likewise.
5145         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
5146         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
5147         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
5148         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
5149         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
5150         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
5151         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
5152         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
5153         use GL(dl_rtld_map), use map parameter.
5154         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
5155         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
5156         USE_TLS && HAVE___THREAD.
5157         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
5158         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
5159         TLS code sequence.
5160         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5162         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
5163         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
5164         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
5165         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
5166         * sysdeps/unix/sysv/linux/readv.c: Likewise.
5167         * sysdeps/unix/sysv/linux/writev.c: Likewise.
5169 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
5171         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
5172         MS_INVALIDATE values.
5174 2002-07-17  Andreas Schwab  <schwab@suse.de>
5175             Ulrich Drepper  <drepper@redhat.com>
5177         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
5178         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5179         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5180         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5182 2002-07-01  H.J. Lu  <hjl@gnu.org>
5184         * elf/circleload1.c (load_dso): Call "circlemod1" and check
5185         return value.
5187         * elf/circlemod1.c (circlemod1): Return int.
5188         * elf/circlemod2.c (circlemod2): Likewise.
5189         * elf/circlemod2a.c (circlemod2): Likewise.
5190         * elf/circlemod3.c (circlemod3): Likewise.
5191         (circlemod3a): A new function.
5193 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
5195         * catgets/tst-catgets.c (main): Don't expect results for
5196         untranslated messages.
5198         * glibcbug.in: Fix little typo.  Remove STDIO.
5200         * config.h.in: Fail if __FAST_MATH__ is defined.
5201         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
5202         (CPPFLAGS-test-idouble.c): Likewise.
5203         (CPPFLAGS-test-ildouble.c): Likewise.
5205 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
5207         * intl/tst-gettext.sh: Pass -f option to msgfmt.
5208         * intl/tst-gettext.c: Correctly handle untranslated messages in
5209         positive tests.
5211         * po/de.po: Update from translation team.
5213 2002-07-02  H.J. Lu  <hjl@gnu.org>
5215         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
5216         use ll/sc.
5217         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
5219         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
5220         to 2.4.0 for mips.
5222 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
5224         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
5225         TLS fail if USE_TLS is not defined.
5227         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
5228         and adjust state for seek position.  [PR libc/4070]
5229         * libio/Makefile (tests): Add bug-rewind.
5230         * libio/bug-rewind.c: New file.
5232 2002-07-12  Philip Blundell  <philb@gnu.org>
5234         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
5235         (__backtrace): Use it.
5236         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
5238 2002-07-12  Philip Blundell  <philb@gnu.org>
5240         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
5241         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
5242         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
5243         (elf_machine_rela): Remove unused variable.
5245         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
5246         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
5247         define.
5249 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
5251         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
5253 2002-07-14  Andreas Jaeger  <aj@suse.de>
5255         * sysdeps/x86_64/bits/link.h: Add biarch support.
5257 2002-07-13  Andreas Jaeger  <aj@suse.de>
5259         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
5260         Use correct indices.
5261         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
5263 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5265         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
5266         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
5267         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
5268         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
5269         * sysdeps/s390/s390-32/bits/link.h: Remove.
5270         * sysdeps/s390/s390-64/bits/link.h: Remove.
5271         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
5272         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
5273         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
5274         * sysdeps/s390/bits/wordsize.h: New file.
5275         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
5276         elfclass.h.
5277         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
5278         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
5279         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
5280         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
5281         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
5282         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
5283         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
5284         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
5285         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
5286         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
5287         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
5288         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
5289         resource.h.
5290         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
5291         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
5292         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
5293         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
5294         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
5295         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
5296         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
5297         sigaction.h.
5298         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
5299         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
5300         siginfo.h.
5301         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
5302         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
5303         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
5304         socket.h.
5305         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
5306         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
5307         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
5308         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
5309         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
5310         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
5311         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
5312         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
5313         procfs.h.
5314         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
5315         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
5316         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
5317         ucontext.h.
5318         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
5319         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
5321 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
5323         * Versions.def (libc): Add GLIBC_2.3.
5324         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
5325         * stdlib/canonicalize.c: Add compatibility version for realpath
5326         and make new code available in GLIBC_2.3.
5328 2002-07-06  Bruno Haible  <bruno@clisp.org>
5330         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
5332 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
5334         * resolv/res_hconf.c (_res_hconf_init): Move code into new
5335         function do_init.  Use __libc_once.
5336         (do_init): New function.
5338         * iconvdata/iso8859-11.h: Removed.
5339         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
5340         (distribute): Remove iso8859-11.h.
5341         * iconvdata/tst-tables.sh: Add ISO-8859-11.
5343         * stdio-common/vfscanf.c (inchar): Restore errno from previous
5344         underflow operation if c == (W)EOF.
5346 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5348         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
5349         non-zero, adjust exponent.
5350         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
5351         Remove NO_LONG_DOUBLE aliases.
5352         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
5353         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
5354         (__log1pl): Raise divide by zero and invalid exceptions when needed.
5355         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
5356         1**y and -1**+-Inf.
5357         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
5358         Fix BITS_PER_MP_LIMB 32 extraction.
5359         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
5360         exceptions for qNaNs.
5361         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
5362         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
5363         Raise exceptions when needed.  Don't recurse unnecessarily.
5364         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
5365         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
5366         exceptions for qNaNs.
5367         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
5368         to fix *quo return value sign.
5369         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
5370         case -Inf argument.
5371         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
5373 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5375         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
5376         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
5377         -DNDEBUG.
5379 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5381         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
5382         the result.
5384         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
5385         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
5387         * Versions.def (libthread_db): Add GLIBC_2.3.
5389 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
5391         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
5392         new stream if possible.
5393         * libio/freopen64.c (freopen64): Likewise.
5394         * libio/Makefile (tests): Add tst-freopen.
5395         * libio/tst-freopen.c: New file.
5397 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5399         * libio/stdio.h (obstack_printf): Add format attribute.
5400         (obstack_vprintf): Likewise.
5402 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5404         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
5405         resp. 16 bytes on 32-bit resp. 64-bit platforms.
5406         (re_charset_t, re_string_t): Reorder structure members for 64-bit
5407         architectures.
5409 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5411         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
5412         (init_dfa): ...here.
5414 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5416         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
5417         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
5418         nodes in parse trees.
5419         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
5420         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
5421         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
5422         nodes which can epsilon transit.
5423         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
5424         to IS_EPSILON_NODE macro.
5425         * posix/regexec.c (update_regs): New function to update registers
5426         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
5427         (proceed_next_node): Use the entities of the nodes to determine
5428         whether the node can transit to.
5429         (set_regs): Use update_regs function to update registers.
5431 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5433         * posix/bug-regex4.c (main): Remove duplicate setlocale.
5434         * posix/bug-regex6.c: New file.
5435         * posix/Makefile (tests): Add bug-regex6.
5436         (bug-regex6-ENV): Set LOCPATH.
5438 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5440         * Versions.def [libpthread]: Add GLIBC_2.2.6.
5441         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
5443 2002-07-06  Bruno Haible  <bruno@clisp.org>
5445         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
5447 2002-07-06  Bruno Haible  <bruno@clisp.org>
5449         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
5450         declarations.
5452         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
5454         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
5456         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
5457         not _UTSNAME_H.
5458         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
5460         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
5461         * sysdeps/generic/bits/ustat.h: Likewise.
5463         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5465 2002-07-08  Andreas Jaeger  <aj@suse.de>
5467         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5469 2002-07-08  Andreas Jaeger  <aj@suse.de>
5471         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5473 2002-07-06  Andreas Jaeger  <aj@suse.de>
5475         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5476         * sysdeps/x86_64/fpu/s_copysign.S: New file.
5477         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5478         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5479         * sysdeps/x86_64/fpu/s_finitel.S: New file.
5480         * sysdeps/x86_64/fpu/s_fmax.S: New file.
5481         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5482         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5483         * sysdeps/x86_64/fpu/s_fmin.S: New file.
5484         * sysdeps/x86_64/fpu/s_fminf.S: New file.
5485         * sysdeps/x86_64/fpu/s_fminl.S: New file.
5487 2002-06-05  Brian Youmans <3diff@gnu.org>
5489         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5490         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5491         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5492         * sysdeps/ia64/fpu/e_asin.S: Likewise.
5493         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5494         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5495         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5496         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5497         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5498         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5499         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5500         * sysdeps/ia64/fpu/e_exp.S: Likewise.
5501         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5502         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5503         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5504         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5505         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5506         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5507         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5508         * sysdeps/ia64/fpu/e_log.S: Likewise.
5509         * sysdeps/ia64/fpu/e_logf.S: Likewise.
5510         * sysdeps/ia64/fpu/e_pow.S: Likewise.
5511         * sysdeps/ia64/fpu/e_powf.S: Likewise.
5512         * sysdeps/ia64/fpu/e_powl.S: Likewise.
5513         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5514         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5515         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5516         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5517         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5518         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5519         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5520         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5521         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5522         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5523         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5524         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5525         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5526         * sysdeps/ia64/fpu/libm_error.c: Likewise.
5527         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5528         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5529         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5530         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5531         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5532         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5533         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5534         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5535         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5536         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5537         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5538         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5539         * sysdeps/ia64/fpu/s_logb.S: Likewise.
5540         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5541         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5542         * sysdeps/ia64/fpu/s_modf.S: Likewise.
5543         * sysdeps/ia64/fpu/s_modff.S: Likewise.
5544         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5545         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5546         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5547         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5548         * sysdeps/ia64/fpu/s_rint.S: Likewise.
5549         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5550         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5551         * sysdeps/ia64/fpu/s_round.S: Likewise.
5552         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5553         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5554         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5555         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5556         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5557         * sysdeps/ia64/fpu/s_significand.S: Likewise.
5558         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5559         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5560         * sysdeps/ia64/fpu/s_tan.S: Likewise.
5561         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5562         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5563         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5564         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5565         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5566         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5567         reflect IBM donation of math library to FSF
5568         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5569         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5570         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5571         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5572         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5573         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5574         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5575         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5576         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5577         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5578         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5579         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5580         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5581         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5582         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5583         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5584         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5585         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5586         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5587         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5588         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5589         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5590         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5591         * sysdeps/vax/__longjmp.c: Likewise.
5592         * sysdeps/vax/setjmp.c: Likewise.
5593         * libio/filedoalloc.c: Fixed BSD copying permission notice to
5594         remove advertising clause
5595         * sysdeps/vax/htonl.s: Likewise.
5596         * sysdeps/vax/htons.s: Likewise.
5597         * libio/wfiledoalloc.c: Likewise.
5598         * stdlib/random.c: Likewise.
5599         * stdlib/random_r.c: Likewise.
5600         * sysdeps/mach/sys/reboot.h: Likewise.
5601         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5602         * sysdeps/posix/getaddrinfo.c: Likewise.
5603         * sunrpc/des_impl.c: Updated license permission notice to Lesser
5604         GPL and corrected pointer to point to the correct license.
5606 2002-07-04  Andreas Jaeger  <aj@suse.de>
5608         * scripts/config.guess: New upstream version.
5609         * scripts/config.sub: Likewise.
5611 2002-07-02  Andreas Schwab  <schwab@suse.de>
5613         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5614         in parallel to bumping up the buffer pointer.
5616 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5618         * math/libm-test.inc (acos_test): Add missing L suffix for
5619         expected result.
5620         (cpow_test): Likewise.
5621         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5622         error for acos (0.0625).
5624 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5626         * locale/iso-639.def: Add entry for Ganda.
5627         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5628         definition.
5629         (address_finish): Handle entries with two letter ISO 639 code.
5631         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5632         directory if it existed before.
5633         * iconv/iconvconfig.c: Implement --prefix option.
5635         * math/libm-test.inc (cexp_test): Add missing L suffix for
5636         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
5637         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5638         1.25 i).
5640 2002-05-29  H.J. Lu  <hjl@gnu.org>
5642         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5643         is turned on.
5645 2002-05-28  H.J. Lu  <hjl@gnu.org>
5647         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5648         are not dlopened on the dependency list of a dlopened object.
5650 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5652         * elf/dl-lookup.c (add_dependency): It is not necessary to add
5653         dependencies if they are created between objects which are created
5654         while processing RTLD_NOW for objects loaded as part of the same
5655         dlopen call.
5657 2002-06-14  H.J. Lu  <hjl@gnu.org>
5659         * elf/Makefile (tests): Add circleload1.
5660         (modules-names): Add circlemod1, circlemod2, circlemod3,
5661         circlemod1a, circlemod2a and circlemod3a.
5662         ($(objpfx)circleload1): New target.
5663         ($(objpfx)circleload1.out): Likewise.
5664         ($(objpfx)circlemod1.so): Likewise.
5665         ($(objpfx)circlemod2.so): Likewise.
5666         ($(objpfx)circlemod1a.so): Likewise.
5667         ($(objpfx)circlemod2a.so): Likewise.
5668         * elf/circleload1.c: New file.
5669         * elf/circlemod1.c: New file.
5670         * elf/circlemod1a.c: New file.
5671         * elf/circlemod2.c: New file.
5672         * elf/circlemod2a.c: New file.
5673         * elf/circlemod3.c: New file.
5674         * elf/circlemod3a.c: New file.
5676 2002-06-18  Amos Waterland  <apw@us.ibm.com>
5678         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5679         file descriptor.
5680         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5681         add check for fd not open for writing.
5683         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5684         completed element(s) and do not suspend thread if so.  Patch
5685         heavily modified by drepper.
5687         * rt/tst-aio7.c: New file.  Regression test for problems which the
5688         above three changes fix.
5689         * rt/Makefile (tests): Add tst-aio7.
5691 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
5693         * rt/tst-aio6.c: Fix comment.
5695         * catgets/gencat.c (read_input_file): Handle more than one slash
5696         at end of line correctly [PR libc/3926].
5697         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5699         * catgets/sample.SJIS: Add test case for above bug.
5700         * catgets/test-gencat.c: Adjust test code.
5701         * catgets/test-gencat.sh: Adjust expected results.
5703         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5704         to skip relative relocations.
5705         Patch by Geoff Keating <geoffk@redhat.com>.
5707 2002-05-26  Bruno Haible  <bruno@clisp.org>
5709         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5710         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5711         All callers changed.
5712         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5713         STANDARD_FROM_LOOP_ERR_HANDLER.
5714         (utf8_internal_loop): Likewise.
5715         (ucs2_internal_loop): Likewise.
5716         (internal_ucs2_loop): Perform error handling like in
5717         STANDARD_FROM_LOOP_ERR_HANDLER.
5718         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5719         in STANDARD_FROM_LOOP_ERR_HANDLER.
5720         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5721         handling.
5722         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5723         in STANDARD_FROM_LOOP_ERR_HANDLER.
5724         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5725         handling.
5726         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5727         in STANDARD_FROM_LOOP_ERR_HANDLER.
5728         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5729         handling.
5730         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5731         STANDARD_FROM_LOOP_ERR_HANDLER.
5732         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5733         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5734         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5735         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5736         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5737         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5738         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5739         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5740         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5741         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5742         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5743         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5744         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5745         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5746         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5747         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5748         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5749         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5750         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5751         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5752         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5753         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5754         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5755         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5756         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5757         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5758         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5759         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5760         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
5761         an error, still set result = __GCONV_ILLEGAL_INPUT.
5762         (BODY for TO_LOOP): Likewise.
5763         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5764         STANDARD_FROM_LOOP_ERR_HANDLER.
5765         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5766         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5767         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5768         handling.
5769         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5770         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5771         STANDARD_FROM_LOOP_ERR_HANDLER.
5772         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5773         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5774         STANDARD_FROM_LOOP_ERR_HANDLER.
5775         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5776         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5777         STANDARD_FROM_LOOP_ERR_HANDLER.
5778         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5779         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5780         STANDARD_FROM_LOOP_ERR_HANDLER.
5781         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5782         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5783         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5784         handling.
5785         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5786         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5787         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5788         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5790 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5792         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5793         labels in assembler instructions.
5795 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
5797         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5798         not enough content is available.
5799         * libio/tst-eof.c: New file.
5800         * libio/Makefile (tests): Add tst-eof.
5802         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5803         update atime.
5804         * libio/tst-atime.c: New file.
5805         * libio/Makefile (tests): Add tst-atime.
5807         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5808         handling of overly long words.
5810 2002-06-25  Andreas Jaeger  <aj@suse.de>
5812         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5813         to not use 32-bit pc relative relocations.
5814         (elf_machine_dynamic): Likewise.
5816 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5818         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5819         (__GETDENTS): Check for failed getdents64 syscall.
5820         * dirent/Makefile (tests): Add bug-readdir1.
5821         * dirent/bug-readdir1.c: New file.
5823 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
5825         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5826         lookups.
5827         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5828         code.  Print TLS modid and offset for modules containing PT_TLS
5829         segments.
5831 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5833         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5834         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5835         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5836         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5838 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5840         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5841         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5842         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5843         * nss/getXXent_r.c (NEW, NEW1): Define.
5844         (NEW (REENTRANT_GETNAME)): Strong alias to
5845         INTERNAL (REENTRANT_GETNAME).
5846         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5848 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5850         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5851         (_IO_file_jumps_mmap): Use it.
5852         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5853         * libio/libioP.h: Remove _IO_wdefault_setbuf and
5854         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
5855         prototype.
5856         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5857         (_IO_wfile_jumps_mmap): Don't use it anymore.
5858         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5859         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5860         _IO_wdefault_setbuf.
5861         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5862         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5863         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5865 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
5867         * libio/Makefile (tests): Add tst-mmap-setvbuf.
5868         * libio/tst-mmap-setvbuf.c: New test.
5870 2002-06-21  Andreas Jaeger  <aj@suse.de>
5872         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5874 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
5876         * include/unistd.h (__fork_internal): Remove.
5877         (__fork): Don't define to __fork_internal.
5878         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5879         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5880         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5881         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5882         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5884 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5886         * po/hr.po: New file.
5888 2002-06-11  Wolfram Gloger  <wg@malloc.de>
5890         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5891         Reported by Michael Meissner <meissner@redhat.com>.
5893 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5895         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5896         Patch by Hans Boehm <hans_boehm@hp.com>.
5898 2002-06-20  Andreas Jaeger  <aj@suse.de>
5900         * math/libm-test.inc: Use exact values as input parameters,
5901         compute output parameters with 36 digits for 128-bit long doubles.
5902         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5903         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5904         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5906 2002-06-13  Stephen L Moshier  <steve@moshier.net>
5908         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5909         argument or result is subnormal.
5911 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
5913         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5914         quotient.
5915         * sysdeps/i386/fpu/s_remquof.S: Likewise.
5916         * sysdeps/i386/fpu/s_remquol.S: Likewise.
5918         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5920 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
5922         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5923         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5924         Reported by Peter A. Buhr.
5926 2002-06-15  Roland McGrath  <roland@frob.com>
5928         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5929         warning.
5931         * sysdeps/mach/hurd/getcwd.c
5932         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5934         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5935         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5937         * sysdeps/alpha/divrem.h: Use local label instead of global one for
5938         jump to local subroutine.
5940 2002-06-14  Roland McGrath  <roland@frob.com>
5942         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5943         * sysdeps/mach/hurd/Makeconfig: ... here.
5945 2002-06-13  Andreas Schwab  <schwab@suse.de>
5947         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5948         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5949         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5951 2002-06-13  Roland McGrath  <roland@frob.com>
5953         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5954         * hurd/hurdstartup.c (_hurd_startup): Likewise.
5955         Use intptr_t instead of int for argc in stack layout.
5956         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5957         (_dl_init_first): Likewise.
5958         (_hurd_stack_setup): Likewise.
5959         (init1): Add a cast.
5960         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5962         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5963         argument to pfinet_siocgifconf RPC.
5965 2002-06-13  Andreas Schwab  <schwab@suse.de>
5967         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5968         expansion order.
5970 2002-06-12  Roland McGrath  <roland@frob.com>
5972         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5973         if already defined.
5974         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5975         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5977 2002-06-11  Roland McGrath  <roland@frob.com>
5979         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5980         file on [!RTLD_STAT64].
5981         * sysdeps/mach/hurd/fxstat64.c: Likewise.
5983         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
5984         (__fdopen): Use INTUSE.
5985         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
5987         * stdio-common/tmpfile64.c: File removed.
5988         * sysdeps/generic/tmpfile64.c: New file.
5989         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
5990         if not already defined.
5991         (tmpfile): Use it in place of __GT_FILE.
5993         * include/unistd.h: Declare __chown_internal.
5995         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
5996         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
5998 2002-06-09  Roland McGrath  <roland@frob.com>
6000         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
6001         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
6002         value of HURD_INTERFACE_VERSION >= 20020609.
6003         * sysdeps/mach/hurd/configure: Regenerated.
6004         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
6005         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
6006         convert a struct stat64 into a struct stat and return 0 or -1
6007         with errno set to EOVERFLOW.
6008         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
6009         for struct statfs64 to struct statfs.
6010         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
6011         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
6012         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
6013         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
6014         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
6015         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
6016         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
6017         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
6018         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
6019         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
6020         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
6021         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
6022         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
6023         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
6024         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
6025         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
6026         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
6027         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
6028         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
6029         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
6030         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
6031         Use struct stat64 for io_stat argument.
6032         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
6033         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
6034         to io_seek.
6035         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
6036         * hurd/fd-write.c (_hurd_fd_write): Likewise.
6037         * hurd/hurd/fd.h: Update decls.
6038         * sysdeps/mach/hurd/getcwd.c
6039         (_hurd_canonicalize_directory_name_internal): Use ino64_t
6040         and struct dirent64.
6041         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
6042         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
6043         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
6044         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
6046 2002-06-08  Roland McGrath  <roland@frob.com>
6048         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
6049         instead of unsigned long int for __allocation and __size members.
6051 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
6053         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
6054         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
6055         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
6056         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
6058 2002-06-07  Roland McGrath  <roland@frob.com>
6060         * sysdeps/mach/hurd/bits/environments.h: File removed.
6062 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
6064         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
6065         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
6066         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
6067         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
6068         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
6069         (sendfile64): Likewise.
6070         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
6071         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
6072         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
6073         Likewise.
6074         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
6076         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
6077         already defined.
6079 2002-06-04  Bruno Haible  <bruno@clisp.org>
6081         * sysdeps/cris/stackinfo.h: New file.
6083         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
6084         to an integer type before performing bit operations on it.
6086 2002-06-05  Roland McGrath  <roland@frob.com>
6088         * sysdeps/generic/sendfile.c: Include <errno.h>.
6089         * sysdeps/generic/sendfile64.c: Likewise.
6091         * io/Makefile (routines): Add sendfile and sendfile64.
6092         (headers): Add sys/sendfile.h to the list.
6093         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
6094         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
6095         * io/sys/sendfile.h: ... here.
6096         * sysdeps/generic/sendfile.c: New file.
6097         * sysdeps/generic/sendfile64.c: New file.
6099         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
6100         Move sendfile, sendfile64 to ...
6101         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
6102         * sysdeps/mach/hurd/sendfile.c: New file.
6103         * sysdeps/mach/hurd/sendfile64.c: New file.
6105         * sysdeps/mach/nanosleep.c: New file.
6107 2002-06-04  Roland McGrath  <roland@frob.com>
6109         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
6110         * sysdeps/alpha/elf/configure: New file (generated).
6112 2002-06-02  Roland McGrath  <roland@frob.com>
6114         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
6116 2002-06-01  Roland McGrath  <roland@frob.com>
6118         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
6119         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
6121 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
6123         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
6124         Add nsmap.
6125         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
6126         Remove nstimes setting.
6127         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
6128         * resolv/res_send.c (res_nsend): Don't close unconditionally if
6129         there is mix of IPv6 and IPv4 nameservers.
6130         Use nsmap array to find free slots and preserve nameserver ordering.
6131         Fix RES_ROTATE.
6133 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
6135         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
6136         use this header with LFS.
6138         * po/sk.po: Update from translation team.
6140 2002-05-28  Andreas Schwab  <schwab@suse.de>
6142         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
6143         message when finding object of wrong class.
6145 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
6147         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
6148         Patch by <radu@netsoft.ro>.
6150 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
6152         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
6153         Add readahead.
6154         * sysdeps/unix/sysv/linux/readahead.c: New file.
6155         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
6156         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
6157         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
6158         Add sendfile64 alias to sendfile syscall.
6159         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6160         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6161         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6162         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
6163         syscall.
6165         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
6166         special section for PIC register loading.
6167         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
6169         * config.h.in: Define HAVE_HIDDEN.
6170         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
6172         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
6174 2002-05-28  Roland McGrath  <roland@frob.com>
6176         * sysdeps/mach/alpha/setfpucw.c: New file.
6178 2002-05-26  Roland McGrath  <roland@frob.com>
6180         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
6181         Use integer_t instead of int for IOC_VOID case.
6183 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
6185         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
6187 2002-05-26  Bruno Haible  <bruno@clisp.org>
6189         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
6190         end of the ISO-8859-7 from idx table.
6192 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
6194         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
6196 2002-05-24  David S. Miller  <davem@redhat.com>
6198         * string/bits/string2.h (memset): Do not try to optimize when
6199         not _STRING_ARCH_unaligned if GCC will do the right thing.
6201 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
6203         * posix/regex.c: Define `inline' as a macro into nothing for the
6204         compilers which lack the keyword.
6205         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
6206         for the compatibility of gawk.
6207         * posix/regcomp.c: Add fake implementation of isblank() for the
6208         environments which lack the function.
6209         Don't use free_charset() in case of non-i18n envs.
6210         (build_range_exp): Don't use i18n related code in case of non-i18n
6211         envs.
6212         (build_collating_symbol): Likewise.
6213         (build_equiv_class): Likewise.
6214         (build_charclass): Likewise.
6215         (re_compile_fastmap_iter): Likewise.
6216         (parse_bracket_exp): Likewise.
6217         (build_word_op): Likewise.
6218         (regfree): Don't use free_charset() in case of non-i18n envs.
6219         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
6220         re_token_type_t in case of non-i18n envs.
6221         Don't define re_charset_t in case of non-i18n envs.
6222         Change the type of wcs of re_string_t from wchar_t to wint_t,
6223         since we store also WEOF.
6224         * posix/regex_internal.c: (re_string_realloc_buffers): Change
6225         the type of wcs of re_string_t from wchar_t to wint_t.
6226         (re_string_reconstruct): Likewise.
6227         (create_ci_newstate): Don't use i18n related code in case of
6228         non-i18n envs.
6229         (create_cd_newstate): Likewise.
6231 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
6233         * iconv/loop.c: Fix typo.
6235 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
6237         * inet/ether_line.c (ether_line): Fix a typo causing only
6238         lower 4 bits of each ethernet address byte being assigned.
6239         Don't modify what line points to.
6240         * inet/tst-ether_aton.c (main): Add ether_line tests.
6242 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
6244         * manual/filesys.texi: Don't make readlink example leak memory
6245         when readlink fails.
6247 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
6249         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
6250         some more security checks.
6252 2002-05-17  David S. Miller  <davem@redhat.com>
6254         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
6256 2002-05-16  David S. Miller  <davem@redhat.com>
6258         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
6259         (elf_machine_dynamic): Use it to force PIC register to be loaded.
6260         (elf_machine_load_address): Likewise.
6261         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
6263         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
6264         is unaligned, do not forget to fully initialize %g1 magic value.
6266         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
6267         register definitions and provide 32-bit variants of structures
6268         during 64-bit builds.
6270         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
6271         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
6272         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
6273         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
6274         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
6275         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
6276         Do not clear implicit one bit here, it must be done post-rounding.
6277         Only pad to the left using left shift if value uses less than the
6278         available fractional bits.
6280 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6282         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
6283         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
6284         (shared-only-routines): Likewise.
6285         * sysdeps/powerpc/libgcc-compat.c: New file.
6286         * sysdeps/wordsize-32/cmpdi2.c: Removed.
6287         * sysdeps/wordsize-32/fixdfdi.c: Removed.
6288         * sysdeps/wordsize-32/fixsfdi.c: Removed.
6289         * sysdeps/wordsize-32/shdi3.c: Removed.
6291 2002-05-16  Bruno Haible  <bruno@clisp.org>
6293         * MakeTAGS (libc.pot): Don't sort the output.
6294         * po/header.pot: Update to match xgettext 0.11 output.
6296 2002-05-16  Bruno Haible  <bruno@clisp.org>
6298         * MakeTAGS (subdirs): Remove duplicates.
6300 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
6302         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
6303         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
6304         alias.
6306 2002-05-19  Andreas Jaeger  <aj@suse.de>
6308         * sysdeps/unix/sysv/linux/configure.in: Warn against an
6309         installation in /usr/local.
6311 2002-05-16  Bruno Haible  <bruno@clisp.org>
6313         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
6314         string as argument of #error.
6316 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
6318         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
6319         don't define static.  Remove old __realpath function.  TC1 of
6320         POSIX 2001 will allow the second parameter to be NULL.
6321         * stdlib/test-canon.c: Comment out test for NULL as second
6322         parameter of realpath.
6324         * time/offtime.c (__offtime): Set errno if overflow is detected.
6326         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
6327         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
6328         dl-brk and dl-sbrk.
6330         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
6331         (fdimf): Likewise.
6333 2002-05-15  Roland McGrath  <roland@frob.com>
6335         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
6337 2002-05-12  Bruno Haible  <bruno@clisp.org>
6339         * iconvdata/testdata/EUC-JISX0213: New file.
6340         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
6341         * iconvdata/testdata/SHIFT_JISX0213: New file.
6342         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
6343         * iconvdata/testdata/ISO-2022-JP-3: New file.
6344         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
6345         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
6346         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
6347         contains comments indicating precomposed characters.
6349 2002-04-21  Bruno Haible  <bruno@clisp.org>
6351         * iconvdata/iso-2022-jp-3.c: New file.
6352         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
6353         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
6354         (LDFLAGS-ISO-2022-JP-3.so): New variable.
6355         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
6356         (distribute): Add iso-2022-jp-3.c.
6358 2002-05-12  Bruno Haible  <bruno@clisp.org>
6360         * iconvdata/tst-table-to.c (main): Restore handling of
6361         transliterations, broken by last patch.
6363 2002-05-12  Bruno Haible  <bruno@clisp.org>
6365         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
6367 2002-05-12  Bruno Haible  <bruno@clisp.org>
6369         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
6370         when there is not enough room in the output buffer.
6371         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
6373 2002-04-20  Bruno Haible  <bruno@clisp.org>
6375         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
6376         macros.
6377         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6378         Also make this macro work if FROM_DIRECTION evaluates to 0.
6379         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6380         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
6381         of consume_incomplete.
6382         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6383         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
6384         4, not 8.
6385         * iconvdata/cp1258.c: Likewise.
6386         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6387         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
6388         not 2.
6389         * iconvdata/ibm933.c: Likewise.
6390         * iconvdata/ibm935.c: Likewise.
6391         * iconvdata/ibm937.c: Likewise.
6392         * iconvdata/ibm939.c: Likewise.
6393         * iconvdata/iso-2022-cn.c: Define
6394         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6395         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
6396         * iconvdata/iso-2022-cn-ext.c: Likewise.
6397         * iconvdata/iso-2022-jp.c: Define
6398         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6399         {MIN,MAX}_NEEDED_{FROM,TO}.
6400         * iconvdata/tcvn5712-1.c: Define
6401         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6402         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
6403         * iconvdata/euc-jisx0213.c: Define
6404         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6405         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
6406         * iconvdata/shift_jisx0213.c: Likewise.
6408 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6410         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
6411         shdi3, fixdfdi, fixsfdi in csu dir.
6412         (shared-only-routines): Likewise.
6413         * sysdeps/wordsize-32/cmpdi2.c: New file.
6414         * sysdeps/wordsize-32/shdi3.c: New file.
6415         * sysdeps/wordsize-32/fixdfdi.c: New file.
6416         * sysdeps/wordsize-32/fixsfdi.c: New file.
6417         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
6418         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
6419         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
6421         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
6422         Only use va_arg if the argument will be used [PR libc/3259].
6424 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
6426         * catgets/catgets.c (catopen): Free buffer if internal catalog
6427         open fails.
6429 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6431         * debug/xtrace.sh: Make more robust.  For realtime tracking use
6432         non-buffering methods.
6433         * debug/pcprofiledump.c: Implement -u option.
6434         Patch by Roger Luethi <rl@hellgate.ch>.
6436 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
6438         * include/netinet/in.h (bindresvport_internal): Add prototype.
6439         * include/rpc/auth.h  (authunix_create_internal,
6440         authunix_create_default_internal, authnone_create_internal,
6441         authdes_pk_create_internal): Add prototypes.
6442         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
6443         clntudp_create_internal, clntudp_bufcreate_internal,
6444         clntunix_create_internal): Add prototypes.
6445         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
6446         svc_getreq_internal, svc_getreq_common_internal,
6447         svc_getreqset_internal, svc_getreq_poll_internal,
6448         svc_register_internal, svc_unregister_internal,
6449         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
6450         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
6451         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
6452         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
6453         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
6454         * inet/rcmd.c (rcmd_af): Use __listen.
6455         (rresvport_af): Use __bind.
6456         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
6457         authunix_create, authunix_create_default, authnone_create,
6458         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
6459         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
6460         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
6461         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
6462         _authenticate, add INTDEF after such function definitions.
6463         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6464         __setsockopt, __getsockname instead of non-__ variants.
6465         * sunrpc/pmap_rmt.c: Likewise.
6466         * sunrpc/rtime.c: Likewise.
6467         * sunrpc/svc_udp.c: Likewise.
6468         * sunrpc/clnt_unix.c: Likewise.
6469         * sunrpc/svc_unix.c: Likewise.
6470         * sunrpc/bindrsvprt.c: Likewise.
6471         * sunrpc/svc_tcp.c: Likewise.
6472         * sunrpc/auth_none.c: Likewise.
6473         * sunrpc/clnt_raw.c: Likewise.
6474         * sunrpc/clnt_tcp.c: Likewise.
6475         * sunrpc/auth_unix.c: Likewise.
6476         * sunrpc/key_call.c: Likewise.
6477         * sunrpc/clnt_gen.c: Likewise.
6478         * sunrpc/pm_getmaps.c: Likewise.
6479         * sunrpc/clnt_simp.c: Likewise.
6480         * sunrpc/pmap_clnt.c: Likewise.
6481         * sunrpc/svc_run.c: Likewise.
6482         * sunrpc/svc.c: Likewise.
6483         * sunrpc/svc_simple.c: Likewise.
6484         * sunrpc/pm_getport.c: Likewise.
6485         * sunrpc/auth_des.c: Likewise.
6486         * sunrpc/svc_auth.c: Likewise.
6487         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6488         __register_frame_info_table_bases, __deregister_frame_info_bases):
6489         Add INTDEF.
6490         (__register_frame_info_bases_internal,
6491         __register_frame_info_table_bases_internal,
6492         __deregister_frame_info_bases_internal): Add prototypes.
6493         (__register_frame_info, __register_frame): Use INTUSE in call to
6494         __register_frame_info_bases.
6495         (__register_frame_info_table): Similarly.
6496         (__deregister_frame_info, __deregister_frame): Similarly.
6497         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6498         sendto as weak alias.
6499         * sysdeps/mach/hurd/sendto.c: Likewise.
6500         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6501         recvfrom as weak alias.
6502         * sysdeps/mach/hurd/recvfrom.c: Likewise.
6503         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6504         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6505         recvmsg as weak alias.
6506         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6507         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6508         sendmsg as weak alias.
6509         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6510         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6511         setsockopt, add setsockopt as weak alias.
6512         * sysdeps/mach/hurd/setsockopt.c: Likewise.
6513         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6514         weak alias.
6515         * sysdeps/mach/hurd/bind.c: Likewise.
6516         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6517         as weak alias.
6518         * sysdeps/mach/hurd/listen.c: Likewise.
6519         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6520         getsockname, add getsockname as weak alias.
6521         * sysdeps/mach/hurd/getsockname.c: Likewise.
6522         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6523         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6524         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6525         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6526         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6527         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6528         Add aliases.
6529         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6530         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6531         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6532         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6533         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6534         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6535         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6536         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6537         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6538         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6539         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6540         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6542 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6544         * locale/programs/localedef.h (show_archive_content): Add verbose
6545         argument.
6546         * locale/programs/localedef.c (main): Adjust caller.
6547         * locale/programs/locarchive.c (struct nameent, struct dataent): New
6548         types.
6549         (nameentcmp, dataentcmp): New functions.
6550         (xstrcmp): Remove.
6551         (show_archive_content): Print verbose listing with --list-archive -v.
6553 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6555         * locale/programs/locarchive.c (open_archive): Take extra argument
6556         readonly.  If true open file with O_RDONLY and don't create the
6557         archive if it doesn't exist.
6558         Adapt all callers.
6559         (close_archive): Don't do anything if fd element is -1.
6560         * locale/programs/localedef.h (open_archive): Adjust prototype.
6561         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6562         call.
6564         * malloc/malloc.c (__posix_memalign): Correct check for size of
6565         alignment value [PR libc/3444].
6567         * include/stdio.h: Remove references to old stdio implementation.
6569         * libio/Makefile (bug-ungetwc2-ENV): Define.
6571 2002-05-13  Roland McGrath  <roland@frob.com>
6573         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6575         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6577 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
6579         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6580         Allocate three, not two, more than LEN when appending '/.'.
6581         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
6582         if NAME ends with '/.' if it is shorter than 2 chars.
6584 2002-05-12  Roland McGrath  <roland@frob.com>
6586         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6587         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6589         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6590         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6592 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6594         * sysdeps/ia64/Makefile: Remove extra endif.
6595         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6597 2002-05-10  Andreas Schwab  <schwab@suse.de>
6599         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6601 2002-05-09  Andreas Jaeger  <aj@suse.de>
6603         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6604         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6605         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6607         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6608         * sysdeps/wordsize-64/glob.c: ...here.
6609         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6610         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6611         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6613 2002-05-08  Roland McGrath  <roland@frob.com>
6615         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6616         O_NOTRANS flag in "." lookup.
6618 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
6620         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6622 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
6624         * locale/duplocale.c (__duplocale): Update special members only
6625         when allocation succeeded.
6627 2002-05-03  Roland McGrath  <roland@frob.com>
6629         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6630         we can only build libc.so.0.3(GLIBC_2.2.6) now.
6632 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
6634         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6635         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6636         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6637         * sysdeps/ia64/ia64libgcc.S: New file.
6639 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
6641         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6643         * malloc/memusage.c: Distinguish anonymous mmap.
6645 2002-05-01  Roland McGrath  <roland@frob.com>
6647         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6648         and use INTDEF on it.
6649         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6651         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6653         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6655 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
6657         * malloc/memusage.c: Add support for tracking mmap & friends.
6658         * malloc/memusage.sh: Implement -m/--mmap option.
6660 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6662         * locale/programs/locarchive.c (create_archive): Add archivefname
6663         argument, create fname from it.
6664         (enlarge_archive): Honour output_prefix.
6665         (open_archive): Likewise.
6667 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6669         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6670         too many stpcpy macros.
6672 2002-04-26  Bruno Haible  <bruno@clisp.org>
6674         * locale/programs/ld-collate.c (collate_read): Cast first argument
6675         for "%.*s" to int.
6677 2002-04-26  Bruno Haible  <bruno@clisp.org>
6679         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6680         __dcngettext_internal): New declarations.
6681         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6682         attribute declarations.
6684 2002-04-30  Roland McGrath  <roland@frob.com>
6686         Removed old GNU stdio implementation; GNU libio is now the only option.
6687         * configure.in: Removed --enable-libio option and @stdio@ subst var.
6688         Define USE_IN_LIBIO unconditionally.
6689         * configure: Regenerated.
6690         * Makeconfig (stdio): Set to libio by default.
6691         * config.make.in (stdio): Variable removed.
6692         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6693         * sysdeps/unix/sysv/linux/configure: Regenerated.
6694         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6695         * sysdeps/mach/hurd/configure: Regenerated.
6696         * stdio/.cvsignore: File removed.
6697         * stdio/Makefile: File removed.
6698         * stdio/Versions: File removed.
6699         * stdio/__fbufsize.c: File removed.
6700         * stdio/__flbf.c: File removed.
6701         * stdio/__fpending.c: File removed.
6702         * stdio/__fpurge.c: File removed.
6703         * stdio/__freadable.c: File removed.
6704         * stdio/__freading.c: File removed.
6705         * stdio/__fsetlocking.c: File removed.
6706         * stdio/__fwritable.c: File removed.
6707         * stdio/__fwriting.c: File removed.
6708         * stdio/clearerr.c: File removed.
6709         * stdio/fclose.c: File removed.
6710         * stdio/fcloseall.c: File removed.
6711         * stdio/feof.c: File removed.
6712         * stdio/ferror.c: File removed.
6713         * stdio/fflush.c: File removed.
6714         * stdio/fgetc.c: File removed.
6715         * stdio/fgetpos.c: File removed.
6716         * stdio/fgets.c: File removed.
6717         * stdio/fileno.c: File removed.
6718         * stdio/fmemopen.c: File removed.
6719         * stdio/fopen.c: File removed.
6720         * stdio/fopncook.c: File removed.
6721         * stdio/fputc.c: File removed.
6722         * stdio/fputs.c: File removed.
6723         * stdio/fread.c: File removed.
6724         * stdio/freopen.c: File removed.
6725         * stdio/fseek.c: File removed.
6726         * stdio/fsetpos.c: File removed.
6727         * stdio/ftell.c: File removed.
6728         * stdio/fwrite.c: File removed.
6729         * stdio/getc.c: File removed.
6730         * stdio/getchar.c: File removed.
6731         * stdio/getdelim.c: File removed.
6732         * stdio/gets.c: File removed.
6733         * stdio/glue.c: File removed.
6734         * stdio/internals.c: File removed.
6735         * stdio/linewrap.c: File removed.
6736         * stdio/linewrap.h: File removed.
6737         * stdio/memstream.c: File removed.
6738         * stdio/newstream.c: File removed.
6739         * stdio/obstream.c: File removed.
6740         * stdio/putc.c: File removed.
6741         * stdio/putchar.c: File removed.
6742         * stdio/puts.c: File removed.
6743         * stdio/rewind.c: File removed.
6744         * stdio/setbuf.c: File removed.
6745         * stdio/setbuffer.c: File removed.
6746         * stdio/setlinebuf.c: File removed.
6747         * stdio/setvbuf.c: File removed.
6748         * stdio/stdio.h: File removed.
6749         * stdio/ungetc.c: File removed.
6750         * stdio/vasprintf.c: File removed.
6751         * stdio/vscanf.c: File removed.
6752         * stdio/vsnprintf.c: File removed.
6753         * stdio/vsprintf.c: File removed.
6754         * stdio/vsscanf.c: File removed.
6755         * sysdeps/generic/defs.c: File removed.
6756         * sysdeps/generic/fdopen.c: File removed.
6757         * sysdeps/generic/pipestream.c: File removed.
6758         * sysdeps/generic/stdio_init.c: File removed.
6759         * sysdeps/generic/sysd-stdio.c: File removed.
6760         * sysdeps/generic/vdprintf.c: File removed.
6761         * sysdeps/mach/hurd/defs.c: File removed.
6762         * sysdeps/mach/hurd/fdopen.c: File removed.
6763         * sysdeps/mach/hurd/pipestream.c: File removed.
6764         * sysdeps/mach/hurd/stdio_init.c: File removed.
6765         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6766         * sysdeps/mach/hurd/vdprintf.c: File removed.
6767         * sysdeps/posix/defs.c: File removed.
6768         * sysdeps/posix/fdopen.c: File removed.
6769         * sysdeps/posix/pipestream.c: File removed.
6770         * sysdeps/posix/stdio_init.c: File removed.
6771         * sysdeps/posix/vdprintf.c: File removed.
6772         * sysdeps/unix/pipestream.c: File removed.
6773         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6774         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6775         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6777 2002-04-29  Roland McGrath  <roland@frob.com>
6779         * include/libc-symbols.h (link_warning): Use `unused' attribute.
6781 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
6783         * sysdeps/generic/tls.h: Describe what must be defined.
6785         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6786         glob_in_dir [PR libc/3385].
6787         * posix/globtest.sh: Add test case.
6789         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6790         //TRANSLIT twice.
6792 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
6794         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6795         _internal symbol handling.
6796         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6798 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6800         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6801         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6803 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
6805         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6806         not _LIBC and RE_ENABLE_I18N.
6807         (build_range_exp): Implement for not _LIBC.
6808         (build_collating_symbol): Likewise.
6809         (parse_bracket_exp): Unify redundant error handlings.
6810         Don't erase mbcset for non matching list in multibyte envs.
6811         (build_word_op): Add '_' to matching list for \w operator.
6812         * posix/regex_internal.c (re_string_construct): Invoke
6813         build_upper_buffer in case of not RE_ENABLE_I18N.
6814         (re_string_reconstruct): Don't touch cur_state in case of not
6815         RE_ENABLE_I18N.
6816         * posix/regex_internal.h (attribute_hidden): New macro in case of
6817         not _LIBC.
6818         (re_charset_t): Define range_starts/ends in case of not _LIBC.
6819         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6820         RE_ENABLE_I18N.
6821         (transit_state_mb): Likewise.
6822         (check_node_accept_bytes): Implement the code evaluating range
6823         expression in case of not _LIBC.
6824         (find_collation_sequence_value): Hide in case of not _LIBC.
6826 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
6828         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6829         i386/semctl.c.
6830         (__old_semctl, __new_semctl): Only use va_arg if the argument will
6831         be used.
6833 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6835         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6837         * sysdeps/ia64/strncpy.S: Fix recovery code.
6838         Patch by David Mosberger <davidm@hpl.hp.com>.
6840 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6842         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6843         GLIBC_2.2.6.
6845 2002-04-14  Bruno Haible  <bruno@clisp.org>
6847         * posix/regex.c (re_max_failures): Add back symbol for binary
6848         compatibility.
6850 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
6852         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6853         of buffer building functions.
6854         * posix/regex_internal.c (re_string_allocate): New function.
6855         (re_string_realloc_buffers): New function.
6856         (re_string_skip_chars): New function.
6857         (re_string_reconstruct): New function.
6858         (re_string_construct): Adapt it to new interface of buffer building
6859         functions.
6860         (re_string_construct_common): Likewise.
6861         (build_wcs_buffer): Likewise.
6862         (build_wcs_upper_buffer): Likewise.
6863         (build_upper_buffer): Likewise.
6864         (re_string_translate_buffer): Likewise.
6865         (re_string_context_at): Adapt it to variable length buffers.
6866         * posix/regex_internal.h (re_string_t): Add new fields to handle
6867         variable length buffers.
6868         (re_match_context_t): Likewise.
6869         * posix/regexec.c (re_search_internal): Adapt it to new interface
6870         of re_string_t and re_match_context_t.
6871         (acquire_init_state_context): Likewise.
6872         (check_matching): Likewise.
6873         (check_halt_state_context): Likewise.
6874         (proceed_next_node): Likewise.
6875         (set_regs): Likewise.
6876         (sift_states_backward): Likewise.
6877         (clean_state_log_if_need): Likewise.
6878         (sift_states_iter_mb): Likewise.
6879         (sift_states_iter_bkref): Likewise.
6880         (add_epsilon_backreference): Likewise.
6881         (transit_state): Likewise.
6882         (transit_state_sb): Likewise.
6883         (transit_state_mb): Likewise.
6884         (transit_state_bkref): Likewise.
6885         (transit_state_bkref_loop): Likewise.
6886         (check_node_accept): Likewise.
6887         (match_ctx_init): Likewise.
6888         (extend_buffers): New function.
6890 2002-04-21  Bruno Haible  <bruno@clisp.org>
6892         * iconvdata/tst-table.sh: For the second check, use the truncated
6893         GB18030 charmap table, like for the first check.
6895 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6897         * elf/dl-load.c (open_verify): Correct __lseek parameters.
6898         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6900 2002-04-23  H.J. Lu  <hjl@gnu.org>
6902         * include/math.h (isfinite): Fix a typo.
6904 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6906         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6907         which is created by the test suite.
6909 2002-04-20  Bruno Haible  <bruno@clisp.org>
6911         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6912         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6914 2002-04-20  Bruno Haible  <bruno@clisp.org>
6916         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6917         to avoid gcc warning.
6919 2002-04-20  Bruno Haible  <bruno@clisp.org>
6921         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6922         of data->__statep->__count.
6924 2002-04-20  Bruno Haible  <bruno@clisp.org>
6926         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6927         tag characters.
6928         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6930 2002-04-24  Roland McGrath  <roland@frob.com>
6932         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6933         use END macro instead of our own .end directive.
6934         Use `callsys' insn mnemonic instead of `call_pal'.
6936         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6938         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6939         macro; we need this for Hurd.
6941         Log entry was missing for 2002/03/24 commit of rev 1.8,
6942         goes with 2002-03-17 changes.
6943         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6944         (sysdep_routines): Append ioperm here.
6945         (sysdep_headers): Append sys/io.h here.
6947 2002-04-23  Roland McGrath  <roland@frob.com>
6949         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6950         * sysdeps/mach/hurd/sendto.c: Likewise.
6951         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6952         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6953         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6955 2002-04-22  Roland McGrath  <roland@frob.com>
6957         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6958         failure from i386_io_perm_* RPCs to ENOSYS.
6960 2002-04-22  Andreas Jaeger  <aj@suse.de>
6962         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6964         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6966         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6967         register instead of destroying %rbx.
6969 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
6971         * string/string.h: Declare strerror_r also for XPG6.
6973 2002-04-19  Roland McGrath  <roland@frob.com>
6975         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6977 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
6979         * Makefile: Add handling of xtests and xcheck targets.
6980         * MakeTAGS: Likewise.
6981         * Makeconfig: Likewise.
6982         * Makerules: Likewise.
6983         * Rules: Likewise.
6984         * manual/Makefile: Likewise.
6985         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
6986         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
6988 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
6990         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
6991         authnone_private_s.
6992         * sunrpc/auth_none.c: Include bits/libc-lock.h.
6993         Delete #ifdef _RPC_THREAD_SAFE_ block.
6994         (authnone_private): Make a struct, not a pointer to struct.
6995         (authnone_private_guard): New once-control variable.
6996         (authnone_create_once): New function, split out of
6997         authnone_create.  No need to allocate memory.
6998         (authnone_create): Just call authnone_create_once via
6999         __libc_once, then return &authnone_private->no_client.
7000         (authnone_marshal): Access private data via CLIENT argument,
7001         not authnone_private pointer.
7002         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
7003         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
7004         authnone_private_s.
7006 2002-04-12  H.J. Lu  <hjl@gnu.org>
7008         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
7010 2002-04-18  Bruno Haible  <bruno@clisp.org>
7012         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
7013         FROM_DIRECTION): Make the FROM direction stateless.
7014         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
7015         FROM_DIRECTION): Likewise.
7017 2002-04-15  Bruno Haible  <bruno@clisp.org>
7019         * iconvdata/JISX0213.TXT: New file.
7020         * iconvdata/jisx0213.h: New file.
7021         * iconvdata/jisx0213.c: New file.
7022         * iconvdata/euc-jisx0213.c: New file.
7023         * iconvdata/shift_jisx0213.c: New file.
7024         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
7025         * iconvdata/EUC-JISX0213.precomposed: New file.
7026         * iconvdata/SHIFT_JISX0213.precomposed: New file.
7027         * iconvdata/SHIFT_JISX0213.irreversible: New file.
7028         * iconvdata/tst-table-to.c (main): Make it work for encodings for
7029         which the "to" direction is stateful.
7030         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
7031         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
7032         SHIFT_JISX0213.
7033         (libJISX0213-routines): New variable.
7034         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
7035         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
7036         (LDFLAGS-libJISX0213.so): New variable.
7037         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
7038         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
7039         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
7041 2002-04-15  Bruno Haible  <bruno@clisp.org>
7043         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
7044         uint32_t.  Update to Unicode 3.2.
7045         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
7046         (BODY for TO_LOOP): Handle the ASCII range specially.
7047         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
7048         * iconvdata/testdata/BIG5HKSCS: Remove a character.
7049         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
7051 2002-04-15  Bruno Haible  <bruno@clisp.org>
7053         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
7054         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
7056 2002-04-15  Bruno Haible  <bruno@clisp.org>
7058         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
7059         (ucs4_to_cns11643): Update.
7060         * iconvdata/cns11643.c: Update to Unicode 3.2.
7061         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
7062         __cns11643_from_ucs4p2_tab): Regenerated.
7063         (__cns11643_from_ucs4p2c_tab): New array.
7064         * iconvdata/cvs11643l1.c: Update comments.
7065         * iconvdata/EUC-TW.irreversible: Remove two entries.
7067 2002-04-15  Bruno Haible  <bruno@clisp.org>
7069         * locale/C-translit.h.in: Update to Unicode 3.2.
7070         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
7071         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
7073 2002-04-15  Bruno Haible  <bruno@clisp.org>
7075         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
7076         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
7078 2002-04-15  Bruno Haible  <bruno@clisp.org>
7080         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
7081         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
7082         always one byte, not 0 bytes in some cases and 2 bytes in others.
7084         * iconvdata/tst-table-from.c (main): Correct the usage message.
7086 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
7088         * posix/regcomp.c (parse_expression): Fix incorrect error code.
7089         (parse_dup_op): Fix error handling like "a{}".
7090         (parse_bracket_exp): Add error handling.
7091         (fetch_number): Add error handling for "a{<very_large_number>}".
7093 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
7095         * posix/regcomp.c (parse_bracket_symbol): Add error handling
7096         in case that the symbol name is too long.
7097         (build_charclass): Handle [:lower:]/[:uppper:] correctly
7098         in case of REG_ICASE.
7100 2002-04-19  Andreas Jaeger  <aj@suse.de>
7102         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
7103         <hartvige@mips.com>.
7105 2002-04-15  H.J. Lu  <hjl@gnu.org>
7107         * include/math.h (__finitel_internal): Declare only if
7108         __NO_LONG_DOUBLE_MATH is not defined.
7109         (__isinfl_internal): Likewise.
7110         (__isnanl_internal): Likewise.
7112         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
7113         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
7114         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
7115         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
7116         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7117         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
7118         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7120         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
7121         __fcntl_internal.
7123         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
7124         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
7126 2002-04-15  Bruno Haible  <bruno@clisp.org>
7128         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
7129         (BODY for TO_LOOP): Likewise.
7130         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
7131         * iconvdata/tst-table.sh: Add support for encodings which contain
7132         precomposed Unicode characters, known to the iconv converter in both
7133         directions but not listed in the charmap.
7134         * iconvdata/IBM856.irreversible: New file.
7135         * iconvdata/IBM922.irreversible: New file.
7136         * iconvdata/IBM1132.irreversible: New file.
7137         * iconvdata/IBM1133.irreversible: New file.
7138         * iconvdata/IBM1160.irreversible: New file.
7139         * iconvdata/IBM1161.irreversible: New file.
7140         * iconvdata/IBM1163.irreversible: New file.
7141         * iconvdata/IBM1164.irreversible: New file.
7142         * iconvdata/ARMSCII-8.irreversible: New file.
7143         * iconvdata/TCVN5712-1.precomposed: New file.
7144         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
7145         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
7146         ARMSCII-8, TCVN5712-1.
7147         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
7148         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
7149         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
7150         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
7152 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
7154         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
7155         for EVENING69.  Include offsets in TZ environment variable.
7157 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
7159         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
7160         avoid compiler warnings.
7162         * locale/programs/localedef.c (main): Always call
7163         construct_output_path.
7165         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
7167         * locale/programs/locfile.c (to_archive): New variable.  To collect
7168         data which has to be added to the locale archive.
7169         (write_all_categories): Take new third parameter with locale name.
7170         Unless no_archive flag set add new locale data to the archive
7171         (write_locale_data): Unless no-archive flag set store generated data
7172         in to_archive data structure instead of generation output file.
7173         Add new parameter with locale category index.
7174         * locale/programs/locfile.h: Add new parameters in declaractions of
7175         write_all_categories and write_locale_data.
7176         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
7177         --add-to-archive, and --delete-from-archive options.  Pass extra
7178         parameter to write_all_categories.
7179         * locale/programs/localedef.h: Add prototypes for functions in
7180         locarchive.c.
7181         * locale/locarchive.h: New file.
7182         * locale/programs/locarchive.c: New file.
7183         * locale/Makefile (distribute): Add programs/locarchive.c and
7184         locarchive.h.
7185         (localedef-modules): Add md5 and locarchive.
7186         Add vpath to crypt subdir for md5.c.
7188         * locale/programs/ld-address.c: Pass locale category ID as new second
7189         parameter to write_locale_data.
7190         * locale/programs/ld-collate.c: Likewise.
7191         * locale/programs/ld-ctype.c: Likewise.
7192         * locale/programs/ld-identification.c: Likewise.
7193         * locale/programs/ld-measurement.c: Likewise.
7194         * locale/programs/ld-messages.c: Likewise.
7195         * locale/programs/ld-monetary.c: Likewise.
7196         * locale/programs/ld-name.c: Likewise.
7197         * locale/programs/ld-numeric.c: Likewise.
7198         * locale/programs/ld-paper.c: Likewise.
7199         * locale/programs/ld-telephone.c: Likewise.
7200         * locale/programs/ld-time.c: Likewise.
7202         * locale/simple-hash.c: Move compute_hashval function from here...
7203         * locale/hashval.h: ...to here.  New file.
7204         * locale/simple-hash.h: Add prototype for compute_hashval.
7206         * include/libintl.h: Minor cleanups.
7208 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
7210         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
7212 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
7214         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
7216 2002-04-14  Bruno Haible  <bruno@clisp.org>
7218         * locale/programs/charmap.c (charmap_read): Don't access result if
7219         result == NULL.
7221 2002-02-17  Andreas Schwab  <schwab@suse.de>
7223         * elf/reldep7.c: New file.
7224         * elf/reldep7mod1.c: New file.
7225         * elf/reldep7mod2.c: New file.
7226         * elf/Makefile: Add rules to build and run reldep7.
7228 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
7230         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
7231         the end of the function.  Pass original flags to recursive call if
7232         add_dependency failed.
7233         (_dl_lookup_versioned_symbol): Likewise.
7235 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
7237         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
7238         early, but check whether it overflowed afterwards.
7239         * time/tst-mktime.c (main): Add new tests.
7241 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
7243         * debug/xtrace.sh: Fix program name in help message.
7244         Patch by Roger Luethi <rl@hellgate.ch>.
7246         * include/sys/stat.h: Add prototypes for __lxstat_internal and
7247         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
7248         NOT_IN_libc.
7249         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
7250         * sysdeps/mach/hurd/lxstat.c: Likewise.
7251         * sysdeps/unix/common/lxstat.c: Likewise.
7252         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
7253         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
7254         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
7255         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
7256         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
7257         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
7258         * sysdeps/mach/hurd/lxstat64.c: Likewise.
7259         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
7260         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
7262         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
7263         prototypes.  Add __mbrlen and __mbrtowc macros.
7264         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
7265         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
7267         * include/unistd.h: Add prototype for __write_internal and add
7268         __libc_write macro is SHARED.
7269         * sysdeps/generic/write.c: Use INTDEF for __write.
7270         * sysdeps/mach/hurd/write.c: Likewise.
7271         * sysdeps/unix/sysv/aix/write.c: Likewise.
7272         * sysdeps/unix/syscalls.list: Add __libc_write alias.
7274         * assert/assert.c: Replace STR_N_SIZE with something usable in
7275         macro arguments.
7276         * assert/assert-perr.c: Likewise.
7278         * include/sys/socket.h: Declare __libc_sa_len_internal and define
7279         SA_LEN macro to use it if not NOT_IN_libc.
7280         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
7282         * include/fcntl.h: Declare __open_internal and define __open and
7283         __libc_open macros if not NOT_IN_libc.
7284         * sysdeps/generic/open.c: Use INTDEF for __open.
7285         * sysdeps/mach/hurd/open.c: Likewise.
7286         * sysdeps/unix/sysv/aix/open.c: Likewise.
7287         * sysdeps/unix/syscalls.list: Add __open_internal alias.
7289         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
7290         has correct number.
7292         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
7293         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
7294         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7295         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7297         * include/wctype.h: Declare __iswalpha_l_internal,
7298         __iswdigit_l_internal, __iswspace_l_internal,
7299         __iswxdigit_l_internal, and __iswctype_internal.  Define
7300         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
7301         __iswxdigit_l macros if not NOT_IN_libc.
7302         * wctype/iswctype.c: Use INTDEF for __iswctype.
7303         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
7305         * include/math.h: Declare __isinf_internal, __isinfl_internal,
7306         __isnan_internal, and __isnanl_internal.
7307         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
7308         __isnan, and __isnanl.
7309         * stdio-common/printf_size.c: Likewise.
7310         * sysdeps/generic/printf_fphex.c: Likewise.
7311         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
7312         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7313         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
7314         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
7315         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
7316         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7317         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
7318         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7319         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
7320         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7321         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
7322         * sysdeps/m68k/s_isinfl.c: Likewise.
7323         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
7324         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
7326         * include/sys/time.h: Declare __gettimeofday_internal and define
7327         __gettimeofday macro if not NOT_IN_libc.
7328         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
7329         * sysdeps/mach/gettimeofday.c: Likewise.
7330         * sysdeps/posix/gettimeofday.c: Likewise.
7331         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
7332         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
7333         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
7334         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
7336         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
7337         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
7338         Remove __lstat and __fstat inline functions.
7339         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
7340         * sysdeps/mach/hurd/fxstat.c: Likewise.
7341         * sysdeps/unix/fxstat.c: Likewise.
7342         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
7343         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
7344         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
7345         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
7346         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
7347         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
7348         * sysdeps/mach/hurd/fxstat64.c: Likewise.
7349         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
7350         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
7352         * include/unistd.h: Declare __getpid_internal and define
7353         __getpid macro if not NOT_IN_libc.
7354         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
7355         * sysdeps/generic/getpid.c: Likewise.
7356         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
7357         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
7359         * include/unistd.h: Declare __getpgid_internal and define
7360         __getpgid macro if not NOT_IN_libc.
7361         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
7362         * sysdeps/mach/hurd/getpgid.c: Likewise.
7363         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
7364         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
7365         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
7366         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
7368         * include/unistd.h: Declare __getpagesize_internal and define
7369         __getpagesize macro if not NOT_IN_libc.
7370         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
7371         __getpagesize.
7372         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
7373         * sysdeps/mach/getpagesize.c: Likewise.
7374         * sysdeps/posix/getpagesize.c: Likewise.
7375         * sysdeps/unix/getpagesize.c: Likewise.
7376         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
7377         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7378         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
7379         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
7381 2002-04-13  Andreas Jaeger  <aj@suse.de>
7383         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
7384         as clobber to reduce register pressure.
7385         (__strpbrk_cg): Likewise.
7386         (__mempcpy_by4): Likewise.
7387         (__strstr_cg): Likewise.
7388         Add prototype for __memrchr.
7390 2002-04-13  Andreas Schwab  <schwab@suse.de>
7392         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
7393         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
7394         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
7396 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
7398         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
7399         check whether the caller prefers getting the most recent version of
7400         a symbol of the earliest version.
7401         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
7402         _dl_do_lookup to also take the new parameter and pass it on.
7403         Change 'explicit' parameter of _dl_lookup_symbol and
7404         _dl_lookup_versioned_symbol to flags.  Adjust tests.
7405         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7406         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
7407         _dl_lookup_versioned_symbol.
7408         * elf/dl-reloc.c: Likewise.
7409         * elf/dl-runtime.c: Likewise.
7410         * elf/dl-sym.c: Likewise.
7411         * sysdeps/mips/dl-machine.h: Likewise.
7413 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7415         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
7416         in a token.
7417         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
7419 2002-04-10  Andreas Jaeger  <aj@suse.de>
7421         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
7423         * include/argz.h: Remove extra char from last patch.
7425 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
7427         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
7428         * sysdeps/unix/sysv/aix/chown.c: Likewise.
7429         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
7430         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
7431         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7432         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
7433         __chown_internal.
7434         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
7436         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
7437         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
7438         * intl/ngettext.c: Likewise.
7440         * include/sys/socket.h: Declare __connect_internal and define
7441         __connect macro if not NOT_IN_libc.
7442         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
7443         * sysdeps/unix/sysv/aix/connect.c: Likewise.
7444         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
7446         * include/unistd.h: Declare __close_internal and define __close macro
7447         if not NOT_IN_libc.
7448         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
7449         WJUMP3): Add extra parenthesis to avoid expanding element names with
7450         macors like __close.
7451         * sysdeps/unix/syscalls.list: Add __close_internal alias.
7453         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
7454         if not NOT_IN_libc.
7455         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
7456         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
7457         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
7459         * include/unistd.h: Declare __fork_internal and define __fork macro
7460         if not NOT_IN_libc.
7461         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
7462         * sysdeps/unix/sysv/aix/fork.c: Likewise.
7463         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7465         * include/stdio_ext.h: Declare __fsetlocking_internal and define
7466         __fsetlocking macro to use it if not NOT_IN_libc.
7467         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7469         * libio/__fbufsize.c: Correct copyright.
7470         * libio/__flbf.c: Likewise.
7471         * libio/__fpending.c: Likewise.
7472         * libio/__fpurge.c: Likewise.
7473         * libio/__freadable.c: Likewise.
7474         * libio/__freading.c: Likewise.
7475         * libio/__fsetlocking.c: Likewise.
7476         * libio/__fwritable.c: Likewise.
7477         * libio/__fwriting.c: Likewise.
7479         * include/stdio.h: Declare __asprintf_internal and define __asprintf
7480         macro to use it if not NOT_IN_libc.
7481         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7483         * include/mntent.h: Declare __setmntent_internal,
7484         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
7485         __getmntent_r, and __endmntent macros to use these functions if not
7486         NOT_IN_libc.
7487         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7488         __endmntent.
7490         * include/math.h: Declare __finite_internal, __finitef_internal, and
7491         __finitel_internal.  Redefine isfinite macro if in libc or libm using
7492         these functions.
7493         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7494         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7495         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7496         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7497         * sysdeps/i386/fpu/s_finitef.S: Likewise.
7498         * sysdeps/i386/fpu/s_finitel.S: Likewise.
7499         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7500         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7501         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7502         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7504         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
7505         to use this function if not NOT_IN_libc.
7506         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7507         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7508         * sysdeps/mach/hurd/fcntl.c: Likewise.
7509         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7510         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7512         * include/argz.h: Declare __argz_count_internal and
7513         __argz_stringify_internal.
7514         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7515         __argz_stringify.
7516         * string/argz-count.c: Use INTDEF for __argz_count.
7517         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7519         * include/stdlib.h: Declare __cxa_atexit_internal and define
7520         __cxa_atexit macro if not NOT_IN_libc.
7521         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7522         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7524         * assert/assert.c: Use INTDEF for __assert_fail.
7525         * assert/__assert.c: Use INTUSE for call to __assert_fail.
7526         * include/assert.h: Declare __assert_fail_internal.
7528         * extra-lib.mk: Mark assignment to lib with override.
7530 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7532         * Makerules: Use cppflags-iterator.mk to add defines for all test
7533         source files.
7535 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
7537         * elf/elf.h: Define R_SH_TLS_xxx macros.
7538         * elf/rtld.c: Remove an extra parenthesis.
7539         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7540         TLS_GD macros.
7541         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7542         * sysdeps/sh/dl-lookupcfg.h: New file.
7543         * sysdeps/sh/dl-tls.h: New file.
7544         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7545         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7546         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7547         R_SH_TLS_TPOFF32 relocations.
7549 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7551         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7552         of NOT_IN_LIBC.
7553         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7554         * include/stdlib.h: Likewise.
7556 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
7558         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7559         instead of _RTLD_LOCAL.
7560         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7561         * include/unistd.h: Likewise.
7562         * sysdeps/generic/ldsodefs.h: Likewise.
7564         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7565         if in libc or ld.so.
7567 2002-04-08  Andreas Jaeger  <aj@suse.de>
7569         * elf/cache.c (print_entry): Support x86-64.
7571 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7573         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7574         with one accessing the locale data structures directly.
7575         * stdio-common/printf-prs.c: Include localeinfo.h for new
7576         MB_CUR_MAX definition.
7578         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7579         is the name of the source file without extension.
7580         * Makefile (distribute): Add cppflags-iterator.mk.
7581         * cppflags-iterator.mk: New file.
7582         * extra-lib.mk: For the sources of the library run
7583         cppflags-iterator.mk.
7585         * include/libintl.h: Declare __dcgettext_internal and
7586         _libc_intl_domainname_internal.  Define __dcgettext using these
7587         two symbols if used in libc itself.
7588         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7589         _libc_intl_domainname_internal.
7590         * argp/argp-parse.c: Likewise.
7591         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7592         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7593         * intl/gettext.c: Likewise.
7594         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7595         alias.
7596         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7597         __dcgettext.
7598         * posix/regex_internal.c (gettext): Likewise.
7600 2002-04-08  Andreas Jaeger  <aj@suse.de>
7602         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7604         * sysdeps/x86_64/fpu/s_llrint.S: New file.
7605         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7606         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7607         * sysdeps/x86_64/fpu/s_lrint.S: New file.
7608         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7609         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7611 2002-04-08  Roland McGrath  <roland@frob.com>
7613         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7614         widening __hurd_fail value.
7616 2002-04-07  Roland McGrath  <roland@frob.com>
7618         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7619         <mach/machine/alpha_instruction.h>.
7620         (_hurd_setup_sighandler): Take proper arguments for current decls.
7621         Update code to use _hurdsig_catch_fault.
7622         Use `callsys' instruction instead of `call_pal'.
7623         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7625         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7626         (ALIGN, at, AT, fp): New macros.
7628 2002-04-06  Roland McGrath  <roland@frob.com>
7630         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7632         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7633         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7635         * sysdeps/mach/hurd/bind.c: Use prototype definition.
7636         * sysdeps/mach/hurd/connect.c: Likewise.
7637         * sysdeps/mach/hurd/getsockopt.c: Likewise.
7638         * sysdeps/mach/hurd/setsockopt.c: Likewise.
7640         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7641         __msg_sig_post RPC.
7643         * hurd/catch-exc.c: Use integer_t instead of int.
7644         * hurd/hurdfault.c: Likewise.
7646         * sysdeps/mach/hurd/alpha/exc2signal.c
7647         (_hurd_exception2signal): Rewritten.
7648         * sysdeps/mach/hurd/alpha/longjmp-ts.c
7649         (_hurd_longjmp_thread_state): Rewritten.
7651 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
7653         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7654         DB_LOOKUP_FCT prototype.
7655         * nss/getXXent_r.c: Likewise.
7656         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7657         * inet/getaliasname_r.c: Likewise.
7658         * inet/getnetbyad_r.c: Likewise.
7659         * inet/getnetbynm_r.c: Likewise.
7660         * inet/getnetent_r.c: Likewise.
7661         * inet/getproto_r.c: Likewise.
7662         * inet/getprtent_r.c: Likewise.
7663         * inet/getprtname_r.c: Likewise.
7664         * inet/getrpcbyname_r.c: Likewise.
7665         * inet/getrpcbynumber_r.c: Likewise.
7666         * inet/getrpcent_r.c: Likewise.
7667         * inet/getservent_r.c: Likewise.
7668         * inet/getsrvbynm_r.c: Likewise.
7669         * inet/getsrvbypt_r.c: Likewise.
7670         * shadow/getspent_r.c: Likewise.
7671         * shadow/getspnam_r.c: Likewise.
7673         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7675         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7676         Use i686-friendly PIC code.
7677         * sysdeps/i386/elf/setjmp.S: Likewise.
7679         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7681         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7682         list.
7683         * elf/Versions: Remove it here.
7685 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
7687         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7688         direction.  Reported by H . J . Lu <hjl@lucon.org>.
7690 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7692         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7693         test just before the test runs.
7694         * intl/tst-translit.sh: Likewise.
7695         * intl/tst-codeset.sh: Likewise.
7697         * timezone/zic.c: Update from tzcode2002c.
7698         * timezone/asia: Update from tzdata2002c.
7699         * timezone/backward: Likewise.
7700         * timezone/europe: Likewise.
7701         * timezone/northamerica: Likewise.
7702         * timezone/northamerica: Likewise.
7703         * timezone/northamerica: Likewise.
7704         * timezone/southamerica: Likewise.
7705         * timezone/zone.tab: Likewise.
7707 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
7709         * sysdeps/generic/brk.c (__curbrk): Declare.
7710         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7711         * sysdeps/generic/dl-sbrk.c: Likewise.
7712         * sysdeps/unix/arm/dl-brk.S: New file.
7713         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7714         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7715         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7716         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7717         * sysdeps/unix/i386/dl-brk.S: New file.
7718         * sysdeps/unix/mips/dl-brk.S: New file.
7719         * sysdeps/unix/sparc/dl-brk.S: New file.
7720         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7721         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7722         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7723         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7725 2002-04-03  Andreas Schwab  <schwab@suse.de>
7727         * Makefile (headers): Add gnu/lib-names.h here instead of
7728         install-others.
7729         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7730         installation rule.
7731         (install-headers): Add dependency on install-headers-nosubdir.
7732         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7733         instead of install-others.
7734         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7735         installation rule.
7737 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7739         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7740         Reported by Sam Roberts <sroberts@uniserve.com>.
7742 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7744         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7745         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7746         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7747         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7749 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
7751         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7752         (RTLD_START): Ditto.
7753         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7754         dependency violation.
7756 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7758         * time/mktime.c (__mktime_internal): Move check for year < 70 below
7759         all variable declarations.
7761 2002-04-04  Andreas Schwab  <schwab@suse.de>
7763         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7765 2002-04-04  Andreas Jaeger  <aj@suse.de>
7767         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7768         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7770         * sysdeps/x86_64/fpu/s_fabs.c: New file.
7771         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7772         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7774         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7776         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7778         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7779         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7781         * configure.in: Handle all mips entries the same.
7783         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7784         * sysdeps/mips/mips3/*: Likewise.
7785         * sysdeps/mips/p40/bits/endian.h: Likewise.
7787 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
7789         * misc/dirname.c (dirname): Ignore trailing slashes at end of
7790         non-null result [PR libc/2600].
7792         * misc/tst-dirname.c: Add more tests.
7794 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7796         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7797         define a code_set_name provide one based on the filename.
7799         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7801 2001-12-28  Andreas Jaeger  <aj@suse.de>
7803         * time/mktime.c (__mktime_internal): Check for year < 70
7804         [PR libc/2738].
7806 2002-04-03  Andreas Jaeger  <aj@suse.de>
7808         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7809         shmat.
7810         Reported by Andi Kleen <ak@suse.de>.
7812 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7814         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7815         * sysdeps/generic/w_lgammaf.c: Likewise.
7816         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7818         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7819         Adjust for new output format of the backtrace functions.
7821         * misc/syslog.c (vsyslog): Only use cleanup handler if
7822         _LIBC_REENTRANT is defined [PR libc/2924].
7824         * libio/Makefile (tests): Add bug-ungetwc2.
7825         * libio/bug-ungetwc2.c: New file.
7827         * manual/install.texi: Typographical and grammatical cleanup.
7828         Patch by Dennis Grace <dgrace@us.ibm.com>.
7830         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7831         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
7833         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
7834         always "&".  Adjust callers.
7835         Add "_" prefix to several generated definitions.
7836         Patch by paul@serice.net [PR libc/3158].
7838 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7840         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7841         size of _dl_arm_cap_flags.
7842         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7844         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7845         Define as 8.
7847 2002-03-22  H.J. Lu  <hjl@gnu.org>
7849         * scripts/firstversions.awk: Check the first version.
7851 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7853         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7854         dependencies must be stable to work correctly.
7855         Reported by martin.lubich@datacon.at.
7857         * libio/bug-ungetwc1.c: New file.
7858         * libio/Makefile (tests): Add bug-ungetwc1.
7860         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7861         if stream was last used for writing.
7863         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7864         number [PR libc/3111].
7866         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7867         to ...
7868         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7870 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
7872         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7873         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7874         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7875         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7876         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7878 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
7880         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7881         dynamic tags.
7883 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
7885         * sysdeps/i386/fpu/s_fabs.S: New file.
7886         * sysdeps/i386/fpu/s_fabsf.S: New file.
7887         * sysdeps/i386/fpu/s_fabsl.S: New file.
7888         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7889         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7890         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7892 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7894         * rt/tst-shm.c (do_test): Add one more test for size of shared
7895         memory object.
7897 2002-03-29  Wolfram Gloger  <wg@malloc.de>
7899         * malloc/malloc.c: Add short description and prototypes for
7900         malloc_get_state, malloc_set_state and posix_memalign, for
7901         consistency and to avoid warnings with -Wstrict-prototypes.
7902         Reported by Andreas Jaeger <aj@suse.de>.
7904 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7906         * po/gl.po: Update from translation team.
7908 2002-03-31  Roland McGrath  <roland@frob.com>
7910         * hurd/hurdselect.c (_hurd_select): Fix
7911         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7912         Use a union rather than casts to compare mach_msg_type_t as int.
7914 2002-03-25  Roland McGrath  <roland@frob.com>
7916         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7917         check off the end of NAME when it's shorter than 2 chars.
7918         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7920 2002-03-17  Roland McGrath  <roland@frob.com>
7922         * sysdeps/mach/hurd/i386/sys/io.h: New file.
7923         * sysdeps/mach/hurd/i386/ioperm.c: New file.
7924         * sysdeps/mach/hurd/i386/Dist: Add them.
7925         * sysdeps/mach/hurd/i386/Versions
7926         (libc: GLIBC_2.2.6): New set, add ioperm.
7927         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7928         (mach_interface_list): Check for mach_i386.defs.
7929         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7930         * sysdeps/mach/configure: Regenerated.
7932 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
7934         * po/fr.po: Update from translation team.
7936 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7938         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7939         getpriority from syscalls list.
7941 2002-03-28  Andreas Jaeger  <aj@suse.de>
7943         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7944         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7945         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7946         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7948 2002-03-27  Andreas Jaeger  <aj@suse.de>
7950         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7951         sigcontext): Follow further kernel change.
7953         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7954         kernel change.
7956         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7957         Change for struct sigcontext change.
7959         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7960         Follow changes in struct sigcontext.
7962         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7963         sysycall, use wrapper instead.
7965 2002-03-26  Andreas Jaeger  <aj@suse.de>
7967         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7968         read and write accesses as detailed as possible.
7969         (__memcpy_by2): Likewise.
7970         (__memcpy_g): Likewise.
7971         (memmove): Likewise.
7972         (memcmp): Likewise.
7973         (__memset_ccn_by4): Likewise.
7974         (__memset_ccn_by2): Likewise.
7975         (__memset_gcn_by4): Likewise.
7976         (__memset_gcn_by2): Likewise.
7977         (memchr): Likewise.
7978         (__memrchr): Likewise.
7979         (rawmemchr): Likewise.
7980         (__strlen_g): Likewise.
7981         (__strcpy_g): Likewise.
7982         (__mempcpy_by4): Likewise.
7983         (__mempcpy_by2): Likewise.
7984         (__mempcpy_byn): Likewise.
7985         (__stpcpy_g): Likewise.
7986         (__strncpy_by4): Likewise.
7987         (__strncpy_by2): Likewise.
7988         (__strncpy_byn): Likewise.
7989         (__strncpy_gg): Likewise.
7990         (__strcat_c): Likewise.
7991         (__strcat_g): Likewise.
7992         (__strncat_g): Likewise.
7993         (__strcmp_gg): Likewise.
7994         (__strncmp_g): Likewise.
7995         (__strchr_c): Likewise.
7996         (__strchr_g): Likewise.
7997         (__strchrnul_c): Likewise.
7998         (__strchrnul_g): Likewise.
7999         (__strrchr_c): Likewise.
8000         (__strrchr_g): Likewise.
8001         (__strrchr_c): Likewise.
8002         (__strrchr_g): Likewise.
8003         (__strcspn_c1): Likewise.
8004         (__strcspn_cg): Likewise.
8005         (__strcspn_g): Likewise.
8006         (__strcspn_g): Likewise.
8007         (__strspn_c1): Likewise.
8008         (__strspn_cg): Likewise.
8009         (__strspn_g): Likewise.
8010         (__strspn_g): Likewise.
8011         (__strpbrk_cg): Likewise.
8012         (__strpbrk_g): Likewise.
8013         (__strstr_cg): Likewise.
8014         (__strstr_g): Likewise.
8016         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
8017         Michal Ludvig <mludvig@suse.cz>.
8019         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
8020         compatibilty, adjust for kernel changes.
8022         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8023         sigcontext): Adjust for kernel changes.
8025 2002-03-25  Andreas Jaeger  <aj@suse.de>
8027         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
8028         little endian.
8029         Reported by Artur Zaprzala <zybi@talex.com.pl>.
8031 2002-03-24  Andreas Jaeger  <aj@suse.de>
8033         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
8035         * stdio-common/tst-fdopen.c (main): Remove unused variable.
8037         * iconv/tst-iconv3.c (main): Use correct printf strings.
8039 2002-03-18  Roland McGrath  <roland@frob.com>
8041         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
8042         (CMGROUP_MAX): New macro.
8044 2002-03-23  Roland McGrath  <roland@frob.com>
8046         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
8047         * sysdeps/posix/shm_unlink.c: Likewise.
8049 2002-03-22  Roland McGrath  <roland@frob.com>
8051         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
8052         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
8053         under --enable-libio.
8054         * sysdeps/mach/hurd/configure: Regenerated.
8056 2002-03-23  Roland McGrath  <roland@frob.com>
8058         * sysdeps/mach/hurd/i386/Makefile
8059         (sysdep_routines, shared-only-routines): Don't add framestate,
8060         reverting 2001-10-02 change.
8061         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
8062         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
8063         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8064         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8065         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
8066         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
8067         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8068         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
8069         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
8070         Do it here instead, only if [$(unwind-find-fde) = yes].
8072 2002-03-23  Andreas Jaeger  <aj@suse.de>
8074         * signal/signal.h: Fix typo. Patch by Steve Kemp
8075         <skx@tardis.ed.ac.uk>.
8077 2002-03-22  Andreas Jaeger  <aj@suse.de>
8079         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
8080         getresuid.
8082         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8083         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
8084         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8085         user_fpregs_struct): Rename fwd.
8087         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
8088         Follow sigcontext changes.
8090 2002-03-22  Andreas Jaeger  <aj@suse.de>
8092         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
8093         changes for NaNs on MIPS.
8094         Patch by Hartvig Ekner <hartvige@mips.com>.
8096 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
8098         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
8099         Use realloc if too large.
8100         (addgrbyid): Likewise.
8101         * nscd/hstcache.c (addhstbyname): Likewise.
8102         (addhstbyaddr): Likewise.
8103         (addhstbynamev6): Likewise.
8104         (addhstbyaddrv6): Likewise.
8105         * nscd/pwdcache.c (addpwbyname): Likewise.
8106         (addpwbyuid): Likewise.
8108 2002-03-21  Andreas Jaeger  <aj@suse.de>
8110         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8111         _fpstate): Add separate struct for x86-64.
8113         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8114         user_fpregs_struct): Change member names to follow kernel.
8116 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
8118         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
8119         Correctly close the UDP connection right away [PR libc/3120].
8121 2002-03-20  Andreas Jaeger  <aj@suse.de>
8123         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8124         user_fpregs_struct): Fix for changed kernel struct.
8125         (struct user_regs_struct): Likewise.
8126         (struct user): Likewise.
8127         Add 32-bit x86 compatibility.
8129         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
8131 2002-03-19  Andreas Jaeger  <aj@suse.de>
8133         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
8135 2002-03-18  Andreas Jaeger  <aj@suse.de>
8137         * iconvdata/Makefile: Only run tests when shared libs are
8138         available.
8140 2002-03-17  Andreas Jaeger  <aj@suse.de>
8142         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
8144         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
8146         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
8147         bits.
8149         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
8150         (CAUSE_SHIFT): New macro.
8151         Patch by Hartvig Ekner <hartvige@mips.com>.
8153         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
8154         * sysdeps/generic/unwind-pe.h: Likewise.
8156         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
8157         type to _IO_setb.
8159         * libio/stdio.c (AL2): Define variant when visibility attribute is
8160         not supported.
8162         * include/libc-symbols.h (_INTVARDEF): Define variant when
8163         visibility attribute is not supported.
8165 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
8167         * po/fr.po: Update from translation team.
8169 2002-02-25  Bruno Haible  <bruno@clisp.org>
8171         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
8173 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
8175         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
8176         buffers if _IO_file_attach failed.
8178         * libio/fileops.c (_IO_file_open): Close file descriptor if
8179         _IO_SEEKOFF call failed.
8181 2002-03-15  H.J. Lu  <hjl@gnu.org>
8182             Ulrich Drepper  <drepper@redhat.com>
8184         * configure.in: Check for availability of
8185         init_array/fini_array/preinit_array handling in binutils.
8186         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
8187         * config.make.in (have-initfini-array): New variable.
8189 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
8191         * stdio-common/tst-printf.c (main): Comment out one test which
8192         checked the compiler's ability to fold floating-point constants
8193         but not really printf.
8194         (rfg3): Make s const.
8195         * stdio-common/tst-printf.sh: Adjust for removed test.
8197         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
8198         internal function.  Adjust for internal_function calling convention.
8199         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
8200         as internal_function.
8202         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
8203         hidden.
8205         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
8206         declaration and definition.
8207         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
8208         declaration.
8209         * nss/getXXent_r.c: Likewise.
8210         * nss/nsswitch.h (db_lookup_function): Add internal_function to
8211         definition.
8213         * include/time.h: Declare __localtime_r as hidden.
8215         * include/aliases.h: Declare __getaliasent_r as hidden.
8216         * include/grp.h: Declare __getgrent_r as hidden.
8217         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
8218         __getservent_r, and __getprotoent_r as hidden.
8219         * include/pwd.h: Declare __getpwent_r as hidden.
8220         * include/shadow.h: Declare __getspent_r as hidden.
8221         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
8223         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
8224         and __gconv_transliterate as hidden.
8225         Add internal_function to __gconv_get_path declaration.
8226         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
8227         definition.  Add attribute_hidden to __gconv_read_conf definition.
8229 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
8231         * elf/rtld.c: Declare _environ as hidden.
8232         * sysdeps/generic/dl-environ.c: Likewise.
8233         * sysdeps/generic/dl-sysdep.c: Likewise.
8235         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
8236         _dl_mcount_internal as hidden.
8238         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
8239         * sysdeps/generic/dl-brk.c: New file.
8240         * sysdeps/generic/dl-sbrk.c: New file.
8241         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
8242         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
8244         * elf/dl-minimal.c (malloc): Declare _end as hidden.
8245         (__errno_location): New function.  Declare errno as hidden.
8246         * elf/rtld.c (_dl_argc): Define as hidden.
8247         (_dl_skip_args): Define as hidden.
8248         (_begin, _end): Declare as hidden.
8249         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
8250         * sysdeps/generic/entry.h (_start): Declare as hidden.
8251         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
8252         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
8253         _dl_runtime_resolve and _dl_runtime_profile as hidden.
8254         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
8256 2002-03-14  Roland McGrath  <roland@frob.com>
8258         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
8260         * Makeconfig (%.v.i, %.v): New implicit rules.
8261         (preprocess-versions): Variable removed.
8262         ($(common-objpfx)shlib-versions.v.i): New target giving just the
8263         shlib-versions input files as dependencies.
8264         ($(common-objpfx)soversions.i): Depend on that instead of the input
8265         files.  Use it as input instead of using a pipeline.
8266         (postclean-generated): Append soversions.i, shlib-versions.v, and
8267         shlib-versions.v.i here.
8268         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
8269         the Versions.def input files as dependencies.
8270         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
8271         ($(common-objpfx)Versions.all): Depend on that instead of the input
8272         files.  Use it as input instead of using a pipeline.
8273         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
8274         (postclean-generated): Append those .v and .v.i files here.
8276 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
8278         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
8279         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
8280         Remove.
8282 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
8284         * sysdeps/generic/mp_clz_tab.c: New file.
8285         * sysdeps/i386/mp_clz_tab.c: New file.
8286         * sysdeps/hppa/mp_clz_tab.c: New file.
8287         * sysdeps/powerpc/mp_clz_tab.c: New file.
8288         * stdlib/Makefile (aux): Revert last patch.
8289         * math/Makefile (gmp-objs): Likewise.
8291 2002-03-13  Paul Eggert  <eggert@twinsun.com>
8293         * time/strftime.c: Comment fixes for references to obsolescent
8294         standards, In most cases the simplest fix is to remove the
8295         confusing comments.  Cross-referencing all the standards properly
8296         is a bit of a pain, and it should be enough to put that info in
8297         the documentation as I did in my recent time.texi patch.
8299 2002-03-13  Paul Eggert  <eggert@twinsun.com>
8301         * manual/time.texi (Formatting Calendar Time):
8302         ISO C99 also specifies the E and O modifiers.
8303         %P is a GNU extension, and is not in ISO C99.
8304         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
8305         %T is also in ISO C99.
8306         The RFC 822 example is not valid in arbitrary locales.
8307         Reword the POSIX.2 wording slightly, to make it a bit clearer
8308         that POSIX.2 formats are also supported by later POSIX versions.
8309         If a format was introduced in ISO C99 it is also required by
8310         POSIX.1-2001.
8312 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
8314         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
8315         _sys_nerr_internal with INTVARDEF2.
8316         * include/libc-symbols.h (INTVARDEF2): New macro.
8317         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
8318         (_sys_nerr_internal): Library.
8320         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
8321         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
8323         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
8325 2002-03-13  Wolfram Gloger  <wg@malloc.de>
8327         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
8329 2002-03-02  Andreas Schwab  <schwab@suse.de>
8331         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
8332         'h' flag and positional arg.
8333         * stdio-common/tst-printf.c (rfg3): New function to test
8334         positional arguments.
8335         (main): Fix some warnings.
8337 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
8339         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
8340         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8342 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
8344         * grp/initgroups.c (__nss_group_data): Declare as hidden.
8346         * include/locale.h (_nl_C_locobj): Declare as hidden.
8348         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
8349         * time/strptime.c (_nl_C_LC_TIME): Likewise.
8351         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
8353         * include/sys/gmon.h: Declare _gmonparam as hidden.
8355         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
8356         (__ctype32_wctrans): Likewise.
8357         (__ctype32_width): Likewise.
8359         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
8360         use of __ttyname.
8362         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
8363         Define as hidden.
8364         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
8365         hidden.  Change all users of these variables.
8367         * posix/regex_internal.h (__re_error_msgid): Renamed from
8368         re_error_msgid.  Declare as hidden.
8369         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
8370         hidden.
8372         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
8373         (__printf_function_table): Likewise.
8374         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
8375         hidden.
8376         (__printf_function_table): Likewise.
8378         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
8379         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
8381         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
8382         * nss/nsswitch.c: Declare _nss_*_database as hidden.
8384         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
8385         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
8387 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
8389         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
8390         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8391         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8392         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8393         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8394         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8395         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8396         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8397         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
8398         _nl_C_LC_CTYPE_width: Declare as hidden.
8399         * include/locale.h: Declare _nl_locale_file_list.
8400         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
8401         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
8402         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
8403         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
8404         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
8405         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
8406         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
8407         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
8408         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
8409         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
8410         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
8411         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
8412         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8413         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8414         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8415         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8416         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8417         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8418         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8419         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
8420         _nl_C_LC_CTYPE_width, and as hidden.
8421         * locale/findlocale.c: Declare _nl_C as hidden.
8422         * locale/newlocale.c: Likewise.
8423         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
8424         _nl_locale_file_list.
8425         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
8426         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
8427         Define _nl_C_locobj as hidden.
8429         * malloc/mtrace.c (_mtrace_file): Define as hidden.
8430         (_mtrace_line): Likewise.
8432         * include/time.h: Declare __mon_yday as hidden.
8433         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
8435         * libio/libioP.h: Declare __libio_codecvt as hidden.
8436         * libio/fileops.c: Declare __libio_translit as hidden.
8437         * libio/iofwide.c: Define __libio_translit as hidden.
8439         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
8440         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
8441         * login/getutline_r.c: Likewise.
8442         * login/utmpname.c: Likewise.
8444         * login/utmp-private.h: Declare __libc_utmp_file_functions,
8445         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
8446         __libc_utmp_file_name as hidden.
8448         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
8449         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
8450         * locale/freelocale.c: Likewise.
8451         * locale/lc-time.c: Likewise.
8453         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
8454         (__libc_ptyname2): Likewise.
8455         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
8456         hidden.
8457         (__libc_ptyname2): Likewise.
8459         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
8460         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
8461         * sysdeps/generic/init-first.c: Likewise.
8462         * sysdeps/i386/init-first.c: Likewise.
8463         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8464         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8465         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8466         * sysdeps/sh/init-first.c: Likewise.
8467         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8468         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8470         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8471         (_itowa_upper_digits): Likewise.
8473         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8474         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8475         as hidden.
8477         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8478         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8479         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8480         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8482         * gmon/gmon.c (__bb_head): Define as hidden.
8483         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8485         * argp/argp-parse.c (_argp_hang): Define as static.
8487         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8488         handling in latest compilers.
8490         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8491         define alias.
8492         * libio/fileops.c (_IO_file_jumps): Likewise.
8493         * libio/stdfiles.c (_IO_list_all): Likewise.
8494         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8496         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8497         include/malloc.h.
8498         * include/malloc.h: Add __libc_malloc_initialized declaration
8499         here.  Mark variable hidden.
8500         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8502         * elf/dl-open.c (__libc_argc): Declare as hidden.
8503         (__libc_argv): Likewise.
8504         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8505         (__libc_argv): Likewise.
8506         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8507         __libc_argv as hidden.
8508         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8509         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8510         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8511         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8513         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8514         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8515         * stdlib/erand48.c: Likewise.
8516         * stdlib/jrand48.c: Likewise.
8517         * stdlib/lcong48.c: Likewise.
8518         * stdlib/lrand48.c: Likewise.
8519         * stdlib/mrand48.c: Likewise.
8520         * stdlib/nrand48.c: Likewise.
8521         * stdlib/seed48.c: Likewise.
8522         * stdlib/srand48.c: Likewise.
8524         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8525         (_itoa_lower_digits_internal): New declaration.
8526         (_itoa_upper_digits_internal): New declaration.
8527         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8528         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8529         (_itoa_upper_digits_internal): New declaration.
8530         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8531         _itoa_lower_digits.
8532         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8533         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8535         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8536         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8538         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8539         (_itowa_lower_digits): Likewise.
8540         (_itowa_upper_digits): Likewise.
8541         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8542         (_itowa_upper_digits): Likewise.
8544         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8545         not already defined.
8546         (GERMANIC_PLURAL): Declare as hidden.
8548         * posix/getopt.c (__getopt_initialized): Declare as hidden.
8549         (attribute_hidden): Define as empty macro if not already defined.
8551         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8552         (__gconv_max_path_elem_len): Likewise.
8553         (__gconv_path_envvar): Likewise.
8555         * math/Makefile (gmp-objs): Remove mp_clz_tab.
8556         * stdlib/Makefile (aux): Remove mp_clz_tab.
8557         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
8559         * stdlib/exit.h (__exit_funcs): Declare as hidden.
8561         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8563         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8564         _nl_category_names, _nl_category_name_sizes, _nl_current,
8565         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8567         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8568         (_nl_current_default_domain): Likewise
8569         (_nl_state_lock): Likewise.
8570         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8571         (_nl_current_default_domain): Likewise
8572         (_nl_state_lock): Likewise.
8573         * intl/bindtextdom.c (_nl_state_lock): Likewise.
8575         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8576         (_fpioconst_pow10): Likewise.
8578         * include/time.h (_tmbuf): Add attribute_hidden.
8580         * time/tzset.c (tzstring_list): Define as static.
8582         * include/time.h: Add attribute_hidden to __tzname_cur_max and
8583         __use_tzfile declaration.
8585         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8586         and __wcsmbs_last_locale declaration.
8588 2002-02-25  Paul Eggert  <eggert@twinsun.com>
8590         * timezone/Makefile (tzbases): Move systemv from here...
8591         (tzlinks): to here, since the entries in systemv were all changed
8592         from Zone to Link lines in tz-2001a.  Bug reported (and patch
8593         tested) by Peter Breitenlohner.
8595 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
8597         * time/tst-posixtz.c (tests): Add new tests.
8598         (main): Test whether tzset() sets daylight properly.
8600 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8602         * time/tzset.c (tz_compute): Move __daylight, __tzname and
8603         __tzname_cur_max setting...
8604         (tzset_internal): ...here.
8606 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8608         * time/tzset.c (compute_change): Don't return any value.
8609         (tz_compute): Likewise.  Don't handle southern hemisphere here.
8610         (__tz_convert): But here.
8612 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8614         * manual/examples/mkfsock.c: Include <string.h> as well.
8615         Patch by Alain De Carolis <alaind@wseurope.com>.
8617 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
8619         * posix/regexec.c (re_match): Fix incorrect register sizes.
8620         (re_search): Likewise.
8622 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8624         * posix/regcomp.c (regfree): Remove a disused condition.
8625         * posix/regex_internal.c (re_acquire_state): Likewise.
8626         (re_acquire_state_context): Likewise.
8627         (register_state): Remove a redundant malloc invocation.
8628         * posix/regex_internal.h: (re_state_table_entry): Simplify
8629         the structure.
8631 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8633         * posix/regcomp.c (regcomp): Add __builtin_expect to error
8634         handling conditions.
8635         (regerror): Likewise.
8636         (regfree): Likewise.
8637         (re_compile_internal): Likewise.
8638         (init_dfa): Likewise.
8639         (init_word_char): Likewise.
8640         (create_initial_state): Likewise.
8641         (analyze): Likewise.
8642         (analyze_tree): Likewise.
8643         (duplicate_node): Likewise.
8644         (calc_eclosure): Likewise.
8645         (calc_eclosure_iter): Likewise.
8646         (parse): Likewise.
8647         (parse_reg_exp): Likewise.
8648         (parse_branch): Likewise.
8649         (parse_expression): Likewise.
8650         (parse_subexp): Likewise.
8651         (parse_dup_op): Likewise.
8652         (parse_bracket_exp): Likewise.
8653         (build_equiv_class): Likewise.
8654         (build_charclass): Likewise.
8655         (build_word_op): Likewise.
8656         (fetch_number): Likewise.
8657         (create_tree): Likewise.
8658         (duplicate_tree): Likewise.
8659         * posix/regex.c (BE): New macro.
8660         * posix/regexec.c (re_match): Add __builtin_expect to error
8661         handling conditions.
8662         (re_match_2): Likewise.
8663         (re_search): Likewise.
8664         (re_search_internal): Likewise.
8665         (check_matching): Likewise.
8666         (proceed_next_node): Likewise.
8667         (set_regs): Likewise.
8668         (sift_states_backward): Likewise.
8669         (add_epsilon_backreference): Likewise.
8670         (transit_state): Likewise.
8671         (transit_state_sb): Likewise.
8672         (transit_state_mb): Likewise.
8673         (transit_state_bkref): Likewise.
8674         (transit_state_bkref_loop): Likewise.
8675         (build_trtable): Likewise.
8676         (group_nodes_into_DFAstates): Likewise.
8677         (match_ctx_init): Likewise.
8678         (match_ctx_add_entry): Likewise.
8679         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8680         to error handling conditions.
8681         (re_string_construct_toupper): Likewise.
8682         (build_wcs_buffer): Likewise.
8683         (build_wcs_upper_buffer): Likewise.
8684         (build_upper_buffer): Likewise.
8685         (re_string_translate_buffer): Likewise.
8686         (re_node_set_alloc): Likewise.
8687         (re_node_set_init_1): Likewise.
8688         (re_node_set_init_2): Likewise.
8689         (re_node_set_init_copy): Likewise.
8690         (re_node_set_intersect): Likewise.
8691         (re_node_set_init_union): Likewise.
8692         (re_node_set_merge): Likewise.
8693         (re_node_set_insert): Likewise.
8694         (re_dfa_add_node): Likewise.
8695         (re_acquire_state): Likewise.
8696         (re_acquire_state_context): Likewise.
8697         (create_new_state_common): Likewise.
8698         (register_state): Likewise.
8699         (create_ci_new_state): Likewise.
8700         (create_cd_new_state): Likewise.
8701         (re_string_context_at): Remove redundant condition.
8703 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8705         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8707         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8709 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
8711         * sysdeps/i386/elf/configure.in: Fix comment.
8713         * sysdeps/sparc/sparc64/configure.in: New file.
8714         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8715         if .dynamic comes before .got.
8716         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8718         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8719         HP_TIMING_ACCUM): Fix typos.
8721 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8723         * string/strfry.c: Add some more randomness to the seed.
8724         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8726         * po/es.po: Update from translation team.
8727         * po/fr.po: Likewise.
8729         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8731         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8732         when determining type of format.
8733         Patch by James Antill <james@anqd.org> [PR libc/2787].
8735 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
8737         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8739 2002-03-11  Roland McGrath  <roland@frob.com>
8741         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8743         * Versions.def (libc): Add GLIBC_2.2.6.
8744         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8745         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8746         __errno_location instead of __hurd_errno_location, and don't inline it.
8747         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8748         * hurd/errno.c: New file.
8749         * hurd/Makefile (routines): Add errno.
8751 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8753         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8754         ridiculously large widths and precisions [PR libc/3026].
8756 2002-03-11  Andreas Jaeger  <aj@suse.de>
8758         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8759         support.
8760         Patch by Susanne Oberhauser <froh@SuSE.de>.
8762 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8764         * inet/rexec.c (ahostbuf): Define as static.
8766         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8767         (__ctype32_wctrans): Likewise.
8768         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8769         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8770         (__ctype32_wctrans): Likewise.
8771         (__ctype32_width): Likewise.
8773         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8774         They were never exported anyway.
8776         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8777         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
8778         exported.
8779         * include/sys/gmon.h: Declare _gmonparam.
8781         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8782         symbols for getdents64.  They were never exported.
8784 2002-03-09  Roland McGrath  <roland@frob.com>
8786         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8787         Reported by Jon Arney <jarney1@cox.net>.
8789 2002-02-23  Roland McGrath  <roland@frob.com>
8791         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8792         declaration.
8793         (__hurd_errno_location): Function removed.
8795 2002-03-06  Andreas Jaeger  <aj@suse.de>
8797         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8798         32-bit.
8800 2002-03-04  Andreas Jaeger  <aj@suse.de>
8802         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8804         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8805         x86-64.
8807         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8809         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8811         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8813         * sysdeps/x86_64/bits/setjmp.h: New file.
8815         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8817         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8819         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8820         for x86.
8821         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8822         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8824 2002-02-28  Bo Thorsen  <bo@suse.de>
8826         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8827         version.
8829 2002-03-03  Andreas Jaeger  <aj@suse.de>
8831         * sysdeps/x86_64/bits/wordsize.h: New file.
8833         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8834         * elf/tst-tlsmod1.c: Likewise.
8836         * posix/regcomp.c: Get regex.h from include dir for internal
8837         prototypes.
8839         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8840         to libc-internal.h and include it.
8841         * include/libc-internal.h: Add __init_misc.
8843         * misc/init-misc.c: Include libc-internal.h for prototypes.
8845         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8847         * misc/error.c [_LIBC]: Include libioP.h for prototype of
8848         _IO_putc_internal.
8850 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
8852         * posix/regcomp.c: Compatibility changes to allow using the code
8853         outside glibc.
8855 2002-02-28  Hartvig Ekner <hartvige@mips.com>
8857         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8858         compiled non-PIC.
8860 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
8862         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8863         of .str elements in the returned data structure.
8865         * elf/elf.h: Add Alpha TLS bits.
8867 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8869         * sysdeps/unix/sysv/linux/nice.c: New file.
8871 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
8873         * elf/Makefile (dl-routines): Add dl-origin.
8874         (elide-routines.os): Add dl-origin.
8875         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8876         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8877         _dl_debug_state.
8878         * include/libc-symbols.c: Define attribute_hidden depending on
8879         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
8881         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8882         * elf/dl-load.c: Likewise.
8883         * elf/rtld.c: Likewise.
8884         * include/unistd.h: Declare __libc_enable_secure_internal.
8885         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8886         Use INTUSE with __libc_enable_secure.
8887         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8889         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8890         * elf/dl-error.c: Likewise,
8891         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8893         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8894         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8895         function definition.  Use INTDEF with _dl_get_origin.
8896         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8898         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8899         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
8901         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8902         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8903         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8905         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8906         * elf/dl-deps.c: Likewise.
8907         * elf/dl-error.c: Likewise.
8908         * elf/dl-fini.c: Likewise.
8909         * elf/dl-init.c: Likewise.
8910         * elf/dl-load.c: Likewise.
8911         * elf/dl-lookup.c: Likewise.
8912         * elf/dl-reloc.c: Likewise.
8913         * elf/dl-version.c: Likewise.
8914         * elf/do-lookup.h: Likewise.
8915         * sysdeps/arm/dl-machine.h: Likewise.
8916         * sysdeps/cris/dl-machine.h: Likewise.
8917         * sysdeps/hppa/dl-machine.h: Likewise.
8918         * sysdeps/i386/dl-machine.h: Likewise.
8919         * sysdeps/m68k/dl-machine.h: Likewise.
8920         * sysdeps/powerpc/dl-machine.h: Likewise.
8921         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8922         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8923         * sysdeps/sh/dl-machine.h: Likewise.
8924         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8925         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8926         * sysdeps/x86_64/dl-machine.h: Likewise.
8927         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
8928         _dl_argv[0].  Use INTUSE with _dl_argv.
8929         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8930         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8932 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8934         * elf/rtld.c (_rtld_global): Remove .protected.
8935         (_rtld_local): Strong alias to _rtld_global.
8936         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8937         only .os object.
8938         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8939         _rtld_local instead of _rtld_global.
8940         (_rtld_local): Add hidden extern, possibly in .sdata section.
8941         * configure.in: Add tests for visibility attribute and .sdata.
8942         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8943         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8944         * sysdeps/arm/dl-machine.h: Likewise.
8945         * sysdeps/generic/ldsodefs.h: Likewise.
8946         * sysdeps/hppa/dl-machine.h: Likewise.
8947         * sysdeps/cris/dl-machine.h: Likewise.
8948         * sysdeps/i386/dl-machine.h: Likewise.
8949         * sysdeps/ia64/dl-machine.h: Likewise.
8950         * sysdeps/m68k/dl-machine.h: Likewise.
8951         * sysdeps/mips/mips64/dl-machine.h: Likewise.
8952         * sysdeps/mips/dl-machine.h: Likewise.
8953         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8954         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8955         * sysdeps/sh/dl-machine.h: Likewise.
8956         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8957         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8958         * sysdeps/x86_64/dl-machine.h: Likewise.
8960 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8962         * login/login.c (login): Always initialize ut_line field
8963         [PR libc/2991].
8965 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8967         * sysdeps/i386/Makefile (sysdep_routines): Add
8968         divdi3 in csu dir.
8969         (shared-only-routines): Likewise.
8970         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8971         (shared-only-routines): Likewise.
8972         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8973         (shared-only-routines): Likewise.
8974         * sysdeps/wordsize-32/divdi3.c: New file.
8976 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8978         * locale/iso-4217.def: Remove obsolete currencies for countries
8979         with Euro.
8981 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
8983         * posix/regcomp.c (regcomp): Remove a redundant condition.
8984         (init_word_char): Add a check on malloc failure.
8985         (create_initial_state): Likewise.
8986         (duplicate_node): Likewise.
8987         (calc_eclosure): Likewise.
8988         (calc_eclosure_iter): Likewise.
8989         (parse_expression): Likewise.
8990         (parse_bracket_exp): Remove unnecessary malloc invocations.
8991         (build_equiv_class): Likewise.
8992         (build_charclass): Likewise.
8993         * posix/regex_internal.c (re_node_set_intersect): Add a check
8994         on malloc failure.
8995         (re_node_set_add_intersect): Likewise.
8996         (re_node_set_merge): Likewise.
8997         (re_acquire_state): Likewise.
8998         (re_acquire_state_context): Likewise.
8999         (create_newstate_common): Likewise.
9000         (register_state): Likewise.
9001         (create_ci_newstate): Likewise.
9002         (create_cd_newstate): Likewise.
9003         * posix/regex_internal.h: Fix prototypes of re_acquire_state
9004         and re_acquire_state_context.
9005         * posix/regexec.c (regexec): Suit it to the error handling of
9006         re_search_internal.
9007         (re_match): Likewise.
9008         (re_search): Likewise.
9009         (re_search_internal): Add a check on malloc failure.
9010         (acquire_init_state_context): Likewise.
9011         (check_matching): Likewise.
9012         (proceed_next_node): Likewise.
9013         (set_regs): Likewise.
9014         (sift_states_backward): Likewise.
9015         (sift_states_iter_bkref): Likewise.
9016         (add_epsilon_backreference): Likewise.
9017         (transit_state): Likewise.
9018         (transit_state_sb): Likewise.
9019         (transit_state_mb): Likewise.
9020         (transit_state_bkref_loop): Likewise.
9021         (build_trtable): Likewise.
9022         (group_nodes_into_DFAstates): Likewise.
9023         (match_ctx_init): Likewise.
9024         (match_ctx_add_entry): Likewise.
9026 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
9028         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
9029         l_libname if profiling is enabled [PR libc/2916].
9031         * sysdeps/ia64/dl-tls.h: New file.
9033 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
9035         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
9036         Work around an Alpha gas bug.
9038 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
9040         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
9041         uses read to load the catalog.
9042         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
9044 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
9046         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
9047         regex_internal.c, and regex_internal.h.
9048         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
9049         * posix/regex.c: Complete rewrite.
9050         * posix/regexec.c: New file.
9051         * posix/regcomp.c: New file.
9052         * posix/regex_internal.c: New file.
9053         * posix/regex_internal.h: New file.
9054         * posix/regex.h (RE_ICASE): New macro.
9055         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
9057         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
9058         ungetwc.  It's a macro.
9059         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
9060         implementation.
9061         Reported by Jason Merrill <jason@redhat.com>.
9063 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
9065         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
9066         position to fp->_offset if it is set.
9067         * stdio-common/Makefile (tests): Add tst-fdopen.
9068         * stdio-common/tst-fdopen.c: New test.
9070 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
9072         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
9073         * stdio-common/tst-ungetc.c (main): Add another test.
9075 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
9077         * assert/assert-perr.c: Use INTUSE to reference functions and variables
9078         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
9079         aliases.  Add prototypes for the new aliases.
9080         * assert/assert.c: Likewise.
9081         * include/libc-symbols.h: Likewise.
9082         * include/stdio.h: Likewise.
9083         * include/netinet/in.h: Likewise.
9084         * include/rpc/auth.h: Likewise.
9085         * include/rpc/auth_unix.h: Likewise.
9086         * include/rpc/key_prot.h: Likewise.
9087         * include/rpc/pmap_prot.h: Likewise.
9088         * include/rpc/pmap_rmt.h: Likewise.
9089         * include/rpc/rpc_msg.h: Likewise.
9090         * include/rpc/xdr.h: Likewise.
9091         * inet/gethstbyad_r.c: Likewise.
9092         * inet/gethstbynm2_r.c: Likewise.
9093         * inet/gethstbynm_r.c: Likewise.
9094         * inet/gethstent_r.c: Likewise.
9095         * inet/in6_addr.c: Likewise.
9096         * libio/__fpurge.c: Likewise.
9097         * libio/filedoalloc.c: Likewise.
9098         * libio/fileops.c: Likewise.
9099         * libio/ftello.c: Likewise.
9100         * libio/ftello64.c: Likewise.
9101         * libio/genops.c: Likewise.
9102         * libio/iofclose.c: Likewise.
9103         * libio/iofdopen.c: Likewise.
9104         * libio/iofflush.c: Likewise.
9105         * libio/iofflush_u.c: Likewise.
9106         * libio/iofgetpos.c: Likewise.
9107         * libio/iofgetpos64.c: Likewise.
9108         * libio/iofgets.c: Likewise.
9109         * libio/iofgets_u.c: Likewise.
9110         * libio/iofopen.c: Likewise.
9111         * libio/iofopncook.c: Likewise.
9112         * libio/iofputs.c: Likewise.
9113         * libio/iofread.c: Likewise.
9114         * libio/iofread_u.c: Likewise.
9115         * libio/iofsetpos.c: Likewise.
9116         * libio/iofsetpos64.c: Likewise.
9117         * libio/ioftell.c: Likewise.
9118         * libio/iofwrite.c: Likewise.
9119         * libio/iogetline.c: Likewise.
9120         * libio/iogets.c: Likewise.
9121         * libio/iogetwline.c: Likewise.
9122         * libio/iolibio.h: Likewise.
9123         * libio/iopadn.c: Likewise.
9124         * libio/iopopen.c: Likewise.
9125         * libio/ioseekoff.c: Likewise.
9126         * libio/ioseekpos.c: Likewise.
9127         * libio/iosetbuffer.c: Likewise.
9128         * libio/iosetvbuf.c: Likewise.
9129         * libio/ioungetc.c: Likewise.
9130         * libio/ioungetwc.c: Likewise.
9131         * libio/iovdprintf.c: Likewise.
9132         * libio/iovsprintf.c: Likewise.
9133         * libio/iovsscanf.c: Likewise.
9134         * libio/libioP.h: Likewise.
9135         * libio/memstream.c: Likewise.
9136         * libio/obprintf.c: Likewise.
9137         * libio/oldfileops.c: Likewise.
9138         * libio/oldiofclose.c: Likewise.
9139         * libio/oldiofdopen.c: Likewise.
9140         * libio/oldiofgetpos.c: Likewise.
9141         * libio/oldiofgetpos64.c: Likewise.
9142         * libio/oldiofopen.c: Likewise.
9143         * libio/oldiofsetpos.c: Likewise.
9144         * libio/oldiofsetpos64.c: Likewise.
9145         * libio/oldiopopen.c: Likewise.
9146         * libio/oldstdfiles.c: Likewise.
9147         * libio/putc.c: Likewise.
9148         * libio/setbuf.c: Likewise.
9149         * libio/setlinebuf.c: Likewise.
9150         * libio/stdfiles.c: Likewise.
9151         * libio/stdio.c: Likewise.
9152         * libio/strops.c: Likewise.
9153         * libio/vasprintf.c: Likewise.
9154         * libio/vscanf.c: Likewise.
9155         * libio/vsnprintf.c: Likewise.
9156         * libio/vswprintf.c: Likewise.
9157         * libio/wfiledoalloc.c: Likewise.
9158         * libio/wfileops.c: Likewise.
9159         * libio/wgenops.c: Likewise.
9160         * libio/wstrops.c: Likewise.
9161         * malloc/mtrace.c: Likewise.
9162         * misc/error.c: Likewise.
9163         * misc/syslog.c: Likewise.
9164         * nss/getXXbyYY_r.c: Likewise.
9165         * nss/getXXent_r.c: Likewise.
9166         * nss/hosts-lookup.c: Likewise.
9167         * stdio-common/getw.c
9168         * stdio-common/printf-prs.c: Likewise.
9169         * stdio-common/printf_fp.c: Likewise.
9170         * stdio-common/printf_size.c: Likewise.
9171         * stdio-common/putw.c: Likewise.
9172         * stdio-common/scanf.c: Likewise.
9173         * stdio-common/sprintf.c: Likewise.
9174         * stdio-common/tmpfile64.c: Likewise.
9175         * stdio-common/vfprintf.c: Likewise.
9176         * stdio-common/vfscanf.c: Likewise.
9177         * stdlib/strfmon.c: Likewise.
9178         * sunrpc/auth_des.c: Likewise.
9179         * sunrpc/auth_none.c: Likewise.
9180         * sunrpc/auth_unix.c: Likewise.
9181         * sunrpc/authdes_prot.c: Likewise.
9182         * sunrpc/authuxprot.c: Likewise.
9183         * sunrpc/clnt_perr.c: Likewise.
9184         * sunrpc/clnt_raw.c: Likewise.
9185         * sunrpc/clnt_tcp.c: Likewise.
9186         * sunrpc/clnt_udp.c: Likewise.
9187         * sunrpc/clnt_unix.c: Likewise.
9188         * sunrpc/key_call.c: Likewise.
9189         * sunrpc/key_prot.c: Likewise.
9190         * sunrpc/openchild.c: Likewise.
9191         * sunrpc/pm_getmaps.c: Likewise.
9192         * sunrpc/pm_getport.c: Likewise.
9193         * sunrpc/pmap_clnt.c: Likewise.
9194         * sunrpc/pmap_prot.c: Likewise.
9195         * sunrpc/pmap_prot2.c: Likewise.
9196         * sunrpc/pmap_rmt.c: Likewise.
9197         * sunrpc/rpc_cmsg.c: Likewise.
9198         * sunrpc/rpc_prot.c: Likewise.
9199         * sunrpc/svc_authux.c: Likewise.
9200         * sunrpc/svc_raw.c: Likewise.
9201         * sunrpc/svc_simple.c: Likewise.
9202         * sunrpc/svc_tcp.c: Likewise.
9203         * sunrpc/svc_udp.c: Likewise.
9204         * sunrpc/svc_unix.c: Likewise.
9205         * sunrpc/xdr.c: Likewise.
9206         * sunrpc/xdr_array.c: Likewise.
9207         * sunrpc/xdr_mem.c: Likewise.
9208         * sunrpc/xdr_rec.c: Likewise.
9209         * sunrpc/xdr_ref.c: Likewise.
9210         * sunrpc/xdr_stdio.c: Likewise.
9211         * sysdeps/generic/_strerror.c: Likewise.
9212         * sysdeps/generic/printf_fphex.c: Likewise.
9213         * sysdeps/generic/tmpfile.c: Likewise.
9214         * sysdeps/gnu/errlist.awk: Likewise.
9215         * sysdeps/gnu/errlist.c: Likewise.
9217         * libio/Makefile (routines): Remove iosprint.
9218         * libio/iosprintf.c: Removed
9221 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
9223         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
9224         non_dynamic_init and exported now.
9225         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
9226         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
9227         !SHARED.
9228         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
9229         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
9230         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
9232 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
9234         * elf/dl-close.c (free_slotinfo): Check for end of list and return
9235         true in this case.
9237         * locale/iso-639.def: Add language codes for Walloon.
9239         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
9240         total number of relocations performed.
9242         * elf/sprof.c (load_profdata): If do_test provide information as
9243         to why loading failed.
9244         * elf/dl-profile.c (_dl_start_profile): Initialize all of
9245         hist_hdr.dimen.
9247         * csu/set-init.c: Moved to...
9248         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
9249         * csu/Makefile: Don't compile set-init.
9250         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
9251         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
9252         to __libc_init.
9253         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
9254         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
9255         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
9256         __libc_init.
9257         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
9258         __libc_subinit.
9260 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
9262         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
9263         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
9264         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
9265         (_dl_deallocate_tls): New function.
9266         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
9267         _dl_deallocate_tls.
9269 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
9271         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
9272         * stdio-common/tst-fseek.c (main): Add test for this.
9274 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
9276         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
9278 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
9280         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
9281         pointer before dereferencing.
9283 2002-02-18  Roland McGrath  <roland@frob.com>
9285         * sysdeps/mach/hurd/times.c: Fix typo in last change.
9287         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
9288         Use task_policy in place of task_priority.
9290         * sysdeps/generic/bits/mman.h
9291         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
9292         * sysdeps/mach/msync.c: New file.
9294         * sysdeps/mach/powerpc/syscall.S: New file.
9296         * mach/msg.c [MACH_MSG_OVERWRITE]
9297         (__mach_msg_trap, __mach_msg_overwrite): New functions.
9298         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
9300         * sysdeps/mach/configure.in: Check for clock.defs to put into
9301         mach_interface_list.
9302         * sysdeps/mach/configure: Regenerated.
9304         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
9305         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
9306         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
9307         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
9308         (mach-shortcuts): Add device_read_overwrite_request,
9309         device_read_overwrite, vm_read_overwrite, thread_switch.
9311         * configure.in (base_machine): Set to $machine by default.
9312         * configure: Regenerated.
9314         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
9315         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
9316         * sysdeps/mach/configure: Regenerated.
9317         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
9319         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
9321         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
9323         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
9324         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
9326 2002-02-17  Roland McGrath  <roland@frob.com>
9328         * sysdeps/mach/hurd/times.c
9329         [NO_CREATION_TIME] (startup_time): New static variable.
9330         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
9331         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
9332         creation_time from task_basic_info.
9333         (__times): Use __gettimeofday instead of __host_get_time.
9335         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
9336         Use untyped Mach IPC message format.
9338         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
9340         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
9341         _S_catch_exception_raise_state_identity,
9342         _hurdsig_fault_catch_exception_raise_state,
9343         _hurdsig_fault_catch_exception_raise_state_identity.
9345         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
9347         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
9348         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
9350         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
9351         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
9353         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
9354         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
9355         them as no-op macros.
9356         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
9357         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
9359         * sysdeps/powerpc/dl-machine.h
9360         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
9362         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
9363         Use untyped Mach IPC message format.
9365         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
9366         Handle untyped Mach IPC message formats.
9368         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
9369         Expect different argument conventions when this is defined.
9370         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
9371         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
9372         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
9373         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
9374         for OSF Mach variant.
9375         (faulted): Use mig_reply_error_t for REPLY.
9376         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
9377         in __thread_set_exception_ports call.
9378         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
9379         __mach_port_set_attributes in place of __mach_port_set_qlimit.
9381         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
9382         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
9383         on Darwin, which includes bogons.
9385         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
9386         variable LOADBASE so it's not declared when it's not used.
9388 2002-02-16  Roland McGrath  <roland@frob.com>
9390         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
9391         to use BI.creation_time.
9393         * mach/Machrules (MIG): Add -x c to CPP value passed down.
9395         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
9396         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
9397         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
9398         host_page_size instead of vm_statistics.
9400         * sysdeps/mach/Makefile (mach-before-compile): Don't include
9401         mach_interface.h here, since not all variants use that name.
9403         * sysdeps/mach/configure.in: Add some checks for Mach headers
9404         to ensure a sane installation.
9405         (mach_interface_list): Define this variable by checking for .defs
9406         files found in various variants.
9407         * configure.in (mach_interface_list): AC_SUBST this.
9408         * config.make.in (mach-interface-list): New substituted variable.
9409         * mach/Makefile (user-interfaces): Define this using the value
9410         of $(mach-interface-list) instead of mach, mach4.
9411         Updated other references to mach_interface to use it as well.
9413         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
9415         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
9416         mig_reply_error_t for OSF Mach variant.
9418         * mach/Makefile (routines): Remove bootprivport.
9419         * mach/bootprivport.c: File removed.  It has never been used.
9421         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
9422         Grok the OSF flavor of message format.
9423         (mach_msg_destroy_port): For MAKE_SEND and
9424         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
9425         no-senders notification.
9427 2002-02-06  Roland McGrath  <roland@frob.com>
9429         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
9430         to here if 2.0 compatibility enabled ...
9431         (libc: GLIBC_2.1.3): ... from here.
9433 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
9435         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
9436         generation counter.
9437         * elf/dl-close.c (_dl_close): Likewise.
9439 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
9441         * elf/Makefile: Add rules to build and run tst-tls8.
9442         * elf/tst-tls8.c: New file.
9443         * elf/tst-tlsmod4.c: New file.
9445         * stdlib/test-a64l.c (tests): Add more test cases.
9447         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
9448         Reported by Walter Harms <WHarms@bfs.de>.
9450 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
9452         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
9453         definitions for struct sigcontext.
9454         Suggested by David Mosberger-Tang.
9456 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9458         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
9459         for removing reference of module in slotinfo list.
9460         (_dl_close): Use remove_slotinfo.
9461         * sysdeps/generic/dl-tls.c: General pretty printing.
9462         (oom): Define only if SHARED.
9463         (_dl_next_tls_modid): Correct starting point for the case we assume
9464         there is a gap.  Add missing instruction grouping (doh!).  Correct
9465         tests for reaching maximum index.
9466         * elf/Makefile: Add rules to build and run tst-tls7.
9467         * elf/tst-tls7.c: New file.
9468         * elf/tst-tlsmod3.c: New file.
9470         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9471         USE_TLS.
9472         * elf/tst-tlsmod2.c: Likewise.
9474         * elf/dl-close.c (_dl_close): When closing an object using TLS
9475         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9476         true.  Increment dl_tls_generation only if we closed any TLS-using
9477         object.
9478         * elf/tst-tls6.c: New file.
9479         * elf/Makefile: Add rules to build and run tst-tls6.
9481         * po/da.po: Update from translation team.
9483         * locale/categories.def: Fix typo [PR libc/2948].
9484         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9485         [PR libc/2949].
9486         * locale/iso-4217.def: Update from official version [PR libc/2950].
9487         * glibcbug.in: Honor TMPDIR [PR libc/2951].
9488         * locale/programs/ld-collate.c (collate_finish): Bail out with a
9489         message if input is too confusion instead of using assert.
9490         (collate_read): Don't crash on unknown symbol [PR libc/2952].
9491         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9493         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9494         * elf/tst-tls2.c: Likewise.
9495         * elf/tst-tls3.c: Likewise.
9497 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
9499         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9501 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9503         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9504         if this is really necessary.
9506         * elf/dl-close.c (_dl_close): Implement freeing entries in the
9507         slotinfo array.
9508         (free_mem): Free memory for the slotinfo array if possible.
9510 2002-02-12  Andreas Schwab  <schwab@suse.de>
9512         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9514 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
9516         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9517         TLS_DTV_UNALLOCATE.
9518         (oom): New function.
9519         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9520         (_dl_determine_tlsoffset): Likewise.
9521         (_dl_allocate_tls): Likewise.
9522         (__TLS_GET_ADDR): Define if not already defined.
9523         (_dl_tls_symaddr): New function.
9524         (allocate_and_init): New function.
9525         (__tls_get_addr): Actually implement handling of generation counter
9526         and deferred allocation.
9527         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9528         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9529         _dl_tls_generation.
9530         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9531         Declare _dl_tls_symaddr.
9532         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9533         SHARED.
9534         * include/link.h (struct link_map):  Remove l_tls_nextimage and
9535         l_tls_previmage.
9536         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9537         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9538         (_dl_vsym): Likewise.
9539         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9540         layout.
9541         (dl_main): Allow PT_TLS be present for empty segment.  Remove
9542         nextimage list handling.  Instead add all modules using TLS to
9543         dl_tls_dtv_slotinfo_list.
9544         * elf/dl-open.c (dl_open_worker): After successfully loading all
9545         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9546         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9547         empty segment don't do anything.  Remove handling of initimage list.
9548         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9549         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9550         * elf/dl-minimal.c: Define __libc_memalign.
9551         * elf/dl-support.c: Remove _dl_initimage_list.  Add
9552         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9553         _dl_tls_generation.
9554         * include/stdlib.h: Declare __libc_memalign.
9556         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9557         * elf/tst-tls4.c: New file.
9558         * elf/tst-tls5.c: New file.
9559         * elf/tst-tlsmod2.c: New file.
9561         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9563         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9565         * elf/tst-tls1.c: Use test-skeleton.c.
9566         * elf/tst-tls2.c: Likewise.
9567         * elf/tst-tls3.c: Likewise.
9569         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9571 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
9573         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9575 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
9577         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9579         * elf/tst-tls3.c: New file.
9580         * elf/tst-tlsmod1.c: New file.
9581         * elf/Makefile: Add rules to build and run tst-tls3.
9583         * sysdeps/i386/dl-machine.h: Include <tls.h>.
9584         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9585         TLS relocations.
9587         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9589         * po/fr.po: Update from translation team.
9591         * elf/tls-macros.h: Add alternative macros for use in PIC.
9593         * elf/dl-lookup.c: Include <tls.h>.
9594         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9596         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9597         required by passing pointer to last element of the list.
9599         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9600         l_tls_initimage to a place where it actually is performed.
9602         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9603         after globfree() calls.
9605         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9606         (openaux): Pass open_mode as new last argument to _dl_map_object.
9607         (_dl_map_object_deps): Add new argument open_mode.  Initialize
9608         open_mode element of args variable with it.
9609         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9610         _dl_map_object_deps.
9611         * elf/rtld.c (dl_main): Add zero as last parameter to
9612         _dl_map_object_deps call.
9613         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9614         * elf/nodlopen2.c: New file.
9615         * elf/nodlopenmod2.c: New file.
9616         * elf/Makefile: Add rules to build and run nodlopen2.
9618         * elf/tst-tls1.c: Move TLS helper macros to...
9619         * elf/tls-macros.h: ...here.  New file.
9620         * elf/tst-tls2.c: New file.
9621         * elf/Makefile (tests): Add tst-tls2.
9622         (distribute): Add tls-macros.h.
9624         * po/sv.po: Update from translation team.
9626         * elf/tst-tls1.c (main): Add complete set of tests.  Split
9627         architecture specific definitions from the actual test code.
9629         * po/tr.po: Update from translation team.
9631 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
9633         * elf/Makefile (tests): Add tst-tls1.
9634         * elf/tst-tls1.c: New file.
9636         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9637         alignment of TCB for now.
9639         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9640         initialization image for the application itself.
9642         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9643         loop to initialize TLS block.
9645 2002-02-08  Richard Henderson  <rth@redhat.com>
9647         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9648         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9650         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9652 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
9654         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9656 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
9658         * po/ca.po: Update from translation team.
9659         * po/sk.po: Likewise.
9661         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9662         (dl_main): Move dtv/static TLS handling before relocation.
9663         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
9664         TLS_INIT_TP to allocate and install the dtv/static TLS block.
9665         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9666         so far uses TLS initialize GL(dl_tls_static_size) and
9667         GL(dl_tls_static_align) to account for the TCB.
9668         (_dl_allocate_tls): New function.
9669         * sysdeps/generic/ldsodefs.h (rtld_global): Add
9670         _dl_initial_dtv_malloced.
9672         * configure.in: Test for __builtin_memset more realistically.
9674         * csu/version.c (banner): If TLS support is available say so.
9676 2002-02-04  H.J. Lu  <hjl@gnu.org>
9678         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9679         __attribute_used__.
9680         (__dl_runtime_resolve): Likewise.
9682         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9683         declaration.
9685 2001-11-15  H.J. Lu  <hjl@gnu.org>
9687         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9688         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9690         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9692 2002-02-07  H.J. Lu  <hjl@gnu.org>
9694         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9695         ".set noreorder".
9696         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9697         Likewise.
9699 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9701         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9703         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9704         ___tls_get_addr_internal.
9705         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9707         * po/ko.po: Update from translation team.
9709 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
9711         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9712         attribute, change __pad{1,2} type to unsigned int.
9713         (struct stat64): Remove packed attribute.
9715 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9717         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9719 2002-02-07  Andreas Schwab  <schwab@suse.de>
9721         * configure.in: Fix check for -zcombreloc.
9723 2002-02-06  H.J. Lu  <hjl@gnu.org>
9725         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9726         * configure.in: Check if __builtin_memset really works.
9727         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9728         __GNUC_PREREQ (2, 96) before using __builtin_memset.
9730 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9732         * io/bug-ftw3.c (main): Don't try the test if root.
9734 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9736         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9737         constraints.
9738         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9739         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9740         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9741         Likewise.
9742         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9743         a weak alias for __clone.
9744         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9745         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9746         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9747         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9748         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9749         a weak alias for __mmap64.
9751 2002-02-05  H.J. Lu  <hjl@gnu.org>
9753         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9754         (atomic_add): Likewise.
9755         (compare_and_swap): Likewise.
9756         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9758 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9760         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9762         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9763         alignment of the TCB and store total size and alignment of static
9764         TLS block in _dl_tls_static_size and _dl_tls_static_align.
9765         tls_index is a typedef.
9766         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9767         _dl_tls_static_align.
9768         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9769         * elf/dl-support.c: Define _dl_tls_static_size and
9770         _dl_tls_static_align.
9772 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9774         * configure.in: Add --without-tls option.
9775         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9776         --without-tls is given.
9778         * sysdeps/generic/dl-tls.c: Include <tls.h>.
9780         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9782 2002-02-06  Roland McGrath  <roland@frob.com>
9784         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9785         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9787         * scripts/versions.awk: Improve error message for missing version.
9788         Each version inherits from the last one only if they have the same
9789         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9790         but not GLIBC_x and FOO_y.
9792         * scripts/firstversions.awk: Handle libraries that don't have each
9793         particular version named in the third column of shlib-versions.
9795         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9797 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9799         * Versions.def [ld]: Add GLIBC_2.3.
9800         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9801         * elf/Makefile (dl-routines): Add dl-tls.
9802         (distribute): Add dl-tls.h.
9803         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9804         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9805         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9806         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9807         along with the other info in the link map.  Change queueing of init
9808         images for double linked list.  Use _dl_next_tls_modid to compute
9809         l_tls_modid.
9810         * elf/rtld.c (_dl_start_final): Store alignment requirement
9811         along with the other info in rtld map and executable map.
9812         (dl_main): Add ld.so to the init image list if necessary.  Compute
9813         final module ID with _dl_next_tls_modid.
9814         * include/link.h (struct link_map): Add l_tls_previmage and
9815         l_tls_align.
9816         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9817         * sysdeps/i386/elf/Versions: New file.
9818         * sysdeps/generic/dl-tls.c: New file.
9819         * sysdeps/generic/dl-tls.h: New file.
9820         * sysdeps/i386/dl-tls.h: New file.
9822 2002-02-06  Roland McGrath  <roland@frob.com>
9824         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9825         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9827 2002-01-05  Roland McGrath  <roland@frob.com>
9829         * sysdeps/mach/configure.in: New file.
9830         * sysdeps/mach/configure: New generated file.
9832         * mach/Makefile (user-interfaces): Remove default_pager_helper.
9833         It has never been used by anything.
9835 2002-02-06  H.J. Lu  <hjl@gnu.org>
9837         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9838         is included.
9840 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9842         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9843         attribute((packed)) to counter stupid people misusing gcc options.
9844         (struct stat64): Likewise.
9846 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9848         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
9849         the variables which are used as booleans.
9851 2002-02-06  Andreas Jaeger  <aj@suse.de>
9853         * include/libc-symbols.h (INTUSE): Renamed from INT.
9854         * elf/dl-deps.c: Change users.
9855         * sysdeps/generic/dl-sysdep.c: Likewise.
9856         * sysdeps/generic/dl-cache.c: Likewise.
9857         * elf/dl-reloc.c: Likewise.
9858         * elf/rtld.c: Likewise.
9859         * elf/dl-version.c: Likewise.
9860         * elf/dl-load.c: Likewise.
9861         * elf/dl-dst.h: Likewise.
9862         * elf/dl-init.c: Likewise.
9863         * elf/dl-error.c: Likewise.
9864         * elf/dl-fini.c: Likewise.
9865         * elf/dl-runtime.c: Likewise.
9866         * elf/do-lookup.h: Likewise.
9868         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9869         definition.
9870         * stdio-common/_itowa.h: Likewise.
9872 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9874         * elf/dl-minimal.c: Define _itoa_lower_digits.
9876         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9877         DT_FLAGS set.
9879         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9880         loading modules with the DF_STATIC_TLS flag set.
9881         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9882         element.
9883         * include/link.h (struct link_map): Add l_flags field.
9884         * elf/elf.h (DF_STATIC_TLS): New definition.
9886         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9887         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
9889         * elf/rtld.c (process_dl_debug): Correct printing help message.
9890         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9891         for %s.
9893         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9894         definition and pass &errno in use of this variable.
9895         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9897 2002-02-04  Andreas Schwab  <schwab@suse.de>
9899         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9900         * locale/programs/charmap-dir.c: Wrap calls that output messages
9901         with WITH_CUR_LOCALE.  Include "localedef.h" first.
9902         * locale/programs/charmap.c: Likewise.
9903         * locale/programs/ld-address.c: Likewise.
9904         * locale/programs/ld-collate.c: Likewise.
9905         * locale/programs/ld-ctype.c: Likewise.
9906         * locale/programs/ld-identification.c: Likewise.
9907         * locale/programs/ld-measurement.c: Likewise.
9908         * locale/programs/ld-messages.c: Likewise.
9909         * locale/programs/ld-monetary.c: Likewise.
9910         * locale/programs/ld-name.c: Likewise.
9911         * locale/programs/ld-numeric.c: Likewise.
9912         * locale/programs/ld-paper.c: Likewise.
9913         * locale/programs/ld-telephone.c: Likewise.
9914         * locale/programs/ld-time.c: Likewise.
9915         * locale/programs/linereader.c: Likewise.
9916         * locale/programs/linereader.h: Likewise.
9917         * locale/programs/localedef.c: Likewise.
9918         * locale/programs/locfile.c: Likewise.
9919         * locale/programs/repertoire.c: Likewise.
9921 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9923         * elf/rtld.c (_dl_start_final): Determine load address to locate
9924         ehdr with GL(dl_rtld_map).l_map_start.
9926         * po/ca.po: Update from translation team.
9928         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9929         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9930         header entry.
9931         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9932         _dl_tls_module_cnt.
9933         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9935 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
9937         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9938         * include/link.h (struct link_map): Add various members for TLS
9939         information.
9940         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9941         _rtld_tlsoffset, add _dl_initimage_list.
9942         * sysdeps/i386/dl-lookupcfg.h: New file.
9943         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9944         TLS relocation.  When using TLS we now use RESOLVE_MAP.
9945         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9946         is used.
9948         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9949         unused.
9951         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9952         thread-pointer as soon as possible.
9953         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
9954         elements in rtld_global.
9955         * sysdeps/generic/tls.h: New file.
9956         * elf/Makefile (distribute): Add tls.h.
9957         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9958         relocations.  Not complete yet.
9960         * resolv/resolv.h: Allow user to define __need_res_state and only
9961         define __res_start structure then.
9962         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9964         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9965         dl_cpuclock_offset initialization to _dl_start_final.
9966         (_dl_show_auxv): Avoid unnecessary sign extension.
9967         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9969 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9971         * config.h.in: Add HAVE_TLS_SUPPORT.
9972         * sysdeps/i386/elf/configure.in: New file.
9974 2002-02-03  Andreas Schwab  <schwab@suse.de>
9976         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9977         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
9979 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
9981         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9982         alloca if the memory reqirements are too high.
9984 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9986         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
9987         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
9988         the former is available anyway and speed isn't important here.
9989         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
9990         * elf/dl-version.c (match_symbol): Likewise.
9991         (_dl_check_map_versions): Likewise.
9992         * elf/rtld.c (process_envvars): Likewise.
9993         (print_statistics): Likewise.
9994         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
9995         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
9996         bases.  Add assert to catch uses of unimplemented features.
9997         (__strsep): Add assert to catch uses of unimplemented features.
9998         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
9999         and avoid inline optimization.
10000         * elf/rtld.c (process_envvars): Likewise.
10001         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
10002         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
10003         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
10005 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10007         * stdio-common/_itoa.h: Minor simplifications of the code.
10008         * stdio-common/_itoa.c: Likewise.
10010         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
10011         instead of _dl_printf for debugging info output.
10013         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
10014         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
10016 2002-02-01  H.J. Lu  <hjl@gnu.org>
10018         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
10019         (atomic_add): Likewise.
10020         (compare_and_swap): Return 0 only when failed to compare. Use
10021         branch likely.
10023         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
10024         branch likely.
10026 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
10028         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
10030 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10032         * elf/dl-minimal.c (__strsep): New minimal implementation.
10034 2002-02-02  Paul Eggert  <eggert@twinsun.com>
10036         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
10037         (__mktime_internal): If no tm_isdst is requested, prefer solutions
10038         with tm_isdst > 0 when the requested time falls within a
10039         spring-forward gap [PR libc/2894].
10041 2002-02-03  Andreas Schwab  <schwab@suse.de>
10043         * stdio-common/tst-rndseek.c: Increase timeout.
10045 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10047         Change ld.so to not use functions which are exported.  One cannot
10048         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
10049         definitions.
10050         * include/libc-symbols.h: Define INT and INTDEF.
10051         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
10052         _dl_signal_error_internal, _dl_map_object_internal,
10053         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
10054         _dl_lookup_versioned_symbol_internal,
10055         _dl_relocate_object_internal, _dl_debug_state_internal,
10056         _dl_start_profile_internal, and _dl_unload_cache_internal.
10057         * include/dlfcn.h: Declare _dl_catch_error_internal.
10058         * elf/rtld.c: Use INT for calls to any of the *_internal functions
10059         above.  Add INTDEF to function definitions.
10060         * elf/dl-debug.c: Likewise.
10061         * elf/dl-deps.c: Likewise.
10062         * elf/dl-dst.h: Likewise.
10063         * elf/dl-error.c: Likewise.
10064         * elf/dl-fini.c: Likewise.
10065         * elf/dl-init.c: Likewise.
10066         * elf/dl-load.c: Likewise.
10067         * elf/dl-lookup.c: Likewise.
10068         * elf/dl-misc.c: Likewise.
10069         * elf/dl-open.c: Likewise.
10070         * elf/dl-profile.c: Likewise.
10071         * elf/dl-reloc.c: Likewise.
10072         * elf/dl-runtime.c: Likewise.
10073         * elf/dl-version.c: Likewise.
10074         * elf/do-lookup.h: Likewise.
10075         * sysdeps/generic/dl-cache.c: Likewise.
10076         * sysdeps/generic/dl-sysdep.c: Likewise.
10077         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
10078         instead of _dl_init.
10079         * sysdeps/arm/dl-machine.h: Likewise.
10080         * sysdeps/cris/dl-machine.h: Likewise.
10081         * sysdeps/hppa/dl-machine.h: Likewise.
10082         * sysdeps/i386/dl-machine.h: Likewise.
10083         * sysdeps/ia64/dl-machine.h: Likewise.
10084         * sysdeps/m68k/dl-machine.h: Likewise.
10085         * sysdeps/mips/dl-machine.h: Likewise.
10086         * sysdeps/mips/mips64/dl-machine.h: Likewise.
10087         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10088         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10089         * sysdeps/sh/dl-machine.h: Likewise.
10090         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10091         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10092         * sysdeps/x86_64/dl-machine.h: Likewise.
10093         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
10095         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
10096         and _dl_debug_initialize.
10098         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
10099         more information.
10100         * elf/rtld.c (dl_main): Avoid strrchr.
10101         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
10102         result of readlink.  Search from the back for '/'.
10104         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
10105         strncpy if possible.
10107         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
10108         strncmp.
10109         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
10110         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
10111         strspn, and strcspn.
10112         (process_envvars): Don't use strcspn.
10114         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
10115         (_dl_dst_substitute): Likewise.
10117 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10119         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
10120         code which is never used when relocating ld.so itself.
10122         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
10123         starting ld.so itself.  Move l_addr variable initialization closer
10124         to use.
10125         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
10127 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
10129         * Versions.def (libc): Add GLIBC_PRIVATE.
10130         (libdb, libnss_db, libdb1): Remove.
10131         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
10132         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
10133         (libpthread): Add GLIBC_PRIVATE.
10134         (libresolv): Likewise, remove GLIBC_2.1.
10135         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
10136         GLIBC_2.2.3, GLIBC_2.3.
10137         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
10138         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
10139         _dl_sym, _dl_vsym): Likewise.
10140         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
10141         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
10142         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
10143         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
10144         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
10145         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
10146         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
10147         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
10148         Likewise.
10149         (_dl_object_relocation_scope): Remove.
10150         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
10151         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
10152         __gconv_cache): Move to GLIBC_PRIVATE.
10153         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
10154         __internal_setnetgrent): Likewise.
10155         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
10156         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
10157         * locale/Versions (__collate_element_hash, __collate_element_strings,
10158         __collate_symbol_classes, __collate_symbol_hash,
10159         __collate_symbol_strings, _nl_current_LC_COLLATE,
10160         _nl_current_LC_CTYPE): Likewise.
10161         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
10162         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
10163         (libnss_nis, libnss_nisplus): Likewise.
10164         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
10165         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
10166         (libnss_files): Move all symbols to GLIBC_PRIVATE.
10167         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
10168         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
10169         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
10170         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
10171         __ns_get16, __ns_samename): Likewise.
10172         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
10173         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
10174         GLIBC_PRIVATE.
10175         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
10176         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
10177         __libc_connect): Likewise.
10178         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
10179         Likewise.
10180         * stdlib/Versions (__libc_system): Likewise.
10181         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
10182         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
10183         * sysdeps/ia64/fpu/Versions: Likewise.
10184         * sysdeps/ia64/Versions: Likewise.
10185         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
10186         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
10187         to GLIBC_PRIVATE.
10188         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
10189         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
10190         __libc_sigaction): Likewise.
10191         * termios/Versions (__libc_tcdrain): Likewise.
10193         * misc/sys/cdefs (__attribute_noinline__): Define.
10194         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
10195         __attribute_noinline__.
10197         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
10198         * elf/dl-xstat64.c: New file.
10199         * elf/dl-fxstat64.c: New file.
10200         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
10201         don't export __fxstat64 at multiple versions.
10202         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
10203         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
10205 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
10207         * locale/program/ld-collate.c (collate_finish): Assign a wide
10208         char collation sequence value to multi character collating
10209         elements, and avoid over writing by non-character elements.
10211 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10213         * elf/Makefile (distribute): Add dl-procinfo.c.
10214         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
10215         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
10217 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
10219         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
10220         definition.
10221         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
10222         _rtld_global struct.
10223         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10224         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
10225         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10226         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
10227         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
10228         _dl_fpu_control_set): Remove unused externs.
10229         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
10230         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
10231         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
10232         related variables in _rtld_global struct.
10233         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
10234         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
10235         unused extern.
10237 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10239         * sysdeps/generic/dl-procinfo.c: New file.
10241 2002-02-01  Andreas Schwab  <schwab@suse.de>
10243         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
10245 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10247         * elf/rtld.c (_dl_start): Mark as internal_function.
10248         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
10249         in register.
10250         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
10251         General pretty printing.
10253 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
10255         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
10256         * elf/dl-reloc.c: Pretty printing.
10257         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
10258         procinfo-related variables in rtld_global struct.
10259         * elf/dl-support.c: Likewise.
10260         * elf/rtld.c: Likewise.
10261         * sysdeps/i386/i686/Makefile: Likewise.
10262         * sysdeps/i386/i686/hp-timing.c: Likewise.
10263         * sysdeps/i386/i686/hp-timing.h: Likewise.
10264         * sysdeps/ia64/Makefile: Likewise.
10265         * sysdeps/ia64/hp-timing.c: Likewise.
10266         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
10267         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
10268         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
10269         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
10270         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10271         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
10272         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
10273         * sysdeps/x86_64/Makefile: Likewise.
10275         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
10276         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
10277         _dl_debug_fd to rtld_global.
10278         * elf/Versions: Likewise.
10279         * elf/dl-close.c: Likewise.
10280         * elf/dl-iteratephdr.c: Likewise.
10281         * elf/dl-lookup.c: Likewise.
10282         * elf/dl-misc.c: Likewise.
10283         * elf/dl-open.c: Likewise.
10284         * elf/dl-support.c: Likewise.
10285         * elf/do-lookup.h: Likewise.
10286         * elf/rtld.c: Likewise.
10287         * sysdeps/generic/dl-cache.c: Likewise.
10288         * sysdeps/generic/dl-sysdep.c: Likewise.
10289         * sysdeps/ia64/Versions: Likewise.
10290         * sysdeps/unix/clock_gettime.c: Likewise.
10291         * sysdeps/unix/clock_settime.c: Likewise.
10292         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10293         * sysdeps/sparc/Versions: Removed.
10294         * sysdeps/i386/i686/Versions : Removed.
10295         * sysdeps/x86_64/Versions: Removed.
10296         * configure.in: Define HAVE_PROTECTED if .protected is available.
10297         * config.h.in: Add entry for HAVE_PROTECTED.
10299 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
10301         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
10302         code in struct _rtld_global.  Export this struct, remove all
10303         exports for the signal variables.
10304         * sysdeps/arm/dl-machine: Likewise.
10305         * sysdeps/generic/dl-origin: Likewise.
10306         * sysdeps/generic/dl-sysdep: Likewise.
10307         * sysdeps/generic/dl-cache: Likewise.
10308         * sysdeps/hppa/dl-fptr: Likewise.
10309         * sysdeps/hppa/dl-machine: Likewise.
10310         * sysdeps/cris/dl-machine: Likewise.
10311         * sysdeps/i386/dl-machine: Likewise.
10312         * sysdeps/ia64/dl-machine: Likewise.
10313         * sysdeps/m68k/dl-machine: Likewise.
10314         * sysdeps/mach/hurd/dl-sysdep: Likewise.
10315         * sysdeps/mips/mips64/dl-machine: Likewise.
10316         * sysdeps/mips/dl-machine: Likewise.
10317         * sysdeps/powerpc/elf/libc-start: Likewise.
10318         * sysdeps/powerpc/dl-machine: Likewise.
10319         * sysdeps/powerpc/dl-start: Likewise.
10320         * sysdeps/sparc/sparc32/dl-machine: Likewise.
10321         * sysdeps/sparc/sparc64/dl-machine: Likewise.
10322         * sysdeps/sh/dl-machine: Likewise.
10323         * sysdeps/s390/s390-32/dl-machine: Likewise.
10324         * sysdeps/s390/s390-64/dl-machine: Likewise.
10325         * sysdeps/unix/sysv/aix/libc-start: Likewise.
10326         * sysdeps/unix/sysv/aix/start-libc: Likewise.
10327         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
10328         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
10329         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
10330         * sysdeps/x86_64/dl-machine: Likewise.
10332 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
10334         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
10335         are too high.
10337 2002-01-31  Andreas Schwab  <schwab@suse.de>
10339         * sysdeps/posix/readv.c: Check for ssize_t overflow.
10341 2002-01-31  Andreas Schwab  <schwab@suse.de>
10343         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
10344         reference to _dl_pagesize.
10346 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
10348         * Versions.def [ld]: Add GLIBC_2.3.
10349         * elf/dl-addr.c: Move global variables for SHARED code in struct
10350         _rtld_global.  Export this struct, remove all exports for the
10351         signal variables.
10352         * elf/dl-close.c: Likewise.
10353         * elf/dl-conflict.c: Likewise.
10354         * elf/dl-debug.c: Likewise.
10355         * elf/dl-deps.c: Likewise.
10356         * elf/dl-dst.h: Likewise.
10357         * elf/dl-error.c: Likewise.
10358         * elf/dl-fini.c: Likewise.
10359         * elf/dl-init.c: Likewise.
10360         * elf/dl-iteratephdr.c: Likewise.
10361         * elf/dl-libc.c: Likewise.
10362         * elf/dl-load.c: Likewise.
10363         * elf/dl-lookup.c: Likewise.
10364         * elf/dl-minimal.c: Likewise.
10365         * elf/dl-object.c: Likewise.
10366         * elf/dl-open.c: Likewise.
10367         * elf/dl-profile.c: Likewise.
10368         * elf/dl-profstub.c: Likewise.
10369         * elf/dl-reloc.c: Likewise.
10370         * elf/dl-runtime.c: Likewise.
10371         * elf/dl-support.c: Likewise.
10372         * elf/dl-sym.c: Likewise.
10373         * elf/dl-version.c: Likewise.
10374         * elf/do-lookup.h: Likewise.
10375         * elf/do-rel.h: Likewise.
10376         * elf/dynamic-link.h: Likewise.
10377         * elf/rtld.c: Likewise.
10378         * sysdeps/generic/dl-cache.c: Likewise.
10379         * sysdeps/generic/dl-sysdep.c: Likewise.
10380         * sysdeps/generic/ldsodefs.h: Likewise.
10381         * sysdeps/generic/libc-start.c: Likewise.
10382         * sysdeps/i386/dl-machine.h: Likewise.
10383         * sysdeps/ia64/dl-fptr.c: Likewise.
10384         * sysdeps/ia64/dl-machine.h: Likewise.
10385         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
10386         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10387         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
10388         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
10389         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
10390         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
10391         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
10392         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
10394 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10396         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
10397         to avoid warning
10398         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
10400         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
10401         SHARED version.
10402         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
10404         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
10406 2002-01-29  Ben Collins  <bcollins@debian.org>
10408         * string/bits/string2.h (__mempcpy): Protect size arg for
10409         addition when using __builtin_memcpy.
10411 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10413         * stdlib/Makefile (tests): Add tst-qsort.
10414         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
10416         * manual/signal.texi (Process Signal Mask): Document that
10417         pthread_sigmask, not sigprocmask, must be used in MT programs.
10418         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
10420         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
10421         found.
10422         * misc/Makefile (tests): Add tst-hsearch.
10423         * misc/tst-hsearch.c: New file.
10425 2002-01-18  Wolfram Gloger  <wg@malloc.de>
10427         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
10428         * malloc/malloc.h: Likewise.
10429         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
10430         * malloc/arena.c: New file.
10431         * malloc/hooks.c: New file.
10432         * malloc/tst-mallocstate.c: New file.
10433         * malloc/Makefile: Add new testcase tst-mallocstate.
10434         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
10436 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10438         * stdlib/msort.c: Remove last patch.  The optimization violates the
10439         same rule which qsort.c had problems with.
10441 2002-01-27  Paul Eggert  <eggert@twinsun.com>
10443         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
10444         to a pivot element that lies outside the array to be sorted, as
10445         ISO C99 requires that the comparison function be called only with
10446         addresses of array elements [PR libc/2880].
10448 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10450         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
10451         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
10453         * timezone/asia: Update from tzdata2002b.
10454         * timezone/australasia: Likewise.
10455         * timezone/backward: Likewise.
10456         * timezone/europe: Likewise.
10457         * timezone/leapseconds: Likewise.
10458         * timezone/iso3166.tab: Likewise.
10459         * timezone/zone.tab: Likewise.
10461 2002-01-23  Richard Henderson  <rth@redhat.com>
10463         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10465 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10467         * string/strxfrm.c: Allocate one more byte for rulearr and clear
10468         this element [PR libc/2855].
10470         * string/strcoll.c: Handle zero-length arguments specially
10471         [PR libc/2856].
10473 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
10475         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10476         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10477         short lengths and constant src.
10478         (strcpy): Don't optimize for gcc 3.0+.
10479         (__stpcpy): For gcc 3.0+, don't use
10480         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10481         for short string literal src.
10483 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10485         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10486         Set for arm, too.
10488 2001-01-22  Paul Eggert  <eggert@twinsun.com>
10490         * manual/llio.texi (Linked Channels, Cleaning Streams):
10491         Make it clearer that a just-opened input stream might need cleaning.
10493 2002-01-21  H.J. Lu  <hjl@gnu.org>
10495         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10496         Don't use label at end of compound statement.
10498 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
10500         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10501         Remove test for negative integer arg; sin_pi does it correctly.
10503 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
10505         * nscd/Makefile (distribute): Filter out xmalloc.c.
10507 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
10509         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10510         Set offset if read end wasn't the buffer end.
10511         (_IO_file_seekoff_mmap): New function.
10512         (_IO_file_xsgetn_mmap): New function.
10513         (_IO_file_jumps_mmap): Use the two new functions.
10514         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10515         != end buffer.
10516         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10517         _IO_file_underflow_mmap.
10518         * libio/iofopen.c: Don't position file descriptor at end of file.
10519         * libio/tst-widetext.c: Improve error messages.
10520         * stdio-common/tst-rndseek.c: Likewise.
10522 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
10524         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10525         end of enum for !_GNU_SOURCE.
10526         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10527         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10528         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10529         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10530         values unless _GNU_SOURCE.
10532         * iconvdata/tcvn5712-1.c: Minor cleanups.
10534 2002-01-18  Andreas Schwab  <schwab@suse.de>
10536         * sysdeps/unix/sysv/linux/configure.in
10537         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10539 2002-01-16  Roger Sayle  <roger@eyesopen.com>
10541         * stdlib/msort.c (msort_with_tmp): Replace implementation with
10542         more efficient "Towers of Hanoi" mergesort.
10543         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10544         for generic, sizeof(int) and sizeof(long) variants respectively.
10546 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
10548         * manual/syslog.texi (openlog): Describe possible problems with
10549         first parameter.
10550         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10552         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
10553         * nscd/connections.c (begin_drop_privileges): New function.
10554         (finish_drop_privileges): New function.
10555         (nscd_init): Call the new functions which also install all groups
10556         for the server user.
10557         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10558         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10560 2002-01-17  H.J. Lu  <hjl@gnu.org>
10562         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10563         `const' from `got'.
10565 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10567         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10568         instructions for pointer operations.
10569         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10571 2002-01-17  Andreas Jaeger  <aj@suse.de>
10573         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10574         __uint128_t build-in.
10576         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10577         PowerPC, sync with 2.2 branch.
10579 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10581         * posix/getconf.c: Update copyright year.
10582         * nss/getent.c: Likewise.
10583         * nscd/nscd_nischeck.c: Likewise.
10584         * iconv/iconvconfig.c: Likewise.
10585         * iconv/iconv_prog.c: Likewise.
10586         * elf/ldconfig.c: Likewise.
10587         * catgets/gencat.c: Likewise.
10588         * csu/version.c: Likewise.
10589         * elf/ldd.bash.in: Likewise.
10590         * elf/sprof.c (print_version): Likewise.
10591         * locale/programs/locale.c: Likewise.
10592         * locale/programs/localedef.c: Likewise.
10593         * nscd/nscd.c (print_version): Likewise.
10594         * debug/xtrace.sh: Likewise.
10595         * malloc/memusage.sh: Likewise.
10596         * malloc/mtrace.pl: Likewise.
10598 2002-01-16  Andreas Schwab  <schwab@suse.de>
10600         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10601         reliably remove "-ia64" from rtld name.
10603 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10605         * iconvdata/gb18030.c: Bug fixes and support for more characters.
10606         Patch by Yu Shao <yshao@redhat.com>.
10608 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10610         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10611         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10612         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10614 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10616         * sysdeps/s390/fpu/libm-test-ulps: Update.
10618 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
10620         * elf/elf.h: Update x86 relocations.
10622 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10624         * locale/programs/charmap.c (new_width): Check whether byte
10625         sequences for both ends of range have the same length.
10627 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10629         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10631 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10633         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10634         string literals.
10635         (__full_ieee754_sqrt): Add __attribute_used__.
10637 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10639         * sysdeps/generic/group_member.c (__group_member): Also check
10640         groups[0] [PR libc/2781].
10642 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
10644         * Makefile (distribute): Add scripts/cpp.
10645         * elf/Makefile (distribute): Add reldep6mod[01234].c,
10646         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10647         unwind-dw2-fde.h, and dwarf2.h.
10648         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10649         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10650         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10651         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10653 2002-01-07  Roland McGrath  <roland@frob.com>
10655         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10656         volatile on type of ARGC so the compiler doesn't get clever.
10658 2002-01-07  Andreas Jaeger  <aj@suse.de>
10660         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10661         * sysdeps/i386/bits/byteswap.h: Likewise.
10662         * sysdeps/ia64/bits/byteswap.h: Likewise.
10663         * sysdeps/m68k/bits/byteswap.h: Likewise.
10664         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10665         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10667 2002-01-02  Bruno Haible  <bruno@clisp.org>
10669         * intl/plural.y: Fix %expect count.
10671 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10673         * elf/Makefile (routines, shared-only-routines): Add
10674         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10675         * elf/elf.h (PT_GNU_EH_FRAME): Define.
10676         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10677         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10678         Optimize if .eh_frame section contains no FDEs.
10679         (__register_frame, __deregister_frame_info_bases,
10680         __deregister_frame): Likewise.
10681         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10682         DW_CFA_restore handling.
10684 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
10686         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10688         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10689         for x < 0.25 and restore original range reduction method.
10690         (__ieee754_lgammal_r): Make sure signgam is set before returning.
10692 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
10694         * libio/fileops.c (_IO_file_underflow_mmap): New function.
10695         (_IO_file_close_mmap): New function.
10696         (_IO_file_jumps_mmap): New variable.
10697         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10698         trying to convert rest of byte buffer.
10699         (_IO_wfile_underflow_mmap): New function.
10700         (_IO_wfile_jumps_mmap): New variable.
10701         * libio/iofopen.c (__fopen_maybe_mmap): New function.
10702         (__fopen_internal): New function.  Split out from _IO_new_fopen.
10703         (_IO_new_fopen): Call __fopen_internal.
10704         * libio/iofopen64.c: Just call __fopen_internal.
10705         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10706         successfully.
10707         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10708         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10709         _IO_file_close_mmap.
10711         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10712         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10714         * stdio-common/Makefile (tests): Add tst-rndseek.
10715         * stdio-common/tst-rndseek.c: New file.
10717 2002-01-05  Roland McGrath  <roland@frob.com>
10719         * config.h.in (HAVE_MIG_RETCODE): New #undef.
10720         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10721         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10722         * sysdeps/mach/hurd/configure: Regenerated.
10724 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
10726         * elf/elf.h: Add more TLS definitions.
10728 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
10730         * include/features.h (__GLIBC_MINOR__): Bump to 3.
10732 2002-01-02  Roland McGrath  <roland@frob.com>
10734         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10735         __sigisemptyset.  Don't use MASK uninitialized.
10737         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10738         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10739         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10740         __sigdelset, __sigaddset, __sigorset.
10742         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10743         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10745         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10746         _hurd_ports is null.
10748         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10749         for old CMU and new OSF Mach interface flavors.
10750         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10751         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10753         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10755         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10756         Pass extra arguments to task_create for OSF variant.
10757         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10759         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10760         conditional on [HAVE_AUX_VECTOR].
10762         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10763         mach_msg_timeout_t as type of final argument.
10765         * hurd/privports.c (__get_privileged_ports):
10766         Change host_priv_t to mach_port_t in argument type.
10767         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10768         Update decls.
10770         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10771         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
10772         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10773         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10774         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10775         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10777 2002-01-01  Roland McGrath  <roland@frob.com>
10779         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10781 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
10783         * include/stdlib.h: Define inlines for the _l variants of the strto*
10784         functions.
10786 2002-01-01  Roland McGrath  <roland@frob.com>
10788         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10790         * mach/Machrules (MIG): Set CPP as well as CC.
10792 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
10794         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10795         locale to parse /proc/loadavg [PR libc/2760].
10797 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
10799         * elf/dl-conflict.c: Include sys/param.h.
10800         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10801         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10802         warning.
10803         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10804         literals to avoid warnings.
10806 2001-12-31  Andreas Jaeger  <aj@suse.de>
10808         * configure.in: Don't check for gsed since we do not use it anywhere.
10810 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10812         * io/fts.c: Update from BSD to fix memory leaks.
10814 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10816         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10817         * elf/chroot_canon.c: Likewise.
10818         * elf/dl-object.c: Likewise.
10819         * iconv/iconv_charmap.c: Likewise.
10820         * iconv/iconv_prog.c: Likewise.
10821         * libio/iogetdelim.c: Likewise.
10822         * locale/lc-time.c: Likewise.
10823         * stdlib/canonicalize.c: Likewise.
10824         * sunrpc/svc.c: Likewise.
10825         * sysdeps/generic/glob.c: Likewise.
10827 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10829         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10830         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10831         remove high order bit from the program counter.
10832         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10834 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10836         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10837         unnecessary code and add missing reloc types.
10838         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10839         case for reloc type R_390_NONE.
10841 2001-12-28  Andreas Jaeger  <aj@suse.de>
10843         * io/bug-ftw3.c: Include string.h for prototypes.
10845         * crypt/md5test.c (main): Remove unused variable.
10847         * dlfcn/modstatic.c: Add prototype to avoid warning.
10849 2001-12-26  Roland McGrath  <roland@frob.com>
10851         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10852         check only (SS->pending & MASK) for the signal to return.
10853         From Jeroen Dekkers <jeroen@dekkers.cx>.
10855 2001-12-22  Roland McGrath  <roland@frob.com>
10857         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10858         Use preprocessor #if conditionals instead of `if' to avoid
10859         warnings about divide by zero in dead code.
10861         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10862         _hurd_port_init, and __hurd_self_sigstate.
10864         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10866 2001-12-21  Andreas Jaeger  <aj@suse.de>
10868         * elf/dblloadmod1.c: Add prototype to avoid warning.
10869         * elf/dblloadmod2.c: Likewise.
10870         * elf/dblloadmod3.c: Likewise.
10871         * elf/reldepmod5.c: Likewise.
10872         * elf/reldepmod6.c: Likewise.
10874         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10875         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10876         used on all architectures.
10878         * sunrpc/svc_tcp.c: Add noreturn attribute for
10879         svctcp_rendezvous_abort.
10880         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10882         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10883         to avoid warning.
10885 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
10887         * manual/llio.texi (aio_fsync): Fix a typo.
10888         Patch by Tammy Fox <tfox@redhat.com>.
10890 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
10892         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10893         stack bias from child stack pointer before passing it to clone syscall.
10895 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
10897         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10898         _SC_TZNAME_MAX.
10899         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10900         Reported by Thorsten Kukuk <kukuk@suse.de>.
10902         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10903         add some casts.
10905         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10907 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
10909         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10910         conforming: return EBADF if file descriptor is invalid and EINVAL
10911         if file descriptor is no valid tty.
10912         * login/tst-grantpt.c: New file.
10913         * login/Makefile (tests): Add tst-grantpt.
10915 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
10917         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10918         different than implemented in last patch.
10919         * io/bug-ftw3.c: Adjust test for changed handling of
10920         inaccessibility of toplevel dir.
10922 2001-12-16  Roland McGrath  <roland@frob.com>
10924         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10925         * grp/initgroups.c (internal_getgrouplist): Likewise.
10927         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10928         `default:' to silence new GCC warning.
10929         Rewrite cast of lvalue to silence new GCC warning.
10931         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10933         * sysdeps/mach/hurd/spawni.c: New file, by me with a
10934         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10936 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
10938         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
10939         Patch by Stephen R. van den Berg.
10941         * crypt/md5.h: Define md5_uintptr.
10943 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10945         * libio/tst_swprintf.c (main): Add test for string argument with
10946         zero precision.
10947         * stdio-common/Makefile (tests): Add tst-sprintf.
10948         * stdio-common/tst-sprintf.c: New file.
10950 2001-12-13  Andreas Schwab  <schwab@suse.de>
10952         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10953         zero precision with wide character string format.
10955 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
10957         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10958         but have a user supplied buffer, return the empty buffer, not NULL.
10960 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10962         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10963         Patch by Eric Sharkey <sharkey@netrics.com>.
10965         * crypt/md5test.c (main): Add test for multiple calls to
10966         __md5_process_bytes to itererate over input string.
10968 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
10970         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10971         from __nis_findfastest.  Take timeout value from parameter.
10972         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10973         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10974         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
10976 2001-12-12  Andreas Jaeger  <aj@suse.de>
10978         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10979         combreloc test so that it works in this case.
10981         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
10983 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
10985         * sysdeps/sh/Makefile: New file.
10986         * sysdeps/sh/_mcount.S: New file.
10987         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
10988         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
10990 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
10992         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
10993         limitation [PR libc/2564].
10995 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
10997         * elf/Makefile (dl-routines): Add conflict.
10998         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
10999         (ld.so): Add _begin local symbol.
11000         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
11001         Define.
11002         * elf/dl-deps.c (_dl_build_local_scope): New function.
11003         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
11004         of all libraries.
11005         * elf/do-rel.h (VALIDX): Define.
11006         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
11007         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
11008         can be skipped.
11009         * elf/dl-conflict.c: New file.
11010         * elf/dl-lookup.c (_dl_debug_bindings): New function.
11011         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
11012         non-NULL.
11013         (_dl_lookup_symbol_skip): Likewise.
11014         (_dl_lookup_versioned_symbol): Likewise.
11015         (_dl_lookup_versioned_symbol_skip): Likewise.
11016         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
11017         define to ElfW(Rel).
11018         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
11019         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
11020         ranges.
11021         Don't adjust address dynamic tags if l_addr is 0.
11022         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
11023         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
11024         (VALIDX, ADDRIDX): Define.
11025         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
11026         (dl_main): Print library list for LD_TRACE_PRELINKING.
11027         If prelinking information can be used, skip relocating libraries and
11028         call _dl_resolve_conflicts instead.
11029         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
11030         * elf/dl-load.c (_dl_map_object): Don't create fake libs
11031         if LD_TRACE_PRELINKING.
11032         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
11033         + DT_ADDRNUM.
11034         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
11035         (DL_DEBUG_PRELINK): Define.
11036         (_dl_resolve_conflicts): Add prototype.
11038         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
11039         .plt for prelinked libraries where prelinking info cannot be used.
11040         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
11041         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
11042         * sysdeps/arm/bits/link.h: New file.
11043         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
11044         content of .got[1].
11045         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
11046         (ELF_MACHINE_PLT_REL): Define.
11047         (elf_machine_rela, elf_machine_rela_relative): New functions.
11048         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
11049         of adjusting it if prelinked and prelinking cannot be used.
11050         * sysdeps/i386/bits/link.h: New file.
11051         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
11052         content of .got[1].
11053         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
11054         (ELF_MACHINE_PLT_REL): Define.
11055         (elf_machine_rela, elf_machine_rela_relative): New functions.
11056         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
11057         of adjusting it if prelinked and prelinking cannot be used.
11058         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
11059         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
11060         to find out map for R_PPC_JMP_SLOT relocs.
11061         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
11062         (OPCODE_BA): Define.
11063         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
11064         libraries where prelinking info cannot be used.
11065         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
11066         (elf_machine_fixup_plt): Call sparc_fixup_plt.
11067         (elf_machine_rela): Set value to 0 if relocating conflicts.
11068         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
11069         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
11070         (sparc64_fixup_plt): Fix a typo.
11071         (elf_machine_rela): Set value to 0 if relocating conflicts.
11072         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
11073         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
11074         libraries where prelinking info cannot be used.
11075         * sysdeps/sh/bits/link.h: New file.
11076         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
11077         content of .got[1].
11078         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
11079         of adjusting it if prelinked and prelinking cannot be used.
11080         * sysdeps/s390/s390-32/bits/link.h: New file.
11081         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
11082         Save original content of .got[1].
11083         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
11084         of adjusting it if prelinked and prelinking cannot be used.
11085         * sysdeps/s390/s390-64/bits/link.h: New file.
11086         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
11087         Save original content of .got[1].
11088         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
11089         of adjusting it if prelinked and prelinking cannot be used.
11090         * sysdeps/x86_64/bits/link.h: New file.
11091         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
11092         Save original content of .got[1].
11093         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
11094         of adjusting it if prelinked and prelinking cannot be used.
11096 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
11098         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
11099         where appropriate instead of numbers.  Little optimizations.
11101 2001-12-10  Roland McGrath  <roland@frob.com>
11103         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
11104         set it.
11106         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
11107         set to GLIBC_2.2.5, not GLIBC_2.2.4.
11109         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
11110         Fix conditionals so this is set by default for stdio and not for libio.
11111         * sysdeps/mach/hurd/configure: Regenerated.
11113 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
11115         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
11117 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
11119         * io/Makefile (tests): Add bug-ftw3.
11120         * io/bug-ftw3.c: New file.
11122         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
11123         matches and GLOB_NOCHECK is set.
11124         * posix/globtest.sh: Correct expected result for NOCHECK test.
11126         * po/ca.po: Update from translation team.
11128 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
11130         Implement transliteration of characters in strings of the locale
11131         definitions.
11132         * locale/programs/linereader.c: Adjust for additional parameter to
11133         lr_token.
11134         (get_string): If character <Uxxxx> is not found try to transliterate
11135         it.
11136         * locale/programs/ld-ctype.c: Adjust for additional parameter to
11137         lr_token.  Add const to charmap parameter of all functions.
11138         (find_translit, find_translit2): New functions.
11139         * locale/programs/charmap.c: Adjust for additional parameter to
11140         lr_token.
11141         * locale/programs/repertoire.c: Likewise.
11142         * locale/programs/linereader.h: Likewise.
11143         * locale/programs/ld-address.c: Likewise.  Add const to charmap
11144         parameter of all functions.
11145         * locale/programs/ld-collate.c: Likewise.
11146         * locale/programs/ld-identification.c: Likewise.
11147         * locale/programs/ld-measurement.c: Likewise.
11148         * locale/programs/ld-messages.c: Likewise.
11149         * locale/programs/ld-monetary.c: Likewise.
11150         * locale/programs/ld-name.c: Likewise.
11151         * locale/programs/ld-numeric.c: Likewise.
11152         * locale/programs/ld-paper.c: Likewise.
11153         * locale/programs/ld-paper.c: Likewise.
11154         * locale/programs/ld-telephone.c: Likewise.
11155         * locale/programs/ld-time.c: Likewise.
11156         * locale/programs/locfile.c: Likewise.
11157         * locale/programs/localedef.c: Likewise.
11158         * locale/programs/localedef.h: Likewise.
11159         * locale/programs/locfile.h: Likewise.  Add declaration for
11160         find_translit.
11161         * locale/programs/simple-hash.c: Add const to first parameter of
11162         find_entry, iterate_table, and lookup.
11163         * locale/programs/simple-hash.h: Likewise.
11164         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
11165         instead.
11166         * include/locale.h: Define __LC_LAST.
11167         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
11169 2001-12-07  Geoff Keating  <geoffk@redhat.com>
11171         * sysdeps/powerpc/Dist: Update for recent FP changes.
11172         * sysdeps/powerpc/fpu/Dist: Likewise.
11174 2001-12-07  Andreas Schwab  <schwab@suse.de>
11176         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
11178 2001-12-06  Geoff Keating  <geoffk@redhat.com>
11180         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
11181         save/restore functions here.
11182         (libm-support): Don't define these functions here.
11183         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
11184         functions here.
11185         * sysdeps/powerpc/fe_nomask.c: Move to...
11186         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
11187         * sysdeps/powerpc/fprrest.S: Move to...
11188         * sysdeps/powerpc/fpu/fprrest.S: ... here.
11189         * sysdeps/powerpc/fprsave.S: Move to...
11190         * sysdeps/powerpc/fpu/fprsave.S: ... here.
11192 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
11194         * sysdeps/unix/sysv/linux/opensock.c: New file.
11196 2001-12-06  Geoff Keating  <geoffk@redhat.com>
11198         * config.make.in (with-fp): Define from configure.
11199         * configure.in: Substitute with_fp.
11200         * configure: Regenerate.
11201         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
11202         specified, and don't change FPU environment.
11204 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
11206         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
11207         * assert/assert.c: Check result of __asprintf call and don't use
11208         string if it failed.
11209         * assert/assert-perr.c: Likewise.
11210         * inet/rcmd.c: Likewise.
11211         * locale/programs/localedef.c (main): Check result of
11212         construct_output_path and exit if it failed.
11213         (construct_output_path): Check result of asprintf and mkdir calls and
11214         fail if they failed.
11215         * posix/getopt.c: Check result of __asprintf calls and fail if
11216         they failed.
11217         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
11219 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11221         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
11222         patch.
11223         * sysdeps/generic/strncase.c: Likewise.
11224         * string/tester.c: Add tests for strcasecmp and strncasecmp.
11226 2001-12-05  Geoff Keating  <geoffk@redhat.com>
11228         * scripts/cpp: Test the exit status from 'type', not 'awk'.
11230         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
11231         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
11232         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
11233         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
11234         * sysdeps/powerpc/fclrexcpt.c: Move to...
11235         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
11236         * sysdeps/powerpc/fpu_control.h: Move to...
11237         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
11239 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11241         * iconvdata/ibm1129.h: Remove duplicate mappings.
11242         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
11243         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
11244         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11246         * timezone/zic.c: Fix handling of turnaround times.
11247         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
11249 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
11251         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
11252         overflow problem.
11254 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11256         * posix/regex.c: For use outside glibc defined bounded pointer
11257         macros here.  Patch by Jim Meyering <jim@meyering.net>.
11259         * iconvdata/Makefile (modules): Add TCVN5712-1.
11260         * iconvdata/TESTS: Add TCVN5712-1.
11261         * iconvdata/gconv-modules: Likewise.
11262         * iconvdata/tcvn5712-1.c: New file.
11263         * iconvdata/testdata/TCVN-5712: New file.
11264         * iconvdata/testdata/TCVN-5712..UTF8: New file.
11266 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
11268         * iconvdata/cp1258.c: Optimize conversion from UCS4.
11270 2001-12-02  Roland McGrath  <roland@frob.com>
11272         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
11274         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
11275         Reported by Jeff Bailey <jbailey@nisa.net>.
11277         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
11278         Reported by Jeff Bailey <jbailey@nisa.net>.
11280         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
11281         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
11282         Reported by Jeff Bailey <jbailey@nisa.net>.
11284 2001-12-01  Roland McGrath  <roland@frob.com>
11286         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
11287         missing backslash in test arguments.
11288         * sysdeps/mach/hurd/configure: Regenerated.
11290 2001-11-26  Roland McGrath  <roland@frob.com>
11292         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
11293         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
11295 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
11297         * iconvdata/Makefile (modules): Add ARMSCII-8.
11298         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
11299         * iconvdata/armscii-8.c: New file.
11301 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
11303         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
11304         don't match, fix {{a,b},c} globbing, clean up.
11305         Patch by Flavio Veloso <flaviovs@magnux.com>.
11306         * posix/globtest.sh: Add new tests.
11308 2001-11-29  Andreas Jaeger  <aj@suse.de>
11310         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
11311         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
11313         * sysdeps/generic/abort.c: Include libioP.h for
11314         _IO_flush_all_lockp prototype.
11316 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
11318         * posix/regex.h: Define __restrict_arr correctly.
11320 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11322         * iconvdata/ibm1163.c: New file.
11323         * iconvdata/ibm1163.h: New file.
11324         * iconvdata/ibm1164.c: New file.
11325         * iconvdata/ibm1164.h: New file.
11326         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
11327         * iconvdata/Makefile: Likewise.
11328         * iconvdata/testdata/IBM1163: New file.
11329         * iconvdata/testdata/IBM1163..UTF8: New file.
11330         * iconvdata/testdata/IBM1164: New file.
11331         * iconvdata/testdata/IBM1164..UTF8: New file.
11332         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11334         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
11335         * iconvdata/ibm1124.h: Likewise.
11336         * iconvdata/ibm1132.h: Likewise.
11337         * iconvdata/ibm1133.h: Likewise.
11338         * iconvdata/ibm1160.h: Likewise.
11339         * iconvdata/ibm1161.h: Likewise.
11340         * iconvdata/ibm1162.h: Likewise.
11341         * iconvdata/ibm856.h: Likewise.
11342         * iconvdata/ibm922.h: Likewise.
11343         * iconvdata/ibm930.h: Likewise.
11344         * iconvdata/ibm932.h: Likewise.
11345         * iconvdata/ibm933.h: Likewise.
11346         * iconvdata/ibm935.h: Likewise.
11347         * iconvdata/ibm937.h: Likewise.
11348         * iconvdata/ibm939.h: Likewise.
11349         * iconvdata/ibm943.h: Likewise.
11350         * iconvdata/ibm930.c: Pretty printing.
11351         * iconvdata/ibm937.c: Avoid access accross array boundary.
11353         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
11354         the current locale's codeset.
11355         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
11356         empty input string.
11357         * iconv/iconv_prog.c: Pass empty strings as default value for to-
11358         and from-charset.  Don't determine locale's charset here.
11360         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
11361         as the old _IO_flush_all but lock only if parameter is nonzero.
11362         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
11363         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
11364         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
11365         if libio is used [PR libc/2575].
11367 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
11369         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
11370         __signbitl): Only define for ISO C99.
11372 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11374         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
11375         herrnop to NETDB_INTERNAL if we run out of buffer space.
11377 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11379         * nss/nss_files/files-XXX.c (internal_getent): Correct input
11380         overflow test for platforms with signed char.
11381         Reported by Andrew Haley <aph@cambridge.redhat.com>.
11383 2001-11-28  Bruno Haible  <bruno@clisp.org>
11385         * locale/programs/simple-hash.c (lookup_2): Remove function.
11386         (insert_entry_2): Call lookup instead of lookup_2.
11388 2001-03-04  Bruno Haible  <bruno@clisp.org>
11390         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
11392 2001-10-31  Bruno Haible  <bruno@clisp.org>
11394         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
11396 2001-03-21  Bruno Haible  <bruno@clisp.org>
11398         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
11399         chokes on empty macro arguments.
11400         * intl/plural.y: Add #pragma for alloca on AIX 3.
11402 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11404         * intl/dcigettext.c (guess_category_value): Only implement for
11405         glibc.  Otherwise rely on function _nl_locale_name which isn't
11406         present in the glibc sources.
11408 2001-09-24  Bruno Haible  <bruno@clisp.org>
11410         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
11411         transliteration when building on a glibc system but outside glibc.
11413 2001-09-22  Bruno Haible  <bruno@clisp.org>
11415         * intl/plural-eval.c: New file, extracted from dcigettext.c.
11416         * intl/dcigettext.c (plural_eval): Remove function, moved to
11417         intl/plural-eval.c.
11418         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
11419         Include plural-eval.c.
11421 2001-09-22  Bruno Haible  <bruno@clisp.org>
11423         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
11424         don't start with a digit; nplurals must be positive.
11426 2001-09-02  Bruno Haible  <bruno@clisp.org>
11428         * intl/plural-exp.h: New file, extracted from gettextP.h.
11429         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
11430         * intl/gettextP.h (struct expression, struct parse_args,
11431         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
11432         * intl/loadmsgcat.c: Include plural-exp.h.
11433         (PLURAL_PARSE): Move macro to plural-exp.h.
11434         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
11435         plural-exp.c.
11436         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
11437         EXTRACT_PLURAL_EXPRESSION.
11438         (_nl_unload_domain): Update.
11439         * intl/dcigettext.c: Include plural-exp.h.
11440         * intl/plural.y: Include plural-exp.h, not gettextP.h.
11441         (FREE_EXPRESSION): Move macro to plural-exp.h.
11442         * intl/Makefile (routines): Add plural-exp.
11443         (distribute): Add plural-exp.h.
11445 2001-07-28  Bruno Haible  <bruno@clisp.org>
11447         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
11448         isdigit, tolower argument to 'unsigned char'.
11449         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
11450         'unsigned char'.
11451         * intl/localealias.c (read_alias_file): Cast isspace argument to
11452         'unsigned char'.
11454 2001-10-20  Bruno Haible  <bruno@clisp.org>
11456         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
11457         anyway.)
11458         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
11459         with the variable 'index' in plural_lookup.
11460         * intl/l10nflist.c (strchr): Likewise.
11461         * intl/localealias.c (strchr): Likewise.
11463         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11464         * intl/bindtextdom.c: Likewise.
11465         * intl/dcigettext.c: Likewise.
11466         * intl/dgettext.c: Likewise.
11467         * intl/dngettext.c: Likewise.
11468         * intl/explodename.c: Likewise.
11469         * intl/finddomain.c: Likewise.
11470         * intl/gettext.c: Likewise.
11471         * intl/l10nflist.c: Likewise.
11472         * intl/loadmsgcat.c: Likewise.
11473         * intl/localealias.c: Likewise.
11474         * intl/ngettext.c: Likewise.
11475         * intl/textdomain.c: Likewise.
11476         * intl/gettext.h: Assume <limits.h> exists.
11478 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11480         * stdio-common/Makefile (tests): Add scanf11.
11481         * stdio-common/scanf11.c: New file.
11483 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11485         * version.h (RELEASE): Define as development.
11486         (VERSION): Set to 2.2.90.
11488 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11490         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11491         * nis/nss_nis/nis-grp.c: Likewise.
11492         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11494         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11495         * nis/nss_nis/nis-pwd.c: Likewise.
11496         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11498         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11499         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11500         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11502         * nscd/grpcache.c: Use strtoul instead of atol.
11503         * nscd/pwdcache.c: Likewise.
11504         * nss/getent.c: Likewise.
11506 2001-11-27  Paul Eggert  <eggert@twinsun.com>
11508         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11509         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11511 2001-11-19  Bruno Haible  <bruno@clisp.org>
11513         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11514         90%.
11515         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11516         improves the quality of the hash function, especially for short
11517         strings.
11519 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11521         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11522         are found call conv_error and not input_error [PR libc/2669].
11524         * math/bits/mathcalls.h: Mark ceil and floor as const.
11525         Reported by David Mosberger.
11527 2001-11-21  Jim Meyering  <meyering@lucent.com>
11529         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11530         Define to be __-prefixed.
11531         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11533 2001-11-26  Andreas Jaeger  <aj@suse.de>
11535         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11536         avoid warning.
11538 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
11540         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11541         initialization.
11543         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11544         unused variables.  Fix threshold for returning 1.0.
11546         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11547         argument.
11549         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11550         remove unused variables.
11552         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11554         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11555         include local math header files.
11557 2001-11-22  Andreas Jaeger  <aj@suse.de>
11559         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11560         avoid warning.
11562 2001-11-21  Andreas Jaeger  <aj@suse.de>
11564         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11566         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11567         sys/debugreg.h
11569 2001-11-15  Andreas Jaeger  <aj@suse.de>
11571         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11572         compilers that support it.
11574         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11575         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11576         * stdlib/stdlib.h: Likewise.
11578 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
11580         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11581         statement with gotos.
11582         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11584 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
11586         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11588 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
11590         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11592 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
11593             H.J. Lu  <hjl@gnu.org>
11595         * Versions.def (libc): Add GCC_3.0.
11596         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11597         if gcc supports this flag.
11598         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11599         (gcc3): Allow glibc to be compiled with gcc 3.x.
11600         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11601         * config.make.in (static-libgcc, unwind-find-fde): Add.
11602         * Makerules (build-shlib-helper, build-module-helper): Use it.
11603         * scripts/versions.awk: Make sure GLIBC_ versions come first.
11604         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11605         necessary.
11606         (_fini): Call __deregister_frame_info_bases if
11607         __register_frame_info_bases was used to register.
11608         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11609         for GLIBC_2.0.
11610         (__register_frame_info_bases, __register_frame_info_table_bases,
11611         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11612         * elf/Makefile (routines): Add unwind-dw2-fde.
11613         (shared-only-routines): Add unwind-dw2-fde.
11614         * sysdeps/alpha/gccframe.h: New file.
11615         * sysdeps/arm/gccframe.h: New file.
11616         * sysdeps/generic/framestate.c: New file.
11617         * sysdeps/generic/dwarf2.h: New file.
11618         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11619         * sysdeps/generic/unwind-dw2-fde.c: New file.
11620         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11621         * sysdeps/generic/unwind-dw2-fde.h: New file.
11622         * sysdeps/generic/unwind-dw2.c: New file.
11623         * sysdeps/generic/unwind-pe.h: New file.
11624         * sysdeps/generic/unwind.h: New file.
11625         * sysdeps/hppa/gccframe.h: New file.
11626         * sysdeps/i386/gccframe.h: New file.
11627         * sysdeps/m68k/gccframe.h: New file.
11628         * sysdeps/mips/gccframe.h: New file.
11629         * sysdeps/powerpc/gccframe.h: New file.
11630         * sysdeps/s390/gccframe.h: New file.
11631         * sysdeps/sh/gccframe.h: New file.
11632         * sysdeps/sparc/gccframe.h: New file.
11633         * sysdeps/vax/gccframe.h: New file.
11634         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11635         Set on all architectures except ia64.
11636         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11637         for i386.
11638         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11639         __deregister_frame_info): Move to elf/Versions.
11640         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11641         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11642         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11643         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11644         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11645         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11646         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11647         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11648         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11649         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11650         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11651         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11652         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11653         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11654         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11655         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11656         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11657         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11659 2001-11-15  Jeff Law  <law@redhat.com>
11661         * posix/regex.c (uintptr_t): Do not provide a definition if the
11662         system provided one.
11664 2001-11-13  Roland McGrath  <roland@frob.com>
11666         * stdio-common/tmpfile.c: Moved to ...
11667         * sysdeps/generic/tmpfile.c: ... here.
11668         * sysdeps/mach/hurd/tmpfile.c: New file.
11670         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11671         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11672         (fopenport): Define as weak alias.
11674         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11675         * libio/libioP.h: ... to here.
11677 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
11679         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11680         program header twice.  Construct list with the needed information.
11682 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
11684         * po/ca.po: Update from translation team.
11686         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11687         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
11688         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11689         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11691 2001-11-10  Andreas Jaeger  <aj@suse.de>
11693         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11694         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11695         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11697 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11699         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11700         correctly.
11701         * elf/dl-load.c (is_dst): New function.
11702         (_dl_dst_count): Use is_dst to check for DST variable.
11703         (_dl_dst_substitute): Likewise.
11705 2001-11-09  Roland McGrath  <roland@frob.com>
11707         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11708         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11709         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11710         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11711         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11712         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11713         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11714         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11715         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11716         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11717         * sysdeps/mach/hurd/powerpc/Dist: New file.
11719         * hurd/privports.c (__get_privileged_ports):
11720         Only contact the proc server if necessary for this call.
11721         Suggested by Neal H Walfield <neal@cs.uml.edu>.
11722         Check error return for mach_port_mod_refs.
11724 2001-11-09  Andreas Schwab  <schwab@suse.de>
11726         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11728 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11730         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
11731         object is always the last in the list.
11732         (_dl_map_object_from_fd): Delete code to remove from object list
11733         when DF_1_NOOPEN is seen.  This is done in lose.
11735 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
11737         * elf/dl-object.c (_dl_new_object): Various small optimizations.
11739 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
11741         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11742         HWCAP_CHECK macro code.
11744         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11745         Now returns MAP_FAILED on error.
11746         * elf/rtld.c: Adjust caller.
11747         * sysdeps/generic/dl-cache.c: Likewise.
11748         * sysdeps/generic/ldsodefs.h: Adjust description.
11750         * elf/dl-version.c (match_symbol): Optimize error handling for size.
11751         (_dl_check_map_versions): Likewise.
11753 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11755         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11756         _dl_signal_error directly, always use lose.  Set fd to -1 after
11757         file is closed.
11758         (lose): Don't call close if fd == -1.
11760 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
11762         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
11763          Also fix typo @code {mbsinit} to @code{mbsinit}.
11765 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11767         * elf/dl-profile.c: Replace state variable with simple flag named
11768         running.  Remove commented-out code.
11770         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11771         (_dl_init_paths): Likewise.
11772         (_dl_map_object_from_fd): Likewise.
11773         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11775 2001-11-06  Roland McGrath  <roland@frob.com>
11777         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11778         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11780         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11781         sysdeps/powerpc/elf/sysdep.h.
11782         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11784 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11786         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
11787         speed.
11788         (process_envvars): Some more optimizations.
11789         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11791         * elf/elf.h: Add dynamic tag definitions for prelinking.
11793         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11794         Rewrite code to remove environment varables for SUID binaries.
11795         Small optimization in LD_PROFILE handling.
11796         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11797         changes.
11798         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11800         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11802         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11803         strings.  Change type of second parameter.
11804         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11805         for last change.
11807         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11809 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11811         * manual/string.texi: Fix typos.
11812         * manual/examples/argp-ex2.c: Likewise.
11814 2001-11-05  Roland McGrath  <roland@frob.com>
11816         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11817         the more-specific unix/sysv/linux/powerpc file and breaks everything.
11818         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11819         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11820         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11821         here, put under [__ELF__].
11823 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11825         * manual/charset.texi: Extensive editing work.
11826         * manual/nss.texi: Likewise.
11827         Changes by Dennis Grace <dgrace@us.ibm.com>.
11829 2001-11-04  Roland McGrath  <roland@frob.com>
11831         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11832         parameter to dir_mkfile.
11834 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
11836         * string/bits/string2.h (__strndup): If n is smaller than len, set
11837         len to n + 1.
11838         * string/tester.c (test_strndup): New function.
11839         (main): Call it.
11841 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
11843         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11845         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11846         * scripts/cpp: New file.
11848         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11849         for rtld_search_dirs content.  Minor optimizations.
11851 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11853         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11854         avoiding unnecessary duplication.
11856 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
11858         * elf/dl-load.c (_dl_map_object): If library was found using
11859         LD_LIBRARY_PATH, don't try RUNPATH list.
11861 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11863         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11864         Correct second argument of register_dump call.
11865         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11866         Likewise.
11868 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11870         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11871         modules.
11872         * iconvdata/TESTS: Likewise.
11873         * iconvdata/gconv-modules: Likewise.
11874         * iconvdata/ibm1132.c: New file.
11875         * iconvdata/ibm1132.h: New file.
11876         * iconvdata/ibm1133.c: New file.
11877         * iconvdata/ibm1133.h: New file.
11878         * iconvdata/ibm1162.c: New file.
11879         * iconvdata/ibm1162.h: New file.
11880         * iconvdata/testdata/IBM1132: New file.
11881         * iconvdata/testdata/IBM1132..UTF8: New file.
11882         * iconvdata/testdata/IBM1133: New file.
11883         * iconvdata/testdata/IBM1133..UTF8: New file.
11884         * iconvdata/testdata/IBM1162: New file.
11885         * iconvdata/testdata/IBM1162..UTF8: New file.
11886         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11888         * string/string.h: Fix typo in comment.
11889         * wcsmbs/wchar.h: Likewise.
11891 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
11893         * manual/getopt.texi (getopt_long, getopt_long_only): Include
11894         const in type of longopts parameter.
11896 2001-10-29  Andreas Jaeger  <aj@suse.de>
11898         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11900 2001-10-29  Kevin Ryde  <user42@zip.com.au>
11902         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11903         output, clarify `#' behaviour on 0.
11904         (Floating-Point Conversions): Clarify that %g only uses %e when
11905         the exponent would be greater than 1.
11907 2001-10-28  Roland McGrath  <roland@frob.com>
11909         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11910         * sysdeps/mach/powerpc/machine-sp.h: New file.
11911         * sysdeps/mach/powerpc/sysdep.h: New file.
11912         * sysdeps/mach/powerpc/thread_state.h: New file.
11914         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11915         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
11916         expect to need the same thing on every platform.
11918         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11919         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11921         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11922         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11923         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11924         Move all these assembly-related definitions to ...
11925         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11927         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11928         by Peter Bruin <pjbruin@dds.nl>.
11930         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11931         packing results for a `poll' call.
11933 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11935         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11936         correctly.
11937         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11938         bracket expression.
11940         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11941         nrules value.
11942         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11944 2001-10-24  H.J. Lu  <hjl@gnu.org>
11946         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11947         Use __BEGIN_DECLS/__END_DECLS around prototypes.
11948         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11950 2001-10-21  Jim Meyering  <meyering@lucent.com>
11952         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
11953         this code would end up calling gettext even in packages built
11954         with --disable-nls.
11955         * posix/getopt.c (_): Likewise.
11956         * posix/regex.c (_): Likewise.
11958 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11960         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11961         lookup not ip6.int.
11962         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11963         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11965 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
11967         * misc/sys/cdefs.h (__attribute_used__): Define.
11968         * elf/rtld.c (_dl_start): Add __attribute_used__.
11969         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11971 2001-10-25  Andreas Schwab  <schwab@suse.de>
11973         * stdlib/a64l.c: Expect least significant digit first.
11974         * stdlib/l64a.c: Produce least significant digit first.
11975         * stdlib/Makefile (tests): Add test-a64l.
11976         * stdlib/test-a64l.c: New file.
11977         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11979 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
11981         * po/sk.po: Update from translation team.
11983 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
11985         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
11987 2001-10-18  Andreas Schwab  <schwab@suse.de>
11989         * math/libm-test.inc (print_ulps): Print ulp values rounded to
11990         next whole number.
11991         (print_function_ulps): Likewise.
11992         (print_complex_function_ulps): Likewise.
11993         (print_max_error): Likewise.
11994         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
11996 2001-10-16  Andreas Schwab  <schwab@suse.de>
11998         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
11999         implementation.
12001         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
12002         BSD_SETJMP or BSD__SETJMP is defined, resp.
12003         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
12004         a tail call to __sigsetjmp that would require extending the
12005         caller's frame.
12006         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
12007         * sysdeps/m68k/bsd-setjmp.S: Deleted.
12008         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
12009         Reported by Jes Sorensen <jes@trained-monkey.org>.
12011 2001-10-16  Andreas Jaeger  <aj@suse.de>
12013         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
12014         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
12015         close PR libc/2589.
12017 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
12019         * po/ca.po: New file.  Contributed by the translation team.
12021 2001-10-15  Ralf Baechle  <ralf@gnu.org>
12023         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
12024         a varargs prototype.  Remove dependency from kernel header files.
12026         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
12027         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
12029 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
12031         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
12032         to generate hexadecimal identifier.
12033         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
12035 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
12037         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
12039 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
12041         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
12042         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
12043         Contributed by Stephen L Moshier <moshier@mediaone.net>.
12045         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
12046         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12047         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
12048         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
12049         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
12050         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
12052         * timezone/africa: Update from tzdata2001d.
12053         * timezone/asia: Likewise.
12054         * timezone/australasia: Likewise.
12055         * timezone/backward: Likewise.
12056         * timezone/europe: Likewise.
12057         * timezone/leapseconds: Likewise.
12058         * timezone/northamerica: Likewise.
12059         * timezone/southamerica: Likewise.
12060         * timezone/zone.tab: Likewise.
12062 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12064         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
12065         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
12067 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
12069         * elf/elf.h (PT_TLS): New definition.
12071 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
12073         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
12074         bits/errno.h
12076 2001-10-07  Roland McGrath  <roland@frob.com>
12078         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
12080 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
12082         * elf/elf.h: Add more ELFOSABI_* constants.
12084 2001-10-04  Ben Collins  <bcollins@debian.org>
12086         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
12087         decleration of __need_wchar_t.
12089 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
12091         * string/bits/string2.h (__strsep_g): Add prototype.
12092         (__strsep): Use it.
12093         * string/Versions (__strsep): Remove.
12094         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
12096 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
12098         * manua/llio.texi: Clarify file references added by mmap.
12099         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
12101 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
12103         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
12104         Add sc_loadrs and sc_rbs_bas to match current kernel.
12106 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
12108         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
12110         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
12112 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
12114         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
12115         object has been bumped because of relocation dependency, avoid
12116         duplicates in l_scope.
12117         (show_scope): Fix typos.
12118         * elf/Makefile: Add rules to build and run reldep6.
12119         * elf/reldep6.c: New file.
12120         * elf/reldep6mod0.c: New file.
12121         * elf/reldep6mod1.c: New file.
12122         * elf/reldep6mod2.c: New file.
12123         * elf/reldep6mod3.c: New file.
12124         * elf/reldep6mod4.c: New file.
12126 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
12128         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
12129         sparc64_fixup_plt.
12130         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
12131         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
12132         for non-lazy binding. Fix .plt[32768+] handling.
12133         (elf_machine_plt_value): Don't add addend.
12134         (elf_machine_rela): Call sparc64_fixup_plt instead of
12135         elf_machine_fixup_plt.
12136         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
12137         dynamic linker at 0xfffff800XXXXXXXX.
12139         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
12141 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
12143         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
12145 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
12147         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
12148         declare __cmsg_data field if its size would be bigger than 0.
12149         (CMSG_DATA): Adjust accordingly.
12150         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
12151         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
12152         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
12153         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
12154         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12155         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
12156         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12158 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
12160         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
12161         * iconvdata/testdata/IBM1160: New file.
12162         * iconvdata/testdata/IBM1160..UTF8: New file.
12163         * iconvdata/testdata/IBM1161: New file.
12164         * iconvdata/testdata/IBM1161..UTF8: New file.
12165         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
12167 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
12169         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
12170         UL_SETFSIZE computations better.
12172         * rt/Makefile: Remove use of filter for librt again.
12174         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
12175         UL_SETFSIZE computations better.
12177         * string/Versions: Export __strsep for GLIBC_2.2.5.
12178         * string/bits/string2.h: Define all __STRING_INLINE functions if
12179         _FORCE_INLINES is defined.
12180         Use int instead of char of parameter types.
12181         (__strsep): Don't use __strsep_g.  Don't define it.
12182         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
12183         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
12184         __strcpy_small.
12185         (__stpcpy_a_small): Renamed from __stpcpy_small.
12186         (__strcspn_c1): Don't define if _FORCE_INLINES.
12187         (__strspn_c1): Likewise.
12189 2001-09-22  Ben Collins  <bcollins@debian.org>
12191         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
12192         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
12193         * sysdeps/ia64/bits/sigaction.h: Likewise.
12194         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
12196 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
12198         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
12200 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
12202         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
12204 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
12206         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
12208 2001-09-20  H.J. Lu  <hjl@gnu.org>
12210         * include/dlfcn.h (__RTLD_SPROF): New definiton.
12211         * elf/dl-open.c (dl_open_worker): Return immediately after loading
12212         for __RTLD_SPROF.
12213         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
12214         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
12216 2001-09-20  H.J. Lu  <hjl@gnu.org>
12218         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
12219         don't add 1.
12221 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
12223         * nss/getent.c: Accept -s parameter to overwrite rules in
12224         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
12226         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
12227         with as many ".0" as necessary to form a complete address
12228         inet_network understands.
12230         * nss/getent.c: Various cleanups.  Use simpler and fewer function
12231         calls.
12233 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12235         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
12236         _JMPBUF_UNWINDS.
12237         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
12239 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
12241         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
12242         IBM1161.
12243         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
12244         * iconvdata/ibm1160.c: New file.
12245         * iconvdata/ibm1160.h: New file.
12246         * iconvdata/ibm1161.c: New file.
12247         * iconvdata/ibm1161.h: New file.
12248         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
12250 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
12252         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
12253         difference between base address and first PT_LOAD's virtual address,
12254         not the base address.
12256 2001-09-11  Tom Rix  <trix@redhat.com>
12258         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
12259         ifdef for __getopt_clean_environment.
12260         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
12262 2001-09-22  Andreas Jaeger  <aj@suse.de>
12264         * elf/reldep4.c (main): Add proper prototype to fix warning.
12266         * elf/reldep5.c (main): Remove unused variable.
12268         * math/math_private.h: Add prototypes.
12270 2001-09-21  Andreas Jaeger  <aj@suse.de>
12272         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
12273         * sysdeps/x86_64/Dist: New file.
12274         * sysdeps/x86_64/soft-fp/Dist: New file.
12276         * sysdeps/gnu/Dist: Remove eval.c.
12278 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
12280         * malloc/memusage.c (realloc): Don't count already allocated
12281         memory in the sums.
12282         (me): Always use dlsym() to find the real implementations.
12284         * malloc/memusage.sh: Make -n option actually do something.
12286 2001-09-20  Andreas Jaeger  <aj@suse.de>
12288         * elf/elf.h (R_390_NUM): Correct value.
12290         * Versions.def: Add missing versions 2.2.3 for libthread_db and
12291         libpthread.
12293         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
12294         for x86-64, install x86-64 into */lib64.
12296         * shlib-versions: Add x86-64.
12298         * elf/elf.h: Add x86-64 relocations.
12300 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
12302         * po/fr.po: Update from translation team.
12304 2001-09-19  Andreas Jaeger  <aj@suse.de>
12306         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
12307         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
12308         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
12309         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
12310         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
12311         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
12312         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
12313         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
12314         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
12315         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
12316         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
12317         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
12318         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
12319         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
12320         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
12321         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
12322         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
12323         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
12324         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
12325         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
12326         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
12327         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
12328         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
12329         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
12330         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
12331         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
12332         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
12333         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
12334         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
12335         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
12336         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
12337         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
12338         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
12339         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
12340         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
12341         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
12342         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
12343         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
12344         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
12345         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
12346         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
12347         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
12348         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
12349         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
12350         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
12351         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
12352         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
12353         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
12354         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
12355         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
12356         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
12357         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
12358         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
12359         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
12360         * sysdeps/unix/x86_64/sysdep.S: New file.
12361         * sysdeps/unix/x86_64/sysdep.h: New file.
12362         * sysdeps/x86_64/Implies: New file.
12363         * sysdeps/x86_64/Makefile: New file.
12364         * sysdeps/x86_64/Versions: New file.
12365         * sysdeps/x86_64/__longjmp.S: New file.
12366         * sysdeps/x86_64/abort-instr.h: New file.
12367         * sysdeps/x86_64/atomicity.h: New file.
12368         * sysdeps/x86_64/bits/endian.h: New file.
12369         * sysdeps/x86_64/bits/setjmp.h: New file.
12370         * sysdeps/x86_64/bits/string.h: New file.
12371         * sysdeps/x86_64/bp-asm.h: New file.
12372         * sysdeps/x86_64/bsd-_setjmp.S: New file.
12373         * sysdeps/x86_64/bsd-setjmp.S: New file.
12374         * sysdeps/x86_64/dl-machine.h: New file.
12375         * sysdeps/x86_64/elf/initfini.c: New file.
12376         * sysdeps/x86_64/elf/start.S: New file.
12377         * sysdeps/x86_64/ffs.c: New file.
12378         * sysdeps/x86_64/ffsll.c: New file.
12379         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
12380         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
12381         * sysdeps/x86_64/fpu/e_acosl.c: New file.
12382         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
12383         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
12384         * sysdeps/x86_64/fpu/e_expl.c: New file.
12385         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
12386         * sysdeps/x86_64/fpu/e_log10l.S: New file.
12387         * sysdeps/x86_64/fpu/e_log2l.S: New file.
12388         * sysdeps/x86_64/fpu/e_logl.S: New file.
12389         * sysdeps/x86_64/fpu/e_powl.S: New file.
12390         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
12391         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
12392         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
12393         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
12394         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
12395         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
12396         * sysdeps/x86_64/fpu/fegetenv.c: New file.
12397         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
12398         * sysdeps/x86_64/fpu/fegetround.c: New file.
12399         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
12400         * sysdeps/x86_64/fpu/fesetenv.c: New file.
12401         * sysdeps/x86_64/fpu/fesetround.c: New file.
12402         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
12403         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
12404         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
12405         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
12406         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
12407         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
12408         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
12409         * sysdeps/x86_64/fpu/s_atanl.c: New file.
12410         * sysdeps/x86_64/fpu/s_cosl.S: New file.
12411         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
12412         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
12413         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
12414         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
12415         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
12416         * sysdeps/x86_64/fpu/s_logbl.c: New file.
12417         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
12418         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
12419         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
12420         * sysdeps/x86_64/fpu/s_rintl.c: New file.
12421         * sysdeps/x86_64/fpu/s_significandl.c: New file.
12422         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
12423         * sysdeps/x86_64/fpu/s_sinl.S: New file.
12424         * sysdeps/x86_64/fpu/s_tanl.S: New file.
12425         * sysdeps/x86_64/gmp-mparam.h: New file.
12426         * sysdeps/x86_64/hp-timing.c: New file.
12427         * sysdeps/x86_64/hp-timing.h: New file.
12428         * sysdeps/x86_64/htonl.S: New file.
12429         * sysdeps/x86_64/memusage.h: New file.
12430         * sysdeps/x86_64/setjmp.S: New file.
12431         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
12432         * sysdeps/x86_64/stackinfo.h: New file.
12433         * sysdeps/x86_64/sysdep.h: New file.
12434         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
12436         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
12437         L Moshier.
12439 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12441         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
12442         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
12444 2001-09-18  Andreas Schwab  <schwab@suse.de>
12446         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
12447         list, now that l_scope is a pointer.
12449         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
12450         scope list.
12452 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12454         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
12455         (elf_machine_rela_relative): Add a missing declaration.
12457 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
12459         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
12460         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
12461         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
12462         ldd-rewrite scripts.
12464 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12466         * elf/ldd.bash.in: Update copyright message.
12468 2001-09-17  H.J. Lu  <hjl@gnu.org>
12470         * hurd/hurdmalloc.c (bcopy): Removed.
12471         (realloc): Replace bcopy with memcpy.
12472         * hurd/path-lookup.c (file_name_path_scan): Likewise.
12473         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12474         * sunrpc/rpcinfo.c (pmapdump): Likewise.
12476         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12477         (gethostbyaddr): Likewise.
12478         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12480 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12482         * sysdeps/gnu/eval.c: Removed.
12484 2001-09-18  Andreas Jaeger  <aj@suse.de>
12486         * sysdeps/i386/fpu/s_logbl.S: Move to ...
12487         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12489         * sysdeps/i386/fpu/s_rintl.S: Move to ...
12490         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12492         * sysdeps/i386/fpu/s_significandl.S: Move to ...
12493         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12495 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
12497         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12498         nrules value.
12500 2001-09-14  H.J. Lu  <hjl@gnu.org>
12502         * sysdeps/mips/fpu/libm-test-ulps: Updated.
12504 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
12506         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12507         Patch by Florian La Roche <laroche@redhat.com>.
12509         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12511         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12512         ETHER_CRC_LEN.
12514 2001-09-14  Andreas Schwab  <schwab@suse.de>
12516         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
12517         Sumner <bls@sgi.com>.
12518         * posix/execlp.c: Likewise.
12520 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
12522         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12523         is already found earlier in the search scope.
12525 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
12527         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12528         filter.
12530 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
12532         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12534 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
12536         * config.h.in: Enforce optimization to be used.
12537         * Makeconfig (preprocess-versions): Define ASSEMBLER.
12538         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12539         * posix/Makefile (annexc-CFLAGS): Define to -O.
12540         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12542 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
12544         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12545         Patch by Stephan Kulow.
12547 2001-09-08  Ben Collins  <bcollins@debian.org>
12549         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12550         usage of RESOLVE() (r_type, not reloc->r_type).
12552 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12554         * elf/dl-object.c: Avoid allocating extra memory block for name.
12555         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12556         allocated separately.
12557         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12559 2001-09-08  H.J. Lu  <hjl@gnu.org>
12561         * po/zh_TW.po: Fix a typo.
12563 2001-09-07  Tom Rix  <trix@redhat.com>
12565         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12567 2001-08-26  Tom Rix  <trix@redhat.com>
12569         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12570         command line options.
12571         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12572         * sysdeps/unix/sysv/aix/start.c: Removed.
12573         * sysdeps/unix/sysv/aix/start-libc.c: New file.
12574         * sysdeps/unix/sysv/aix/init-first.c: New file.
12575         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12577 2001-09-08  Ben Collins  <bcollins@debian.org>
12579         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12580         * sysdeps/generic/dl-machine.h: Likewise.
12581         * sysdeps/hppa/dl-fptr.c: Likewise.
12582         * sysdeps/ia64/dl-fptr.c: Likewise.
12583         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12584         * sysdeps/mips/dl-machine.h: Likewise.
12585         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12586         * sysdeps/powerpc/dl-machine.c: Likewise.
12588 2001-09-07  Ben Collins  <bcollins@debian.org>
12590         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12592         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12594 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12596         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12597         dependencies if necessary.
12599         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12600         loaded directly) determine length if l_initfini list by iterating
12601         over its elements.  Minor optimizations.
12602         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12603         for dependency objects.
12604         If object was already loaded check whether any of the dependencies
12605         is already on the relocation dependency list.  If yes, remove the
12606         latter.  Minor optimizations.
12607         * elf/dl-lookup.c (add_dependency): Add check for self reference of
12608         maps here.  Search l_initfini list only if the object was loaded
12609         directly and not only as a dependency.
12610         (_dl_lookup_symbol): Add relocation dependency also if object
12611         is not in global scope.  Remove test for self-reference here.
12612         (_dl_lookup_versioned_symbol): Likewise.
12613         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
12614         element of first name record.
12615         * elf/loadtest.c: Add some more test to recognize early if an object
12616         wasn't unloaded.
12617         * elf/Makefile: Add rules to build and run reldep5.
12618         * elf/reldep5.c: New file.
12619         * elf/reldepmod5.c: New file.
12620         * elf/reldepmod6.c: New file.
12622         * elf/reldep2.c: Fix typo.
12624 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
12626         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12627         elements.  Change l_scope to be a pointer only.
12628         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12629         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12630         here add searchlist of newly open file to the dependency's scope.
12631         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12632         only searchlist from its scope.  Free own scope array if necessary.
12633         * elf/Makefile (tests): Add dblload and dblunload now.
12635 2001-09-06  Andreas Jaeger  <aj@suse.de>
12637         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12638         Stephen L Moshier.
12640 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
12642         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
12643         they both fail.
12644         * elf/dblload.c: New file.
12645         * elf/dblloadmod1.c: New file.
12646         * elf/dblloadmod2.c: New file.
12647         * elf/dblloadmod3.c: New file.
12648         * elf/dblunload.c: New file.
12650 2001-09-04  Richard Henderson  <rth@redhat.com>
12652         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12653         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12655 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12657         Correct very misleading message for error in failed runtime relocation.
12658         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12659         place of the error.
12660         (_dl_signal_cerror): Likewise.
12661         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12662         * elf/dl-close.c: Likewise.
12663         * elf/dl-deps.c: Likewise.
12664         * elf/dl-load.c: Likewise.
12665         * elf/dl-lookup.c: Likewise.
12666         * elf/dl-open.c: Likewise.
12667         * elf/dl-reloc.c: Likewise.
12668         * elf/dl-sym.c: Likewise.
12669         * elf/dl-version.c: Likewise.
12670         * sysdeps/generic/dl-sysdep.c: Likewise.
12672 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12674         * iconv/strtab.c (strtabinit): Initialize null Strent.
12675         (newstring): Move len == 0 handling...
12676         (strtabadd): ...here.
12677         If len == 1, return null Strent.
12678         When inserting a suffix of an existing string, check if
12679         it is not equal to some suffix already recorded.
12680         Copy left and right members over if adding longer string.
12682 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12684         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12686         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12687         (__syscall_gethostname): Add prototype.
12689 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12691         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12693 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
12695         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12697 2001-08-27  Roland McGrath  <roland@frob.com>
12699         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12700         short, copy that much into NAME anyway before returning error.
12702 2001-09-01  Richard Henderson  <rth@redhat.com>
12704         * sysdeps/alpha/elf/Dist: Remove file.
12705         * sysdeps/alpha/elf/Makefile: Remove file.
12706         * sysdeps/alpha/elf/crtbegin.S: Remove file.
12707         * sysdeps/alpha/elf/crtend.S: Remove file.
12708         * sysdeps/alpha/elf/initfini.c: New file.
12710 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
12712         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12713         * iconv/tst-iconv3.c: Likewise.
12715 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
12717         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12719 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
12721         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12722         export it.
12723         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12724         * iconv/iconv_prog.c (insert_cache): New function.
12725         (print_known_names): If cache is used call insert_cache to use the
12726         information from the cache [PR libc/2509].
12728 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
12730         * time/strptime.c (strptime_internal): Recognize 'l' format and
12731         handle it like 'I' for symmetry with strftime.
12733 2001-08-31  Richard Henderson  <rth@redhat.com>
12735         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12736         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12737         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12738         (print_statistics): Make scalar unsigned long long.
12739         * sysdeps/alpha/hp-timing.h: New file.
12741 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12743         * stdio-common/perror.c (perror): Save errno early, pass it
12744         down to perror_internal.
12745         (perror_internal): Add errnum argument.
12747 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12749         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12750         Don't add old memory content for R_ALPHA_REFQUAD.
12752 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12754         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12755         memory correctly.
12757         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12758         instead of open, __close instead of close, __getpagesize instead
12759         of getpagesize.
12761         * string/argz-stringify.c (__argz_stringify): Use __strnlen
12762         instead of strnlen.
12763         * include/string.h (strndupa): Redefine here to use __strnlen
12764         instead of strnlen.
12765         * string/strndup.c (__strndup): Use __strnlen not strnlen.
12767         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12768         connected).
12770 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12772         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12773         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
12774         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12775         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12776         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12777         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12778         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12780 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12782         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12784 2001-08-30  Andreas Jaeger  <aj@suse.de>
12786         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12787         contributed Stephen L Moshier.
12789 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12791         * sunrpc/etc.rpc (sgi_fam): Add.
12793 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12795         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12797 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12799         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12800         first is from a previous call.
12801         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12803 2001-08-29  Andreas Schwab  <schwab@suse.de>
12805         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12807 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12809         * config.make.in (INSTALL_SCRIPT): Define.
12810         * Makeconfig (INSTALL_SCRIPT): Define.
12811         * Makerules (do-install-script): New macro to install scripts using
12812         INSTALL_SCRIPT.
12813         (install-bin-script): New rule to install scripts with
12814         do-install-script.
12815         (install-bin-script-nosubdir): New rule.
12816         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12817         (distinfo-vars): Add $(install-bin-script).
12818         * Rules (others): Likewise.
12819         * Makefile (glibcbug): Install with install-bin-script.
12820         * debug/Makefile (xtrace): Likewise.
12821         (catchsegv): Likewise.
12822         * elf/Makefile (ldd): Likewise.
12823         * malloc/Makefile (mtrace): Likewise.
12824         * timezone/Makefile (tzselect): Likewise.
12826 2001-08-29  H.J. Lu  <hjl@gnu.org>
12828         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12829         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12830         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12832 2001-08-29  Andreas Schwab  <schwab@suse.de>
12834         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12836 2001-08-28  H.J. Lu  <hjl@gnu.org>
12838         * Makeconfig (combreloc-LDFLAGS): New variable.
12839         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12840         * config.make.in (have-z-combreloc): New variable.
12841         * configure.in: Substitute libc_cv_z_combreloc.
12843 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12845         * po/sv.po: Update from translation team.
12846         * po/fr.po: Likewise.
12847         * po/da.po: Likewise.
12849 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12851         * Makerules: Fix a typo: MD% -> MD5.
12853 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
12855         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12856         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12858 2001-08-28  Andreas Jaeger  <aj@suse.de>
12860         * manual/libc-texinfo.sh: Add entry about free manuals.
12862         * manual/contrib.texi (Contributors): Fix cross reference.
12864         * manual/libc.texinfo (Copying): Include freemanuals.
12866         * manual/Makefile (appendices): Add freemanuals.
12868         * manual/freemanuals.texi: New file.
12869         Patch by Brian Youmans <3diff@gnu.org>.
12871         * manual/libm-err-tab.pl: Pretty print more platforms, print a
12872         smaller table.
12874         * manual/math.texi (Errors in Math Functions): Fix grammar, start
12875         table on separate page.
12876         Patch by Brian Youmans <3diff@gnu.org>.
12878 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12880         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
12881         the connection went down after we first used it try to connect
12882         again and resend the message before printing to the console.
12883         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12885 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12887         * string/tst-strlen.c (main): Test strnlen (, -1) too.
12888         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12889         bit set.
12891 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12893         * iconv/strtab.c (searchstring): Use correct length for comparison.
12894         (strtabadd): Account total size correct if new string has old string as
12895         substring.
12897 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12899         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12901 2001-08-27  Andreas Jaeger  <aj@suse.de>
12903         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12905         * math/libm-test.inc (j0_test): Add extra tests.
12906         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12907         not x, in Hankel approximation.
12908         Patches by Stephen L Moshier.
12910 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12912         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12913         link_map.
12915         * configure.in: Fix test for .rela.dyn section.
12917         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12919 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12921         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12922         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12923         Pass type_class to _dl_lookup_*.
12924         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12925         Pass around just type_class instead of noexec, noplt pair.
12926         (_dl_lookup_versioned_symbol): Likewise.
12927         (_dl_lookup_symbol_skip): Pass around just type_class instead of
12928         noexec, noplt pair.
12929         (_dl_lookup_versioned_symbol_skip): Likewise.
12930         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12931         * elf/do-lookup.h (do_lookup): Likewise.
12932         * include/link.h (struct link_map): Replace noexec and noplt fields
12933         in l_lookup_cache with type_class field.
12934         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12935         ELF_RTYPE_CLASS_COPY): Define.
12936         Adjust prototypes for _dl_lookup_symbol and
12937         _dl_lookup_versioned_symbol.
12938         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12939         elf_machine_lookup_noexec_p): Remove.
12940         (elf_machine_type_class): Define.
12941         * sysdeps/arm/dl-machine.h: Likewise.
12942         * sysdeps/hppa/dl-machine.h: Likewise.
12943         * sysdeps/cris/dl-machine.h: Likewise.
12944         * sysdeps/i386/dl-machine.h: Likewise.
12945         * sysdeps/ia64/dl-machine.h: Likewise.
12946         * sysdeps/m68k/dl-machine.h: Likewise.
12947         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12948         * sysdeps/mips/dl-machine.h: Likewise.
12949         * sysdeps/powerpc/dl-machine.h: Likewise.
12950         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12951         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12952         * sysdeps/sh/dl-machine.h: Likewise.
12953         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12954         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12956 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12958         * manual/message.texi (Advanced gettext functions): Change
12959         description of plural forms for Slovak.
12960         Reported by Marcel Telka <marcel@telka.sk>.
12962         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12963         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12965 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12967         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12968         typo.  Patch by Florian La Roche <laroche@redhat.com>.
12970 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12972         * include/link.h (struct link_map): Add l_lookup_cache element.
12973         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12974         (RESOLVE_MAP): Likewise.
12975         (_dl_relocate_object): Remove cache initialization.
12976         * elf/dl-lookup.c: Rip out cache handling code.
12977         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12978         declarations.
12980         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12981         remove some __builtin_expect.
12982         (_dl_lookup_versioned_symbol): Likewise.
12984         * config.h.in: Add HAVE_Z_COMBRELOC.
12985         * configure.in: Add test for -z combreloc.
12987         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
12988         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
12989         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
12990         case to almost no code.
12992 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
12994         * po/tr.po: Update from translation team.
12996 2001-08-24  Andreas Jaeger  <aj@suse.de>
12998         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
12999         make clean works.
13001 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13003         * elf/rtld.c (print_statistics): Printf % after percent values.
13004         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
13006         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
13007         don't have to compute the hash value and initialize current_value.
13008         Move reference_name variable to where it is needed.
13009         (_dl_lookup_versioned_symbol): Likewise.
13011 2001-08-24  Roland McGrath  <roland@frob.com>
13013         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
13014         Just test that strerror returns non-null for a few errno codes.
13016 2001-08-23  Roland McGrath  <roland@frob.com>
13018         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
13019         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
13021         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
13023         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
13024         __mach_reply_port.
13026 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13028         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
13029         returns NULL.
13031         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
13032         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
13033         doesn't do it.
13034         * elf/rtld.c: Include <sys/param.h>.
13035         * elf/dl-reloc.c: Likewise.
13037 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
13039         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
13040         empty to prevent junk from being generated.
13041         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
13043 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
13045         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
13046         records.  Rename endrel to relative, initialize it to r, and use it
13047         in elf_machine_rel_relative calls.  Point r after relative relocs.
13049 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13051         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
13052         of R_386_NONE.
13054 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
13056         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
13057         necessary.  Undefine newly defined macros at the end.
13058         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
13059         Rename from elf_machine_rel_relative.
13060         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
13061         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
13062         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
13063         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
13064         Likewise.
13065         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
13066         Likewise.
13067         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
13068         Fix argument types.
13069         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
13070         Fix argument types.
13071         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
13072         Likewise.  Fix argument types.
13073         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
13074         Likewise.  Fix argument types.
13075         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
13076         Fix argument types.
13077         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
13078         ElfW(Rel) in argument.
13079         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
13080         function.
13082 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
13084         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
13086 2001-08-24  Andreas Jaeger  <aj@suse.de>
13088         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
13089         Stephen L Moshier <moshier@mediaone.net>.
13091 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13093         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
13094         first if RELCOUNT is set.
13096         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
13097         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
13098         elf_machine_rel_relative.
13099         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
13100         Minor optimizations.
13101         * sysdeps/arm/dl-machine.h: Likewise.
13102         * sysdeps/cris/dl-machine.h: Likewise.
13103         * sysdeps/hppa/dl-machine.h: Likewise.
13104         * sysdeps/i386/dl-machine.h: Likewise.
13105         * sysdeps/ia64/dl-machine.h: Likewise.
13106         * sysdeps/m68k/dl-machine.h: Likewise.
13107         * sysdeps/mips/dl-machine.h: Likewise.
13108         * sysdeps/powerpc/dl-machine.h: Likewise.
13109         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13110         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13111         * sysdeps/sh/dl-machine.h: Likewise.
13112         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13113         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13115 2001-08-23  Roland McGrath  <roland@frob.com>
13117         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
13119         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
13120         sysdeps/mach version.  Implement counting ("recursive") mutexes
13121         on top of cthreads mutexes.
13122         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
13124         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
13125         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
13126         (__libc_cleanup_region_start, __libc_cleanup_region_end,
13127         __libc_clean_end): Define these to call the cleanup function after
13128         normal exit when they're supposed to.
13130         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
13131         Take new first arg DOIT, a boolean saying whether to really install
13132         any cleanup handler.
13133         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
13134         (__libc_cleanup_end): Likewise.
13135         * sysdeps/generic/bits/libc-lock.h: Same changes.
13136         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
13137         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
13138         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
13139         Likewise.
13140         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
13141         * sysdeps/generic/bits/stdio-lock.h
13142         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
13144 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13146         * elf/ldconfig.c (search_dir): Remove stale symlinks.
13148 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13150         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
13151         functions.
13152         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
13153         lookups in cache.
13154         (_dl_lookup_versioned_symbol): Likewise.
13155         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
13156         relocation lookup.
13157         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
13158         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
13159         (lookup_cache, lookup_cache_versioned): Add declarations.
13161 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
13163         * stdlib/tst-random.c (main): Swap parameters in fail call.
13164         Patch by Pete Bevin <pete@petebevin.com>.
13166 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13168         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
13170 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
13172         * malloc/obstack.c: Indent preprocessor directives.
13173         Patch by Jim Meyering <meyering@ascend.com>.
13175         * po/ja.po: Update from translation team.
13177 2001-08-23  Roland McGrath  <roland@frob.com>
13179         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
13181         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
13182         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
13184 2001-08-22  Roland McGrath  <roland@frob.com>
13186         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
13187         __libc_lock_define_recursive.
13188         * elf/dl-open.c: Don't declare it here any more.
13189         * elf/dl-close.c: Likewise.
13190         * elf/dl-lookup.c: Likewise.
13191         * elf/dl-iteratephdr.c: Likewise.
13192         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
13193         __libc_lock_unlock_recursive.
13194         * elf/dl-close.c (_dl_close): Likewise
13195         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
13196         * elf/dl-open.c (_dl_open): Likewise
13198         * sysdeps/generic/bits/libc-lock.h
13199         (__libc_lock_define_recursive): New macro.
13200         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
13201         (_IO_lock_lock): Use __libc_lock_lock_recursive.
13202         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
13204         * conform/conformtest.pl (checknamespace): Sort the output list.
13206         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
13207         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
13208         definitions conditional on [__USE_XOPEN].
13210         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
13211         these unconditionally, not only use [__USE_BSD], so as to match
13212         the sysdeps/unix/sysv/linux files.
13214 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13216         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
13217         avoid warnings.
13219         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
13220         DL_LOOKUP_ADDRESS.
13222 2001-08-22  Roland McGrath  <roland@frob.com>
13224         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
13225         conditionalization of sa_handler/sa_sigaction member types to
13226         match the sysdeps/unix/sysv/linux file.
13228 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13230         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
13231         symbol sizes a bit better.
13233         * sysdeps/ia64/strncpy.S: Complete rewrite.
13234         Contributed by Jakub Jelinek <jakub@redhat.com>.
13236         * string/stratcliff.c (main): Add strncpy test.
13238 2001-08-22  Roland McGrath  <roland@frob.com>
13240         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
13241         and don't declare unsetenv or _environ directly.
13242         (unsetenv): Return int, not void.  Use __environ instead of _environ.
13244 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
13246         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
13247         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
13248         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
13249         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
13250         test for cmsg struct size.
13252 2001-04-23  Paul Eggert  <eggert@twinsun.com>
13254         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
13255         Rename __argc to ___argc in prototypes to avoid compatibility
13256         problems with systems that reserve the identifier "__argc".
13257         Similarly for __argv.
13259 2001-08-21  Roland McGrath  <roland@frob.com>
13261         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
13263         * mach/Makefile (tests): Removed.
13264         * mach/hello.c: File removed.
13266 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13268         * po/sv.po: Update from translation team.
13270         * stdio-common/vfscanf.c: Fix handling of %l[].
13271         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
13273         * libio/Makefile (tests): Add tst-sscanf.
13274         * libio/tst-sscanf.c: New file.
13276         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
13277         * malloc/mtrace.c (tr_where): dli_sname always points to a
13278         non-empty string if != NULL.
13279         Reported by Tim Janik <timj@gtk.org>.
13281 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
13283         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
13284         buf.  Free resources on failure.
13285         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
13286         (makefd_xprt): Likewise.
13287         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
13288         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
13289         * sunrpc/auth_unix.c (authunix_create): Likewise.
13291 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
13293         * string/strnlen.c: Remove.
13294         * sysdeps/generic/strnlen.c: New file.
13295         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
13297 2001-08-21  Roland McGrath  <roland@frob.com>
13299         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
13300         as a macro, not an extern inline function.
13302         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
13303         * Versions.def (libc): Add GLIBC_2.2.5 set.
13304         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
13305         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
13307 2001-08-20  Roland McGrath  <roland@frob.com>
13309         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
13310         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
13312 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
13314         * string/bits/string2.h: Remove strnlen optimization here.
13315         * sysdeps/i386/i486/bits/string.h: Add it here.
13317 2001-08-21  Wolfram Gloger  <wg@malloc.de>
13319         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
13321 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
13323         * po/gl.po: Update from translation team.
13325 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13327         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
13328         * misc/err.c (convert_and_print): Likewise.
13330         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
13331         function calls.
13333 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13335         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
13336         change of the gregset_t type.
13337         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13339 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
13341         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
13343 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13345         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
13347         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
13349 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
13351         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
13352         before calling the cthreads initialization code.
13354 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13356         * argp/argp-help.c: Fix two problems introduced in last change.
13358         * include/dirent.h: Include <dirstream.h> first.
13360 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
13362         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
13364         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
13365         * sunrpc/xdr_rec.c: Likewise.
13366         * sunrpc/xdr_mem.c: Likewise.
13367         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
13368         * sunrpc/rpc_cmsg.c: Likewise.
13369         * sunrpc/getrpcport.c (getrpcport): Likewise.
13370         * sunrpc/clnt_simp.c (callrpc): Likewise.
13371         * sunrpc/clnt_gen.c (clnt_create): Likewise.
13372         * string/envz.c: Likewise.
13374         * po/ko.po: Update from translation team.
13376         * argp/argp-help.c: Handle wide oriented stderr stream.
13378 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
13380         * sysdeps/generic/strtol.c: Little optimizations.  Add some
13381         __builtin_expect.
13383         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
13385         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
13386         * wcsmbs/wcwidth.c (wcwdith): Likewise.
13387         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
13389         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
13391         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
13393         * time/time.h (struct timespec): Use __time_t for tv_sec element.
13395         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
13396         wchar_t for function declarations and defintions.
13398         * misc/sys/select.h: Define __need_time_t before including <time.h>.
13399         Define suseconds_t if it hasn't happened yet.
13401         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
13403         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
13405         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
13406         <stddef.h>.
13408         * conform/data/stddef.h-data: Remove wint_t.
13410         * conform/conformtest.pl: Change namespace test to take #undef
13411         lines into account.
13413         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
13415         * conform/data/sys/socket.h-data: Add sockatmark.
13417 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13419         * io/fts.c: Update from recent BSD source.
13421 2001-08-17  Roland McGrath  <roland@frob.com>
13423         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
13424         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
13425         Likewise.
13427 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13429         * locale/duplocale.c (__duplocale): Also initialize the special
13430         __ctype_* elements.
13432         * conform/data/netdb.h-data: Adjust gai_strerror return type.
13434 2001-08-17  Andreas Jaeger  <aj@suse.de>
13436         * misc/getpass.c: Include wchar.h for prototypes.
13437         * malloc/obstack.c: Likewise.
13439 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13441         * sunrpc/svc_simple.c (universal): Use __write instead of write.
13443         * wcsmbs/wcscoll.c: Also define __wcscoll.
13444         * include/wchar.h: Declare __wcscoll.
13446         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
13447         * libio/vwprintf.c: Likewise.
13448         * libio/wprintf.c: Likewise.
13450         * iconv/gconv_cache.c: Use __munmap instead of munmap.
13452 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
13454         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
13455         instead of mbrtowc.
13456         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
13457         wcslen, and __wcscoll instead of wcscoll.
13459         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
13461         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
13462         __getuid instead of getuid.
13464         * stdio-common/perror.c (perror): Use __close instead of close.
13465         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13466         * libio/freopen.c (freopen): Likewise.
13467         * libio/freopen64.c (freopen64): Likewise.
13469         * libio/tst-ungetwc2.c (main): Define str const.
13471         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13472         * libio/fwprintf.c: Also define __fwprintf.
13473         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13474         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13475         * assert/assert-perr.c: Likewise.
13476         * assert/assert.c: Likewise.
13477         * gmon/gmon.c: Likewise.
13478         * inet/rcmd.c: Likewise.
13479         * malloc/obstack.c: Likewise.
13480         * misc/err.c: Likewise.
13481         * misc/error.c: Likewise.
13482         * misc/getpass.c: Likewise.
13483         * posix/getopt.c: Likewise.
13484         * resolv/res_hconf.c: Likewise.
13485         * stdio-common/perror.c: Likewise.
13486         * stdio-common/psignal.c: Likewise.
13487         * stdlib/fmtmsg.c: Likewise.
13488         * sunrpc/auth_unix.c: Likewise.
13489         * sunrpc/clnt_perr.c: Likewise.
13490         * sunrpc/clnt_tcp.c: Likewise.
13491         * sunrpc/clnt_udp.c: Likewise.
13492         * sunrpc/clnt_unix.c: Likewise.
13493         * sunrpc/svc_simple.c: Likewise.
13494         * sunrpc/svc_tcp.c: Likewise.
13495         * sunrpc/svc_udp.c: Likewise.
13496         * sunrpc/svc_unix.c: Likewise.
13497         * sunrpc/xdr.c: Likewise.
13498         * sunrpc/xdr_array.c: Likewise.
13499         * sunrpc/xdr_rec.c: Likewise.
13500         * sunrpc/xdr_ref.c: Likewise.
13501         * sysdeps/generic/wordexp.c: Likewise.
13503         * po/it.po: Update from translation team.
13505         * misc/err.c: Handle wide oriented stderr stream.
13507 2001-08-14  Tom Rix  <trix@redhat.com>
13509         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13510         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13512 2001-08-13  Tom Rix  <trix@redhat.com>
13514         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13515         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13516         and __intptr_t.
13518 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13520         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13521         Store the access registers to the ucontext structure.
13522         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13523         Likewise.
13525         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13526         Load the access registers from the ucontext structure.
13527         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13528         Likewise.
13530         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13531         offsets to the new ucontext layout.
13532         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13534         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13535         of the ucontext structure.
13536         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13538 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
13540         * misc/error.c (error): Handle wide oriented stderr stream correctly.
13541         (error_at_line): Likewise.
13543         * stdio-common/perror.c (perror): Implement according to standard.
13544         The stream orientation must not be changed if the stream was not
13545         oriented before the call.
13546         * stdio-common/Makefile (tests): Add tst-perror.
13547         * stdio-common/tst-perror.c: New file.
13550 See ChangeLog.12 for earlier changes.