* test-skeleton.c (timeout_handler): Use WUNTRACED flag in waitpid.
[glibc.git] / ChangeLog
blob48479af442e1bfa600e4801402162a25e5c1a9d6
1 2002-09-29  Roland McGrath  <roland@redhat.com>
3         * test-skeleton.c (timeout_handler): Use WUNTRACED flag in waitpid.
4         Examine the child's status and print something different if it wasn't
5         just killed by our SIGKILL.
6         (main): In the child process call setpgid to put it in its own pgrp.
8 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
10         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): The return value
11         semantics for sigtimedwait is different.  Rework the return value
12         handling and don't pass in an siginfo variable.
14 2002-09-29  Roland McGrath  <roland@redhat.com>
16         * malloc/malloc.c [! MALLOC_DEBUG] (assert): #undef before defining.
18         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.2.6): Add __errno_location.
20         * sysdeps/unix/sysv/linux/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]:
21         Define errno in .tbss.
22         * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]: Use TLS
23         access for setting errno.
25         * sysdeps/unix/x86_64/sysdep.S: Store 32 bits at errno, not 64 bits.
26         AFAICT, it was just blind luck that the word following errno in .bss
27         was just alignment padding and not some other variable to be clobbered.
29 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
31         * sysdeps/unix/sysv/linux/kernel-features.h
32         (__ASSUME_SETRESUID_SYSCALL): On the sparc, define to 1, not empty.
34 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
36         * nss/bug-erange.c (main): Don't fail if /etc/resolv.conf doesn't
37         exist.
39 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
41         * nss/Makefile: Move bug-erage from tests to xtests.
43 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
45         * stdlib/longlong.h (__udiv_qrnnd): Remove PARAMS from prototype.
47 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
49         * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall0): Make asm
50         volatile.
51         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
52         inline_syscall5, inline_syscall6): Likewise.
53         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
54         Likewise.
55         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (INLINE_SYSCALL):
56         Likewise.
58 2002-09-29  Roland McGrath  <roland@redhat.com>
60         * configure.in (libc_cv_ranlib_necessary check): Put the .o file in
61         the archive, not the .c file.
62         * configure: Regenerated.
64 2002-09-29  Roland McGrath  <roland@redhat.com>
66         * configure: Regenerated after aclocal.m4 change.
68         * sysdeps/x86_64/sysdep.h [HAVE_ELF] (L): Define with .L##name form.
69         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (L): Don't define it here.
71         * sysdeps/generic/dl-lookupcfg.h [USE_TLS] (DL_LOOKUP_RETURNS_MAP):
72         Define it, because _dl_sym presumes it (for any platform).
74         * sysdeps/x86_64/dl-tls.h: New file.
76         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add a cast.
78         * sysdeps/x86_64/elf/configure.in: New file.
79         * sysdeps/x86_64/elf/configure: New generated file.
81 2002-09-28  Roland McGrath  <roland@redhat.com>
83         * elf/rtld.c (_dl_start): Fix conditional for declaring CNT.
85         * aclocal.m4 (LIBC_PROG_BINUTILS): Don't clobber $RANLIB with ranlib
86         before we check it.
88 2002-09-28  Ulrich Drepper  <drepper@redhat.com>
90         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __syscall_exit
91         entry point.
93 2002-09-28  Jakub Jelinek  <jakub@redhat.com>
95         * posix/bug-regex11.c (tests): Add flags field.
96         (main): Avoid warnings.  Use test[i].flags.  Return nonzero
97         if any of the tests failed.
98         * posix/bug-regex12.c: New file.
99         * posix/Makefile (tests): Add bug-regex12.
101 2002-03-02  Thorsten Kukuk  <kukuk@suse.de>
103         * sysdeps/unix/nice.c (nice): Use getpriority() for the return value.
105 2002-09-28  Jeff Bailey  <jbailey@gnu.org>
107         * sysdeps/unix/sysv/sysv4/solaris2/configure.in: Delete.
108         * sysdeps/unix/sysv/aix/configure.in: Update comment and remove
109         stdio=libio setting.
111 2002-09-28  Roland McGrath  <roland@redhat.com>
113         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Use INTUSE for
114         _dl_signal_error.
115         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Likewise.
116         * sysdeps/powerpc/powerpc64/dl-machine.c
117         (_dl_reloc_overflow): Likewise.
118         * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
119         (elf_machine_rela): Likewise.
121 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
123         * include/libc-symbols.h (__hidden_dot_weak1): Fix typo.  Replace
124         ASM_GLOBAL_DIRECTIVE with .weak.
126 2002-09-28  Andreas Jaeger  <aj@suse.de>
128         * sysdeps/unix/sysv/linux/mips/truncate64.c (truncate64): Fix
129         number of args to syscall.
130         * sysdeps/unix/sysv/linux/mips/ftruncate64.c (__ftruncate64): Likewise.
131         Patch by Guido Guenther <agx@sigxcpu.org>.
133 2002-09-27  Roland McGrath  <roland@redhat.com>
135         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_pread, __NR_pwrite):
136         Define these to __NR_pread64, __NR_pwrite64 if not defined.
138         * sysdeps/unix/sysv/linux/powerpc/lchown.S
139         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Use this condition
140         on chown compatibility symbol; use compat_symbol, not symbol_version.
142 2002-09-27  Isamu Hasegawa  <isamu@yamato.ibm.com>
144         * posix/regcomp.c (reg_free): Free the debug area.
145         (re_compile_internal): Allocate debug area for the input string.
146         (create_initial_state): Check the back references in initial states
147         if they are really match null string in the initial state.
148         (parse_reg_exp): Mark the dfa that the dfa can have plural matchings.
149         (parse_expression): Likewise.
150         (parse_bracket_exp): Likewise.
151         * posix/regex_internal.c (re_node_set_intersect): Remove unused
152         function.
153         (re_node_set_contains): Change to return the index of node.
154         * posix/regex_internal.h (re_backref_cache_entry): Change the members.
155         (re_match_context_t): Likewise.
156         (struct re_dfa_t): Likewise.
157         (re_sift_context_t): New structure.
158         * posix/regexec.c (match_ctx_clear_flag): New function.
159         (sift_ctx_init): Likewise.
160         (update_cur_sifted_state): Likewise.
161         (add_epsilon_src_nodes): Likewise.
162         (sub_epsilon_src_nodes): Likewise.
163         (check_subexp_limits): Likewise.
164         (search_subexp): Likewise.
165         (sift_states_bkref): Likewise.
166         (merge_state_array): Likewise.
167         (sift_states_iter_bkref): Remove unused function.
168         (add_epsilon_backreference): Remove unused function.
169         (re_search_internal): Adapt new members and interfaces.
170         (check_matching): Check the back references in initial states
171         if they are really match null string in the initial state.
172         (proceed_next_node): Change the evaluation of back references,
173         since we have real registers here.
174         (set_regs): Adapt new interface of proceed_next_node.
175         (sift_states_backward): Add invocation of update_cur_sifted_state
176         instead of add_epsilon_backreference.
177         Add a sentinel to the outermost while loop.
178         Move the handling of back references to sift_states_bkref function,
179         since we can't handle some back references (e.g. a back reference
180         which match NULL string) here.
181         (transit_state_mb): Handle the new member max_mb_elem_len.
182         (transit_state_bkref_loop): Move the evaluation of back references to
183         search_subexp function, since we can't evaluate some back references
184         (e.g. a back reference which can have plural matchings) here.
185         (match_ctx_init): Adapt the new member.
186         (match_ctx_add_entry): Adapt the new members.
188 2002-09-25  Alan Modra  <amodra@bigpond.net.au>
190         * elf/do-rel.h: Define macro DO_ELF_MACHINE_REL_RELATIVE for
191         'elf_machine_rel_relative'
192         (elf_dynamic_do_rel): Call DO_ELF_MACHINE_REL_RELATIVE macro
193         instead of 'elf_machine_rel_relative'.
194         * sysdeps/hppa/dl-machine.h:
195         Define macro DO_ELF_MACHINE_REL_RELATIVE for
196         'elf_machine_rel_relative' with extra map parameter
197         required by HPPA.
198         (elf_machine_rela_relative): Add plt relocation changes.
200 2001-11-14  Matthew Wilcox  <willy@debian.org>
202         * sysdeps/unix/sysv/linux/hppa/bits/ipc.h: New file.
203         * sysdeps/unix/sysv/linux/hppa/bits/msq.h: New file.
204         * sysdeps/unix/sysv/linux/hppa/bits/sem.h: New file.
205         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: New file.
207 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
209         * sysdeps/powerpc/powerpc32/Makefile: Fix typo in comment.
211         * sysdeps/powerpc/powerpc64/Makefile
212         [$(build-shared) = yes] (pic-ccflag): Define it.
213         [$(subdir) = csu] (CFLAGS-initfini.s): Add -fpic here too.
215 2002-09-27  Roland McGrath  <roland@redhat.com>
217         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Remove
218         unneeded TLS cases.
220 2002-09-27  Jakub Jelinek  <jakub@redhat.com>
222         * elf/dl-addr.c (_dl_addr): Set dli_fbase to l_map_start
223         unconditionally.  Set dli_fname to _dl_argv[0] only for main program.
225 2002-09-27  Roland McGrath  <roland@redhat.com>
227         * elf/dl-addr.c (_dl_addr): Add a cast.
229         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [USE_TLS]: Handle new
230         TLS relocs R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, and R_X86_64_TPOFF64.
232         * elf/elf.h (R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, R_X86_64_TPOFF64,
233         R_X86_64_TLSGD, R_X86_64_TLSLD, R_X86_64_DTPOFF32,
234         R_x86_64_GOTTPOFF, R_X86_64_TPOFF32): New macros.
235         (R_X86_64_NUM): Update the value.
237 2002-09-24  Jakub Jelinek  <jakub@redhat.com>
239         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_load_address): Don't
240         rely on *r_offset of R_SPARC_RELATIVE reloc in .got to contain the
241         addend.
242         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Use
243         the same l_addr computation.
244         * sysdeps/sparc/sparc64/configure.in: Removed.
245         * sysdeps/sparc/sparc64/configure: Removed.
246         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Remove.
248 2002-09-26  Ulrich Drepper  <drepper@redhat.com>
250         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_HASH entry
251         if necessary.
252         * elf/dl-lookup.c (_dl_setup_hash): DT_HASH entry is already relocated.
253         * elf/dl-addr.c (_dl_addr): Use .hash[1] entry to determine end of the
254         symbol table if necessary.
256 2002-09-26  Roland McGrath  <roland@redhat.com>
258         * stdlib/longlong.h: Replaced with current version from GCC mainline,
259         last modified 2002-09-22  Kazu Hirata  <kazu@cs.umass.edu>.
261 2002-09-25  Andreas Jaeger  <aj@suse.de>
263         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add syscall_exit.
264         Patch by Guido Guenther <agx@sigxcpu.org>.
266 2002-09-25  Roland McGrath  <roland@redhat.com>
268         * Makeconfig (%.v.i pattern rule): Use $(CPPFLAGS).
270 2002-09-24  Ulrich Drepper  <drepper@redhat.com>
272         * sysdeps/unix/sysv/linux/configure.in: Recognize nptl add-on name.
274 2002-09-24  Roland McGrath  <roland@redhat.com>
276         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Move __libc_read,
277         __libc_write, __libc_lseek64, to ...
278         (ld: GLIBC_PRIVATE): ... here.
280         * csu/Versions: Use %include <tls.h> to get USE_TLS defined.
281         (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _errno, errno.
282         (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put errno here instead.
283         * resolv/Versions: Use %include <tls.h> to get USE_TLS defined.
284         (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _h_errno, h_errno,
285         and _res.
286         (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put h_errno, _res here.
288         * elf/tls-macros.h [__x86_64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
289         New macros for x86-64.
291         * sysdeps/unix/sysv/linux/alpha/bits/time.h: File removed.
292         It was indentical to the linux/bits/time.h file.
294         * nscd/nscd_gethst_r.c (nscd_gethst_r): Add a cast to silence warning.
296         * resolv/gethnamaddr.c (gethostbyaddr): Use socklen_t for SIZE.
298 2002-09-23  Ulrich Drepper  <drepper@redhat.com>
300         * po/zh_CN.po: New file.
302 2002-09-23  Roland McGrath  <roland@redhat.com>
304         * posix/unistd.h: Test [__USE_UNIX98] instead of [__USE_OPEN2K]
305         for gethostname declaration.
307         * catgets/open_catalog.c (__open_catalog): Don't use a value type
308         as the __builtin_expect expression, just the Boolean value.
310         * sysdeps/generic/wordexp.c (parse_glob): int -> size_t for counter.
311         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
312         * resolv/res_hconf.c (arg_service_list, parse_line): Likewise.
313         * iconvdata/tst-loading.c (main): Likewise.
314         * catgets/tst-catgets.c (main): Likewise.
315         * stdlib/tst-xpg-basename.c (main): Likewise.
316         * stdlib/tst-bsearch.c (main): Likewise.
317         * stdio-common/test-vfprintf.c (main): Likewise.
318         * stdio-common/tst-rndseek.c (do_test): Likewise.
319         * libio/tst_swprintf.c (main): Likewise.
320         * libio/tst-fgetws.c (main): Likewise.
321         * wcsmbs/tst-mbrtowc.c (check_ascii): Likewise.
322         * time/tst-posixtz.c (main): Likewise.
323         * time/tst-strptime.c (test_tm): Likewise.
324         * time/tst-strptime.c (main): Likewise.
325         * time/tst-getdate.c (main): Likewise.
326         * posix/tst-mmap.c (main): Likewise.
327         * posix/tst-getaddrinfo.c (do_test): Likewise.
328         * io/tst-getcwd.c (do_test): Likewise.
329         * resolv/tst-aton.c (main): Likewise.
330         * inet/tst-network.c (main): Likewise.
331         * libio/tst-fgetws.c (main): Likewise.
332         * sysdeps/posix/sprofil.c (add_region): int -> unsigned int for I.
333         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): int -> unsigned int
334         for PTYNO.
336         * stdlib/msort.c (qsort): Add a cast to silence warning.
337         * stdio-common/vfprintf.c (process_string_arg): Likewise.
338         * libio/oldfileops.c (_IO_old_do_write): Likewise.
339         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Likewise.
340         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
341         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
342         * argp/argp-fmtstream.c (__argp_fmtstream_printf): Likewise.
343         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
344         * sysdeps/unix/grantpt.c (grantpt): Likewise.
345         * libio/tst-widetext.c (main): Likewise.
346         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
347         * rt/tst-aio.c (test_file): Likewise.
348         * rt/tst-aio64.c (test_file): Likewise.
349         * resolv/tst-aton.c (main): Likewise.
351         * catgets/catgetsinfo.h (CATGETS_MAGIC): Use U suffix on the constant.
353         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Cast to int32_t
354         instead of uint32_t in these macros.
356 2002-09-22  Bruno Haible  <bruno@clisp.org>
358         * iconv/iconv_prog.c (main): Provide an error message that identifies
359         the wrong encoding.
361         * iconvdata/tscii.c: New file.
362         * iconvdata/testdata/TSCII: New file.
363         * iconvdata/testdata/TSCII..UTF8: New file.
364         * iconvdata/TSCII.precomposed: New file.
365         * iconvdata/TSCII.irreversible: New file.
366         * iconvdata/gconv-modules (TSCII): New module.
367         * iconvdata/Makefile (modules): Add TSCII.
368         (distribute): Add tscii.c.
369         * iconvdata/tst-table-from.c (try, utf8_decode, main): Double output
370         buffer size.
371         * iconvdata/tst-tables.sh: Add TSCII.
372         * iconvdata/TESTS: Add TSCII.
374         Revert 2002-04-18 patch.
375         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
376         FROM_DIRECTION): Make the FROM direction stateful again.
377         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
378         FROM_DIRECTION): Likewise.
380         * iconvdata/tst-e2big.c: New file.
381         * iconvdata/Makefile (tests): Add tst-e2big.
383 2002-09-23  Roland McGrath  <roland@redhat.com>
385         * elf/Makefile (test-extras): Define this instead of test-srcs.
386         * Makerules (all-nonlib): Include $(test-extras) too.
388 2002-09-21  Carlos O'Donell  <carlos@baldric.uwo.ca>
390         * sysdeps/hppa/abort-instr.h: New file.
392 2002-09-22  Roland McGrath  <roland@frob.com>
394         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Remove duplicate entry.
396         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Add alias __GI__exit.
398 2002-09-22  Andreas Schwab  <schwab@suse.de>
400         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Append, not overwrite.
402         * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal)
403         (isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]:
404         Use GCC builtins.
406 2002-09-21  Roland McGrath  <roland@redhat.com>
408         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM):
409         Correct the value so it covers all platforms, and is computed
410         from _DL_PLATFORMS_COUNT rather than hard-wired.
411         From Andrew Suffield <asuffield@debian.org>.
413 2002-09-20  Ulrich Drepper  <drepper@redhat.com>
415         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
416         locking when using mount tab file.
417         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
418         * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
419         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
421         * elf/dl-init.c (_dl_init): Fix test of the size of the
422         preinit_array section.
423         (call_init): Optimize access to DT_INIT_ARRAY entry a bit.
424         Reported by Brian Cabral <cabral@ikuni.com>.
426 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
428         * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros.
429         * sysdeps/powerpc/powerpc32/sysdep.h: New file.  Define powerpc32
430         specific macros copied from sysdeps/powerpc/sysdep.h.
431         * sysdeps/powerpc/powerpc64/sysdep.h: New file.  Define powerpc64
432         specific macros.
433         * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>.
434         [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h.
435         [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h.
437 2002-09-19  Bruno Haible  <bruno@clisp.org>
439         * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
440         returning.
442 2002-09-17  Bruno Haible  <bruno@clisp.org>
444         * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
445         * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
446         also on platforms with !HAVE_UT_TYPE.
447         (proc_utmp_eq): Remove function.
448         (internal_getut_r, pututline_file): Call __utmp_equal instead.
450 2002-09-20  Bruno Haible  <bruno@clisp.org>
452         * abi-tags: Add support for FreeBSD with ABI OS value 3.
453         * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
455 2002-09-20  Roland McGrath  <roland@redhat.com>
457         * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
458         (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
459         terms of __WORDSIZE.
460         * sysdeps/x86_64/gmp-mparam.h: File removed.
461         * sysdeps/sparc/gmp-mparam.h: File removed.
462         * sysdeps/mips/mips64/gmp-mparam.h: File removed.
463         * sysdeps/ia64/gmp-mparam.h: File removed.
464         * sysdeps/alpha/gmp-mparam.h: File removed.
466 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
468         * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
469         load, so as to work on both 32-bit and 64-bit.  Remove unnecessary
470         casts.  Align __libc_stack_end to 8 bytes.
472 2002-09-20  Roland McGrath  <roland@redhat.com>
474         * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
475         instead of asm for lrintf, __lrintf aliases.
477         * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
478         int array for 32-/64-bit compatibility.
479         From Steven Munroe  <sjmunroe@us.ibm.com>.
481 2002-09-17  Bruno Haible  <bruno@clisp.org>
483         * sysdeps/generic/ifreq.h (__if_nextreq): New function.
484         * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
485         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
486         * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
487         for iterating through the list of interfaces.
488         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
490 2002-09-20  Roland McGrath  <roland@redhat.com>
492         * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
493         Reported by Bruno Haible <bruno@clisp.org>.
495         * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
497         * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
498         * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
499         isatty unmodified.  Reported by Bruno Haible <bruno@clisp.org>.
501 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
503         * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
504         * sysdeps/powerpc/bits/wordsize.h: New file.
505         * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
506         array to int array for 32-/64-bit compatibility.
508 2002-09-20  Roland McGrath  <roland@redhat.com>
510         * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
512         * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
513         Reported by Bruno Haible <bruno@clisp.org>.
515         * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
516         before doubling RQ_LEN.
517         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
518         Reported by Bruno Haible <bruno@clisp.org>.
520 2002-09-18  Bruno Haible  <bruno@clisp.org>
522         * login/logout.c (logout): Don't assume ut_time has the same size as
523         a time_t.
524         * login/logwtmp.c (logwtmp): Likewise.
526         * sysdeps/pthread/configure: New file, moved here from
527         linuxthreads/sysdeps/unix/sysv/linux/configure.
529 2002-09-19  Ulrich Drepper  <drepper@redhat.com>
531         * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
532         (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
533         Reported by Glen Nakamura <glen@imodulo.com>.
535 2002-09-19  Neal H. Walfield  <neal@cs.uml.edu>
537         * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
538         thread's sigstate data structure if it has been allocated.
540 2002-09-19  Roland McGrath  <roland@redhat.com>
542         * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
543         [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
545 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
547         * version.h (VERSION): Bump to 2.2.94.
549         * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
550         * sysdeps/powerpc/powerpc32/fpu/Dist: ...here.  New file.
551         * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
554         * sysdeps/i386/Makefile: Remove obsolete db2 rules.
556         * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
558         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
562 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
564         * sysdeps/wordsize-32/Makefile: New file.
565         * sysdeps/arm/Makefile: Removed.
566         * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
567         Don't add divdi3 here.
568         * sysdeps/m68k/Makefile: Likewise.
569         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
570         * sysdeps/sh/Makefile: Likewise.
571         * sysdeps/s390/s390-32/Makefile: Likewise.
573 2002-09-18  Roland McGrath  <roland@redhat.com>
575         * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
576         the __ctype_* compat symbols, so the relocs generated bind to the
577         right versioned global symbol in the shared object.
579         * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
580         from the value taken from the DT_VERSYM table.
581         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
582         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
583         (RESOLVE_GOTSYM): Likewise.
585         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
586         Add libc_hidden_def.
587         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
588         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
589         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
590         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
591         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
592         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
593         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
594         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
596 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
598         * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
600         * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
601         define sigaction and __sigaction as wrappers around
602         __libc_sigaction which rejects changing SIGCANCEL.
603         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
605         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
606         SETTID/CLEARTID.
608         * signal/allocrtsig.c: Move to...
609         * sysdeps/generic/allocrtsig.c: ...here.  New file.
611 2002-09-17  Jakub Jelinek  <jakub@redhat.com>
613         * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
615         * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
616         R_386_TLS_LE): Define.
617         (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
618         comments.
619         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
620         ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
621         (elf_machine_rel): Handle R_386_TLS_TPOFF.
622         (elf_machine_rela): Likewise.
623         Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
625 2002-09-17  Roland McGrath  <roland@redhat.com>
627         * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
628         file-specific variable override so it compiles properly when using
629         --with-headers.
631 2002-09-17  Steven Munroe  <sjmunroe@us.ibm.com>
633         Ported to PowerPC64 running Linux.
634         * sysdeps/powerpc/powerpc64/Dist: New file.
635         * sysdeps/powerpc/powerpc64/Implies: New file.
636         * sysdeps/powerpc/powerpc64/Makefile: New file.
637         * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
638         * sysdeps/powerpc/powerpc64/atomicity.h: New file.
639         * sysdeps/powerpc/powerpc64/backtrace.c: New file.
640         * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
641         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
642         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
643         * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
644         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
645         * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
646         * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
647         * sysdeps/powerpc/powerpc64/memset.S: New file.
648         * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
649         * sysdeps/powerpc/powerpc64/register-dump.h: New file.
650         * sysdeps/powerpc/powerpc64/setjmp.S: New file.
651         * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
652         * sysdeps/powerpc/powerpc64/strchr.S: New file.
653         * sysdeps/powerpc/powerpc64/strcmp.S: New file.
654         * sysdeps/powerpc/powerpc64/strcpy.S: New file.
655         * sysdeps/powerpc/powerpc64/strlen.S: New file.
656         * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
657         * sysdeps/powerpc/powerpc64/elf/start.S: New file.
658         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
659         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
661         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
663         * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
668         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
669         (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
670         various gcc versions.  Dot names required for powerpc64.
671         [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
672         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
673         C_SYMBOL_DOT_NAME(alias).
674         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
675         original strong_alias macro.
676         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
677         C_SYMBOL_DOT_NAME(alias).
678         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
679         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
680         '.'ed name.
681         Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
682         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro.  Generate
683         .global C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
684         (hidden_def): Append hidden_dot_def1 macro to definition.
685         (hidden_ver): Append hidden_dot_def1 macro to definition.
686         (hidden_data_def): New macro.  Same as original hidden_def macro.
687         (hidden_data_ver): New macro.  Same as original hidden_ver macro.
688         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro.  Generate
689         .weakext C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
690         (hidden_weak): Append hidden_dot_weak1 macro to definition.
691         (hidden_data_weak): New macro.  Same as original hidden_weak macro.
692         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
693         Otherwise defined as __GI_name.
694         (libc_hidden_data_def): New macro.  Use hidden_data_def.
695         (libc_hidden_data_weak): New macro.  Use hidden_data_weak.
696         (libc_hidden_data_ver): New macro.  Use hidden_data_ver.
697         (rtld_hidden_data_def): New macro.  Use hidden_data_def.
698         (rtld_hidden_data_weak): New macro.  Use hidden_data_weak.
699         (rtld_hidden_data_ver): New macro.  Use hidden_data_ver.
700         (libm_hidden_data_def): New macro.  Use hidden_data_def.
701         (libm_hidden_data_weak): New macro.  Use hidden_data_weak.
702         (libm_hidden_data_ver): New macro.  Use hidden_data_ver.
703         * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
705 2002-09-17  Ulrich Drepper  <drepper@redhat.com>
707         * include/libc-symbols.h: Change *hidden_proto macros to accept
708         option parameters and pass those to the attribute definition.
709         * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
711         * include/unistd.h: Declare __libc_pause.
713         * include/sys/socket.h: Declare __libc_send, __libc_recv,
714         __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
716         * include/unistd.h: Declare __libc_fork.
718 2002-09-17  Roland McGrath  <roland@redhat.com>
720         * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
721         (passwd2des): Define it as an alias.
722         (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
724 2002-09-12  Bruno Haible  <bruno@clisp.org>
726         * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
727         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
729         * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
730         * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
732 2002-09-05  Steven Munroe  <sjmunroe@us.ibm.com>
734         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
735         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
736         __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
737         PowerPC64 does not have separate 64-bit syscalls.
739 2002-09-16  Roland McGrath  <roland@redhat.com>
741         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
744         New macro.
746         * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
748         * include/unistd.h: Uncomment libc_hidden_proto for _exit.
749         * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
750         * sysdeps/generic/_exit.c: Likewise.
752 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
754         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
756         * elf/rtld.c (struct dl_start_final_info): New.
757         (_dl_start_final): Change second argument to struct
758         dl_start_final_info *.  Set start_time from info.
759         (_dl_start): Remove bootstrap_map variable, add info.
760         Define bootstrap_map as macro.  If not DONT_USE_BOOTSTRAP_MAP,
761         store HP_TIMING_NOW result into info.start_time.
763 2002-09-16  Andreas Jaeger  <aj@suse.de>
765         * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
766         to _Exit.
767         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
769 2002-09-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
771         * sysdeps/powerpc/abort-instr.h: New file.
773 2002-09-14  Ulrich Drepper  <drepper@redhat.com>
775         * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
776         comment.
778         * test-skeleton.c (main): Provide more information in case waitpid
779         fails.
781         * include/unistd.h: Declare __exit_thread.
782         * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
783         Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
784         * sysdeps/unix/sysv/linux/exit-thread.S: New file.
785         * sysdeps/unix/sysv/linux/_exit.c: New file.
786         * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
787         * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
788         Add exit-thread.
790         * configure.in: Add dl_iterate_phdr to test using -nostdlib.
792 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
794         * sysdeps/i386/dl-machine.h (elf_machine_rel)
795         (case R_386_TLS_DTPMOD32): Don't use addend.
796         [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
797         (elf_machine_rela): Add support for TLS relocs.
799 2002-09-14  Roland McGrath  <roland@redhat.com>
801         * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
803 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
805         * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
806         specific asm macros for multiple percision integer math.
808 2002-06-04  Steven Munroe  <sjmunroe@us.ibm.com>
810         * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
811         * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
812         Remove per-machine conditionals for FLAG_* cases.
813         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
814         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
817 2002-09-10  Alan Modra <amodra@bigpond.net.au>
819         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
820         defined in entry.h.
821         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
822         lowest address for profiling in  __monstartup call.
823         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
825 2002-09-14  Roland McGrath  <roland@redhat.com>
827         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
828         instead of __NR_pread.
829         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
830         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
831         instead of __NR_pwrite.
832         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
834 2002-09-13  Roland McGrath  <roland@redhat.com>
836         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
838 2002-09-13  Andreas Jaeger  <aj@suse.de>
840         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
841         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
843 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
845         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
847 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
849         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
850         reading the headers.
852 2002-09-12  Roland McGrath  <roland@redhat.com>
854         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
855         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
856         find the ELF header.
858         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
859         executable if needed, in case it's actually a shared object.
861 2002-09-11  Roland McGrath  <roland@redhat.com>
863         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
864         l_map_start to adjust l_tls_initimage.
866         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
867         when using h_errno and it's not set to NETDB_INTERNAL.
868         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
870         * Makefile ($(common-objpfx)testrun.sh): New target.
871         (others): Depend on it.
872         (postclean-generated): Append it.
874         * nss/bug-erange.c: New file.
875         * nss/Makefile (tests): Add it.
877         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
878         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
880         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
881         strncmp, keeps the code smaller for a non-performance-critical case.
883         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
884         no longer wrongly matches arbitrary prefixes of NAME.
885         Reported by Jakub Jelinek <jakub@redhat.com>.
887 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
889         * posix/bug-regex11.c (tests): New array.
890         (main): Rewritten to run more different tests.
892 2002-09-10  Roland McGrath  <roland@redhat.com>
894         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
895         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
896         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
898         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
899         well so we don't get it declared by include/math.h's hidden_proto.
900         Then do hidden_proto for __isnanf locally so hidden_def works right.
902         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
903         a cast to turn nl_langinfo return value into an integer.
905 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
907         * posix/regexec.c (build_trtable): Fix the destination of
908         newline to prevent wrong states from overwriting.
909         Append break statements to optimization.
911 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
913         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
914         (build_range_exp): Add castings to strlen invocations.
915         (build_collating_symbol): Restore the type of characters from "char"
916         to "unsigned char", and supplement castings.
917         (build_collating_symbol): Likewise.
918         (build_equiv_class): Likewise.
919         (build_charclass): Likewise.
920         (seek_collating_symbol_entry): Likewise.
921         (parse_bracket_exp): Likewise.
922         (build_word_op): Supplement a casting.
923         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
924         (re_string_allocate): Fix castings.
925         (re_string_construct): Likewise.
926         (re_string_construct_common): Likewise.
927         (re_string_realloc_buffers): Likewise.
928         (build_wcs_buffer): Likewise.
929         (build_wcs_upper_buffer): Likewise.
930         (re_string_skip_chars): Likewise.
931         (re_string_reconstruct): Likewise.
932         * posix/regex_internal.h: Restore the type of characters in
933         re_string_t and bracket_elem_t from "char" to "unsigned char".
934         (re_string_elem_size_at): Fix castings.
935         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
936         (transit_state_bkref_loop): Restore the type of characters from
937         "char" to "unsigned char", and append a cast to "char*" pointer in
938         array subscript.
939         (check_node_accept_bytes): Likewise.
940         (find_collation_sequence_value): Likewise.
942 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
944         * sysdeps/mips/memcpy.S: New file.
945         * sysdeps/mips/memset.S: New file.
946         * sysdeps/mips/fpu/e_sqrt.c:  New file.
947         * sysdeps/mips/fpu/e_sqrtf.c: New file.
949         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
950         functional before. Also removed all SHLIB_COMPAT stuff.
951         * fpu/fegetenv.c: Likewise.
952         * fpu/fesetenv.c:: Likewise.
953         * fpu/feupdateenv.c: Likewise.
954         * fpu/fgetexcptflg.c: Likewise.
955         * fpu/fraiseexcpt.c: Likewise.
957         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
959 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
961         * include/math.h (__finite_internal, __finitef_internal,
962         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
963         (isfinite): Remove.
964         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
965         __isinfl, __isnanl): Add hidden_proto.
966         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
967         libm_hidden_proto.
968         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
969         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
970         __is{inf,nan} calls.
971         * stdio-common/printf_size.c (printf_size): Likewise.
972         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
973         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
974         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
975         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
976         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
977         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
978         (__finite): Add hidden_def.
979         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
980         (__finitef): Add hidden_def.
981         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
982         (__finitel): Add hidden_def.
983         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
984         hidden_def.
985         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
986         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
987         libm_hidden_def.
988         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
989         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
990         hidden_def.
991         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
992         (__isinfl): Remove INTDEF.
993         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
994         hidden_def.
995         (__isnanl): Remove INTDEF.
996         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
997         libm_hidden_def.
998         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
999         instead of sin and cos.
1000         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
1001         Add hidden_def.
1002         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
1003         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
1004         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
1005         libm_hidden_def.
1006         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
1007         Add hidden_def.
1008         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
1009         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
1010         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
1011         libm_hidden_def.
1012         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
1013         libm_hidden_def.
1014         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
1015         Add hidden_def.
1016         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
1017         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
1018         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
1019         libm_hidden_def.
1020         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
1021         __finitel_internal): Remove aliases.
1022         (__finite, __finitef, __finitel): Add hidden_def.
1023         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
1024         __isnanl_internal): Remove aliases.
1025         (__isnan, __isnanf, __isnanl): Add hidden_def.
1026         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
1027         __isinfl_internal): Remove aliases.
1028         (__isinf, __isinff, __isinfl): Add hidden_def.
1029         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
1030         __fpclassifyl): Add libm_hidden_def.
1031         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
1032         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
1033         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
1034         (hidden_defx): Define and use.
1035         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
1036         libm_hidden_def.
1037         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
1038         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
1039         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
1040         Remove INTDEF.
1041         (__isnan, __isnanf): Add hidden_def.
1042         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
1043         (__finitel): Add libm_hidden_def.
1044         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
1046         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
1047         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
1048         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1049         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
1050         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1051         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
1052         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
1053         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
1054         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1055         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
1056         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1057         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
1058         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1059         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
1060         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1061         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
1062         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1063         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
1064         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1065         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
1066         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1067         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
1068         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1069         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
1070         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1071         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
1072         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1074 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
1076         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
1078 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
1080         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
1081         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
1083 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
1085         * string/stratcliff.c: Some more strncpy tests.
1086         Patch by Daniel Jacobowitz <drow@mvista.com>.
1088 2002-09-08  Roland McGrath  <roland@redhat.com>
1090         * resolv/resolv.h: Include <sys/types.h> for u_long even in
1091         the [__need_res_state] case.
1092         Reported by Bruno Haible <bruno@clisp.org>.
1094 2002-09-04  Bruno Haible  <bruno@clisp.org>
1096         * sysdeps/generic/bits/ustat.h: Comment fix.
1097         * io/sys/sendfile.h: Comment fix.
1098         * sysdeps/posix/pread.c: Comment fix.
1099         * sysdeps/posix/pread64.c: Comment fix.
1100         * sysdeps/posix/pwrite.c: Comment fix.
1101         * sysdeps/posix/pwrite64.c: Comment fix.
1103 2002-09-06  Roland McGrath  <roland@redhat.com>
1105         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
1106         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
1107         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
1108         (_UTSNAME_MACHINE_LENGTH): Likewise.
1109         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
1111 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
1113         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
1114         test for filesystem type name of mount points.
1116         * include/errno.h: Use errno definition with __thread for now only
1117         in libc and ld.so.
1119         * test-skeleton.c (main): Improve error message for unexpected
1120         signal case.
1122 2002-09-05  Roland McGrath  <roland@redhat.com>
1124         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
1125         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1127 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
1129         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
1130         case of failure.
1132 2002-09-04  Bruno Haible  <bruno@clisp.org>
1134         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
1135         sigset_get_old_mask): Turn into inline functions.
1136         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
1137         sigset_get_old_mask): Likewise.
1138         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
1139         sigset_get_old_mask): Likewise.
1140         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
1141         syntax.
1143         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
1145         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
1146         default definitions.
1147         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
1148         _sys_nerr_internal instead of _sys_nerr.
1150         * nscd/connections.c (handle_request): Declare CALLER inside #if.
1152 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
1154         * sysdeps/powerpc/__longjmp.S: Moved to...
1155         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
1156         * sysdeps/powerpc/add_n.S: Moved to...
1157         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
1158         * sysdeps/powerpc/addmul_1.S: Moved to...
1159         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
1160         * sysdeps/powerpc/atomicity.h: Moved to...
1161         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
1162         * sysdeps/powerpc/backtrace.c: Moved to...
1163         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
1164         * sysdeps/powerpc/bp-asm.h: Moved to...
1165         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
1166         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
1167         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
1168         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
1169         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
1170         * sysdeps/powerpc/dl-machine.c: Moved to...
1171         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
1172         * sysdeps/powerpc/dl-machine.h: Moved to...
1173         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
1174         * sysdeps/powerpc/dl-start.S: Moved to...
1175         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
1176         * sysdeps/powerpc/gprrest0.S: Moved to...
1177         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
1178         * sysdeps/powerpc/gprrest1.S: Moved to...
1179         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
1180         * sysdeps/powerpc/gprsave0.S: Moved to...
1181         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
1182         * sysdeps/powerpc/gprsave1.S: Moved to...
1183         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
1184         * sysdeps/powerpc/lshift.S: Moved to...
1185         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
1186         * sysdeps/powerpc/memset.S: Moved to...
1187         * sysdeps/powerpc/powerpc32/memset.S: ...here.
1188         * sysdeps/powerpc/mul_1.S: Moved to...
1189         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
1190         * sysdeps/powerpc/ppc-mcount.S: Moved to...
1191         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
1192         * sysdeps/powerpc/register-dump.h: Moved to...
1193         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
1194         * sysdeps/powerpc/rshift.S: Moved to...
1195         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
1196         * sysdeps/powerpc/setjmp.S: Moved to...
1197         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
1198         * sysdeps/powerpc/stpcpy.S: Moved to...
1199         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
1200         * sysdeps/powerpc/strchr.S: Moved to...
1201         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
1202         * sysdeps/powerpc/strcmp.S: Moved to...
1203         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
1204         * sysdeps/powerpc/strcpy.S: Moved to...
1205         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
1206         * sysdeps/powerpc/strlen.S: Moved to...
1207         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
1208         * sysdeps/powerpc/sub_n.S: Moved to...
1209         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
1210         * sysdeps/powerpc/submul_1.S: Moved to...
1211         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
1212         * sysdeps/powerpc/elf/bzero.S: Moved to...
1213         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
1214         * sysdeps/powerpc/elf/start.S: Moved to...
1215         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
1216         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
1217         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
1218         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
1219         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
1220         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
1221         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
1222         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
1223         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
1224         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
1225         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
1226         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
1227         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
1228         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
1229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
1230         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
1231         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
1232         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
1233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
1234         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
1235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
1236         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
1237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
1238         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
1239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
1240         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
1241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
1242         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
1243         powerpc/powerpc64.
1245 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
1247         * FAQ.in: Add powerpc64 to supported targets list. Also state the
1248         minimum gcc version is 3.2
1249         * README: Add powerpc64 to supported targets list.
1250         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
1251         Add powerpc64 and machine=powerpc/powerpc64.
1252         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
1253         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
1254         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
1255         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
1256         * sysdeps/powerpc/powerpc32/Dist: New file.
1257         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
1258         * sysdeps/powerpc/powerpc32/Implies: New file.
1259         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
1260         ($(with-fp) = no): Move test to powerpc32/Makefile.
1261         ($(subdir) = misc): Move to powerpc32/Makefile.
1262         ($(build-shared) = yes): Move to powerpc32/Makefile.
1263         ($(subdir) = csu): Move to powerpc32/Makefile.
1264         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
1265         * sysdeps/powerpc/powerpc32/Makefile: New file.
1266         * sysdeps/powerpc/Versions: Remove libgcc functions.
1267         * sysdeps/powerpc/powerpc32/Versions: New file.
1268         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
1269         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
1270         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
1271         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
1272         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
1273         ($machine): Add powerpc/powerpc64 to if ... | for
1274         libc_cv_slibdir=/libc64.
1275         (powerpc*): Set ldd_rewrite_script.
1276         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
1277         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
1278         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
1279         Add clone.S.
1280         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
1281         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
1282         functions.  Remove GLIBC_2.2 functions except getrlimit and
1283         setrlimit.  Moved them to ...
1284         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
1286 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
1288         * libio/tst-atime.c: Include <errno.h>.
1289         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
1291 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
1293         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
1294         warnings of some compilers.
1295         (build_collating_symbol): Change the type of characters from
1296         "unsigned char" to "char", and append a cast to "char*" pointer in
1297         array subscript.
1298         (build_collating_symbol): Likewise.
1299         (build_equiv_class): Likewise.
1300         (build_charclass): Likewise.
1301         (re_compile_pattern): Remove incorrect cast.
1302         (re_compile_fastmap_iter): Change the type of characters from
1303         "unsigned char" to "char", and append a cast to "char*" pointer
1304         in array subscript.
1305         (parse_bracket_exp): Likewise.
1306         * posix/regex_internal.c (re_string_construct_common): Likewise.
1307         (re_string_allocate): Likewise.
1308         (re_string_construct): Likewise.
1309         (re_string_realloc_buffers): Likewise.
1310         (build_wcs_buffer): Likewise.
1311         (re_string_reconstruct): Likewise.
1312         * posix/regex_internal.h: Change the type of characters in
1313         re_string_t and bracket_elem_t from "unsigned char" to "char".
1314         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
1315         warnings of some compilers.
1316         (transit_state_bkref_loop): Change the type of characters from
1317         "unsigned char" to "char", and append a cast to "char*" pointer in
1318         array subscript.
1319         (check_node_accept_bytes): Likewise.
1320         (find_collation_sequence_value): Likewise.
1322 2002-09-04  Roland McGrath  <roland@redhat.com>
1324         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
1325         from 1024 to 65536, to avoid buffer overrun.
1327 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
1329         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
1331 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
1333         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
1334         for filesystem.
1336 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
1338         * posix/bug-regex11.c: New test.
1339         * posix/Makefile (tests): Add bug-regex11.
1341 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
1343         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
1344         newlocale.
1346 2002-09-02  Roland McGrath  <roland@redhat.com>
1348         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
1349         __pthread_initialize_minimal and __libc_check_standard_fds to
1350         match the generic version.
1352         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
1353         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
1355         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
1356         warnings on platorms where char is unsigned.
1358 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
1360         * version.h (VERSION): Bump to 2.2.93.
1362         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
1364 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
1366         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
1367         as relocated.
1369 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
1371         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
1373 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
1375         * locale/localeinfo.h (struct locale_data): Add private.ctype.
1376         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
1377         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
1378         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
1379         (__wcsmbs_load_conv): Remove const from argument.
1380         (_nl_cleanup_ctype): New proto.
1381         (get_gconv_fcts): New function.
1382         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
1383         (__wcsmbs_to_wc): Rename back to...
1384         (to_wc): ... this.
1385         (__wcsmbs_gconv_fcts): Rename to...
1386         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
1387         (lock): Removed.
1388         (__libc_setlocale_lock): New extern.
1389         (__wcsmbs_load_conv): Remove const from argument.
1390         Initialize new_category->private.ctype instead of a global
1391         variable.
1392         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
1393         update_function_ptrs.  No locking is necessary.
1394         (_nl_cleanup_ctype): New function.
1395         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
1396         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
1397         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1398         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
1399         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
1400         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
1401         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
1402         * wcsmbs/wctob.c (wctob): Likewise.
1403         * stdlib/mblen.c (mblen): Likewise.
1404         * stdlib/mbtowc.c (mbtowc): Likewise.
1405         * stdlib/wctomb.c (wctomb): Likewise.
1406         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
1407         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
1408         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
1409         Removed.
1411 2002-09-02  Roland McGrath  <roland@frob.com>
1413         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
1415 2002-09-01  Roland McGrath  <roland@redhat.com>
1417         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
1418         Variable declarations removed.
1419         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
1420         these functions to replace them.
1421         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
1422         functions plus an indirection rather than the old global variables.
1423         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
1424         Macros removed.
1425         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
1426         inline functions.
1427         * ctype/ctype-info.c: Revert last reversion back the other way.
1428         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
1429         Define real function versions of include/ctype.h inlines here.
1430         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
1431         __ctype_tolower_loc, __ctype_toupper_loc.
1432         * locale/lc-ctype.c: Revert last reversion back the other way.
1433         (_nl_postload_ctype): If current thread uses the global locale,
1434         update its tsd vars.
1435         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
1436         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
1437         CTYPE_TOLOWER, CTYPE_TOUPPER.
1439         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
1440         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
1441         from __libc_tsd_threadvar_location.
1442         (__libc_tsd_set, __libc_tsd_get): Update uses.
1444 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
1446         * ctype/ctype.h: Undo the patch before the last one.  Put back the
1447         macro definitions for the standard functions to access the
1448         classification and mapping arrays.
1449         * include/ctype.h: Partly revert last patch.  Move the macro
1450         definitions for the exported functions back to the public header.
1451         #undef all the macros defined here before redefining.
1452         * ctype/ctype-info.c: Revert last patch.
1453         * locale/lc-ctype.c: Revert last patch.
1455         * ctype/Makefile (routines): Add isctype.
1456         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
1457         * ctype/ctype.h: Add declaration of isctype.
1458         * include/ctype.h: Declare __isctype.
1459         * ctype/isctype.c: New file.
1461 2002-09-01  Roland McGrath  <roland@redhat.com>
1463         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
1464         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1466         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1468         * locale/findlocale.c (_nl_remove_locale): Don't search in
1469         _nl_locale_file_list if DATA->alloc is ld_archive.
1470         Use _nl_unload_locale to do the rest of the work.
1472         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1473         of new structure to UNDELETABLE.
1475         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1476         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1477         towlower, towupper): Macros removed.
1478         * ctype/ctype.h (__tobody): Put parens around macro argument.
1479         (__isctype): Macro removed.
1480         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1481         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1482         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1483         tolower, toupper): Macros and inlines removed.
1484         * include/ctype.h [! NOT_IN_libc]
1485         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1486         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1487         tolower, toupper): Define here instead, using _NL_CURRENT.
1488         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1489         using _NL_CURRENT.
1490         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1491         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1492         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1493         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1494         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1495         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1496         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
1497         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1498         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1499         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1500         (ISSORTMASK): Update use.
1501         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1502         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1503         (_nss_files_getENTNAME_r): Likewise.
1504         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1505         Likewise.
1507         * Makerules (all-nonlib): Renamed from all-tests.
1508         Include $(others) here too.
1509         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1510         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1511         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1512         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1513         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
1514         the program modules via cppflags-iterator.mk.
1515         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1516         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1518 2002-08-31  Roland McGrath  <roland@redhat.com>
1520         * posix/tst-getconf.sh: If no third arg, work with static linking.
1522         * locale/categories.def (LC_TIME): No more _nl_postload_time.
1524         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1525         [_NL_CURRENT_INDIRECT].
1527 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1529         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1531 2002-08-31  Roland McGrath  <roland@redhat.com>
1533         * locale/newlocale.c (__newlocale): Don't use strdup for names.
1534         Instead, make the single allocation of the structure larger to hold
1535         the name strings.
1536         * locale/duplocale.c (__duplocale): Don't strdup names individually.
1537         Instead, calculate size for a single allocation and copy into it.
1538         * locale/freelocale.c (__freelocale): Don't free names individually.
1540         * locale/newlocale.c (__newlocale): Don't leak old data or names.
1542         * locale/xlocale.h (__locale_struct): Move __names member last,
1543         for binary compatibility.
1545         * locale/duplocale.c (__duplocale): Free names from the right array.
1547         * locale/uselocale.c (__uselocale): Return previous locale when
1548         setting a new one.
1550         * locale/newlocale.c: Commit changes from 2002-08-30
1551         batch where I failed to commit this file:
1552         (__newlocale): Fill in __names array.
1554 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1556         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1557         errlist-compat.c if versioning==yes.
1559 2002-08-31  Andreas Jaeger  <aj@suse.de>
1561         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1562         external functions with hidden attribute.
1563         (elf_machine_rela): Optimize.
1565         * sysdeps/x86_64/memset.S: New file.
1566         * sysdeps/x86_64/bzero.S: New file.
1567         * sysdeps/x86_64/stpcpy.S: New file.
1568         * sysdeps/x86_64/strcat.S: New file.
1569         * sysdeps/x86_64/strchr.S: New file.
1570         * sysdeps/x86_64/strcpy.S: New file.
1571         * sysdeps/x86_64/strcspn.S: New file.
1572         * sysdeps/x86_64/strlen.S: New file.
1573         * sysdeps/x86_64/strpbrk.S: New file.
1574         * sysdeps/x86_64/strspn.S: New file.
1575         * sysdeps/x86_64/strcmp.S: New file.
1576         * sysdeps/x86_64/strtok_r.S: New file.
1577         * sysdeps/x86_64/strtok.S: New file.
1578         * sysdeps/x86_64/memcpy.S: New file.
1579         * sysdeps/x86_64/mempcpy.S: New file.
1581         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1583         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1585 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1587         * stdio-common/Makefile (generated): Add errlist-compat.c.
1589         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1591         * locale/localeinfo.h: Pretty printing.
1593         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1594         form_number handling.
1596 2002-08-31  Andreas Jaeger  <aj@suse.de>
1598         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1599         double tests.
1601         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1602         __start_context.
1604         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1606         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1608         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1609         registers used for passing args.
1611         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1612         all needed registers.
1614         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1615         registers.
1617         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1618         registers.
1620 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
1622         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1623         always_inline attribute.
1625 2002-08-30  Roland McGrath  <roland@redhat.com>
1627         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1628         presume it's the stub and bail without error.
1630         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1631         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1633         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1635         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1636         macros replace the i686 versions for 64-bit mode.
1638         * locale/duplocale.c: Include <string.h>.
1640         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1641         [_LIBC] (category_to_name): Don't define the function.  Instead
1642         define a macro using _nl_category_names.
1644         * locale/xlocale.h (struct __locale_struct): New member `__names'.
1645         * locale/xlocale.c (_nl_C_locobj): Update initializer.
1646         * locale/global-locale.c (_nl_global_locale): Likewise.
1647         * locale/duplocale.c (__duplocale): strdup __names elements.
1648         * locale/freelocale.c (__freelocale): Free __names elements.
1649         * locale/localename.c (_nl_current_names): Variable removed.
1650         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1651         * locale/localeinfo.h (_nl_current_names): Removed decl.
1652         * locale/setlocale.c: Use _nl_global_locale->__names in place of
1653         _nl_current_names throughout.
1655         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1657         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1658         and sys_nerr in the output file.
1660         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1661         * scripts/cpp: Just use the environment variable.
1663         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1664         * libio/tst-mmap-offend.c (do_test): Likewise.
1665         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1666         * libio/tst-mmap-eofsync.c (do_test): Likewise.
1667         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1669         * locale/localename.c: If the current locale is the global locale, use
1670         _nl_current_names; otherwise use the locale object.
1672 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1674         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1675         'm' to enable mmap I/O.
1676         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
1677         former wasn't used (anymore?).
1678         (_IO_FLAGS2_MMAP): New define.
1679         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1680         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1681         _IO_FLAGS2_MMAP bit is set.
1682         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1683         Enable mmap-using mode only if 'm' was set.
1685 2002-08-29  Roland McGrath  <roland@frob.com>
1687         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1689         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1690         Change argument type from int to intptr_t.
1692         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1693         initializer on [! _HURD_THREADVAR_H] (bad kludge).
1694         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1695         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1696         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
1698         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1700         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1702         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1704         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1705         * assert/assert-perr.c: Add libc_hidden_def.
1706         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1708         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1709         found at all.
1710         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
1711         sys_errlist stuff to ...
1712         * sysdeps/unix/sysv/linux/Versions: ... here.
1714         * mach/mach.h: Include <features.h>.
1716 2002-08-29  Roland McGrath  <roland@redhat.com>
1718         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1719         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1720         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1722         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1724         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1725         (norm_add_slashes): alloca -> __alloca
1727 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
1729         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1730         string_malloced, it is unlikely to be set.
1731         Only call free with non-NULL workspace.
1732         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1733         -mcpu=ultrasparc, not only tune for it.
1734         (ASFLAGS*): Set unconditionally.
1736         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1737         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
1738         p_vaddr/p_offset when computing LOADADDR.
1740 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1742         * version.h (VERSION): Bump to 2.2.92.
1744         * time/Makefile (tst-ftime_l-ENV): New variable.
1746         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1748         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1749         <U017A>, <U017D> and <U0179>. Add missing mappings.
1750         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1752         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1753         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
1754         (struct tostruct): Use ACRINDEX as type for link field.
1755         (statuc gmonparam): Likewise for froms.
1756         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1757         kcount and froms.
1758         (write_call_graph): Use correct type for from_index and to_index.
1759         * gmon/mcount.c: Use correct types for frompcindex and toindex
1760         variables.
1761         Patches by Dan Kegel <dank@kegel.com>.
1763         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1764         canonical name.
1766         * time/strptime.c (ISSPACE): New #define.  Use isspace or
1767         __isspace_l.  Replace calls to isspace.
1768         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1770 2002-08-29  Roland McGrath  <roland@redhat.com>
1772         * string/tst-strxfrm.c: Remove __ from function names.
1774 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1776         * include/wchar.h: Declare __mbsrtowcs_l.
1777         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1778         * wcsmbs/mbsrtowcs.c: Add support for compilation with
1779         USE_IN_EXTENDED_LOCALE_MODEL.
1780         * wcsmbs/mbsrtowcs_l: New file.
1781         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
1782         define as static.  Change all uses.
1783         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
1784         Change all callers.
1785         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1786         * time/strftime.c: When translating for the extended locale model
1787         use the _l functions.
1788         * time/Makefile (tests): Add tst-ftime_l.
1789         * time/tst-ftime_l.c: New file.
1791 2002-08-28  Roland McGrath  <roland@redhat.com>
1793         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1794         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1795         from _nl_find_locale ok if for _nl_C_name.
1797         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1798         iterator to refer to each category's _nl_current_LC_FOO symbol, so
1799         we know they are all linked in.
1801         * NEWS: Added 2.2.6 text from 2.2 branch version.
1803         * time/strptime.c (strptime_internal): Remove spurious const.
1805         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1806         _nl_select_era_entry): Moved to ...
1807         * time/era.c: ... here, new file.
1808         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1809         Add internal_function to definitions.  Take an additional argument
1810         giving the `struct locale_data *' to use.
1811         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1812         _nl_parse_alt_digit): Moved to ...
1813         * time/alt_digit.c: ... here, new file.
1814         * time/lc-time-cleanup.c: New file.
1815         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1816         * locale/localeinfo.h (_nl_postload_time): Remove decl.
1817         (_nl_cleanup_time): Declare it.
1818         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1819         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1820         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1821         * time/strftime.c: Pass locale data to helper functions.
1822         * time/strptime.c: Likewise.
1824         * locale/localeinfo.h (struct locale_data): New member `private'
1825         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1826         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1827         * locale/C-collate.c: Update initializer.
1828         * locale/C-identification.c: Likewise.
1829         * locale/C-measurement.c: Likewise.
1830         * locale/C-telephone.c: Likewise.
1831         * locale/C-address.c: Likewise.
1832         * locale/C-name.c: Likewise.
1833         * locale/C-paper.c: Likewise.
1834         * locale/C-time.c: Likewise.
1835         * locale/C-numeric.c: Likewise.
1836         * locale/C-monetary.c: Likewise.
1837         * locale/C-messages.c : Likewise.
1838         * locale/C-ctype.c: Likewise.
1840         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1841         Redefine this too.
1843 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1845         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1846         (_rtld_global): Use it.
1848         * sysdeps/gnu/Dist: Remove errlist-compat.c.
1849         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1850         object directory.  Pass all Versions files to the awk script.
1851         * sysdeps/gnu/errlist-compat.c: Removed.
1852         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1853         first Versions file in the search path which has them.
1854         Allow multiple errlist symbol versions to have the same count of
1855         errors.
1856         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1857         of "errlist-compat.c".
1858         * sysdeps/gnu/errlist.c: Regenerated.
1859         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1860         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1861         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1862         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1863         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1864         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1865         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1866         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1867         ECANCELLED if not defined by kernel headers.
1868         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1869         already defined by kernel headers.
1870         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1871         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1872         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1873         is a macro.
1874         * Versions.def (GLIBC_2.3) [librt]: Add.
1876         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1878 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1880         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1881         missing comma to .type directive.
1883 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1885         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1886         unconditionally.
1887         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1888         check.
1889         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1891 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1893         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1894         check to close_and_out close.  Replace return NULL statements where
1895         fd might be >= 0 with goto close_and_out.  Close the file descriptor
1896         when it is no longer needed.
1898 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1900         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1901         string constants.
1902         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1903         * sysdeps/arm/dl-machine.h: Likewise.
1904         * sysdeps/cris/dl-machine.h: Likewise.
1905         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1906         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1908 2002-08-28  Roland McGrath  <roland@redhat.com>
1910         * Makeconfig (default_cflags): Revert unintended change.
1912 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1914         * version.h (VERSION): Bump to 2.2.91.
1916         * configure.in: Disable TLS support by default for now.
1918         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
1920         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
1921         warnings.
1923         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
1925         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
1926         fprintf/fwprintf calls.
1928 2002-08-28  Roland McGrath  <roland@redhat.com>
1930         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
1931         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
1933         * locale/setlocale.c: Declare postload functions weak.
1935         * elf/tst-tls1-static.c: New file.
1936         * elf/tst-tls2-static.c: New file.
1937         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
1939         Make uselocale support static linking.
1940         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
1941         This file again just defines _nl_C_locobj.
1942         (_nl_C_locobj): Use a categories.def iterator in the initializer.
1943         * locale/global-locale.c: New file.  Define _nl_global_locale here,
1944         using all weak references in the initializer.
1945         * locale/Makefile (aux): Add global-locale.
1946         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
1947         these unconditional, along with the tsd decl.
1948         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
1949         Define it under these conditions.
1950         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
1951         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
1952         `extern __thread struct locale_data *const *'.
1953         [NL_CURRENT_INDIRECT]
1954         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
1955         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
1956         the thread variable _nl_current_LC_FOO and also a special absolute
1957         symbol _nl_current_LC_FOO_used.
1958         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
1959         Set each _nl_current_LC_FOO symbol to point into the new locale,
1960         using weak references to test if _nl_current_LC_FOO_used was linked in.
1961         * locale/setlocale.c [! SHARED]: Replace this conditional ...
1962         [NL_CURRENT_INDIRECT]: ... with this one.
1963         (_nl_current, _nl_C): Variables removed.
1964         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
1965         weak references to _nl_current_LC_FOO_used.
1966         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
1967         (free_category): New function, broken out of ...
1968         (free_mem): ... here.  Call that.
1969         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
1970         instead of a loop.
1972         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
1973         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
1974         it is already absolute.
1976         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
1977         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
1978         [$(build-static) = yes] (tests-static): New variable.
1979         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
1981 2002-08-26  Christoph Hellwig  <hch@lst.de>
1983         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
1984         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
1986 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1988         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
1990         * sysdeps/s390/Dist: Add bits/link.h.
1992         * sysdeps/sh/Dist: New file.
1994         * sysdeps/ia64/Dist: Add ia64libgcc.S.
1996         * sysdeps/wordsize-32/Dist: New file.
1998         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
1999         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
2000         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
2002         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
2003         sys/personality.h.
2005         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
2006         sparc/dl-brk.S.
2008         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
2010         * sysdeps/unix/bsd/sun/Dist: New file.
2012         * sysdeps/unix/bsd/osf/Dist: New file.
2014         * sysdeps/unix/bsd/hp/Dist: New file.
2016         * sysdeps/unix/arm/Dist: New file.
2018         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
2020         * sysdeps/mach/hurd/Dist: Add set-init.c.
2022         * sysdeps/i386/Dist: Add bits/link.h.
2024         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
2026         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
2028         * locale/Makefile (distribute): Add hashval.h.
2030         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
2032         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
2034         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
2035         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
2036         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
2037         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
2038         implementations.
2039         * libio/stdio.h: Likewise.
2040         * locale/locale.h: Likewise.
2041         * math/math.h: Likewise.
2042         * math/bits/mathcalls.h: Likewise.
2043         * setjmp/setjmp.h: Likewise.
2044         * signal/signal.h: Likewise.
2045         * stdlib/stdlib.h: Likewise.
2046         * string/string.h: Likewise.
2047         * time/time.h: Likewise.
2048         * wcsmbs/wchar.h: Likewise.
2049         * wctype/wctype.h: Likewise.
2051 2002-08-28  Roland McGrath  <roland@redhat.com>
2053         * locale/tst-C-locale.c (run_test): Remove __ from function names.
2055 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2056             Roland McGrath <roland@redhat.com>
2058         * locale/hashval.h (compute_hashval): Use prototype defn.
2059         (hashval_t): New macro, defined to unsigned long int
2060         if not already defined.
2061         (compute_hashval): Return hashval_t instead of unsigned long int.
2062         * locale/loadarchive.c (hashval_t): New macro.
2063         * locale/programs/locarchive.c: Include hashval.h directly instead
2064         of simple-hash.h.
2065         (compute_hashval, hashval_t): Define these macros first.
2066         (insert_name): Use archive_hashval instead of compute_hashval.
2067         (add_locale, delete_locales_from_archive): Likewise.
2069 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2071         * locale/programs/locarchive.c (insert_name): Suppress warnings about
2072         hash collisions if be_quiet.
2074 2002-08-27  Roland McGrath  <roland@redhat.com>
2076         * locale/locale.h (__newlocale, __duplocale, __freelocale,
2077         __uselocale): Don't declare these any more.
2078         * include/locale.h (__uselocale): Declare here instead, using __typeof.
2080         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
2081         and treat it as an EOF return.
2082         * sysdeps/unix/readdir_r.c: Likewise.
2084         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
2085         From Alexandre Oliva <aoliva@redhat.com>.
2086         * sysdeps/gnu/errlist-compat.c: Regenerated.
2088 2002-08-27  Brian Youmans  <3diff@gnu.org>
2090         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
2091         wording at request of copyright holder Stephen Moshier.
2092         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2093         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2094         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2095         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2096         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2097         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2098         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2099         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2100         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2101         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2102         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2103         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2104         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2105         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2107 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2109         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
2110         * ctype/ctype-extn.c (isblank_l): Add weak alias.
2111         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
2112         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
2113         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
2114         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
2115         * wctype/iswctype_l.c (iswctype_l): Likewise.
2117 2002-08-27  Roland McGrath  <roland@redhat.com>
2119         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
2121         * ctype/ctype.h (__exctype_l): Don't declare __ name.
2122         * stdlib/stdlib.h: Don't declare __*_l names.
2123         * include/stdlib.h: Declare them here instead.
2124         * include/string.h: Don't declare __*_l names.
2125         * string/string.h: Declare them here instead.
2126         * time/time.h: Don't declare __*_l names.
2127         * include/time.h: Declare them here instead.
2128         * wcsmbs/wchar.h: Don't declare __*_l names.
2129         * include/wchar.h: Declare them here instead.
2130         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
2131         Don't declare __*_l names.
2132         * include/wctype.h: Declare them here instead.
2133         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
2134         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
2135         * locale/langinfo.h: Don't declare __nl_langinfo_l.
2136         * include/langinfo.h: Declare it here with __typeof.
2138         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
2139         instead, taking an extra __locale_t argument.
2140         * time/Makefile (routines): Add strptime_l.
2141         * time/time.h (__strptime_l, strptime_l): Declare them.
2142         * time/strptime_l.c: New file.
2144         * time/time.h (__strftime_l, strftime_l): Declare them.
2145         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
2146         * time/strftime_l.c: New file.
2147         * time/wcsftime_l.c: New file.
2148         * time/Makefile (routines): Add strftime_l, wcsftime_l.
2149         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
2150         strftime_l, wcsftime_l.
2151         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
2152         or __wcsftime_l instead, taking an extra __locale_t argument.
2154         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
2155         (libc: GLIBC_2.3): ... here.
2157 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
2159         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
2161         * Makefile (distribute): Add LICENSES.
2163         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
2164         sys/debugreg.h.
2166         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
2168         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
2170         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
2172         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
2174         * sysdeps/mach/hurd/alpha/Dist: New file.
2176         * sysdeps/arm/Dist: Add bits/link.h.
2178         * sunrpc/Makefile: Distribute thrsvc.
2180         * stdio-common/Makefile: Remove more left-overs from old stdio.
2182         * include/linewrap.h: Removed.
2184         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
2186         * intl/Makefile (distribute): Add plural-eval.c.
2188 2002-08-27  Roland McGrath  <roland@redhat.com>
2190         * manual/sysinfo.texi (Mount Information): Correct file name to macro
2191         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
2192         Say mtab is in either /var/run or /etc.
2194 2002-08-26  Roland McGrath  <roland@redhat.com>
2196         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
2197         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
2199         * sysdeps/gnu/Versions: New file.
2200         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
2201         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
2202         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
2203         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
2204         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
2205         and _sys_nerr_internal instead of anything else.  Make it include
2206         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
2207         Make it emit some asm magic if [EMIT_ERR_MAX].
2208         * sysdeps/gnu/errlist.c: Regenerated.
2209         * sysdeps/gnu/errlist-compat.awk: New file.
2210         * sysdeps/gnu/errlist-compat.c: New file (generated).
2211         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
2212         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
2213         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
2214         (SYS_ERRLIST, SYS_NERR): Macros removed.
2215         (sys_nerr, _sys_nerr): Remove these weak aliases.
2216         * sysdeps/unix/sysv/linux/errlist.c: File removed.
2217         * sysdeps/unix/sysv/linux/errlist.h: File removed.
2218         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
2220         * include/libc-symbols.h (declare_symbol): New macro.
2221         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
2222         * configure.in: New check to define it.
2223         * configure: Regenerated.
2225 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
2227         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
2228         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
2230         * Make-dist: Remove traces of old stdio.
2231         * Makeconfig: Likewise.
2233         * locale/Makefile (localedef-aux): New variable.  Only md5
2234         assigned to it.  These files are not ddistributed in this directory.
2236         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
2237         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
2238         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
2240         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
2242         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
2243         set h_errno to NO_RECOVERY [PR libc/4360].
2245 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2247         * libio/Makefile (tests): Add bug-fopena+.
2248         * libio/bug-fopena+.c: New file.
2249         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
2250         file for _IO_IS_APPENDING if file isn't opened for reading, too.
2252         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
2254         * locale/xlocale.c: Fix the last change.  The variable still has
2255         to end in _data.
2256         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
2257         (__libc_tsd_set): Add _data prefix to variable name.
2259 2002-08-26  Roland McGrath  <roland@redhat.com>
2261         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
2262         macro with inline function.
2263         (sigset_get_old_mask): Likewise.
2264         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
2265         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2266         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2267         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
2268         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
2269         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
2270         values.
2271         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
2272         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
2274 2002-07-06  Bruno Haible  <bruno@clisp.org>
2276         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
2277         sigset_get_old_mask): Make it work with larger sigset_t.
2278         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
2279         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2280         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2282 2002-08-26  Roland McGrath  <roland@redhat.com>
2284         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
2285         * manual/filesys.texi (File Times): Document lutimes and futimes.
2286         * misc/Makefile (routines): Add them.
2287         * misc/Versions (libc: GLIBC_2.3): Likewise.
2288         * sysdeps/generic/lutimes.c: New file.
2289         * sysdeps/generic/futimes.c: New file.
2290         * sysdeps/mach/hurd/lutimes.c: New file.
2291         * sysdeps/mach/hurd/futimes.c: New file.
2293         * manual/filesys.texi (File Times): Add explicit note about null
2294         pointer argument to utimes.
2296 2002-08-26  Roland McGrath  <roland@frob.com>
2298         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
2299         (__ifreq): Add a cast.  Remove an unused variable.
2301         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
2302         _HURD_THREADVAR_LOCALE.
2304 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
2306         * posix/regexec.c (re_search_stub): Return correct match length
2307         if start != 0.
2308         * posix/bug-regex10.c: New test.
2309         * posix/Makefile (tests): Add bug-regex10.
2311 2002-08-26  Brian Youmans  <3diff@gnu.org>
2313         * COPYING.LIB: Replaced with fresh copy from
2314         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
2315         suggested copying permission notice now says version 2.1 instead
2316         of version 2.
2318         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
2319         from Library GPL.
2320         * crypt/crypt_util.c: Likewise.
2321         * crypt/ufc.c: Likewise.
2322         * elf/dl-conflict.c: Likewise.
2323         * elf/dl-iteratephdr.c: Likewise.
2324         * iconv/iconvconfig.h: Likewise.
2325         * malloc/arena.c: Likewise.
2326         * malloc/hooks.c: Likewise.
2327         * malloc/malloc.c: Likewise.
2328         * posix/glob/Makefile.ami: Likewise.
2329         * posix/glob/Makefile.in: Likewise.
2330         * stdlib/gmp-impl.h: Likewise.
2331         * stdlib/gmp.h: Likewise.
2332         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
2333         * sysdeps/generic/strnlen.c: Likewise.
2334         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
2335         * sysdeps/mach/hurd/recvmsg.c: Likewise.
2336         * sysdeps/mach/hurd/sendmsg.c: Likewise.
2337         * sysdeps/mach/hurd/spawni.c: Likewise.
2338         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
2339         * sysdeps/mach/powerpc/sysdep.h: Likewise.
2340         * sysdeps/mach/powerpc/thread_state.h: Likewise.
2341         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
2342         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
2343         * sysdeps/x86_64/gmp-mparam.h: Likewise.
2345         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
2346         Lesser GPL copying permission notice from 2 to 2.1.
2347         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
2348         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
2349         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2350         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
2351         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2352         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2353         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2354         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2355         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2356         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2357         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2358         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2359         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2360         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2361         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2362         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2363         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2364         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2365         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2366         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2367         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2368         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2369         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2370         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2371         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2372         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2373         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2374         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2375         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2376         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2377         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2378         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2379         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2380         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2381         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2382         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2383         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2384         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2385         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2386         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2387         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2388         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2389         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2390         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2391         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2392         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2393         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2394         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2395         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2396         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2397         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2398         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2399         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2400         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2401         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2403         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
2404         Moshier and Lesser GPL copying permission notice, per license from
2405         Moshier.
2406         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2407         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2408         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2409         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2410         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2411         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2412         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2413         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2414         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2415         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2416         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2417         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2418         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2419         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2421         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
2422         notice, per license from copyright holder Stephen Moshier.
2423         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2424         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2425         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2426         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2427         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2428         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2429         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2430         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2431         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2433 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2435         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
2436         (shared-only-routines): Likewise.
2438 2002-08-26  Roland McGrath  <roland@redhat.com>
2440         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
2441         name of "", store a null pointer instead.
2443         * configure.in (elf): Set to yes for freebsd*, netbsd*.
2444         * configure: Regenerated.
2446         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
2447         Initialize this instead of __libc_tsd_LOCALE_data.
2449         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
2450         ptsname_r to EINVAL.
2452         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
2454         * rt/Makefile: Revert last change, it was inappropriate to presume aio
2455         implementations depend on pthreads.
2456         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
2457         * rt/tst-aio64.c (do_test): Likewise.
2458         * rt/tst-aio2.c (do_test): Likewise.
2459         * rt/tst-aio3.c (do_test): Likewise.
2460         * rt/tst-aio4.c (do_test): Likewise.
2461         * rt/tst-aio5.c (do_test): Likewise.
2462         * rt/tst-aio6.c (do_test): Likewise.
2463         * rt/tst-aio7.c (do_test): Likewise.
2465         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2466         void so as to avoid compiler warnings.
2468         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2469         _IO_wide_data_FD, which is never used here.
2471         * libio/iofread.c
2472         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2473         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2474         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2476         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2477         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2479         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2480         (closelog): Likewise.
2482 2002-07-06  Bruno Haible  <bruno@clisp.org>
2484         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2486         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2487         * sysdeps/unix/alpha/pipe.S: ... here.
2488         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2490         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2492         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2493         * sysdeps/unix/i386/fork.S: Likewise.
2494         * sysdeps/unix/i386/pipe.S: Likewise.
2495         * sysdeps/unix/i386/wait.S: Likewise.
2497         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2498         * sysdeps/unix/arm/fork.S: Likewise.
2500         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2501         arguments.
2502         (DO_CALL): Swap argument order.
2503         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2504         arguments.
2505         (DO_CALL): Swap argument order.
2506         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2507         arguments.
2508         (DO_CALL): Swap argument order.
2509         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2510         arguments.
2511         (DO_CALL): Swap argument order.
2512         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2513         arguments.
2514         (DO_CALL): Swap argument order.
2515         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2516         arguments.
2517         (DO_CALL): Swap argument order.
2518         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2519         arguments.
2520         (DO_CALL): Swap argument order.
2522         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2523         (L): Define right for ELF.
2524         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2525         Now defined in sysdeps/i386/sysdep.h.
2527         * sysdeps/posix/readv.c: Ansify function definition.
2528         * sysdeps/posix/writev.c: Likewise.
2530         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2531         have the same size. Avoid direct cast from size_t to off_t.
2533         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2534         nul byte in entry[n].ut_user.
2535         (simulate_logout): Likewise.
2537         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2538         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2539         existence of corresponding members of 'struct utmp'.
2540         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2541         !_HAVE_UT_TYPE.
2543         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2544         allocate a buffer of at least BUFSIZ bytes, not just of
2545         sizeof (struct dirent).
2547         * sysdeps/generic/glob.c: Include <limits.h>.
2548         (NAME_MAX): Define a fallback.
2549         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2550         stack.
2551         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2552         (main): Allocate enough room for a 'struct dirent64' on the stack.
2553         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2554         'struct dirent'.
2556         * sysdeps/unix/sysv/linux/init-first.c: Don't include
2557         kernel-features.h.
2559         * inet/htontest.c: Include <sys/types.h>.
2561         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2563         * include/sys/sysctl.h: Comment fix.
2565         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2566         _dl_load_lock.
2567         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2569         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2571         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2572         (__getpeername): New alias.
2573         (__getsockname): New alias.
2574         (__socket): New alias.
2576         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2578         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2579         (__fcntl_internal): New alias.
2580         (__profil): New alias.
2582 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2584         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2585         entry was for getaddr* lookup or not.  Add only matching cache
2586         entry.  Change all callers [PR libc/4317].
2588         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2589         finding the read position [PR libc/4265].
2590         * libio/Makefile (tests): Add bug-rewind2.
2591         * libio/bug-rewind2.c: New file.
2593         * libio/bug-rewind.c: Fix creation of temp file.
2595 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2597         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2598         neither SUCCESS nor TRYAGAIN [PR libc/4259].
2599         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2600         to ENOENT if no entry is found.
2601         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2602         failure.
2603         * nis/nss_compat/compat-initgroups.c: Likewise.
2604         * nis/nss_compat/compat-pwd.c: Likewise.
2605         * nis/nss_compat/compat-spwd.c: Likewise.
2606         * nis/nss_nis/nis-alias.c: Likewise.
2607         * nis/nss_nis/nis-ethers.c: Likewise.
2608         * nis/nss_nis/nis-grp.c: Likewise.
2609         * nis/nss_nis/nis-hosts.c: Likewise.
2610         * nis/nss_nis/nis-initgroups.c: Likewise.
2611         * nis/nss_nis/nis-netgrp.c: Likewise.
2612         * nis/nss_nis/nis-network.c: Likewise.
2613         * nis/nss_nis/nis-proto.c: Likewise.
2614         * nis/nss_nis/nis-publickey.c: Likewise.
2615         * nis/nss_nis/nis-pwd.c: Likewise.
2616         * nis/nss_nis/nis-rpc.c: Likewise.
2617         * nis/nss_nis/nis-service.c: Likewise.
2618         * nis/nss_nis/nis-spwd.c: Likewise.
2619         * resolv/nss_dns/dns-host.c: Likewise.
2620         * resolv/nss_dns/dns-network.c: Likewise.
2621         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2622         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2623         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2624         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2625         * nis/nss_nisplus/nisplus-network.c: Likewise.
2626         * nis/nss_nisplus/nisplus-proto.c: Likewise.
2627         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2628         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2629         * nis/nss_nisplus/nisplus-service.c: Likewise.
2630         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2631         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2632         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2633         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2634         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2636         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2637         declaring __restore and __restore_rt as hidden (if possible).
2639 2002-08-25  Roland McGrath  <roland@redhat.com>
2641         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2643         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2644         (getutent_r_file, internal_getut_r): Updated all callers.
2645         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2647 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2649         * locale/programs/locale.c: Don't print aliases for non-existing
2650         locales for 'locale -a'.
2651         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2653 2002-07-19  H.J. Lu  <hjl@gnu.org>
2655         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2657 2002-07-16  H.J. Lu  <hjl@gnu.org>
2659         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2660         sys/personality.h.
2661         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2663 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2665         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2666         not moved ahead of the fputs call.
2667         * elf/tst-tlsmod2.c (in_dso): Likewise.
2668         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2669         * elf/tst-tlsmod4.c (in_dso): Likewise.
2671 2002-08-25  Andreas Schwab  <schwab@suse.de>
2673         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2675 2002-08-25  Roland McGrath  <roland@redhat.com>
2677         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2678         resetting handler, to avoid the possibility of a spurious SIGALRM
2679         delivered to the user's handler.
2680         Reported by Amit D. Chaudhary <amitc@brocade.com>,
2682         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
2683         set -fkeep-inline-functions, which is not needed for the current file.
2685         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2686         (_dl_setup_hash): Add attribute_hidden.
2687         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2688         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2689         (_dl_new_object, _dl_map_object_deps): Likewise.
2690         (_dl_map_object_deps_internal): Remove decl.
2691         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2693         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2694         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2695         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2696         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2697         instead relying on the compiler to produce only GOTOFF variable refs.
2699 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2701         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
2703         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2704         inline to avoid defining it in every file which includes this header.
2706         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2707         defining DONT_USE_BOOTSTRAP_MAP.
2709         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2710         * libio/tst-mmap-setvbuf.c (main): Likewise.
2711         * libio/tst-widetext.c (main): Likewise.
2713         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2714         message.
2715         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2716         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2718         * sysdeps/i386/elf/configure.in: Unconditionally define
2719         PI_STATIC_AND_HIDDEN.
2720         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2721         PI_STATIC_AND_HIDDEN is defined as well.
2722         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2724 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
2726         * sysdeps/ia64/bzero.S: Define __bzero as well.
2728         * locale/programs/charmap.c (charmap_new_char): Don't use
2729         ULONG_MAX as maximum UCS4 value.
2731         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2733         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2735         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2736         * malloc/malloc.c (mALLINFo): Likewise.
2738         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2740         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2741         examining result of _IO_do_flush call.
2743         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2744         Use prec not spec when sizing buffers.
2746         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2747         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2748         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2749         * stdio-common/vfscanf.c (inchar): Likewise.
2750         * misc/efgcvt_r.c (fcvt_r): Likewise.
2751         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2752         * elf/readlib.c (process_file): Likewise.
2753         * elf/sprof.c (load_profdata): Likewise.
2754         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2755         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2756         * locale/programs/charmap.c (charmap_read): Likewise.
2757         * libio/fileops.c: Likewise.
2758         * libio/fmemopen.c: Likewise.
2759         * stdlib/strtod.c: Likewise.
2760         * elf/dl-load.c: Likewise.
2761         * iconv/iconvconfig.c: Likewise.
2762         * iconv/iconv_prog.c (process_block): Likewise.
2763         * elf/rtld.c (dl_main): Likewise.
2765         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2766         macro to calm down the compiler.
2768         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2770         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2772         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2773         placement of errno definition.
2774         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2775         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2776         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2777         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2778         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2780         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2781         from 1024 to 65536, to avoid buffer overrun.
2783 2002-08-16  Paul Eggert  <eggert@twinsun.com>
2785         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2786         from 1024 to 65536, to avoid buffer overrun.
2787         * resolv/res_query.c (MAXPACKET): Likewise.
2789 2002-08-24  Andreas Jaeger  <aj@suse.de>
2791         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2793 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
2795         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2796         two52 locally.
2797         (log2): Likewise.
2798         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2799         Patch by Simon Gee <simong@agile.tv>.
2801         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2802         Prefer reading /proc/stat since it is more uniform across
2803         architectures.
2805         * manual/texinfo.tex: Update to latest official version.
2807         * sysvipc/sys/shm.h: Remove SHMLBA definition.
2808         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2809         * sysdeps/gnu/bits/shm.h: Likewise.
2810         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2811         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2812         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2813         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2814         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2815         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2816         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2817         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2818         since this is what the kernel says.
2820         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2821         since ssize_t is needed as well.  Replace const with __const.
2823 2002-08-23  Roland McGrath  <roland@redhat.com>
2825         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2826         __malloc_hook, __realloc_hook, __memalign_hook,
2827         __after_morecore_hook): Variable definitions moved to ...
2828         * malloc/malloc.c: ... here, so as to be before all references.
2830         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2831         global variable reference in an unused asm parameter, to ensure the
2832         compiler has set up the GOT register before we use it.
2834         * malloc/hooks.c: Move variable definitions ahead of uses.
2835         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2836         initializers that make reference to variables they define.
2838 2002-08-23  Andreas Jaeger  <aj@suse.de>
2840         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2841         alloca, free, qsort.
2843         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2845         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2846         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2848         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2849         <hch@lst.de>.
2850         * sysdeps/generic/fgetxattr.c: New file.
2851         * sysdeps/generic/flistxattr.c: New file.
2852         * sysdeps/generic/fremovexattr.c: New file.
2853         * sysdeps/generic/fsetxattr.c: New file.
2854         * sysdeps/generic/getxattr.c: New file.
2855         * sysdeps/generic/listxattr.c: New file.
2856         * sysdeps/generic/lgetxattr.c: New file.
2857         * sysdeps/generic/llistxattr.c: New file.
2858         * sysdeps/generic/lremovexattr.c: New file.
2859         * sysdeps/generic/lsetxattr.c: New file.
2860         * sysdeps/generic/removexattr.c: New file.
2861         * sysdeps/generic/setxattr.c: New file.
2862         * misc/Makefile (headers): Add sys/xattr.h.
2863         (routines): Add *xattr calls.
2864         * misc/Versions: Add *xattr calls with version 2.3.
2865         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2866         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2867         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2868         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2869         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2870         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2871         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2872         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2874 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
2876         * sysdeps/powerpc/elf/libc-start.c
2877         (__cache_line_size): Declare.
2878         (__aux_init_cache): New function.
2879         (__libc_start_main): Change type of `auxvec' parameter to
2880         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
2881         __aux_init_cache.
2882         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2883         (__cache_line_size): Declare.
2884         (__aux_init_cache): New function.
2885         (DL_PLATFORM_INIT): Define.
2886         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2887         value to select the correct stride for dcbz.
2889 2002-08-22  Andreas Jaeger  <aj@suse.de>
2891         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2892         shmat.
2894 2002-08-22  Roland McGrath  <roland@redhat.com>
2896         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2897         position indicated by locrectab against file bounds before rounding to
2898         page size.  In mapping loop, always set TO before breaking out of
2899         contiguous range coalescing loop.
2901         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2902         (or MAP_COPY if available) instead of MAP_SHARED.
2904         * scripts/firstversions.awk: When encountering a version newer than
2905         the specified earliest version, be sure to emit the specified earliest
2906         version first if any renaming of an older version to that has been.
2908 2002-08-21  Roland McGrath  <roland@redhat.com>
2910         * configure.in: Make GCC version check require 3.[2-9]* and no others.
2911         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2912         (Configuring and compiling): Don't mention older GCC versions any more.
2913         * INSTALL: Regenerated.
2915         * manual/install.texi (Configuring and compiling, Installation,
2916         Running make install, Linux): Linux -> GNU/Linux where appropriate.
2918         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
2919         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
2920         and with noinline otherwise.  Remove hack alloca use to prevent
2921         inlining, we can ask for it explicitly nowadays.
2923         * dlfcn/bug-dlsym1.c: New file.
2924         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
2925         * dlfcn/Makefile (distribute): Add them.
2926         (tests): Add bug-dlsym1 here.
2927         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
2928         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
2929         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
2931 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
2933         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
2934         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
2935         before relocation.
2936         (_dl_start): Don't use local bootstrap_map variable if
2937         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
2938         pass bootstrap_map to _dl_start_final in this case either.  Don't
2939         pass start_time to _dl_start_final ever.
2940         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
2942         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
2943         This cripples the scope lists necessary to search for symbols in
2944         dependencies which are not in the global scope.
2946         * include/setjmp.h (__libc_longjmp): Add declaration.
2948 2002-08-21  Andreas Jaeger  <aj@suse.de>
2950         * sysdeps/x86_64/_mcount.S: Fix assembler.
2952         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
2953         with biarch support.
2955 2002-08-21  Andreas Jaeger  <aj@suse.de>
2957         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
2959         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
2961         * sysdeps/x86_64/machine-gmon.h: New file.
2962         * sysdeps/x86_64/_mcount.S: New file.
2964 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
2966         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
2967         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
2968         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
2969         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
2970         to TL_INIT_TP.  Otherwise pass 1.
2971         * include/link.h (struct link_map): Add l_tls_tp_initialized.
2972         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
2974 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
2976         * locale/programs/localedef.c (add_to_readlist): Error about
2977         circular dependencies only if the locale in question hasn't
2978         been finished.
2979         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
2980         CTYPE_LOCALE to load_locale.
2981         * locale/programs/locfile.c (locfile_read): Don't include
2982         unneeded but available locales in locale_mask.
2984         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
2985         print any messages about enlarging archive.
2987 2002-08-20  Brian Youmans  <3diff@gnu.org>
2989         * manual/contrib.texi: Removed licenses, added acknowledgements
2990         for contributions by Intel, IBM, Craig Metz.
2991         * LICENSES: New file, contains the text of all non-FSF licenses in the
2992         distribution that require putting the notice in the accompanying
2993         documentation.
2994         * README.template, README: Mention LICENSES.
2996         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
2997         new one modelled on the modern BSD license, per recent letter
2998         of permission from CMU.
2999         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
3001         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
3002         from IBM to FSF, per the recent Software Letter.  Changed the
3003         distribution terms from GPL to LGPL.
3005         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
3006         copying permission notice (Lesser GPL), per recent IBM Software Letter.
3007         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
3008         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
3009         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
3010         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
3011         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
3012         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
3013         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
3014         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
3016         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
3017         from IBM to FSF, per the recent Software Letter.  Corrected the
3018         text of the copying permission notice to say Lesser GPL instead
3019         of GPL in warranty disclaimer paragraph.
3020         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
3021         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
3022         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
3023         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
3024         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
3025         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
3026         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
3027         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
3028         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
3029         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
3030         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
3031         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
3032         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
3033         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
3034         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
3035         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
3036         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
3037         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
3038         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
3039         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
3040         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
3042         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
3043         permission notice to say Lesser GPL instead of GPL in warranty
3044         disclaimer paragraph.
3045         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
3046         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3047         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3048         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3049         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3050         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3051         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3052         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3053         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3054         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3055         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
3056         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
3057         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
3058         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
3059         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
3060         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
3061         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
3062         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3063         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3064         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3065         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
3066         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
3067         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
3069 2002-08-20  Roland McGrath  <roland@redhat.com>
3071         Fix ABI compatibility with libc compiled with old tools on powerpc.
3072         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3073         and Jack Howarth <howarth@bromo.med.uc.edu>.
3074         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
3075         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
3076         pass -DHAVE_DOT_HIDDEN for these files.
3077         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
3078         __floatdisf.
3079         * sysdeps/powerpc/divdi3.c: New file.
3080         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
3081         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
3083 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
3085         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
3086         partially overlapping mappings.  Remove unneeded (char *) casts.
3087         Never allow duplication of ranges in mapped areas.
3089 2002-08-20  Roland McGrath  <roland@redhat.com>
3091         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
3092         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
3094 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
3096         * include/unistd.h: Don't hide _exit.
3098         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
3099         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
3100         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
3101         argument 1 to TLS_INIT_TP.
3102         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
3104         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
3106         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
3107         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
3108         memory allocation to...
3109         (allocate_dtv): ...here.  New function.
3110         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
3111         call allocate_dtv instead of _dl_allocate_tls_storage.
3112         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
3113         (_dl_get_tls_static_info): New function.
3114         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
3115         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
3117 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
3119         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
3120         immediately if result == NULL.
3122 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
3124         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
3126 2002-08-18  Roland McGrath  <roland@frob.com>
3128         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
3129         instead of __file_name_split.
3130         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
3132         * sysdeps/mach/hurd/dl-sysdep.c
3133         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
3134         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
3136 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
3138         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
3139         in change before last: MAX -> MIN.
3141 2002-08-15  Roland McGrath  <roland@redhat.com>
3143         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
3144         if seek would go past it.
3145         (mmap_remap_check): If file position is at or past EOF after check,
3146         leave read pointers at EOF and don't seek.
3148         * libio/tst-mmap-offend.c: New file.
3149         * libio/Makefile (tests): Add it.
3151         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
3152         the name as passed, rather than the name in the archive dictionary.
3154 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
3156         * csu/Makefile: Define elide-routines.os not static-only-routines.
3158         * include/sched.h (__clone): Add varargs at the end.
3160         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
3161         case.
3162         (TLS_INIT_HELPER): If defined, use it.
3163         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
3165 2002-08-15  Roland McGrath  <roland@redhat.com>
3167         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
3168         on L->l_prev; it can happen under rtld --verify too.
3170         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
3171         header separately, just map an initial window of 2MB from the file
3172         and remap if that is not large enough to cover the whole header.
3174 2002-08-15  Andreas Jaeger  <aj@suse.de>
3176         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
3177         version 2.3.
3178         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3179         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
3180         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
3181         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
3182         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
3183         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3184         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3185         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
3186         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
3187         Patch by Andreas Gruenbacher <agruen@suse.de>.
3189         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
3191 2002-08-14  Roland McGrath  <roland@redhat.com>
3193         * locale/locarchive.h (struct locale_category_data): Give this name to
3194         the type of locale_data_t's elements.
3195         * locale/programs/locarchive.c (cmpcategorysize): New static function.
3196         (add_locale): Use that to sort the categories by size and put all
3197         those that fit into two pages into the LC_ALL block, instead of
3198         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
3199         (show_archive_content): Detect categories inside LC_ALL block
3200         directly, instead of hard-coding.
3201         (oldlocrecentcmp): Compare just on file locations used.
3203 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
3205         * locale/programs/locarchive.c (struct oldlocrecent): New type.
3206         (oldlocrecentcmp): New function.
3207         (enlarge_archive): Re-add locales in the order they were added
3208         to the archive.
3209         (add_locale): Put all the small locale files together, if the small
3210         locale file block would occupy less pages if page size aligned, align
3211         it.
3212         (show_archive_content): Adjust for locale archives optimized for speed.
3214 2002-08-14  Roland McGrath  <roland@frob.com>
3216         * configure.in: Use "MISSING" as not-found value for MIG.
3217         * sysdeps/mach/configure.in: Fatal if mig not found.
3218         * configure, sysdeps/mach/configure: Regenerated.
3220 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
3222         * locale/loadarchive.c (archfname): Add missing slash.
3224         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
3225         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
3227 2002-08-12  Roland McGrath  <roland@redhat.com>
3229         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
3230         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
3231         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
3232         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
3233         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
3234         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
3235         * sysdeps/generic/waitpid.c: Likewise.
3237         * include/net/if.h: New file.  Use libc_hidden_proto
3238         for if_nametoindex and if_indextoname.
3239         * sysdeps/generic/if_index.c: Add libc_hidden_def.
3240         * sysdeps/mach/hurd/if_index.c: Likewise.
3241         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
3243         * include/grp.h (setgroups): Add libc_hidden_proto.
3244         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
3245         * sysdeps/mach/hurd/setgroups.c: Likewise.
3246         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
3247         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3249 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
3251         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
3252         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
3253         * sysdeps/generic/setegid.c (setegid): Likewise.
3254         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
3255         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
3256         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
3257         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
3258         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
3259         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
3260         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
3261         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
3262         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
3263         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
3264         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
3265         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
3266         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
3268         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
3269         __lxstat_internal, __lxstat64_internal): Remove.
3270         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
3271         Add hidden_proto.
3272         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
3273         Remove INTDEF where present, remove #undef at the beginning.
3274         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
3275         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
3276         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
3277         * sysdeps/generic/xstat.c (__xstat): Likewise.
3278         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
3279         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
3280         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
3281         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
3282         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
3283         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
3284         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
3285         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
3286         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
3287         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
3288         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
3289         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
3290         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
3291         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
3292         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
3293         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
3294         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
3295         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
3296         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
3297         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
3298         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
3299         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
3300         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
3301         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3302         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3303         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3304         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
3305         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
3306         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
3307         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3308         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
3309         * sysdeps/unix/xstat.c (__xstat): Likewise.
3311         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
3312         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
3313         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
3314         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
3315         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
3316         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
3317         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
3319         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
3320         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
3321         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
3322         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
3323         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
3324         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
3325         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
3326         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
3327         Likewise.
3328         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
3329         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
3330         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
3331         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
3332         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
3333         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
3334         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
3335         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
3337         * include/string.h (strcoll): Add libc_hidden_proto.
3338         * string/strcoll.c (strcoll): Add libc_hidden_def.
3340         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
3342 2002-08-11  Philip Blundell  <philb@gnu.org>
3344         * sysdeps/arm/Makefile: New file.
3346 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3348         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
3349         by another '|', end of regex or enclosing ')', clear branch.
3350         * posix/bug-regex9.c: New test.
3351         * posix/Makefile (tests): Add bug-regex9.
3353 2002-08-12  Roland McGrath  <roland@redhat.com>
3355         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
3356         start count condition, use TOTAL instead of variable that was never
3357         set.  Fix outer loop termination condition to TOTAL >= after update.
3359         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
3360         dl_tls_static_align and dl_tls_static_nelem.
3362 2002-08-11  Roland McGrath  <roland@redhat.com>
3364         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
3365         of the TLS macros, otherwise the compiler might not have initialized
3366         the PIC register yet when we use the PLT via asm.
3367         * elf/tst-tlsmod3.c (in_dso2): Likewise.
3368         * elf/tst-tlsmod2.c (in_dso): Likewise.
3370         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
3372         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
3373         Evaluate argument exactly once.  Remove __volatile__ from asm's.
3375         * include/unistd.h: Use libc_hidden_proto for getdomainname
3376         and getlogin_r.
3377         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
3378         * sysdeps/mach/hurd/getdomain.c: Likewise.
3379         * sysdeps/unix/getlogin_r.c: Likewise.
3380         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
3381         * sysdeps/generic/getlogin_r.c: Likewise.
3383         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
3384         * sunrpc/rtime.c: Add libc_hidden_def.
3386         * include/string.h: Use libc_hidden_proto for basename.
3387         * string/basename.c [_LIBC]: Add libc_hidden_def.
3389         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
3391         * locale/loadarchive.c: munmap -> __munmap throughout.
3393         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
3394         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
3395         * sysdeps/generic/gai_strerror.c: Likewise.
3397         * include/sys/errno.h: New file.
3399         * include/signal.h: No libc_hidden_proto for raise,
3400         __libc_current_sigrtmin, __libc_current_sigrtmax.
3401         These need to be overridden by linuxthreads.
3402         * sysdeps/posix/raise.c: Reverted.
3403         * sysdeps/generic/raise.c: Reverted.
3404         * signal/allocrtsig.c: Reverted.
3406         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
3408 2002-08-10  Roland McGrath  <roland@redhat.com>
3410         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
3411         * locale/localeinfo.h: Declare it.
3412         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
3413         current locale if it's not in the file list.
3414         Call _nl_archive_subfreeres.
3416 2002-08-10  Andreas Jaeger  <aj@suse.de>
3418         * sysdeps/i386/strchr.S: Add comment.
3420 2002-08-10  Roland McGrath  <roland@redhat.com>
3422         * include/wchar.h (putwc): Use libc_hidden_proto.
3423         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
3424         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
3425         * stdio-common/dprintf.c: Add libc_hidden_def.
3426         * stdio-common/fprintf.c: Likewise.
3427         * stdio-common/sprintf.c: Likewise.
3428         * stdio-common/sscanf.c: Likewise.
3429         * libio/iofwrite.c: Likewise.
3430         * libio/memstream.c: Likewise.
3431         * libio/putwc.c: Likewise.
3432         * stdio-common/perror.c: Likewise.
3433         * sysdeps/posix/remove.c: Likewise.
3434         * sysdeps/generic/remove.c: Likewise.
3435         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
3436         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
3438 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
3440         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3441         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
3442         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3443         towlower, towupper): Add libc_hidden_weak.
3445         * include/bits/dlfcn.h: New file.
3446         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
3448         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
3449         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
3450         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
3451         * include/pwd.h (_nss_files_parse_pwent): Likewise.
3452         * include/shadow.h (_nss_files_parse_spent): Likewise.
3453         * include/netdb.h (_nss_files_parse_protoent,
3454         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
3455         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
3456         (LINE_PARSER): Use it.
3457         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
3458         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
3460         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
3461         #endif.
3463         * manual/debug.texi (%MENU%): Remove trailing dot.
3464         Reported by <hayastan132@hotmail.com>.
3466         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
3467         aliases.
3468         (lseek): Dummy.
3469         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
3470         Likewise.
3472 2002-08-09  Roland McGrath  <roland@redhat.com>
3474         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
3475         name to find codeset name (if any) and normalize it.  If the
3476         normalized name differs, look up only that in the archive.
3477         * locale/programs/locarchive.c (add_locale_to_archive): If the name
3478         contains a codeset, normalize the codeset store only the normalized
3479         name in the archive.  If not, add an alias containing the locale's
3480         normalized codeset name.  Apply codeset name normalization when
3481         matching entries in the alias file.
3483         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3484         decrement HEAD->namehash_used here.
3485         (add_locale): Only need to insert name string when name_offset != 0.
3487         * locale/programs/localedef.c (options): Add -A/--alias-file.
3488         (alias_file): New variable.
3489         (parse_opt): Grok -A, set that.
3490         * locale/programs/localedef.h: Declare it.
3492         * locale/locarchive.h (struct locrecent): Add `refs' member.
3493         * locale/programs/locarchive.c (insert_name): New function, broken out
3494         of ...
3495         (add_locale_to_archive): ... here.  Call that.
3496         (add_alias): New function.
3497         (add_locale): New static function, add_locale_to_archive renamed.
3498         (add_locale_to_archive): Call that and use add_alias to add an alias
3499         for the name with codeset if the given name lacks it.
3500         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3502         * locale/Makefile (routines): Add loadarchive.
3503         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3504         (_nl_load_locale_from_archive): New function.
3505         * locale/localeinfo.h: Declare it.
3506         * locale/findlocale.c (_nl_find_locale): If using default locale path,
3507         try _nl_load_locale_from_archive first.
3509         * locale/loadlocale.c (_nl_intern_locale_data): New function,
3510         broken out of _nl_load_locale.
3511         (_nl_load_locale): Call that.
3512         * locale/localeinfo.h: Declare it.
3513         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3514         (struct locale_data): Remove unused member `options'.
3515         * locale/findlocale.c (_nl_remove_locale): Update uses.
3516         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3517         * locale/C-collate.c: Update initializer.
3518         * locale/C-identification.c: Likewise.
3519         * locale/C-measurement.c: Likewise.
3520         * locale/C-telephone.c: Likewise.
3521         * locale/C-address.c: Likewise.
3522         * locale/C-name.c: Likewise.
3523         * locale/C-paper.c: Likewise.
3524         * locale/C-time.c: Likewise.
3525         * locale/C-numeric.c: Likewise.
3526         * locale/C-monetary.c: Likewise.
3527         * locale/C-messages.c : Likewise.
3528         * locale/C-ctype.c: Likewise.
3530         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3531         use CHAR_BIT instead of BITSPERBYTE.
3533         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3534         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3535         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3536         (_nl_remove_locale): Likewise.
3537         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3539         * locale/findlocale.c (_nl_default_locale_path): New variable.
3540         (_nl_find_locale): If LOCALE_PATH is null, default to that.
3541         * locale/localeinfo.h: Declare it.
3542         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3543         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
3544         * locale/newlocale.c (__newlocale): Likewise.
3546         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3547         * inet/rexec.c (rexec_af): Add libc_hidden_def.
3548         * sysdeps/generic/morecore.c: Likewise.
3549         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3550         (__libc_current_sigrtmax): Likewise.
3552 2002-08-08  Roland McGrath  <roland@redhat.com>
3554         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3555         * catgets/open_catalog.c (__open_catalog): Likewise.
3557         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3558         from typo INITIAL_NUM_NANES.
3559         (create_archive): Update use.
3561 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3563         * sysdeps/unix/sysv/linux/sigwait.c: New file.
3565 2002-08-08  Roland McGrath  <roland@frob.com>
3567         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3569 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3571         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3572         else and undefine after including wcstol_l.c.
3573         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3575 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3577         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3579 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
3581         * configure.in: Make the test for broken_alias_attribute stricter.
3583 2002-05-24  Robert Love  <rml@tech9.net>
3585         * posix/Makefile (routines): Add sched_getaffinity and
3586         sched_setaffinity.
3587         * posix/sched.h: Add declarations for sched_getaffinity and
3588         sched_setaffinity.
3589         * sysdeps/generic/sched_getaffinity.c: New file.
3590         * sysdeps/generic/sched_setaffinity.c: New file.
3591         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3592         sched_setaffinity.
3594 2002-08-06  Andreas Schwab  <schwab@suse.de>
3596         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3598 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3600         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3601         message.
3603         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3604         It is known to be defined.
3606         * include/string.h: Define index and rindex only if _ISOMAC is not
3607         defined.
3609         * elf/rtld.c: Include <errno.h>.
3610         * sysdeps/generic/libc-tls.c: Likewise.
3612 2002-08-07  Roland McGrath  <roland@redhat.com>
3614         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3615         it internally.
3616         (precsize_aton): Likewise.
3618         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3619         the static symbols added in the last change (doofus is me).
3621         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3622         loop to notice missing categories in a composite name.
3624         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3625         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3626         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3627         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3629 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3631         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3633 2002-08-07  Roland McGrath  <roland@redhat.com>
3635         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3636         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3637         Reported by Jakub Jelinek  <jakub@redhat.com>.
3639 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
3641         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3642         division.
3644 2002-08-06  Roland McGrath  <roland@redhat.com>
3646         * include/getopt.h: Put private decls inside [_GETOPT_H].
3647         Use libc_hidden_proto for getopt_long, getopt_long_only.
3648         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3649         Add libc_hidden_def.
3651         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3652         Define as a macro for __dl_iterate_phdr.
3654         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3655         made static.  Add __ name as a strong alias.
3656         (internal_endnetgrent): Likewise.
3657         (internal_getnetgrent_r): Likewise.
3659         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3660         with no __ prefix.
3661         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3662         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3663         all *_l functions with no __ prefix.
3664         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3665         * ctype/ctype_l.c: Likewise.
3666         * locale/nl_langinfo.c: Likewise.
3667         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3668         * stdlib/stdlib.h [__USE_GNU]: Likewise.
3669         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3670         * wctype/wctype.h [__USE_GNU]: Likewise.
3671         * string/strcoll_l.c (strcoll_l): Define as weak alias.
3672         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3673         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3674         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3675         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3676         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3677         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3678         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3679         (__wcscasecmp_l): Add libc_hidden_def.
3680         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3681         (__wcsncasecmp_l): Add libc_hidden_def.
3682         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3683         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3684         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3685         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3686         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3687         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3688         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3689         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3690         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3691         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3692         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3693         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3694         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3695         * wctype/wctype_l.c (wctype_l) Define as weak alias.
3697 2002-08-05  Roland McGrath  <roland@redhat.com>
3699         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3700         netname2user, host2netname, user2netname, key_gendes.
3701         * sunrpc/netname.c: Add libc_hidden_def.
3702         * sunrpc/key_call.c: Likewise.
3704         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3705         freeaddrinfo.
3706         * inet/getnameinfo.c: Add libc_hidden_def.
3707         * sysdeps/generic/getaddrinfo.c: Likewise.
3708         * sysdeps/posix/getaddrinfo.c: Likewise.
3710         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3711         * wcsmbs/wmemchr.c: Add libc_hidden_def.
3712         * wcsmbs/wmemset.c: Add libc_hidden_def.
3714         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3715         (index, rindex): Define as macros for strchr, strrchr.
3717         * string/envz.c (envz_strip): index -> strchr
3719         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3720         * sunrpc/rpc_prot.c: Add libc_hidden_def.
3722         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3723         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3725         * include/stdlib.h: Use libc_hidden_proto for wctomb.
3726         * stdlib/wctomb.c: Add libc_hidden_def.
3728         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3729         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3730         * resolv/herror.c: Likewise.
3731         * inet/rcmd.c: Add libc_hidden_def.
3732         * inet/ruserpass.c: Likewise.
3733         * inet/getnetgrent_r.c: Likewise.
3735         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3736         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
3737         for svcerr_auth, svcerr_noprog, svcerr_progvers.
3738         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3739         libc_hidden_def.
3740         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3741         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3743         * sysdeps/posix/system.c (do_system): New function, guts broken out of
3744         __libc_system.
3745         (__libc_system): Call it, putting just the line == NULL test here.
3747         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3748         variables work right.
3750         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3751         * elf/dl-close.c (_dl_close): Likewise.
3753         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3754         in6addr_any, in6addr_loopback.  Remove decls for
3755         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3756         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3757         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3758         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3759         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3760         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3761         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3762         in6addr_loopback.
3763         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3765         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3766         ether_aton_r.
3767         * inet/ether_aton_r.c: Add libc_hidden_def.
3768         * inet/ether_ntoa_r.c: Likewise.
3770         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3771         xprt_unregister.
3772         * sunrpc/svc.c: Add libc_hidden_def.
3773         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3774         pmap_set, pmap_unset.
3775         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3776         * sunrpc/pm_getport.c: Likewise.
3777         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3778         * sunrpc/publickey.c: Add libc_hidden_def.
3780 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3782         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
3783         the other memset call in this function.
3785         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3786         at correct index.  Clear BSS region now that memalign is used.
3788 2002-08-05  Roland McGrath  <roland@redhat.com>
3790         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3791         * sysdeps/generic/uname.c: Add libc_hidden_def.
3792         * sysdeps/mach/hurd/uname.c: Likewise.
3794 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
3796         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3797         wcspbrk): Add libc_hidden_proto.
3798         * time/strftime.c (my_strftime): Add libc_hidden_def.
3799         (strftime): Remove libc_hidden_def.
3800         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3801         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3802         * wcsmbs/wcsspn.c (wcsspn): Likewise.
3803         * wcsmbs/wcscmp.c (wcscmp): Likewise.
3804         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3805         * wcsmbs/wcscoll.c (wcscoll): Likewise.
3807         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3808         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3809         __rpc_thread_createerr): Add libc_hidden_proto.
3810         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3811         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3812         __rpc_thread_createerr): Add libc_hidden_def.
3814         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3815         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3816         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3817         clnt_perror, clnt_sperror): Add libc_hidden_def.
3818         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3820         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3821         libc_hidden_proto.
3822         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3823         * sunrpc/des_soft.c (des_setparity): Likewise.
3825         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3826         Add libc_hidden_proto.
3827         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3828         Add libc_hidden_def.
3830 2002-08-05  Roland McGrath  <roland@redhat.com>
3832         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3833         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3834         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3835         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3836         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3837         old data, abandoning the original memory allocated by rtld at startup,
3838         instead of calling realloc normally.
3840 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3842         * po/fr.po: Update from translation team.
3844 2002-08-04  Roland McGrath  <roland@redhat.com>
3846         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3847         then generate a dummy module under the given name, obeying the
3848         normal rules for the "caller" field.
3850         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3851         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
3853         * include/pthread.h: Don't declare __pthread_initialize_minimal as
3854         weak here; we declare it weak or strong in the one place we use it.
3855         * sysdeps/generic/libc-start.c: ... which is here.
3856         Don't make the decl weak if [USE_TLS], since static programs need TLS
3857         setup even when single-threaded.
3859         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3861         * elf/Makefile (test-srcs): Add $(modules-names) to it.
3862         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3863         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3864         all these variables.
3866 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3868         * include/stdio.h: Don't define macro magic to redirect function
3869         calls if _ISOMAC is defined.
3871         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3872         ldouble asin tests.
3874 2002-08-04  Roland McGrath  <roland@redhat.com>
3876         * stdlib/lrand48_r.c: Add libc_hidden_def.
3878         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3879         TCB with __libc_memalign instead of mmap.
3880         (_dl_deallocate_tls): Free it with free instead of munmap.
3882         * Makerules (cpp-srcs-left): When setting this to run
3883         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3884         words.  Combine the two loops into one on the concatenated list,
3885         including those as well as $(test-srcs).
3887         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3888         since we align here with optimally minimal waste anyway.
3889         (malloc): Just call that.
3891         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3892         the right variable.
3894         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3895         to compute memory location for l_tls_initimage.
3896         * elf/rtld.c (_dl_start): Likewise.
3897         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3899         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3900         because the .d file is generated in the non-shared case and
3901         so fails to catch them otherwise.
3903         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3904         split out of _dl_allocate_tls.
3905         (_dl_allocate_tls_init): Likewise.
3906         (_dl_allocate_tls): Call those.
3907         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3908         * elf/rtld.c (dl_main): Call them separately instead of calling
3909         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
3910         is finished, so that the initializer data has been relocated before we
3911         copy it into the main thread's TLS block.
3913         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3914         loop conditions, prevented the last used module from being initialized.
3916 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3918         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
3919         if glob resp. globfree are not macros.
3920         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
3921         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
3922         Add libc_hidden_ver.
3923         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
3924         libc_hidden_def.
3925         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
3926         instead of libc_hidden_weak.
3927         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
3928         libc_hidden_ver instead of libc_hidden_def.
3929         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
3930         libc_hidden_ver instead of libc_hidden_def.
3931         (wcstoll, wcstoq): Remove libc_hidden_weak.
3932         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
3933         libc_hidden_ver.
3934         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
3935         libc_hidden_ver.
3936         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
3937         libc_hidden_ver.
3938         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
3939         libc_hidden_ver.
3941 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3943         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
3944         to access _sys_siglist.
3945         * string/strsignal.c: Likewise.
3946         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
3947         * sysdeps/gnu/siglist.c: Likewise.
3948         * sysdeps/unix/siglist.c: Likewise.
3949         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3951         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
3953         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
3955         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
3956         alias and use it.
3957         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
3959         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
3960         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
3961         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
3963         * include/time.h: Add libc_hidden_proto for __gmtime_r.
3964         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
3966         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
3967         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
3968         and __gconv_get_cache respectively.
3969         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
3970         defined static.  Change all users.
3971         (__gconv_get_cache): New function.
3972         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
3973         (__gconv_get_alias_db): New function.
3974         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
3975         (__conv_modules_db): Likewise.
3976         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
3977         and __gconv_get_alias_db.
3978         * iconv/iconv_prog.c: Use the new functions instead of accessing the
3979         variables.
3981         * include/stdlib.h: Add prototype and libc_hidden_proto for
3982         __default_morecore.
3983         * sysdeps/generic/morecore.c: Include <stdlib.h>.
3985         * malloc/obstack.c: Remove fputs macro.
3987         * malloc/mtrace.c: Remove fopen macro.
3989 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
3991         * manual/debug.texi: Fix spelling to programmatically.
3992         Reported by <hayastan132@hotmail.com>.
3994 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3996         * include/libio.h: Add libc_hidden_proto for __uflow.
3997         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
3998         fgetpos to _IO_* names.
3999         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
4000         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
4001         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
4002         putwc_unlocked, vswscanf.
4003         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
4004         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
4005         * libio/fseek.c: Likewise.
4006         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
4007         not fopencookie.
4008         * libio/genops.c (__uflow): Add libc_hidden_def.
4009         * libio/iofflush_u.c (fflush_unlocked): Likewise.
4010         * libio/iofgets_u.c (fgets_unlocked): Likewise.
4011         * libio/iofputs_u.c (fputs_unlocked): Likewise.
4012         * libio/iofputws_u.c (fputws_unlocked): Likewise.
4013         * libio/iofread_u.c (fread_unlocked): Likewise.
4014         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
4015         * libio/iovswscanf.c (vswscanf): Likewise.
4016         * libio/putwc_u.c (putwc_unlocked): Likewise.
4017         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
4018         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
4019         * malloc/mtrace.c: Likewise.
4021         * sunrpc/clnt_perr.c: Remove fputs macro.
4022         * sunrpc/svc_simple.c: Likewise.
4023         * sunrpc/svc_tcp.c: Likewise.
4024         * sunrpc/svc_udp.c: Likewise.
4025         * sunrpc/xdr_rec.c: Likewise.
4026         * sunrpc/xdr_ref.c: Likewise.
4028         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
4029         iconv_prog, linereader, and charmap-dir.
4030         * locale/Makefile: Likewise for locale and charmap-dir.
4031         * malloc/Makefile: Likewise for memusagestat.
4032         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
4033         * sunrpc/Makefile: Likewise for rpc_main.
4034         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
4035         * timezone/Makefile: Likewise for zic.
4037         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
4039         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
4040         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
4041         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
4042         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
4043         _dl_close.
4045         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
4046         __wunderflow.
4047         * libio/genops.c (__underflow): Add libc_hidden_def.
4048         * libio/wgenops.c (__wuflow): Likewise.
4049         (__wunderflow): Likewise.
4051         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
4052         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
4054         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
4055         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
4057         * include/string.h: Add libc_hidden_proto for __strverscmp.
4058         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
4060         * include/unistd.h: Add libc_hidden_proto for __sysconf.
4061         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
4062         * sysdeps/posix/sysconf.c: Likewise.
4063         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
4064         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
4066         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
4067         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
4068         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
4069         __iswxdigit_l, __towlower_l, __towupper_l.
4070         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
4071         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
4073         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
4074         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
4075         * sysdeps/mach/hurd/xmknod.c: Likewise.
4076         * sysdeps/unix/xmknod.c: Likewise.
4077         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4078         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
4079         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4081         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
4083 2002-08-03  Roland McGrath  <roland@redhat.com>
4085         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
4086         setpriority.
4087         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
4088         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
4089         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
4090         * sysdeps/mach/hurd/setpriority.c: Likewise.
4091         * sysdeps/mach/hurd/getpriority.c: Likewise.
4092         * sysdeps/generic/setpriority.c: Likewise.
4093         * sysdeps/generic/getpriority.c: Likewise.
4095         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
4096         * malloc/mcheck.c: Add libc_hidden_def.
4098         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
4099         * misc/hsearch_r.c: Add libc_hidden_def.
4101         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
4102         * posix/fnmatch.c: Add libc_hidden_weak.
4104         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
4105         execl, execle, execlp, execvp, getpid, getsid.
4106         * sysdeps/generic/alarm.c: Add libc_hidden_def.
4107         * sysdeps/unix/alarm.c: Likewise.
4108         * posix/confstr.c: Likewise.
4109         * posix/execvp.c: Likewise.
4110         * posix/execlp.c: Likewise.
4111         * posix/execle.c: Likewise.
4112         * posix/execl.c: Likewise.
4113         * sysdeps/generic/getsid.c: Likewise.
4114         * sysdeps/mach/hurd/getsid.c: Likewise.
4115         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
4116         * sysdeps/mach/hurd/getpid.c: Likewise.
4118         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
4119         qecvt_r, qfcvt_r, lrand48_r.
4120         * misc/efgcvt_r.c: Add libc_hidden_def.
4122         * include/wordexp.h: Use libc_hidden_proto for wordfree.
4123         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
4125         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
4126         * locale/nl_langinfo.c: Add libc_hidden_def.
4128         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
4129         * sysdeps/generic/glob.c: Add libc_hidden_def.
4130         * sysdeps/generic/glob64.c: Likewise.
4131         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
4133         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
4135         * elf/Makefile (CFLAGS-vismod2.c): New variable.
4137         * locale/setlocale.c (_nl_current_names): Variable moved ...
4138         * locale/localename.c (_nl_current_names): ... here, new file.
4139         Make it global, with attribute_hidden.
4140         * locale/localeinfo.h: Declare it.
4141         * locale/Makefile (aux): Add localename.
4142         * locale/localename.c (__current_locale_name): New function.
4143         * include/locale.h (__current_locale_name): Declare it.
4144         * intl/dcigettext.c (guess_category_value): Use that instead of
4145         calling setlocale.
4147         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
4148         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
4149         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
4150         * locale/newlocale.c: Add alias to __ name.
4151         * locale/duplocale.c: Likewise.
4152         * locale/freelocale.c: Likewise.
4153         * locale/uselocale.c: New file.
4154         * locale/Makefile (routines): Add it.
4155         * locale/Versions (libc: GLIBC_2.3): New set.
4156         Add newlocale, duplocale, freelocale, uselocale.
4157         (libc: GLIBC_PRIVATE): Add __uselocale.
4159         * locale/localeinfo.h [SHARED]
4160         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
4161         (_NL_CURRENT_DATA): Define using that.
4162         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
4163         (_NL_CURRENT_DEFINE): Define to empty.
4164         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
4165         conditionalized on this.
4166         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
4167         taking initializer of _nl_C_locobj.
4168         [SHARED] (_nl_global_locale): New variable, using that initializer.
4169         (_nl_C_locobj): Use new macro for initialzier.
4170         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
4171         [! SHARED] (CATEGORY_USED): New macro.
4172         [SHARED] (CATEGORY_USED, _nl_C): New macros.
4173         (setdata, setlocale): Use that macro instead of examining _nl_current.
4174         (setdata): Set the slot in _nl_global_locale.
4175         Conditionalize setting of _nl_current on [! SHARED].
4176         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
4177         declaration as an extern.
4178         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
4180         * include/locale.h: Use libc_hidden_proto for setlocale.
4181         * locale/setlocale.c: Add libc_hidden_def.
4183         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
4185         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
4186         * misc/hsearch_r.c: Add libc_hidden_def.
4187         * misc/lsearch.c: Likewise.
4189         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
4190         endttyent.
4191         * misc/getttyent.c: Add libc_hidden_def.
4193         * include/mcheck.h: Use libc_hidden_proto for mcheck.
4194         * malloc/mcheck.c: Add libc_hidden_def.
4196         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
4197         * include/argz.h: Use libc_hidden_proto for argz_delete.
4198         * string/argz-delete.c: Add libc_hidden_def.
4199         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
4201         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
4202         HIDDEN_JUMPTARGET for _exit.
4203         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
4204         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
4205         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
4206         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
4208         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
4209         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
4210         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
4211         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
4213         * include/stdlib.h: Use libc_hidden_proto for abort,
4214         __strtof_internal, __strtod_internal, __strtold_internal,
4215         __strtol_internal, __strtoll_internal, __strtoul_internal,
4216         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
4217         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
4218         __strtoul_l_internal, __strtoull_l_internal.
4219         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
4220         __wcstod_internal, __wcstold_internal, __wcstol_internal,
4221         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
4222         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
4223         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
4224         __wcsncasecmp_l.
4225         * sysdeps/generic/abort.c: Add libc_hidden_def.
4226         * stdlib/strtod.c: Likewise.
4227         * sysdeps/generic/strtol.c: Likewise.
4228         * sysdeps/wordsize-64/strtol.c: Likewise.
4229         * sysdeps/wordsize-64/wcstol.c: Likewise.
4230         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
4232         * include/stdlib.h: Use libc_hidden_proto for qsort.
4233         * stdlib/msort.c: Add libc_hidden_def.
4235         * include/utime.h: Use libc_hidden_proto for utime.
4236         * sysdeps/generic/utime.c: Add libc_hidden_def.
4237         * sysdeps/unix/utime.c: Likewise.
4239         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
4240         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
4241         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
4242         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
4243         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
4245         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
4246         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
4247         and __libc_current_sigrtmax.
4248         * signal/sigismem.c: Add libc_hidden_def.
4249         * signal/sigfillset.c: Likewise.
4250         * signal/sigempty.c: Likewise.
4251         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
4252         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
4253         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
4254         * sysdeps/posix/raise.c: Likewise.
4255         * sysdeps/generic/raise.c: Likewise.
4257 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
4259         * include/string.h: Use libc_hidden_proto for __stpcpy.
4260         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
4261         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
4262         * sysdeps/generic/stpcpy.c: Likewise.
4263         * sysdeps/i386/stpcpy.S: Likewise.
4264         * sysdeps/i386/i586/stpcpy.S: Likewise.
4265         * sysdeps/powerpc/stpcpy.S: Likewise.
4266         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
4267         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
4269         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
4270         __strncasecmp_l, __strdup, __strndup, __strerror_r.
4271         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
4272         libc_hidden_def.
4273         * string/strdup.c (__strdup): Likewise.
4274         * string/strndup.c (__strndup): Likewise.
4275         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
4276         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
4278 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4280         * include/libio.h: New file.
4281         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
4282         * libio/iolibio.h: #include <libio.h>, not "libio.h".
4283         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
4284         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
4285         * sysdeps/unix/common/syscalls.list: Likewise.
4286         * sysdeps/unix/inet/syscalls.list: Likewise.
4287         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
4288         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
4289         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4290         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4291         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4292         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4293         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4294         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4295         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4296         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
4297         * sysdeps/unix/syscalls.list: Likewise.
4299 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4300             Ulrich Drepper  <drepper@redhat.com>
4302         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
4303         the arguments is big enough to cause an overflow.
4305 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
4307         * assert/assert.c: Use hidden_def not INTDEF.
4309 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4311         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
4312         not defined.
4314 2002-08-03  Roland McGrath  <roland@redhat.com>
4316         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
4317         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
4318         verr, verrx.
4319         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
4320         * misc/syslog.c: Add libc_hidden_def.
4321         * misc/err.c: Likewise.
4322         * stdlib/exit.c: Likewise.
4323         * stdlib/bsearch.c: Likewise.
4324         * sysdeps/generic/getenv.c: Likewise.
4326         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
4328         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
4329         libc_hidden_weak for every system call symbol defined.
4331         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
4332         timelocal, localtime, strftime.
4333         * time/asctime.c: Add libc_hidden_def.
4334         * time/mktime.c: Likewise.
4335         * time/localtime.c: Likewise.
4336         * time/strftime.c: Likewise.
4337         * time/strptime.c: Likewise.
4338         * sysdeps/generic/time.c: Likewise.
4339         * sysdeps/unix/time.c: Likewise.
4340         * sysdeps/unix/sysv/i386/time.S: Likewise.
4341         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
4343         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
4344         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
4345         * resolv/inet_ntop.c: Likewise.
4346         * resolv/inet_pton.c: Likewise.
4347         * inet/inet_mkadr.c: Add libc_hidden_def.
4348         * inet/inet_netof.c: Likewise.
4349         * resolv/inet_addr.c: Likewise.
4351         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
4352         clauses from conditionals for now.  Will have to be fixed later
4353         for older compilers.
4355         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
4357 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4359         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
4360         broken alias attribute handling.
4361         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
4363 2002-08-02  Roland McGrath  <roland@frob.com>
4365         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
4366         since it sets the variables we use in a -D switch.
4368 2002-08-02  Roland McGrath  <roland@redhat.com>
4370         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
4371         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
4372         matches long int, not int.
4374         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
4375         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
4376         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4377         * wctype/wctrans.c (wctrans): Likewise.
4378         * wctype/wctype.c (__wctype): Likewise.
4379         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
4381 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4383         * assert/assert.c (__assert_fail): Fix typo in comment.
4385         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
4386         * sunrpc/rpc_thread.c: Define it without static.
4387         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
4389 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4391         * assert/assert.c (__assert_fail): Remove undef.
4392         Replace INTDEF with libc_hidden_def.
4393         * assert/__assert.c (__assert): Remove INTUSE.
4394         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
4395         libc_hidden_weak.
4396         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
4397         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
4398         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
4399         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
4400         libm_hiden_ver): Define.
4401         * include/assert.h (__assert_fail_internal): Remove.
4402         (__assert_fail): Add prototype.  Add hidden_proto.
4403         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
4404         libc_hidden_proto.
4405         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
4406         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
4407         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
4408         Add libc_hidden_proto.
4409         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
4410         __fcntl): Add libc_hidden_proto.  Remove macros.
4411         (__open_internal, __fcntl_internal): Remove.
4412         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
4413         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
4414         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
4415         libc_hiden_proto.
4416         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
4417         libc_hidden_def.
4418         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
4419         Add libc_hidden_def.
4420         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
4421         * sysdeps/generic/open.c (__open): Remove undef.
4422         Add libc_hidden_def.  Remove INTDEF.
4423         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
4424         Add libc_hidden_def.
4425         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
4426         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
4427         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
4428         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4429         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4430         (__libc_fcntl): Add libc_hidden_def.
4431         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
4432         (__open): Remove INTDEF2.  Add libc_hidden_weak.
4433         (__libc_open): Add libc_hidden_def.
4434         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
4435         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
4436         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4437         Add libc_hidden_def.
4438         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
4439         Add libc_hidden_def.
4440         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
4441         undef.
4442         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4443         (__libc_fcntl): Add libc_hidden_def.
4444         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
4445         __getpgid_internal, __chown_internal): Remove.
4446         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
4447         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
4448         __GI___chown): Add.
4449         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
4450         __getpid_internal, __open_internal, __write_internal): Remove.
4451         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
4452         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
4453         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
4454         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
4455         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
4456         Replace INTDEF with libc_hidden_def.
4457         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
4458         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
4459         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
4460         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
4461         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
4462         Add libc_hidden_proto.
4463         * include/sys/poll.h (__poll): Add libc_hidden_proto.
4464         * include/sys/select.h (__select): Likewise.
4465         * include/sys/socket.h (__send): Likewise.
4466         * include/sys/statfs.h (__statfs): Likewise.
4467         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
4468         __getpid, __getpgid, __setpgid, __close, __read, __write,
4469         __getpagesize, __sbrk): Likewise.
4470         (__chown_internal, __dup2_internal, __getpid_internal,
4471         __getpgid_internal, __close_internal, __write_internal,
4472         __getpagesize_internal): Remove.
4473         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
4474         Remove macros.
4475         * include/printf.h (__printf_fp): Add libc_hidden_proto.
4476         * include/sched.h (__sched_setscheduler): Likewise.
4477         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
4478         * include/stdlib.h (__secure_getenv): Likewise.
4479         * include/signal.h (__sigaction, __sigsuspend): Likewise.
4480         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4481         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4482         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4483         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4484         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4485         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4486         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4487         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4488         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4489         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4490         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4491         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4492         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4493         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4494         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4495         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4496         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4497         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4498         * libio/genops.c (__overflow): Add libc_hidden_def.
4499         * libio/iovdprintf.c: Remove libio.h include.
4500         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4501         libc_hidden_weak): Define to nothing if not defined.
4502         (__overflow, __woverflow): Add libc_hidden_proto.
4503         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4504         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4505         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4506         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4507         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4508         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4509         and libc_hidden_def.
4510         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4511         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4512         (__getpgid): Add libc_hidden_proto.
4513         (__bsd_getpgrp): Remove INTUSE.
4514         * resolv/res_init.c (__res_ninit, __res_randomid): Add
4515         libc_hidden_def.
4516         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4517         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4518         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4519         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4520         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4521         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4522         __rpc_thread_createerr): Add libc_hidden_def.
4523         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4524         libc_hidden_def.
4525         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4526         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4527         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4528         * sysdeps/generic/chown.c (__chown): Likewise.
4529         * sysdeps/generic/close.c (__close): Likewise.
4530         * sysdeps/generic/dup2.c (__dup2): Likewise.
4531         * sysdeps/generic/pipe.c (__pipe): Likewise.
4532         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4533         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4534         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4535         * sysdeps/generic/read.c (__libc_read): Likewise.
4536         (__read): Add libc_hidden_weak.
4537         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4538         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4539         * sysdeps/generic/select.c (__select): Likewise.
4540         * sysdeps/generic/send.c (__send): Likewise.
4541         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4542         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4543         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4544         * sysdeps/generic/statfs.c (__statfs): Likewise.
4545         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4546         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4547         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4548         Remove undef and INTDEF.
4549         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4550         * sysdeps/generic/getpid.c (__getpid): Likewise.
4551         * sysdeps/generic/write.c (__libc_write): Likewise.
4552         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4553         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4554         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4555         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4556         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
4557         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4558         Remove undef and INTDEF.
4559         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4560         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4561         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4562         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4563         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4564         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4565         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4566         (__pipe): Add libc_hidden_def.
4567         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4568         libc_hidden_weak.
4569         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4570         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4571         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4572         (__read): Add libc_hidden_weak.
4573         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4574         (__libc_pwrite64): Add libc_hidden_def.
4575         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4576         * sysdeps/mach/hurd/select.c (__select): Likewise.
4577         * sysdeps/mach/hurd/send.c (__send): Likewise.
4578         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4579         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4580         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4581         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4582         * sysdeps/posix/dup2.c: Likewise.
4583         Remove undef and INTDEF.
4584         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4585         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4586         (__pwrite64): Add libc_hidden_weak.
4587         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4588         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4589         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4590         * sysdeps/standalone/close.c (__close): Likewise.
4591         * sysdeps/standalone/write.c (__libc_write): Likewise.
4592         (__write): Add libc_hidden_weak.
4593         * sysdeps/standalone/read.c (__read): Likewise.
4594         (__libc_read): Add libc_hidden_def.
4595         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4596         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4597         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4598         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4599         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4600         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4601         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4602         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4603         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4604         __GI___sigaction): Add.
4605         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4606         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4607         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4608         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4609         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4610         __GI___setpgid): Add.
4611         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4612         Remove undef and INTDEF.
4613         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4614         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4615         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4616         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4617         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4618         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4619         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4620         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4621         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4622         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4623         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4624         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4625         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4626         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4627         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4628         __GI___statfs, __GI___send): Add.
4629         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4630         libc_hidden_ver resp. libc_hidden_def.
4631         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4632         libc_hidden_def.
4633         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4634         Likewise.  Remove undef and INTDEF.
4635         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4636         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4637         __GI___statfs, __GI___send): Add.
4638         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4639         libc_hidden_def.
4640         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4641         Likewise.
4642         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4643         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4644         libc_hidden_ver resp. libc_hidden_def.
4645         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4646         __GI___send): Add.
4647         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4648         Add libc_hidden_weak.
4649         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4650         Add libc_hidden_def.
4651         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4652         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4653         libc_hidden_weak.
4654         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4655         resp. libc_hidden_def.
4656         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4657         libc_hidden_weak.
4658         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
4659         INTDEF.
4660         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4661         Likewise.  Remove undef.
4662         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4663         libc_hidden_weak.
4664         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4665         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4666         libc_hidden_weak.
4667         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4668         libc_hidden_def.
4669         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4670         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4671         Likewise.  Remove undef and INTDEF.
4672         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4673         libc_hidden_def.
4674         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4675         libc_hidden_weak.
4676         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4677         libc_hidden_def.
4678         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4679         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4680         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4681         libc_hidden_weak.
4682         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4683         Add libc_hidden_def.
4684         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4685         __GI___statfs): Add.
4686         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4687         libc_hidden_weak.
4688         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4689         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4690         Remove undef and INTDEF.
4691         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4692         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4693         libc_hidden_def.
4694         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4695         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4696         libc_hidden_weak.
4697         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4698         libc_hidden_def.
4699         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4700         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4701         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4702         Add.
4703         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4704         libc_hidden_def.  Remove undef and INTDEF.
4705         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4706         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4707         libc_hidden_def.
4708         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4709         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4710         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4711         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4712         Remove undef and INTDEF.
4713         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4714         broken visibility attribute handling.
4715         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4717 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4719         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4720         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4722         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4723         previous patch.
4725 2002-06-29  Todd Fries  <todd@openbsd.org>
4727         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4729 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4731         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4733 2002-07-30  Roland McGrath  <roland@redhat.com>
4735         * resolv/resolv.h (_res): Define macro unconditionally.
4736         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4737         * include/resolv.h: ... here.
4738         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4739         as a __thread variable.
4740         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4741         a __thread variable instead of a global.
4742         * resolv/res_data.c [_LIBC]: Don't #undef _res.
4744         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4745         time we test it.
4747         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4749         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4750         decls of memset and memcpy.
4752         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4753         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4755         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4757         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4758         (__libc_tsd_define): Define using __thread.
4760         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4761         (__rpc_thread_variables): Use __libc_tsd_get.
4762         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4763         __rpc_thread_variables, which might allocate what we're about to free.
4765         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4766         thread-local variable.
4767         * resolv/netdb.h (h_errno): Define macro unconditionally.
4768         [_LIBC] (__set_h_errno): Macro moved to ...
4769         * include/netdb.h: ... here.
4770         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4771         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4772         [! _LIBC_REENTRANT]: #undef h_errno here.
4774         * include/errno.h: Protect from multiple inclusion.
4776         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4777         before defining them, since Linux's <linux/posix_types.h> might have
4778         defined them.
4780 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4782         * malloc/malloc.c (public_cALLOc): Check for overflow on
4783         multiplication.
4784         * sunrpc/xdr_array.c (xdr_array): Likewise.
4785         * sunrpc/rpc/types.h (mem_free): Add comment.
4786         Patch by Solar Designer <solar@openwall.com>.
4788 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4790         * sysdeps/unix/sysv/linux/kernel-features.h
4791         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4793 2002-08-01  Roland McGrath  <roland@redhat.com>
4795         * libio/fileops.c (_IO_file_sync_mmap): New function.
4796         (_IO_file_jumps_mmap): Use it.
4797         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
4798         repeat the stat check and resize the mapped buffer as necessary.
4800 2002-07-31  Roland McGrath  <roland@redhat.com>
4802         * libio/fileops.c (decide_maybe_mmap): New static function.
4803         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4804         mmap the file contents.  Then switch the jump tables to the mmap
4805         tables if it worked, or the vanilla file tables if not.
4806         (_IO_file_underflow_maybe_mmap): New function.
4807         (_IO_file_seekoff_maybe_mmap): New function.
4808         (_IO_file_xsgetn_maybe_mmap): New function.
4809         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4810         * libio/libioP.h: Declare those.
4811         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4812         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4813         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4814         If the stream is read-only, set its jump tables to those new ones.
4815         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4816         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4817         We need the tables set before _IO_file_attach.
4819         * libio/tst-mmap-eofsync.c: New file.
4820         * libio/tst-mmap-fflushsync.c: New file.
4821         * libio/bug-mmap-fflush.c: New file.
4822         * libio/tst-mmap2-eofsync.c: New file.
4823         * libio/Makefile (tests): Add them.
4825         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4826         _IO_file_underflow_mmap fails, it already set the appropriate bit.
4828 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
4830         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4831         Declarations moved to <bits/sys_errlist.h>.  Include that file.
4832         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4833         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
4834         declare sys_errlist and sys_nerr.
4835         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
4836         provide declarations.
4838 2002-07-31  Roland McGrath  <roland@redhat.com>
4840         * elf/rtld.c (dl_main): Fix typo in error message.
4842 2002-07-31  Roland McGrath  <roland@frob.com>
4844         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4845         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
4846         sysdeps/mach/hurd/dl-sysdep.c change.
4848 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
4850         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4851         -r`/build/include for kernel headers.
4853         * po/fi.po: New file.
4855 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
4857         * configure.in (static_nss): Set to `yes' if --disable-shared.
4859 2002-07-23  Bruno Haible  <bruno@clisp.org>
4861         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4862         is set.
4864 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4866         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4867         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4868         arguments.
4870 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4872         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4873         alias.
4875 2002-07-21  Bruno Haible  <bruno@clisp.org>
4877         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4878         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4879         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4880         trans_sysdep_tab_offset.
4881         (struct sysdep_segment): New type.
4882         (struct sysdep_string): New type.
4883         (SEGMENTS_END): New macro.
4884         * intl/gettextP.h (struct sysdep_string_desc): New type.
4885         (struct loaded_domain): New fields malloced, n_sysdep_strings,
4886         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4887         orig_tab, trans_tab, hash_tab to const pointers because they point
4888         into read-only memory.
4889         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4890         (PRI*): Define fallback values.
4891         (get_sysdep_segment_value): New function.
4892         (_nl_load_domain): Distinguish major and minor revision parts. Add
4893         support for minor revision 1 with system dependent strings.
4894         (_nl_unload_domain): Also free the 'malloced' field.
4895         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4896         now done in loadmsgcat.c. Add support for system dependent strings.
4898 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4900         * posix/bug-regex7.c: New file.
4901         * posix/bug-regex8.c: New file.
4902         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4904 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4906         * posix/bug-regex4.c (main): Fix typos.
4907         * posix/bug-regex6.c (main): Likewise.
4909 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
4911         * posix/bug-regex6.c (main): Fix warnings.
4913         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
4915         * iconv/iconv_prog.c (main): Improve error message for the cases
4916         where -t and/or -f parameter are missing.
4918 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
4920         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
4921         (re_search): Likewise.
4922         (re_match_2): Likewise.
4923         (re_search_2): Likewise.
4924         (re_search_stub): New function.
4925         (re_search_2_stub): New function.
4926         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
4928 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
4930         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
4931         (re_string_eoi): Use STOP instead of LEN.
4932         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
4933         (re_string_construct): Likewise.
4934         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
4935         * posix/regexec.c (re_search_internal): Add a new argument STOP
4936         so that it can handle the argument STOP of re_search_2 and re_match_2
4937         correctly.
4938         (regexec): Adapt to new I/F of re_search_internal.
4939         (re_search_stub): Likewise.
4941 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
4943         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
4945         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
4947         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
4948         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
4949         of __divdi3.
4951         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
4952         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
4953         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
4954         alias for adjtimex syscall.
4956         * elf/dl-minimal.c: Define __assert_fail_internal.
4957         * assert/assert.c: Likewise.
4958         * include/assert.h: Define __assert_file macro if !SHARED and not
4959         NOT_IN_libc.
4961         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
4962         programs.
4963         * locale/Makefile: Likewise.
4964         * nscd/Makefile: Likewise.
4965         * catgets/Makefile: Likewise.
4967 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
4969         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
4970         compute current position.
4972         * stdio-common/tst-fseek.c (main): Improve error messages.
4974         * libio/tst-freopen.c (main): Remove unused variable.
4976         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
4977         succesful seek call.  Simplify error checking.
4979 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4981         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
4982         * sysdeps/ia64/fpu/libm_support.h: Likewise.
4984 2002-07-19  Roland McGrath  <roland@frob.com>
4986         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
4987         __libc_enable_secure is set.
4989 2002-07-24  Roland McGrath  <roland@frob.com>
4991         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
4992         This implementation supports only IPv4.
4993         * inet/ifaddrs.h: New file.
4994         * sysdeps/generic/ifaddrs.c: New file.
4995         * sysdeps/gnu/ifaddrs.c: New file.
4996         * inet/test-ifaddrs.c: New file.
4997         * inet/Makefile (routines): Add ifaddrs.
4998         (headers): Add ifaddrs.h here.
4999         (tests): Add test-ifaddrs.
5000         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
5002         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
5003         socket call to get an AF_INET socket, instead of using __opensock.
5004         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
5006         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
5007         if not -1 use it instead of calling __opensock.
5008         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
5009         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
5010         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
5012         * sysdeps/mach/hurd/ifreq.h: New file.
5013         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
5014         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
5015         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
5017         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
5018         which gets moved around.  Calculate size of mmap'd buffer instead.
5020 2002-07-24  Philip Blundell  <philb@gnu.org>
5022         * sysdeps/unix/arm/brk.S: Improve schedule.
5023         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
5024         efficient instruction.
5025         (__socket): Optimize return sequence.
5027 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5029         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
5030         sockets on old kernels.
5032 2002-07-22  Philip Blundell  <philb@gnu.org>
5034         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
5035         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
5036         alias.
5038 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5040         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
5041         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
5043         * locale/programs/locarchive.c (add_locale_to_archive): Correct
5044         test to detect duplicate locales.
5046         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
5047         position would be before beginning of file.
5048         (_IO_file_seekoff_mmap): Likewise.
5049         * libio/Makefile (tests): Add bug-fseek.
5050         * libio/bug-fseek.c: New file.
5052         * intl/explodename.c: Remove support for CEN-style locale variables.
5053         It was never used and shouldn't be since it's not portable.
5054         * intl/finddomain.c: Likewise.
5055         * intl/l10nflist.c: Likewise.
5056         * intl/loadinfo.h: Likewise.
5057         * locale/findlocale.c: Likewise.
5059 2002-07-24  Roland McGrath  <roland@frob.com>
5061         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
5062         position, calculate it to take into account an active pushback buffer.
5064         * libio/Makefile (tests): Add bug-ungetc.
5065         * libio/bug-ungetc.c: New file.
5067 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
5069         * sysdeps/generic/libc-tls.c: New file.
5070         * csu/Makefile (routines): Add libc-tls.
5071         (static-only-routines): Add libc-tls.
5072         * elf/dl-support.c (_dl_phdr): New variable.
5073         (_dl_phnum): New variable.
5074         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
5075         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
5076         for !SHARED.  First look through auxiliary vector.  If TLS always
5077         call __pthread_initialize_minimal.
5079         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
5080         in mmap call is never zero.
5082 2002-07-23  Andreas Jaeger  <aj@suse.de>
5084         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
5085         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
5087 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
5089         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
5090         creation and removal of the temp file.
5092         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
5093         file creation.
5094         * test-skeleton.c (create_temp_file): New function.
5096 2002-07-22  Andreas Jaeger  <aj@suse.de>
5098         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
5099         local label.
5101 2002-07-21  Roland McGrath  <roland@frob.com>
5103         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
5104         put -I../include before -I../stdlib so we get the right errno.h et al.
5105         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
5106         (CFLAGS-wcstof.c): Likewise.
5107         (CFLAGS-wcstold.c): Likewise.
5108         (CFLAGS-wcstod_l.c): Likewise.
5109         (CFLAGS-wcstof_l.c): Likewise.
5110         (CFLAGS-wcstold_l.c): Likewise.
5112 2002-07-19  Roland McGrath  <roland@frob.com>
5114         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
5116 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
5118         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
5119         __ASSUME_AT_XID is defined.
5120         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
5121         for 2.4.1 and up.
5122         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
5123         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
5125         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
5126         (CFLAGS-wcstof.c): Likewise.
5127         (CFLAGS-wcstold.c): Likewise.
5128         (CFLAGS-wcstod_l.c): Likewise.
5129         (CFLAGS-wcstof_l.c): Likewise.
5130         (CFLAGS-wcstold_l.c): Likewise.
5132 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
5134         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
5135         __priority_which_t): Always typedef to int for C++.
5137 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
5139         * configure.in: Add test for __thread support in compiler.
5140         * config.h.in: Add HAVE___THREAD.
5141         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
5142         * include/sys/errno.h: Moved to...
5143         * stdlib/sys/errno.h: ...here.  New file.
5144         * stdlib/errno.h: New file.  Moved from...
5145         * include/errno.h: ...here.  Changed into an internal header defining
5146         libc-local things like __set_errno.
5147         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
5148         bits/errno.h.
5149         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
5150         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
5151         either.
5152         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
5153         from...
5154         (_dl_start_final): ...here.  Add code to initialize tls elements from
5155         bootstrap_map.
5156         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
5157         if USE_TLS && HAVE___THREAD.
5158         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
5159         * sysdeps/mach/hurd/bits/errno.h: Likewise.
5160         * sysdeps/standalone/arm/bits/errno.h: Likewise.
5161         * sysdeps/standalone/bits/errno.h: Likewise.
5162         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
5163         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
5164         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
5165         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
5166         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
5167         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
5168         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
5169         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
5170         use GL(dl_rtld_map), use map parameter.
5171         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
5172         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
5173         USE_TLS && HAVE___THREAD.
5174         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
5175         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
5176         TLS code sequence.
5177         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5179         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
5180         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
5181         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
5182         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
5183         * sysdeps/unix/sysv/linux/readv.c: Likewise.
5184         * sysdeps/unix/sysv/linux/writev.c: Likewise.
5186 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
5188         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
5189         MS_INVALIDATE values.
5191 2002-07-17  Andreas Schwab  <schwab@suse.de>
5192             Ulrich Drepper  <drepper@redhat.com>
5194         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
5195         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5196         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5197         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5199 2002-07-01  H.J. Lu  <hjl@gnu.org>
5201         * elf/circleload1.c (load_dso): Call "circlemod1" and check
5202         return value.
5204         * elf/circlemod1.c (circlemod1): Return int.
5205         * elf/circlemod2.c (circlemod2): Likewise.
5206         * elf/circlemod2a.c (circlemod2): Likewise.
5207         * elf/circlemod3.c (circlemod3): Likewise.
5208         (circlemod3a): A new function.
5210 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
5212         * catgets/tst-catgets.c (main): Don't expect results for
5213         untranslated messages.
5215         * glibcbug.in: Fix little typo.  Remove STDIO.
5217         * config.h.in: Fail if __FAST_MATH__ is defined.
5218         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
5219         (CPPFLAGS-test-idouble.c): Likewise.
5220         (CPPFLAGS-test-ildouble.c): Likewise.
5222 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
5224         * intl/tst-gettext.sh: Pass -f option to msgfmt.
5225         * intl/tst-gettext.c: Correctly handle untranslated messages in
5226         positive tests.
5228         * po/de.po: Update from translation team.
5230 2002-07-02  H.J. Lu  <hjl@gnu.org>
5232         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
5233         use ll/sc.
5234         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
5236         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
5237         to 2.4.0 for mips.
5239 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
5241         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
5242         TLS fail if USE_TLS is not defined.
5244         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
5245         and adjust state for seek position.  [PR libc/4070]
5246         * libio/Makefile (tests): Add bug-rewind.
5247         * libio/bug-rewind.c: New file.
5249 2002-07-12  Philip Blundell  <philb@gnu.org>
5251         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
5252         (__backtrace): Use it.
5253         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
5255 2002-07-12  Philip Blundell  <philb@gnu.org>
5257         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
5258         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
5259         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
5260         (elf_machine_rela): Remove unused variable.
5262         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
5263         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
5264         define.
5266 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
5268         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
5270 2002-07-14  Andreas Jaeger  <aj@suse.de>
5272         * sysdeps/x86_64/bits/link.h: Add biarch support.
5274 2002-07-13  Andreas Jaeger  <aj@suse.de>
5276         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
5277         Use correct indices.
5278         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
5280 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5282         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
5283         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
5284         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
5285         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
5286         * sysdeps/s390/s390-32/bits/link.h: Remove.
5287         * sysdeps/s390/s390-64/bits/link.h: Remove.
5288         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
5289         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
5290         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
5291         * sysdeps/s390/bits/wordsize.h: New file.
5292         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
5293         elfclass.h.
5294         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
5295         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
5296         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
5297         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
5298         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
5299         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
5300         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
5301         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
5302         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
5303         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
5304         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
5305         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
5306         resource.h.
5307         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
5308         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
5309         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
5310         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
5311         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
5312         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
5313         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
5314         sigaction.h.
5315         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
5316         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
5317         siginfo.h.
5318         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
5319         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
5320         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
5321         socket.h.
5322         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
5323         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
5324         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
5325         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
5326         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
5327         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
5328         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
5329         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
5330         procfs.h.
5331         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
5332         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
5333         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
5334         ucontext.h.
5335         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
5336         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
5338 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
5340         * Versions.def (libc): Add GLIBC_2.3.
5341         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
5342         * stdlib/canonicalize.c: Add compatibility version for realpath
5343         and make new code available in GLIBC_2.3.
5345 2002-07-06  Bruno Haible  <bruno@clisp.org>
5347         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
5349 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
5351         * resolv/res_hconf.c (_res_hconf_init): Move code into new
5352         function do_init.  Use __libc_once.
5353         (do_init): New function.
5355         * iconvdata/iso8859-11.h: Removed.
5356         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
5357         (distribute): Remove iso8859-11.h.
5358         * iconvdata/tst-tables.sh: Add ISO-8859-11.
5360         * stdio-common/vfscanf.c (inchar): Restore errno from previous
5361         underflow operation if c == (W)EOF.
5363 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5365         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
5366         non-zero, adjust exponent.
5367         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
5368         Remove NO_LONG_DOUBLE aliases.
5369         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
5370         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
5371         (__log1pl): Raise divide by zero and invalid exceptions when needed.
5372         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
5373         1**y and -1**+-Inf.
5374         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
5375         Fix BITS_PER_MP_LIMB 32 extraction.
5376         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
5377         exceptions for qNaNs.
5378         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
5379         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
5380         Raise exceptions when needed.  Don't recurse unnecessarily.
5381         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
5382         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
5383         exceptions for qNaNs.
5384         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
5385         to fix *quo return value sign.
5386         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
5387         case -Inf argument.
5388         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
5390 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5392         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
5393         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
5394         -DNDEBUG.
5396 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5398         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
5399         the result.
5401         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
5402         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
5404         * Versions.def (libthread_db): Add GLIBC_2.3.
5406 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
5408         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
5409         new stream if possible.
5410         * libio/freopen64.c (freopen64): Likewise.
5411         * libio/Makefile (tests): Add tst-freopen.
5412         * libio/tst-freopen.c: New file.
5414 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5416         * libio/stdio.h (obstack_printf): Add format attribute.
5417         (obstack_vprintf): Likewise.
5419 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5421         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
5422         resp. 16 bytes on 32-bit resp. 64-bit platforms.
5423         (re_charset_t, re_string_t): Reorder structure members for 64-bit
5424         architectures.
5426 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5428         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
5429         (init_dfa): ...here.
5431 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5433         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
5434         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
5435         nodes in parse trees.
5436         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
5437         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
5438         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
5439         nodes which can epsilon transit.
5440         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
5441         to IS_EPSILON_NODE macro.
5442         * posix/regexec.c (update_regs): New function to update registers
5443         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
5444         (proceed_next_node): Use the entities of the nodes to determine
5445         whether the node can transit to.
5446         (set_regs): Use update_regs function to update registers.
5448 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5450         * posix/bug-regex4.c (main): Remove duplicate setlocale.
5451         * posix/bug-regex6.c: New file.
5452         * posix/Makefile (tests): Add bug-regex6.
5453         (bug-regex6-ENV): Set LOCPATH.
5455 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5457         * Versions.def [libpthread]: Add GLIBC_2.2.6.
5458         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
5460 2002-07-06  Bruno Haible  <bruno@clisp.org>
5462         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
5464 2002-07-06  Bruno Haible  <bruno@clisp.org>
5466         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
5467         declarations.
5469         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
5471         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
5473         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
5474         not _UTSNAME_H.
5475         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
5477         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
5478         * sysdeps/generic/bits/ustat.h: Likewise.
5480         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5482 2002-07-08  Andreas Jaeger  <aj@suse.de>
5484         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5486 2002-07-08  Andreas Jaeger  <aj@suse.de>
5488         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5490 2002-07-06  Andreas Jaeger  <aj@suse.de>
5492         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5493         * sysdeps/x86_64/fpu/s_copysign.S: New file.
5494         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5495         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5496         * sysdeps/x86_64/fpu/s_finitel.S: New file.
5497         * sysdeps/x86_64/fpu/s_fmax.S: New file.
5498         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5499         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5500         * sysdeps/x86_64/fpu/s_fmin.S: New file.
5501         * sysdeps/x86_64/fpu/s_fminf.S: New file.
5502         * sysdeps/x86_64/fpu/s_fminl.S: New file.
5504 2002-06-05  Brian Youmans <3diff@gnu.org>
5506         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5507         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5508         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5509         * sysdeps/ia64/fpu/e_asin.S: Likewise.
5510         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5511         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5512         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5513         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5514         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5515         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5516         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5517         * sysdeps/ia64/fpu/e_exp.S: Likewise.
5518         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5519         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5520         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5521         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5522         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5523         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5524         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5525         * sysdeps/ia64/fpu/e_log.S: Likewise.
5526         * sysdeps/ia64/fpu/e_logf.S: Likewise.
5527         * sysdeps/ia64/fpu/e_pow.S: Likewise.
5528         * sysdeps/ia64/fpu/e_powf.S: Likewise.
5529         * sysdeps/ia64/fpu/e_powl.S: Likewise.
5530         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5531         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5532         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5533         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5534         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5535         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5536         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5537         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5538         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5539         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5540         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5541         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5542         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5543         * sysdeps/ia64/fpu/libm_error.c: Likewise.
5544         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5545         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5546         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5547         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5548         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5549         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5550         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5551         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5552         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5553         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5554         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5555         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5556         * sysdeps/ia64/fpu/s_logb.S: Likewise.
5557         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5558         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5559         * sysdeps/ia64/fpu/s_modf.S: Likewise.
5560         * sysdeps/ia64/fpu/s_modff.S: Likewise.
5561         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5562         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5563         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5564         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5565         * sysdeps/ia64/fpu/s_rint.S: Likewise.
5566         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5567         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5568         * sysdeps/ia64/fpu/s_round.S: Likewise.
5569         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5570         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5571         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5572         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5573         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5574         * sysdeps/ia64/fpu/s_significand.S: Likewise.
5575         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5576         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5577         * sysdeps/ia64/fpu/s_tan.S: Likewise.
5578         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5579         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5580         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5581         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5582         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5583         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5584         reflect IBM donation of math library to FSF
5585         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5586         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5587         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5588         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5589         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5590         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5591         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5592         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5593         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5594         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5595         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5596         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5597         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5598         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5599         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5600         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5601         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5602         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5603         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5604         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5605         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5606         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5607         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5608         * sysdeps/vax/__longjmp.c: Likewise.
5609         * sysdeps/vax/setjmp.c: Likewise.
5610         * libio/filedoalloc.c: Fixed BSD copying permission notice to
5611         remove advertising clause
5612         * sysdeps/vax/htonl.s: Likewise.
5613         * sysdeps/vax/htons.s: Likewise.
5614         * libio/wfiledoalloc.c: Likewise.
5615         * stdlib/random.c: Likewise.
5616         * stdlib/random_r.c: Likewise.
5617         * sysdeps/mach/sys/reboot.h: Likewise.
5618         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5619         * sysdeps/posix/getaddrinfo.c: Likewise.
5620         * sunrpc/des_impl.c: Updated license permission notice to Lesser
5621         GPL and corrected pointer to point to the correct license.
5623 2002-07-04  Andreas Jaeger  <aj@suse.de>
5625         * scripts/config.guess: New upstream version.
5626         * scripts/config.sub: Likewise.
5628 2002-07-02  Andreas Schwab  <schwab@suse.de>
5630         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5631         in parallel to bumping up the buffer pointer.
5633 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5635         * math/libm-test.inc (acos_test): Add missing L suffix for
5636         expected result.
5637         (cpow_test): Likewise.
5638         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5639         error for acos (0.0625).
5641 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5643         * locale/iso-639.def: Add entry for Ganda.
5644         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5645         definition.
5646         (address_finish): Handle entries with two letter ISO 639 code.
5648         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5649         directory if it existed before.
5650         * iconv/iconvconfig.c: Implement --prefix option.
5652         * math/libm-test.inc (cexp_test): Add missing L suffix for
5653         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
5654         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5655         1.25 i).
5657 2002-05-29  H.J. Lu  <hjl@gnu.org>
5659         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5660         is turned on.
5662 2002-05-28  H.J. Lu  <hjl@gnu.org>
5664         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5665         are not dlopened on the dependency list of a dlopened object.
5667 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5669         * elf/dl-lookup.c (add_dependency): It is not necessary to add
5670         dependencies if they are created between objects which are created
5671         while processing RTLD_NOW for objects loaded as part of the same
5672         dlopen call.
5674 2002-06-14  H.J. Lu  <hjl@gnu.org>
5676         * elf/Makefile (tests): Add circleload1.
5677         (modules-names): Add circlemod1, circlemod2, circlemod3,
5678         circlemod1a, circlemod2a and circlemod3a.
5679         ($(objpfx)circleload1): New target.
5680         ($(objpfx)circleload1.out): Likewise.
5681         ($(objpfx)circlemod1.so): Likewise.
5682         ($(objpfx)circlemod2.so): Likewise.
5683         ($(objpfx)circlemod1a.so): Likewise.
5684         ($(objpfx)circlemod2a.so): Likewise.
5685         * elf/circleload1.c: New file.
5686         * elf/circlemod1.c: New file.
5687         * elf/circlemod1a.c: New file.
5688         * elf/circlemod2.c: New file.
5689         * elf/circlemod2a.c: New file.
5690         * elf/circlemod3.c: New file.
5691         * elf/circlemod3a.c: New file.
5693 2002-06-18  Amos Waterland  <apw@us.ibm.com>
5695         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5696         file descriptor.
5697         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5698         add check for fd not open for writing.
5700         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5701         completed element(s) and do not suspend thread if so.  Patch
5702         heavily modified by drepper.
5704         * rt/tst-aio7.c: New file.  Regression test for problems which the
5705         above three changes fix.
5706         * rt/Makefile (tests): Add tst-aio7.
5708 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
5710         * rt/tst-aio6.c: Fix comment.
5712         * catgets/gencat.c (read_input_file): Handle more than one slash
5713         at end of line correctly [PR libc/3926].
5714         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5716         * catgets/sample.SJIS: Add test case for above bug.
5717         * catgets/test-gencat.c: Adjust test code.
5718         * catgets/test-gencat.sh: Adjust expected results.
5720         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5721         to skip relative relocations.
5722         Patch by Geoff Keating <geoffk@redhat.com>.
5724 2002-05-26  Bruno Haible  <bruno@clisp.org>
5726         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5727         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5728         All callers changed.
5729         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5730         STANDARD_FROM_LOOP_ERR_HANDLER.
5731         (utf8_internal_loop): Likewise.
5732         (ucs2_internal_loop): Likewise.
5733         (internal_ucs2_loop): Perform error handling like in
5734         STANDARD_FROM_LOOP_ERR_HANDLER.
5735         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5736         in STANDARD_FROM_LOOP_ERR_HANDLER.
5737         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5738         handling.
5739         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5740         in STANDARD_FROM_LOOP_ERR_HANDLER.
5741         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5742         handling.
5743         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5744         in STANDARD_FROM_LOOP_ERR_HANDLER.
5745         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5746         handling.
5747         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5748         STANDARD_FROM_LOOP_ERR_HANDLER.
5749         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5750         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5751         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5752         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5753         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5754         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5755         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5756         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5757         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5758         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5759         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5760         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5761         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5762         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5763         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5764         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5765         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5766         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5767         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5768         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5769         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5770         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5771         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5772         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5773         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5774         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5775         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5776         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5777         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
5778         an error, still set result = __GCONV_ILLEGAL_INPUT.
5779         (BODY for TO_LOOP): Likewise.
5780         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5781         STANDARD_FROM_LOOP_ERR_HANDLER.
5782         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5783         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5784         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5785         handling.
5786         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5787         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5788         STANDARD_FROM_LOOP_ERR_HANDLER.
5789         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5790         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5791         STANDARD_FROM_LOOP_ERR_HANDLER.
5792         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5793         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5794         STANDARD_FROM_LOOP_ERR_HANDLER.
5795         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5796         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5797         STANDARD_FROM_LOOP_ERR_HANDLER.
5798         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5799         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5800         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5801         handling.
5802         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5803         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5804         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5805         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5807 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5809         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5810         labels in assembler instructions.
5812 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
5814         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5815         not enough content is available.
5816         * libio/tst-eof.c: New file.
5817         * libio/Makefile (tests): Add tst-eof.
5819         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5820         update atime.
5821         * libio/tst-atime.c: New file.
5822         * libio/Makefile (tests): Add tst-atime.
5824         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5825         handling of overly long words.
5827 2002-06-25  Andreas Jaeger  <aj@suse.de>
5829         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5830         to not use 32-bit pc relative relocations.
5831         (elf_machine_dynamic): Likewise.
5833 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5835         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5836         (__GETDENTS): Check for failed getdents64 syscall.
5837         * dirent/Makefile (tests): Add bug-readdir1.
5838         * dirent/bug-readdir1.c: New file.
5840 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
5842         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5843         lookups.
5844         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5845         code.  Print TLS modid and offset for modules containing PT_TLS
5846         segments.
5848 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5850         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5851         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5852         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5853         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5855 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5857         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5858         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5859         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5860         * nss/getXXent_r.c (NEW, NEW1): Define.
5861         (NEW (REENTRANT_GETNAME)): Strong alias to
5862         INTERNAL (REENTRANT_GETNAME).
5863         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5865 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5867         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5868         (_IO_file_jumps_mmap): Use it.
5869         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5870         * libio/libioP.h: Remove _IO_wdefault_setbuf and
5871         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
5872         prototype.
5873         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5874         (_IO_wfile_jumps_mmap): Don't use it anymore.
5875         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5876         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5877         _IO_wdefault_setbuf.
5878         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5879         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5880         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5882 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
5884         * libio/Makefile (tests): Add tst-mmap-setvbuf.
5885         * libio/tst-mmap-setvbuf.c: New test.
5887 2002-06-21  Andreas Jaeger  <aj@suse.de>
5889         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5891 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
5893         * include/unistd.h (__fork_internal): Remove.
5894         (__fork): Don't define to __fork_internal.
5895         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5896         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5897         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5898         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5899         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5901 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5903         * po/hr.po: New file.
5905 2002-06-11  Wolfram Gloger  <wg@malloc.de>
5907         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5908         Reported by Michael Meissner <meissner@redhat.com>.
5910 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5912         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5913         Patch by Hans Boehm <hans_boehm@hp.com>.
5915 2002-06-20  Andreas Jaeger  <aj@suse.de>
5917         * math/libm-test.inc: Use exact values as input parameters,
5918         compute output parameters with 36 digits for 128-bit long doubles.
5919         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5920         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
5921         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
5923 2002-06-13  Stephen L Moshier  <steve@moshier.net>
5925         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
5926         argument or result is subnormal.
5928 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
5930         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
5931         quotient.
5932         * sysdeps/i386/fpu/s_remquof.S: Likewise.
5933         * sysdeps/i386/fpu/s_remquol.S: Likewise.
5935         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
5937 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
5939         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
5940         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
5941         Reported by Peter A. Buhr.
5943 2002-06-15  Roland McGrath  <roland@frob.com>
5945         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
5946         warning.
5948         * sysdeps/mach/hurd/getcwd.c
5949         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
5951         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
5952         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
5954         * sysdeps/alpha/divrem.h: Use local label instead of global one for
5955         jump to local subroutine.
5957 2002-06-14  Roland McGrath  <roland@frob.com>
5959         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
5960         * sysdeps/mach/hurd/Makeconfig: ... here.
5962 2002-06-13  Andreas Schwab  <schwab@suse.de>
5964         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
5965         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
5966         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
5968 2002-06-13  Roland McGrath  <roland@frob.com>
5970         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
5971         * hurd/hurdstartup.c (_hurd_startup): Likewise.
5972         Use intptr_t instead of int for argc in stack layout.
5973         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
5974         (_dl_init_first): Likewise.
5975         (_hurd_stack_setup): Likewise.
5976         (init1): Add a cast.
5977         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
5979         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
5980         argument to pfinet_siocgifconf RPC.
5982 2002-06-13  Andreas Schwab  <schwab@suse.de>
5984         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
5985         expansion order.
5987 2002-06-12  Roland McGrath  <roland@frob.com>
5989         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
5990         if already defined.
5991         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
5992         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
5994 2002-06-11  Roland McGrath  <roland@frob.com>
5996         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
5997         file on [!RTLD_STAT64].
5998         * sysdeps/mach/hurd/fxstat64.c: Likewise.
6000         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
6001         (__fdopen): Use INTUSE.
6002         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
6004         * stdio-common/tmpfile64.c: File removed.
6005         * sysdeps/generic/tmpfile64.c: New file.
6006         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
6007         if not already defined.
6008         (tmpfile): Use it in place of __GT_FILE.
6010         * include/unistd.h: Declare __chown_internal.
6012         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
6013         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
6015 2002-06-09  Roland McGrath  <roland@frob.com>
6017         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
6018         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
6019         value of HURD_INTERFACE_VERSION >= 20020609.
6020         * sysdeps/mach/hurd/configure: Regenerated.
6021         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
6022         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
6023         convert a struct stat64 into a struct stat and return 0 or -1
6024         with errno set to EOVERFLOW.
6025         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
6026         for struct statfs64 to struct statfs.
6027         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
6028         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
6029         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
6030         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
6031         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
6032         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
6033         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
6034         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
6035         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
6036         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
6037         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
6038         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
6039         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
6040         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
6041         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
6042         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
6043         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
6044         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
6045         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
6046         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
6047         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
6048         Use struct stat64 for io_stat argument.
6049         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
6050         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
6051         to io_seek.
6052         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
6053         * hurd/fd-write.c (_hurd_fd_write): Likewise.
6054         * hurd/hurd/fd.h: Update decls.
6055         * sysdeps/mach/hurd/getcwd.c
6056         (_hurd_canonicalize_directory_name_internal): Use ino64_t
6057         and struct dirent64.
6058         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
6059         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
6060         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
6061         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
6063 2002-06-08  Roland McGrath  <roland@frob.com>
6065         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
6066         instead of unsigned long int for __allocation and __size members.
6068 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
6070         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
6071         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
6072         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
6073         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
6075 2002-06-07  Roland McGrath  <roland@frob.com>
6077         * sysdeps/mach/hurd/bits/environments.h: File removed.
6079 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
6081         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
6082         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
6083         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
6084         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
6085         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
6086         (sendfile64): Likewise.
6087         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
6088         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
6089         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
6090         Likewise.
6091         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
6093         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
6094         already defined.
6096 2002-06-04  Bruno Haible  <bruno@clisp.org>
6098         * sysdeps/cris/stackinfo.h: New file.
6100         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
6101         to an integer type before performing bit operations on it.
6103 2002-06-05  Roland McGrath  <roland@frob.com>
6105         * sysdeps/generic/sendfile.c: Include <errno.h>.
6106         * sysdeps/generic/sendfile64.c: Likewise.
6108         * io/Makefile (routines): Add sendfile and sendfile64.
6109         (headers): Add sys/sendfile.h to the list.
6110         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
6111         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
6112         * io/sys/sendfile.h: ... here.
6113         * sysdeps/generic/sendfile.c: New file.
6114         * sysdeps/generic/sendfile64.c: New file.
6116         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
6117         Move sendfile, sendfile64 to ...
6118         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
6119         * sysdeps/mach/hurd/sendfile.c: New file.
6120         * sysdeps/mach/hurd/sendfile64.c: New file.
6122         * sysdeps/mach/nanosleep.c: New file.
6124 2002-06-04  Roland McGrath  <roland@frob.com>
6126         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
6127         * sysdeps/alpha/elf/configure: New file (generated).
6129 2002-06-02  Roland McGrath  <roland@frob.com>
6131         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
6133 2002-06-01  Roland McGrath  <roland@frob.com>
6135         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
6136         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
6138 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
6140         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
6141         Add nsmap.
6142         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
6143         Remove nstimes setting.
6144         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
6145         * resolv/res_send.c (res_nsend): Don't close unconditionally if
6146         there is mix of IPv6 and IPv4 nameservers.
6147         Use nsmap array to find free slots and preserve nameserver ordering.
6148         Fix RES_ROTATE.
6150 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
6152         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
6153         use this header with LFS.
6155         * po/sk.po: Update from translation team.
6157 2002-05-28  Andreas Schwab  <schwab@suse.de>
6159         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
6160         message when finding object of wrong class.
6162 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
6164         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
6165         Patch by <radu@netsoft.ro>.
6167 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
6169         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
6170         Add readahead.
6171         * sysdeps/unix/sysv/linux/readahead.c: New file.
6172         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
6173         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
6174         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
6175         Add sendfile64 alias to sendfile syscall.
6176         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6177         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6178         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6179         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
6180         syscall.
6182         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
6183         special section for PIC register loading.
6184         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
6186         * config.h.in: Define HAVE_HIDDEN.
6187         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
6189         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
6191 2002-05-28  Roland McGrath  <roland@frob.com>
6193         * sysdeps/mach/alpha/setfpucw.c: New file.
6195 2002-05-26  Roland McGrath  <roland@frob.com>
6197         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
6198         Use integer_t instead of int for IOC_VOID case.
6200 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
6202         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
6204 2002-05-26  Bruno Haible  <bruno@clisp.org>
6206         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
6207         end of the ISO-8859-7 from idx table.
6209 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
6211         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
6213 2002-05-24  David S. Miller  <davem@redhat.com>
6215         * string/bits/string2.h (memset): Do not try to optimize when
6216         not _STRING_ARCH_unaligned if GCC will do the right thing.
6218 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
6220         * posix/regex.c: Define `inline' as a macro into nothing for the
6221         compilers which lack the keyword.
6222         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
6223         for the compatibility of gawk.
6224         * posix/regcomp.c: Add fake implementation of isblank() for the
6225         environments which lack the function.
6226         Don't use free_charset() in case of non-i18n envs.
6227         (build_range_exp): Don't use i18n related code in case of non-i18n
6228         envs.
6229         (build_collating_symbol): Likewise.
6230         (build_equiv_class): Likewise.
6231         (build_charclass): Likewise.
6232         (re_compile_fastmap_iter): Likewise.
6233         (parse_bracket_exp): Likewise.
6234         (build_word_op): Likewise.
6235         (regfree): Don't use free_charset() in case of non-i18n envs.
6236         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
6237         re_token_type_t in case of non-i18n envs.
6238         Don't define re_charset_t in case of non-i18n envs.
6239         Change the type of wcs of re_string_t from wchar_t to wint_t,
6240         since we store also WEOF.
6241         * posix/regex_internal.c: (re_string_realloc_buffers): Change
6242         the type of wcs of re_string_t from wchar_t to wint_t.
6243         (re_string_reconstruct): Likewise.
6244         (create_ci_newstate): Don't use i18n related code in case of
6245         non-i18n envs.
6246         (create_cd_newstate): Likewise.
6248 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
6250         * iconv/loop.c: Fix typo.
6252 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
6254         * inet/ether_line.c (ether_line): Fix a typo causing only
6255         lower 4 bits of each ethernet address byte being assigned.
6256         Don't modify what line points to.
6257         * inet/tst-ether_aton.c (main): Add ether_line tests.
6259 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
6261         * manual/filesys.texi: Don't make readlink example leak memory
6262         when readlink fails.
6264 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
6266         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
6267         some more security checks.
6269 2002-05-17  David S. Miller  <davem@redhat.com>
6271         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
6273 2002-05-16  David S. Miller  <davem@redhat.com>
6275         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
6276         (elf_machine_dynamic): Use it to force PIC register to be loaded.
6277         (elf_machine_load_address): Likewise.
6278         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
6280         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
6281         is unaligned, do not forget to fully initialize %g1 magic value.
6283         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
6284         register definitions and provide 32-bit variants of structures
6285         during 64-bit builds.
6287         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
6288         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
6289         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
6290         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
6291         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
6292         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
6293         Do not clear implicit one bit here, it must be done post-rounding.
6294         Only pad to the left using left shift if value uses less than the
6295         available fractional bits.
6297 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6299         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
6300         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
6301         (shared-only-routines): Likewise.
6302         * sysdeps/powerpc/libgcc-compat.c: New file.
6303         * sysdeps/wordsize-32/cmpdi2.c: Removed.
6304         * sysdeps/wordsize-32/fixdfdi.c: Removed.
6305         * sysdeps/wordsize-32/fixsfdi.c: Removed.
6306         * sysdeps/wordsize-32/shdi3.c: Removed.
6308 2002-05-16  Bruno Haible  <bruno@clisp.org>
6310         * MakeTAGS (libc.pot): Don't sort the output.
6311         * po/header.pot: Update to match xgettext 0.11 output.
6313 2002-05-16  Bruno Haible  <bruno@clisp.org>
6315         * MakeTAGS (subdirs): Remove duplicates.
6317 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
6319         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
6320         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
6321         alias.
6323 2002-05-19  Andreas Jaeger  <aj@suse.de>
6325         * sysdeps/unix/sysv/linux/configure.in: Warn against an
6326         installation in /usr/local.
6328 2002-05-16  Bruno Haible  <bruno@clisp.org>
6330         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
6331         string as argument of #error.
6333 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
6335         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
6336         don't define static.  Remove old __realpath function.  TC1 of
6337         POSIX 2001 will allow the second parameter to be NULL.
6338         * stdlib/test-canon.c: Comment out test for NULL as second
6339         parameter of realpath.
6341         * time/offtime.c (__offtime): Set errno if overflow is detected.
6343         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
6344         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
6345         dl-brk and dl-sbrk.
6347         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
6348         (fdimf): Likewise.
6350 2002-05-15  Roland McGrath  <roland@frob.com>
6352         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
6354 2002-05-12  Bruno Haible  <bruno@clisp.org>
6356         * iconvdata/testdata/EUC-JISX0213: New file.
6357         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
6358         * iconvdata/testdata/SHIFT_JISX0213: New file.
6359         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
6360         * iconvdata/testdata/ISO-2022-JP-3: New file.
6361         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
6362         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
6363         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
6364         contains comments indicating precomposed characters.
6366 2002-04-21  Bruno Haible  <bruno@clisp.org>
6368         * iconvdata/iso-2022-jp-3.c: New file.
6369         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
6370         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
6371         (LDFLAGS-ISO-2022-JP-3.so): New variable.
6372         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
6373         (distribute): Add iso-2022-jp-3.c.
6375 2002-05-12  Bruno Haible  <bruno@clisp.org>
6377         * iconvdata/tst-table-to.c (main): Restore handling of
6378         transliterations, broken by last patch.
6380 2002-05-12  Bruno Haible  <bruno@clisp.org>
6382         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
6384 2002-05-12  Bruno Haible  <bruno@clisp.org>
6386         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
6387         when there is not enough room in the output buffer.
6388         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
6390 2002-04-20  Bruno Haible  <bruno@clisp.org>
6392         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
6393         macros.
6394         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6395         Also make this macro work if FROM_DIRECTION evaluates to 0.
6396         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6397         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
6398         of consume_incomplete.
6399         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6400         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
6401         4, not 8.
6402         * iconvdata/cp1258.c: Likewise.
6403         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6404         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
6405         not 2.
6406         * iconvdata/ibm933.c: Likewise.
6407         * iconvdata/ibm935.c: Likewise.
6408         * iconvdata/ibm937.c: Likewise.
6409         * iconvdata/ibm939.c: Likewise.
6410         * iconvdata/iso-2022-cn.c: Define
6411         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6412         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
6413         * iconvdata/iso-2022-cn-ext.c: Likewise.
6414         * iconvdata/iso-2022-jp.c: Define
6415         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6416         {MIN,MAX}_NEEDED_{FROM,TO}.
6417         * iconvdata/tcvn5712-1.c: Define
6418         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6419         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
6420         * iconvdata/euc-jisx0213.c: Define
6421         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6422         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
6423         * iconvdata/shift_jisx0213.c: Likewise.
6425 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6427         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
6428         shdi3, fixdfdi, fixsfdi in csu dir.
6429         (shared-only-routines): Likewise.
6430         * sysdeps/wordsize-32/cmpdi2.c: New file.
6431         * sysdeps/wordsize-32/shdi3.c: New file.
6432         * sysdeps/wordsize-32/fixdfdi.c: New file.
6433         * sysdeps/wordsize-32/fixsfdi.c: New file.
6434         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
6435         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
6436         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
6438         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
6439         Only use va_arg if the argument will be used [PR libc/3259].
6441 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
6443         * catgets/catgets.c (catopen): Free buffer if internal catalog
6444         open fails.
6446 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6448         * debug/xtrace.sh: Make more robust.  For realtime tracking use
6449         non-buffering methods.
6450         * debug/pcprofiledump.c: Implement -u option.
6451         Patch by Roger Luethi <rl@hellgate.ch>.
6453 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
6455         * include/netinet/in.h (bindresvport_internal): Add prototype.
6456         * include/rpc/auth.h  (authunix_create_internal,
6457         authunix_create_default_internal, authnone_create_internal,
6458         authdes_pk_create_internal): Add prototypes.
6459         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
6460         clntudp_create_internal, clntudp_bufcreate_internal,
6461         clntunix_create_internal): Add prototypes.
6462         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
6463         svc_getreq_internal, svc_getreq_common_internal,
6464         svc_getreqset_internal, svc_getreq_poll_internal,
6465         svc_register_internal, svc_unregister_internal,
6466         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
6467         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
6468         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
6469         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
6470         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
6471         * inet/rcmd.c (rcmd_af): Use __listen.
6472         (rresvport_af): Use __bind.
6473         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
6474         authunix_create, authunix_create_default, authnone_create,
6475         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
6476         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
6477         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
6478         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
6479         _authenticate, add INTDEF after such function definitions.
6480         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6481         __setsockopt, __getsockname instead of non-__ variants.
6482         * sunrpc/pmap_rmt.c: Likewise.
6483         * sunrpc/rtime.c: Likewise.
6484         * sunrpc/svc_udp.c: Likewise.
6485         * sunrpc/clnt_unix.c: Likewise.
6486         * sunrpc/svc_unix.c: Likewise.
6487         * sunrpc/bindrsvprt.c: Likewise.
6488         * sunrpc/svc_tcp.c: Likewise.
6489         * sunrpc/auth_none.c: Likewise.
6490         * sunrpc/clnt_raw.c: Likewise.
6491         * sunrpc/clnt_tcp.c: Likewise.
6492         * sunrpc/auth_unix.c: Likewise.
6493         * sunrpc/key_call.c: Likewise.
6494         * sunrpc/clnt_gen.c: Likewise.
6495         * sunrpc/pm_getmaps.c: Likewise.
6496         * sunrpc/clnt_simp.c: Likewise.
6497         * sunrpc/pmap_clnt.c: Likewise.
6498         * sunrpc/svc_run.c: Likewise.
6499         * sunrpc/svc.c: Likewise.
6500         * sunrpc/svc_simple.c: Likewise.
6501         * sunrpc/pm_getport.c: Likewise.
6502         * sunrpc/auth_des.c: Likewise.
6503         * sunrpc/svc_auth.c: Likewise.
6504         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6505         __register_frame_info_table_bases, __deregister_frame_info_bases):
6506         Add INTDEF.
6507         (__register_frame_info_bases_internal,
6508         __register_frame_info_table_bases_internal,
6509         __deregister_frame_info_bases_internal): Add prototypes.
6510         (__register_frame_info, __register_frame): Use INTUSE in call to
6511         __register_frame_info_bases.
6512         (__register_frame_info_table): Similarly.
6513         (__deregister_frame_info, __deregister_frame): Similarly.
6514         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6515         sendto as weak alias.
6516         * sysdeps/mach/hurd/sendto.c: Likewise.
6517         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6518         recvfrom as weak alias.
6519         * sysdeps/mach/hurd/recvfrom.c: Likewise.
6520         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6521         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6522         recvmsg as weak alias.
6523         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6524         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6525         sendmsg as weak alias.
6526         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6527         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6528         setsockopt, add setsockopt as weak alias.
6529         * sysdeps/mach/hurd/setsockopt.c: Likewise.
6530         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6531         weak alias.
6532         * sysdeps/mach/hurd/bind.c: Likewise.
6533         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6534         as weak alias.
6535         * sysdeps/mach/hurd/listen.c: Likewise.
6536         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6537         getsockname, add getsockname as weak alias.
6538         * sysdeps/mach/hurd/getsockname.c: Likewise.
6539         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6540         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6541         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6542         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6543         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6544         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6545         Add aliases.
6546         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6547         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6548         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6549         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6550         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6551         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6552         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6553         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6554         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6555         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6556         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6557         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6559 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6561         * locale/programs/localedef.h (show_archive_content): Add verbose
6562         argument.
6563         * locale/programs/localedef.c (main): Adjust caller.
6564         * locale/programs/locarchive.c (struct nameent, struct dataent): New
6565         types.
6566         (nameentcmp, dataentcmp): New functions.
6567         (xstrcmp): Remove.
6568         (show_archive_content): Print verbose listing with --list-archive -v.
6570 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6572         * locale/programs/locarchive.c (open_archive): Take extra argument
6573         readonly.  If true open file with O_RDONLY and don't create the
6574         archive if it doesn't exist.
6575         Adapt all callers.
6576         (close_archive): Don't do anything if fd element is -1.
6577         * locale/programs/localedef.h (open_archive): Adjust prototype.
6578         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6579         call.
6581         * malloc/malloc.c (__posix_memalign): Correct check for size of
6582         alignment value [PR libc/3444].
6584         * include/stdio.h: Remove references to old stdio implementation.
6586         * libio/Makefile (bug-ungetwc2-ENV): Define.
6588 2002-05-13  Roland McGrath  <roland@frob.com>
6590         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6592         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6594 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
6596         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6597         Allocate three, not two, more than LEN when appending '/.'.
6598         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
6599         if NAME ends with '/.' if it is shorter than 2 chars.
6601 2002-05-12  Roland McGrath  <roland@frob.com>
6603         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6604         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6606         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6607         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6609 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6611         * sysdeps/ia64/Makefile: Remove extra endif.
6612         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6614 2002-05-10  Andreas Schwab  <schwab@suse.de>
6616         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6618 2002-05-09  Andreas Jaeger  <aj@suse.de>
6620         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6621         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6622         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6624         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6625         * sysdeps/wordsize-64/glob.c: ...here.
6626         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6627         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6628         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6630 2002-05-08  Roland McGrath  <roland@frob.com>
6632         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6633         O_NOTRANS flag in "." lookup.
6635 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
6637         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6639 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
6641         * locale/duplocale.c (__duplocale): Update special members only
6642         when allocation succeeded.
6644 2002-05-03  Roland McGrath  <roland@frob.com>
6646         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6647         we can only build libc.so.0.3(GLIBC_2.2.6) now.
6649 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
6651         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6652         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6653         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6654         * sysdeps/ia64/ia64libgcc.S: New file.
6656 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
6658         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6660         * malloc/memusage.c: Distinguish anonymous mmap.
6662 2002-05-01  Roland McGrath  <roland@frob.com>
6664         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6665         and use INTDEF on it.
6666         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6668         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6670         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6672 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
6674         * malloc/memusage.c: Add support for tracking mmap & friends.
6675         * malloc/memusage.sh: Implement -m/--mmap option.
6677 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6679         * locale/programs/locarchive.c (create_archive): Add archivefname
6680         argument, create fname from it.
6681         (enlarge_archive): Honour output_prefix.
6682         (open_archive): Likewise.
6684 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6686         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6687         too many stpcpy macros.
6689 2002-04-26  Bruno Haible  <bruno@clisp.org>
6691         * locale/programs/ld-collate.c (collate_read): Cast first argument
6692         for "%.*s" to int.
6694 2002-04-26  Bruno Haible  <bruno@clisp.org>
6696         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6697         __dcngettext_internal): New declarations.
6698         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6699         attribute declarations.
6701 2002-04-30  Roland McGrath  <roland@frob.com>
6703         Removed old GNU stdio implementation; GNU libio is now the only option.
6704         * configure.in: Removed --enable-libio option and @stdio@ subst var.
6705         Define USE_IN_LIBIO unconditionally.
6706         * configure: Regenerated.
6707         * Makeconfig (stdio): Set to libio by default.
6708         * config.make.in (stdio): Variable removed.
6709         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6710         * sysdeps/unix/sysv/linux/configure: Regenerated.
6711         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6712         * sysdeps/mach/hurd/configure: Regenerated.
6713         * stdio/.cvsignore: File removed.
6714         * stdio/Makefile: File removed.
6715         * stdio/Versions: File removed.
6716         * stdio/__fbufsize.c: File removed.
6717         * stdio/__flbf.c: File removed.
6718         * stdio/__fpending.c: File removed.
6719         * stdio/__fpurge.c: File removed.
6720         * stdio/__freadable.c: File removed.
6721         * stdio/__freading.c: File removed.
6722         * stdio/__fsetlocking.c: File removed.
6723         * stdio/__fwritable.c: File removed.
6724         * stdio/__fwriting.c: File removed.
6725         * stdio/clearerr.c: File removed.
6726         * stdio/fclose.c: File removed.
6727         * stdio/fcloseall.c: File removed.
6728         * stdio/feof.c: File removed.
6729         * stdio/ferror.c: File removed.
6730         * stdio/fflush.c: File removed.
6731         * stdio/fgetc.c: File removed.
6732         * stdio/fgetpos.c: File removed.
6733         * stdio/fgets.c: File removed.
6734         * stdio/fileno.c: File removed.
6735         * stdio/fmemopen.c: File removed.
6736         * stdio/fopen.c: File removed.
6737         * stdio/fopncook.c: File removed.
6738         * stdio/fputc.c: File removed.
6739         * stdio/fputs.c: File removed.
6740         * stdio/fread.c: File removed.
6741         * stdio/freopen.c: File removed.
6742         * stdio/fseek.c: File removed.
6743         * stdio/fsetpos.c: File removed.
6744         * stdio/ftell.c: File removed.
6745         * stdio/fwrite.c: File removed.
6746         * stdio/getc.c: File removed.
6747         * stdio/getchar.c: File removed.
6748         * stdio/getdelim.c: File removed.
6749         * stdio/gets.c: File removed.
6750         * stdio/glue.c: File removed.
6751         * stdio/internals.c: File removed.
6752         * stdio/linewrap.c: File removed.
6753         * stdio/linewrap.h: File removed.
6754         * stdio/memstream.c: File removed.
6755         * stdio/newstream.c: File removed.
6756         * stdio/obstream.c: File removed.
6757         * stdio/putc.c: File removed.
6758         * stdio/putchar.c: File removed.
6759         * stdio/puts.c: File removed.
6760         * stdio/rewind.c: File removed.
6761         * stdio/setbuf.c: File removed.
6762         * stdio/setbuffer.c: File removed.
6763         * stdio/setlinebuf.c: File removed.
6764         * stdio/setvbuf.c: File removed.
6765         * stdio/stdio.h: File removed.
6766         * stdio/ungetc.c: File removed.
6767         * stdio/vasprintf.c: File removed.
6768         * stdio/vscanf.c: File removed.
6769         * stdio/vsnprintf.c: File removed.
6770         * stdio/vsprintf.c: File removed.
6771         * stdio/vsscanf.c: File removed.
6772         * sysdeps/generic/defs.c: File removed.
6773         * sysdeps/generic/fdopen.c: File removed.
6774         * sysdeps/generic/pipestream.c: File removed.
6775         * sysdeps/generic/stdio_init.c: File removed.
6776         * sysdeps/generic/sysd-stdio.c: File removed.
6777         * sysdeps/generic/vdprintf.c: File removed.
6778         * sysdeps/mach/hurd/defs.c: File removed.
6779         * sysdeps/mach/hurd/fdopen.c: File removed.
6780         * sysdeps/mach/hurd/pipestream.c: File removed.
6781         * sysdeps/mach/hurd/stdio_init.c: File removed.
6782         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6783         * sysdeps/mach/hurd/vdprintf.c: File removed.
6784         * sysdeps/posix/defs.c: File removed.
6785         * sysdeps/posix/fdopen.c: File removed.
6786         * sysdeps/posix/pipestream.c: File removed.
6787         * sysdeps/posix/stdio_init.c: File removed.
6788         * sysdeps/posix/vdprintf.c: File removed.
6789         * sysdeps/unix/pipestream.c: File removed.
6790         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6791         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6792         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6794 2002-04-29  Roland McGrath  <roland@frob.com>
6796         * include/libc-symbols.h (link_warning): Use `unused' attribute.
6798 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
6800         * sysdeps/generic/tls.h: Describe what must be defined.
6802         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6803         glob_in_dir [PR libc/3385].
6804         * posix/globtest.sh: Add test case.
6806         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6807         //TRANSLIT twice.
6809 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
6811         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6812         _internal symbol handling.
6813         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6815 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6817         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6818         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6820 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
6822         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6823         not _LIBC and RE_ENABLE_I18N.
6824         (build_range_exp): Implement for not _LIBC.
6825         (build_collating_symbol): Likewise.
6826         (parse_bracket_exp): Unify redundant error handlings.
6827         Don't erase mbcset for non matching list in multibyte envs.
6828         (build_word_op): Add '_' to matching list for \w operator.
6829         * posix/regex_internal.c (re_string_construct): Invoke
6830         build_upper_buffer in case of not RE_ENABLE_I18N.
6831         (re_string_reconstruct): Don't touch cur_state in case of not
6832         RE_ENABLE_I18N.
6833         * posix/regex_internal.h (attribute_hidden): New macro in case of
6834         not _LIBC.
6835         (re_charset_t): Define range_starts/ends in case of not _LIBC.
6836         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6837         RE_ENABLE_I18N.
6838         (transit_state_mb): Likewise.
6839         (check_node_accept_bytes): Implement the code evaluating range
6840         expression in case of not _LIBC.
6841         (find_collation_sequence_value): Hide in case of not _LIBC.
6843 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
6845         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6846         i386/semctl.c.
6847         (__old_semctl, __new_semctl): Only use va_arg if the argument will
6848         be used.
6850 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6852         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6854         * sysdeps/ia64/strncpy.S: Fix recovery code.
6855         Patch by David Mosberger <davidm@hpl.hp.com>.
6857 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6859         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6860         GLIBC_2.2.6.
6862 2002-04-14  Bruno Haible  <bruno@clisp.org>
6864         * posix/regex.c (re_max_failures): Add back symbol for binary
6865         compatibility.
6867 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
6869         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6870         of buffer building functions.
6871         * posix/regex_internal.c (re_string_allocate): New function.
6872         (re_string_realloc_buffers): New function.
6873         (re_string_skip_chars): New function.
6874         (re_string_reconstruct): New function.
6875         (re_string_construct): Adapt it to new interface of buffer building
6876         functions.
6877         (re_string_construct_common): Likewise.
6878         (build_wcs_buffer): Likewise.
6879         (build_wcs_upper_buffer): Likewise.
6880         (build_upper_buffer): Likewise.
6881         (re_string_translate_buffer): Likewise.
6882         (re_string_context_at): Adapt it to variable length buffers.
6883         * posix/regex_internal.h (re_string_t): Add new fields to handle
6884         variable length buffers.
6885         (re_match_context_t): Likewise.
6886         * posix/regexec.c (re_search_internal): Adapt it to new interface
6887         of re_string_t and re_match_context_t.
6888         (acquire_init_state_context): Likewise.
6889         (check_matching): Likewise.
6890         (check_halt_state_context): Likewise.
6891         (proceed_next_node): Likewise.
6892         (set_regs): Likewise.
6893         (sift_states_backward): Likewise.
6894         (clean_state_log_if_need): Likewise.
6895         (sift_states_iter_mb): Likewise.
6896         (sift_states_iter_bkref): Likewise.
6897         (add_epsilon_backreference): Likewise.
6898         (transit_state): Likewise.
6899         (transit_state_sb): Likewise.
6900         (transit_state_mb): Likewise.
6901         (transit_state_bkref): Likewise.
6902         (transit_state_bkref_loop): Likewise.
6903         (check_node_accept): Likewise.
6904         (match_ctx_init): Likewise.
6905         (extend_buffers): New function.
6907 2002-04-21  Bruno Haible  <bruno@clisp.org>
6909         * iconvdata/tst-table.sh: For the second check, use the truncated
6910         GB18030 charmap table, like for the first check.
6912 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6914         * elf/dl-load.c (open_verify): Correct __lseek parameters.
6915         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
6917 2002-04-23  H.J. Lu  <hjl@gnu.org>
6919         * include/math.h (isfinite): Fix a typo.
6921 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6923         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
6924         which is created by the test suite.
6926 2002-04-20  Bruno Haible  <bruno@clisp.org>
6928         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
6929         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
6931 2002-04-20  Bruno Haible  <bruno@clisp.org>
6933         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
6934         to avoid gcc warning.
6936 2002-04-20  Bruno Haible  <bruno@clisp.org>
6938         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
6939         of data->__statep->__count.
6941 2002-04-20  Bruno Haible  <bruno@clisp.org>
6943         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
6944         tag characters.
6945         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
6947 2002-04-24  Roland McGrath  <roland@frob.com>
6949         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
6950         use END macro instead of our own .end directive.
6951         Use `callsys' insn mnemonic instead of `call_pal'.
6953         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
6955         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
6956         macro; we need this for Hurd.
6958         Log entry was missing for 2002/03/24 commit of rev 1.8,
6959         goes with 2002-03-17 changes.
6960         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
6961         (sysdep_routines): Append ioperm here.
6962         (sysdep_headers): Append sys/io.h here.
6964 2002-04-23  Roland McGrath  <roland@frob.com>
6966         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
6967         * sysdeps/mach/hurd/sendto.c: Likewise.
6968         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
6969         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
6970         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
6972 2002-04-22  Roland McGrath  <roland@frob.com>
6974         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
6975         failure from i386_io_perm_* RPCs to ENOSYS.
6977 2002-04-22  Andreas Jaeger  <aj@suse.de>
6979         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
6981         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
6983         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
6984         register instead of destroying %rbx.
6986 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
6988         * string/string.h: Declare strerror_r also for XPG6.
6990 2002-04-19  Roland McGrath  <roland@frob.com>
6992         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
6994 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
6996         * Makefile: Add handling of xtests and xcheck targets.
6997         * MakeTAGS: Likewise.
6998         * Makeconfig: Likewise.
6999         * Makerules: Likewise.
7000         * Rules: Likewise.
7001         * manual/Makefile: Likewise.
7002         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
7003         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
7005 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
7007         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
7008         authnone_private_s.
7009         * sunrpc/auth_none.c: Include bits/libc-lock.h.
7010         Delete #ifdef _RPC_THREAD_SAFE_ block.
7011         (authnone_private): Make a struct, not a pointer to struct.
7012         (authnone_private_guard): New once-control variable.
7013         (authnone_create_once): New function, split out of
7014         authnone_create.  No need to allocate memory.
7015         (authnone_create): Just call authnone_create_once via
7016         __libc_once, then return &authnone_private->no_client.
7017         (authnone_marshal): Access private data via CLIENT argument,
7018         not authnone_private pointer.
7019         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
7020         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
7021         authnone_private_s.
7023 2002-04-12  H.J. Lu  <hjl@gnu.org>
7025         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
7027 2002-04-18  Bruno Haible  <bruno@clisp.org>
7029         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
7030         FROM_DIRECTION): Make the FROM direction stateless.
7031         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
7032         FROM_DIRECTION): Likewise.
7034 2002-04-15  Bruno Haible  <bruno@clisp.org>
7036         * iconvdata/JISX0213.TXT: New file.
7037         * iconvdata/jisx0213.h: New file.
7038         * iconvdata/jisx0213.c: New file.
7039         * iconvdata/euc-jisx0213.c: New file.
7040         * iconvdata/shift_jisx0213.c: New file.
7041         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
7042         * iconvdata/EUC-JISX0213.precomposed: New file.
7043         * iconvdata/SHIFT_JISX0213.precomposed: New file.
7044         * iconvdata/SHIFT_JISX0213.irreversible: New file.
7045         * iconvdata/tst-table-to.c (main): Make it work for encodings for
7046         which the "to" direction is stateful.
7047         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
7048         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
7049         SHIFT_JISX0213.
7050         (libJISX0213-routines): New variable.
7051         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
7052         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
7053         (LDFLAGS-libJISX0213.so): New variable.
7054         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
7055         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
7056         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
7058 2002-04-15  Bruno Haible  <bruno@clisp.org>
7060         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
7061         uint32_t.  Update to Unicode 3.2.
7062         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
7063         (BODY for TO_LOOP): Handle the ASCII range specially.
7064         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
7065         * iconvdata/testdata/BIG5HKSCS: Remove a character.
7066         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
7068 2002-04-15  Bruno Haible  <bruno@clisp.org>
7070         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
7071         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
7073 2002-04-15  Bruno Haible  <bruno@clisp.org>
7075         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
7076         (ucs4_to_cns11643): Update.
7077         * iconvdata/cns11643.c: Update to Unicode 3.2.
7078         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
7079         __cns11643_from_ucs4p2_tab): Regenerated.
7080         (__cns11643_from_ucs4p2c_tab): New array.
7081         * iconvdata/cvs11643l1.c: Update comments.
7082         * iconvdata/EUC-TW.irreversible: Remove two entries.
7084 2002-04-15  Bruno Haible  <bruno@clisp.org>
7086         * locale/C-translit.h.in: Update to Unicode 3.2.
7087         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
7088         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
7090 2002-04-15  Bruno Haible  <bruno@clisp.org>
7092         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
7093         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
7095 2002-04-15  Bruno Haible  <bruno@clisp.org>
7097         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
7098         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
7099         always one byte, not 0 bytes in some cases and 2 bytes in others.
7101         * iconvdata/tst-table-from.c (main): Correct the usage message.
7103 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
7105         * posix/regcomp.c (parse_expression): Fix incorrect error code.
7106         (parse_dup_op): Fix error handling like "a{}".
7107         (parse_bracket_exp): Add error handling.
7108         (fetch_number): Add error handling for "a{<very_large_number>}".
7110 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
7112         * posix/regcomp.c (parse_bracket_symbol): Add error handling
7113         in case that the symbol name is too long.
7114         (build_charclass): Handle [:lower:]/[:uppper:] correctly
7115         in case of REG_ICASE.
7117 2002-04-19  Andreas Jaeger  <aj@suse.de>
7119         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
7120         <hartvige@mips.com>.
7122 2002-04-15  H.J. Lu  <hjl@gnu.org>
7124         * include/math.h (__finitel_internal): Declare only if
7125         __NO_LONG_DOUBLE_MATH is not defined.
7126         (__isinfl_internal): Likewise.
7127         (__isnanl_internal): Likewise.
7129         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
7130         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
7131         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
7132         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
7133         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7134         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
7135         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7137         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
7138         __fcntl_internal.
7140         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
7141         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
7143 2002-04-15  Bruno Haible  <bruno@clisp.org>
7145         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
7146         (BODY for TO_LOOP): Likewise.
7147         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
7148         * iconvdata/tst-table.sh: Add support for encodings which contain
7149         precomposed Unicode characters, known to the iconv converter in both
7150         directions but not listed in the charmap.
7151         * iconvdata/IBM856.irreversible: New file.
7152         * iconvdata/IBM922.irreversible: New file.
7153         * iconvdata/IBM1132.irreversible: New file.
7154         * iconvdata/IBM1133.irreversible: New file.
7155         * iconvdata/IBM1160.irreversible: New file.
7156         * iconvdata/IBM1161.irreversible: New file.
7157         * iconvdata/IBM1163.irreversible: New file.
7158         * iconvdata/IBM1164.irreversible: New file.
7159         * iconvdata/ARMSCII-8.irreversible: New file.
7160         * iconvdata/TCVN5712-1.precomposed: New file.
7161         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
7162         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
7163         ARMSCII-8, TCVN5712-1.
7164         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
7165         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
7166         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
7167         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
7169 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
7171         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
7172         for EVENING69.  Include offsets in TZ environment variable.
7174 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
7176         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
7177         avoid compiler warnings.
7179         * locale/programs/localedef.c (main): Always call
7180         construct_output_path.
7182         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
7184         * locale/programs/locfile.c (to_archive): New variable.  To collect
7185         data which has to be added to the locale archive.
7186         (write_all_categories): Take new third parameter with locale name.
7187         Unless no_archive flag set add new locale data to the archive
7188         (write_locale_data): Unless no-archive flag set store generated data
7189         in to_archive data structure instead of generation output file.
7190         Add new parameter with locale category index.
7191         * locale/programs/locfile.h: Add new parameters in declaractions of
7192         write_all_categories and write_locale_data.
7193         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
7194         --add-to-archive, and --delete-from-archive options.  Pass extra
7195         parameter to write_all_categories.
7196         * locale/programs/localedef.h: Add prototypes for functions in
7197         locarchive.c.
7198         * locale/locarchive.h: New file.
7199         * locale/programs/locarchive.c: New file.
7200         * locale/Makefile (distribute): Add programs/locarchive.c and
7201         locarchive.h.
7202         (localedef-modules): Add md5 and locarchive.
7203         Add vpath to crypt subdir for md5.c.
7205         * locale/programs/ld-address.c: Pass locale category ID as new second
7206         parameter to write_locale_data.
7207         * locale/programs/ld-collate.c: Likewise.
7208         * locale/programs/ld-ctype.c: Likewise.
7209         * locale/programs/ld-identification.c: Likewise.
7210         * locale/programs/ld-measurement.c: Likewise.
7211         * locale/programs/ld-messages.c: Likewise.
7212         * locale/programs/ld-monetary.c: Likewise.
7213         * locale/programs/ld-name.c: Likewise.
7214         * locale/programs/ld-numeric.c: Likewise.
7215         * locale/programs/ld-paper.c: Likewise.
7216         * locale/programs/ld-telephone.c: Likewise.
7217         * locale/programs/ld-time.c: Likewise.
7219         * locale/simple-hash.c: Move compute_hashval function from here...
7220         * locale/hashval.h: ...to here.  New file.
7221         * locale/simple-hash.h: Add prototype for compute_hashval.
7223         * include/libintl.h: Minor cleanups.
7225 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
7227         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
7229 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
7231         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
7233 2002-04-14  Bruno Haible  <bruno@clisp.org>
7235         * locale/programs/charmap.c (charmap_read): Don't access result if
7236         result == NULL.
7238 2002-02-17  Andreas Schwab  <schwab@suse.de>
7240         * elf/reldep7.c: New file.
7241         * elf/reldep7mod1.c: New file.
7242         * elf/reldep7mod2.c: New file.
7243         * elf/Makefile: Add rules to build and run reldep7.
7245 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
7247         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
7248         the end of the function.  Pass original flags to recursive call if
7249         add_dependency failed.
7250         (_dl_lookup_versioned_symbol): Likewise.
7252 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
7254         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
7255         early, but check whether it overflowed afterwards.
7256         * time/tst-mktime.c (main): Add new tests.
7258 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
7260         * debug/xtrace.sh: Fix program name in help message.
7261         Patch by Roger Luethi <rl@hellgate.ch>.
7263         * include/sys/stat.h: Add prototypes for __lxstat_internal and
7264         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
7265         NOT_IN_libc.
7266         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
7267         * sysdeps/mach/hurd/lxstat.c: Likewise.
7268         * sysdeps/unix/common/lxstat.c: Likewise.
7269         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
7270         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
7271         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
7272         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
7273         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
7274         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
7275         * sysdeps/mach/hurd/lxstat64.c: Likewise.
7276         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
7277         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
7279         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
7280         prototypes.  Add __mbrlen and __mbrtowc macros.
7281         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
7282         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
7284         * include/unistd.h: Add prototype for __write_internal and add
7285         __libc_write macro is SHARED.
7286         * sysdeps/generic/write.c: Use INTDEF for __write.
7287         * sysdeps/mach/hurd/write.c: Likewise.
7288         * sysdeps/unix/sysv/aix/write.c: Likewise.
7289         * sysdeps/unix/syscalls.list: Add __libc_write alias.
7291         * assert/assert.c: Replace STR_N_SIZE with something usable in
7292         macro arguments.
7293         * assert/assert-perr.c: Likewise.
7295         * include/sys/socket.h: Declare __libc_sa_len_internal and define
7296         SA_LEN macro to use it if not NOT_IN_libc.
7297         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
7299         * include/fcntl.h: Declare __open_internal and define __open and
7300         __libc_open macros if not NOT_IN_libc.
7301         * sysdeps/generic/open.c: Use INTDEF for __open.
7302         * sysdeps/mach/hurd/open.c: Likewise.
7303         * sysdeps/unix/sysv/aix/open.c: Likewise.
7304         * sysdeps/unix/syscalls.list: Add __open_internal alias.
7306         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
7307         has correct number.
7309         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
7310         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
7311         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7312         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7314         * include/wctype.h: Declare __iswalpha_l_internal,
7315         __iswdigit_l_internal, __iswspace_l_internal,
7316         __iswxdigit_l_internal, and __iswctype_internal.  Define
7317         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
7318         __iswxdigit_l macros if not NOT_IN_libc.
7319         * wctype/iswctype.c: Use INTDEF for __iswctype.
7320         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
7322         * include/math.h: Declare __isinf_internal, __isinfl_internal,
7323         __isnan_internal, and __isnanl_internal.
7324         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
7325         __isnan, and __isnanl.
7326         * stdio-common/printf_size.c: Likewise.
7327         * sysdeps/generic/printf_fphex.c: Likewise.
7328         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
7329         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7330         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
7331         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
7332         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
7333         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7334         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
7335         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7336         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
7337         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7338         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
7339         * sysdeps/m68k/s_isinfl.c: Likewise.
7340         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
7341         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
7343         * include/sys/time.h: Declare __gettimeofday_internal and define
7344         __gettimeofday macro if not NOT_IN_libc.
7345         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
7346         * sysdeps/mach/gettimeofday.c: Likewise.
7347         * sysdeps/posix/gettimeofday.c: Likewise.
7348         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
7349         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
7350         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
7351         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
7353         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
7354         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
7355         Remove __lstat and __fstat inline functions.
7356         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
7357         * sysdeps/mach/hurd/fxstat.c: Likewise.
7358         * sysdeps/unix/fxstat.c: Likewise.
7359         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
7360         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
7361         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
7362         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
7363         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
7364         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
7365         * sysdeps/mach/hurd/fxstat64.c: Likewise.
7366         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
7367         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
7369         * include/unistd.h: Declare __getpid_internal and define
7370         __getpid macro if not NOT_IN_libc.
7371         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
7372         * sysdeps/generic/getpid.c: Likewise.
7373         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
7374         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
7376         * include/unistd.h: Declare __getpgid_internal and define
7377         __getpgid macro if not NOT_IN_libc.
7378         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
7379         * sysdeps/mach/hurd/getpgid.c: Likewise.
7380         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
7381         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
7382         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
7383         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
7385         * include/unistd.h: Declare __getpagesize_internal and define
7386         __getpagesize macro if not NOT_IN_libc.
7387         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
7388         __getpagesize.
7389         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
7390         * sysdeps/mach/getpagesize.c: Likewise.
7391         * sysdeps/posix/getpagesize.c: Likewise.
7392         * sysdeps/unix/getpagesize.c: Likewise.
7393         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
7394         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7395         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
7396         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
7398 2002-04-13  Andreas Jaeger  <aj@suse.de>
7400         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
7401         as clobber to reduce register pressure.
7402         (__strpbrk_cg): Likewise.
7403         (__mempcpy_by4): Likewise.
7404         (__strstr_cg): Likewise.
7405         Add prototype for __memrchr.
7407 2002-04-13  Andreas Schwab  <schwab@suse.de>
7409         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
7410         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
7411         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
7413 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
7415         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
7416         check whether the caller prefers getting the most recent version of
7417         a symbol of the earliest version.
7418         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
7419         _dl_do_lookup to also take the new parameter and pass it on.
7420         Change 'explicit' parameter of _dl_lookup_symbol and
7421         _dl_lookup_versioned_symbol to flags.  Adjust tests.
7422         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7423         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
7424         _dl_lookup_versioned_symbol.
7425         * elf/dl-reloc.c: Likewise.
7426         * elf/dl-runtime.c: Likewise.
7427         * elf/dl-sym.c: Likewise.
7428         * sysdeps/mips/dl-machine.h: Likewise.
7430 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7432         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
7433         in a token.
7434         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
7436 2002-04-10  Andreas Jaeger  <aj@suse.de>
7438         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
7440         * include/argz.h: Remove extra char from last patch.
7442 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
7444         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
7445         * sysdeps/unix/sysv/aix/chown.c: Likewise.
7446         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
7447         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
7448         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7449         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
7450         __chown_internal.
7451         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
7453         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
7454         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
7455         * intl/ngettext.c: Likewise.
7457         * include/sys/socket.h: Declare __connect_internal and define
7458         __connect macro if not NOT_IN_libc.
7459         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
7460         * sysdeps/unix/sysv/aix/connect.c: Likewise.
7461         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
7463         * include/unistd.h: Declare __close_internal and define __close macro
7464         if not NOT_IN_libc.
7465         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
7466         WJUMP3): Add extra parenthesis to avoid expanding element names with
7467         macors like __close.
7468         * sysdeps/unix/syscalls.list: Add __close_internal alias.
7470         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
7471         if not NOT_IN_libc.
7472         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
7473         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
7474         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
7476         * include/unistd.h: Declare __fork_internal and define __fork macro
7477         if not NOT_IN_libc.
7478         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
7479         * sysdeps/unix/sysv/aix/fork.c: Likewise.
7480         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7482         * include/stdio_ext.h: Declare __fsetlocking_internal and define
7483         __fsetlocking macro to use it if not NOT_IN_libc.
7484         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7486         * libio/__fbufsize.c: Correct copyright.
7487         * libio/__flbf.c: Likewise.
7488         * libio/__fpending.c: Likewise.
7489         * libio/__fpurge.c: Likewise.
7490         * libio/__freadable.c: Likewise.
7491         * libio/__freading.c: Likewise.
7492         * libio/__fsetlocking.c: Likewise.
7493         * libio/__fwritable.c: Likewise.
7494         * libio/__fwriting.c: Likewise.
7496         * include/stdio.h: Declare __asprintf_internal and define __asprintf
7497         macro to use it if not NOT_IN_libc.
7498         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7500         * include/mntent.h: Declare __setmntent_internal,
7501         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
7502         __getmntent_r, and __endmntent macros to use these functions if not
7503         NOT_IN_libc.
7504         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7505         __endmntent.
7507         * include/math.h: Declare __finite_internal, __finitef_internal, and
7508         __finitel_internal.  Redefine isfinite macro if in libc or libm using
7509         these functions.
7510         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7511         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7512         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7513         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7514         * sysdeps/i386/fpu/s_finitef.S: Likewise.
7515         * sysdeps/i386/fpu/s_finitel.S: Likewise.
7516         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7517         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7518         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7519         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7521         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
7522         to use this function if not NOT_IN_libc.
7523         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7524         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7525         * sysdeps/mach/hurd/fcntl.c: Likewise.
7526         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7527         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7529         * include/argz.h: Declare __argz_count_internal and
7530         __argz_stringify_internal.
7531         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7532         __argz_stringify.
7533         * string/argz-count.c: Use INTDEF for __argz_count.
7534         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7536         * include/stdlib.h: Declare __cxa_atexit_internal and define
7537         __cxa_atexit macro if not NOT_IN_libc.
7538         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7539         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7541         * assert/assert.c: Use INTDEF for __assert_fail.
7542         * assert/__assert.c: Use INTUSE for call to __assert_fail.
7543         * include/assert.h: Declare __assert_fail_internal.
7545         * extra-lib.mk: Mark assignment to lib with override.
7547 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7549         * Makerules: Use cppflags-iterator.mk to add defines for all test
7550         source files.
7552 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
7554         * elf/elf.h: Define R_SH_TLS_xxx macros.
7555         * elf/rtld.c: Remove an extra parenthesis.
7556         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7557         TLS_GD macros.
7558         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7559         * sysdeps/sh/dl-lookupcfg.h: New file.
7560         * sysdeps/sh/dl-tls.h: New file.
7561         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7562         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7563         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7564         R_SH_TLS_TPOFF32 relocations.
7566 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7568         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7569         of NOT_IN_LIBC.
7570         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7571         * include/stdlib.h: Likewise.
7573 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
7575         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7576         instead of _RTLD_LOCAL.
7577         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7578         * include/unistd.h: Likewise.
7579         * sysdeps/generic/ldsodefs.h: Likewise.
7581         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7582         if in libc or ld.so.
7584 2002-04-08  Andreas Jaeger  <aj@suse.de>
7586         * elf/cache.c (print_entry): Support x86-64.
7588 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7590         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7591         with one accessing the locale data structures directly.
7592         * stdio-common/printf-prs.c: Include localeinfo.h for new
7593         MB_CUR_MAX definition.
7595         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7596         is the name of the source file without extension.
7597         * Makefile (distribute): Add cppflags-iterator.mk.
7598         * cppflags-iterator.mk: New file.
7599         * extra-lib.mk: For the sources of the library run
7600         cppflags-iterator.mk.
7602         * include/libintl.h: Declare __dcgettext_internal and
7603         _libc_intl_domainname_internal.  Define __dcgettext using these
7604         two symbols if used in libc itself.
7605         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7606         _libc_intl_domainname_internal.
7607         * argp/argp-parse.c: Likewise.
7608         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7609         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7610         * intl/gettext.c: Likewise.
7611         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7612         alias.
7613         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7614         __dcgettext.
7615         * posix/regex_internal.c (gettext): Likewise.
7617 2002-04-08  Andreas Jaeger  <aj@suse.de>
7619         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7621         * sysdeps/x86_64/fpu/s_llrint.S: New file.
7622         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7623         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7624         * sysdeps/x86_64/fpu/s_lrint.S: New file.
7625         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7626         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7628 2002-04-08  Roland McGrath  <roland@frob.com>
7630         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7631         widening __hurd_fail value.
7633 2002-04-07  Roland McGrath  <roland@frob.com>
7635         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7636         <mach/machine/alpha_instruction.h>.
7637         (_hurd_setup_sighandler): Take proper arguments for current decls.
7638         Update code to use _hurdsig_catch_fault.
7639         Use `callsys' instruction instead of `call_pal'.
7640         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7642         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7643         (ALIGN, at, AT, fp): New macros.
7645 2002-04-06  Roland McGrath  <roland@frob.com>
7647         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7649         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7650         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7652         * sysdeps/mach/hurd/bind.c: Use prototype definition.
7653         * sysdeps/mach/hurd/connect.c: Likewise.
7654         * sysdeps/mach/hurd/getsockopt.c: Likewise.
7655         * sysdeps/mach/hurd/setsockopt.c: Likewise.
7657         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7658         __msg_sig_post RPC.
7660         * hurd/catch-exc.c: Use integer_t instead of int.
7661         * hurd/hurdfault.c: Likewise.
7663         * sysdeps/mach/hurd/alpha/exc2signal.c
7664         (_hurd_exception2signal): Rewritten.
7665         * sysdeps/mach/hurd/alpha/longjmp-ts.c
7666         (_hurd_longjmp_thread_state): Rewritten.
7668 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
7670         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7671         DB_LOOKUP_FCT prototype.
7672         * nss/getXXent_r.c: Likewise.
7673         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7674         * inet/getaliasname_r.c: Likewise.
7675         * inet/getnetbyad_r.c: Likewise.
7676         * inet/getnetbynm_r.c: Likewise.
7677         * inet/getnetent_r.c: Likewise.
7678         * inet/getproto_r.c: Likewise.
7679         * inet/getprtent_r.c: Likewise.
7680         * inet/getprtname_r.c: Likewise.
7681         * inet/getrpcbyname_r.c: Likewise.
7682         * inet/getrpcbynumber_r.c: Likewise.
7683         * inet/getrpcent_r.c: Likewise.
7684         * inet/getservent_r.c: Likewise.
7685         * inet/getsrvbynm_r.c: Likewise.
7686         * inet/getsrvbypt_r.c: Likewise.
7687         * shadow/getspent_r.c: Likewise.
7688         * shadow/getspnam_r.c: Likewise.
7690         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7692         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7693         Use i686-friendly PIC code.
7694         * sysdeps/i386/elf/setjmp.S: Likewise.
7696         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7698         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7699         list.
7700         * elf/Versions: Remove it here.
7702 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
7704         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7705         direction.  Reported by H . J . Lu <hjl@lucon.org>.
7707 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7709         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7710         test just before the test runs.
7711         * intl/tst-translit.sh: Likewise.
7712         * intl/tst-codeset.sh: Likewise.
7714         * timezone/zic.c: Update from tzcode2002c.
7715         * timezone/asia: Update from tzdata2002c.
7716         * timezone/backward: Likewise.
7717         * timezone/europe: Likewise.
7718         * timezone/northamerica: Likewise.
7719         * timezone/northamerica: Likewise.
7720         * timezone/northamerica: Likewise.
7721         * timezone/southamerica: Likewise.
7722         * timezone/zone.tab: Likewise.
7724 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
7726         * sysdeps/generic/brk.c (__curbrk): Declare.
7727         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7728         * sysdeps/generic/dl-sbrk.c: Likewise.
7729         * sysdeps/unix/arm/dl-brk.S: New file.
7730         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7731         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7732         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7733         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7734         * sysdeps/unix/i386/dl-brk.S: New file.
7735         * sysdeps/unix/mips/dl-brk.S: New file.
7736         * sysdeps/unix/sparc/dl-brk.S: New file.
7737         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7738         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7739         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7740         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7742 2002-04-03  Andreas Schwab  <schwab@suse.de>
7744         * Makefile (headers): Add gnu/lib-names.h here instead of
7745         install-others.
7746         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7747         installation rule.
7748         (install-headers): Add dependency on install-headers-nosubdir.
7749         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7750         instead of install-others.
7751         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7752         installation rule.
7754 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7756         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7757         Reported by Sam Roberts <sroberts@uniserve.com>.
7759 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7761         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7762         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7763         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7764         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7766 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
7768         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7769         (RTLD_START): Ditto.
7770         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7771         dependency violation.
7773 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7775         * time/mktime.c (__mktime_internal): Move check for year < 70 below
7776         all variable declarations.
7778 2002-04-04  Andreas Schwab  <schwab@suse.de>
7780         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7782 2002-04-04  Andreas Jaeger  <aj@suse.de>
7784         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7785         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7787         * sysdeps/x86_64/fpu/s_fabs.c: New file.
7788         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7789         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7791         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7793         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7795         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7796         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7798         * configure.in: Handle all mips entries the same.
7800         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7801         * sysdeps/mips/mips3/*: Likewise.
7802         * sysdeps/mips/p40/bits/endian.h: Likewise.
7804 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
7806         * misc/dirname.c (dirname): Ignore trailing slashes at end of
7807         non-null result [PR libc/2600].
7809         * misc/tst-dirname.c: Add more tests.
7811 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7813         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7814         define a code_set_name provide one based on the filename.
7816         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7818 2001-12-28  Andreas Jaeger  <aj@suse.de>
7820         * time/mktime.c (__mktime_internal): Check for year < 70
7821         [PR libc/2738].
7823 2002-04-03  Andreas Jaeger  <aj@suse.de>
7825         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7826         shmat.
7827         Reported by Andi Kleen <ak@suse.de>.
7829 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7831         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7832         * sysdeps/generic/w_lgammaf.c: Likewise.
7833         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7835         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7836         Adjust for new output format of the backtrace functions.
7838         * misc/syslog.c (vsyslog): Only use cleanup handler if
7839         _LIBC_REENTRANT is defined [PR libc/2924].
7841         * libio/Makefile (tests): Add bug-ungetwc2.
7842         * libio/bug-ungetwc2.c: New file.
7844         * manual/install.texi: Typographical and grammatical cleanup.
7845         Patch by Dennis Grace <dgrace@us.ibm.com>.
7847         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7848         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
7850         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
7851         always "&".  Adjust callers.
7852         Add "_" prefix to several generated definitions.
7853         Patch by paul@serice.net [PR libc/3158].
7855 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7857         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7858         size of _dl_arm_cap_flags.
7859         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7861         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7862         Define as 8.
7864 2002-03-22  H.J. Lu  <hjl@gnu.org>
7866         * scripts/firstversions.awk: Check the first version.
7868 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7870         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7871         dependencies must be stable to work correctly.
7872         Reported by martin.lubich@datacon.at.
7874         * libio/bug-ungetwc1.c: New file.
7875         * libio/Makefile (tests): Add bug-ungetwc1.
7877         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7878         if stream was last used for writing.
7880         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7881         number [PR libc/3111].
7883         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7884         to ...
7885         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7887 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
7889         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7890         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7891         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7892         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7893         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7895 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
7897         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7898         dynamic tags.
7900 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
7902         * sysdeps/i386/fpu/s_fabs.S: New file.
7903         * sysdeps/i386/fpu/s_fabsf.S: New file.
7904         * sysdeps/i386/fpu/s_fabsl.S: New file.
7905         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7906         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7907         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7909 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7911         * rt/tst-shm.c (do_test): Add one more test for size of shared
7912         memory object.
7914 2002-03-29  Wolfram Gloger  <wg@malloc.de>
7916         * malloc/malloc.c: Add short description and prototypes for
7917         malloc_get_state, malloc_set_state and posix_memalign, for
7918         consistency and to avoid warnings with -Wstrict-prototypes.
7919         Reported by Andreas Jaeger <aj@suse.de>.
7921 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7923         * po/gl.po: Update from translation team.
7925 2002-03-31  Roland McGrath  <roland@frob.com>
7927         * hurd/hurdselect.c (_hurd_select): Fix
7928         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
7929         Use a union rather than casts to compare mach_msg_type_t as int.
7931 2002-03-25  Roland McGrath  <roland@frob.com>
7933         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
7934         check off the end of NAME when it's shorter than 2 chars.
7935         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
7937 2002-03-17  Roland McGrath  <roland@frob.com>
7939         * sysdeps/mach/hurd/i386/sys/io.h: New file.
7940         * sysdeps/mach/hurd/i386/ioperm.c: New file.
7941         * sysdeps/mach/hurd/i386/Dist: Add them.
7942         * sysdeps/mach/hurd/i386/Versions
7943         (libc: GLIBC_2.2.6): New set, add ioperm.
7944         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
7945         (mach_interface_list): Check for mach_i386.defs.
7946         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
7947         * sysdeps/mach/configure: Regenerated.
7949 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
7951         * po/fr.po: Update from translation team.
7953 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7955         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
7956         getpriority from syscalls list.
7958 2002-03-28  Andreas Jaeger  <aj@suse.de>
7960         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
7961         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
7962         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
7963         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
7965 2002-03-27  Andreas Jaeger  <aj@suse.de>
7967         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
7968         sigcontext): Follow further kernel change.
7970         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
7971         kernel change.
7973         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
7974         Change for struct sigcontext change.
7976         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7977         Follow changes in struct sigcontext.
7979         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
7980         sysycall, use wrapper instead.
7982 2002-03-26  Andreas Jaeger  <aj@suse.de>
7984         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
7985         read and write accesses as detailed as possible.
7986         (__memcpy_by2): Likewise.
7987         (__memcpy_g): Likewise.
7988         (memmove): Likewise.
7989         (memcmp): Likewise.
7990         (__memset_ccn_by4): Likewise.
7991         (__memset_ccn_by2): Likewise.
7992         (__memset_gcn_by4): Likewise.
7993         (__memset_gcn_by2): Likewise.
7994         (memchr): Likewise.
7995         (__memrchr): Likewise.
7996         (rawmemchr): Likewise.
7997         (__strlen_g): Likewise.
7998         (__strcpy_g): Likewise.
7999         (__mempcpy_by4): Likewise.
8000         (__mempcpy_by2): Likewise.
8001         (__mempcpy_byn): Likewise.
8002         (__stpcpy_g): Likewise.
8003         (__strncpy_by4): Likewise.
8004         (__strncpy_by2): Likewise.
8005         (__strncpy_byn): Likewise.
8006         (__strncpy_gg): Likewise.
8007         (__strcat_c): Likewise.
8008         (__strcat_g): Likewise.
8009         (__strncat_g): Likewise.
8010         (__strcmp_gg): Likewise.
8011         (__strncmp_g): Likewise.
8012         (__strchr_c): Likewise.
8013         (__strchr_g): Likewise.
8014         (__strchrnul_c): Likewise.
8015         (__strchrnul_g): Likewise.
8016         (__strrchr_c): Likewise.
8017         (__strrchr_g): Likewise.
8018         (__strrchr_c): Likewise.
8019         (__strrchr_g): Likewise.
8020         (__strcspn_c1): Likewise.
8021         (__strcspn_cg): Likewise.
8022         (__strcspn_g): Likewise.
8023         (__strcspn_g): Likewise.
8024         (__strspn_c1): Likewise.
8025         (__strspn_cg): Likewise.
8026         (__strspn_g): Likewise.
8027         (__strspn_g): Likewise.
8028         (__strpbrk_cg): Likewise.
8029         (__strpbrk_g): Likewise.
8030         (__strstr_cg): Likewise.
8031         (__strstr_g): Likewise.
8033         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
8034         Michal Ludvig <mludvig@suse.cz>.
8036         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
8037         compatibilty, adjust for kernel changes.
8039         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8040         sigcontext): Adjust for kernel changes.
8042 2002-03-25  Andreas Jaeger  <aj@suse.de>
8044         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
8045         little endian.
8046         Reported by Artur Zaprzala <zybi@talex.com.pl>.
8048 2002-03-24  Andreas Jaeger  <aj@suse.de>
8050         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
8052         * stdio-common/tst-fdopen.c (main): Remove unused variable.
8054         * iconv/tst-iconv3.c (main): Use correct printf strings.
8056 2002-03-18  Roland McGrath  <roland@frob.com>
8058         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
8059         (CMGROUP_MAX): New macro.
8061 2002-03-23  Roland McGrath  <roland@frob.com>
8063         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
8064         * sysdeps/posix/shm_unlink.c: Likewise.
8066 2002-03-22  Roland McGrath  <roland@frob.com>
8068         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
8069         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
8070         under --enable-libio.
8071         * sysdeps/mach/hurd/configure: Regenerated.
8073 2002-03-23  Roland McGrath  <roland@frob.com>
8075         * sysdeps/mach/hurd/i386/Makefile
8076         (sysdep_routines, shared-only-routines): Don't add framestate,
8077         reverting 2001-10-02 change.
8078         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
8079         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
8080         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8081         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8082         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
8083         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
8084         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8085         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
8086         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
8087         Do it here instead, only if [$(unwind-find-fde) = yes].
8089 2002-03-23  Andreas Jaeger  <aj@suse.de>
8091         * signal/signal.h: Fix typo. Patch by Steve Kemp
8092         <skx@tardis.ed.ac.uk>.
8094 2002-03-22  Andreas Jaeger  <aj@suse.de>
8096         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
8097         getresuid.
8099         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8100         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
8101         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8102         user_fpregs_struct): Rename fwd.
8104         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
8105         Follow sigcontext changes.
8107 2002-03-22  Andreas Jaeger  <aj@suse.de>
8109         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
8110         changes for NaNs on MIPS.
8111         Patch by Hartvig Ekner <hartvige@mips.com>.
8113 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
8115         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
8116         Use realloc if too large.
8117         (addgrbyid): Likewise.
8118         * nscd/hstcache.c (addhstbyname): Likewise.
8119         (addhstbyaddr): Likewise.
8120         (addhstbynamev6): Likewise.
8121         (addhstbyaddrv6): Likewise.
8122         * nscd/pwdcache.c (addpwbyname): Likewise.
8123         (addpwbyuid): Likewise.
8125 2002-03-21  Andreas Jaeger  <aj@suse.de>
8127         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8128         _fpstate): Add separate struct for x86-64.
8130         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8131         user_fpregs_struct): Change member names to follow kernel.
8133 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
8135         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
8136         Correctly close the UDP connection right away [PR libc/3120].
8138 2002-03-20  Andreas Jaeger  <aj@suse.de>
8140         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8141         user_fpregs_struct): Fix for changed kernel struct.
8142         (struct user_regs_struct): Likewise.
8143         (struct user): Likewise.
8144         Add 32-bit x86 compatibility.
8146         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
8148 2002-03-19  Andreas Jaeger  <aj@suse.de>
8150         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
8152 2002-03-18  Andreas Jaeger  <aj@suse.de>
8154         * iconvdata/Makefile: Only run tests when shared libs are
8155         available.
8157 2002-03-17  Andreas Jaeger  <aj@suse.de>
8159         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
8161         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
8163         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
8164         bits.
8166         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
8167         (CAUSE_SHIFT): New macro.
8168         Patch by Hartvig Ekner <hartvige@mips.com>.
8170         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
8171         * sysdeps/generic/unwind-pe.h: Likewise.
8173         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
8174         type to _IO_setb.
8176         * libio/stdio.c (AL2): Define variant when visibility attribute is
8177         not supported.
8179         * include/libc-symbols.h (_INTVARDEF): Define variant when
8180         visibility attribute is not supported.
8182 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
8184         * po/fr.po: Update from translation team.
8186 2002-02-25  Bruno Haible  <bruno@clisp.org>
8188         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
8190 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
8192         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
8193         buffers if _IO_file_attach failed.
8195         * libio/fileops.c (_IO_file_open): Close file descriptor if
8196         _IO_SEEKOFF call failed.
8198 2002-03-15  H.J. Lu  <hjl@gnu.org>
8199             Ulrich Drepper  <drepper@redhat.com>
8201         * configure.in: Check for availability of
8202         init_array/fini_array/preinit_array handling in binutils.
8203         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
8204         * config.make.in (have-initfini-array): New variable.
8206 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
8208         * stdio-common/tst-printf.c (main): Comment out one test which
8209         checked the compiler's ability to fold floating-point constants
8210         but not really printf.
8211         (rfg3): Make s const.
8212         * stdio-common/tst-printf.sh: Adjust for removed test.
8214         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
8215         internal function.  Adjust for internal_function calling convention.
8216         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
8217         as internal_function.
8219         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
8220         hidden.
8222         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
8223         declaration and definition.
8224         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
8225         declaration.
8226         * nss/getXXent_r.c: Likewise.
8227         * nss/nsswitch.h (db_lookup_function): Add internal_function to
8228         definition.
8230         * include/time.h: Declare __localtime_r as hidden.
8232         * include/aliases.h: Declare __getaliasent_r as hidden.
8233         * include/grp.h: Declare __getgrent_r as hidden.
8234         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
8235         __getservent_r, and __getprotoent_r as hidden.
8236         * include/pwd.h: Declare __getpwent_r as hidden.
8237         * include/shadow.h: Declare __getspent_r as hidden.
8238         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
8240         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
8241         and __gconv_transliterate as hidden.
8242         Add internal_function to __gconv_get_path declaration.
8243         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
8244         definition.  Add attribute_hidden to __gconv_read_conf definition.
8246 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
8248         * elf/rtld.c: Declare _environ as hidden.
8249         * sysdeps/generic/dl-environ.c: Likewise.
8250         * sysdeps/generic/dl-sysdep.c: Likewise.
8252         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
8253         _dl_mcount_internal as hidden.
8255         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
8256         * sysdeps/generic/dl-brk.c: New file.
8257         * sysdeps/generic/dl-sbrk.c: New file.
8258         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
8259         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
8261         * elf/dl-minimal.c (malloc): Declare _end as hidden.
8262         (__errno_location): New function.  Declare errno as hidden.
8263         * elf/rtld.c (_dl_argc): Define as hidden.
8264         (_dl_skip_args): Define as hidden.
8265         (_begin, _end): Declare as hidden.
8266         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
8267         * sysdeps/generic/entry.h (_start): Declare as hidden.
8268         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
8269         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
8270         _dl_runtime_resolve and _dl_runtime_profile as hidden.
8271         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
8273 2002-03-14  Roland McGrath  <roland@frob.com>
8275         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
8277         * Makeconfig (%.v.i, %.v): New implicit rules.
8278         (preprocess-versions): Variable removed.
8279         ($(common-objpfx)shlib-versions.v.i): New target giving just the
8280         shlib-versions input files as dependencies.
8281         ($(common-objpfx)soversions.i): Depend on that instead of the input
8282         files.  Use it as input instead of using a pipeline.
8283         (postclean-generated): Append soversions.i, shlib-versions.v, and
8284         shlib-versions.v.i here.
8285         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
8286         the Versions.def input files as dependencies.
8287         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
8288         ($(common-objpfx)Versions.all): Depend on that instead of the input
8289         files.  Use it as input instead of using a pipeline.
8290         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
8291         (postclean-generated): Append those .v and .v.i files here.
8293 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
8295         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
8296         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
8297         Remove.
8299 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
8301         * sysdeps/generic/mp_clz_tab.c: New file.
8302         * sysdeps/i386/mp_clz_tab.c: New file.
8303         * sysdeps/hppa/mp_clz_tab.c: New file.
8304         * sysdeps/powerpc/mp_clz_tab.c: New file.
8305         * stdlib/Makefile (aux): Revert last patch.
8306         * math/Makefile (gmp-objs): Likewise.
8308 2002-03-13  Paul Eggert  <eggert@twinsun.com>
8310         * time/strftime.c: Comment fixes for references to obsolescent
8311         standards, In most cases the simplest fix is to remove the
8312         confusing comments.  Cross-referencing all the standards properly
8313         is a bit of a pain, and it should be enough to put that info in
8314         the documentation as I did in my recent time.texi patch.
8316 2002-03-13  Paul Eggert  <eggert@twinsun.com>
8318         * manual/time.texi (Formatting Calendar Time):
8319         ISO C99 also specifies the E and O modifiers.
8320         %P is a GNU extension, and is not in ISO C99.
8321         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
8322         %T is also in ISO C99.
8323         The RFC 822 example is not valid in arbitrary locales.
8324         Reword the POSIX.2 wording slightly, to make it a bit clearer
8325         that POSIX.2 formats are also supported by later POSIX versions.
8326         If a format was introduced in ISO C99 it is also required by
8327         POSIX.1-2001.
8329 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
8331         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
8332         _sys_nerr_internal with INTVARDEF2.
8333         * include/libc-symbols.h (INTVARDEF2): New macro.
8334         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
8335         (_sys_nerr_internal): Library.
8337         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
8338         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
8340         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
8342 2002-03-13  Wolfram Gloger  <wg@malloc.de>
8344         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
8346 2002-03-02  Andreas Schwab  <schwab@suse.de>
8348         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
8349         'h' flag and positional arg.
8350         * stdio-common/tst-printf.c (rfg3): New function to test
8351         positional arguments.
8352         (main): Fix some warnings.
8354 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
8356         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
8357         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8359 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
8361         * grp/initgroups.c (__nss_group_data): Declare as hidden.
8363         * include/locale.h (_nl_C_locobj): Declare as hidden.
8365         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
8366         * time/strptime.c (_nl_C_LC_TIME): Likewise.
8368         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
8370         * include/sys/gmon.h: Declare _gmonparam as hidden.
8372         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
8373         (__ctype32_wctrans): Likewise.
8374         (__ctype32_width): Likewise.
8376         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
8377         use of __ttyname.
8379         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
8380         Define as hidden.
8381         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
8382         hidden.  Change all users of these variables.
8384         * posix/regex_internal.h (__re_error_msgid): Renamed from
8385         re_error_msgid.  Declare as hidden.
8386         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
8387         hidden.
8389         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
8390         (__printf_function_table): Likewise.
8391         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
8392         hidden.
8393         (__printf_function_table): Likewise.
8395         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
8396         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
8398         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
8399         * nss/nsswitch.c: Declare _nss_*_database as hidden.
8401         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
8402         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
8404 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
8406         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
8407         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8408         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8409         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8410         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8411         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8412         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8413         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8414         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
8415         _nl_C_LC_CTYPE_width: Declare as hidden.
8416         * include/locale.h: Declare _nl_locale_file_list.
8417         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
8418         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
8419         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
8420         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
8421         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
8422         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
8423         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
8424         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
8425         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
8426         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
8427         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
8428         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
8429         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8430         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8431         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8432         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8433         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8434         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8435         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8436         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
8437         _nl_C_LC_CTYPE_width, and as hidden.
8438         * locale/findlocale.c: Declare _nl_C as hidden.
8439         * locale/newlocale.c: Likewise.
8440         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
8441         _nl_locale_file_list.
8442         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
8443         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
8444         Define _nl_C_locobj as hidden.
8446         * malloc/mtrace.c (_mtrace_file): Define as hidden.
8447         (_mtrace_line): Likewise.
8449         * include/time.h: Declare __mon_yday as hidden.
8450         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
8452         * libio/libioP.h: Declare __libio_codecvt as hidden.
8453         * libio/fileops.c: Declare __libio_translit as hidden.
8454         * libio/iofwide.c: Define __libio_translit as hidden.
8456         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
8457         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
8458         * login/getutline_r.c: Likewise.
8459         * login/utmpname.c: Likewise.
8461         * login/utmp-private.h: Declare __libc_utmp_file_functions,
8462         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
8463         __libc_utmp_file_name as hidden.
8465         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
8466         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
8467         * locale/freelocale.c: Likewise.
8468         * locale/lc-time.c: Likewise.
8470         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
8471         (__libc_ptyname2): Likewise.
8472         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
8473         hidden.
8474         (__libc_ptyname2): Likewise.
8476         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
8477         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
8478         * sysdeps/generic/init-first.c: Likewise.
8479         * sysdeps/i386/init-first.c: Likewise.
8480         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8481         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8482         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8483         * sysdeps/sh/init-first.c: Likewise.
8484         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8485         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8487         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8488         (_itowa_upper_digits): Likewise.
8490         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8491         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8492         as hidden.
8494         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8495         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8496         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8497         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8499         * gmon/gmon.c (__bb_head): Define as hidden.
8500         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8502         * argp/argp-parse.c (_argp_hang): Define as static.
8504         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8505         handling in latest compilers.
8507         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8508         define alias.
8509         * libio/fileops.c (_IO_file_jumps): Likewise.
8510         * libio/stdfiles.c (_IO_list_all): Likewise.
8511         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8513         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8514         include/malloc.h.
8515         * include/malloc.h: Add __libc_malloc_initialized declaration
8516         here.  Mark variable hidden.
8517         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8519         * elf/dl-open.c (__libc_argc): Declare as hidden.
8520         (__libc_argv): Likewise.
8521         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8522         (__libc_argv): Likewise.
8523         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8524         __libc_argv as hidden.
8525         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8526         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8527         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8528         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8530         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8531         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8532         * stdlib/erand48.c: Likewise.
8533         * stdlib/jrand48.c: Likewise.
8534         * stdlib/lcong48.c: Likewise.
8535         * stdlib/lrand48.c: Likewise.
8536         * stdlib/mrand48.c: Likewise.
8537         * stdlib/nrand48.c: Likewise.
8538         * stdlib/seed48.c: Likewise.
8539         * stdlib/srand48.c: Likewise.
8541         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8542         (_itoa_lower_digits_internal): New declaration.
8543         (_itoa_upper_digits_internal): New declaration.
8544         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8545         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8546         (_itoa_upper_digits_internal): New declaration.
8547         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8548         _itoa_lower_digits.
8549         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8550         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8552         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8553         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8555         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8556         (_itowa_lower_digits): Likewise.
8557         (_itowa_upper_digits): Likewise.
8558         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8559         (_itowa_upper_digits): Likewise.
8561         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8562         not already defined.
8563         (GERMANIC_PLURAL): Declare as hidden.
8565         * posix/getopt.c (__getopt_initialized): Declare as hidden.
8566         (attribute_hidden): Define as empty macro if not already defined.
8568         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8569         (__gconv_max_path_elem_len): Likewise.
8570         (__gconv_path_envvar): Likewise.
8572         * math/Makefile (gmp-objs): Remove mp_clz_tab.
8573         * stdlib/Makefile (aux): Remove mp_clz_tab.
8574         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
8576         * stdlib/exit.h (__exit_funcs): Declare as hidden.
8578         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8580         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8581         _nl_category_names, _nl_category_name_sizes, _nl_current,
8582         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8584         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8585         (_nl_current_default_domain): Likewise
8586         (_nl_state_lock): Likewise.
8587         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8588         (_nl_current_default_domain): Likewise
8589         (_nl_state_lock): Likewise.
8590         * intl/bindtextdom.c (_nl_state_lock): Likewise.
8592         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8593         (_fpioconst_pow10): Likewise.
8595         * include/time.h (_tmbuf): Add attribute_hidden.
8597         * time/tzset.c (tzstring_list): Define as static.
8599         * include/time.h: Add attribute_hidden to __tzname_cur_max and
8600         __use_tzfile declaration.
8602         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8603         and __wcsmbs_last_locale declaration.
8605 2002-02-25  Paul Eggert  <eggert@twinsun.com>
8607         * timezone/Makefile (tzbases): Move systemv from here...
8608         (tzlinks): to here, since the entries in systemv were all changed
8609         from Zone to Link lines in tz-2001a.  Bug reported (and patch
8610         tested) by Peter Breitenlohner.
8612 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
8614         * time/tst-posixtz.c (tests): Add new tests.
8615         (main): Test whether tzset() sets daylight properly.
8617 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8619         * time/tzset.c (tz_compute): Move __daylight, __tzname and
8620         __tzname_cur_max setting...
8621         (tzset_internal): ...here.
8623 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8625         * time/tzset.c (compute_change): Don't return any value.
8626         (tz_compute): Likewise.  Don't handle southern hemisphere here.
8627         (__tz_convert): But here.
8629 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8631         * manual/examples/mkfsock.c: Include <string.h> as well.
8632         Patch by Alain De Carolis <alaind@wseurope.com>.
8634 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
8636         * posix/regexec.c (re_match): Fix incorrect register sizes.
8637         (re_search): Likewise.
8639 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8641         * posix/regcomp.c (regfree): Remove a disused condition.
8642         * posix/regex_internal.c (re_acquire_state): Likewise.
8643         (re_acquire_state_context): Likewise.
8644         (register_state): Remove a redundant malloc invocation.
8645         * posix/regex_internal.h: (re_state_table_entry): Simplify
8646         the structure.
8648 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8650         * posix/regcomp.c (regcomp): Add __builtin_expect to error
8651         handling conditions.
8652         (regerror): Likewise.
8653         (regfree): Likewise.
8654         (re_compile_internal): Likewise.
8655         (init_dfa): Likewise.
8656         (init_word_char): Likewise.
8657         (create_initial_state): Likewise.
8658         (analyze): Likewise.
8659         (analyze_tree): Likewise.
8660         (duplicate_node): Likewise.
8661         (calc_eclosure): Likewise.
8662         (calc_eclosure_iter): Likewise.
8663         (parse): Likewise.
8664         (parse_reg_exp): Likewise.
8665         (parse_branch): Likewise.
8666         (parse_expression): Likewise.
8667         (parse_subexp): Likewise.
8668         (parse_dup_op): Likewise.
8669         (parse_bracket_exp): Likewise.
8670         (build_equiv_class): Likewise.
8671         (build_charclass): Likewise.
8672         (build_word_op): Likewise.
8673         (fetch_number): Likewise.
8674         (create_tree): Likewise.
8675         (duplicate_tree): Likewise.
8676         * posix/regex.c (BE): New macro.
8677         * posix/regexec.c (re_match): Add __builtin_expect to error
8678         handling conditions.
8679         (re_match_2): Likewise.
8680         (re_search): Likewise.
8681         (re_search_internal): Likewise.
8682         (check_matching): Likewise.
8683         (proceed_next_node): Likewise.
8684         (set_regs): Likewise.
8685         (sift_states_backward): Likewise.
8686         (add_epsilon_backreference): Likewise.
8687         (transit_state): Likewise.
8688         (transit_state_sb): Likewise.
8689         (transit_state_mb): Likewise.
8690         (transit_state_bkref): Likewise.
8691         (transit_state_bkref_loop): Likewise.
8692         (build_trtable): Likewise.
8693         (group_nodes_into_DFAstates): Likewise.
8694         (match_ctx_init): Likewise.
8695         (match_ctx_add_entry): Likewise.
8696         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8697         to error handling conditions.
8698         (re_string_construct_toupper): Likewise.
8699         (build_wcs_buffer): Likewise.
8700         (build_wcs_upper_buffer): Likewise.
8701         (build_upper_buffer): Likewise.
8702         (re_string_translate_buffer): Likewise.
8703         (re_node_set_alloc): Likewise.
8704         (re_node_set_init_1): Likewise.
8705         (re_node_set_init_2): Likewise.
8706         (re_node_set_init_copy): Likewise.
8707         (re_node_set_intersect): Likewise.
8708         (re_node_set_init_union): Likewise.
8709         (re_node_set_merge): Likewise.
8710         (re_node_set_insert): Likewise.
8711         (re_dfa_add_node): Likewise.
8712         (re_acquire_state): Likewise.
8713         (re_acquire_state_context): Likewise.
8714         (create_new_state_common): Likewise.
8715         (register_state): Likewise.
8716         (create_ci_new_state): Likewise.
8717         (create_cd_new_state): Likewise.
8718         (re_string_context_at): Remove redundant condition.
8720 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8722         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8724         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8726 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
8728         * sysdeps/i386/elf/configure.in: Fix comment.
8730         * sysdeps/sparc/sparc64/configure.in: New file.
8731         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8732         if .dynamic comes before .got.
8733         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8735         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8736         HP_TIMING_ACCUM): Fix typos.
8738 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8740         * string/strfry.c: Add some more randomness to the seed.
8741         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8743         * po/es.po: Update from translation team.
8744         * po/fr.po: Likewise.
8746         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8748         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8749         when determining type of format.
8750         Patch by James Antill <james@anqd.org> [PR libc/2787].
8752 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
8754         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8756 2002-03-11  Roland McGrath  <roland@frob.com>
8758         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8760         * Versions.def (libc): Add GLIBC_2.2.6.
8761         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8762         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8763         __errno_location instead of __hurd_errno_location, and don't inline it.
8764         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8765         * hurd/errno.c: New file.
8766         * hurd/Makefile (routines): Add errno.
8768 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8770         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8771         ridiculously large widths and precisions [PR libc/3026].
8773 2002-03-11  Andreas Jaeger  <aj@suse.de>
8775         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8776         support.
8777         Patch by Susanne Oberhauser <froh@SuSE.de>.
8779 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8781         * inet/rexec.c (ahostbuf): Define as static.
8783         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8784         (__ctype32_wctrans): Likewise.
8785         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8786         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8787         (__ctype32_wctrans): Likewise.
8788         (__ctype32_width): Likewise.
8790         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8791         They were never exported anyway.
8793         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8794         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
8795         exported.
8796         * include/sys/gmon.h: Declare _gmonparam.
8798         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8799         symbols for getdents64.  They were never exported.
8801 2002-03-09  Roland McGrath  <roland@frob.com>
8803         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8804         Reported by Jon Arney <jarney1@cox.net>.
8806 2002-02-23  Roland McGrath  <roland@frob.com>
8808         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8809         declaration.
8810         (__hurd_errno_location): Function removed.
8812 2002-03-06  Andreas Jaeger  <aj@suse.de>
8814         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8815         32-bit.
8817 2002-03-04  Andreas Jaeger  <aj@suse.de>
8819         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8821         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8822         x86-64.
8824         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8826         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8828         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8830         * sysdeps/x86_64/bits/setjmp.h: New file.
8832         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8834         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8836         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8837         for x86.
8838         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8839         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8841 2002-02-28  Bo Thorsen  <bo@suse.de>
8843         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8844         version.
8846 2002-03-03  Andreas Jaeger  <aj@suse.de>
8848         * sysdeps/x86_64/bits/wordsize.h: New file.
8850         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8851         * elf/tst-tlsmod1.c: Likewise.
8853         * posix/regcomp.c: Get regex.h from include dir for internal
8854         prototypes.
8856         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8857         to libc-internal.h and include it.
8858         * include/libc-internal.h: Add __init_misc.
8860         * misc/init-misc.c: Include libc-internal.h for prototypes.
8862         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8864         * misc/error.c [_LIBC]: Include libioP.h for prototype of
8865         _IO_putc_internal.
8867 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
8869         * posix/regcomp.c: Compatibility changes to allow using the code
8870         outside glibc.
8872 2002-02-28  Hartvig Ekner <hartvige@mips.com>
8874         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8875         compiled non-PIC.
8877 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
8879         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8880         of .str elements in the returned data structure.
8882         * elf/elf.h: Add Alpha TLS bits.
8884 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8886         * sysdeps/unix/sysv/linux/nice.c: New file.
8888 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
8890         * elf/Makefile (dl-routines): Add dl-origin.
8891         (elide-routines.os): Add dl-origin.
8892         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8893         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8894         _dl_debug_state.
8895         * include/libc-symbols.c: Define attribute_hidden depending on
8896         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
8898         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8899         * elf/dl-load.c: Likewise.
8900         * elf/rtld.c: Likewise.
8901         * include/unistd.h: Declare __libc_enable_secure_internal.
8902         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8903         Use INTUSE with __libc_enable_secure.
8904         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8906         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8907         * elf/dl-error.c: Likewise,
8908         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8910         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8911         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8912         function definition.  Use INTDEF with _dl_get_origin.
8913         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8915         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
8916         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
8918         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
8919         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
8920         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
8922         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
8923         * elf/dl-deps.c: Likewise.
8924         * elf/dl-error.c: Likewise.
8925         * elf/dl-fini.c: Likewise.
8926         * elf/dl-init.c: Likewise.
8927         * elf/dl-load.c: Likewise.
8928         * elf/dl-lookup.c: Likewise.
8929         * elf/dl-reloc.c: Likewise.
8930         * elf/dl-version.c: Likewise.
8931         * elf/do-lookup.h: Likewise.
8932         * sysdeps/arm/dl-machine.h: Likewise.
8933         * sysdeps/cris/dl-machine.h: Likewise.
8934         * sysdeps/hppa/dl-machine.h: Likewise.
8935         * sysdeps/i386/dl-machine.h: Likewise.
8936         * sysdeps/m68k/dl-machine.h: Likewise.
8937         * sysdeps/powerpc/dl-machine.h: Likewise.
8938         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8939         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8940         * sysdeps/sh/dl-machine.h: Likewise.
8941         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
8942         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
8943         * sysdeps/x86_64/dl-machine.h: Likewise.
8944         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
8945         _dl_argv[0].  Use INTUSE with _dl_argv.
8946         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
8947         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
8949 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8951         * elf/rtld.c (_rtld_global): Remove .protected.
8952         (_rtld_local): Strong alias to _rtld_global.
8953         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
8954         only .os object.
8955         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
8956         _rtld_local instead of _rtld_global.
8957         (_rtld_local): Add hidden extern, possibly in .sdata section.
8958         * configure.in: Add tests for visibility attribute and .sdata.
8959         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
8960         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
8961         * sysdeps/arm/dl-machine.h: Likewise.
8962         * sysdeps/generic/ldsodefs.h: Likewise.
8963         * sysdeps/hppa/dl-machine.h: Likewise.
8964         * sysdeps/cris/dl-machine.h: Likewise.
8965         * sysdeps/i386/dl-machine.h: Likewise.
8966         * sysdeps/ia64/dl-machine.h: Likewise.
8967         * sysdeps/m68k/dl-machine.h: Likewise.
8968         * sysdeps/mips/mips64/dl-machine.h: Likewise.
8969         * sysdeps/mips/dl-machine.h: Likewise.
8970         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8971         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8972         * sysdeps/sh/dl-machine.h: Likewise.
8973         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8974         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8975         * sysdeps/x86_64/dl-machine.h: Likewise.
8977 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8979         * login/login.c (login): Always initialize ut_line field
8980         [PR libc/2991].
8982 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8984         * sysdeps/i386/Makefile (sysdep_routines): Add
8985         divdi3 in csu dir.
8986         (shared-only-routines): Likewise.
8987         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
8988         (shared-only-routines): Likewise.
8989         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
8990         (shared-only-routines): Likewise.
8991         * sysdeps/wordsize-32/divdi3.c: New file.
8993 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
8995         * locale/iso-4217.def: Remove obsolete currencies for countries
8996         with Euro.
8998 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
9000         * posix/regcomp.c (regcomp): Remove a redundant condition.
9001         (init_word_char): Add a check on malloc failure.
9002         (create_initial_state): Likewise.
9003         (duplicate_node): Likewise.
9004         (calc_eclosure): Likewise.
9005         (calc_eclosure_iter): Likewise.
9006         (parse_expression): Likewise.
9007         (parse_bracket_exp): Remove unnecessary malloc invocations.
9008         (build_equiv_class): Likewise.
9009         (build_charclass): Likewise.
9010         * posix/regex_internal.c (re_node_set_intersect): Add a check
9011         on malloc failure.
9012         (re_node_set_add_intersect): Likewise.
9013         (re_node_set_merge): Likewise.
9014         (re_acquire_state): Likewise.
9015         (re_acquire_state_context): Likewise.
9016         (create_newstate_common): Likewise.
9017         (register_state): Likewise.
9018         (create_ci_newstate): Likewise.
9019         (create_cd_newstate): Likewise.
9020         * posix/regex_internal.h: Fix prototypes of re_acquire_state
9021         and re_acquire_state_context.
9022         * posix/regexec.c (regexec): Suit it to the error handling of
9023         re_search_internal.
9024         (re_match): Likewise.
9025         (re_search): Likewise.
9026         (re_search_internal): Add a check on malloc failure.
9027         (acquire_init_state_context): Likewise.
9028         (check_matching): Likewise.
9029         (proceed_next_node): Likewise.
9030         (set_regs): Likewise.
9031         (sift_states_backward): Likewise.
9032         (sift_states_iter_bkref): Likewise.
9033         (add_epsilon_backreference): Likewise.
9034         (transit_state): Likewise.
9035         (transit_state_sb): Likewise.
9036         (transit_state_mb): Likewise.
9037         (transit_state_bkref_loop): Likewise.
9038         (build_trtable): Likewise.
9039         (group_nodes_into_DFAstates): Likewise.
9040         (match_ctx_init): Likewise.
9041         (match_ctx_add_entry): Likewise.
9043 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
9045         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
9046         l_libname if profiling is enabled [PR libc/2916].
9048         * sysdeps/ia64/dl-tls.h: New file.
9050 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
9052         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
9053         Work around an Alpha gas bug.
9055 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
9057         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
9058         uses read to load the catalog.
9059         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
9061 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
9063         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
9064         regex_internal.c, and regex_internal.h.
9065         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
9066         * posix/regex.c: Complete rewrite.
9067         * posix/regexec.c: New file.
9068         * posix/regcomp.c: New file.
9069         * posix/regex_internal.c: New file.
9070         * posix/regex_internal.h: New file.
9071         * posix/regex.h (RE_ICASE): New macro.
9072         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
9074         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
9075         ungetwc.  It's a macro.
9076         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
9077         implementation.
9078         Reported by Jason Merrill <jason@redhat.com>.
9080 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
9082         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
9083         position to fp->_offset if it is set.
9084         * stdio-common/Makefile (tests): Add tst-fdopen.
9085         * stdio-common/tst-fdopen.c: New test.
9087 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
9089         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
9090         * stdio-common/tst-ungetc.c (main): Add another test.
9092 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
9094         * assert/assert-perr.c: Use INTUSE to reference functions and variables
9095         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
9096         aliases.  Add prototypes for the new aliases.
9097         * assert/assert.c: Likewise.
9098         * include/libc-symbols.h: Likewise.
9099         * include/stdio.h: Likewise.
9100         * include/netinet/in.h: Likewise.
9101         * include/rpc/auth.h: Likewise.
9102         * include/rpc/auth_unix.h: Likewise.
9103         * include/rpc/key_prot.h: Likewise.
9104         * include/rpc/pmap_prot.h: Likewise.
9105         * include/rpc/pmap_rmt.h: Likewise.
9106         * include/rpc/rpc_msg.h: Likewise.
9107         * include/rpc/xdr.h: Likewise.
9108         * inet/gethstbyad_r.c: Likewise.
9109         * inet/gethstbynm2_r.c: Likewise.
9110         * inet/gethstbynm_r.c: Likewise.
9111         * inet/gethstent_r.c: Likewise.
9112         * inet/in6_addr.c: Likewise.
9113         * libio/__fpurge.c: Likewise.
9114         * libio/filedoalloc.c: Likewise.
9115         * libio/fileops.c: Likewise.
9116         * libio/ftello.c: Likewise.
9117         * libio/ftello64.c: Likewise.
9118         * libio/genops.c: Likewise.
9119         * libio/iofclose.c: Likewise.
9120         * libio/iofdopen.c: Likewise.
9121         * libio/iofflush.c: Likewise.
9122         * libio/iofflush_u.c: Likewise.
9123         * libio/iofgetpos.c: Likewise.
9124         * libio/iofgetpos64.c: Likewise.
9125         * libio/iofgets.c: Likewise.
9126         * libio/iofgets_u.c: Likewise.
9127         * libio/iofopen.c: Likewise.
9128         * libio/iofopncook.c: Likewise.
9129         * libio/iofputs.c: Likewise.
9130         * libio/iofread.c: Likewise.
9131         * libio/iofread_u.c: Likewise.
9132         * libio/iofsetpos.c: Likewise.
9133         * libio/iofsetpos64.c: Likewise.
9134         * libio/ioftell.c: Likewise.
9135         * libio/iofwrite.c: Likewise.
9136         * libio/iogetline.c: Likewise.
9137         * libio/iogets.c: Likewise.
9138         * libio/iogetwline.c: Likewise.
9139         * libio/iolibio.h: Likewise.
9140         * libio/iopadn.c: Likewise.
9141         * libio/iopopen.c: Likewise.
9142         * libio/ioseekoff.c: Likewise.
9143         * libio/ioseekpos.c: Likewise.
9144         * libio/iosetbuffer.c: Likewise.
9145         * libio/iosetvbuf.c: Likewise.
9146         * libio/ioungetc.c: Likewise.
9147         * libio/ioungetwc.c: Likewise.
9148         * libio/iovdprintf.c: Likewise.
9149         * libio/iovsprintf.c: Likewise.
9150         * libio/iovsscanf.c: Likewise.
9151         * libio/libioP.h: Likewise.
9152         * libio/memstream.c: Likewise.
9153         * libio/obprintf.c: Likewise.
9154         * libio/oldfileops.c: Likewise.
9155         * libio/oldiofclose.c: Likewise.
9156         * libio/oldiofdopen.c: Likewise.
9157         * libio/oldiofgetpos.c: Likewise.
9158         * libio/oldiofgetpos64.c: Likewise.
9159         * libio/oldiofopen.c: Likewise.
9160         * libio/oldiofsetpos.c: Likewise.
9161         * libio/oldiofsetpos64.c: Likewise.
9162         * libio/oldiopopen.c: Likewise.
9163         * libio/oldstdfiles.c: Likewise.
9164         * libio/putc.c: Likewise.
9165         * libio/setbuf.c: Likewise.
9166         * libio/setlinebuf.c: Likewise.
9167         * libio/stdfiles.c: Likewise.
9168         * libio/stdio.c: Likewise.
9169         * libio/strops.c: Likewise.
9170         * libio/vasprintf.c: Likewise.
9171         * libio/vscanf.c: Likewise.
9172         * libio/vsnprintf.c: Likewise.
9173         * libio/vswprintf.c: Likewise.
9174         * libio/wfiledoalloc.c: Likewise.
9175         * libio/wfileops.c: Likewise.
9176         * libio/wgenops.c: Likewise.
9177         * libio/wstrops.c: Likewise.
9178         * malloc/mtrace.c: Likewise.
9179         * misc/error.c: Likewise.
9180         * misc/syslog.c: Likewise.
9181         * nss/getXXbyYY_r.c: Likewise.
9182         * nss/getXXent_r.c: Likewise.
9183         * nss/hosts-lookup.c: Likewise.
9184         * stdio-common/getw.c
9185         * stdio-common/printf-prs.c: Likewise.
9186         * stdio-common/printf_fp.c: Likewise.
9187         * stdio-common/printf_size.c: Likewise.
9188         * stdio-common/putw.c: Likewise.
9189         * stdio-common/scanf.c: Likewise.
9190         * stdio-common/sprintf.c: Likewise.
9191         * stdio-common/tmpfile64.c: Likewise.
9192         * stdio-common/vfprintf.c: Likewise.
9193         * stdio-common/vfscanf.c: Likewise.
9194         * stdlib/strfmon.c: Likewise.
9195         * sunrpc/auth_des.c: Likewise.
9196         * sunrpc/auth_none.c: Likewise.
9197         * sunrpc/auth_unix.c: Likewise.
9198         * sunrpc/authdes_prot.c: Likewise.
9199         * sunrpc/authuxprot.c: Likewise.
9200         * sunrpc/clnt_perr.c: Likewise.
9201         * sunrpc/clnt_raw.c: Likewise.
9202         * sunrpc/clnt_tcp.c: Likewise.
9203         * sunrpc/clnt_udp.c: Likewise.
9204         * sunrpc/clnt_unix.c: Likewise.
9205         * sunrpc/key_call.c: Likewise.
9206         * sunrpc/key_prot.c: Likewise.
9207         * sunrpc/openchild.c: Likewise.
9208         * sunrpc/pm_getmaps.c: Likewise.
9209         * sunrpc/pm_getport.c: Likewise.
9210         * sunrpc/pmap_clnt.c: Likewise.
9211         * sunrpc/pmap_prot.c: Likewise.
9212         * sunrpc/pmap_prot2.c: Likewise.
9213         * sunrpc/pmap_rmt.c: Likewise.
9214         * sunrpc/rpc_cmsg.c: Likewise.
9215         * sunrpc/rpc_prot.c: Likewise.
9216         * sunrpc/svc_authux.c: Likewise.
9217         * sunrpc/svc_raw.c: Likewise.
9218         * sunrpc/svc_simple.c: Likewise.
9219         * sunrpc/svc_tcp.c: Likewise.
9220         * sunrpc/svc_udp.c: Likewise.
9221         * sunrpc/svc_unix.c: Likewise.
9222         * sunrpc/xdr.c: Likewise.
9223         * sunrpc/xdr_array.c: Likewise.
9224         * sunrpc/xdr_mem.c: Likewise.
9225         * sunrpc/xdr_rec.c: Likewise.
9226         * sunrpc/xdr_ref.c: Likewise.
9227         * sunrpc/xdr_stdio.c: Likewise.
9228         * sysdeps/generic/_strerror.c: Likewise.
9229         * sysdeps/generic/printf_fphex.c: Likewise.
9230         * sysdeps/generic/tmpfile.c: Likewise.
9231         * sysdeps/gnu/errlist.awk: Likewise.
9232         * sysdeps/gnu/errlist.c: Likewise.
9234         * libio/Makefile (routines): Remove iosprint.
9235         * libio/iosprintf.c: Removed
9238 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
9240         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
9241         non_dynamic_init and exported now.
9242         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
9243         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
9244         !SHARED.
9245         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
9246         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
9247         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
9249 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
9251         * elf/dl-close.c (free_slotinfo): Check for end of list and return
9252         true in this case.
9254         * locale/iso-639.def: Add language codes for Walloon.
9256         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
9257         total number of relocations performed.
9259         * elf/sprof.c (load_profdata): If do_test provide information as
9260         to why loading failed.
9261         * elf/dl-profile.c (_dl_start_profile): Initialize all of
9262         hist_hdr.dimen.
9264         * csu/set-init.c: Moved to...
9265         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
9266         * csu/Makefile: Don't compile set-init.
9267         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
9268         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
9269         to __libc_init.
9270         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
9271         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
9272         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
9273         __libc_init.
9274         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
9275         __libc_subinit.
9277 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
9279         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
9280         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
9281         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
9282         (_dl_deallocate_tls): New function.
9283         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
9284         _dl_deallocate_tls.
9286 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
9288         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
9289         * stdio-common/tst-fseek.c (main): Add test for this.
9291 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
9293         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
9295 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
9297         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
9298         pointer before dereferencing.
9300 2002-02-18  Roland McGrath  <roland@frob.com>
9302         * sysdeps/mach/hurd/times.c: Fix typo in last change.
9304         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
9305         Use task_policy in place of task_priority.
9307         * sysdeps/generic/bits/mman.h
9308         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
9309         * sysdeps/mach/msync.c: New file.
9311         * sysdeps/mach/powerpc/syscall.S: New file.
9313         * mach/msg.c [MACH_MSG_OVERWRITE]
9314         (__mach_msg_trap, __mach_msg_overwrite): New functions.
9315         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
9317         * sysdeps/mach/configure.in: Check for clock.defs to put into
9318         mach_interface_list.
9319         * sysdeps/mach/configure: Regenerated.
9321         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
9322         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
9323         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
9324         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
9325         (mach-shortcuts): Add device_read_overwrite_request,
9326         device_read_overwrite, vm_read_overwrite, thread_switch.
9328         * configure.in (base_machine): Set to $machine by default.
9329         * configure: Regenerated.
9331         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
9332         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
9333         * sysdeps/mach/configure: Regenerated.
9334         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
9336         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
9338         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
9340         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
9341         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
9343 2002-02-17  Roland McGrath  <roland@frob.com>
9345         * sysdeps/mach/hurd/times.c
9346         [NO_CREATION_TIME] (startup_time): New static variable.
9347         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
9348         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
9349         creation_time from task_basic_info.
9350         (__times): Use __gettimeofday instead of __host_get_time.
9352         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
9353         Use untyped Mach IPC message format.
9355         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
9357         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
9358         _S_catch_exception_raise_state_identity,
9359         _hurdsig_fault_catch_exception_raise_state,
9360         _hurdsig_fault_catch_exception_raise_state_identity.
9362         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
9364         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
9365         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
9367         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
9368         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
9370         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
9371         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
9372         them as no-op macros.
9373         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
9374         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
9376         * sysdeps/powerpc/dl-machine.h
9377         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
9379         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
9380         Use untyped Mach IPC message format.
9382         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
9383         Handle untyped Mach IPC message formats.
9385         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
9386         Expect different argument conventions when this is defined.
9387         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
9388         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
9389         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
9390         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
9391         for OSF Mach variant.
9392         (faulted): Use mig_reply_error_t for REPLY.
9393         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
9394         in __thread_set_exception_ports call.
9395         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
9396         __mach_port_set_attributes in place of __mach_port_set_qlimit.
9398         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
9399         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
9400         on Darwin, which includes bogons.
9402         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
9403         variable LOADBASE so it's not declared when it's not used.
9405 2002-02-16  Roland McGrath  <roland@frob.com>
9407         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
9408         to use BI.creation_time.
9410         * mach/Machrules (MIG): Add -x c to CPP value passed down.
9412         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
9413         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
9414         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
9415         host_page_size instead of vm_statistics.
9417         * sysdeps/mach/Makefile (mach-before-compile): Don't include
9418         mach_interface.h here, since not all variants use that name.
9420         * sysdeps/mach/configure.in: Add some checks for Mach headers
9421         to ensure a sane installation.
9422         (mach_interface_list): Define this variable by checking for .defs
9423         files found in various variants.
9424         * configure.in (mach_interface_list): AC_SUBST this.
9425         * config.make.in (mach-interface-list): New substituted variable.
9426         * mach/Makefile (user-interfaces): Define this using the value
9427         of $(mach-interface-list) instead of mach, mach4.
9428         Updated other references to mach_interface to use it as well.
9430         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
9432         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
9433         mig_reply_error_t for OSF Mach variant.
9435         * mach/Makefile (routines): Remove bootprivport.
9436         * mach/bootprivport.c: File removed.  It has never been used.
9438         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
9439         Grok the OSF flavor of message format.
9440         (mach_msg_destroy_port): For MAKE_SEND and
9441         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
9442         no-senders notification.
9444 2002-02-06  Roland McGrath  <roland@frob.com>
9446         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
9447         to here if 2.0 compatibility enabled ...
9448         (libc: GLIBC_2.1.3): ... from here.
9450 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
9452         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
9453         generation counter.
9454         * elf/dl-close.c (_dl_close): Likewise.
9456 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
9458         * elf/Makefile: Add rules to build and run tst-tls8.
9459         * elf/tst-tls8.c: New file.
9460         * elf/tst-tlsmod4.c: New file.
9462         * stdlib/test-a64l.c (tests): Add more test cases.
9464         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
9465         Reported by Walter Harms <WHarms@bfs.de>.
9467 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
9469         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
9470         definitions for struct sigcontext.
9471         Suggested by David Mosberger-Tang.
9473 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9475         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
9476         for removing reference of module in slotinfo list.
9477         (_dl_close): Use remove_slotinfo.
9478         * sysdeps/generic/dl-tls.c: General pretty printing.
9479         (oom): Define only if SHARED.
9480         (_dl_next_tls_modid): Correct starting point for the case we assume
9481         there is a gap.  Add missing instruction grouping (doh!).  Correct
9482         tests for reaching maximum index.
9483         * elf/Makefile: Add rules to build and run tst-tls7.
9484         * elf/tst-tls7.c: New file.
9485         * elf/tst-tlsmod3.c: New file.
9487         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9488         USE_TLS.
9489         * elf/tst-tlsmod2.c: Likewise.
9491         * elf/dl-close.c (_dl_close): When closing an object using TLS
9492         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9493         true.  Increment dl_tls_generation only if we closed any TLS-using
9494         object.
9495         * elf/tst-tls6.c: New file.
9496         * elf/Makefile: Add rules to build and run tst-tls6.
9498         * po/da.po: Update from translation team.
9500         * locale/categories.def: Fix typo [PR libc/2948].
9501         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9502         [PR libc/2949].
9503         * locale/iso-4217.def: Update from official version [PR libc/2950].
9504         * glibcbug.in: Honor TMPDIR [PR libc/2951].
9505         * locale/programs/ld-collate.c (collate_finish): Bail out with a
9506         message if input is too confusion instead of using assert.
9507         (collate_read): Don't crash on unknown symbol [PR libc/2952].
9508         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9510         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9511         * elf/tst-tls2.c: Likewise.
9512         * elf/tst-tls3.c: Likewise.
9514 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
9516         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9518 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9520         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9521         if this is really necessary.
9523         * elf/dl-close.c (_dl_close): Implement freeing entries in the
9524         slotinfo array.
9525         (free_mem): Free memory for the slotinfo array if possible.
9527 2002-02-12  Andreas Schwab  <schwab@suse.de>
9529         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9531 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
9533         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9534         TLS_DTV_UNALLOCATE.
9535         (oom): New function.
9536         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9537         (_dl_determine_tlsoffset): Likewise.
9538         (_dl_allocate_tls): Likewise.
9539         (__TLS_GET_ADDR): Define if not already defined.
9540         (_dl_tls_symaddr): New function.
9541         (allocate_and_init): New function.
9542         (__tls_get_addr): Actually implement handling of generation counter
9543         and deferred allocation.
9544         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9545         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9546         _dl_tls_generation.
9547         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9548         Declare _dl_tls_symaddr.
9549         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9550         SHARED.
9551         * include/link.h (struct link_map):  Remove l_tls_nextimage and
9552         l_tls_previmage.
9553         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9554         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9555         (_dl_vsym): Likewise.
9556         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9557         layout.
9558         (dl_main): Allow PT_TLS be present for empty segment.  Remove
9559         nextimage list handling.  Instead add all modules using TLS to
9560         dl_tls_dtv_slotinfo_list.
9561         * elf/dl-open.c (dl_open_worker): After successfully loading all
9562         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9563         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9564         empty segment don't do anything.  Remove handling of initimage list.
9565         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9566         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9567         * elf/dl-minimal.c: Define __libc_memalign.
9568         * elf/dl-support.c: Remove _dl_initimage_list.  Add
9569         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9570         _dl_tls_generation.
9571         * include/stdlib.h: Declare __libc_memalign.
9573         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9574         * elf/tst-tls4.c: New file.
9575         * elf/tst-tls5.c: New file.
9576         * elf/tst-tlsmod2.c: New file.
9578         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9580         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9582         * elf/tst-tls1.c: Use test-skeleton.c.
9583         * elf/tst-tls2.c: Likewise.
9584         * elf/tst-tls3.c: Likewise.
9586         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9588 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
9590         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9592 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
9594         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9596         * elf/tst-tls3.c: New file.
9597         * elf/tst-tlsmod1.c: New file.
9598         * elf/Makefile: Add rules to build and run tst-tls3.
9600         * sysdeps/i386/dl-machine.h: Include <tls.h>.
9601         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9602         TLS relocations.
9604         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9606         * po/fr.po: Update from translation team.
9608         * elf/tls-macros.h: Add alternative macros for use in PIC.
9610         * elf/dl-lookup.c: Include <tls.h>.
9611         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9613         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9614         required by passing pointer to last element of the list.
9616         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9617         l_tls_initimage to a place where it actually is performed.
9619         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9620         after globfree() calls.
9622         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9623         (openaux): Pass open_mode as new last argument to _dl_map_object.
9624         (_dl_map_object_deps): Add new argument open_mode.  Initialize
9625         open_mode element of args variable with it.
9626         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9627         _dl_map_object_deps.
9628         * elf/rtld.c (dl_main): Add zero as last parameter to
9629         _dl_map_object_deps call.
9630         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9631         * elf/nodlopen2.c: New file.
9632         * elf/nodlopenmod2.c: New file.
9633         * elf/Makefile: Add rules to build and run nodlopen2.
9635         * elf/tst-tls1.c: Move TLS helper macros to...
9636         * elf/tls-macros.h: ...here.  New file.
9637         * elf/tst-tls2.c: New file.
9638         * elf/Makefile (tests): Add tst-tls2.
9639         (distribute): Add tls-macros.h.
9641         * po/sv.po: Update from translation team.
9643         * elf/tst-tls1.c (main): Add complete set of tests.  Split
9644         architecture specific definitions from the actual test code.
9646         * po/tr.po: Update from translation team.
9648 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
9650         * elf/Makefile (tests): Add tst-tls1.
9651         * elf/tst-tls1.c: New file.
9653         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9654         alignment of TCB for now.
9656         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9657         initialization image for the application itself.
9659         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9660         loop to initialize TLS block.
9662 2002-02-08  Richard Henderson  <rth@redhat.com>
9664         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9665         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9667         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9669 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
9671         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9673 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
9675         * po/ca.po: Update from translation team.
9676         * po/sk.po: Likewise.
9678         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9679         (dl_main): Move dtv/static TLS handling before relocation.
9680         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
9681         TLS_INIT_TP to allocate and install the dtv/static TLS block.
9682         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9683         so far uses TLS initialize GL(dl_tls_static_size) and
9684         GL(dl_tls_static_align) to account for the TCB.
9685         (_dl_allocate_tls): New function.
9686         * sysdeps/generic/ldsodefs.h (rtld_global): Add
9687         _dl_initial_dtv_malloced.
9689         * configure.in: Test for __builtin_memset more realistically.
9691         * csu/version.c (banner): If TLS support is available say so.
9693 2002-02-04  H.J. Lu  <hjl@gnu.org>
9695         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9696         __attribute_used__.
9697         (__dl_runtime_resolve): Likewise.
9699         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9700         declaration.
9702 2001-11-15  H.J. Lu  <hjl@gnu.org>
9704         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9705         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9707         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9709 2002-02-07  H.J. Lu  <hjl@gnu.org>
9711         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9712         ".set noreorder".
9713         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9714         Likewise.
9716 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9718         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9720         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9721         ___tls_get_addr_internal.
9722         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9724         * po/ko.po: Update from translation team.
9726 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
9728         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9729         attribute, change __pad{1,2} type to unsigned int.
9730         (struct stat64): Remove packed attribute.
9732 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9734         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9736 2002-02-07  Andreas Schwab  <schwab@suse.de>
9738         * configure.in: Fix check for -zcombreloc.
9740 2002-02-06  H.J. Lu  <hjl@gnu.org>
9742         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9743         * configure.in: Check if __builtin_memset really works.
9744         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9745         __GNUC_PREREQ (2, 96) before using __builtin_memset.
9747 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9749         * io/bug-ftw3.c (main): Don't try the test if root.
9751 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9753         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9754         constraints.
9755         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9756         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9757         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9758         Likewise.
9759         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9760         a weak alias for __clone.
9761         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9762         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9763         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9764         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9765         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9766         a weak alias for __mmap64.
9768 2002-02-05  H.J. Lu  <hjl@gnu.org>
9770         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9771         (atomic_add): Likewise.
9772         (compare_and_swap): Likewise.
9773         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9775 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9777         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9779         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9780         alignment of the TCB and store total size and alignment of static
9781         TLS block in _dl_tls_static_size and _dl_tls_static_align.
9782         tls_index is a typedef.
9783         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9784         _dl_tls_static_align.
9785         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9786         * elf/dl-support.c: Define _dl_tls_static_size and
9787         _dl_tls_static_align.
9789 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9791         * configure.in: Add --without-tls option.
9792         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9793         --without-tls is given.
9795         * sysdeps/generic/dl-tls.c: Include <tls.h>.
9797         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9799 2002-02-06  Roland McGrath  <roland@frob.com>
9801         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9802         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9804         * scripts/versions.awk: Improve error message for missing version.
9805         Each version inherits from the last one only if they have the same
9806         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9807         but not GLIBC_x and FOO_y.
9809         * scripts/firstversions.awk: Handle libraries that don't have each
9810         particular version named in the third column of shlib-versions.
9812         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9814 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9816         * Versions.def [ld]: Add GLIBC_2.3.
9817         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9818         * elf/Makefile (dl-routines): Add dl-tls.
9819         (distribute): Add dl-tls.h.
9820         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9821         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9822         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9823         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9824         along with the other info in the link map.  Change queueing of init
9825         images for double linked list.  Use _dl_next_tls_modid to compute
9826         l_tls_modid.
9827         * elf/rtld.c (_dl_start_final): Store alignment requirement
9828         along with the other info in rtld map and executable map.
9829         (dl_main): Add ld.so to the init image list if necessary.  Compute
9830         final module ID with _dl_next_tls_modid.
9831         * include/link.h (struct link_map): Add l_tls_previmage and
9832         l_tls_align.
9833         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9834         * sysdeps/i386/elf/Versions: New file.
9835         * sysdeps/generic/dl-tls.c: New file.
9836         * sysdeps/generic/dl-tls.h: New file.
9837         * sysdeps/i386/dl-tls.h: New file.
9839 2002-02-06  Roland McGrath  <roland@frob.com>
9841         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9842         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9844 2002-01-05  Roland McGrath  <roland@frob.com>
9846         * sysdeps/mach/configure.in: New file.
9847         * sysdeps/mach/configure: New generated file.
9849         * mach/Makefile (user-interfaces): Remove default_pager_helper.
9850         It has never been used by anything.
9852 2002-02-06  H.J. Lu  <hjl@gnu.org>
9854         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9855         is included.
9857 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9859         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9860         attribute((packed)) to counter stupid people misusing gcc options.
9861         (struct stat64): Likewise.
9863 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9865         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
9866         the variables which are used as booleans.
9868 2002-02-06  Andreas Jaeger  <aj@suse.de>
9870         * include/libc-symbols.h (INTUSE): Renamed from INT.
9871         * elf/dl-deps.c: Change users.
9872         * sysdeps/generic/dl-sysdep.c: Likewise.
9873         * sysdeps/generic/dl-cache.c: Likewise.
9874         * elf/dl-reloc.c: Likewise.
9875         * elf/rtld.c: Likewise.
9876         * elf/dl-version.c: Likewise.
9877         * elf/dl-load.c: Likewise.
9878         * elf/dl-dst.h: Likewise.
9879         * elf/dl-init.c: Likewise.
9880         * elf/dl-error.c: Likewise.
9881         * elf/dl-fini.c: Likewise.
9882         * elf/dl-runtime.c: Likewise.
9883         * elf/do-lookup.h: Likewise.
9885         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9886         definition.
9887         * stdio-common/_itowa.h: Likewise.
9889 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9891         * elf/dl-minimal.c: Define _itoa_lower_digits.
9893         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9894         DT_FLAGS set.
9896         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9897         loading modules with the DF_STATIC_TLS flag set.
9898         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9899         element.
9900         * include/link.h (struct link_map): Add l_flags field.
9901         * elf/elf.h (DF_STATIC_TLS): New definition.
9903         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9904         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
9906         * elf/rtld.c (process_dl_debug): Correct printing help message.
9907         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9908         for %s.
9910         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9911         definition and pass &errno in use of this variable.
9912         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9914 2002-02-04  Andreas Schwab  <schwab@suse.de>
9916         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
9917         * locale/programs/charmap-dir.c: Wrap calls that output messages
9918         with WITH_CUR_LOCALE.  Include "localedef.h" first.
9919         * locale/programs/charmap.c: Likewise.
9920         * locale/programs/ld-address.c: Likewise.
9921         * locale/programs/ld-collate.c: Likewise.
9922         * locale/programs/ld-ctype.c: Likewise.
9923         * locale/programs/ld-identification.c: Likewise.
9924         * locale/programs/ld-measurement.c: Likewise.
9925         * locale/programs/ld-messages.c: Likewise.
9926         * locale/programs/ld-monetary.c: Likewise.
9927         * locale/programs/ld-name.c: Likewise.
9928         * locale/programs/ld-numeric.c: Likewise.
9929         * locale/programs/ld-paper.c: Likewise.
9930         * locale/programs/ld-telephone.c: Likewise.
9931         * locale/programs/ld-time.c: Likewise.
9932         * locale/programs/linereader.c: Likewise.
9933         * locale/programs/linereader.h: Likewise.
9934         * locale/programs/localedef.c: Likewise.
9935         * locale/programs/locfile.c: Likewise.
9936         * locale/programs/repertoire.c: Likewise.
9938 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9940         * elf/rtld.c (_dl_start_final): Determine load address to locate
9941         ehdr with GL(dl_rtld_map).l_map_start.
9943         * po/ca.po: Update from translation team.
9945         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
9946         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
9947         header entry.
9948         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9949         _dl_tls_module_cnt.
9950         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
9952 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
9954         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
9955         * include/link.h (struct link_map): Add various members for TLS
9956         information.
9957         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9958         _rtld_tlsoffset, add _dl_initimage_list.
9959         * sysdeps/i386/dl-lookupcfg.h: New file.
9960         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
9961         TLS relocation.  When using TLS we now use RESOLVE_MAP.
9962         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
9963         is used.
9965         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
9966         unused.
9968         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
9969         thread-pointer as soon as possible.
9970         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
9971         elements in rtld_global.
9972         * sysdeps/generic/tls.h: New file.
9973         * elf/Makefile (distribute): Add tls.h.
9974         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
9975         relocations.  Not complete yet.
9977         * resolv/resolv.h: Allow user to define __need_res_state and only
9978         define __res_start structure then.
9979         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
9981         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
9982         dl_cpuclock_offset initialization to _dl_start_final.
9983         (_dl_show_auxv): Avoid unnecessary sign extension.
9984         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
9986 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
9988         * config.h.in: Add HAVE_TLS_SUPPORT.
9989         * sysdeps/i386/elf/configure.in: New file.
9991 2002-02-03  Andreas Schwab  <schwab@suse.de>
9993         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
9994         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
9996 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
9998         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
9999         alloca if the memory reqirements are too high.
10001 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
10003         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
10004         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
10005         the former is available anyway and speed isn't important here.
10006         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
10007         * elf/dl-version.c (match_symbol): Likewise.
10008         (_dl_check_map_versions): Likewise.
10009         * elf/rtld.c (process_envvars): Likewise.
10010         (print_statistics): Likewise.
10011         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
10012         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
10013         bases.  Add assert to catch uses of unimplemented features.
10014         (__strsep): Add assert to catch uses of unimplemented features.
10015         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
10016         and avoid inline optimization.
10017         * elf/rtld.c (process_envvars): Likewise.
10018         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
10019         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
10020         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
10022 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10024         * stdio-common/_itoa.h: Minor simplifications of the code.
10025         * stdio-common/_itoa.c: Likewise.
10027         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
10028         instead of _dl_printf for debugging info output.
10030         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
10031         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
10033 2002-02-01  H.J. Lu  <hjl@gnu.org>
10035         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
10036         (atomic_add): Likewise.
10037         (compare_and_swap): Return 0 only when failed to compare. Use
10038         branch likely.
10040         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
10041         branch likely.
10043 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
10045         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
10047 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10049         * elf/dl-minimal.c (__strsep): New minimal implementation.
10051 2002-02-02  Paul Eggert  <eggert@twinsun.com>
10053         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
10054         (__mktime_internal): If no tm_isdst is requested, prefer solutions
10055         with tm_isdst > 0 when the requested time falls within a
10056         spring-forward gap [PR libc/2894].
10058 2002-02-03  Andreas Schwab  <schwab@suse.de>
10060         * stdio-common/tst-rndseek.c: Increase timeout.
10062 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10064         Change ld.so to not use functions which are exported.  One cannot
10065         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
10066         definitions.
10067         * include/libc-symbols.h: Define INT and INTDEF.
10068         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
10069         _dl_signal_error_internal, _dl_map_object_internal,
10070         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
10071         _dl_lookup_versioned_symbol_internal,
10072         _dl_relocate_object_internal, _dl_debug_state_internal,
10073         _dl_start_profile_internal, and _dl_unload_cache_internal.
10074         * include/dlfcn.h: Declare _dl_catch_error_internal.
10075         * elf/rtld.c: Use INT for calls to any of the *_internal functions
10076         above.  Add INTDEF to function definitions.
10077         * elf/dl-debug.c: Likewise.
10078         * elf/dl-deps.c: Likewise.
10079         * elf/dl-dst.h: Likewise.
10080         * elf/dl-error.c: Likewise.
10081         * elf/dl-fini.c: Likewise.
10082         * elf/dl-init.c: Likewise.
10083         * elf/dl-load.c: Likewise.
10084         * elf/dl-lookup.c: Likewise.
10085         * elf/dl-misc.c: Likewise.
10086         * elf/dl-open.c: Likewise.
10087         * elf/dl-profile.c: Likewise.
10088         * elf/dl-reloc.c: Likewise.
10089         * elf/dl-runtime.c: Likewise.
10090         * elf/dl-version.c: Likewise.
10091         * elf/do-lookup.h: Likewise.
10092         * sysdeps/generic/dl-cache.c: Likewise.
10093         * sysdeps/generic/dl-sysdep.c: Likewise.
10094         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
10095         instead of _dl_init.
10096         * sysdeps/arm/dl-machine.h: Likewise.
10097         * sysdeps/cris/dl-machine.h: Likewise.
10098         * sysdeps/hppa/dl-machine.h: Likewise.
10099         * sysdeps/i386/dl-machine.h: Likewise.
10100         * sysdeps/ia64/dl-machine.h: Likewise.
10101         * sysdeps/m68k/dl-machine.h: Likewise.
10102         * sysdeps/mips/dl-machine.h: Likewise.
10103         * sysdeps/mips/mips64/dl-machine.h: Likewise.
10104         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10105         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10106         * sysdeps/sh/dl-machine.h: Likewise.
10107         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10108         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10109         * sysdeps/x86_64/dl-machine.h: Likewise.
10110         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
10112         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
10113         and _dl_debug_initialize.
10115         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
10116         more information.
10117         * elf/rtld.c (dl_main): Avoid strrchr.
10118         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
10119         result of readlink.  Search from the back for '/'.
10121         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
10122         strncpy if possible.
10124         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
10125         strncmp.
10126         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
10127         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
10128         strspn, and strcspn.
10129         (process_envvars): Don't use strcspn.
10131         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
10132         (_dl_dst_substitute): Likewise.
10134 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10136         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
10137         code which is never used when relocating ld.so itself.
10139         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
10140         starting ld.so itself.  Move l_addr variable initialization closer
10141         to use.
10142         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
10144 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
10146         * Versions.def (libc): Add GLIBC_PRIVATE.
10147         (libdb, libnss_db, libdb1): Remove.
10148         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
10149         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
10150         (libpthread): Add GLIBC_PRIVATE.
10151         (libresolv): Likewise, remove GLIBC_2.1.
10152         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
10153         GLIBC_2.2.3, GLIBC_2.3.
10154         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
10155         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
10156         _dl_sym, _dl_vsym): Likewise.
10157         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
10158         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
10159         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
10160         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
10161         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
10162         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
10163         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
10164         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
10165         Likewise.
10166         (_dl_object_relocation_scope): Remove.
10167         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
10168         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
10169         __gconv_cache): Move to GLIBC_PRIVATE.
10170         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
10171         __internal_setnetgrent): Likewise.
10172         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
10173         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
10174         * locale/Versions (__collate_element_hash, __collate_element_strings,
10175         __collate_symbol_classes, __collate_symbol_hash,
10176         __collate_symbol_strings, _nl_current_LC_COLLATE,
10177         _nl_current_LC_CTYPE): Likewise.
10178         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
10179         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
10180         (libnss_nis, libnss_nisplus): Likewise.
10181         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
10182         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
10183         (libnss_files): Move all symbols to GLIBC_PRIVATE.
10184         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
10185         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
10186         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
10187         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
10188         __ns_get16, __ns_samename): Likewise.
10189         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
10190         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
10191         GLIBC_PRIVATE.
10192         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
10193         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
10194         __libc_connect): Likewise.
10195         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
10196         Likewise.
10197         * stdlib/Versions (__libc_system): Likewise.
10198         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
10199         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
10200         * sysdeps/ia64/fpu/Versions: Likewise.
10201         * sysdeps/ia64/Versions: Likewise.
10202         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
10203         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
10204         to GLIBC_PRIVATE.
10205         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
10206         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
10207         __libc_sigaction): Likewise.
10208         * termios/Versions (__libc_tcdrain): Likewise.
10210         * misc/sys/cdefs (__attribute_noinline__): Define.
10211         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
10212         __attribute_noinline__.
10214         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
10215         * elf/dl-xstat64.c: New file.
10216         * elf/dl-fxstat64.c: New file.
10217         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
10218         don't export __fxstat64 at multiple versions.
10219         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
10220         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
10222 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
10224         * locale/program/ld-collate.c (collate_finish): Assign a wide
10225         char collation sequence value to multi character collating
10226         elements, and avoid over writing by non-character elements.
10228 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10230         * elf/Makefile (distribute): Add dl-procinfo.c.
10231         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
10232         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
10234 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
10236         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
10237         definition.
10238         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
10239         _rtld_global struct.
10240         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10241         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
10242         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10243         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
10244         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
10245         _dl_fpu_control_set): Remove unused externs.
10246         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
10247         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
10248         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
10249         related variables in _rtld_global struct.
10250         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
10251         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
10252         unused extern.
10254 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10256         * sysdeps/generic/dl-procinfo.c: New file.
10258 2002-02-01  Andreas Schwab  <schwab@suse.de>
10260         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
10262 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10264         * elf/rtld.c (_dl_start): Mark as internal_function.
10265         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
10266         in register.
10267         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
10268         General pretty printing.
10270 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
10272         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
10273         * elf/dl-reloc.c: Pretty printing.
10274         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
10275         procinfo-related variables in rtld_global struct.
10276         * elf/dl-support.c: Likewise.
10277         * elf/rtld.c: Likewise.
10278         * sysdeps/i386/i686/Makefile: Likewise.
10279         * sysdeps/i386/i686/hp-timing.c: Likewise.
10280         * sysdeps/i386/i686/hp-timing.h: Likewise.
10281         * sysdeps/ia64/Makefile: Likewise.
10282         * sysdeps/ia64/hp-timing.c: Likewise.
10283         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
10284         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
10285         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
10286         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
10287         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10288         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
10289         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
10290         * sysdeps/x86_64/Makefile: Likewise.
10292         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
10293         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
10294         _dl_debug_fd to rtld_global.
10295         * elf/Versions: Likewise.
10296         * elf/dl-close.c: Likewise.
10297         * elf/dl-iteratephdr.c: Likewise.
10298         * elf/dl-lookup.c: Likewise.
10299         * elf/dl-misc.c: Likewise.
10300         * elf/dl-open.c: Likewise.
10301         * elf/dl-support.c: Likewise.
10302         * elf/do-lookup.h: Likewise.
10303         * elf/rtld.c: Likewise.
10304         * sysdeps/generic/dl-cache.c: Likewise.
10305         * sysdeps/generic/dl-sysdep.c: Likewise.
10306         * sysdeps/ia64/Versions: Likewise.
10307         * sysdeps/unix/clock_gettime.c: Likewise.
10308         * sysdeps/unix/clock_settime.c: Likewise.
10309         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10310         * sysdeps/sparc/Versions: Removed.
10311         * sysdeps/i386/i686/Versions : Removed.
10312         * sysdeps/x86_64/Versions: Removed.
10313         * configure.in: Define HAVE_PROTECTED if .protected is available.
10314         * config.h.in: Add entry for HAVE_PROTECTED.
10316 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
10318         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
10319         code in struct _rtld_global.  Export this struct, remove all
10320         exports for the signal variables.
10321         * sysdeps/arm/dl-machine: Likewise.
10322         * sysdeps/generic/dl-origin: Likewise.
10323         * sysdeps/generic/dl-sysdep: Likewise.
10324         * sysdeps/generic/dl-cache: Likewise.
10325         * sysdeps/hppa/dl-fptr: Likewise.
10326         * sysdeps/hppa/dl-machine: Likewise.
10327         * sysdeps/cris/dl-machine: Likewise.
10328         * sysdeps/i386/dl-machine: Likewise.
10329         * sysdeps/ia64/dl-machine: Likewise.
10330         * sysdeps/m68k/dl-machine: Likewise.
10331         * sysdeps/mach/hurd/dl-sysdep: Likewise.
10332         * sysdeps/mips/mips64/dl-machine: Likewise.
10333         * sysdeps/mips/dl-machine: Likewise.
10334         * sysdeps/powerpc/elf/libc-start: Likewise.
10335         * sysdeps/powerpc/dl-machine: Likewise.
10336         * sysdeps/powerpc/dl-start: Likewise.
10337         * sysdeps/sparc/sparc32/dl-machine: Likewise.
10338         * sysdeps/sparc/sparc64/dl-machine: Likewise.
10339         * sysdeps/sh/dl-machine: Likewise.
10340         * sysdeps/s390/s390-32/dl-machine: Likewise.
10341         * sysdeps/s390/s390-64/dl-machine: Likewise.
10342         * sysdeps/unix/sysv/aix/libc-start: Likewise.
10343         * sysdeps/unix/sysv/aix/start-libc: Likewise.
10344         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
10345         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
10346         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
10347         * sysdeps/x86_64/dl-machine: Likewise.
10349 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
10351         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
10352         are too high.
10354 2002-01-31  Andreas Schwab  <schwab@suse.de>
10356         * sysdeps/posix/readv.c: Check for ssize_t overflow.
10358 2002-01-31  Andreas Schwab  <schwab@suse.de>
10360         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
10361         reference to _dl_pagesize.
10363 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
10365         * Versions.def [ld]: Add GLIBC_2.3.
10366         * elf/dl-addr.c: Move global variables for SHARED code in struct
10367         _rtld_global.  Export this struct, remove all exports for the
10368         signal variables.
10369         * elf/dl-close.c: Likewise.
10370         * elf/dl-conflict.c: Likewise.
10371         * elf/dl-debug.c: Likewise.
10372         * elf/dl-deps.c: Likewise.
10373         * elf/dl-dst.h: Likewise.
10374         * elf/dl-error.c: Likewise.
10375         * elf/dl-fini.c: Likewise.
10376         * elf/dl-init.c: Likewise.
10377         * elf/dl-iteratephdr.c: Likewise.
10378         * elf/dl-libc.c: Likewise.
10379         * elf/dl-load.c: Likewise.
10380         * elf/dl-lookup.c: Likewise.
10381         * elf/dl-minimal.c: Likewise.
10382         * elf/dl-object.c: Likewise.
10383         * elf/dl-open.c: Likewise.
10384         * elf/dl-profile.c: Likewise.
10385         * elf/dl-profstub.c: Likewise.
10386         * elf/dl-reloc.c: Likewise.
10387         * elf/dl-runtime.c: Likewise.
10388         * elf/dl-support.c: Likewise.
10389         * elf/dl-sym.c: Likewise.
10390         * elf/dl-version.c: Likewise.
10391         * elf/do-lookup.h: Likewise.
10392         * elf/do-rel.h: Likewise.
10393         * elf/dynamic-link.h: Likewise.
10394         * elf/rtld.c: Likewise.
10395         * sysdeps/generic/dl-cache.c: Likewise.
10396         * sysdeps/generic/dl-sysdep.c: Likewise.
10397         * sysdeps/generic/ldsodefs.h: Likewise.
10398         * sysdeps/generic/libc-start.c: Likewise.
10399         * sysdeps/i386/dl-machine.h: Likewise.
10400         * sysdeps/ia64/dl-fptr.c: Likewise.
10401         * sysdeps/ia64/dl-machine.h: Likewise.
10402         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
10403         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10404         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
10405         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
10406         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
10407         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
10408         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
10409         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
10411 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10413         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
10414         to avoid warning
10415         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
10417         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
10418         SHARED version.
10419         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
10421         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
10423 2002-01-29  Ben Collins  <bcollins@debian.org>
10425         * string/bits/string2.h (__mempcpy): Protect size arg for
10426         addition when using __builtin_memcpy.
10428 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10430         * stdlib/Makefile (tests): Add tst-qsort.
10431         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
10433         * manual/signal.texi (Process Signal Mask): Document that
10434         pthread_sigmask, not sigprocmask, must be used in MT programs.
10435         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
10437         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
10438         found.
10439         * misc/Makefile (tests): Add tst-hsearch.
10440         * misc/tst-hsearch.c: New file.
10442 2002-01-18  Wolfram Gloger  <wg@malloc.de>
10444         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
10445         * malloc/malloc.h: Likewise.
10446         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
10447         * malloc/arena.c: New file.
10448         * malloc/hooks.c: New file.
10449         * malloc/tst-mallocstate.c: New file.
10450         * malloc/Makefile: Add new testcase tst-mallocstate.
10451         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
10453 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10455         * stdlib/msort.c: Remove last patch.  The optimization violates the
10456         same rule which qsort.c had problems with.
10458 2002-01-27  Paul Eggert  <eggert@twinsun.com>
10460         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
10461         to a pivot element that lies outside the array to be sorted, as
10462         ISO C99 requires that the comparison function be called only with
10463         addresses of array elements [PR libc/2880].
10465 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10467         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
10468         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
10470         * timezone/asia: Update from tzdata2002b.
10471         * timezone/australasia: Likewise.
10472         * timezone/backward: Likewise.
10473         * timezone/europe: Likewise.
10474         * timezone/leapseconds: Likewise.
10475         * timezone/iso3166.tab: Likewise.
10476         * timezone/zone.tab: Likewise.
10478 2002-01-23  Richard Henderson  <rth@redhat.com>
10480         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10482 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10484         * string/strxfrm.c: Allocate one more byte for rulearr and clear
10485         this element [PR libc/2855].
10487         * string/strcoll.c: Handle zero-length arguments specially
10488         [PR libc/2856].
10490 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
10492         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10493         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10494         short lengths and constant src.
10495         (strcpy): Don't optimize for gcc 3.0+.
10496         (__stpcpy): For gcc 3.0+, don't use
10497         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10498         for short string literal src.
10500 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10502         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10503         Set for arm, too.
10505 2001-01-22  Paul Eggert  <eggert@twinsun.com>
10507         * manual/llio.texi (Linked Channels, Cleaning Streams):
10508         Make it clearer that a just-opened input stream might need cleaning.
10510 2002-01-21  H.J. Lu  <hjl@gnu.org>
10512         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10513         Don't use label at end of compound statement.
10515 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
10517         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10518         Remove test for negative integer arg; sin_pi does it correctly.
10520 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
10522         * nscd/Makefile (distribute): Filter out xmalloc.c.
10524 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
10526         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10527         Set offset if read end wasn't the buffer end.
10528         (_IO_file_seekoff_mmap): New function.
10529         (_IO_file_xsgetn_mmap): New function.
10530         (_IO_file_jumps_mmap): Use the two new functions.
10531         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10532         != end buffer.
10533         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10534         _IO_file_underflow_mmap.
10535         * libio/iofopen.c: Don't position file descriptor at end of file.
10536         * libio/tst-widetext.c: Improve error messages.
10537         * stdio-common/tst-rndseek.c: Likewise.
10539 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
10541         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10542         end of enum for !_GNU_SOURCE.
10543         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10544         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10545         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10546         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10547         values unless _GNU_SOURCE.
10549         * iconvdata/tcvn5712-1.c: Minor cleanups.
10551 2002-01-18  Andreas Schwab  <schwab@suse.de>
10553         * sysdeps/unix/sysv/linux/configure.in
10554         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10556 2002-01-16  Roger Sayle  <roger@eyesopen.com>
10558         * stdlib/msort.c (msort_with_tmp): Replace implementation with
10559         more efficient "Towers of Hanoi" mergesort.
10560         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10561         for generic, sizeof(int) and sizeof(long) variants respectively.
10563 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
10565         * manual/syslog.texi (openlog): Describe possible problems with
10566         first parameter.
10567         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10569         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
10570         * nscd/connections.c (begin_drop_privileges): New function.
10571         (finish_drop_privileges): New function.
10572         (nscd_init): Call the new functions which also install all groups
10573         for the server user.
10574         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10575         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10577 2002-01-17  H.J. Lu  <hjl@gnu.org>
10579         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10580         `const' from `got'.
10582 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10584         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10585         instructions for pointer operations.
10586         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10588 2002-01-17  Andreas Jaeger  <aj@suse.de>
10590         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10591         __uint128_t build-in.
10593         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10594         PowerPC, sync with 2.2 branch.
10596 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10598         * posix/getconf.c: Update copyright year.
10599         * nss/getent.c: Likewise.
10600         * nscd/nscd_nischeck.c: Likewise.
10601         * iconv/iconvconfig.c: Likewise.
10602         * iconv/iconv_prog.c: Likewise.
10603         * elf/ldconfig.c: Likewise.
10604         * catgets/gencat.c: Likewise.
10605         * csu/version.c: Likewise.
10606         * elf/ldd.bash.in: Likewise.
10607         * elf/sprof.c (print_version): Likewise.
10608         * locale/programs/locale.c: Likewise.
10609         * locale/programs/localedef.c: Likewise.
10610         * nscd/nscd.c (print_version): Likewise.
10611         * debug/xtrace.sh: Likewise.
10612         * malloc/memusage.sh: Likewise.
10613         * malloc/mtrace.pl: Likewise.
10615 2002-01-16  Andreas Schwab  <schwab@suse.de>
10617         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10618         reliably remove "-ia64" from rtld name.
10620 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10622         * iconvdata/gb18030.c: Bug fixes and support for more characters.
10623         Patch by Yu Shao <yshao@redhat.com>.
10625 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10627         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10628         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10629         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10631 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10633         * sysdeps/s390/fpu/libm-test-ulps: Update.
10635 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
10637         * elf/elf.h: Update x86 relocations.
10639 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10641         * locale/programs/charmap.c (new_width): Check whether byte
10642         sequences for both ends of range have the same length.
10644 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10646         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10648 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10650         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10651         string literals.
10652         (__full_ieee754_sqrt): Add __attribute_used__.
10654 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10656         * sysdeps/generic/group_member.c (__group_member): Also check
10657         groups[0] [PR libc/2781].
10659 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
10661         * Makefile (distribute): Add scripts/cpp.
10662         * elf/Makefile (distribute): Add reldep6mod[01234].c,
10663         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10664         unwind-dw2-fde.h, and dwarf2.h.
10665         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10666         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10667         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10668         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10670 2002-01-07  Roland McGrath  <roland@frob.com>
10672         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10673         volatile on type of ARGC so the compiler doesn't get clever.
10675 2002-01-07  Andreas Jaeger  <aj@suse.de>
10677         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10678         * sysdeps/i386/bits/byteswap.h: Likewise.
10679         * sysdeps/ia64/bits/byteswap.h: Likewise.
10680         * sysdeps/m68k/bits/byteswap.h: Likewise.
10681         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10682         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10684 2002-01-02  Bruno Haible  <bruno@clisp.org>
10686         * intl/plural.y: Fix %expect count.
10688 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10690         * elf/Makefile (routines, shared-only-routines): Add
10691         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10692         * elf/elf.h (PT_GNU_EH_FRAME): Define.
10693         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10694         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10695         Optimize if .eh_frame section contains no FDEs.
10696         (__register_frame, __deregister_frame_info_bases,
10697         __deregister_frame): Likewise.
10698         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10699         DW_CFA_restore handling.
10701 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
10703         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10705         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10706         for x < 0.25 and restore original range reduction method.
10707         (__ieee754_lgammal_r): Make sure signgam is set before returning.
10709 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
10711         * libio/fileops.c (_IO_file_underflow_mmap): New function.
10712         (_IO_file_close_mmap): New function.
10713         (_IO_file_jumps_mmap): New variable.
10714         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10715         trying to convert rest of byte buffer.
10716         (_IO_wfile_underflow_mmap): New function.
10717         (_IO_wfile_jumps_mmap): New variable.
10718         * libio/iofopen.c (__fopen_maybe_mmap): New function.
10719         (__fopen_internal): New function.  Split out from _IO_new_fopen.
10720         (_IO_new_fopen): Call __fopen_internal.
10721         * libio/iofopen64.c: Just call __fopen_internal.
10722         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10723         successfully.
10724         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10725         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10726         _IO_file_close_mmap.
10728         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10729         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10731         * stdio-common/Makefile (tests): Add tst-rndseek.
10732         * stdio-common/tst-rndseek.c: New file.
10734 2002-01-05  Roland McGrath  <roland@frob.com>
10736         * config.h.in (HAVE_MIG_RETCODE): New #undef.
10737         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10738         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10739         * sysdeps/mach/hurd/configure: Regenerated.
10741 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
10743         * elf/elf.h: Add more TLS definitions.
10745 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
10747         * include/features.h (__GLIBC_MINOR__): Bump to 3.
10749 2002-01-02  Roland McGrath  <roland@frob.com>
10751         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10752         __sigisemptyset.  Don't use MASK uninitialized.
10754         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10755         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10756         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10757         __sigdelset, __sigaddset, __sigorset.
10759         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10760         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10762         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10763         _hurd_ports is null.
10765         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10766         for old CMU and new OSF Mach interface flavors.
10767         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10768         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10770         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10772         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10773         Pass extra arguments to task_create for OSF variant.
10774         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10776         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10777         conditional on [HAVE_AUX_VECTOR].
10779         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10780         mach_msg_timeout_t as type of final argument.
10782         * hurd/privports.c (__get_privileged_ports):
10783         Change host_priv_t to mach_port_t in argument type.
10784         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10785         Update decls.
10787         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10788         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
10789         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10790         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10791         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10792         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10794 2002-01-01  Roland McGrath  <roland@frob.com>
10796         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10798 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
10800         * include/stdlib.h: Define inlines for the _l variants of the strto*
10801         functions.
10803 2002-01-01  Roland McGrath  <roland@frob.com>
10805         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10807         * mach/Machrules (MIG): Set CPP as well as CC.
10809 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
10811         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10812         locale to parse /proc/loadavg [PR libc/2760].
10814 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
10816         * elf/dl-conflict.c: Include sys/param.h.
10817         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10818         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10819         warning.
10820         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10821         literals to avoid warnings.
10823 2001-12-31  Andreas Jaeger  <aj@suse.de>
10825         * configure.in: Don't check for gsed since we do not use it anywhere.
10827 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10829         * io/fts.c: Update from BSD to fix memory leaks.
10831 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10833         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10834         * elf/chroot_canon.c: Likewise.
10835         * elf/dl-object.c: Likewise.
10836         * iconv/iconv_charmap.c: Likewise.
10837         * iconv/iconv_prog.c: Likewise.
10838         * libio/iogetdelim.c: Likewise.
10839         * locale/lc-time.c: Likewise.
10840         * stdlib/canonicalize.c: Likewise.
10841         * sunrpc/svc.c: Likewise.
10842         * sysdeps/generic/glob.c: Likewise.
10844 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10846         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10847         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10848         remove high order bit from the program counter.
10849         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10851 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10853         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10854         unnecessary code and add missing reloc types.
10855         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10856         case for reloc type R_390_NONE.
10858 2001-12-28  Andreas Jaeger  <aj@suse.de>
10860         * io/bug-ftw3.c: Include string.h for prototypes.
10862         * crypt/md5test.c (main): Remove unused variable.
10864         * dlfcn/modstatic.c: Add prototype to avoid warning.
10866 2001-12-26  Roland McGrath  <roland@frob.com>
10868         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10869         check only (SS->pending & MASK) for the signal to return.
10870         From Jeroen Dekkers <jeroen@dekkers.cx>.
10872 2001-12-22  Roland McGrath  <roland@frob.com>
10874         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10875         Use preprocessor #if conditionals instead of `if' to avoid
10876         warnings about divide by zero in dead code.
10878         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10879         _hurd_port_init, and __hurd_self_sigstate.
10881         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10883 2001-12-21  Andreas Jaeger  <aj@suse.de>
10885         * elf/dblloadmod1.c: Add prototype to avoid warning.
10886         * elf/dblloadmod2.c: Likewise.
10887         * elf/dblloadmod3.c: Likewise.
10888         * elf/reldepmod5.c: Likewise.
10889         * elf/reldepmod6.c: Likewise.
10891         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10892         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10893         used on all architectures.
10895         * sunrpc/svc_tcp.c: Add noreturn attribute for
10896         svctcp_rendezvous_abort.
10897         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10899         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10900         to avoid warning.
10902 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
10904         * manual/llio.texi (aio_fsync): Fix a typo.
10905         Patch by Tammy Fox <tfox@redhat.com>.
10907 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
10909         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10910         stack bias from child stack pointer before passing it to clone syscall.
10912 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
10914         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
10915         _SC_TZNAME_MAX.
10916         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
10917         Reported by Thorsten Kukuk <kukuk@suse.de>.
10919         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
10920         add some casts.
10922         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
10924 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
10926         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
10927         conforming: return EBADF if file descriptor is invalid and EINVAL
10928         if file descriptor is no valid tty.
10929         * login/tst-grantpt.c: New file.
10930         * login/Makefile (tests): Add tst-grantpt.
10932 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
10934         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
10935         different than implemented in last patch.
10936         * io/bug-ftw3.c: Adjust test for changed handling of
10937         inaccessibility of toplevel dir.
10939 2001-12-16  Roland McGrath  <roland@frob.com>
10941         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
10942         * grp/initgroups.c (internal_getgrouplist): Likewise.
10944         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
10945         `default:' to silence new GCC warning.
10946         Rewrite cast of lvalue to silence new GCC warning.
10948         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
10950         * sysdeps/mach/hurd/spawni.c: New file, by me with a
10951         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
10953 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
10955         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
10956         Patch by Stephen R. van den Berg.
10958         * crypt/md5.h: Define md5_uintptr.
10960 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10962         * libio/tst_swprintf.c (main): Add test for string argument with
10963         zero precision.
10964         * stdio-common/Makefile (tests): Add tst-sprintf.
10965         * stdio-common/tst-sprintf.c: New file.
10967 2001-12-13  Andreas Schwab  <schwab@suse.de>
10969         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
10970         zero precision with wide character string format.
10972 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
10974         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
10975         but have a user supplied buffer, return the empty buffer, not NULL.
10977 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
10979         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
10980         Patch by Eric Sharkey <sharkey@netrics.com>.
10982         * crypt/md5test.c (main): Add test for multiple calls to
10983         __md5_process_bytes to itererate over input string.
10985 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
10987         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
10988         from __nis_findfastest.  Take timeout value from parameter.
10989         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
10990         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
10991         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
10993 2001-12-12  Andreas Jaeger  <aj@suse.de>
10995         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
10996         combreloc test so that it works in this case.
10998         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
11000 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
11002         * sysdeps/sh/Makefile: New file.
11003         * sysdeps/sh/_mcount.S: New file.
11004         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
11005         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
11007 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
11009         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
11010         limitation [PR libc/2564].
11012 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
11014         * elf/Makefile (dl-routines): Add conflict.
11015         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
11016         (ld.so): Add _begin local symbol.
11017         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
11018         Define.
11019         * elf/dl-deps.c (_dl_build_local_scope): New function.
11020         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
11021         of all libraries.
11022         * elf/do-rel.h (VALIDX): Define.
11023         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
11024         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
11025         can be skipped.
11026         * elf/dl-conflict.c: New file.
11027         * elf/dl-lookup.c (_dl_debug_bindings): New function.
11028         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
11029         non-NULL.
11030         (_dl_lookup_symbol_skip): Likewise.
11031         (_dl_lookup_versioned_symbol): Likewise.
11032         (_dl_lookup_versioned_symbol_skip): Likewise.
11033         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
11034         define to ElfW(Rel).
11035         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
11036         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
11037         ranges.
11038         Don't adjust address dynamic tags if l_addr is 0.
11039         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
11040         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
11041         (VALIDX, ADDRIDX): Define.
11042         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
11043         (dl_main): Print library list for LD_TRACE_PRELINKING.
11044         If prelinking information can be used, skip relocating libraries and
11045         call _dl_resolve_conflicts instead.
11046         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
11047         * elf/dl-load.c (_dl_map_object): Don't create fake libs
11048         if LD_TRACE_PRELINKING.
11049         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
11050         + DT_ADDRNUM.
11051         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
11052         (DL_DEBUG_PRELINK): Define.
11053         (_dl_resolve_conflicts): Add prototype.
11055         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
11056         .plt for prelinked libraries where prelinking info cannot be used.
11057         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
11058         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
11059         * sysdeps/arm/bits/link.h: New file.
11060         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
11061         content of .got[1].
11062         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
11063         (ELF_MACHINE_PLT_REL): Define.
11064         (elf_machine_rela, elf_machine_rela_relative): New functions.
11065         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
11066         of adjusting it if prelinked and prelinking cannot be used.
11067         * sysdeps/i386/bits/link.h: New file.
11068         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
11069         content of .got[1].
11070         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
11071         (ELF_MACHINE_PLT_REL): Define.
11072         (elf_machine_rela, elf_machine_rela_relative): New functions.
11073         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
11074         of adjusting it if prelinked and prelinking cannot be used.
11075         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
11076         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
11077         to find out map for R_PPC_JMP_SLOT relocs.
11078         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
11079         (OPCODE_BA): Define.
11080         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
11081         libraries where prelinking info cannot be used.
11082         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
11083         (elf_machine_fixup_plt): Call sparc_fixup_plt.
11084         (elf_machine_rela): Set value to 0 if relocating conflicts.
11085         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
11086         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
11087         (sparc64_fixup_plt): Fix a typo.
11088         (elf_machine_rela): Set value to 0 if relocating conflicts.
11089         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
11090         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
11091         libraries where prelinking info cannot be used.
11092         * sysdeps/sh/bits/link.h: New file.
11093         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
11094         content of .got[1].
11095         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
11096         of adjusting it if prelinked and prelinking cannot be used.
11097         * sysdeps/s390/s390-32/bits/link.h: New file.
11098         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
11099         Save original content of .got[1].
11100         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
11101         of adjusting it if prelinked and prelinking cannot be used.
11102         * sysdeps/s390/s390-64/bits/link.h: New file.
11103         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
11104         Save original content of .got[1].
11105         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
11106         of adjusting it if prelinked and prelinking cannot be used.
11107         * sysdeps/x86_64/bits/link.h: New file.
11108         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
11109         Save original content of .got[1].
11110         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
11111         of adjusting it if prelinked and prelinking cannot be used.
11113 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
11115         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
11116         where appropriate instead of numbers.  Little optimizations.
11118 2001-12-10  Roland McGrath  <roland@frob.com>
11120         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
11121         set it.
11123         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
11124         set to GLIBC_2.2.5, not GLIBC_2.2.4.
11126         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
11127         Fix conditionals so this is set by default for stdio and not for libio.
11128         * sysdeps/mach/hurd/configure: Regenerated.
11130 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
11132         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
11134 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
11136         * io/Makefile (tests): Add bug-ftw3.
11137         * io/bug-ftw3.c: New file.
11139         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
11140         matches and GLOB_NOCHECK is set.
11141         * posix/globtest.sh: Correct expected result for NOCHECK test.
11143         * po/ca.po: Update from translation team.
11145 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
11147         Implement transliteration of characters in strings of the locale
11148         definitions.
11149         * locale/programs/linereader.c: Adjust for additional parameter to
11150         lr_token.
11151         (get_string): If character <Uxxxx> is not found try to transliterate
11152         it.
11153         * locale/programs/ld-ctype.c: Adjust for additional parameter to
11154         lr_token.  Add const to charmap parameter of all functions.
11155         (find_translit, find_translit2): New functions.
11156         * locale/programs/charmap.c: Adjust for additional parameter to
11157         lr_token.
11158         * locale/programs/repertoire.c: Likewise.
11159         * locale/programs/linereader.h: Likewise.
11160         * locale/programs/ld-address.c: Likewise.  Add const to charmap
11161         parameter of all functions.
11162         * locale/programs/ld-collate.c: Likewise.
11163         * locale/programs/ld-identification.c: Likewise.
11164         * locale/programs/ld-measurement.c: Likewise.
11165         * locale/programs/ld-messages.c: Likewise.
11166         * locale/programs/ld-monetary.c: Likewise.
11167         * locale/programs/ld-name.c: Likewise.
11168         * locale/programs/ld-numeric.c: Likewise.
11169         * locale/programs/ld-paper.c: Likewise.
11170         * locale/programs/ld-paper.c: Likewise.
11171         * locale/programs/ld-telephone.c: Likewise.
11172         * locale/programs/ld-time.c: Likewise.
11173         * locale/programs/locfile.c: Likewise.
11174         * locale/programs/localedef.c: Likewise.
11175         * locale/programs/localedef.h: Likewise.
11176         * locale/programs/locfile.h: Likewise.  Add declaration for
11177         find_translit.
11178         * locale/programs/simple-hash.c: Add const to first parameter of
11179         find_entry, iterate_table, and lookup.
11180         * locale/programs/simple-hash.h: Likewise.
11181         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
11182         instead.
11183         * include/locale.h: Define __LC_LAST.
11184         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
11186 2001-12-07  Geoff Keating  <geoffk@redhat.com>
11188         * sysdeps/powerpc/Dist: Update for recent FP changes.
11189         * sysdeps/powerpc/fpu/Dist: Likewise.
11191 2001-12-07  Andreas Schwab  <schwab@suse.de>
11193         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
11195 2001-12-06  Geoff Keating  <geoffk@redhat.com>
11197         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
11198         save/restore functions here.
11199         (libm-support): Don't define these functions here.
11200         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
11201         functions here.
11202         * sysdeps/powerpc/fe_nomask.c: Move to...
11203         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
11204         * sysdeps/powerpc/fprrest.S: Move to...
11205         * sysdeps/powerpc/fpu/fprrest.S: ... here.
11206         * sysdeps/powerpc/fprsave.S: Move to...
11207         * sysdeps/powerpc/fpu/fprsave.S: ... here.
11209 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
11211         * sysdeps/unix/sysv/linux/opensock.c: New file.
11213 2001-12-06  Geoff Keating  <geoffk@redhat.com>
11215         * config.make.in (with-fp): Define from configure.
11216         * configure.in: Substitute with_fp.
11217         * configure: Regenerate.
11218         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
11219         specified, and don't change FPU environment.
11221 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
11223         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
11224         * assert/assert.c: Check result of __asprintf call and don't use
11225         string if it failed.
11226         * assert/assert-perr.c: Likewise.
11227         * inet/rcmd.c: Likewise.
11228         * locale/programs/localedef.c (main): Check result of
11229         construct_output_path and exit if it failed.
11230         (construct_output_path): Check result of asprintf and mkdir calls and
11231         fail if they failed.
11232         * posix/getopt.c: Check result of __asprintf calls and fail if
11233         they failed.
11234         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
11236 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11238         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
11239         patch.
11240         * sysdeps/generic/strncase.c: Likewise.
11241         * string/tester.c: Add tests for strcasecmp and strncasecmp.
11243 2001-12-05  Geoff Keating  <geoffk@redhat.com>
11245         * scripts/cpp: Test the exit status from 'type', not 'awk'.
11247         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
11248         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
11249         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
11250         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
11251         * sysdeps/powerpc/fclrexcpt.c: Move to...
11252         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
11253         * sysdeps/powerpc/fpu_control.h: Move to...
11254         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
11256 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11258         * iconvdata/ibm1129.h: Remove duplicate mappings.
11259         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
11260         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
11261         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11263         * timezone/zic.c: Fix handling of turnaround times.
11264         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
11266 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
11268         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
11269         overflow problem.
11271 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11273         * posix/regex.c: For use outside glibc defined bounded pointer
11274         macros here.  Patch by Jim Meyering <jim@meyering.net>.
11276         * iconvdata/Makefile (modules): Add TCVN5712-1.
11277         * iconvdata/TESTS: Add TCVN5712-1.
11278         * iconvdata/gconv-modules: Likewise.
11279         * iconvdata/tcvn5712-1.c: New file.
11280         * iconvdata/testdata/TCVN-5712: New file.
11281         * iconvdata/testdata/TCVN-5712..UTF8: New file.
11283 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
11285         * iconvdata/cp1258.c: Optimize conversion from UCS4.
11287 2001-12-02  Roland McGrath  <roland@frob.com>
11289         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
11291         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
11292         Reported by Jeff Bailey <jbailey@nisa.net>.
11294         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
11295         Reported by Jeff Bailey <jbailey@nisa.net>.
11297         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
11298         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
11299         Reported by Jeff Bailey <jbailey@nisa.net>.
11301 2001-12-01  Roland McGrath  <roland@frob.com>
11303         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
11304         missing backslash in test arguments.
11305         * sysdeps/mach/hurd/configure: Regenerated.
11307 2001-11-26  Roland McGrath  <roland@frob.com>
11309         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
11310         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
11312 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
11314         * iconvdata/Makefile (modules): Add ARMSCII-8.
11315         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
11316         * iconvdata/armscii-8.c: New file.
11318 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
11320         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
11321         don't match, fix {{a,b},c} globbing, clean up.
11322         Patch by Flavio Veloso <flaviovs@magnux.com>.
11323         * posix/globtest.sh: Add new tests.
11325 2001-11-29  Andreas Jaeger  <aj@suse.de>
11327         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
11328         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
11330         * sysdeps/generic/abort.c: Include libioP.h for
11331         _IO_flush_all_lockp prototype.
11333 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
11335         * posix/regex.h: Define __restrict_arr correctly.
11337 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11339         * iconvdata/ibm1163.c: New file.
11340         * iconvdata/ibm1163.h: New file.
11341         * iconvdata/ibm1164.c: New file.
11342         * iconvdata/ibm1164.h: New file.
11343         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
11344         * iconvdata/Makefile: Likewise.
11345         * iconvdata/testdata/IBM1163: New file.
11346         * iconvdata/testdata/IBM1163..UTF8: New file.
11347         * iconvdata/testdata/IBM1164: New file.
11348         * iconvdata/testdata/IBM1164..UTF8: New file.
11349         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11351         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
11352         * iconvdata/ibm1124.h: Likewise.
11353         * iconvdata/ibm1132.h: Likewise.
11354         * iconvdata/ibm1133.h: Likewise.
11355         * iconvdata/ibm1160.h: Likewise.
11356         * iconvdata/ibm1161.h: Likewise.
11357         * iconvdata/ibm1162.h: Likewise.
11358         * iconvdata/ibm856.h: Likewise.
11359         * iconvdata/ibm922.h: Likewise.
11360         * iconvdata/ibm930.h: Likewise.
11361         * iconvdata/ibm932.h: Likewise.
11362         * iconvdata/ibm933.h: Likewise.
11363         * iconvdata/ibm935.h: Likewise.
11364         * iconvdata/ibm937.h: Likewise.
11365         * iconvdata/ibm939.h: Likewise.
11366         * iconvdata/ibm943.h: Likewise.
11367         * iconvdata/ibm930.c: Pretty printing.
11368         * iconvdata/ibm937.c: Avoid access accross array boundary.
11370         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
11371         the current locale's codeset.
11372         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
11373         empty input string.
11374         * iconv/iconv_prog.c: Pass empty strings as default value for to-
11375         and from-charset.  Don't determine locale's charset here.
11377         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
11378         as the old _IO_flush_all but lock only if parameter is nonzero.
11379         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
11380         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
11381         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
11382         if libio is used [PR libc/2575].
11384 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
11386         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
11387         __signbitl): Only define for ISO C99.
11389 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11391         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
11392         herrnop to NETDB_INTERNAL if we run out of buffer space.
11394 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11396         * nss/nss_files/files-XXX.c (internal_getent): Correct input
11397         overflow test for platforms with signed char.
11398         Reported by Andrew Haley <aph@cambridge.redhat.com>.
11400 2001-11-28  Bruno Haible  <bruno@clisp.org>
11402         * locale/programs/simple-hash.c (lookup_2): Remove function.
11403         (insert_entry_2): Call lookup instead of lookup_2.
11405 2001-03-04  Bruno Haible  <bruno@clisp.org>
11407         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
11409 2001-10-31  Bruno Haible  <bruno@clisp.org>
11411         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
11413 2001-03-21  Bruno Haible  <bruno@clisp.org>
11415         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
11416         chokes on empty macro arguments.
11417         * intl/plural.y: Add #pragma for alloca on AIX 3.
11419 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11421         * intl/dcigettext.c (guess_category_value): Only implement for
11422         glibc.  Otherwise rely on function _nl_locale_name which isn't
11423         present in the glibc sources.
11425 2001-09-24  Bruno Haible  <bruno@clisp.org>
11427         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
11428         transliteration when building on a glibc system but outside glibc.
11430 2001-09-22  Bruno Haible  <bruno@clisp.org>
11432         * intl/plural-eval.c: New file, extracted from dcigettext.c.
11433         * intl/dcigettext.c (plural_eval): Remove function, moved to
11434         intl/plural-eval.c.
11435         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
11436         Include plural-eval.c.
11438 2001-09-22  Bruno Haible  <bruno@clisp.org>
11440         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
11441         don't start with a digit; nplurals must be positive.
11443 2001-09-02  Bruno Haible  <bruno@clisp.org>
11445         * intl/plural-exp.h: New file, extracted from gettextP.h.
11446         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
11447         * intl/gettextP.h (struct expression, struct parse_args,
11448         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
11449         * intl/loadmsgcat.c: Include plural-exp.h.
11450         (PLURAL_PARSE): Move macro to plural-exp.h.
11451         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
11452         plural-exp.c.
11453         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
11454         EXTRACT_PLURAL_EXPRESSION.
11455         (_nl_unload_domain): Update.
11456         * intl/dcigettext.c: Include plural-exp.h.
11457         * intl/plural.y: Include plural-exp.h, not gettextP.h.
11458         (FREE_EXPRESSION): Move macro to plural-exp.h.
11459         * intl/Makefile (routines): Add plural-exp.
11460         (distribute): Add plural-exp.h.
11462 2001-07-28  Bruno Haible  <bruno@clisp.org>
11464         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
11465         isdigit, tolower argument to 'unsigned char'.
11466         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
11467         'unsigned char'.
11468         * intl/localealias.c (read_alias_file): Cast isspace argument to
11469         'unsigned char'.
11471 2001-10-20  Bruno Haible  <bruno@clisp.org>
11473         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
11474         anyway.)
11475         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
11476         with the variable 'index' in plural_lookup.
11477         * intl/l10nflist.c (strchr): Likewise.
11478         * intl/localealias.c (strchr): Likewise.
11480         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11481         * intl/bindtextdom.c: Likewise.
11482         * intl/dcigettext.c: Likewise.
11483         * intl/dgettext.c: Likewise.
11484         * intl/dngettext.c: Likewise.
11485         * intl/explodename.c: Likewise.
11486         * intl/finddomain.c: Likewise.
11487         * intl/gettext.c: Likewise.
11488         * intl/l10nflist.c: Likewise.
11489         * intl/loadmsgcat.c: Likewise.
11490         * intl/localealias.c: Likewise.
11491         * intl/ngettext.c: Likewise.
11492         * intl/textdomain.c: Likewise.
11493         * intl/gettext.h: Assume <limits.h> exists.
11495 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11497         * stdio-common/Makefile (tests): Add scanf11.
11498         * stdio-common/scanf11.c: New file.
11500 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11502         * version.h (RELEASE): Define as development.
11503         (VERSION): Set to 2.2.90.
11505 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11507         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11508         * nis/nss_nis/nis-grp.c: Likewise.
11509         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11511         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11512         * nis/nss_nis/nis-pwd.c: Likewise.
11513         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11515         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11516         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11517         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11519         * nscd/grpcache.c: Use strtoul instead of atol.
11520         * nscd/pwdcache.c: Likewise.
11521         * nss/getent.c: Likewise.
11523 2001-11-27  Paul Eggert  <eggert@twinsun.com>
11525         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11526         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11528 2001-11-19  Bruno Haible  <bruno@clisp.org>
11530         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11531         90%.
11532         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11533         improves the quality of the hash function, especially for short
11534         strings.
11536 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11538         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11539         are found call conv_error and not input_error [PR libc/2669].
11541         * math/bits/mathcalls.h: Mark ceil and floor as const.
11542         Reported by David Mosberger.
11544 2001-11-21  Jim Meyering  <meyering@lucent.com>
11546         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11547         Define to be __-prefixed.
11548         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11550 2001-11-26  Andreas Jaeger  <aj@suse.de>
11552         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11553         avoid warning.
11555 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
11557         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11558         initialization.
11560         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11561         unused variables.  Fix threshold for returning 1.0.
11563         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11564         argument.
11566         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11567         remove unused variables.
11569         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11571         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11572         include local math header files.
11574 2001-11-22  Andreas Jaeger  <aj@suse.de>
11576         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11577         avoid warning.
11579 2001-11-21  Andreas Jaeger  <aj@suse.de>
11581         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11583         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11584         sys/debugreg.h
11586 2001-11-15  Andreas Jaeger  <aj@suse.de>
11588         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11589         compilers that support it.
11591         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11592         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11593         * stdlib/stdlib.h: Likewise.
11595 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
11597         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11598         statement with gotos.
11599         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11601 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
11603         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11605 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
11607         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11609 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
11610             H.J. Lu  <hjl@gnu.org>
11612         * Versions.def (libc): Add GCC_3.0.
11613         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11614         if gcc supports this flag.
11615         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11616         (gcc3): Allow glibc to be compiled with gcc 3.x.
11617         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11618         * config.make.in (static-libgcc, unwind-find-fde): Add.
11619         * Makerules (build-shlib-helper, build-module-helper): Use it.
11620         * scripts/versions.awk: Make sure GLIBC_ versions come first.
11621         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11622         necessary.
11623         (_fini): Call __deregister_frame_info_bases if
11624         __register_frame_info_bases was used to register.
11625         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11626         for GLIBC_2.0.
11627         (__register_frame_info_bases, __register_frame_info_table_bases,
11628         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11629         * elf/Makefile (routines): Add unwind-dw2-fde.
11630         (shared-only-routines): Add unwind-dw2-fde.
11631         * sysdeps/alpha/gccframe.h: New file.
11632         * sysdeps/arm/gccframe.h: New file.
11633         * sysdeps/generic/framestate.c: New file.
11634         * sysdeps/generic/dwarf2.h: New file.
11635         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11636         * sysdeps/generic/unwind-dw2-fde.c: New file.
11637         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11638         * sysdeps/generic/unwind-dw2-fde.h: New file.
11639         * sysdeps/generic/unwind-dw2.c: New file.
11640         * sysdeps/generic/unwind-pe.h: New file.
11641         * sysdeps/generic/unwind.h: New file.
11642         * sysdeps/hppa/gccframe.h: New file.
11643         * sysdeps/i386/gccframe.h: New file.
11644         * sysdeps/m68k/gccframe.h: New file.
11645         * sysdeps/mips/gccframe.h: New file.
11646         * sysdeps/powerpc/gccframe.h: New file.
11647         * sysdeps/s390/gccframe.h: New file.
11648         * sysdeps/sh/gccframe.h: New file.
11649         * sysdeps/sparc/gccframe.h: New file.
11650         * sysdeps/vax/gccframe.h: New file.
11651         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11652         Set on all architectures except ia64.
11653         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11654         for i386.
11655         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11656         __deregister_frame_info): Move to elf/Versions.
11657         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11658         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11659         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11660         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11661         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11662         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11663         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11664         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11665         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11666         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11667         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11668         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11669         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11670         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11671         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11672         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11673         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11674         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11676 2001-11-15  Jeff Law  <law@redhat.com>
11678         * posix/regex.c (uintptr_t): Do not provide a definition if the
11679         system provided one.
11681 2001-11-13  Roland McGrath  <roland@frob.com>
11683         * stdio-common/tmpfile.c: Moved to ...
11684         * sysdeps/generic/tmpfile.c: ... here.
11685         * sysdeps/mach/hurd/tmpfile.c: New file.
11687         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11688         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11689         (fopenport): Define as weak alias.
11691         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11692         * libio/libioP.h: ... to here.
11694 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
11696         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11697         program header twice.  Construct list with the needed information.
11699 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
11701         * po/ca.po: Update from translation team.
11703         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11704         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
11705         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11706         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11708 2001-11-10  Andreas Jaeger  <aj@suse.de>
11710         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11711         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11712         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11714 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11716         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11717         correctly.
11718         * elf/dl-load.c (is_dst): New function.
11719         (_dl_dst_count): Use is_dst to check for DST variable.
11720         (_dl_dst_substitute): Likewise.
11722 2001-11-09  Roland McGrath  <roland@frob.com>
11724         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11725         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11726         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11727         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11728         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11729         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11730         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11731         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11732         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11733         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11734         * sysdeps/mach/hurd/powerpc/Dist: New file.
11736         * hurd/privports.c (__get_privileged_ports):
11737         Only contact the proc server if necessary for this call.
11738         Suggested by Neal H Walfield <neal@cs.uml.edu>.
11739         Check error return for mach_port_mod_refs.
11741 2001-11-09  Andreas Schwab  <schwab@suse.de>
11743         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11745 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11747         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
11748         object is always the last in the list.
11749         (_dl_map_object_from_fd): Delete code to remove from object list
11750         when DF_1_NOOPEN is seen.  This is done in lose.
11752 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
11754         * elf/dl-object.c (_dl_new_object): Various small optimizations.
11756 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
11758         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11759         HWCAP_CHECK macro code.
11761         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11762         Now returns MAP_FAILED on error.
11763         * elf/rtld.c: Adjust caller.
11764         * sysdeps/generic/dl-cache.c: Likewise.
11765         * sysdeps/generic/ldsodefs.h: Adjust description.
11767         * elf/dl-version.c (match_symbol): Optimize error handling for size.
11768         (_dl_check_map_versions): Likewise.
11770 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11772         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11773         _dl_signal_error directly, always use lose.  Set fd to -1 after
11774         file is closed.
11775         (lose): Don't call close if fd == -1.
11777 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
11779         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
11780          Also fix typo @code {mbsinit} to @code{mbsinit}.
11782 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11784         * elf/dl-profile.c: Replace state variable with simple flag named
11785         running.  Remove commented-out code.
11787         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11788         (_dl_init_paths): Likewise.
11789         (_dl_map_object_from_fd): Likewise.
11790         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11792 2001-11-06  Roland McGrath  <roland@frob.com>
11794         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11795         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11797         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11798         sysdeps/powerpc/elf/sysdep.h.
11799         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11801 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11803         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
11804         speed.
11805         (process_envvars): Some more optimizations.
11806         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11808         * elf/elf.h: Add dynamic tag definitions for prelinking.
11810         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11811         Rewrite code to remove environment varables for SUID binaries.
11812         Small optimization in LD_PROFILE handling.
11813         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11814         changes.
11815         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11817         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11819         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11820         strings.  Change type of second parameter.
11821         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11822         for last change.
11824         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11826 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11828         * manual/string.texi: Fix typos.
11829         * manual/examples/argp-ex2.c: Likewise.
11831 2001-11-05  Roland McGrath  <roland@frob.com>
11833         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11834         the more-specific unix/sysv/linux/powerpc file and breaks everything.
11835         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11836         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11837         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11838         here, put under [__ELF__].
11840 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11842         * manual/charset.texi: Extensive editing work.
11843         * manual/nss.texi: Likewise.
11844         Changes by Dennis Grace <dgrace@us.ibm.com>.
11846 2001-11-04  Roland McGrath  <roland@frob.com>
11848         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11849         parameter to dir_mkfile.
11851 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
11853         * string/bits/string2.h (__strndup): If n is smaller than len, set
11854         len to n + 1.
11855         * string/tester.c (test_strndup): New function.
11856         (main): Call it.
11858 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
11860         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11862         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11863         * scripts/cpp: New file.
11865         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11866         for rtld_search_dirs content.  Minor optimizations.
11868 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11870         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11871         avoiding unnecessary duplication.
11873 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
11875         * elf/dl-load.c (_dl_map_object): If library was found using
11876         LD_LIBRARY_PATH, don't try RUNPATH list.
11878 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11880         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11881         Correct second argument of register_dump call.
11882         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11883         Likewise.
11885 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11887         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11888         modules.
11889         * iconvdata/TESTS: Likewise.
11890         * iconvdata/gconv-modules: Likewise.
11891         * iconvdata/ibm1132.c: New file.
11892         * iconvdata/ibm1132.h: New file.
11893         * iconvdata/ibm1133.c: New file.
11894         * iconvdata/ibm1133.h: New file.
11895         * iconvdata/ibm1162.c: New file.
11896         * iconvdata/ibm1162.h: New file.
11897         * iconvdata/testdata/IBM1132: New file.
11898         * iconvdata/testdata/IBM1132..UTF8: New file.
11899         * iconvdata/testdata/IBM1133: New file.
11900         * iconvdata/testdata/IBM1133..UTF8: New file.
11901         * iconvdata/testdata/IBM1162: New file.
11902         * iconvdata/testdata/IBM1162..UTF8: New file.
11903         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11905         * string/string.h: Fix typo in comment.
11906         * wcsmbs/wchar.h: Likewise.
11908 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
11910         * manual/getopt.texi (getopt_long, getopt_long_only): Include
11911         const in type of longopts parameter.
11913 2001-10-29  Andreas Jaeger  <aj@suse.de>
11915         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
11917 2001-10-29  Kevin Ryde  <user42@zip.com.au>
11919         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
11920         output, clarify `#' behaviour on 0.
11921         (Floating-Point Conversions): Clarify that %g only uses %e when
11922         the exponent would be greater than 1.
11924 2001-10-28  Roland McGrath  <roland@frob.com>
11926         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
11927         * sysdeps/mach/powerpc/machine-sp.h: New file.
11928         * sysdeps/mach/powerpc/sysdep.h: New file.
11929         * sysdeps/mach/powerpc/thread_state.h: New file.
11931         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
11932         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
11933         expect to need the same thing on every platform.
11935         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
11936         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
11938         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
11939         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
11940         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
11941         Move all these assembly-related definitions to ...
11942         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
11944         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
11945         by Peter Bruin <pjbruin@dds.nl>.
11947         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
11948         packing results for a `poll' call.
11950 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11952         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
11953         correctly.
11954         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
11955         bracket expression.
11957         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
11958         nrules value.
11959         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
11961 2001-10-24  H.J. Lu  <hjl@gnu.org>
11963         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
11964         Use __BEGIN_DECLS/__END_DECLS around prototypes.
11965         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
11967 2001-10-21  Jim Meyering  <meyering@lucent.com>
11969         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
11970         this code would end up calling gettext even in packages built
11971         with --disable-nls.
11972         * posix/getopt.c (_): Likewise.
11973         * posix/regex.c (_): Likewise.
11975 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
11977         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
11978         lookup not ip6.int.
11979         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
11980         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
11982 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
11984         * misc/sys/cdefs.h (__attribute_used__): Define.
11985         * elf/rtld.c (_dl_start): Add __attribute_used__.
11986         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
11988 2001-10-25  Andreas Schwab  <schwab@suse.de>
11990         * stdlib/a64l.c: Expect least significant digit first.
11991         * stdlib/l64a.c: Produce least significant digit first.
11992         * stdlib/Makefile (tests): Add test-a64l.
11993         * stdlib/test-a64l.c: New file.
11994         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
11996 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
11998         * po/sk.po: Update from translation team.
12000 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
12002         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
12004 2001-10-18  Andreas Schwab  <schwab@suse.de>
12006         * math/libm-test.inc (print_ulps): Print ulp values rounded to
12007         next whole number.
12008         (print_function_ulps): Likewise.
12009         (print_complex_function_ulps): Likewise.
12010         (print_max_error): Likewise.
12011         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
12013 2001-10-16  Andreas Schwab  <schwab@suse.de>
12015         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
12016         implementation.
12018         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
12019         BSD_SETJMP or BSD__SETJMP is defined, resp.
12020         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
12021         a tail call to __sigsetjmp that would require extending the
12022         caller's frame.
12023         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
12024         * sysdeps/m68k/bsd-setjmp.S: Deleted.
12025         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
12026         Reported by Jes Sorensen <jes@trained-monkey.org>.
12028 2001-10-16  Andreas Jaeger  <aj@suse.de>
12030         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
12031         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
12032         close PR libc/2589.
12034 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
12036         * po/ca.po: New file.  Contributed by the translation team.
12038 2001-10-15  Ralf Baechle  <ralf@gnu.org>
12040         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
12041         a varargs prototype.  Remove dependency from kernel header files.
12043         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
12044         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
12046 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
12048         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
12049         to generate hexadecimal identifier.
12050         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
12052 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
12054         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
12056 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
12058         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
12059         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
12060         Contributed by Stephen L Moshier <moshier@mediaone.net>.
12062         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
12063         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12064         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
12065         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
12066         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
12067         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
12069         * timezone/africa: Update from tzdata2001d.
12070         * timezone/asia: Likewise.
12071         * timezone/australasia: Likewise.
12072         * timezone/backward: Likewise.
12073         * timezone/europe: Likewise.
12074         * timezone/leapseconds: Likewise.
12075         * timezone/northamerica: Likewise.
12076         * timezone/southamerica: Likewise.
12077         * timezone/zone.tab: Likewise.
12079 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12081         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
12082         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
12084 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
12086         * elf/elf.h (PT_TLS): New definition.
12088 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
12090         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
12091         bits/errno.h
12093 2001-10-07  Roland McGrath  <roland@frob.com>
12095         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
12097 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
12099         * elf/elf.h: Add more ELFOSABI_* constants.
12101 2001-10-04  Ben Collins  <bcollins@debian.org>
12103         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
12104         decleration of __need_wchar_t.
12106 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
12108         * string/bits/string2.h (__strsep_g): Add prototype.
12109         (__strsep): Use it.
12110         * string/Versions (__strsep): Remove.
12111         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
12113 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
12115         * manua/llio.texi: Clarify file references added by mmap.
12116         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
12118 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
12120         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
12121         Add sc_loadrs and sc_rbs_bas to match current kernel.
12123 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
12125         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
12127         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
12129 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
12131         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
12132         object has been bumped because of relocation dependency, avoid
12133         duplicates in l_scope.
12134         (show_scope): Fix typos.
12135         * elf/Makefile: Add rules to build and run reldep6.
12136         * elf/reldep6.c: New file.
12137         * elf/reldep6mod0.c: New file.
12138         * elf/reldep6mod1.c: New file.
12139         * elf/reldep6mod2.c: New file.
12140         * elf/reldep6mod3.c: New file.
12141         * elf/reldep6mod4.c: New file.
12143 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
12145         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
12146         sparc64_fixup_plt.
12147         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
12148         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
12149         for non-lazy binding. Fix .plt[32768+] handling.
12150         (elf_machine_plt_value): Don't add addend.
12151         (elf_machine_rela): Call sparc64_fixup_plt instead of
12152         elf_machine_fixup_plt.
12153         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
12154         dynamic linker at 0xfffff800XXXXXXXX.
12156         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
12158 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
12160         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
12162 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
12164         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
12165         declare __cmsg_data field if its size would be bigger than 0.
12166         (CMSG_DATA): Adjust accordingly.
12167         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
12168         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
12169         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
12170         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
12171         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12172         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
12173         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12175 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
12177         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
12178         * iconvdata/testdata/IBM1160: New file.
12179         * iconvdata/testdata/IBM1160..UTF8: New file.
12180         * iconvdata/testdata/IBM1161: New file.
12181         * iconvdata/testdata/IBM1161..UTF8: New file.
12182         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
12184 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
12186         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
12187         UL_SETFSIZE computations better.
12189         * rt/Makefile: Remove use of filter for librt again.
12191         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
12192         UL_SETFSIZE computations better.
12194         * string/Versions: Export __strsep for GLIBC_2.2.5.
12195         * string/bits/string2.h: Define all __STRING_INLINE functions if
12196         _FORCE_INLINES is defined.
12197         Use int instead of char of parameter types.
12198         (__strsep): Don't use __strsep_g.  Don't define it.
12199         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
12200         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
12201         __strcpy_small.
12202         (__stpcpy_a_small): Renamed from __stpcpy_small.
12203         (__strcspn_c1): Don't define if _FORCE_INLINES.
12204         (__strspn_c1): Likewise.
12206 2001-09-22  Ben Collins  <bcollins@debian.org>
12208         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
12209         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
12210         * sysdeps/ia64/bits/sigaction.h: Likewise.
12211         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
12213 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
12215         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
12217 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
12219         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
12221 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
12223         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
12225 2001-09-20  H.J. Lu  <hjl@gnu.org>
12227         * include/dlfcn.h (__RTLD_SPROF): New definiton.
12228         * elf/dl-open.c (dl_open_worker): Return immediately after loading
12229         for __RTLD_SPROF.
12230         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
12231         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
12233 2001-09-20  H.J. Lu  <hjl@gnu.org>
12235         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
12236         don't add 1.
12238 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
12240         * nss/getent.c: Accept -s parameter to overwrite rules in
12241         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
12243         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
12244         with as many ".0" as necessary to form a complete address
12245         inet_network understands.
12247         * nss/getent.c: Various cleanups.  Use simpler and fewer function
12248         calls.
12250 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12252         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
12253         _JMPBUF_UNWINDS.
12254         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
12256 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
12258         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
12259         IBM1161.
12260         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
12261         * iconvdata/ibm1160.c: New file.
12262         * iconvdata/ibm1160.h: New file.
12263         * iconvdata/ibm1161.c: New file.
12264         * iconvdata/ibm1161.h: New file.
12265         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
12267 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
12269         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
12270         difference between base address and first PT_LOAD's virtual address,
12271         not the base address.
12273 2001-09-11  Tom Rix  <trix@redhat.com>
12275         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
12276         ifdef for __getopt_clean_environment.
12277         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
12279 2001-09-22  Andreas Jaeger  <aj@suse.de>
12281         * elf/reldep4.c (main): Add proper prototype to fix warning.
12283         * elf/reldep5.c (main): Remove unused variable.
12285         * math/math_private.h: Add prototypes.
12287 2001-09-21  Andreas Jaeger  <aj@suse.de>
12289         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
12290         * sysdeps/x86_64/Dist: New file.
12291         * sysdeps/x86_64/soft-fp/Dist: New file.
12293         * sysdeps/gnu/Dist: Remove eval.c.
12295 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
12297         * malloc/memusage.c (realloc): Don't count already allocated
12298         memory in the sums.
12299         (me): Always use dlsym() to find the real implementations.
12301         * malloc/memusage.sh: Make -n option actually do something.
12303 2001-09-20  Andreas Jaeger  <aj@suse.de>
12305         * elf/elf.h (R_390_NUM): Correct value.
12307         * Versions.def: Add missing versions 2.2.3 for libthread_db and
12308         libpthread.
12310         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
12311         for x86-64, install x86-64 into */lib64.
12313         * shlib-versions: Add x86-64.
12315         * elf/elf.h: Add x86-64 relocations.
12317 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
12319         * po/fr.po: Update from translation team.
12321 2001-09-19  Andreas Jaeger  <aj@suse.de>
12323         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
12324         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
12325         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
12326         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
12327         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
12328         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
12329         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
12330         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
12331         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
12332         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
12333         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
12334         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
12335         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
12336         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
12337         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
12338         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
12339         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
12340         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
12341         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
12342         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
12343         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
12344         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
12345         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
12346         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
12347         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
12348         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
12349         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
12350         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
12351         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
12352         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
12353         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
12354         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
12355         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
12356         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
12357         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
12358         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
12359         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
12360         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
12361         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
12362         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
12363         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
12364         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
12365         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
12366         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
12367         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
12368         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
12369         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
12370         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
12371         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
12372         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
12373         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
12374         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
12375         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
12376         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
12377         * sysdeps/unix/x86_64/sysdep.S: New file.
12378         * sysdeps/unix/x86_64/sysdep.h: New file.
12379         * sysdeps/x86_64/Implies: New file.
12380         * sysdeps/x86_64/Makefile: New file.
12381         * sysdeps/x86_64/Versions: New file.
12382         * sysdeps/x86_64/__longjmp.S: New file.
12383         * sysdeps/x86_64/abort-instr.h: New file.
12384         * sysdeps/x86_64/atomicity.h: New file.
12385         * sysdeps/x86_64/bits/endian.h: New file.
12386         * sysdeps/x86_64/bits/setjmp.h: New file.
12387         * sysdeps/x86_64/bits/string.h: New file.
12388         * sysdeps/x86_64/bp-asm.h: New file.
12389         * sysdeps/x86_64/bsd-_setjmp.S: New file.
12390         * sysdeps/x86_64/bsd-setjmp.S: New file.
12391         * sysdeps/x86_64/dl-machine.h: New file.
12392         * sysdeps/x86_64/elf/initfini.c: New file.
12393         * sysdeps/x86_64/elf/start.S: New file.
12394         * sysdeps/x86_64/ffs.c: New file.
12395         * sysdeps/x86_64/ffsll.c: New file.
12396         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
12397         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
12398         * sysdeps/x86_64/fpu/e_acosl.c: New file.
12399         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
12400         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
12401         * sysdeps/x86_64/fpu/e_expl.c: New file.
12402         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
12403         * sysdeps/x86_64/fpu/e_log10l.S: New file.
12404         * sysdeps/x86_64/fpu/e_log2l.S: New file.
12405         * sysdeps/x86_64/fpu/e_logl.S: New file.
12406         * sysdeps/x86_64/fpu/e_powl.S: New file.
12407         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
12408         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
12409         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
12410         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
12411         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
12412         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
12413         * sysdeps/x86_64/fpu/fegetenv.c: New file.
12414         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
12415         * sysdeps/x86_64/fpu/fegetround.c: New file.
12416         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
12417         * sysdeps/x86_64/fpu/fesetenv.c: New file.
12418         * sysdeps/x86_64/fpu/fesetround.c: New file.
12419         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
12420         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
12421         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
12422         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
12423         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
12424         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
12425         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
12426         * sysdeps/x86_64/fpu/s_atanl.c: New file.
12427         * sysdeps/x86_64/fpu/s_cosl.S: New file.
12428         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
12429         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
12430         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
12431         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
12432         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
12433         * sysdeps/x86_64/fpu/s_logbl.c: New file.
12434         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
12435         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
12436         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
12437         * sysdeps/x86_64/fpu/s_rintl.c: New file.
12438         * sysdeps/x86_64/fpu/s_significandl.c: New file.
12439         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
12440         * sysdeps/x86_64/fpu/s_sinl.S: New file.
12441         * sysdeps/x86_64/fpu/s_tanl.S: New file.
12442         * sysdeps/x86_64/gmp-mparam.h: New file.
12443         * sysdeps/x86_64/hp-timing.c: New file.
12444         * sysdeps/x86_64/hp-timing.h: New file.
12445         * sysdeps/x86_64/htonl.S: New file.
12446         * sysdeps/x86_64/memusage.h: New file.
12447         * sysdeps/x86_64/setjmp.S: New file.
12448         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
12449         * sysdeps/x86_64/stackinfo.h: New file.
12450         * sysdeps/x86_64/sysdep.h: New file.
12451         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
12453         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
12454         L Moshier.
12456 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12458         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
12459         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
12461 2001-09-18  Andreas Schwab  <schwab@suse.de>
12463         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
12464         list, now that l_scope is a pointer.
12466         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
12467         scope list.
12469 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12471         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
12472         (elf_machine_rela_relative): Add a missing declaration.
12474 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
12476         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
12477         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
12478         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
12479         ldd-rewrite scripts.
12481 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12483         * elf/ldd.bash.in: Update copyright message.
12485 2001-09-17  H.J. Lu  <hjl@gnu.org>
12487         * hurd/hurdmalloc.c (bcopy): Removed.
12488         (realloc): Replace bcopy with memcpy.
12489         * hurd/path-lookup.c (file_name_path_scan): Likewise.
12490         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12491         * sunrpc/rpcinfo.c (pmapdump): Likewise.
12493         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12494         (gethostbyaddr): Likewise.
12495         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12497 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12499         * sysdeps/gnu/eval.c: Removed.
12501 2001-09-18  Andreas Jaeger  <aj@suse.de>
12503         * sysdeps/i386/fpu/s_logbl.S: Move to ...
12504         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12506         * sysdeps/i386/fpu/s_rintl.S: Move to ...
12507         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12509         * sysdeps/i386/fpu/s_significandl.S: Move to ...
12510         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12512 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
12514         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12515         nrules value.
12517 2001-09-14  H.J. Lu  <hjl@gnu.org>
12519         * sysdeps/mips/fpu/libm-test-ulps: Updated.
12521 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
12523         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12524         Patch by Florian La Roche <laroche@redhat.com>.
12526         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12528         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12529         ETHER_CRC_LEN.
12531 2001-09-14  Andreas Schwab  <schwab@suse.de>
12533         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
12534         Sumner <bls@sgi.com>.
12535         * posix/execlp.c: Likewise.
12537 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
12539         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12540         is already found earlier in the search scope.
12542 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
12544         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12545         filter.
12547 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
12549         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12551 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
12553         * config.h.in: Enforce optimization to be used.
12554         * Makeconfig (preprocess-versions): Define ASSEMBLER.
12555         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12556         * posix/Makefile (annexc-CFLAGS): Define to -O.
12557         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12559 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
12561         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12562         Patch by Stephan Kulow.
12564 2001-09-08  Ben Collins  <bcollins@debian.org>
12566         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12567         usage of RESOLVE() (r_type, not reloc->r_type).
12569 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12571         * elf/dl-object.c: Avoid allocating extra memory block for name.
12572         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12573         allocated separately.
12574         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12576 2001-09-08  H.J. Lu  <hjl@gnu.org>
12578         * po/zh_TW.po: Fix a typo.
12580 2001-09-07  Tom Rix  <trix@redhat.com>
12582         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12584 2001-08-26  Tom Rix  <trix@redhat.com>
12586         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12587         command line options.
12588         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12589         * sysdeps/unix/sysv/aix/start.c: Removed.
12590         * sysdeps/unix/sysv/aix/start-libc.c: New file.
12591         * sysdeps/unix/sysv/aix/init-first.c: New file.
12592         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12594 2001-09-08  Ben Collins  <bcollins@debian.org>
12596         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12597         * sysdeps/generic/dl-machine.h: Likewise.
12598         * sysdeps/hppa/dl-fptr.c: Likewise.
12599         * sysdeps/ia64/dl-fptr.c: Likewise.
12600         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12601         * sysdeps/mips/dl-machine.h: Likewise.
12602         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12603         * sysdeps/powerpc/dl-machine.c: Likewise.
12605 2001-09-07  Ben Collins  <bcollins@debian.org>
12607         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12609         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12611 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12613         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12614         dependencies if necessary.
12616         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12617         loaded directly) determine length if l_initfini list by iterating
12618         over its elements.  Minor optimizations.
12619         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12620         for dependency objects.
12621         If object was already loaded check whether any of the dependencies
12622         is already on the relocation dependency list.  If yes, remove the
12623         latter.  Minor optimizations.
12624         * elf/dl-lookup.c (add_dependency): Add check for self reference of
12625         maps here.  Search l_initfini list only if the object was loaded
12626         directly and not only as a dependency.
12627         (_dl_lookup_symbol): Add relocation dependency also if object
12628         is not in global scope.  Remove test for self-reference here.
12629         (_dl_lookup_versioned_symbol): Likewise.
12630         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
12631         element of first name record.
12632         * elf/loadtest.c: Add some more test to recognize early if an object
12633         wasn't unloaded.
12634         * elf/Makefile: Add rules to build and run reldep5.
12635         * elf/reldep5.c: New file.
12636         * elf/reldepmod5.c: New file.
12637         * elf/reldepmod6.c: New file.
12639         * elf/reldep2.c: Fix typo.
12641 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
12643         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12644         elements.  Change l_scope to be a pointer only.
12645         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12646         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12647         here add searchlist of newly open file to the dependency's scope.
12648         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12649         only searchlist from its scope.  Free own scope array if necessary.
12650         * elf/Makefile (tests): Add dblload and dblunload now.
12652 2001-09-06  Andreas Jaeger  <aj@suse.de>
12654         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12655         Stephen L Moshier.
12657 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
12659         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
12660         they both fail.
12661         * elf/dblload.c: New file.
12662         * elf/dblloadmod1.c: New file.
12663         * elf/dblloadmod2.c: New file.
12664         * elf/dblloadmod3.c: New file.
12665         * elf/dblunload.c: New file.
12667 2001-09-04  Richard Henderson  <rth@redhat.com>
12669         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12670         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12672 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12674         Correct very misleading message for error in failed runtime relocation.
12675         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12676         place of the error.
12677         (_dl_signal_cerror): Likewise.
12678         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12679         * elf/dl-close.c: Likewise.
12680         * elf/dl-deps.c: Likewise.
12681         * elf/dl-load.c: Likewise.
12682         * elf/dl-lookup.c: Likewise.
12683         * elf/dl-open.c: Likewise.
12684         * elf/dl-reloc.c: Likewise.
12685         * elf/dl-sym.c: Likewise.
12686         * elf/dl-version.c: Likewise.
12687         * sysdeps/generic/dl-sysdep.c: Likewise.
12689 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12691         * iconv/strtab.c (strtabinit): Initialize null Strent.
12692         (newstring): Move len == 0 handling...
12693         (strtabadd): ...here.
12694         If len == 1, return null Strent.
12695         When inserting a suffix of an existing string, check if
12696         it is not equal to some suffix already recorded.
12697         Copy left and right members over if adding longer string.
12699 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12701         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12703         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12704         (__syscall_gethostname): Add prototype.
12706 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12708         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12710 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
12712         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12714 2001-08-27  Roland McGrath  <roland@frob.com>
12716         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12717         short, copy that much into NAME anyway before returning error.
12719 2001-09-01  Richard Henderson  <rth@redhat.com>
12721         * sysdeps/alpha/elf/Dist: Remove file.
12722         * sysdeps/alpha/elf/Makefile: Remove file.
12723         * sysdeps/alpha/elf/crtbegin.S: Remove file.
12724         * sysdeps/alpha/elf/crtend.S: Remove file.
12725         * sysdeps/alpha/elf/initfini.c: New file.
12727 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
12729         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12730         * iconv/tst-iconv3.c: Likewise.
12732 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
12734         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12736 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
12738         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12739         export it.
12740         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12741         * iconv/iconv_prog.c (insert_cache): New function.
12742         (print_known_names): If cache is used call insert_cache to use the
12743         information from the cache [PR libc/2509].
12745 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
12747         * time/strptime.c (strptime_internal): Recognize 'l' format and
12748         handle it like 'I' for symmetry with strftime.
12750 2001-08-31  Richard Henderson  <rth@redhat.com>
12752         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12753         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12754         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12755         (print_statistics): Make scalar unsigned long long.
12756         * sysdeps/alpha/hp-timing.h: New file.
12758 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12760         * stdio-common/perror.c (perror): Save errno early, pass it
12761         down to perror_internal.
12762         (perror_internal): Add errnum argument.
12764 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12766         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12767         Don't add old memory content for R_ALPHA_REFQUAD.
12769 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12771         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12772         memory correctly.
12774         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12775         instead of open, __close instead of close, __getpagesize instead
12776         of getpagesize.
12778         * string/argz-stringify.c (__argz_stringify): Use __strnlen
12779         instead of strnlen.
12780         * include/string.h (strndupa): Redefine here to use __strnlen
12781         instead of strnlen.
12782         * string/strndup.c (__strndup): Use __strnlen not strnlen.
12784         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12785         connected).
12787 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12789         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12790         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
12791         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12792         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12793         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12794         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12795         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12797 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12799         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12801 2001-08-30  Andreas Jaeger  <aj@suse.de>
12803         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12804         contributed Stephen L Moshier.
12806 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12808         * sunrpc/etc.rpc (sgi_fam): Add.
12810 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12812         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12814 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12816         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12817         first is from a previous call.
12818         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12820 2001-08-29  Andreas Schwab  <schwab@suse.de>
12822         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12824 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12826         * config.make.in (INSTALL_SCRIPT): Define.
12827         * Makeconfig (INSTALL_SCRIPT): Define.
12828         * Makerules (do-install-script): New macro to install scripts using
12829         INSTALL_SCRIPT.
12830         (install-bin-script): New rule to install scripts with
12831         do-install-script.
12832         (install-bin-script-nosubdir): New rule.
12833         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12834         (distinfo-vars): Add $(install-bin-script).
12835         * Rules (others): Likewise.
12836         * Makefile (glibcbug): Install with install-bin-script.
12837         * debug/Makefile (xtrace): Likewise.
12838         (catchsegv): Likewise.
12839         * elf/Makefile (ldd): Likewise.
12840         * malloc/Makefile (mtrace): Likewise.
12841         * timezone/Makefile (tzselect): Likewise.
12843 2001-08-29  H.J. Lu  <hjl@gnu.org>
12845         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12846         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12847         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12849 2001-08-29  Andreas Schwab  <schwab@suse.de>
12851         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12853 2001-08-28  H.J. Lu  <hjl@gnu.org>
12855         * Makeconfig (combreloc-LDFLAGS): New variable.
12856         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12857         * config.make.in (have-z-combreloc): New variable.
12858         * configure.in: Substitute libc_cv_z_combreloc.
12860 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12862         * po/sv.po: Update from translation team.
12863         * po/fr.po: Likewise.
12864         * po/da.po: Likewise.
12866 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12868         * Makerules: Fix a typo: MD% -> MD5.
12870 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
12872         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12873         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12875 2001-08-28  Andreas Jaeger  <aj@suse.de>
12877         * manual/libc-texinfo.sh: Add entry about free manuals.
12879         * manual/contrib.texi (Contributors): Fix cross reference.
12881         * manual/libc.texinfo (Copying): Include freemanuals.
12883         * manual/Makefile (appendices): Add freemanuals.
12885         * manual/freemanuals.texi: New file.
12886         Patch by Brian Youmans <3diff@gnu.org>.
12888         * manual/libm-err-tab.pl: Pretty print more platforms, print a
12889         smaller table.
12891         * manual/math.texi (Errors in Math Functions): Fix grammar, start
12892         table on separate page.
12893         Patch by Brian Youmans <3diff@gnu.org>.
12895 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12897         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
12898         the connection went down after we first used it try to connect
12899         again and resend the message before printing to the console.
12900         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12902 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12904         * string/tst-strlen.c (main): Test strnlen (, -1) too.
12905         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12906         bit set.
12908 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12910         * iconv/strtab.c (searchstring): Use correct length for comparison.
12911         (strtabadd): Account total size correct if new string has old string as
12912         substring.
12914 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12916         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
12918 2001-08-27  Andreas Jaeger  <aj@suse.de>
12920         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
12922         * math/libm-test.inc (j0_test): Add extra tests.
12923         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
12924         not x, in Hankel approximation.
12925         Patches by Stephen L Moshier.
12927 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12929         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
12930         link_map.
12932         * configure.in: Fix test for .rela.dyn section.
12934         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
12936 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12938         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
12939         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
12940         Pass type_class to _dl_lookup_*.
12941         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
12942         Pass around just type_class instead of noexec, noplt pair.
12943         (_dl_lookup_versioned_symbol): Likewise.
12944         (_dl_lookup_symbol_skip): Pass around just type_class instead of
12945         noexec, noplt pair.
12946         (_dl_lookup_versioned_symbol_skip): Likewise.
12947         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
12948         * elf/do-lookup.h (do_lookup): Likewise.
12949         * include/link.h (struct link_map): Replace noexec and noplt fields
12950         in l_lookup_cache with type_class field.
12951         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
12952         ELF_RTYPE_CLASS_COPY): Define.
12953         Adjust prototypes for _dl_lookup_symbol and
12954         _dl_lookup_versioned_symbol.
12955         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
12956         elf_machine_lookup_noexec_p): Remove.
12957         (elf_machine_type_class): Define.
12958         * sysdeps/arm/dl-machine.h: Likewise.
12959         * sysdeps/hppa/dl-machine.h: Likewise.
12960         * sysdeps/cris/dl-machine.h: Likewise.
12961         * sysdeps/i386/dl-machine.h: Likewise.
12962         * sysdeps/ia64/dl-machine.h: Likewise.
12963         * sysdeps/m68k/dl-machine.h: Likewise.
12964         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12965         * sysdeps/mips/dl-machine.h: Likewise.
12966         * sysdeps/powerpc/dl-machine.h: Likewise.
12967         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12968         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12969         * sysdeps/sh/dl-machine.h: Likewise.
12970         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12971         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12973 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12975         * manual/message.texi (Advanced gettext functions): Change
12976         description of plural forms for Slovak.
12977         Reported by Marcel Telka <marcel@telka.sk>.
12979         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
12980         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
12982 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
12984         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
12985         typo.  Patch by Florian La Roche <laroche@redhat.com>.
12987 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
12989         * include/link.h (struct link_map): Add l_lookup_cache element.
12990         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
12991         (RESOLVE_MAP): Likewise.
12992         (_dl_relocate_object): Remove cache initialization.
12993         * elf/dl-lookup.c: Rip out cache handling code.
12994         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
12995         declarations.
12997         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
12998         remove some __builtin_expect.
12999         (_dl_lookup_versioned_symbol): Likewise.
13001         * config.h.in: Add HAVE_Z_COMBRELOC.
13002         * configure.in: Add test for -z combreloc.
13004         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
13005         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
13006         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
13007         case to almost no code.
13009 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
13011         * po/tr.po: Update from translation team.
13013 2001-08-24  Andreas Jaeger  <aj@suse.de>
13015         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
13016         make clean works.
13018 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13020         * elf/rtld.c (print_statistics): Printf % after percent values.
13021         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
13023         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
13024         don't have to compute the hash value and initialize current_value.
13025         Move reference_name variable to where it is needed.
13026         (_dl_lookup_versioned_symbol): Likewise.
13028 2001-08-24  Roland McGrath  <roland@frob.com>
13030         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
13031         Just test that strerror returns non-null for a few errno codes.
13033 2001-08-23  Roland McGrath  <roland@frob.com>
13035         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
13036         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
13038         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
13040         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
13041         __mach_reply_port.
13043 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13045         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
13046         returns NULL.
13048         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
13049         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
13050         doesn't do it.
13051         * elf/rtld.c: Include <sys/param.h>.
13052         * elf/dl-reloc.c: Likewise.
13054 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
13056         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
13057         empty to prevent junk from being generated.
13058         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
13060 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
13062         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
13063         records.  Rename endrel to relative, initialize it to r, and use it
13064         in elf_machine_rel_relative calls.  Point r after relative relocs.
13066 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13068         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
13069         of R_386_NONE.
13071 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
13073         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
13074         necessary.  Undefine newly defined macros at the end.
13075         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
13076         Rename from elf_machine_rel_relative.
13077         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
13078         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
13079         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
13080         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
13081         Likewise.
13082         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
13083         Likewise.
13084         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
13085         Fix argument types.
13086         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
13087         Fix argument types.
13088         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
13089         Likewise.  Fix argument types.
13090         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
13091         Likewise.  Fix argument types.
13092         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
13093         Fix argument types.
13094         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
13095         ElfW(Rel) in argument.
13096         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
13097         function.
13099 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
13101         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
13103 2001-08-24  Andreas Jaeger  <aj@suse.de>
13105         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
13106         Stephen L Moshier <moshier@mediaone.net>.
13108 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13110         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
13111         first if RELCOUNT is set.
13113         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
13114         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
13115         elf_machine_rel_relative.
13116         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
13117         Minor optimizations.
13118         * sysdeps/arm/dl-machine.h: Likewise.
13119         * sysdeps/cris/dl-machine.h: Likewise.
13120         * sysdeps/hppa/dl-machine.h: Likewise.
13121         * sysdeps/i386/dl-machine.h: Likewise.
13122         * sysdeps/ia64/dl-machine.h: Likewise.
13123         * sysdeps/m68k/dl-machine.h: Likewise.
13124         * sysdeps/mips/dl-machine.h: Likewise.
13125         * sysdeps/powerpc/dl-machine.h: Likewise.
13126         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13127         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13128         * sysdeps/sh/dl-machine.h: Likewise.
13129         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13130         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13132 2001-08-23  Roland McGrath  <roland@frob.com>
13134         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
13136         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
13137         sysdeps/mach version.  Implement counting ("recursive") mutexes
13138         on top of cthreads mutexes.
13139         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
13141         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
13142         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
13143         (__libc_cleanup_region_start, __libc_cleanup_region_end,
13144         __libc_clean_end): Define these to call the cleanup function after
13145         normal exit when they're supposed to.
13147         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
13148         Take new first arg DOIT, a boolean saying whether to really install
13149         any cleanup handler.
13150         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
13151         (__libc_cleanup_end): Likewise.
13152         * sysdeps/generic/bits/libc-lock.h: Same changes.
13153         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
13154         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
13155         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
13156         Likewise.
13157         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
13158         * sysdeps/generic/bits/stdio-lock.h
13159         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
13161 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13163         * elf/ldconfig.c (search_dir): Remove stale symlinks.
13165 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13167         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
13168         functions.
13169         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
13170         lookups in cache.
13171         (_dl_lookup_versioned_symbol): Likewise.
13172         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
13173         relocation lookup.
13174         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
13175         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
13176         (lookup_cache, lookup_cache_versioned): Add declarations.
13178 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
13180         * stdlib/tst-random.c (main): Swap parameters in fail call.
13181         Patch by Pete Bevin <pete@petebevin.com>.
13183 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13185         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
13187 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
13189         * malloc/obstack.c: Indent preprocessor directives.
13190         Patch by Jim Meyering <meyering@ascend.com>.
13192         * po/ja.po: Update from translation team.
13194 2001-08-23  Roland McGrath  <roland@frob.com>
13196         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
13198         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
13199         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
13201 2001-08-22  Roland McGrath  <roland@frob.com>
13203         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
13204         __libc_lock_define_recursive.
13205         * elf/dl-open.c: Don't declare it here any more.
13206         * elf/dl-close.c: Likewise.
13207         * elf/dl-lookup.c: Likewise.
13208         * elf/dl-iteratephdr.c: Likewise.
13209         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
13210         __libc_lock_unlock_recursive.
13211         * elf/dl-close.c (_dl_close): Likewise
13212         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
13213         * elf/dl-open.c (_dl_open): Likewise
13215         * sysdeps/generic/bits/libc-lock.h
13216         (__libc_lock_define_recursive): New macro.
13217         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
13218         (_IO_lock_lock): Use __libc_lock_lock_recursive.
13219         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
13221         * conform/conformtest.pl (checknamespace): Sort the output list.
13223         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
13224         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
13225         definitions conditional on [__USE_XOPEN].
13227         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
13228         these unconditionally, not only use [__USE_BSD], so as to match
13229         the sysdeps/unix/sysv/linux files.
13231 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13233         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
13234         avoid warnings.
13236         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
13237         DL_LOOKUP_ADDRESS.
13239 2001-08-22  Roland McGrath  <roland@frob.com>
13241         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
13242         conditionalization of sa_handler/sa_sigaction member types to
13243         match the sysdeps/unix/sysv/linux file.
13245 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13247         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
13248         symbol sizes a bit better.
13250         * sysdeps/ia64/strncpy.S: Complete rewrite.
13251         Contributed by Jakub Jelinek <jakub@redhat.com>.
13253         * string/stratcliff.c (main): Add strncpy test.
13255 2001-08-22  Roland McGrath  <roland@frob.com>
13257         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
13258         and don't declare unsetenv or _environ directly.
13259         (unsetenv): Return int, not void.  Use __environ instead of _environ.
13261 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
13263         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
13264         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
13265         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
13266         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
13267         test for cmsg struct size.
13269 2001-04-23  Paul Eggert  <eggert@twinsun.com>
13271         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
13272         Rename __argc to ___argc in prototypes to avoid compatibility
13273         problems with systems that reserve the identifier "__argc".
13274         Similarly for __argv.
13276 2001-08-21  Roland McGrath  <roland@frob.com>
13278         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
13280         * mach/Makefile (tests): Removed.
13281         * mach/hello.c: File removed.
13283 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13285         * po/sv.po: Update from translation team.
13287         * stdio-common/vfscanf.c: Fix handling of %l[].
13288         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
13290         * libio/Makefile (tests): Add tst-sscanf.
13291         * libio/tst-sscanf.c: New file.
13293         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
13294         * malloc/mtrace.c (tr_where): dli_sname always points to a
13295         non-empty string if != NULL.
13296         Reported by Tim Janik <timj@gtk.org>.
13298 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
13300         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
13301         buf.  Free resources on failure.
13302         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
13303         (makefd_xprt): Likewise.
13304         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
13305         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
13306         * sunrpc/auth_unix.c (authunix_create): Likewise.
13308 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
13310         * string/strnlen.c: Remove.
13311         * sysdeps/generic/strnlen.c: New file.
13312         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
13314 2001-08-21  Roland McGrath  <roland@frob.com>
13316         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
13317         as a macro, not an extern inline function.
13319         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
13320         * Versions.def (libc): Add GLIBC_2.2.5 set.
13321         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
13322         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
13324 2001-08-20  Roland McGrath  <roland@frob.com>
13326         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
13327         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
13329 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
13331         * string/bits/string2.h: Remove strnlen optimization here.
13332         * sysdeps/i386/i486/bits/string.h: Add it here.
13334 2001-08-21  Wolfram Gloger  <wg@malloc.de>
13336         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
13338 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
13340         * po/gl.po: Update from translation team.
13342 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13344         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
13345         * misc/err.c (convert_and_print): Likewise.
13347         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
13348         function calls.
13350 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13352         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
13353         change of the gregset_t type.
13354         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13356 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
13358         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
13360 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13362         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
13364         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
13366 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
13368         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
13369         before calling the cthreads initialization code.
13371 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13373         * argp/argp-help.c: Fix two problems introduced in last change.
13375         * include/dirent.h: Include <dirstream.h> first.
13377 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
13379         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
13381         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
13382         * sunrpc/xdr_rec.c: Likewise.
13383         * sunrpc/xdr_mem.c: Likewise.
13384         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
13385         * sunrpc/rpc_cmsg.c: Likewise.
13386         * sunrpc/getrpcport.c (getrpcport): Likewise.
13387         * sunrpc/clnt_simp.c (callrpc): Likewise.
13388         * sunrpc/clnt_gen.c (clnt_create): Likewise.
13389         * string/envz.c: Likewise.
13391         * po/ko.po: Update from translation team.
13393         * argp/argp-help.c: Handle wide oriented stderr stream.
13395 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
13397         * sysdeps/generic/strtol.c: Little optimizations.  Add some
13398         __builtin_expect.
13400         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
13402         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
13403         * wcsmbs/wcwidth.c (wcwdith): Likewise.
13404         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
13406         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
13408         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
13410         * time/time.h (struct timespec): Use __time_t for tv_sec element.
13412         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
13413         wchar_t for function declarations and defintions.
13415         * misc/sys/select.h: Define __need_time_t before including <time.h>.
13416         Define suseconds_t if it hasn't happened yet.
13418         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
13420         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
13422         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
13423         <stddef.h>.
13425         * conform/data/stddef.h-data: Remove wint_t.
13427         * conform/conformtest.pl: Change namespace test to take #undef
13428         lines into account.
13430         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
13432         * conform/data/sys/socket.h-data: Add sockatmark.
13434 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13436         * io/fts.c: Update from recent BSD source.
13438 2001-08-17  Roland McGrath  <roland@frob.com>
13440         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
13441         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
13442         Likewise.
13444 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13446         * locale/duplocale.c (__duplocale): Also initialize the special
13447         __ctype_* elements.
13449         * conform/data/netdb.h-data: Adjust gai_strerror return type.
13451 2001-08-17  Andreas Jaeger  <aj@suse.de>
13453         * misc/getpass.c: Include wchar.h for prototypes.
13454         * malloc/obstack.c: Likewise.
13456 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13458         * sunrpc/svc_simple.c (universal): Use __write instead of write.
13460         * wcsmbs/wcscoll.c: Also define __wcscoll.
13461         * include/wchar.h: Declare __wcscoll.
13463         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
13464         * libio/vwprintf.c: Likewise.
13465         * libio/wprintf.c: Likewise.
13467         * iconv/gconv_cache.c: Use __munmap instead of munmap.
13469 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
13471         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
13472         instead of mbrtowc.
13473         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
13474         wcslen, and __wcscoll instead of wcscoll.
13476         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
13478         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
13479         __getuid instead of getuid.
13481         * stdio-common/perror.c (perror): Use __close instead of close.
13482         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13483         * libio/freopen.c (freopen): Likewise.
13484         * libio/freopen64.c (freopen64): Likewise.
13486         * libio/tst-ungetwc2.c (main): Define str const.
13488         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13489         * libio/fwprintf.c: Also define __fwprintf.
13490         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13491         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13492         * assert/assert-perr.c: Likewise.
13493         * assert/assert.c: Likewise.
13494         * gmon/gmon.c: Likewise.
13495         * inet/rcmd.c: Likewise.
13496         * malloc/obstack.c: Likewise.
13497         * misc/err.c: Likewise.
13498         * misc/error.c: Likewise.
13499         * misc/getpass.c: Likewise.
13500         * posix/getopt.c: Likewise.
13501         * resolv/res_hconf.c: Likewise.
13502         * stdio-common/perror.c: Likewise.
13503         * stdio-common/psignal.c: Likewise.
13504         * stdlib/fmtmsg.c: Likewise.
13505         * sunrpc/auth_unix.c: Likewise.
13506         * sunrpc/clnt_perr.c: Likewise.
13507         * sunrpc/clnt_tcp.c: Likewise.
13508         * sunrpc/clnt_udp.c: Likewise.
13509         * sunrpc/clnt_unix.c: Likewise.
13510         * sunrpc/svc_simple.c: Likewise.
13511         * sunrpc/svc_tcp.c: Likewise.
13512         * sunrpc/svc_udp.c: Likewise.
13513         * sunrpc/svc_unix.c: Likewise.
13514         * sunrpc/xdr.c: Likewise.
13515         * sunrpc/xdr_array.c: Likewise.
13516         * sunrpc/xdr_rec.c: Likewise.
13517         * sunrpc/xdr_ref.c: Likewise.
13518         * sysdeps/generic/wordexp.c: Likewise.
13520         * po/it.po: Update from translation team.
13522         * misc/err.c: Handle wide oriented stderr stream.
13524 2001-08-14  Tom Rix  <trix@redhat.com>
13526         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13527         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13529 2001-08-13  Tom Rix  <trix@redhat.com>
13531         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13532         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13533         and __intptr_t.
13535 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13537         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13538         Store the access registers to the ucontext structure.
13539         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13540         Likewise.
13542         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13543         Load the access registers from the ucontext structure.
13544         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13545         Likewise.
13547         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13548         offsets to the new ucontext layout.
13549         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13551         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13552         of the ucontext structure.
13553         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13555 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
13557         * misc/error.c (error): Handle wide oriented stderr stream correctly.
13558         (error_at_line): Likewise.
13560         * stdio-common/perror.c (perror): Implement according to standard.
13561         The stream orientation must not be changed if the stream was not
13562         oriented before the call.
13563         * stdio-common/Makefile (tests): Add tst-perror.
13564         * stdio-common/tst-perror.c: New file.
13567 See ChangeLog.12 for earlier changes.