Update.
[glibc.git] / ChangeLog
blobb9febc18a0289c9d4067a946da357593c08d2465
1 2002-10-02  Ulrich Drepper  <drepper@redhat.com>
3         * sysdeps/unix/sysv/linux/x86_64/Dist: Add bits/utmpx.h.
4         * sysdeps/unix/sysv/linux/sparc/Dist: Likewise.
5         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
7         * sysdeps/s390/s390-32/initfini.c: Avoid unterminated string literals.
8         * sysdeps/sh/elf/initfini.c: Likewise.
9         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
10         * sysdeps/hppa/elf/initfini.c: Likewise.
11         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Likewise.
13 2002-10-02  Steven Munroe  <sjmunroe@us.ibm.com>
14             Jakub Jelinek  <jakub@redhat.com>
16         * login/programs/utmpdump.c (print_entry): Copy up->ut_tv fields
17         to struct timeval temp_tv before printing to be 32-/64-bit agnostic.
18         * sysdeps/powerpc/bits/wordsize.h: Move to...
19         * sysdeps/powerpc/powerpc32/bits/wordsize.h: ...here.
20         (__WORDSIZE_COMPAT32): Define.
21         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
22         * sysdeps/sparc/sparc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
23         Define.
24         * sysdeps/sparc/sparc64/bits/wordsize.h (__WORDSIZE_COMPAT32):
25         Define.
26         * sysdeps/s390/bits/wordsize.h: Move to...
27         * sysdeps/s390/s390-32/bits/wordsize.h: ...here.
28         * sysdeps/s390/s390-64/bits/wordsize.h: Likewise.
29         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Define.
30         * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: New file.
31         * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: New file.
32         * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: New file.
33         * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: New file.
34         * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: New file.
35         * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: New file.
37 2002-10-02  Jakub Jelinek  <jakub@redhat.com>
39         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix comment typo.
40         Temporarily enable R_ALPHA_NONE relocs in ld.so.
41         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Temporarily enable
42         R_IA64_NONE relocs in ld.so.
44 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
46         * README.template: Minimum Linux kernel for powerpc64 is 2.4.19.
48         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (struct ipc_perm):
49         Use __uint32_t and __uint64_t for __seq, __pad1, __unused[12] fields
50         so they are consistent between PPC32 and PPC64.
52         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__WORDSIZE != 32]:
53         (_STAT_VER): Define to _STAT_VER_KERNEL.
54         (stru stat, struct stat64): Define to match the PPC64 kernel.
55         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
56         (libc: GLIBC_2.2): Remove __xstat64, __fxstat64, and __lxstat64.
57         * sysdeps/unix/sysv/linux/powerpc/powerpc64/kernel_stat.h: New file.
58         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fxstat64.c: New file.
59         * sysdeps/unix/sysv/linux/powerpc/powerpc64/lxstat64.c: New file.
60         * sysdeps/unix/sysv/linux/powerpc/powerpc64/xstat64.c: New file.
61         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add kernel_stat.h.
63 2002-10-02  Roland McGrath  <roland@redhat.com>
65         * sysdeps/unix/sysv/linux/xstatconv.c [STAT_IS_KERNEL_STAT]:
66         Conditionalize the function definitions on this.
67         * sysdeps/unix/sysv/linux/xstat.c (__xstat) [STAT_IS_KERNEL_STAT]:
68         Don't use xstat_conv, just fail if VERS != _STAT_VER_KERNEL.
69         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat) [STAT_IS_KERNEL_STAT]:
70         Likewise.
71         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat) [STAT_IS_KERNEL_STAT]:
72         Likewise.
74 2002-10-02  Ulrich Drepper  <drepper@redhat.com>
76         * version.h (VERSION): Bump to 2.3.
78         * elf/Makefile (distribute): Add tst-tlsmod1.c, tst-tlsmod2.c,
79         tst-tlsmod3.c, tst-tlsmod4.c, circlemod1.c, circlemod1a.c,
80         circlemod2.c, circlemod2a.c, circlemod3.c, circlemod3a.c,
81         and nodlopenmod2.c.
83         * login/Makefile (distribute): Add utmp-equal.h.
85         * iconvdata/Makefile (distribute): Add TSCII.precomposed and
86         TSCII.irreversible.
88         * Make-dist (dist): Create .bz2 file.  Add rule to create .bz2 files.
89         Also distribute xtests sources.
91 2002-10-02  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
93         * elf/elf.h: Change TLS ELF relocation numbers.
94         * elf/tls-macros.h: Fix code sequences for SH TLS_LD and TLS_GD
95         macros.
96         * sysdeps/sh/dl-machine.h (dl_machine_rela) [case R_SH_TLS_TPOFF32]:
97         Use addend.
98         * sysdeps/sh/elf/initfini.c: Move __fpscr_values to...
99         * sysdeps/sh/elf/start.S: ...here.
101 2002-10-01  Jakub Jelinek  <jakub@redhat.com>
103         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ,
104         SIGSTKSZ): Changed to match kernel.
105         * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h: New file.
107 2002-10-01  Carlos O'Donell  <carlos@baldric.uwo.ca>
109         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
110         [__USE_GNU] (F_SETLEASE, F_GETLEASE, F_NOTIFY): New macros.
111         [__USE_GNU] (DN_ACCESS, DN_MODIFY, DN_CREATE, DN_DELETE, DN_RENAME,
112         DN_ATTRIB, DN_MULTISHOT): New macros.
114 2002-02-08  Randolph Chung  <tausq@debian.org>
116         * sysdeps/hppa/elf/start.S: Define __data_start.
118 2002-10-01  Isamu Hasegawa  <isamu@yamato.ibm.com>
120         * posix/regex_internal.c (re_string_reconstruct): Reset the member
121         LEN and STOP.
122         * posix/regexec.c (re_search_stub): Remove incorrect condition of
123         "range < 0".
124         Round RANGE in case that it is too small.
126 2002-10-01  Roland McGrath  <roland@frob.com>
128         * config.h.in (NO_HIDDEN): New #undef.
129         * include/libc-symbols.h [! NO_HIDDEN]: Add this condition to
130         nonempty definitions of hidden_proto et al.
131         * configure.in: Grok --disable-hidden-plt to define NO_HIDDEN.
132         * configure: Regenerated.
133         * sysdeps/mach/hurd/configure.in: Always define NO_HIDDEN.
134         * sysdeps/mach/hurd/configure: Regenerated.
136 2002-09-19  David Mosberger  <davidm@hpl.hp.com>
138         * sysdeps/ia64/dl-fptr.c (make_fdesc): Load address of "local" via
139         a 64-bit gp-relative address to enable binaries with large data
140         sections.
142 2002-09-30  Ulrich Drepper  <drepper@redhat.com>
144         * stdlib/cxa_finalize.c (__cxa_finalize): Call UNREGISTER_ATFORK
145         if it is defined.
146         * posix/Makefile (distribute): Add fork.h.
147         * sysdeps/generic/fork.h: New file.
149 2002-09-29  Bruno Haible  <bruno@clisp.org>
151         * sysdeps/generic/utmp_file.c (LOCKING_FAILED): New macro.
152         (UNLOCK_FILE): Add a label.
153         (getutent_r_file, internal_getut_r, getutline_r_file, pututline_file,
154         updwtmp_file): Shut off the alarm clock when locking failed.
156 2002-09-30  Isamu Hasegawa  <isamu@yamato.ibm.com>
158         * posix/regex_internal.h (re_match_context_t): Add a new member.
159         (re_fail_stack_ent_t): New structure.
160         (re_fail_stack_t): Likewise.
161         * posix/regexec.c (re_search_internal): Use the new member of
162         re_match_context_t.
163         Use fail stack only if it has back references and there are plural
164         matching candidates.
165         (proceed_next_node): Use fail stack if it is indicated.
166         (set_regs): Likewise.
167         (push_fail_stack): New function.
168         (pop_fail_stack): New function.
169         (check_dst_limits): Likewise.
170         (check_dst_limits_calc_pos): Likewise.
171         (search_subexp): Check the limitations on the top of subexpressions.
172         (sift_states_bkref): Check the limitations of the destination node.
173         Reuse the array sctx->sifted_states.
175 2002-09-30  Ulrich Drepper  <drepper@redhat.com>
177         * stdio-common/printf_fp.c: Shuffle a few lines around to help the
178         compiler optimizing.  No semantical changes intended.
180 2002-09-30  Jakub Jelinek  <jakub@redhat.com>
182         * sysdeps/ia64/strncpy.S: Only segfault in .recovery2 if some bits
183         from the next quad are needed.
185 2002-09-30  Roland McGrath  <roland@redhat.com>
187         * elf/tls-macros.h (TLS_LD, TLS_GD): Use call insn, not callq.
189         * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD] [! PIC]:
190         Use direct-%fs form of TLS access for errno.
192         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: File removed, since
193         the i386 version has all the same asm now.
195         * sysdeps/i386/elf/configure.in: Add @GOTNTPOFF and @NTPOFF uses to
196         the TLS support check.
197         * sysdeps/i386/elf/configure: Regenerated.
199         * sysdeps/unix/sysv/linux/i386/sysdep.h [USE_TLS && HAVE___THREAD]
200         (SYSCALL_ERROR_HANDLER): Use direct-%gs form of TLS access for errno.
202         * sysdeps/unix/i386/sysdep.S (syscall_error)
203         [USE_TLS && HAVE___THREAD]: Use TLS access for errno.
205         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
206         [USE_TLS && HAVE___THREAD] (SYSCALL_ERROR_HANDLER): Use TLS access.
208         * rt/tst-aio7.c (do_test): Don't read from stdin, which could be the
209         terminal when the test is running in a background job.  Instead, make
210         a pipe and read from its read half while never writing anything to it.
212 2002-09-30  Andreas Jaeger  <aj@suse.de>
214         * stdlib/tst-bsearch.c (main): Fix format strings.
215         * stdio-common/tst-rndseek.c (do_test): Likewise.
216         * libio/tst_swprintf.c (main): Likewise.
217         * catgets/tst-catgets.c (main): Likewise.
218         * libio/tst-fgetws.c (main): Likewise.
219         * posix/tst-mmap.c (main): Likewise.
220         * posix/bug-regex12.c (main): Likewise.
221         * posix/bug-regex11.c (main): Likewise.
222         * io/tst-getcwd.c (do_test): Likewise.
224         * iconvdata/tst-e2big.c (test): Use %td in printf for ptrdiff_t.
226         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
227         Store 4 bytes into errno, not 8 bytes.
229 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
231         * posix/regexec.c (sift_states_bkref): Remove ret variable.  Use
232         err instead.
234 2002-09-29  Roland McGrath  <roland@redhat.com>
236         * test-skeleton.c (timeout_handler): Use WUNTRACED flag in waitpid.
237         Examine the child's status and print something different if it wasn't
238         just killed by our SIGKILL.
239         (main): In the child process call setpgid to put it in its own pgrp.
241 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
243         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): The return value
244         semantics for sigtimedwait is different.  Rework the return value
245         handling and don't pass in a siginfo variable.
247 2002-09-29  Roland McGrath  <roland@redhat.com>
249         * malloc/malloc.c [! MALLOC_DEBUG] (assert): #undef before defining.
251         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.2.6): Add __errno_location.
253         * sysdeps/unix/sysv/linux/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]:
254         Define errno in .tbss.
255         * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]: Use TLS
256         access for setting errno.
258         * sysdeps/unix/x86_64/sysdep.S: Store 32 bits at errno, not 64 bits.
259         AFAICT, it was just blind luck that the word following errno in .bss
260         was just alignment padding and not some other variable to be clobbered.
262 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
264         * sysdeps/unix/sysv/linux/kernel-features.h
265         (__ASSUME_SETRESUID_SYSCALL): On the sparc, define to 1, not empty.
267 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
269         * nss/bug-erange.c (main): Don't fail if /etc/resolv.conf doesn't
270         exist.
272 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
274         * nss/Makefile: Move bug-erange from tests to xtests.
276 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
278         * stdlib/longlong.h (__udiv_qrnnd): Remove PARAMS from prototype.
280 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
282         * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall0): Make asm
283         volatile.
284         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
285         inline_syscall5, inline_syscall6): Likewise.
286         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
287         Likewise.
288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (INLINE_SYSCALL):
289         Likewise.
291 2002-09-29  Roland McGrath  <roland@redhat.com>
293         * configure.in (libc_cv_ranlib_necessary check): Put the .o file in
294         the archive, not the .c file.
295         * configure: Regenerated.
297 2002-09-29  Roland McGrath  <roland@redhat.com>
299         * configure: Regenerated after aclocal.m4 change.
301         * sysdeps/x86_64/sysdep.h [HAVE_ELF] (L): Define with .L##name form.
302         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (L): Don't define it here.
304         * sysdeps/generic/dl-lookupcfg.h [USE_TLS] (DL_LOOKUP_RETURNS_MAP):
305         Define it, because _dl_sym presumes it (for any platform).
307         * sysdeps/x86_64/dl-tls.h: New file.
309         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add a cast.
311         * sysdeps/x86_64/elf/configure.in: New file.
312         * sysdeps/x86_64/elf/configure: New generated file.
314 2002-09-28  Roland McGrath  <roland@redhat.com>
316         * elf/rtld.c (_dl_start): Fix conditional for declaring CNT.
318         * aclocal.m4 (LIBC_PROG_BINUTILS): Don't clobber $RANLIB with ranlib
319         before we check it.
321 2002-09-28  Ulrich Drepper  <drepper@redhat.com>
323         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __syscall_exit
324         entry point.
326 2002-09-28  Jakub Jelinek  <jakub@redhat.com>
328         * posix/bug-regex11.c (tests): Add flags field.
329         (main): Avoid warnings.  Use test[i].flags.  Return nonzero
330         if any of the tests failed.
331         * posix/bug-regex12.c: New file.
332         * posix/Makefile (tests): Add bug-regex12.
334 2002-03-02  Thorsten Kukuk  <kukuk@suse.de>
336         * sysdeps/unix/nice.c (nice): Use getpriority() for the return value.
338 2002-09-28  Jeff Bailey  <jbailey@gnu.org>
340         * sysdeps/unix/sysv/sysv4/solaris2/configure.in: Delete.
341         * sysdeps/unix/sysv/aix/configure.in: Update comment and remove
342         stdio=libio setting.
344 2002-09-28  Roland McGrath  <roland@redhat.com>
346         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Use INTUSE for
347         _dl_signal_error.
348         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Likewise.
349         * sysdeps/powerpc/powerpc64/dl-machine.c
350         (_dl_reloc_overflow): Likewise.
351         * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
352         (elf_machine_rela): Likewise.
354 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
356         * include/libc-symbols.h (__hidden_dot_weak1): Fix typo.  Replace
357         ASM_GLOBAL_DIRECTIVE with .weak.
359 2002-09-28  Andreas Jaeger  <aj@suse.de>
361         * sysdeps/unix/sysv/linux/mips/truncate64.c (truncate64): Fix
362         number of args to syscall.
363         * sysdeps/unix/sysv/linux/mips/ftruncate64.c (__ftruncate64): Likewise.
364         Patch by Guido Guenther <agx@sigxcpu.org>.
366 2002-09-27  Roland McGrath  <roland@redhat.com>
368         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_pread, __NR_pwrite):
369         Define these to __NR_pread64, __NR_pwrite64 if not defined.
371         * sysdeps/unix/sysv/linux/powerpc/lchown.S
372         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Use this condition
373         on chown compatibility symbol; use compat_symbol, not symbol_version.
375 2002-09-27  Isamu Hasegawa  <isamu@yamato.ibm.com>
377         * posix/regcomp.c (reg_free): Free the debug area.
378         (re_compile_internal): Allocate debug area for the input string.
379         (create_initial_state): Check the back references in initial states
380         if they are really match null string in the initial state.
381         (parse_reg_exp): Mark the dfa that the dfa can have plural matchings.
382         (parse_expression): Likewise.
383         (parse_bracket_exp): Likewise.
384         * posix/regex_internal.c (re_node_set_intersect): Remove unused
385         function.
386         (re_node_set_contains): Change to return the index of node.
387         * posix/regex_internal.h (re_backref_cache_entry): Change the members.
388         (re_match_context_t): Likewise.
389         (struct re_dfa_t): Likewise.
390         (re_sift_context_t): New structure.
391         * posix/regexec.c (match_ctx_clear_flag): New function.
392         (sift_ctx_init): Likewise.
393         (update_cur_sifted_state): Likewise.
394         (add_epsilon_src_nodes): Likewise.
395         (sub_epsilon_src_nodes): Likewise.
396         (check_subexp_limits): Likewise.
397         (search_subexp): Likewise.
398         (sift_states_bkref): Likewise.
399         (merge_state_array): Likewise.
400         (sift_states_iter_bkref): Remove unused function.
401         (add_epsilon_backreference): Remove unused function.
402         (re_search_internal): Adapt new members and interfaces.
403         (check_matching): Check the back references in initial states
404         if they are really match null string in the initial state.
405         (proceed_next_node): Change the evaluation of back references,
406         since we have real registers here.
407         (set_regs): Adapt new interface of proceed_next_node.
408         (sift_states_backward): Add invocation of update_cur_sifted_state
409         instead of add_epsilon_backreference.
410         Add a sentinel to the outermost while loop.
411         Move the handling of back references to sift_states_bkref function,
412         since we can't handle some back references (e.g. a back reference
413         which match NULL string) here.
414         (transit_state_mb): Handle the new member max_mb_elem_len.
415         (transit_state_bkref_loop): Move the evaluation of back references to
416         search_subexp function, since we can't evaluate some back references
417         (e.g. a back reference which can have plural matchings) here.
418         (match_ctx_init): Adapt the new member.
419         (match_ctx_add_entry): Adapt the new members.
421 2002-09-25  Alan Modra  <amodra@bigpond.net.au>
423         * elf/do-rel.h: Define macro DO_ELF_MACHINE_REL_RELATIVE for
424         'elf_machine_rel_relative'
425         (elf_dynamic_do_rel): Call DO_ELF_MACHINE_REL_RELATIVE macro
426         instead of 'elf_machine_rel_relative'.
427         * sysdeps/hppa/dl-machine.h:
428         Define macro DO_ELF_MACHINE_REL_RELATIVE for
429         'elf_machine_rel_relative' with extra map parameter
430         required by HPPA.
431         (elf_machine_rela_relative): Add plt relocation changes.
433 2001-11-14  Matthew Wilcox  <willy@debian.org>
435         * sysdeps/unix/sysv/linux/hppa/bits/ipc.h: New file.
436         * sysdeps/unix/sysv/linux/hppa/bits/msq.h: New file.
437         * sysdeps/unix/sysv/linux/hppa/bits/sem.h: New file.
438         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: New file.
440 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
442         * sysdeps/powerpc/powerpc32/Makefile: Fix typo in comment.
444         * sysdeps/powerpc/powerpc64/Makefile
445         [$(build-shared) = yes] (pic-ccflag): Define it.
446         [$(subdir) = csu] (CFLAGS-initfini.s): Add -fpic here too.
448 2002-09-27  Roland McGrath  <roland@redhat.com>
450         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Remove
451         unneeded TLS cases.
453 2002-09-27  Jakub Jelinek  <jakub@redhat.com>
455         * elf/dl-addr.c (_dl_addr): Set dli_fbase to l_map_start
456         unconditionally.  Set dli_fname to _dl_argv[0] only for main program.
458 2002-09-27  Roland McGrath  <roland@redhat.com>
460         * elf/dl-addr.c (_dl_addr): Add a cast.
462         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [USE_TLS]: Handle new
463         TLS relocs R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, and R_X86_64_TPOFF64.
465         * elf/elf.h (R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, R_X86_64_TPOFF64,
466         R_X86_64_TLSGD, R_X86_64_TLSLD, R_X86_64_DTPOFF32,
467         R_x86_64_GOTTPOFF, R_X86_64_TPOFF32): New macros.
468         (R_X86_64_NUM): Update the value.
470 2002-09-24  Jakub Jelinek  <jakub@redhat.com>
472         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_load_address): Don't
473         rely on *r_offset of R_SPARC_RELATIVE reloc in .got to contain the
474         addend.
475         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Use
476         the same l_addr computation.
477         * sysdeps/sparc/sparc64/configure.in: Removed.
478         * sysdeps/sparc/sparc64/configure: Removed.
479         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Remove.
481 2002-09-26  Ulrich Drepper  <drepper@redhat.com>
483         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_HASH entry
484         if necessary.
485         * elf/dl-lookup.c (_dl_setup_hash): DT_HASH entry is already relocated.
486         * elf/dl-addr.c (_dl_addr): Use .hash[1] entry to determine end of the
487         symbol table if necessary.
489 2002-09-26  Roland McGrath  <roland@redhat.com>
491         * stdlib/longlong.h: Replaced with current version from GCC mainline,
492         last modified 2002-09-22  Kazu Hirata  <kazu@cs.umass.edu>.
494 2002-09-25  Andreas Jaeger  <aj@suse.de>
496         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add syscall_exit.
497         Patch by Guido Guenther <agx@sigxcpu.org>.
499 2002-09-25  Roland McGrath  <roland@redhat.com>
501         * Makeconfig (%.v.i pattern rule): Use $(CPPFLAGS).
503 2002-09-24  Ulrich Drepper  <drepper@redhat.com>
505         * sysdeps/unix/sysv/linux/configure.in: Recognize nptl add-on name.
507 2002-09-24  Roland McGrath  <roland@redhat.com>
509         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Move __libc_read,
510         __libc_write, __libc_lseek64, to ...
511         (ld: GLIBC_PRIVATE): ... here.
513         * csu/Versions: Use %include <tls.h> to get USE_TLS defined.
514         (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _errno, errno.
515         (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put errno here instead.
516         * resolv/Versions: Use %include <tls.h> to get USE_TLS defined.
517         (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _h_errno, h_errno,
518         and _res.
519         (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put h_errno, _res here.
521         * elf/tls-macros.h [__x86_64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
522         New macros for x86-64.
524         * sysdeps/unix/sysv/linux/alpha/bits/time.h: File removed.
525         It was indentical to the linux/bits/time.h file.
527         * nscd/nscd_gethst_r.c (nscd_gethst_r): Add a cast to silence warning.
529         * resolv/gethnamaddr.c (gethostbyaddr): Use socklen_t for SIZE.
531 2002-09-23  Ulrich Drepper  <drepper@redhat.com>
533         * po/zh_CN.po: New file.
535 2002-09-23  Roland McGrath  <roland@redhat.com>
537         * posix/unistd.h: Test [__USE_UNIX98] instead of [__USE_OPEN2K]
538         for gethostname declaration.
540         * catgets/open_catalog.c (__open_catalog): Don't use a value type
541         as the __builtin_expect expression, just the Boolean value.
543         * sysdeps/generic/wordexp.c (parse_glob): int -> size_t for counter.
544         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
545         * resolv/res_hconf.c (arg_service_list, parse_line): Likewise.
546         * iconvdata/tst-loading.c (main): Likewise.
547         * catgets/tst-catgets.c (main): Likewise.
548         * stdlib/tst-xpg-basename.c (main): Likewise.
549         * stdlib/tst-bsearch.c (main): Likewise.
550         * stdio-common/test-vfprintf.c (main): Likewise.
551         * stdio-common/tst-rndseek.c (do_test): Likewise.
552         * libio/tst_swprintf.c (main): Likewise.
553         * libio/tst-fgetws.c (main): Likewise.
554         * wcsmbs/tst-mbrtowc.c (check_ascii): Likewise.
555         * time/tst-posixtz.c (main): Likewise.
556         * time/tst-strptime.c (test_tm): Likewise.
557         * time/tst-strptime.c (main): Likewise.
558         * time/tst-getdate.c (main): Likewise.
559         * posix/tst-mmap.c (main): Likewise.
560         * posix/tst-getaddrinfo.c (do_test): Likewise.
561         * io/tst-getcwd.c (do_test): Likewise.
562         * resolv/tst-aton.c (main): Likewise.
563         * inet/tst-network.c (main): Likewise.
564         * libio/tst-fgetws.c (main): Likewise.
565         * sysdeps/posix/sprofil.c (add_region): int -> unsigned int for I.
566         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): int -> unsigned int
567         for PTYNO.
569         * stdlib/msort.c (qsort): Add a cast to silence warning.
570         * stdio-common/vfprintf.c (process_string_arg): Likewise.
571         * libio/oldfileops.c (_IO_old_do_write): Likewise.
572         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Likewise.
573         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
574         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
575         * argp/argp-fmtstream.c (__argp_fmtstream_printf): Likewise.
576         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
577         * sysdeps/unix/grantpt.c (grantpt): Likewise.
578         * libio/tst-widetext.c (main): Likewise.
579         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
580         * rt/tst-aio.c (test_file): Likewise.
581         * rt/tst-aio64.c (test_file): Likewise.
582         * resolv/tst-aton.c (main): Likewise.
584         * catgets/catgetsinfo.h (CATGETS_MAGIC): Use U suffix on the constant.
586         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Cast to int32_t
587         instead of uint32_t in these macros.
589 2002-09-22  Bruno Haible  <bruno@clisp.org>
591         * iconv/iconv_prog.c (main): Provide an error message that identifies
592         the wrong encoding.
594         * iconvdata/tscii.c: New file.
595         * iconvdata/testdata/TSCII: New file.
596         * iconvdata/testdata/TSCII..UTF8: New file.
597         * iconvdata/TSCII.precomposed: New file.
598         * iconvdata/TSCII.irreversible: New file.
599         * iconvdata/gconv-modules (TSCII): New module.
600         * iconvdata/Makefile (modules): Add TSCII.
601         (distribute): Add tscii.c.
602         * iconvdata/tst-table-from.c (try, utf8_decode, main): Double output
603         buffer size.
604         * iconvdata/tst-tables.sh: Add TSCII.
605         * iconvdata/TESTS: Add TSCII.
607         Revert 2002-04-18 patch.
608         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
609         FROM_DIRECTION): Make the FROM direction stateful again.
610         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
611         FROM_DIRECTION): Likewise.
613         * iconvdata/tst-e2big.c: New file.
614         * iconvdata/Makefile (tests): Add tst-e2big.
616 2002-09-23  Roland McGrath  <roland@redhat.com>
618         * elf/Makefile (test-extras): Define this instead of test-srcs.
619         * Makerules (all-nonlib): Include $(test-extras) too.
621 2002-09-21  Carlos O'Donell  <carlos@baldric.uwo.ca>
623         * sysdeps/hppa/abort-instr.h: New file.
625 2002-09-22  Roland McGrath  <roland@frob.com>
627         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Remove duplicate entry.
629         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Add alias __GI__exit.
631 2002-09-22  Andreas Schwab  <schwab@suse.de>
633         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Append, not overwrite.
635         * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal)
636         (isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]:
637         Use GCC builtins.
639 2002-09-21  Roland McGrath  <roland@redhat.com>
641         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM):
642         Correct the value so it covers all platforms, and is computed
643         from _DL_PLATFORMS_COUNT rather than hard-wired.
644         From Andrew Suffield <asuffield@debian.org>.
646 2002-09-20  Ulrich Drepper  <drepper@redhat.com>
648         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
649         locking when using mount tab file.
650         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
651         * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
652         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
654         * elf/dl-init.c (_dl_init): Fix test of the size of the
655         preinit_array section.
656         (call_init): Optimize access to DT_INIT_ARRAY entry a bit.
657         Reported by Brian Cabral <cabral@ikuni.com>.
659 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
661         * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros.
662         * sysdeps/powerpc/powerpc32/sysdep.h: New file.  Define powerpc32
663         specific macros copied from sysdeps/powerpc/sysdep.h.
664         * sysdeps/powerpc/powerpc64/sysdep.h: New file.  Define powerpc64
665         specific macros.
666         * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>.
667         [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h.
668         [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h.
670 2002-09-19  Bruno Haible  <bruno@clisp.org>
672         * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
673         returning.
675 2002-09-17  Bruno Haible  <bruno@clisp.org>
677         * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
678         * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
679         also on platforms with !HAVE_UT_TYPE.
680         (proc_utmp_eq): Remove function.
681         (internal_getut_r, pututline_file): Call __utmp_equal instead.
683 2002-09-20  Bruno Haible  <bruno@clisp.org>
685         * abi-tags: Add support for FreeBSD with ABI OS value 3.
686         * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
688 2002-09-20  Roland McGrath  <roland@redhat.com>
690         * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
691         (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
692         terms of __WORDSIZE.
693         * sysdeps/x86_64/gmp-mparam.h: File removed.
694         * sysdeps/sparc/gmp-mparam.h: File removed.
695         * sysdeps/mips/mips64/gmp-mparam.h: File removed.
696         * sysdeps/ia64/gmp-mparam.h: File removed.
697         * sysdeps/alpha/gmp-mparam.h: File removed.
699 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
701         * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
702         load, so as to work on both 32-bit and 64-bit.  Remove unnecessary
703         casts.  Align __libc_stack_end to 8 bytes.
705 2002-09-20  Roland McGrath  <roland@redhat.com>
707         * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
708         instead of asm for lrintf, __lrintf aliases.
710         * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
711         int array for 32-/64-bit compatibility.
712         From Steven Munroe  <sjmunroe@us.ibm.com>.
714 2002-09-17  Bruno Haible  <bruno@clisp.org>
716         * sysdeps/generic/ifreq.h (__if_nextreq): New function.
717         * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
718         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
719         * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
720         for iterating through the list of interfaces.
721         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
723 2002-09-20  Roland McGrath  <roland@redhat.com>
725         * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
726         Reported by Bruno Haible <bruno@clisp.org>.
728         * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
730         * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
731         * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
732         isatty unmodified.  Reported by Bruno Haible <bruno@clisp.org>.
734 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
736         * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
737         * sysdeps/powerpc/bits/wordsize.h: New file.
738         * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
739         array to int array for 32-/64-bit compatibility.
741 2002-09-20  Roland McGrath  <roland@redhat.com>
743         * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
745         * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
746         Reported by Bruno Haible <bruno@clisp.org>.
748         * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
749         before doubling RQ_LEN.
750         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
751         Reported by Bruno Haible <bruno@clisp.org>.
753 2002-09-18  Bruno Haible  <bruno@clisp.org>
755         * login/logout.c (logout): Don't assume ut_time has the same size as
756         a time_t.
757         * login/logwtmp.c (logwtmp): Likewise.
759         * sysdeps/pthread/configure: New file, moved here from
760         linuxthreads/sysdeps/unix/sysv/linux/configure.
762 2002-09-19  Ulrich Drepper  <drepper@redhat.com>
764         * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
765         (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
766         Reported by Glen Nakamura <glen@imodulo.com>.
768 2002-09-19  Neal H. Walfield  <neal@cs.uml.edu>
770         * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
771         thread's sigstate data structure if it has been allocated.
773 2002-09-19  Roland McGrath  <roland@redhat.com>
775         * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
776         [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
778 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
780         * version.h (VERSION): Bump to 2.2.94.
782         * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
783         * sysdeps/powerpc/powerpc32/fpu/Dist: ...here.  New file.
784         * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
787         * sysdeps/i386/Makefile: Remove obsolete db2 rules.
789         * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
791         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
795 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
797         * sysdeps/wordsize-32/Makefile: New file.
798         * sysdeps/arm/Makefile: Removed.
799         * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
800         Don't add divdi3 here.
801         * sysdeps/m68k/Makefile: Likewise.
802         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
803         * sysdeps/sh/Makefile: Likewise.
804         * sysdeps/s390/s390-32/Makefile: Likewise.
806 2002-09-18  Roland McGrath  <roland@redhat.com>
808         * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
809         the __ctype_* compat symbols, so the relocs generated bind to the
810         right versioned global symbol in the shared object.
812         * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
813         from the value taken from the DT_VERSYM table.
814         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
815         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
816         (RESOLVE_GOTSYM): Likewise.
818         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
819         Add libc_hidden_def.
820         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
821         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
822         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
823         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
824         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
825         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
826         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
827         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
829 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
831         * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
833         * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
834         define sigaction and __sigaction as wrappers around
835         __libc_sigaction which rejects changing SIGCANCEL.
836         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
838         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
839         SETTID/CLEARTID.
841         * signal/allocrtsig.c: Move to...
842         * sysdeps/generic/allocrtsig.c: ...here.  New file.
844 2002-09-17  Jakub Jelinek  <jakub@redhat.com>
846         * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
848         * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
849         R_386_TLS_LE): Define.
850         (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
851         comments.
852         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
853         ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
854         (elf_machine_rel): Handle R_386_TLS_TPOFF.
855         (elf_machine_rela): Likewise.
856         Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
858 2002-09-17  Roland McGrath  <roland@redhat.com>
860         * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
861         file-specific variable override so it compiles properly when using
862         --with-headers.
864 2002-09-17  Steven Munroe  <sjmunroe@us.ibm.com>
866         Ported to PowerPC64 running Linux.
867         * sysdeps/powerpc/powerpc64/Dist: New file.
868         * sysdeps/powerpc/powerpc64/Implies: New file.
869         * sysdeps/powerpc/powerpc64/Makefile: New file.
870         * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
871         * sysdeps/powerpc/powerpc64/atomicity.h: New file.
872         * sysdeps/powerpc/powerpc64/backtrace.c: New file.
873         * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
874         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
875         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
876         * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
877         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
878         * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
879         * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
880         * sysdeps/powerpc/powerpc64/memset.S: New file.
881         * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
882         * sysdeps/powerpc/powerpc64/register-dump.h: New file.
883         * sysdeps/powerpc/powerpc64/setjmp.S: New file.
884         * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
885         * sysdeps/powerpc/powerpc64/strchr.S: New file.
886         * sysdeps/powerpc/powerpc64/strcmp.S: New file.
887         * sysdeps/powerpc/powerpc64/strcpy.S: New file.
888         * sysdeps/powerpc/powerpc64/strlen.S: New file.
889         * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
890         * sysdeps/powerpc/powerpc64/elf/start.S: New file.
891         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
892         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
893         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
895         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
901         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
902         (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
903         various gcc versions.  Dot names required for powerpc64.
904         [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
905         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
906         C_SYMBOL_DOT_NAME(alias).
907         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
908         original strong_alias macro.
909         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
910         C_SYMBOL_DOT_NAME(alias).
911         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
912         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
913         '.'ed name.
914         Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
915         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro.  Generate
916         .global C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
917         (hidden_def): Append hidden_dot_def1 macro to definition.
918         (hidden_ver): Append hidden_dot_def1 macro to definition.
919         (hidden_data_def): New macro.  Same as original hidden_def macro.
920         (hidden_data_ver): New macro.  Same as original hidden_ver macro.
921         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro.  Generate
922         .weakext C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
923         (hidden_weak): Append hidden_dot_weak1 macro to definition.
924         (hidden_data_weak): New macro.  Same as original hidden_weak macro.
925         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
926         Otherwise defined as __GI_name.
927         (libc_hidden_data_def): New macro.  Use hidden_data_def.
928         (libc_hidden_data_weak): New macro.  Use hidden_data_weak.
929         (libc_hidden_data_ver): New macro.  Use hidden_data_ver.
930         (rtld_hidden_data_def): New macro.  Use hidden_data_def.
931         (rtld_hidden_data_weak): New macro.  Use hidden_data_weak.
932         (rtld_hidden_data_ver): New macro.  Use hidden_data_ver.
933         (libm_hidden_data_def): New macro.  Use hidden_data_def.
934         (libm_hidden_data_weak): New macro.  Use hidden_data_weak.
935         (libm_hidden_data_ver): New macro.  Use hidden_data_ver.
936         * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
938 2002-09-17  Ulrich Drepper  <drepper@redhat.com>
940         * include/libc-symbols.h: Change *hidden_proto macros to accept
941         option parameters and pass those to the attribute definition.
942         * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
944         * include/unistd.h: Declare __libc_pause.
946         * include/sys/socket.h: Declare __libc_send, __libc_recv,
947         __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
949         * include/unistd.h: Declare __libc_fork.
951 2002-09-17  Roland McGrath  <roland@redhat.com>
953         * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
954         (passwd2des): Define it as an alias.
955         (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
957 2002-09-12  Bruno Haible  <bruno@clisp.org>
959         * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
960         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
962         * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
963         * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
965 2002-09-05  Steven Munroe  <sjmunroe@us.ibm.com>
967         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
968         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
969         __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
970         PowerPC64 does not have separate 64-bit syscalls.
972 2002-09-16  Roland McGrath  <roland@redhat.com>
974         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
976         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
977         New macro.
979         * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
981         * include/unistd.h: Uncomment libc_hidden_proto for _exit.
982         * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
983         * sysdeps/generic/_exit.c: Likewise.
985 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
987         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
989         * elf/rtld.c (struct dl_start_final_info): New.
990         (_dl_start_final): Change second argument to struct
991         dl_start_final_info *.  Set start_time from info.
992         (_dl_start): Remove bootstrap_map variable, add info.
993         Define bootstrap_map as macro.  If not DONT_USE_BOOTSTRAP_MAP,
994         store HP_TIMING_NOW result into info.start_time.
996 2002-09-16  Andreas Jaeger  <aj@suse.de>
998         * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
999         to _Exit.
1000         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
1002 2002-09-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1004         * sysdeps/powerpc/abort-instr.h: New file.
1006 2002-09-14  Ulrich Drepper  <drepper@redhat.com>
1008         * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
1009         comment.
1011         * test-skeleton.c (main): Provide more information in case waitpid
1012         fails.
1014         * include/unistd.h: Declare __exit_thread.
1015         * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
1016         Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
1017         * sysdeps/unix/sysv/linux/exit-thread.S: New file.
1018         * sysdeps/unix/sysv/linux/_exit.c: New file.
1019         * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
1020         * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
1021         Add exit-thread.
1023         * configure.in: Add dl_iterate_phdr to test using -nostdlib.
1025 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
1027         * sysdeps/i386/dl-machine.h (elf_machine_rel)
1028         (case R_386_TLS_DTPMOD32): Don't use addend.
1029         [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
1030         (elf_machine_rela): Add support for TLS relocs.
1032 2002-09-14  Roland McGrath  <roland@redhat.com>
1034         * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
1036 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
1038         * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
1039         specific asm macros for multiple percision integer math.
1041 2002-06-04  Steven Munroe  <sjmunroe@us.ibm.com>
1043         * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
1044         * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
1045         Remove per-machine conditionals for FLAG_* cases.
1046         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
1047         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
1048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
1050 2002-09-10  Alan Modra <amodra@bigpond.net.au>
1052         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
1053         defined in entry.h.
1054         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
1055         lowest address for profiling in  __monstartup call.
1056         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
1058 2002-09-14  Roland McGrath  <roland@redhat.com>
1060         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
1061         instead of __NR_pread.
1062         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
1063         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
1064         instead of __NR_pwrite.
1065         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
1067 2002-09-13  Roland McGrath  <roland@redhat.com>
1069         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
1071 2002-09-13  Andreas Jaeger  <aj@suse.de>
1073         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
1074         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
1076 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
1078         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
1080 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
1082         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
1083         reading the headers.
1085 2002-09-12  Roland McGrath  <roland@redhat.com>
1087         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
1088         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
1089         find the ELF header.
1091         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
1092         executable if needed, in case it's actually a shared object.
1094 2002-09-11  Roland McGrath  <roland@redhat.com>
1096         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
1097         l_map_start to adjust l_tls_initimage.
1099         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
1100         when using h_errno and it's not set to NETDB_INTERNAL.
1101         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
1103         * Makefile ($(common-objpfx)testrun.sh): New target.
1104         (others): Depend on it.
1105         (postclean-generated): Append it.
1107         * nss/bug-erange.c: New file.
1108         * nss/Makefile (tests): Add it.
1110         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
1111         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
1113         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
1114         strncmp, keeps the code smaller for a non-performance-critical case.
1116         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
1117         no longer wrongly matches arbitrary prefixes of NAME.
1118         Reported by Jakub Jelinek <jakub@redhat.com>.
1120 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
1122         * posix/bug-regex11.c (tests): New array.
1123         (main): Rewritten to run more different tests.
1125 2002-09-10  Roland McGrath  <roland@redhat.com>
1127         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
1128         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
1129         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
1131         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
1132         well so we don't get it declared by include/math.h's hidden_proto.
1133         Then do hidden_proto for __isnanf locally so hidden_def works right.
1135         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
1136         a cast to turn nl_langinfo return value into an integer.
1138 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
1140         * posix/regexec.c (build_trtable): Fix the destination of
1141         newline to prevent wrong states from overwriting.
1142         Append break statements to optimization.
1144 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
1146         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
1147         (build_range_exp): Add castings to strlen invocations.
1148         (build_collating_symbol): Restore the type of characters from "char"
1149         to "unsigned char", and supplement castings.
1150         (build_collating_symbol): Likewise.
1151         (build_equiv_class): Likewise.
1152         (build_charclass): Likewise.
1153         (seek_collating_symbol_entry): Likewise.
1154         (parse_bracket_exp): Likewise.
1155         (build_word_op): Supplement a casting.
1156         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
1157         (re_string_allocate): Fix castings.
1158         (re_string_construct): Likewise.
1159         (re_string_construct_common): Likewise.
1160         (re_string_realloc_buffers): Likewise.
1161         (build_wcs_buffer): Likewise.
1162         (build_wcs_upper_buffer): Likewise.
1163         (re_string_skip_chars): Likewise.
1164         (re_string_reconstruct): Likewise.
1165         * posix/regex_internal.h: Restore the type of characters in
1166         re_string_t and bracket_elem_t from "char" to "unsigned char".
1167         (re_string_elem_size_at): Fix castings.
1168         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
1169         (transit_state_bkref_loop): Restore the type of characters from
1170         "char" to "unsigned char", and append a cast to "char*" pointer in
1171         array subscript.
1172         (check_node_accept_bytes): Likewise.
1173         (find_collation_sequence_value): Likewise.
1175 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
1177         * sysdeps/mips/memcpy.S: New file.
1178         * sysdeps/mips/memset.S: New file.
1179         * sysdeps/mips/fpu/e_sqrt.c:  New file.
1180         * sysdeps/mips/fpu/e_sqrtf.c: New file.
1182         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
1183         functional before. Also removed all SHLIB_COMPAT stuff.
1184         * fpu/fegetenv.c: Likewise.
1185         * fpu/fesetenv.c:: Likewise.
1186         * fpu/feupdateenv.c: Likewise.
1187         * fpu/fgetexcptflg.c: Likewise.
1188         * fpu/fraiseexcpt.c: Likewise.
1190         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
1192 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
1194         * include/math.h (__finite_internal, __finitef_internal,
1195         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
1196         (isfinite): Remove.
1197         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
1198         __isinfl, __isnanl): Add hidden_proto.
1199         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
1200         libm_hidden_proto.
1201         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
1202         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
1203         __is{inf,nan} calls.
1204         * stdio-common/printf_size.c (printf_size): Likewise.
1205         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
1206         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
1207         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
1208         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
1209         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
1210         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
1211         (__finite): Add hidden_def.
1212         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
1213         (__finitef): Add hidden_def.
1214         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
1215         (__finitel): Add hidden_def.
1216         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
1217         hidden_def.
1218         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
1219         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
1220         libm_hidden_def.
1221         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
1222         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
1223         hidden_def.
1224         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
1225         (__isinfl): Remove INTDEF.
1226         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
1227         hidden_def.
1228         (__isnanl): Remove INTDEF.
1229         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
1230         libm_hidden_def.
1231         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
1232         instead of sin and cos.
1233         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
1234         Add hidden_def.
1235         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
1236         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
1237         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
1238         libm_hidden_def.
1239         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
1240         Add hidden_def.
1241         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
1242         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
1243         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
1244         libm_hidden_def.
1245         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
1246         libm_hidden_def.
1247         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
1248         Add hidden_def.
1249         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
1250         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
1251         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
1252         libm_hidden_def.
1253         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
1254         __finitel_internal): Remove aliases.
1255         (__finite, __finitef, __finitel): Add hidden_def.
1256         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
1257         __isnanl_internal): Remove aliases.
1258         (__isnan, __isnanf, __isnanl): Add hidden_def.
1259         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
1260         __isinfl_internal): Remove aliases.
1261         (__isinf, __isinff, __isinfl): Add hidden_def.
1262         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
1263         __fpclassifyl): Add libm_hidden_def.
1264         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
1265         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
1266         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
1267         (hidden_defx): Define and use.
1268         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
1269         libm_hidden_def.
1270         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
1271         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
1272         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
1273         Remove INTDEF.
1274         (__isnan, __isnanf): Add hidden_def.
1275         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
1276         (__finitel): Add libm_hidden_def.
1277         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
1279         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
1280         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
1281         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1282         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
1283         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1284         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
1285         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
1286         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
1287         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1288         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
1289         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1290         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
1291         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1292         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
1293         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1294         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
1295         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1296         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
1297         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1298         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
1299         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1300         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
1301         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1302         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
1303         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1304         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
1305         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1307 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
1309         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
1311 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
1313         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
1314         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
1316 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
1318         * string/stratcliff.c: Some more strncpy tests.
1319         Patch by Daniel Jacobowitz <drow@mvista.com>.
1321 2002-09-08  Roland McGrath  <roland@redhat.com>
1323         * resolv/resolv.h: Include <sys/types.h> for u_long even in
1324         the [__need_res_state] case.
1325         Reported by Bruno Haible <bruno@clisp.org>.
1327 2002-09-04  Bruno Haible  <bruno@clisp.org>
1329         * sysdeps/generic/bits/ustat.h: Comment fix.
1330         * io/sys/sendfile.h: Comment fix.
1331         * sysdeps/posix/pread.c: Comment fix.
1332         * sysdeps/posix/pread64.c: Comment fix.
1333         * sysdeps/posix/pwrite.c: Comment fix.
1334         * sysdeps/posix/pwrite64.c: Comment fix.
1336 2002-09-06  Roland McGrath  <roland@redhat.com>
1338         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
1339         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
1340         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
1341         (_UTSNAME_MACHINE_LENGTH): Likewise.
1342         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
1344 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
1346         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
1347         test for filesystem type name of mount points.
1349         * include/errno.h: Use errno definition with __thread for now only
1350         in libc and ld.so.
1352         * test-skeleton.c (main): Improve error message for unexpected
1353         signal case.
1355 2002-09-05  Roland McGrath  <roland@redhat.com>
1357         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
1358         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1360 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
1362         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
1363         case of failure.
1365 2002-09-04  Bruno Haible  <bruno@clisp.org>
1367         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
1368         sigset_get_old_mask): Turn into inline functions.
1369         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
1370         sigset_get_old_mask): Likewise.
1371         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
1372         sigset_get_old_mask): Likewise.
1373         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
1374         syntax.
1376         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
1378         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
1379         default definitions.
1380         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
1381         _sys_nerr_internal instead of _sys_nerr.
1383         * nscd/connections.c (handle_request): Declare CALLER inside #if.
1385 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
1387         * sysdeps/powerpc/__longjmp.S: Moved to...
1388         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
1389         * sysdeps/powerpc/add_n.S: Moved to...
1390         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
1391         * sysdeps/powerpc/addmul_1.S: Moved to...
1392         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
1393         * sysdeps/powerpc/atomicity.h: Moved to...
1394         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
1395         * sysdeps/powerpc/backtrace.c: Moved to...
1396         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
1397         * sysdeps/powerpc/bp-asm.h: Moved to...
1398         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
1399         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
1400         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
1401         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
1402         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
1403         * sysdeps/powerpc/dl-machine.c: Moved to...
1404         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
1405         * sysdeps/powerpc/dl-machine.h: Moved to...
1406         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
1407         * sysdeps/powerpc/dl-start.S: Moved to...
1408         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
1409         * sysdeps/powerpc/gprrest0.S: Moved to...
1410         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
1411         * sysdeps/powerpc/gprrest1.S: Moved to...
1412         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
1413         * sysdeps/powerpc/gprsave0.S: Moved to...
1414         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
1415         * sysdeps/powerpc/gprsave1.S: Moved to...
1416         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
1417         * sysdeps/powerpc/lshift.S: Moved to...
1418         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
1419         * sysdeps/powerpc/memset.S: Moved to...
1420         * sysdeps/powerpc/powerpc32/memset.S: ...here.
1421         * sysdeps/powerpc/mul_1.S: Moved to...
1422         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
1423         * sysdeps/powerpc/ppc-mcount.S: Moved to...
1424         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
1425         * sysdeps/powerpc/register-dump.h: Moved to...
1426         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
1427         * sysdeps/powerpc/rshift.S: Moved to...
1428         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
1429         * sysdeps/powerpc/setjmp.S: Moved to...
1430         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
1431         * sysdeps/powerpc/stpcpy.S: Moved to...
1432         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
1433         * sysdeps/powerpc/strchr.S: Moved to...
1434         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
1435         * sysdeps/powerpc/strcmp.S: Moved to...
1436         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
1437         * sysdeps/powerpc/strcpy.S: Moved to...
1438         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
1439         * sysdeps/powerpc/strlen.S: Moved to...
1440         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
1441         * sysdeps/powerpc/sub_n.S: Moved to...
1442         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
1443         * sysdeps/powerpc/submul_1.S: Moved to...
1444         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
1445         * sysdeps/powerpc/elf/bzero.S: Moved to...
1446         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
1447         * sysdeps/powerpc/elf/start.S: Moved to...
1448         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
1449         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
1450         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
1451         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
1452         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
1453         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
1454         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
1455         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
1456         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
1457         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
1458         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
1459         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
1460         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
1461         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
1462         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
1463         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
1464         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
1465         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
1466         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
1467         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
1468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
1469         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
1470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
1471         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
1472         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
1473         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
1474         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
1475         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
1476         powerpc/powerpc64.
1478 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
1480         * FAQ.in: Add powerpc64 to supported targets list. Also state the
1481         minimum gcc version is 3.2
1482         * README: Add powerpc64 to supported targets list.
1483         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
1484         Add powerpc64 and machine=powerpc/powerpc64.
1485         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
1486         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
1487         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
1488         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
1489         * sysdeps/powerpc/powerpc32/Dist: New file.
1490         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
1491         * sysdeps/powerpc/powerpc32/Implies: New file.
1492         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
1493         ($(with-fp) = no): Move test to powerpc32/Makefile.
1494         ($(subdir) = misc): Move to powerpc32/Makefile.
1495         ($(build-shared) = yes): Move to powerpc32/Makefile.
1496         ($(subdir) = csu): Move to powerpc32/Makefile.
1497         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
1498         * sysdeps/powerpc/powerpc32/Makefile: New file.
1499         * sysdeps/powerpc/Versions: Remove libgcc functions.
1500         * sysdeps/powerpc/powerpc32/Versions: New file.
1501         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
1502         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
1503         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
1504         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
1505         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
1506         ($machine): Add powerpc/powerpc64 to if ... | for
1507         libc_cv_slibdir=/libc64.
1508         (powerpc*): Set ldd_rewrite_script.
1509         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
1510         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
1511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
1512         Add clone.S.
1513         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
1514         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
1515         functions.  Remove GLIBC_2.2 functions except getrlimit and
1516         setrlimit.  Moved them to ...
1517         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
1519 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
1521         * libio/tst-atime.c: Include <errno.h>.
1522         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
1524 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
1526         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
1527         warnings of some compilers.
1528         (build_collating_symbol): Change the type of characters from
1529         "unsigned char" to "char", and append a cast to "char*" pointer in
1530         array subscript.
1531         (build_collating_symbol): Likewise.
1532         (build_equiv_class): Likewise.
1533         (build_charclass): Likewise.
1534         (re_compile_pattern): Remove incorrect cast.
1535         (re_compile_fastmap_iter): Change the type of characters from
1536         "unsigned char" to "char", and append a cast to "char*" pointer
1537         in array subscript.
1538         (parse_bracket_exp): Likewise.
1539         * posix/regex_internal.c (re_string_construct_common): Likewise.
1540         (re_string_allocate): Likewise.
1541         (re_string_construct): Likewise.
1542         (re_string_realloc_buffers): Likewise.
1543         (build_wcs_buffer): Likewise.
1544         (re_string_reconstruct): Likewise.
1545         * posix/regex_internal.h: Change the type of characters in
1546         re_string_t and bracket_elem_t from "unsigned char" to "char".
1547         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
1548         warnings of some compilers.
1549         (transit_state_bkref_loop): Change the type of characters from
1550         "unsigned char" to "char", and append a cast to "char*" pointer in
1551         array subscript.
1552         (check_node_accept_bytes): Likewise.
1553         (find_collation_sequence_value): Likewise.
1555 2002-09-04  Roland McGrath  <roland@redhat.com>
1557         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
1558         from 1024 to 65536, to avoid buffer overrun.
1560 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
1562         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
1564 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
1566         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
1567         for filesystem.
1569 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
1571         * posix/bug-regex11.c: New test.
1572         * posix/Makefile (tests): Add bug-regex11.
1574 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
1576         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
1577         newlocale.
1579 2002-09-02  Roland McGrath  <roland@redhat.com>
1581         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
1582         __pthread_initialize_minimal and __libc_check_standard_fds to
1583         match the generic version.
1585         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
1586         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
1588         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
1589         warnings on platorms where char is unsigned.
1591 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
1593         * version.h (VERSION): Bump to 2.2.93.
1595         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
1597 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
1599         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
1600         as relocated.
1602 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
1604         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
1606 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
1608         * locale/localeinfo.h (struct locale_data): Add private.ctype.
1609         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
1610         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
1611         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
1612         (__wcsmbs_load_conv): Remove const from argument.
1613         (_nl_cleanup_ctype): New proto.
1614         (get_gconv_fcts): New function.
1615         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
1616         (__wcsmbs_to_wc): Rename back to...
1617         (to_wc): ... this.
1618         (__wcsmbs_gconv_fcts): Rename to...
1619         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
1620         (lock): Removed.
1621         (__libc_setlocale_lock): New extern.
1622         (__wcsmbs_load_conv): Remove const from argument.
1623         Initialize new_category->private.ctype instead of a global
1624         variable.
1625         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
1626         update_function_ptrs.  No locking is necessary.
1627         (_nl_cleanup_ctype): New function.
1628         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
1629         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
1630         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1631         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
1632         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
1633         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
1634         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
1635         * wcsmbs/wctob.c (wctob): Likewise.
1636         * stdlib/mblen.c (mblen): Likewise.
1637         * stdlib/mbtowc.c (mbtowc): Likewise.
1638         * stdlib/wctomb.c (wctomb): Likewise.
1639         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
1640         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
1641         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
1642         Removed.
1644 2002-09-02  Roland McGrath  <roland@frob.com>
1646         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
1648 2002-09-01  Roland McGrath  <roland@redhat.com>
1650         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
1651         Variable declarations removed.
1652         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
1653         these functions to replace them.
1654         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
1655         functions plus an indirection rather than the old global variables.
1656         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
1657         Macros removed.
1658         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
1659         inline functions.
1660         * ctype/ctype-info.c: Revert last reversion back the other way.
1661         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
1662         Define real function versions of include/ctype.h inlines here.
1663         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
1664         __ctype_tolower_loc, __ctype_toupper_loc.
1665         * locale/lc-ctype.c: Revert last reversion back the other way.
1666         (_nl_postload_ctype): If current thread uses the global locale,
1667         update its tsd vars.
1668         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
1669         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
1670         CTYPE_TOLOWER, CTYPE_TOUPPER.
1672         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
1673         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
1674         from __libc_tsd_threadvar_location.
1675         (__libc_tsd_set, __libc_tsd_get): Update uses.
1677 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
1679         * ctype/ctype.h: Undo the patch before the last one.  Put back the
1680         macro definitions for the standard functions to access the
1681         classification and mapping arrays.
1682         * include/ctype.h: Partly revert last patch.  Move the macro
1683         definitions for the exported functions back to the public header.
1684         #undef all the macros defined here before redefining.
1685         * ctype/ctype-info.c: Revert last patch.
1686         * locale/lc-ctype.c: Revert last patch.
1688         * ctype/Makefile (routines): Add isctype.
1689         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
1690         * ctype/ctype.h: Add declaration of isctype.
1691         * include/ctype.h: Declare __isctype.
1692         * ctype/isctype.c: New file.
1694 2002-09-01  Roland McGrath  <roland@redhat.com>
1696         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
1697         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1699         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1701         * locale/findlocale.c (_nl_remove_locale): Don't search in
1702         _nl_locale_file_list if DATA->alloc is ld_archive.
1703         Use _nl_unload_locale to do the rest of the work.
1705         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1706         of new structure to UNDELETABLE.
1708         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1709         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1710         towlower, towupper): Macros removed.
1711         * ctype/ctype.h (__tobody): Put parens around macro argument.
1712         (__isctype): Macro removed.
1713         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1714         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1715         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1716         tolower, toupper): Macros and inlines removed.
1717         * include/ctype.h [! NOT_IN_libc]
1718         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1719         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1720         tolower, toupper): Define here instead, using _NL_CURRENT.
1721         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1722         using _NL_CURRENT.
1723         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1724         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1725         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1726         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1727         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1728         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1729         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
1730         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1731         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1732         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1733         (ISSORTMASK): Update use.
1734         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1735         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1736         (_nss_files_getENTNAME_r): Likewise.
1737         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1738         Likewise.
1740         * Makerules (all-nonlib): Renamed from all-tests.
1741         Include $(others) here too.
1742         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1743         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1744         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1745         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1746         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
1747         the program modules via cppflags-iterator.mk.
1748         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1749         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1751 2002-08-31  Roland McGrath  <roland@redhat.com>
1753         * posix/tst-getconf.sh: If no third arg, work with static linking.
1755         * locale/categories.def (LC_TIME): No more _nl_postload_time.
1757         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1758         [_NL_CURRENT_INDIRECT].
1760 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1762         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1764 2002-08-31  Roland McGrath  <roland@redhat.com>
1766         * locale/newlocale.c (__newlocale): Don't use strdup for names.
1767         Instead, make the single allocation of the structure larger to hold
1768         the name strings.
1769         * locale/duplocale.c (__duplocale): Don't strdup names individually.
1770         Instead, calculate size for a single allocation and copy into it.
1771         * locale/freelocale.c (__freelocale): Don't free names individually.
1773         * locale/newlocale.c (__newlocale): Don't leak old data or names.
1775         * locale/xlocale.h (__locale_struct): Move __names member last,
1776         for binary compatibility.
1778         * locale/duplocale.c (__duplocale): Free names from the right array.
1780         * locale/uselocale.c (__uselocale): Return previous locale when
1781         setting a new one.
1783         * locale/newlocale.c: Commit changes from 2002-08-30
1784         batch where I failed to commit this file:
1785         (__newlocale): Fill in __names array.
1787 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1789         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1790         errlist-compat.c if versioning==yes.
1792 2002-08-31  Andreas Jaeger  <aj@suse.de>
1794         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1795         external functions with hidden attribute.
1796         (elf_machine_rela): Optimize.
1798         * sysdeps/x86_64/memset.S: New file.
1799         * sysdeps/x86_64/bzero.S: New file.
1800         * sysdeps/x86_64/stpcpy.S: New file.
1801         * sysdeps/x86_64/strcat.S: New file.
1802         * sysdeps/x86_64/strchr.S: New file.
1803         * sysdeps/x86_64/strcpy.S: New file.
1804         * sysdeps/x86_64/strcspn.S: New file.
1805         * sysdeps/x86_64/strlen.S: New file.
1806         * sysdeps/x86_64/strpbrk.S: New file.
1807         * sysdeps/x86_64/strspn.S: New file.
1808         * sysdeps/x86_64/strcmp.S: New file.
1809         * sysdeps/x86_64/strtok_r.S: New file.
1810         * sysdeps/x86_64/strtok.S: New file.
1811         * sysdeps/x86_64/memcpy.S: New file.
1812         * sysdeps/x86_64/mempcpy.S: New file.
1814         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1816         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1818 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1820         * stdio-common/Makefile (generated): Add errlist-compat.c.
1822         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1824         * locale/localeinfo.h: Pretty printing.
1826         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1827         form_number handling.
1829 2002-08-31  Andreas Jaeger  <aj@suse.de>
1831         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1832         double tests.
1834         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1835         __start_context.
1837         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1839         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1841         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1842         registers used for passing args.
1844         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1845         all needed registers.
1847         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1848         registers.
1850         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1851         registers.
1853 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
1855         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1856         always_inline attribute.
1858 2002-08-30  Roland McGrath  <roland@redhat.com>
1860         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1861         presume it's the stub and bail without error.
1863         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1864         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1866         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1868         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1869         macros replace the i686 versions for 64-bit mode.
1871         * locale/duplocale.c: Include <string.h>.
1873         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1874         [_LIBC] (category_to_name): Don't define the function.  Instead
1875         define a macro using _nl_category_names.
1877         * locale/xlocale.h (struct __locale_struct): New member `__names'.
1878         * locale/xlocale.c (_nl_C_locobj): Update initializer.
1879         * locale/global-locale.c (_nl_global_locale): Likewise.
1880         * locale/duplocale.c (__duplocale): strdup __names elements.
1881         * locale/freelocale.c (__freelocale): Free __names elements.
1882         * locale/localename.c (_nl_current_names): Variable removed.
1883         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1884         * locale/localeinfo.h (_nl_current_names): Removed decl.
1885         * locale/setlocale.c: Use _nl_global_locale->__names in place of
1886         _nl_current_names throughout.
1888         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1890         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1891         and sys_nerr in the output file.
1893         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1894         * scripts/cpp: Just use the environment variable.
1896         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1897         * libio/tst-mmap-offend.c (do_test): Likewise.
1898         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1899         * libio/tst-mmap-eofsync.c (do_test): Likewise.
1900         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1902         * locale/localename.c: If the current locale is the global locale, use
1903         _nl_current_names; otherwise use the locale object.
1905 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1907         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1908         'm' to enable mmap I/O.
1909         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
1910         former wasn't used (anymore?).
1911         (_IO_FLAGS2_MMAP): New define.
1912         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1913         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1914         _IO_FLAGS2_MMAP bit is set.
1915         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1916         Enable mmap-using mode only if 'm' was set.
1918 2002-08-29  Roland McGrath  <roland@frob.com>
1920         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1922         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1923         Change argument type from int to intptr_t.
1925         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1926         initializer on [! _HURD_THREADVAR_H] (bad kludge).
1927         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1928         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1929         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
1931         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1933         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1935         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1937         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1938         * assert/assert-perr.c: Add libc_hidden_def.
1939         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1941         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1942         found at all.
1943         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
1944         sys_errlist stuff to ...
1945         * sysdeps/unix/sysv/linux/Versions: ... here.
1947         * mach/mach.h: Include <features.h>.
1949 2002-08-29  Roland McGrath  <roland@redhat.com>
1951         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1952         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1953         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1955         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1957         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1958         (norm_add_slashes): alloca -> __alloca
1960 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
1962         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1963         string_malloced, it is unlikely to be set.
1964         Only call free with non-NULL workspace.
1965         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1966         -mcpu=ultrasparc, not only tune for it.
1967         (ASFLAGS*): Set unconditionally.
1969         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1970         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
1971         p_vaddr/p_offset when computing LOADADDR.
1973 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1975         * version.h (VERSION): Bump to 2.2.92.
1977         * time/Makefile (tst-ftime_l-ENV): New variable.
1979         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1981         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1982         <U017A>, <U017D> and <U0179>. Add missing mappings.
1983         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1985         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1986         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
1987         (struct tostruct): Use ACRINDEX as type for link field.
1988         (statuc gmonparam): Likewise for froms.
1989         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1990         kcount and froms.
1991         (write_call_graph): Use correct type for from_index and to_index.
1992         * gmon/mcount.c: Use correct types for frompcindex and toindex
1993         variables.
1994         Patches by Dan Kegel <dank@kegel.com>.
1996         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1997         canonical name.
1999         * time/strptime.c (ISSPACE): New #define.  Use isspace or
2000         __isspace_l.  Replace calls to isspace.
2001         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
2003 2002-08-29  Roland McGrath  <roland@redhat.com>
2005         * string/tst-strxfrm.c: Remove __ from function names.
2007 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2009         * include/wchar.h: Declare __mbsrtowcs_l.
2010         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
2011         * wcsmbs/mbsrtowcs.c: Add support for compilation with
2012         USE_IN_EXTENDED_LOCALE_MODEL.
2013         * wcsmbs/mbsrtowcs_l: New file.
2014         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
2015         define as static.  Change all uses.
2016         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
2017         Change all callers.
2018         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
2019         * time/strftime.c: When translating for the extended locale model
2020         use the _l functions.
2021         * time/Makefile (tests): Add tst-ftime_l.
2022         * time/tst-ftime_l.c: New file.
2024 2002-08-28  Roland McGrath  <roland@redhat.com>
2026         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
2027         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
2028         from _nl_find_locale ok if for _nl_C_name.
2030         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
2031         iterator to refer to each category's _nl_current_LC_FOO symbol, so
2032         we know they are all linked in.
2034         * NEWS: Added 2.2.6 text from 2.2 branch version.
2036         * time/strptime.c (strptime_internal): Remove spurious const.
2038         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
2039         _nl_select_era_entry): Moved to ...
2040         * time/era.c: ... here, new file.
2041         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
2042         Add internal_function to definitions.  Take an additional argument
2043         giving the `struct locale_data *' to use.
2044         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
2045         _nl_parse_alt_digit): Moved to ...
2046         * time/alt_digit.c: ... here, new file.
2047         * time/lc-time-cleanup.c: New file.
2048         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
2049         * locale/localeinfo.h (_nl_postload_time): Remove decl.
2050         (_nl_cleanup_time): Declare it.
2051         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
2052         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
2053         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
2054         * time/strftime.c: Pass locale data to helper functions.
2055         * time/strptime.c: Likewise.
2057         * locale/localeinfo.h (struct locale_data): New member `private'
2058         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
2059         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
2060         * locale/C-collate.c: Update initializer.
2061         * locale/C-identification.c: Likewise.
2062         * locale/C-measurement.c: Likewise.
2063         * locale/C-telephone.c: Likewise.
2064         * locale/C-address.c: Likewise.
2065         * locale/C-name.c: Likewise.
2066         * locale/C-paper.c: Likewise.
2067         * locale/C-time.c: Likewise.
2068         * locale/C-numeric.c: Likewise.
2069         * locale/C-monetary.c: Likewise.
2070         * locale/C-messages.c : Likewise.
2071         * locale/C-ctype.c: Likewise.
2073         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
2074         Redefine this too.
2076 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2078         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
2079         (_rtld_global): Use it.
2081         * sysdeps/gnu/Dist: Remove errlist-compat.c.
2082         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
2083         object directory.  Pass all Versions files to the awk script.
2084         * sysdeps/gnu/errlist-compat.c: Removed.
2085         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
2086         first Versions file in the search path which has them.
2087         Allow multiple errlist symbol versions to have the same count of
2088         errors.
2089         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
2090         of "errlist-compat.c".
2091         * sysdeps/gnu/errlist.c: Regenerated.
2092         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
2093         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
2094         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2095         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
2096         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
2097         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
2098         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
2099         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
2100         ECANCELLED if not defined by kernel headers.
2101         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
2102         already defined by kernel headers.
2103         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
2104         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
2105         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
2106         is a macro.
2107         * Versions.def (GLIBC_2.3) [librt]: Add.
2109         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
2111 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2113         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
2114         missing comma to .type directive.
2116 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2118         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
2119         unconditionally.
2120         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
2121         check.
2122         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
2124 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2126         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
2127         check to close_and_out close.  Replace return NULL statements where
2128         fd might be >= 0 with goto close_and_out.  Close the file descriptor
2129         when it is no longer needed.
2131 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2133         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
2134         string constants.
2135         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2136         * sysdeps/arm/dl-machine.h: Likewise.
2137         * sysdeps/cris/dl-machine.h: Likewise.
2138         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
2139         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
2141 2002-08-28  Roland McGrath  <roland@redhat.com>
2143         * Makeconfig (default_cflags): Revert unintended change.
2145 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2147         * version.h (VERSION): Bump to 2.2.91.
2149         * configure.in: Disable TLS support by default for now.
2151         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
2153         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
2154         warnings.
2156         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
2158         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
2159         fprintf/fwprintf calls.
2161 2002-08-28  Roland McGrath  <roland@redhat.com>
2163         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
2164         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
2166         * locale/setlocale.c: Declare postload functions weak.
2168         * elf/tst-tls1-static.c: New file.
2169         * elf/tst-tls2-static.c: New file.
2170         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
2172         Make uselocale support static linking.
2173         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
2174         This file again just defines _nl_C_locobj.
2175         (_nl_C_locobj): Use a categories.def iterator in the initializer.
2176         * locale/global-locale.c: New file.  Define _nl_global_locale here,
2177         using all weak references in the initializer.
2178         * locale/Makefile (aux): Add global-locale.
2179         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
2180         these unconditional, along with the tsd decl.
2181         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
2182         Define it under these conditions.
2183         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
2184         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
2185         `extern __thread struct locale_data *const *'.
2186         [NL_CURRENT_INDIRECT]
2187         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
2188         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
2189         the thread variable _nl_current_LC_FOO and also a special absolute
2190         symbol _nl_current_LC_FOO_used.
2191         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
2192         Set each _nl_current_LC_FOO symbol to point into the new locale,
2193         using weak references to test if _nl_current_LC_FOO_used was linked in.
2194         * locale/setlocale.c [! SHARED]: Replace this conditional ...
2195         [NL_CURRENT_INDIRECT]: ... with this one.
2196         (_nl_current, _nl_C): Variables removed.
2197         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
2198         weak references to _nl_current_LC_FOO_used.
2199         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
2200         (free_category): New function, broken out of ...
2201         (free_mem): ... here.  Call that.
2202         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
2203         instead of a loop.
2205         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
2206         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
2207         it is already absolute.
2209         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
2210         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
2211         [$(build-static) = yes] (tests-static): New variable.
2212         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
2214 2002-08-26  Christoph Hellwig  <hch@lst.de>
2216         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
2217         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
2219 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2221         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
2223         * sysdeps/s390/Dist: Add bits/link.h.
2225         * sysdeps/sh/Dist: New file.
2227         * sysdeps/ia64/Dist: Add ia64libgcc.S.
2229         * sysdeps/wordsize-32/Dist: New file.
2231         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
2232         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
2233         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
2235         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
2236         sys/personality.h.
2238         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
2239         sparc/dl-brk.S.
2241         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
2243         * sysdeps/unix/bsd/sun/Dist: New file.
2245         * sysdeps/unix/bsd/osf/Dist: New file.
2247         * sysdeps/unix/bsd/hp/Dist: New file.
2249         * sysdeps/unix/arm/Dist: New file.
2251         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
2253         * sysdeps/mach/hurd/Dist: Add set-init.c.
2255         * sysdeps/i386/Dist: Add bits/link.h.
2257         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
2259         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
2261         * locale/Makefile (distribute): Add hashval.h.
2263         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
2265         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
2267         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
2268         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
2269         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
2270         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
2271         implementations.
2272         * libio/stdio.h: Likewise.
2273         * locale/locale.h: Likewise.
2274         * math/math.h: Likewise.
2275         * math/bits/mathcalls.h: Likewise.
2276         * setjmp/setjmp.h: Likewise.
2277         * signal/signal.h: Likewise.
2278         * stdlib/stdlib.h: Likewise.
2279         * string/string.h: Likewise.
2280         * time/time.h: Likewise.
2281         * wcsmbs/wchar.h: Likewise.
2282         * wctype/wctype.h: Likewise.
2284 2002-08-28  Roland McGrath  <roland@redhat.com>
2286         * locale/tst-C-locale.c (run_test): Remove __ from function names.
2288 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2289             Roland McGrath <roland@redhat.com>
2291         * locale/hashval.h (compute_hashval): Use prototype defn.
2292         (hashval_t): New macro, defined to unsigned long int
2293         if not already defined.
2294         (compute_hashval): Return hashval_t instead of unsigned long int.
2295         * locale/loadarchive.c (hashval_t): New macro.
2296         * locale/programs/locarchive.c: Include hashval.h directly instead
2297         of simple-hash.h.
2298         (compute_hashval, hashval_t): Define these macros first.
2299         (insert_name): Use archive_hashval instead of compute_hashval.
2300         (add_locale, delete_locales_from_archive): Likewise.
2302 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2304         * locale/programs/locarchive.c (insert_name): Suppress warnings about
2305         hash collisions if be_quiet.
2307 2002-08-27  Roland McGrath  <roland@redhat.com>
2309         * locale/locale.h (__newlocale, __duplocale, __freelocale,
2310         __uselocale): Don't declare these any more.
2311         * include/locale.h (__uselocale): Declare here instead, using __typeof.
2313         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
2314         and treat it as an EOF return.
2315         * sysdeps/unix/readdir_r.c: Likewise.
2317         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
2318         From Alexandre Oliva <aoliva@redhat.com>.
2319         * sysdeps/gnu/errlist-compat.c: Regenerated.
2321 2002-08-27  Brian Youmans  <3diff@gnu.org>
2323         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
2324         wording at request of copyright holder Stephen Moshier.
2325         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2326         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2327         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2328         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2329         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2330         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2331         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2332         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2333         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2334         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2335         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2336         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2337         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2338         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2340 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2342         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
2343         * ctype/ctype-extn.c (isblank_l): Add weak alias.
2344         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
2345         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
2346         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
2347         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
2348         * wctype/iswctype_l.c (iswctype_l): Likewise.
2350 2002-08-27  Roland McGrath  <roland@redhat.com>
2352         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
2354         * ctype/ctype.h (__exctype_l): Don't declare __ name.
2355         * stdlib/stdlib.h: Don't declare __*_l names.
2356         * include/stdlib.h: Declare them here instead.
2357         * include/string.h: Don't declare __*_l names.
2358         * string/string.h: Declare them here instead.
2359         * time/time.h: Don't declare __*_l names.
2360         * include/time.h: Declare them here instead.
2361         * wcsmbs/wchar.h: Don't declare __*_l names.
2362         * include/wchar.h: Declare them here instead.
2363         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
2364         Don't declare __*_l names.
2365         * include/wctype.h: Declare them here instead.
2366         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
2367         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
2368         * locale/langinfo.h: Don't declare __nl_langinfo_l.
2369         * include/langinfo.h: Declare it here with __typeof.
2371         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
2372         instead, taking an extra __locale_t argument.
2373         * time/Makefile (routines): Add strptime_l.
2374         * time/time.h (__strptime_l, strptime_l): Declare them.
2375         * time/strptime_l.c: New file.
2377         * time/time.h (__strftime_l, strftime_l): Declare them.
2378         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
2379         * time/strftime_l.c: New file.
2380         * time/wcsftime_l.c: New file.
2381         * time/Makefile (routines): Add strftime_l, wcsftime_l.
2382         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
2383         strftime_l, wcsftime_l.
2384         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
2385         or __wcsftime_l instead, taking an extra __locale_t argument.
2387         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
2388         (libc: GLIBC_2.3): ... here.
2390 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
2392         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
2394         * Makefile (distribute): Add LICENSES.
2396         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
2397         sys/debugreg.h.
2399         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
2401         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
2403         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
2405         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
2407         * sysdeps/mach/hurd/alpha/Dist: New file.
2409         * sysdeps/arm/Dist: Add bits/link.h.
2411         * sunrpc/Makefile: Distribute thrsvc.
2413         * stdio-common/Makefile: Remove more left-overs from old stdio.
2415         * include/linewrap.h: Removed.
2417         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
2419         * intl/Makefile (distribute): Add plural-eval.c.
2421 2002-08-27  Roland McGrath  <roland@redhat.com>
2423         * manual/sysinfo.texi (Mount Information): Correct file name to macro
2424         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
2425         Say mtab is in either /var/run or /etc.
2427 2002-08-26  Roland McGrath  <roland@redhat.com>
2429         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
2430         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
2432         * sysdeps/gnu/Versions: New file.
2433         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
2434         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
2435         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
2436         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
2437         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
2438         and _sys_nerr_internal instead of anything else.  Make it include
2439         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
2440         Make it emit some asm magic if [EMIT_ERR_MAX].
2441         * sysdeps/gnu/errlist.c: Regenerated.
2442         * sysdeps/gnu/errlist-compat.awk: New file.
2443         * sysdeps/gnu/errlist-compat.c: New file (generated).
2444         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
2445         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
2446         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
2447         (SYS_ERRLIST, SYS_NERR): Macros removed.
2448         (sys_nerr, _sys_nerr): Remove these weak aliases.
2449         * sysdeps/unix/sysv/linux/errlist.c: File removed.
2450         * sysdeps/unix/sysv/linux/errlist.h: File removed.
2451         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
2453         * include/libc-symbols.h (declare_symbol): New macro.
2454         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
2455         * configure.in: New check to define it.
2456         * configure: Regenerated.
2458 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
2460         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
2461         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
2463         * Make-dist: Remove traces of old stdio.
2464         * Makeconfig: Likewise.
2466         * locale/Makefile (localedef-aux): New variable.  Only md5
2467         assigned to it.  These files are not ddistributed in this directory.
2469         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
2470         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
2471         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
2473         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
2475         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
2476         set h_errno to NO_RECOVERY [PR libc/4360].
2478 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2480         * libio/Makefile (tests): Add bug-fopena+.
2481         * libio/bug-fopena+.c: New file.
2482         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
2483         file for _IO_IS_APPENDING if file isn't opened for reading, too.
2485         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
2487         * locale/xlocale.c: Fix the last change.  The variable still has
2488         to end in _data.
2489         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
2490         (__libc_tsd_set): Add _data prefix to variable name.
2492 2002-08-26  Roland McGrath  <roland@redhat.com>
2494         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
2495         macro with inline function.
2496         (sigset_get_old_mask): Likewise.
2497         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
2498         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2499         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2500         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
2501         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
2502         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
2503         values.
2504         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
2505         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
2507 2002-07-06  Bruno Haible  <bruno@clisp.org>
2509         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
2510         sigset_get_old_mask): Make it work with larger sigset_t.
2511         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
2512         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2513         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2515 2002-08-26  Roland McGrath  <roland@redhat.com>
2517         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
2518         * manual/filesys.texi (File Times): Document lutimes and futimes.
2519         * misc/Makefile (routines): Add them.
2520         * misc/Versions (libc: GLIBC_2.3): Likewise.
2521         * sysdeps/generic/lutimes.c: New file.
2522         * sysdeps/generic/futimes.c: New file.
2523         * sysdeps/mach/hurd/lutimes.c: New file.
2524         * sysdeps/mach/hurd/futimes.c: New file.
2526         * manual/filesys.texi (File Times): Add explicit note about null
2527         pointer argument to utimes.
2529 2002-08-26  Roland McGrath  <roland@frob.com>
2531         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
2532         (__ifreq): Add a cast.  Remove an unused variable.
2534         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
2535         _HURD_THREADVAR_LOCALE.
2537 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
2539         * posix/regexec.c (re_search_stub): Return correct match length
2540         if start != 0.
2541         * posix/bug-regex10.c: New test.
2542         * posix/Makefile (tests): Add bug-regex10.
2544 2002-08-26  Brian Youmans  <3diff@gnu.org>
2546         * COPYING.LIB: Replaced with fresh copy from
2547         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
2548         suggested copying permission notice now says version 2.1 instead
2549         of version 2.
2551         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
2552         from Library GPL.
2553         * crypt/crypt_util.c: Likewise.
2554         * crypt/ufc.c: Likewise.
2555         * elf/dl-conflict.c: Likewise.
2556         * elf/dl-iteratephdr.c: Likewise.
2557         * iconv/iconvconfig.h: Likewise.
2558         * malloc/arena.c: Likewise.
2559         * malloc/hooks.c: Likewise.
2560         * malloc/malloc.c: Likewise.
2561         * posix/glob/Makefile.ami: Likewise.
2562         * posix/glob/Makefile.in: Likewise.
2563         * stdlib/gmp-impl.h: Likewise.
2564         * stdlib/gmp.h: Likewise.
2565         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
2566         * sysdeps/generic/strnlen.c: Likewise.
2567         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
2568         * sysdeps/mach/hurd/recvmsg.c: Likewise.
2569         * sysdeps/mach/hurd/sendmsg.c: Likewise.
2570         * sysdeps/mach/hurd/spawni.c: Likewise.
2571         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
2572         * sysdeps/mach/powerpc/sysdep.h: Likewise.
2573         * sysdeps/mach/powerpc/thread_state.h: Likewise.
2574         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
2575         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
2576         * sysdeps/x86_64/gmp-mparam.h: Likewise.
2578         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
2579         Lesser GPL copying permission notice from 2 to 2.1.
2580         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
2581         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
2582         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2583         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
2584         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2585         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2586         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2587         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2588         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2589         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2590         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2591         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2592         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2593         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2594         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2595         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2596         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2597         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2598         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2599         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2600         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2601         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2602         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2603         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2604         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2605         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2606         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2607         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2608         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2609         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2610         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2611         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2612         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2613         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2614         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2615         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2616         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2617         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2618         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2619         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2620         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2621         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2622         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2623         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2624         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2625         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2626         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2627         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2628         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2629         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2630         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2631         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2632         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2633         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2634         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2636         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
2637         Moshier and Lesser GPL copying permission notice, per license from
2638         Moshier.
2639         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2640         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2641         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2642         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2643         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2644         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2645         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2646         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2647         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2648         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2649         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2650         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2651         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2652         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2654         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
2655         notice, per license from copyright holder Stephen Moshier.
2656         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2657         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2658         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2659         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2660         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2661         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2662         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2663         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2664         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2666 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2668         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
2669         (shared-only-routines): Likewise.
2671 2002-08-26  Roland McGrath  <roland@redhat.com>
2673         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
2674         name of "", store a null pointer instead.
2676         * configure.in (elf): Set to yes for freebsd*, netbsd*.
2677         * configure: Regenerated.
2679         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
2680         Initialize this instead of __libc_tsd_LOCALE_data.
2682         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
2683         ptsname_r to EINVAL.
2685         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
2687         * rt/Makefile: Revert last change, it was inappropriate to presume aio
2688         implementations depend on pthreads.
2689         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
2690         * rt/tst-aio64.c (do_test): Likewise.
2691         * rt/tst-aio2.c (do_test): Likewise.
2692         * rt/tst-aio3.c (do_test): Likewise.
2693         * rt/tst-aio4.c (do_test): Likewise.
2694         * rt/tst-aio5.c (do_test): Likewise.
2695         * rt/tst-aio6.c (do_test): Likewise.
2696         * rt/tst-aio7.c (do_test): Likewise.
2698         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2699         void so as to avoid compiler warnings.
2701         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2702         _IO_wide_data_FD, which is never used here.
2704         * libio/iofread.c
2705         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2706         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2707         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2709         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2710         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2712         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2713         (closelog): Likewise.
2715 2002-07-06  Bruno Haible  <bruno@clisp.org>
2717         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2719         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2720         * sysdeps/unix/alpha/pipe.S: ... here.
2721         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2723         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2725         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2726         * sysdeps/unix/i386/fork.S: Likewise.
2727         * sysdeps/unix/i386/pipe.S: Likewise.
2728         * sysdeps/unix/i386/wait.S: Likewise.
2730         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2731         * sysdeps/unix/arm/fork.S: Likewise.
2733         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2734         arguments.
2735         (DO_CALL): Swap argument order.
2736         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2737         arguments.
2738         (DO_CALL): Swap argument order.
2739         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2740         arguments.
2741         (DO_CALL): Swap argument order.
2742         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2743         arguments.
2744         (DO_CALL): Swap argument order.
2745         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2746         arguments.
2747         (DO_CALL): Swap argument order.
2748         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2749         arguments.
2750         (DO_CALL): Swap argument order.
2751         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2752         arguments.
2753         (DO_CALL): Swap argument order.
2755         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2756         (L): Define right for ELF.
2757         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2758         Now defined in sysdeps/i386/sysdep.h.
2760         * sysdeps/posix/readv.c: Ansify function definition.
2761         * sysdeps/posix/writev.c: Likewise.
2763         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2764         have the same size. Avoid direct cast from size_t to off_t.
2766         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2767         nul byte in entry[n].ut_user.
2768         (simulate_logout): Likewise.
2770         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2771         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2772         existence of corresponding members of 'struct utmp'.
2773         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2774         !_HAVE_UT_TYPE.
2776         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2777         allocate a buffer of at least BUFSIZ bytes, not just of
2778         sizeof (struct dirent).
2780         * sysdeps/generic/glob.c: Include <limits.h>.
2781         (NAME_MAX): Define a fallback.
2782         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2783         stack.
2784         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2785         (main): Allocate enough room for a 'struct dirent64' on the stack.
2786         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2787         'struct dirent'.
2789         * sysdeps/unix/sysv/linux/init-first.c: Don't include
2790         kernel-features.h.
2792         * inet/htontest.c: Include <sys/types.h>.
2794         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2796         * include/sys/sysctl.h: Comment fix.
2798         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2799         _dl_load_lock.
2800         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2802         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2804         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2805         (__getpeername): New alias.
2806         (__getsockname): New alias.
2807         (__socket): New alias.
2809         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2811         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2812         (__fcntl_internal): New alias.
2813         (__profil): New alias.
2815 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2817         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2818         entry was for getaddr* lookup or not.  Add only matching cache
2819         entry.  Change all callers [PR libc/4317].
2821         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2822         finding the read position [PR libc/4265].
2823         * libio/Makefile (tests): Add bug-rewind2.
2824         * libio/bug-rewind2.c: New file.
2826         * libio/bug-rewind.c: Fix creation of temp file.
2828 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2830         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2831         neither SUCCESS nor TRYAGAIN [PR libc/4259].
2832         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2833         to ENOENT if no entry is found.
2834         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2835         failure.
2836         * nis/nss_compat/compat-initgroups.c: Likewise.
2837         * nis/nss_compat/compat-pwd.c: Likewise.
2838         * nis/nss_compat/compat-spwd.c: Likewise.
2839         * nis/nss_nis/nis-alias.c: Likewise.
2840         * nis/nss_nis/nis-ethers.c: Likewise.
2841         * nis/nss_nis/nis-grp.c: Likewise.
2842         * nis/nss_nis/nis-hosts.c: Likewise.
2843         * nis/nss_nis/nis-initgroups.c: Likewise.
2844         * nis/nss_nis/nis-netgrp.c: Likewise.
2845         * nis/nss_nis/nis-network.c: Likewise.
2846         * nis/nss_nis/nis-proto.c: Likewise.
2847         * nis/nss_nis/nis-publickey.c: Likewise.
2848         * nis/nss_nis/nis-pwd.c: Likewise.
2849         * nis/nss_nis/nis-rpc.c: Likewise.
2850         * nis/nss_nis/nis-service.c: Likewise.
2851         * nis/nss_nis/nis-spwd.c: Likewise.
2852         * resolv/nss_dns/dns-host.c: Likewise.
2853         * resolv/nss_dns/dns-network.c: Likewise.
2854         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2855         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2856         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2857         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2858         * nis/nss_nisplus/nisplus-network.c: Likewise.
2859         * nis/nss_nisplus/nisplus-proto.c: Likewise.
2860         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2861         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2862         * nis/nss_nisplus/nisplus-service.c: Likewise.
2863         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2864         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2865         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2866         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2867         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2869         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2870         declaring __restore and __restore_rt as hidden (if possible).
2872 2002-08-25  Roland McGrath  <roland@redhat.com>
2874         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2876         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2877         (getutent_r_file, internal_getut_r): Updated all callers.
2878         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2880 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2882         * locale/programs/locale.c: Don't print aliases for non-existing
2883         locales for 'locale -a'.
2884         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2886 2002-07-19  H.J. Lu  <hjl@gnu.org>
2888         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2890 2002-07-16  H.J. Lu  <hjl@gnu.org>
2892         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2893         sys/personality.h.
2894         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2896 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2898         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2899         not moved ahead of the fputs call.
2900         * elf/tst-tlsmod2.c (in_dso): Likewise.
2901         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2902         * elf/tst-tlsmod4.c (in_dso): Likewise.
2904 2002-08-25  Andreas Schwab  <schwab@suse.de>
2906         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2908 2002-08-25  Roland McGrath  <roland@redhat.com>
2910         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2911         resetting handler, to avoid the possibility of a spurious SIGALRM
2912         delivered to the user's handler.
2913         Reported by Amit D. Chaudhary <amitc@brocade.com>,
2915         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
2916         set -fkeep-inline-functions, which is not needed for the current file.
2918         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2919         (_dl_setup_hash): Add attribute_hidden.
2920         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2921         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2922         (_dl_new_object, _dl_map_object_deps): Likewise.
2923         (_dl_map_object_deps_internal): Remove decl.
2924         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2926         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2927         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2928         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2929         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2930         instead relying on the compiler to produce only GOTOFF variable refs.
2932 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2934         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
2936         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2937         inline to avoid defining it in every file which includes this header.
2939         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2940         defining DONT_USE_BOOTSTRAP_MAP.
2942         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2943         * libio/tst-mmap-setvbuf.c (main): Likewise.
2944         * libio/tst-widetext.c (main): Likewise.
2946         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2947         message.
2948         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2949         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2951         * sysdeps/i386/elf/configure.in: Unconditionally define
2952         PI_STATIC_AND_HIDDEN.
2953         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2954         PI_STATIC_AND_HIDDEN is defined as well.
2955         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2957 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
2959         * sysdeps/ia64/bzero.S: Define __bzero as well.
2961         * locale/programs/charmap.c (charmap_new_char): Don't use
2962         ULONG_MAX as maximum UCS4 value.
2964         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2966         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2968         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2969         * malloc/malloc.c (mALLINFo): Likewise.
2971         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2973         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2974         examining result of _IO_do_flush call.
2976         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2977         Use prec not spec when sizing buffers.
2979         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2980         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2981         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2982         * stdio-common/vfscanf.c (inchar): Likewise.
2983         * misc/efgcvt_r.c (fcvt_r): Likewise.
2984         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2985         * elf/readlib.c (process_file): Likewise.
2986         * elf/sprof.c (load_profdata): Likewise.
2987         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2988         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2989         * locale/programs/charmap.c (charmap_read): Likewise.
2990         * libio/fileops.c: Likewise.
2991         * libio/fmemopen.c: Likewise.
2992         * stdlib/strtod.c: Likewise.
2993         * elf/dl-load.c: Likewise.
2994         * iconv/iconvconfig.c: Likewise.
2995         * iconv/iconv_prog.c (process_block): Likewise.
2996         * elf/rtld.c (dl_main): Likewise.
2998         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2999         macro to calm down the compiler.
3001         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
3003         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
3005         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
3006         placement of errno definition.
3007         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
3008         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
3009         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
3010         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
3011         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
3013         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
3014         from 1024 to 65536, to avoid buffer overrun.
3016 2002-08-16  Paul Eggert  <eggert@twinsun.com>
3018         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
3019         from 1024 to 65536, to avoid buffer overrun.
3020         * resolv/res_query.c (MAXPACKET): Likewise.
3022 2002-08-24  Andreas Jaeger  <aj@suse.de>
3024         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
3026 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
3028         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
3029         two52 locally.
3030         (log2): Likewise.
3031         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
3032         Patch by Simon Gee <simong@agile.tv>.
3034         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
3035         Prefer reading /proc/stat since it is more uniform across
3036         architectures.
3038         * manual/texinfo.tex: Update to latest official version.
3040         * sysvipc/sys/shm.h: Remove SHMLBA definition.
3041         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
3042         * sysdeps/gnu/bits/shm.h: Likewise.
3043         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
3044         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3045         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
3046         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3047         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3048         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3049         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
3050         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
3051         since this is what the kernel says.
3053         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
3054         since ssize_t is needed as well.  Replace const with __const.
3056 2002-08-23  Roland McGrath  <roland@redhat.com>
3058         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
3059         __malloc_hook, __realloc_hook, __memalign_hook,
3060         __after_morecore_hook): Variable definitions moved to ...
3061         * malloc/malloc.c: ... here, so as to be before all references.
3063         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
3064         global variable reference in an unused asm parameter, to ensure the
3065         compiler has set up the GOT register before we use it.
3067         * malloc/hooks.c: Move variable definitions ahead of uses.
3068         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
3069         initializers that make reference to variables they define.
3071 2002-08-23  Andreas Jaeger  <aj@suse.de>
3073         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
3074         alloca, free, qsort.
3076         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
3078         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
3079         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
3081         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
3082         <hch@lst.de>.
3083         * sysdeps/generic/fgetxattr.c: New file.
3084         * sysdeps/generic/flistxattr.c: New file.
3085         * sysdeps/generic/fremovexattr.c: New file.
3086         * sysdeps/generic/fsetxattr.c: New file.
3087         * sysdeps/generic/getxattr.c: New file.
3088         * sysdeps/generic/listxattr.c: New file.
3089         * sysdeps/generic/lgetxattr.c: New file.
3090         * sysdeps/generic/llistxattr.c: New file.
3091         * sysdeps/generic/lremovexattr.c: New file.
3092         * sysdeps/generic/lsetxattr.c: New file.
3093         * sysdeps/generic/removexattr.c: New file.
3094         * sysdeps/generic/setxattr.c: New file.
3095         * misc/Makefile (headers): Add sys/xattr.h.
3096         (routines): Add *xattr calls.
3097         * misc/Versions: Add *xattr calls with version 2.3.
3098         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
3099         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3100         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3101         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
3102         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
3103         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
3104         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
3105         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3107 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
3109         * sysdeps/powerpc/elf/libc-start.c
3110         (__cache_line_size): Declare.
3111         (__aux_init_cache): New function.
3112         (__libc_start_main): Change type of `auxvec' parameter to
3113         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
3114         __aux_init_cache.
3115         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3116         (__cache_line_size): Declare.
3117         (__aux_init_cache): New function.
3118         (DL_PLATFORM_INIT): Define.
3119         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
3120         value to select the correct stride for dcbz.
3122 2002-08-22  Andreas Jaeger  <aj@suse.de>
3124         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
3125         shmat.
3127 2002-08-22  Roland McGrath  <roland@redhat.com>
3129         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
3130         position indicated by locrectab against file bounds before rounding to
3131         page size.  In mapping loop, always set TO before breaking out of
3132         contiguous range coalescing loop.
3134         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
3135         (or MAP_COPY if available) instead of MAP_SHARED.
3137         * scripts/firstversions.awk: When encountering a version newer than
3138         the specified earliest version, be sure to emit the specified earliest
3139         version first if any renaming of an older version to that has been.
3141 2002-08-21  Roland McGrath  <roland@redhat.com>
3143         * configure.in: Make GCC version check require 3.[2-9]* and no others.
3144         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
3145         (Configuring and compiling): Don't mention older GCC versions any more.
3146         * INSTALL: Regenerated.
3148         * manual/install.texi (Configuring and compiling, Installation,
3149         Running make install, Linux): Linux -> GNU/Linux where appropriate.
3151         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
3152         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
3153         and with noinline otherwise.  Remove hack alloca use to prevent
3154         inlining, we can ask for it explicitly nowadays.
3156         * dlfcn/bug-dlsym1.c: New file.
3157         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
3158         * dlfcn/Makefile (distribute): Add them.
3159         (tests): Add bug-dlsym1 here.
3160         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
3161         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
3162         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
3164 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
3166         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
3167         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
3168         before relocation.
3169         (_dl_start): Don't use local bootstrap_map variable if
3170         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
3171         pass bootstrap_map to _dl_start_final in this case either.  Don't
3172         pass start_time to _dl_start_final ever.
3173         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
3175         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
3176         This cripples the scope lists necessary to search for symbols in
3177         dependencies which are not in the global scope.
3179         * include/setjmp.h (__libc_longjmp): Add declaration.
3181 2002-08-21  Andreas Jaeger  <aj@suse.de>
3183         * sysdeps/x86_64/_mcount.S: Fix assembler.
3185         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
3186         with biarch support.
3188 2002-08-21  Andreas Jaeger  <aj@suse.de>
3190         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
3192         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
3194         * sysdeps/x86_64/machine-gmon.h: New file.
3195         * sysdeps/x86_64/_mcount.S: New file.
3197 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
3199         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
3200         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
3201         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
3202         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
3203         to TL_INIT_TP.  Otherwise pass 1.
3204         * include/link.h (struct link_map): Add l_tls_tp_initialized.
3205         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
3207 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
3209         * locale/programs/localedef.c (add_to_readlist): Error about
3210         circular dependencies only if the locale in question hasn't
3211         been finished.
3212         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
3213         CTYPE_LOCALE to load_locale.
3214         * locale/programs/locfile.c (locfile_read): Don't include
3215         unneeded but available locales in locale_mask.
3217         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
3218         print any messages about enlarging archive.
3220 2002-08-20  Brian Youmans  <3diff@gnu.org>
3222         * manual/contrib.texi: Removed licenses, added acknowledgements
3223         for contributions by Intel, IBM, Craig Metz.
3224         * LICENSES: New file, contains the text of all non-FSF licenses in the
3225         distribution that require putting the notice in the accompanying
3226         documentation.
3227         * README.template, README: Mention LICENSES.
3229         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
3230         new one modelled on the modern BSD license, per recent letter
3231         of permission from CMU.
3232         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
3234         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
3235         from IBM to FSF, per the recent Software Letter.  Changed the
3236         distribution terms from GPL to LGPL.
3238         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
3239         copying permission notice (Lesser GPL), per recent IBM Software Letter.
3240         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
3241         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
3242         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
3243         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
3244         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
3245         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
3246         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
3247         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
3249         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
3250         from IBM to FSF, per the recent Software Letter.  Corrected the
3251         text of the copying permission notice to say Lesser GPL instead
3252         of GPL in warranty disclaimer paragraph.
3253         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
3254         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
3255         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
3256         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
3257         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
3258         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
3259         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
3260         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
3261         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
3262         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
3263         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
3264         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
3265         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
3266         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
3267         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
3268         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
3269         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
3270         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
3271         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
3272         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
3273         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
3275         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
3276         permission notice to say Lesser GPL instead of GPL in warranty
3277         disclaimer paragraph.
3278         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
3279         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3280         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3281         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3282         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3283         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3284         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3285         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3286         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3287         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3288         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
3289         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
3290         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
3291         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
3292         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
3293         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
3294         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
3295         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3296         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3297         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3298         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
3299         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
3300         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
3302 2002-08-20  Roland McGrath  <roland@redhat.com>
3304         Fix ABI compatibility with libc compiled with old tools on powerpc.
3305         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3306         and Jack Howarth <howarth@bromo.med.uc.edu>.
3307         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
3308         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
3309         pass -DHAVE_DOT_HIDDEN for these files.
3310         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
3311         __floatdisf.
3312         * sysdeps/powerpc/divdi3.c: New file.
3313         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
3314         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
3316 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
3318         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
3319         partially overlapping mappings.  Remove unneeded (char *) casts.
3320         Never allow duplication of ranges in mapped areas.
3322 2002-08-20  Roland McGrath  <roland@redhat.com>
3324         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
3325         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
3327 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
3329         * include/unistd.h: Don't hide _exit.
3331         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
3332         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
3333         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
3334         argument 1 to TLS_INIT_TP.
3335         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
3337         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
3339         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
3340         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
3341         memory allocation to...
3342         (allocate_dtv): ...here.  New function.
3343         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
3344         call allocate_dtv instead of _dl_allocate_tls_storage.
3345         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
3346         (_dl_get_tls_static_info): New function.
3347         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
3348         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
3350 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
3352         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
3353         immediately if result == NULL.
3355 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
3357         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
3359 2002-08-18  Roland McGrath  <roland@frob.com>
3361         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
3362         instead of __file_name_split.
3363         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
3365         * sysdeps/mach/hurd/dl-sysdep.c
3366         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
3367         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
3369 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
3371         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
3372         in change before last: MAX -> MIN.
3374 2002-08-15  Roland McGrath  <roland@redhat.com>
3376         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
3377         if seek would go past it.
3378         (mmap_remap_check): If file position is at or past EOF after check,
3379         leave read pointers at EOF and don't seek.
3381         * libio/tst-mmap-offend.c: New file.
3382         * libio/Makefile (tests): Add it.
3384         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
3385         the name as passed, rather than the name in the archive dictionary.
3387 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
3389         * csu/Makefile: Define elide-routines.os not static-only-routines.
3391         * include/sched.h (__clone): Add varargs at the end.
3393         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
3394         case.
3395         (TLS_INIT_HELPER): If defined, use it.
3396         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
3398 2002-08-15  Roland McGrath  <roland@redhat.com>
3400         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
3401         on L->l_prev; it can happen under rtld --verify too.
3403         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
3404         header separately, just map an initial window of 2MB from the file
3405         and remap if that is not large enough to cover the whole header.
3407 2002-08-15  Andreas Jaeger  <aj@suse.de>
3409         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
3410         version 2.3.
3411         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3412         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
3413         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
3414         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
3415         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
3416         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3417         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3418         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
3419         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
3420         Patch by Andreas Gruenbacher <agruen@suse.de>.
3422         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
3424 2002-08-14  Roland McGrath  <roland@redhat.com>
3426         * locale/locarchive.h (struct locale_category_data): Give this name to
3427         the type of locale_data_t's elements.
3428         * locale/programs/locarchive.c (cmpcategorysize): New static function.
3429         (add_locale): Use that to sort the categories by size and put all
3430         those that fit into two pages into the LC_ALL block, instead of
3431         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
3432         (show_archive_content): Detect categories inside LC_ALL block
3433         directly, instead of hard-coding.
3434         (oldlocrecentcmp): Compare just on file locations used.
3436 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
3438         * locale/programs/locarchive.c (struct oldlocrecent): New type.
3439         (oldlocrecentcmp): New function.
3440         (enlarge_archive): Re-add locales in the order they were added
3441         to the archive.
3442         (add_locale): Put all the small locale files together, if the small
3443         locale file block would occupy less pages if page size aligned, align
3444         it.
3445         (show_archive_content): Adjust for locale archives optimized for speed.
3447 2002-08-14  Roland McGrath  <roland@frob.com>
3449         * configure.in: Use "MISSING" as not-found value for MIG.
3450         * sysdeps/mach/configure.in: Fatal if mig not found.
3451         * configure, sysdeps/mach/configure: Regenerated.
3453 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
3455         * locale/loadarchive.c (archfname): Add missing slash.
3457         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
3458         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
3460 2002-08-12  Roland McGrath  <roland@redhat.com>
3462         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
3463         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
3464         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
3465         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
3466         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
3467         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
3468         * sysdeps/generic/waitpid.c: Likewise.
3470         * include/net/if.h: New file.  Use libc_hidden_proto
3471         for if_nametoindex and if_indextoname.
3472         * sysdeps/generic/if_index.c: Add libc_hidden_def.
3473         * sysdeps/mach/hurd/if_index.c: Likewise.
3474         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
3476         * include/grp.h (setgroups): Add libc_hidden_proto.
3477         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
3478         * sysdeps/mach/hurd/setgroups.c: Likewise.
3479         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
3480         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3482 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
3484         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
3485         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
3486         * sysdeps/generic/setegid.c (setegid): Likewise.
3487         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
3488         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
3489         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
3490         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
3491         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
3492         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
3493         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
3494         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
3495         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
3496         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
3497         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
3498         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
3499         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
3501         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
3502         __lxstat_internal, __lxstat64_internal): Remove.
3503         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
3504         Add hidden_proto.
3505         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
3506         Remove INTDEF where present, remove #undef at the beginning.
3507         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
3508         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
3509         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
3510         * sysdeps/generic/xstat.c (__xstat): Likewise.
3511         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
3512         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
3513         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
3514         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
3515         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
3516         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
3517         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
3518         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
3519         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
3520         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
3521         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
3522         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
3523         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
3524         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
3525         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
3526         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
3527         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
3528         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
3529         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
3530         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
3531         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
3532         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
3533         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
3534         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3535         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3536         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3537         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
3538         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
3539         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
3540         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3541         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
3542         * sysdeps/unix/xstat.c (__xstat): Likewise.
3544         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
3545         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
3546         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
3547         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
3548         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
3549         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
3550         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
3552         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
3553         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
3554         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
3555         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
3556         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
3557         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
3558         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
3559         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
3560         Likewise.
3561         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
3562         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
3563         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
3564         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
3565         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
3566         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
3567         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
3568         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
3570         * include/string.h (strcoll): Add libc_hidden_proto.
3571         * string/strcoll.c (strcoll): Add libc_hidden_def.
3573         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
3575 2002-08-11  Philip Blundell  <philb@gnu.org>
3577         * sysdeps/arm/Makefile: New file.
3579 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3581         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
3582         by another '|', end of regex or enclosing ')', clear branch.
3583         * posix/bug-regex9.c: New test.
3584         * posix/Makefile (tests): Add bug-regex9.
3586 2002-08-12  Roland McGrath  <roland@redhat.com>
3588         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
3589         start count condition, use TOTAL instead of variable that was never
3590         set.  Fix outer loop termination condition to TOTAL >= after update.
3592         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
3593         dl_tls_static_align and dl_tls_static_nelem.
3595 2002-08-11  Roland McGrath  <roland@redhat.com>
3597         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
3598         of the TLS macros, otherwise the compiler might not have initialized
3599         the PIC register yet when we use the PLT via asm.
3600         * elf/tst-tlsmod3.c (in_dso2): Likewise.
3601         * elf/tst-tlsmod2.c (in_dso): Likewise.
3603         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
3605         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
3606         Evaluate argument exactly once.  Remove __volatile__ from asm's.
3608         * include/unistd.h: Use libc_hidden_proto for getdomainname
3609         and getlogin_r.
3610         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
3611         * sysdeps/mach/hurd/getdomain.c: Likewise.
3612         * sysdeps/unix/getlogin_r.c: Likewise.
3613         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
3614         * sysdeps/generic/getlogin_r.c: Likewise.
3616         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
3617         * sunrpc/rtime.c: Add libc_hidden_def.
3619         * include/string.h: Use libc_hidden_proto for basename.
3620         * string/basename.c [_LIBC]: Add libc_hidden_def.
3622         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
3624         * locale/loadarchive.c: munmap -> __munmap throughout.
3626         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
3627         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
3628         * sysdeps/generic/gai_strerror.c: Likewise.
3630         * include/sys/errno.h: New file.
3632         * include/signal.h: No libc_hidden_proto for raise,
3633         __libc_current_sigrtmin, __libc_current_sigrtmax.
3634         These need to be overridden by linuxthreads.
3635         * sysdeps/posix/raise.c: Reverted.
3636         * sysdeps/generic/raise.c: Reverted.
3637         * signal/allocrtsig.c: Reverted.
3639         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
3641 2002-08-10  Roland McGrath  <roland@redhat.com>
3643         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
3644         * locale/localeinfo.h: Declare it.
3645         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
3646         current locale if it's not in the file list.
3647         Call _nl_archive_subfreeres.
3649 2002-08-10  Andreas Jaeger  <aj@suse.de>
3651         * sysdeps/i386/strchr.S: Add comment.
3653 2002-08-10  Roland McGrath  <roland@redhat.com>
3655         * include/wchar.h (putwc): Use libc_hidden_proto.
3656         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
3657         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
3658         * stdio-common/dprintf.c: Add libc_hidden_def.
3659         * stdio-common/fprintf.c: Likewise.
3660         * stdio-common/sprintf.c: Likewise.
3661         * stdio-common/sscanf.c: Likewise.
3662         * libio/iofwrite.c: Likewise.
3663         * libio/memstream.c: Likewise.
3664         * libio/putwc.c: Likewise.
3665         * stdio-common/perror.c: Likewise.
3666         * sysdeps/posix/remove.c: Likewise.
3667         * sysdeps/generic/remove.c: Likewise.
3668         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
3669         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
3671 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
3673         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3674         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
3675         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3676         towlower, towupper): Add libc_hidden_weak.
3678         * include/bits/dlfcn.h: New file.
3679         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
3681         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
3682         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
3683         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
3684         * include/pwd.h (_nss_files_parse_pwent): Likewise.
3685         * include/shadow.h (_nss_files_parse_spent): Likewise.
3686         * include/netdb.h (_nss_files_parse_protoent,
3687         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
3688         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
3689         (LINE_PARSER): Use it.
3690         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
3691         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
3693         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
3694         #endif.
3696         * manual/debug.texi (%MENU%): Remove trailing dot.
3697         Reported by <hayastan132@hotmail.com>.
3699         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
3700         aliases.
3701         (lseek): Dummy.
3702         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
3703         Likewise.
3705 2002-08-09  Roland McGrath  <roland@redhat.com>
3707         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
3708         name to find codeset name (if any) and normalize it.  If the
3709         normalized name differs, look up only that in the archive.
3710         * locale/programs/locarchive.c (add_locale_to_archive): If the name
3711         contains a codeset, normalize the codeset store only the normalized
3712         name in the archive.  If not, add an alias containing the locale's
3713         normalized codeset name.  Apply codeset name normalization when
3714         matching entries in the alias file.
3716         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3717         decrement HEAD->namehash_used here.
3718         (add_locale): Only need to insert name string when name_offset != 0.
3720         * locale/programs/localedef.c (options): Add -A/--alias-file.
3721         (alias_file): New variable.
3722         (parse_opt): Grok -A, set that.
3723         * locale/programs/localedef.h: Declare it.
3725         * locale/locarchive.h (struct locrecent): Add `refs' member.
3726         * locale/programs/locarchive.c (insert_name): New function, broken out
3727         of ...
3728         (add_locale_to_archive): ... here.  Call that.
3729         (add_alias): New function.
3730         (add_locale): New static function, add_locale_to_archive renamed.
3731         (add_locale_to_archive): Call that and use add_alias to add an alias
3732         for the name with codeset if the given name lacks it.
3733         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3735         * locale/Makefile (routines): Add loadarchive.
3736         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3737         (_nl_load_locale_from_archive): New function.
3738         * locale/localeinfo.h: Declare it.
3739         * locale/findlocale.c (_nl_find_locale): If using default locale path,
3740         try _nl_load_locale_from_archive first.
3742         * locale/loadlocale.c (_nl_intern_locale_data): New function,
3743         broken out of _nl_load_locale.
3744         (_nl_load_locale): Call that.
3745         * locale/localeinfo.h: Declare it.
3746         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3747         (struct locale_data): Remove unused member `options'.
3748         * locale/findlocale.c (_nl_remove_locale): Update uses.
3749         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3750         * locale/C-collate.c: Update initializer.
3751         * locale/C-identification.c: Likewise.
3752         * locale/C-measurement.c: Likewise.
3753         * locale/C-telephone.c: Likewise.
3754         * locale/C-address.c: Likewise.
3755         * locale/C-name.c: Likewise.
3756         * locale/C-paper.c: Likewise.
3757         * locale/C-time.c: Likewise.
3758         * locale/C-numeric.c: Likewise.
3759         * locale/C-monetary.c: Likewise.
3760         * locale/C-messages.c : Likewise.
3761         * locale/C-ctype.c: Likewise.
3763         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3764         use CHAR_BIT instead of BITSPERBYTE.
3766         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3767         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3768         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3769         (_nl_remove_locale): Likewise.
3770         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3772         * locale/findlocale.c (_nl_default_locale_path): New variable.
3773         (_nl_find_locale): If LOCALE_PATH is null, default to that.
3774         * locale/localeinfo.h: Declare it.
3775         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3776         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
3777         * locale/newlocale.c (__newlocale): Likewise.
3779         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3780         * inet/rexec.c (rexec_af): Add libc_hidden_def.
3781         * sysdeps/generic/morecore.c: Likewise.
3782         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3783         (__libc_current_sigrtmax): Likewise.
3785 2002-08-08  Roland McGrath  <roland@redhat.com>
3787         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3788         * catgets/open_catalog.c (__open_catalog): Likewise.
3790         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3791         from typo INITIAL_NUM_NANES.
3792         (create_archive): Update use.
3794 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3796         * sysdeps/unix/sysv/linux/sigwait.c: New file.
3798 2002-08-08  Roland McGrath  <roland@frob.com>
3800         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3802 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3804         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3805         else and undefine after including wcstol_l.c.
3806         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3808 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3810         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3812 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
3814         * configure.in: Make the test for broken_alias_attribute stricter.
3816 2002-05-24  Robert Love  <rml@tech9.net>
3818         * posix/Makefile (routines): Add sched_getaffinity and
3819         sched_setaffinity.
3820         * posix/sched.h: Add declarations for sched_getaffinity and
3821         sched_setaffinity.
3822         * sysdeps/generic/sched_getaffinity.c: New file.
3823         * sysdeps/generic/sched_setaffinity.c: New file.
3824         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3825         sched_setaffinity.
3827 2002-08-06  Andreas Schwab  <schwab@suse.de>
3829         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3831 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3833         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3834         message.
3836         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3837         It is known to be defined.
3839         * include/string.h: Define index and rindex only if _ISOMAC is not
3840         defined.
3842         * elf/rtld.c: Include <errno.h>.
3843         * sysdeps/generic/libc-tls.c: Likewise.
3845 2002-08-07  Roland McGrath  <roland@redhat.com>
3847         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3848         it internally.
3849         (precsize_aton): Likewise.
3851         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3852         the static symbols added in the last change (doofus is me).
3854         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3855         loop to notice missing categories in a composite name.
3857         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3858         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3859         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3860         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3862 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3864         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3866 2002-08-07  Roland McGrath  <roland@redhat.com>
3868         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3869         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3870         Reported by Jakub Jelinek  <jakub@redhat.com>.
3872 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
3874         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3875         division.
3877 2002-08-06  Roland McGrath  <roland@redhat.com>
3879         * include/getopt.h: Put private decls inside [_GETOPT_H].
3880         Use libc_hidden_proto for getopt_long, getopt_long_only.
3881         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3882         Add libc_hidden_def.
3884         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3885         Define as a macro for __dl_iterate_phdr.
3887         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3888         made static.  Add __ name as a strong alias.
3889         (internal_endnetgrent): Likewise.
3890         (internal_getnetgrent_r): Likewise.
3892         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3893         with no __ prefix.
3894         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3895         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3896         all *_l functions with no __ prefix.
3897         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3898         * ctype/ctype_l.c: Likewise.
3899         * locale/nl_langinfo.c: Likewise.
3900         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3901         * stdlib/stdlib.h [__USE_GNU]: Likewise.
3902         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3903         * wctype/wctype.h [__USE_GNU]: Likewise.
3904         * string/strcoll_l.c (strcoll_l): Define as weak alias.
3905         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3906         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3907         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3908         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3909         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3910         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3911         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3912         (__wcscasecmp_l): Add libc_hidden_def.
3913         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3914         (__wcsncasecmp_l): Add libc_hidden_def.
3915         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3916         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3917         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3918         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3919         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3920         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3921         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3922         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3923         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3924         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3925         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3926         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3927         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3928         * wctype/wctype_l.c (wctype_l) Define as weak alias.
3930 2002-08-05  Roland McGrath  <roland@redhat.com>
3932         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3933         netname2user, host2netname, user2netname, key_gendes.
3934         * sunrpc/netname.c: Add libc_hidden_def.
3935         * sunrpc/key_call.c: Likewise.
3937         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3938         freeaddrinfo.
3939         * inet/getnameinfo.c: Add libc_hidden_def.
3940         * sysdeps/generic/getaddrinfo.c: Likewise.
3941         * sysdeps/posix/getaddrinfo.c: Likewise.
3943         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3944         * wcsmbs/wmemchr.c: Add libc_hidden_def.
3945         * wcsmbs/wmemset.c: Add libc_hidden_def.
3947         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3948         (index, rindex): Define as macros for strchr, strrchr.
3950         * string/envz.c (envz_strip): index -> strchr
3952         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3953         * sunrpc/rpc_prot.c: Add libc_hidden_def.
3955         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3956         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3958         * include/stdlib.h: Use libc_hidden_proto for wctomb.
3959         * stdlib/wctomb.c: Add libc_hidden_def.
3961         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3962         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3963         * resolv/herror.c: Likewise.
3964         * inet/rcmd.c: Add libc_hidden_def.
3965         * inet/ruserpass.c: Likewise.
3966         * inet/getnetgrent_r.c: Likewise.
3968         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3969         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
3970         for svcerr_auth, svcerr_noprog, svcerr_progvers.
3971         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3972         libc_hidden_def.
3973         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3974         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3976         * sysdeps/posix/system.c (do_system): New function, guts broken out of
3977         __libc_system.
3978         (__libc_system): Call it, putting just the line == NULL test here.
3980         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3981         variables work right.
3983         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3984         * elf/dl-close.c (_dl_close): Likewise.
3986         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3987         in6addr_any, in6addr_loopback.  Remove decls for
3988         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3989         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3990         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3991         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3992         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3993         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3994         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3995         in6addr_loopback.
3996         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3998         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3999         ether_aton_r.
4000         * inet/ether_aton_r.c: Add libc_hidden_def.
4001         * inet/ether_ntoa_r.c: Likewise.
4003         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
4004         xprt_unregister.
4005         * sunrpc/svc.c: Add libc_hidden_def.
4006         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
4007         pmap_set, pmap_unset.
4008         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
4009         * sunrpc/pm_getport.c: Likewise.
4010         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
4011         * sunrpc/publickey.c: Add libc_hidden_def.
4013 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
4015         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
4016         the other memset call in this function.
4018         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
4019         at correct index.  Clear BSS region now that memalign is used.
4021 2002-08-05  Roland McGrath  <roland@redhat.com>
4023         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
4024         * sysdeps/generic/uname.c: Add libc_hidden_def.
4025         * sysdeps/mach/hurd/uname.c: Likewise.
4027 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
4029         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
4030         wcspbrk): Add libc_hidden_proto.
4031         * time/strftime.c (my_strftime): Add libc_hidden_def.
4032         (strftime): Remove libc_hidden_def.
4033         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
4034         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
4035         * wcsmbs/wcsspn.c (wcsspn): Likewise.
4036         * wcsmbs/wcscmp.c (wcscmp): Likewise.
4037         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
4038         * wcsmbs/wcscoll.c (wcscoll): Likewise.
4040         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
4041         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
4042         __rpc_thread_createerr): Add libc_hidden_proto.
4043         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
4044         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
4045         __rpc_thread_createerr): Add libc_hidden_def.
4047         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
4048         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
4049         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
4050         clnt_perror, clnt_sperror): Add libc_hidden_def.
4051         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
4053         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
4054         libc_hidden_proto.
4055         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
4056         * sunrpc/des_soft.c (des_setparity): Likewise.
4058         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
4059         Add libc_hidden_proto.
4060         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
4061         Add libc_hidden_def.
4063 2002-08-05  Roland McGrath  <roland@redhat.com>
4065         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
4066         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
4067         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
4068         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
4069         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
4070         old data, abandoning the original memory allocated by rtld at startup,
4071         instead of calling realloc normally.
4073 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
4075         * po/fr.po: Update from translation team.
4077 2002-08-04  Roland McGrath  <roland@redhat.com>
4079         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
4080         then generate a dummy module under the given name, obeying the
4081         normal rules for the "caller" field.
4083         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
4084         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
4086         * include/pthread.h: Don't declare __pthread_initialize_minimal as
4087         weak here; we declare it weak or strong in the one place we use it.
4088         * sysdeps/generic/libc-start.c: ... which is here.
4089         Don't make the decl weak if [USE_TLS], since static programs need TLS
4090         setup even when single-threaded.
4092         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
4094         * elf/Makefile (test-srcs): Add $(modules-names) to it.
4095         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
4096         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
4097         all these variables.
4099 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
4101         * include/stdio.h: Don't define macro magic to redirect function
4102         calls if _ISOMAC is defined.
4104         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
4105         ldouble asin tests.
4107 2002-08-04  Roland McGrath  <roland@redhat.com>
4109         * stdlib/lrand48_r.c: Add libc_hidden_def.
4111         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
4112         TCB with __libc_memalign instead of mmap.
4113         (_dl_deallocate_tls): Free it with free instead of munmap.
4115         * Makerules (cpp-srcs-left): When setting this to run
4116         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
4117         words.  Combine the two loops into one on the concatenated list,
4118         including those as well as $(test-srcs).
4120         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
4121         since we align here with optimally minimal waste anyway.
4122         (malloc): Just call that.
4124         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
4125         the right variable.
4127         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
4128         to compute memory location for l_tls_initimage.
4129         * elf/rtld.c (_dl_start): Likewise.
4130         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
4132         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
4133         because the .d file is generated in the non-shared case and
4134         so fails to catch them otherwise.
4136         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
4137         split out of _dl_allocate_tls.
4138         (_dl_allocate_tls_init): Likewise.
4139         (_dl_allocate_tls): Call those.
4140         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
4141         * elf/rtld.c (dl_main): Call them separately instead of calling
4142         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
4143         is finished, so that the initializer data has been relocated before we
4144         copy it into the main thread's TLS block.
4146         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
4147         loop conditions, prevented the last used module from being initialized.
4149 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
4151         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
4152         if glob resp. globfree are not macros.
4153         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
4154         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
4155         Add libc_hidden_ver.
4156         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
4157         libc_hidden_def.
4158         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
4159         instead of libc_hidden_weak.
4160         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
4161         libc_hidden_ver instead of libc_hidden_def.
4162         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
4163         libc_hidden_ver instead of libc_hidden_def.
4164         (wcstoll, wcstoq): Remove libc_hidden_weak.
4165         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
4166         libc_hidden_ver.
4167         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
4168         libc_hidden_ver.
4169         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
4170         libc_hidden_ver.
4171         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
4172         libc_hidden_ver.
4174 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
4176         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
4177         to access _sys_siglist.
4178         * string/strsignal.c: Likewise.
4179         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
4180         * sysdeps/gnu/siglist.c: Likewise.
4181         * sysdeps/unix/siglist.c: Likewise.
4182         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
4184         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
4186         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
4188         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
4189         alias and use it.
4190         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
4192         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
4193         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
4194         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
4196         * include/time.h: Add libc_hidden_proto for __gmtime_r.
4197         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
4199         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
4200         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
4201         and __gconv_get_cache respectively.
4202         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
4203         defined static.  Change all users.
4204         (__gconv_get_cache): New function.
4205         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
4206         (__gconv_get_alias_db): New function.
4207         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
4208         (__conv_modules_db): Likewise.
4209         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
4210         and __gconv_get_alias_db.
4211         * iconv/iconv_prog.c: Use the new functions instead of accessing the
4212         variables.
4214         * include/stdlib.h: Add prototype and libc_hidden_proto for
4215         __default_morecore.
4216         * sysdeps/generic/morecore.c: Include <stdlib.h>.
4218         * malloc/obstack.c: Remove fputs macro.
4220         * malloc/mtrace.c: Remove fopen macro.
4222 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
4224         * manual/debug.texi: Fix spelling to programmatically.
4225         Reported by <hayastan132@hotmail.com>.
4227 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
4229         * include/libio.h: Add libc_hidden_proto for __uflow.
4230         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
4231         fgetpos to _IO_* names.
4232         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
4233         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
4234         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
4235         putwc_unlocked, vswscanf.
4236         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
4237         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
4238         * libio/fseek.c: Likewise.
4239         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
4240         not fopencookie.
4241         * libio/genops.c (__uflow): Add libc_hidden_def.
4242         * libio/iofflush_u.c (fflush_unlocked): Likewise.
4243         * libio/iofgets_u.c (fgets_unlocked): Likewise.
4244         * libio/iofputs_u.c (fputs_unlocked): Likewise.
4245         * libio/iofputws_u.c (fputws_unlocked): Likewise.
4246         * libio/iofread_u.c (fread_unlocked): Likewise.
4247         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
4248         * libio/iovswscanf.c (vswscanf): Likewise.
4249         * libio/putwc_u.c (putwc_unlocked): Likewise.
4250         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
4251         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
4252         * malloc/mtrace.c: Likewise.
4254         * sunrpc/clnt_perr.c: Remove fputs macro.
4255         * sunrpc/svc_simple.c: Likewise.
4256         * sunrpc/svc_tcp.c: Likewise.
4257         * sunrpc/svc_udp.c: Likewise.
4258         * sunrpc/xdr_rec.c: Likewise.
4259         * sunrpc/xdr_ref.c: Likewise.
4261         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
4262         iconv_prog, linereader, and charmap-dir.
4263         * locale/Makefile: Likewise for locale and charmap-dir.
4264         * malloc/Makefile: Likewise for memusagestat.
4265         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
4266         * sunrpc/Makefile: Likewise for rpc_main.
4267         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
4268         * timezone/Makefile: Likewise for zic.
4270         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
4272         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
4273         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
4274         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
4275         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
4276         _dl_close.
4278         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
4279         __wunderflow.
4280         * libio/genops.c (__underflow): Add libc_hidden_def.
4281         * libio/wgenops.c (__wuflow): Likewise.
4282         (__wunderflow): Likewise.
4284         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
4285         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
4287         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
4288         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
4290         * include/string.h: Add libc_hidden_proto for __strverscmp.
4291         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
4293         * include/unistd.h: Add libc_hidden_proto for __sysconf.
4294         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
4295         * sysdeps/posix/sysconf.c: Likewise.
4296         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
4297         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
4299         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
4300         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
4301         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
4302         __iswxdigit_l, __towlower_l, __towupper_l.
4303         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
4304         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
4306         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
4307         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
4308         * sysdeps/mach/hurd/xmknod.c: Likewise.
4309         * sysdeps/unix/xmknod.c: Likewise.
4310         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4311         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
4312         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4314         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
4316 2002-08-03  Roland McGrath  <roland@redhat.com>
4318         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
4319         setpriority.
4320         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
4321         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
4322         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
4323         * sysdeps/mach/hurd/setpriority.c: Likewise.
4324         * sysdeps/mach/hurd/getpriority.c: Likewise.
4325         * sysdeps/generic/setpriority.c: Likewise.
4326         * sysdeps/generic/getpriority.c: Likewise.
4328         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
4329         * malloc/mcheck.c: Add libc_hidden_def.
4331         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
4332         * misc/hsearch_r.c: Add libc_hidden_def.
4334         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
4335         * posix/fnmatch.c: Add libc_hidden_weak.
4337         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
4338         execl, execle, execlp, execvp, getpid, getsid.
4339         * sysdeps/generic/alarm.c: Add libc_hidden_def.
4340         * sysdeps/unix/alarm.c: Likewise.
4341         * posix/confstr.c: Likewise.
4342         * posix/execvp.c: Likewise.
4343         * posix/execlp.c: Likewise.
4344         * posix/execle.c: Likewise.
4345         * posix/execl.c: Likewise.
4346         * sysdeps/generic/getsid.c: Likewise.
4347         * sysdeps/mach/hurd/getsid.c: Likewise.
4348         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
4349         * sysdeps/mach/hurd/getpid.c: Likewise.
4351         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
4352         qecvt_r, qfcvt_r, lrand48_r.
4353         * misc/efgcvt_r.c: Add libc_hidden_def.
4355         * include/wordexp.h: Use libc_hidden_proto for wordfree.
4356         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
4358         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
4359         * locale/nl_langinfo.c: Add libc_hidden_def.
4361         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
4362         * sysdeps/generic/glob.c: Add libc_hidden_def.
4363         * sysdeps/generic/glob64.c: Likewise.
4364         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
4366         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
4368         * elf/Makefile (CFLAGS-vismod2.c): New variable.
4370         * locale/setlocale.c (_nl_current_names): Variable moved ...
4371         * locale/localename.c (_nl_current_names): ... here, new file.
4372         Make it global, with attribute_hidden.
4373         * locale/localeinfo.h: Declare it.
4374         * locale/Makefile (aux): Add localename.
4375         * locale/localename.c (__current_locale_name): New function.
4376         * include/locale.h (__current_locale_name): Declare it.
4377         * intl/dcigettext.c (guess_category_value): Use that instead of
4378         calling setlocale.
4380         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
4381         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
4382         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
4383         * locale/newlocale.c: Add alias to __ name.
4384         * locale/duplocale.c: Likewise.
4385         * locale/freelocale.c: Likewise.
4386         * locale/uselocale.c: New file.
4387         * locale/Makefile (routines): Add it.
4388         * locale/Versions (libc: GLIBC_2.3): New set.
4389         Add newlocale, duplocale, freelocale, uselocale.
4390         (libc: GLIBC_PRIVATE): Add __uselocale.
4392         * locale/localeinfo.h [SHARED]
4393         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
4394         (_NL_CURRENT_DATA): Define using that.
4395         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
4396         (_NL_CURRENT_DEFINE): Define to empty.
4397         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
4398         conditionalized on this.
4399         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
4400         taking initializer of _nl_C_locobj.
4401         [SHARED] (_nl_global_locale): New variable, using that initializer.
4402         (_nl_C_locobj): Use new macro for initialzier.
4403         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
4404         [! SHARED] (CATEGORY_USED): New macro.
4405         [SHARED] (CATEGORY_USED, _nl_C): New macros.
4406         (setdata, setlocale): Use that macro instead of examining _nl_current.
4407         (setdata): Set the slot in _nl_global_locale.
4408         Conditionalize setting of _nl_current on [! SHARED].
4409         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
4410         declaration as an extern.
4411         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
4413         * include/locale.h: Use libc_hidden_proto for setlocale.
4414         * locale/setlocale.c: Add libc_hidden_def.
4416         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
4418         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
4419         * misc/hsearch_r.c: Add libc_hidden_def.
4420         * misc/lsearch.c: Likewise.
4422         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
4423         endttyent.
4424         * misc/getttyent.c: Add libc_hidden_def.
4426         * include/mcheck.h: Use libc_hidden_proto for mcheck.
4427         * malloc/mcheck.c: Add libc_hidden_def.
4429         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
4430         * include/argz.h: Use libc_hidden_proto for argz_delete.
4431         * string/argz-delete.c: Add libc_hidden_def.
4432         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
4434         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
4435         HIDDEN_JUMPTARGET for _exit.
4436         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
4437         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
4438         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
4439         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
4441         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
4442         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
4443         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
4444         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
4446         * include/stdlib.h: Use libc_hidden_proto for abort,
4447         __strtof_internal, __strtod_internal, __strtold_internal,
4448         __strtol_internal, __strtoll_internal, __strtoul_internal,
4449         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
4450         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
4451         __strtoul_l_internal, __strtoull_l_internal.
4452         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
4453         __wcstod_internal, __wcstold_internal, __wcstol_internal,
4454         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
4455         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
4456         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
4457         __wcsncasecmp_l.
4458         * sysdeps/generic/abort.c: Add libc_hidden_def.
4459         * stdlib/strtod.c: Likewise.
4460         * sysdeps/generic/strtol.c: Likewise.
4461         * sysdeps/wordsize-64/strtol.c: Likewise.
4462         * sysdeps/wordsize-64/wcstol.c: Likewise.
4463         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
4465         * include/stdlib.h: Use libc_hidden_proto for qsort.
4466         * stdlib/msort.c: Add libc_hidden_def.
4468         * include/utime.h: Use libc_hidden_proto for utime.
4469         * sysdeps/generic/utime.c: Add libc_hidden_def.
4470         * sysdeps/unix/utime.c: Likewise.
4472         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
4473         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
4474         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
4475         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
4476         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
4478         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
4479         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
4480         and __libc_current_sigrtmax.
4481         * signal/sigismem.c: Add libc_hidden_def.
4482         * signal/sigfillset.c: Likewise.
4483         * signal/sigempty.c: Likewise.
4484         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
4485         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
4486         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
4487         * sysdeps/posix/raise.c: Likewise.
4488         * sysdeps/generic/raise.c: Likewise.
4490 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
4492         * include/string.h: Use libc_hidden_proto for __stpcpy.
4493         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
4494         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
4495         * sysdeps/generic/stpcpy.c: Likewise.
4496         * sysdeps/i386/stpcpy.S: Likewise.
4497         * sysdeps/i386/i586/stpcpy.S: Likewise.
4498         * sysdeps/powerpc/stpcpy.S: Likewise.
4499         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
4500         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
4502         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
4503         __strncasecmp_l, __strdup, __strndup, __strerror_r.
4504         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
4505         libc_hidden_def.
4506         * string/strdup.c (__strdup): Likewise.
4507         * string/strndup.c (__strndup): Likewise.
4508         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
4509         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
4511 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4513         * include/libio.h: New file.
4514         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
4515         * libio/iolibio.h: #include <libio.h>, not "libio.h".
4516         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
4517         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
4518         * sysdeps/unix/common/syscalls.list: Likewise.
4519         * sysdeps/unix/inet/syscalls.list: Likewise.
4520         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
4521         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
4522         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4523         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4524         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4525         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4526         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4527         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4528         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4529         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
4530         * sysdeps/unix/syscalls.list: Likewise.
4532 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4533             Ulrich Drepper  <drepper@redhat.com>
4535         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
4536         the arguments is big enough to cause an overflow.
4538 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
4540         * assert/assert.c: Use hidden_def not INTDEF.
4542 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4544         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
4545         not defined.
4547 2002-08-03  Roland McGrath  <roland@redhat.com>
4549         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
4550         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
4551         verr, verrx.
4552         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
4553         * misc/syslog.c: Add libc_hidden_def.
4554         * misc/err.c: Likewise.
4555         * stdlib/exit.c: Likewise.
4556         * stdlib/bsearch.c: Likewise.
4557         * sysdeps/generic/getenv.c: Likewise.
4559         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
4561         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
4562         libc_hidden_weak for every system call symbol defined.
4564         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
4565         timelocal, localtime, strftime.
4566         * time/asctime.c: Add libc_hidden_def.
4567         * time/mktime.c: Likewise.
4568         * time/localtime.c: Likewise.
4569         * time/strftime.c: Likewise.
4570         * time/strptime.c: Likewise.
4571         * sysdeps/generic/time.c: Likewise.
4572         * sysdeps/unix/time.c: Likewise.
4573         * sysdeps/unix/sysv/i386/time.S: Likewise.
4574         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
4576         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
4577         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
4578         * resolv/inet_ntop.c: Likewise.
4579         * resolv/inet_pton.c: Likewise.
4580         * inet/inet_mkadr.c: Add libc_hidden_def.
4581         * inet/inet_netof.c: Likewise.
4582         * resolv/inet_addr.c: Likewise.
4584         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
4585         clauses from conditionals for now.  Will have to be fixed later
4586         for older compilers.
4588         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
4590 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4592         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
4593         broken alias attribute handling.
4594         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
4596 2002-08-02  Roland McGrath  <roland@frob.com>
4598         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
4599         since it sets the variables we use in a -D switch.
4601 2002-08-02  Roland McGrath  <roland@redhat.com>
4603         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
4604         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
4605         matches long int, not int.
4607         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
4608         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
4609         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4610         * wctype/wctrans.c (wctrans): Likewise.
4611         * wctype/wctype.c (__wctype): Likewise.
4612         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
4614 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4616         * assert/assert.c (__assert_fail): Fix typo in comment.
4618         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
4619         * sunrpc/rpc_thread.c: Define it without static.
4620         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
4622 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4624         * assert/assert.c (__assert_fail): Remove undef.
4625         Replace INTDEF with libc_hidden_def.
4626         * assert/__assert.c (__assert): Remove INTUSE.
4627         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
4628         libc_hidden_weak.
4629         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
4630         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
4631         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
4632         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
4633         libm_hiden_ver): Define.
4634         * include/assert.h (__assert_fail_internal): Remove.
4635         (__assert_fail): Add prototype.  Add hidden_proto.
4636         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
4637         libc_hidden_proto.
4638         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
4639         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
4640         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
4641         Add libc_hidden_proto.
4642         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
4643         __fcntl): Add libc_hidden_proto.  Remove macros.
4644         (__open_internal, __fcntl_internal): Remove.
4645         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
4646         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
4647         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
4648         libc_hiden_proto.
4649         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
4650         libc_hidden_def.
4651         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
4652         Add libc_hidden_def.
4653         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
4654         * sysdeps/generic/open.c (__open): Remove undef.
4655         Add libc_hidden_def.  Remove INTDEF.
4656         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
4657         Add libc_hidden_def.
4658         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
4659         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
4660         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
4661         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4662         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4663         (__libc_fcntl): Add libc_hidden_def.
4664         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
4665         (__open): Remove INTDEF2.  Add libc_hidden_weak.
4666         (__libc_open): Add libc_hidden_def.
4667         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
4668         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
4669         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4670         Add libc_hidden_def.
4671         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
4672         Add libc_hidden_def.
4673         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
4674         undef.
4675         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4676         (__libc_fcntl): Add libc_hidden_def.
4677         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
4678         __getpgid_internal, __chown_internal): Remove.
4679         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
4680         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
4681         __GI___chown): Add.
4682         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
4683         __getpid_internal, __open_internal, __write_internal): Remove.
4684         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
4685         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
4686         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
4687         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
4688         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
4689         Replace INTDEF with libc_hidden_def.
4690         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
4691         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
4692         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
4693         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
4694         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
4695         Add libc_hidden_proto.
4696         * include/sys/poll.h (__poll): Add libc_hidden_proto.
4697         * include/sys/select.h (__select): Likewise.
4698         * include/sys/socket.h (__send): Likewise.
4699         * include/sys/statfs.h (__statfs): Likewise.
4700         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
4701         __getpid, __getpgid, __setpgid, __close, __read, __write,
4702         __getpagesize, __sbrk): Likewise.
4703         (__chown_internal, __dup2_internal, __getpid_internal,
4704         __getpgid_internal, __close_internal, __write_internal,
4705         __getpagesize_internal): Remove.
4706         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
4707         Remove macros.
4708         * include/printf.h (__printf_fp): Add libc_hidden_proto.
4709         * include/sched.h (__sched_setscheduler): Likewise.
4710         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
4711         * include/stdlib.h (__secure_getenv): Likewise.
4712         * include/signal.h (__sigaction, __sigsuspend): Likewise.
4713         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4714         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4715         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4716         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4717         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4718         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4719         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4720         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4721         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4722         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4723         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4724         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4725         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4726         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4727         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4728         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4729         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4730         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4731         * libio/genops.c (__overflow): Add libc_hidden_def.
4732         * libio/iovdprintf.c: Remove libio.h include.
4733         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4734         libc_hidden_weak): Define to nothing if not defined.
4735         (__overflow, __woverflow): Add libc_hidden_proto.
4736         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4737         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4738         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4739         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4740         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4741         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4742         and libc_hidden_def.
4743         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4744         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4745         (__getpgid): Add libc_hidden_proto.
4746         (__bsd_getpgrp): Remove INTUSE.
4747         * resolv/res_init.c (__res_ninit, __res_randomid): Add
4748         libc_hidden_def.
4749         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4750         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4751         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4752         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4753         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4754         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4755         __rpc_thread_createerr): Add libc_hidden_def.
4756         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4757         libc_hidden_def.
4758         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4759         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4760         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4761         * sysdeps/generic/chown.c (__chown): Likewise.
4762         * sysdeps/generic/close.c (__close): Likewise.
4763         * sysdeps/generic/dup2.c (__dup2): Likewise.
4764         * sysdeps/generic/pipe.c (__pipe): Likewise.
4765         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4766         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4767         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4768         * sysdeps/generic/read.c (__libc_read): Likewise.
4769         (__read): Add libc_hidden_weak.
4770         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4771         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4772         * sysdeps/generic/select.c (__select): Likewise.
4773         * sysdeps/generic/send.c (__send): Likewise.
4774         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4775         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4776         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4777         * sysdeps/generic/statfs.c (__statfs): Likewise.
4778         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4779         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4780         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4781         Remove undef and INTDEF.
4782         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4783         * sysdeps/generic/getpid.c (__getpid): Likewise.
4784         * sysdeps/generic/write.c (__libc_write): Likewise.
4785         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4786         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4787         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4788         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4789         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
4790         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4791         Remove undef and INTDEF.
4792         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4793         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4794         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4795         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4796         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4797         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4798         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4799         (__pipe): Add libc_hidden_def.
4800         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4801         libc_hidden_weak.
4802         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4803         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4804         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4805         (__read): Add libc_hidden_weak.
4806         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4807         (__libc_pwrite64): Add libc_hidden_def.
4808         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4809         * sysdeps/mach/hurd/select.c (__select): Likewise.
4810         * sysdeps/mach/hurd/send.c (__send): Likewise.
4811         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4812         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4813         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4814         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4815         * sysdeps/posix/dup2.c: Likewise.
4816         Remove undef and INTDEF.
4817         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4818         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4819         (__pwrite64): Add libc_hidden_weak.
4820         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4821         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4822         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4823         * sysdeps/standalone/close.c (__close): Likewise.
4824         * sysdeps/standalone/write.c (__libc_write): Likewise.
4825         (__write): Add libc_hidden_weak.
4826         * sysdeps/standalone/read.c (__read): Likewise.
4827         (__libc_read): Add libc_hidden_def.
4828         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4829         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4830         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4831         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4832         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4833         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4834         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4835         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4836         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4837         __GI___sigaction): Add.
4838         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4839         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4840         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4841         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4842         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4843         __GI___setpgid): Add.
4844         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4845         Remove undef and INTDEF.
4846         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4847         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4848         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4849         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4850         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4851         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4852         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4853         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4854         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4855         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4856         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4857         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4858         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4859         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4860         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4861         __GI___statfs, __GI___send): Add.
4862         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4863         libc_hidden_ver resp. libc_hidden_def.
4864         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4865         libc_hidden_def.
4866         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4867         Likewise.  Remove undef and INTDEF.
4868         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4869         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4870         __GI___statfs, __GI___send): Add.
4871         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4872         libc_hidden_def.
4873         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4874         Likewise.
4875         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4876         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4877         libc_hidden_ver resp. libc_hidden_def.
4878         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4879         __GI___send): Add.
4880         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4881         Add libc_hidden_weak.
4882         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4883         Add libc_hidden_def.
4884         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4885         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4886         libc_hidden_weak.
4887         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4888         resp. libc_hidden_def.
4889         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4890         libc_hidden_weak.
4891         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
4892         INTDEF.
4893         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4894         Likewise.  Remove undef.
4895         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4896         libc_hidden_weak.
4897         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4898         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4899         libc_hidden_weak.
4900         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4901         libc_hidden_def.
4902         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4903         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4904         Likewise.  Remove undef and INTDEF.
4905         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4906         libc_hidden_def.
4907         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4908         libc_hidden_weak.
4909         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4910         libc_hidden_def.
4911         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4912         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4913         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4914         libc_hidden_weak.
4915         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4916         Add libc_hidden_def.
4917         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4918         __GI___statfs): Add.
4919         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4920         libc_hidden_weak.
4921         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4922         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4923         Remove undef and INTDEF.
4924         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4925         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4926         libc_hidden_def.
4927         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4928         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4929         libc_hidden_weak.
4930         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4931         libc_hidden_def.
4932         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4933         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4934         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4935         Add.
4936         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4937         libc_hidden_def.  Remove undef and INTDEF.
4938         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4939         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4940         libc_hidden_def.
4941         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4942         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4943         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4944         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4945         Remove undef and INTDEF.
4946         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4947         broken visibility attribute handling.
4948         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4950 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4952         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4953         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4955         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4956         previous patch.
4958 2002-06-29  Todd Fries  <todd@openbsd.org>
4960         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4962 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4964         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4966 2002-07-30  Roland McGrath  <roland@redhat.com>
4968         * resolv/resolv.h (_res): Define macro unconditionally.
4969         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4970         * include/resolv.h: ... here.
4971         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4972         as a __thread variable.
4973         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4974         a __thread variable instead of a global.
4975         * resolv/res_data.c [_LIBC]: Don't #undef _res.
4977         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4978         time we test it.
4980         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4982         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4983         decls of memset and memcpy.
4985         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4986         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4988         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4990         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4991         (__libc_tsd_define): Define using __thread.
4993         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4994         (__rpc_thread_variables): Use __libc_tsd_get.
4995         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4996         __rpc_thread_variables, which might allocate what we're about to free.
4998         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4999         thread-local variable.
5000         * resolv/netdb.h (h_errno): Define macro unconditionally.
5001         [_LIBC] (__set_h_errno): Macro moved to ...
5002         * include/netdb.h: ... here.
5003         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
5004         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
5005         [! _LIBC_REENTRANT]: #undef h_errno here.
5007         * include/errno.h: Protect from multiple inclusion.
5009         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
5010         before defining them, since Linux's <linux/posix_types.h> might have
5011         defined them.
5013 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
5015         * malloc/malloc.c (public_cALLOc): Check for overflow on
5016         multiplication.
5017         * sunrpc/xdr_array.c (xdr_array): Likewise.
5018         * sunrpc/rpc/types.h (mem_free): Add comment.
5019         Patch by Solar Designer <solar@openwall.com>.
5021 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
5023         * sysdeps/unix/sysv/linux/kernel-features.h
5024         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
5026 2002-08-01  Roland McGrath  <roland@redhat.com>
5028         * libio/fileops.c (_IO_file_sync_mmap): New function.
5029         (_IO_file_jumps_mmap): Use it.
5030         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
5031         repeat the stat check and resize the mapped buffer as necessary.
5033 2002-07-31  Roland McGrath  <roland@redhat.com>
5035         * libio/fileops.c (decide_maybe_mmap): New static function.
5036         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
5037         mmap the file contents.  Then switch the jump tables to the mmap
5038         tables if it worked, or the vanilla file tables if not.
5039         (_IO_file_underflow_maybe_mmap): New function.
5040         (_IO_file_seekoff_maybe_mmap): New function.
5041         (_IO_file_xsgetn_maybe_mmap): New function.
5042         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
5043         * libio/libioP.h: Declare those.
5044         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
5045         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
5046         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
5047         If the stream is read-only, set its jump tables to those new ones.
5048         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
5049         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
5050         We need the tables set before _IO_file_attach.
5052         * libio/tst-mmap-eofsync.c: New file.
5053         * libio/tst-mmap-fflushsync.c: New file.
5054         * libio/bug-mmap-fflush.c: New file.
5055         * libio/tst-mmap2-eofsync.c: New file.
5056         * libio/Makefile (tests): Add them.
5058         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
5059         _IO_file_underflow_mmap fails, it already set the appropriate bit.
5061 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
5063         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
5064         Declarations moved to <bits/sys_errlist.h>.  Include that file.
5065         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
5066         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
5067         declare sys_errlist and sys_nerr.
5068         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
5069         provide declarations.
5071 2002-07-31  Roland McGrath  <roland@redhat.com>
5073         * elf/rtld.c (dl_main): Fix typo in error message.
5075 2002-07-31  Roland McGrath  <roland@frob.com>
5077         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
5078         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
5079         sysdeps/mach/hurd/dl-sysdep.c change.
5081 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
5083         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
5084         -r`/build/include for kernel headers.
5086         * po/fi.po: New file.
5088 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
5090         * configure.in (static_nss): Set to `yes' if --disable-shared.
5092 2002-07-23  Bruno Haible  <bruno@clisp.org>
5094         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
5095         is set.
5097 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
5099         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
5100         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
5101         arguments.
5103 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
5105         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
5106         alias.
5108 2002-07-21  Bruno Haible  <bruno@clisp.org>
5110         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
5111         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
5112         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
5113         trans_sysdep_tab_offset.
5114         (struct sysdep_segment): New type.
5115         (struct sysdep_string): New type.
5116         (SEGMENTS_END): New macro.
5117         * intl/gettextP.h (struct sysdep_string_desc): New type.
5118         (struct loaded_domain): New fields malloced, n_sysdep_strings,
5119         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
5120         orig_tab, trans_tab, hash_tab to const pointers because they point
5121         into read-only memory.
5122         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
5123         (PRI*): Define fallback values.
5124         (get_sysdep_segment_value): New function.
5125         (_nl_load_domain): Distinguish major and minor revision parts. Add
5126         support for minor revision 1 with system dependent strings.
5127         (_nl_unload_domain): Also free the 'malloced' field.
5128         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
5129         now done in loadmsgcat.c. Add support for system dependent strings.
5131 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
5133         * posix/bug-regex7.c: New file.
5134         * posix/bug-regex8.c: New file.
5135         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
5137 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
5139         * posix/bug-regex4.c (main): Fix typos.
5140         * posix/bug-regex6.c (main): Likewise.
5142 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
5144         * posix/bug-regex6.c (main): Fix warnings.
5146         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
5148         * iconv/iconv_prog.c (main): Improve error message for the cases
5149         where -t and/or -f parameter are missing.
5151 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
5153         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
5154         (re_search): Likewise.
5155         (re_match_2): Likewise.
5156         (re_search_2): Likewise.
5157         (re_search_stub): New function.
5158         (re_search_2_stub): New function.
5159         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
5161 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
5163         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
5164         (re_string_eoi): Use STOP instead of LEN.
5165         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
5166         (re_string_construct): Likewise.
5167         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
5168         * posix/regexec.c (re_search_internal): Add a new argument STOP
5169         so that it can handle the argument STOP of re_search_2 and re_match_2
5170         correctly.
5171         (regexec): Adapt to new I/F of re_search_internal.
5172         (re_search_stub): Likewise.
5174 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
5176         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
5178         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
5180         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
5181         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
5182         of __divdi3.
5184         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
5185         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
5186         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
5187         alias for adjtimex syscall.
5189         * elf/dl-minimal.c: Define __assert_fail_internal.
5190         * assert/assert.c: Likewise.
5191         * include/assert.h: Define __assert_file macro if !SHARED and not
5192         NOT_IN_libc.
5194         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
5195         programs.
5196         * locale/Makefile: Likewise.
5197         * nscd/Makefile: Likewise.
5198         * catgets/Makefile: Likewise.
5200 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5202         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
5203         compute current position.
5205         * stdio-common/tst-fseek.c (main): Improve error messages.
5207         * libio/tst-freopen.c (main): Remove unused variable.
5209         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
5210         succesful seek call.  Simplify error checking.
5212 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
5214         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
5215         * sysdeps/ia64/fpu/libm_support.h: Likewise.
5217 2002-07-19  Roland McGrath  <roland@frob.com>
5219         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
5220         __libc_enable_secure is set.
5222 2002-07-24  Roland McGrath  <roland@frob.com>
5224         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
5225         This implementation supports only IPv4.
5226         * inet/ifaddrs.h: New file.
5227         * sysdeps/generic/ifaddrs.c: New file.
5228         * sysdeps/gnu/ifaddrs.c: New file.
5229         * inet/test-ifaddrs.c: New file.
5230         * inet/Makefile (routines): Add ifaddrs.
5231         (headers): Add ifaddrs.h here.
5232         (tests): Add test-ifaddrs.
5233         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
5235         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
5236         socket call to get an AF_INET socket, instead of using __opensock.
5237         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
5239         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
5240         if not -1 use it instead of calling __opensock.
5241         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
5242         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
5243         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
5245         * sysdeps/mach/hurd/ifreq.h: New file.
5246         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
5247         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
5248         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
5250         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
5251         which gets moved around.  Calculate size of mmap'd buffer instead.
5253 2002-07-24  Philip Blundell  <philb@gnu.org>
5255         * sysdeps/unix/arm/brk.S: Improve schedule.
5256         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
5257         efficient instruction.
5258         (__socket): Optimize return sequence.
5260 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5262         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
5263         sockets on old kernels.
5265 2002-07-22  Philip Blundell  <philb@gnu.org>
5267         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
5268         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
5269         alias.
5271 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5273         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
5274         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
5276         * locale/programs/locarchive.c (add_locale_to_archive): Correct
5277         test to detect duplicate locales.
5279         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
5280         position would be before beginning of file.
5281         (_IO_file_seekoff_mmap): Likewise.
5282         * libio/Makefile (tests): Add bug-fseek.
5283         * libio/bug-fseek.c: New file.
5285         * intl/explodename.c: Remove support for CEN-style locale variables.
5286         It was never used and shouldn't be since it's not portable.
5287         * intl/finddomain.c: Likewise.
5288         * intl/l10nflist.c: Likewise.
5289         * intl/loadinfo.h: Likewise.
5290         * locale/findlocale.c: Likewise.
5292 2002-07-24  Roland McGrath  <roland@frob.com>
5294         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
5295         position, calculate it to take into account an active pushback buffer.
5297         * libio/Makefile (tests): Add bug-ungetc.
5298         * libio/bug-ungetc.c: New file.
5300 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
5302         * sysdeps/generic/libc-tls.c: New file.
5303         * csu/Makefile (routines): Add libc-tls.
5304         (static-only-routines): Add libc-tls.
5305         * elf/dl-support.c (_dl_phdr): New variable.
5306         (_dl_phnum): New variable.
5307         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
5308         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
5309         for !SHARED.  First look through auxiliary vector.  If TLS always
5310         call __pthread_initialize_minimal.
5312         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
5313         in mmap call is never zero.
5315 2002-07-23  Andreas Jaeger  <aj@suse.de>
5317         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
5318         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
5320 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
5322         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
5323         creation and removal of the temp file.
5325         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
5326         file creation.
5327         * test-skeleton.c (create_temp_file): New function.
5329 2002-07-22  Andreas Jaeger  <aj@suse.de>
5331         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
5332         local label.
5334 2002-07-21  Roland McGrath  <roland@frob.com>
5336         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
5337         put -I../include before -I../stdlib so we get the right errno.h et al.
5338         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
5339         (CFLAGS-wcstof.c): Likewise.
5340         (CFLAGS-wcstold.c): Likewise.
5341         (CFLAGS-wcstod_l.c): Likewise.
5342         (CFLAGS-wcstof_l.c): Likewise.
5343         (CFLAGS-wcstold_l.c): Likewise.
5345 2002-07-19  Roland McGrath  <roland@frob.com>
5347         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
5349 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
5351         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
5352         __ASSUME_AT_XID is defined.
5353         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
5354         for 2.4.1 and up.
5355         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
5356         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
5358         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
5359         (CFLAGS-wcstof.c): Likewise.
5360         (CFLAGS-wcstold.c): Likewise.
5361         (CFLAGS-wcstod_l.c): Likewise.
5362         (CFLAGS-wcstof_l.c): Likewise.
5363         (CFLAGS-wcstold_l.c): Likewise.
5365 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
5367         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
5368         __priority_which_t): Always typedef to int for C++.
5370 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
5372         * configure.in: Add test for __thread support in compiler.
5373         * config.h.in: Add HAVE___THREAD.
5374         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
5375         * include/sys/errno.h: Moved to...
5376         * stdlib/sys/errno.h: ...here.  New file.
5377         * stdlib/errno.h: New file.  Moved from...
5378         * include/errno.h: ...here.  Changed into an internal header defining
5379         libc-local things like __set_errno.
5380         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
5381         bits/errno.h.
5382         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
5383         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
5384         either.
5385         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
5386         from...
5387         (_dl_start_final): ...here.  Add code to initialize tls elements from
5388         bootstrap_map.
5389         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
5390         if USE_TLS && HAVE___THREAD.
5391         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
5392         * sysdeps/mach/hurd/bits/errno.h: Likewise.
5393         * sysdeps/standalone/arm/bits/errno.h: Likewise.
5394         * sysdeps/standalone/bits/errno.h: Likewise.
5395         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
5396         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
5397         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
5398         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
5399         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
5400         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
5401         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
5402         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
5403         use GL(dl_rtld_map), use map parameter.
5404         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
5405         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
5406         USE_TLS && HAVE___THREAD.
5407         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
5408         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
5409         TLS code sequence.
5410         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5412         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
5413         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
5414         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
5415         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
5416         * sysdeps/unix/sysv/linux/readv.c: Likewise.
5417         * sysdeps/unix/sysv/linux/writev.c: Likewise.
5419 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
5421         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
5422         MS_INVALIDATE values.
5424 2002-07-17  Andreas Schwab  <schwab@suse.de>
5425             Ulrich Drepper  <drepper@redhat.com>
5427         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
5428         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5429         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5430         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5432 2002-07-01  H.J. Lu  <hjl@gnu.org>
5434         * elf/circleload1.c (load_dso): Call "circlemod1" and check
5435         return value.
5437         * elf/circlemod1.c (circlemod1): Return int.
5438         * elf/circlemod2.c (circlemod2): Likewise.
5439         * elf/circlemod2a.c (circlemod2): Likewise.
5440         * elf/circlemod3.c (circlemod3): Likewise.
5441         (circlemod3a): A new function.
5443 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
5445         * catgets/tst-catgets.c (main): Don't expect results for
5446         untranslated messages.
5448         * glibcbug.in: Fix little typo.  Remove STDIO.
5450         * config.h.in: Fail if __FAST_MATH__ is defined.
5451         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
5452         (CPPFLAGS-test-idouble.c): Likewise.
5453         (CPPFLAGS-test-ildouble.c): Likewise.
5455 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
5457         * intl/tst-gettext.sh: Pass -f option to msgfmt.
5458         * intl/tst-gettext.c: Correctly handle untranslated messages in
5459         positive tests.
5461         * po/de.po: Update from translation team.
5463 2002-07-02  H.J. Lu  <hjl@gnu.org>
5465         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
5466         use ll/sc.
5467         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
5469         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
5470         to 2.4.0 for mips.
5472 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
5474         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
5475         TLS fail if USE_TLS is not defined.
5477         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
5478         and adjust state for seek position.  [PR libc/4070]
5479         * libio/Makefile (tests): Add bug-rewind.
5480         * libio/bug-rewind.c: New file.
5482 2002-07-12  Philip Blundell  <philb@gnu.org>
5484         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
5485         (__backtrace): Use it.
5486         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
5488 2002-07-12  Philip Blundell  <philb@gnu.org>
5490         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
5491         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
5492         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
5493         (elf_machine_rela): Remove unused variable.
5495         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
5496         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
5497         define.
5499 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
5501         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
5503 2002-07-14  Andreas Jaeger  <aj@suse.de>
5505         * sysdeps/x86_64/bits/link.h: Add biarch support.
5507 2002-07-13  Andreas Jaeger  <aj@suse.de>
5509         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
5510         Use correct indices.
5511         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
5513 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5515         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
5516         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
5517         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
5518         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
5519         * sysdeps/s390/s390-32/bits/link.h: Remove.
5520         * sysdeps/s390/s390-64/bits/link.h: Remove.
5521         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
5522         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
5523         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
5524         * sysdeps/s390/bits/wordsize.h: New file.
5525         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
5526         elfclass.h.
5527         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
5528         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
5529         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
5530         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
5531         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
5532         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
5533         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
5534         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
5535         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
5536         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
5537         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
5538         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
5539         resource.h.
5540         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
5541         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
5542         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
5543         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
5544         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
5545         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
5546         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
5547         sigaction.h.
5548         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
5549         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
5550         siginfo.h.
5551         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
5552         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
5553         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
5554         socket.h.
5555         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
5556         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
5557         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
5558         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
5559         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
5560         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
5561         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
5562         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
5563         procfs.h.
5564         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
5565         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
5566         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
5567         ucontext.h.
5568         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
5569         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
5571 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
5573         * Versions.def (libc): Add GLIBC_2.3.
5574         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
5575         * stdlib/canonicalize.c: Add compatibility version for realpath
5576         and make new code available in GLIBC_2.3.
5578 2002-07-06  Bruno Haible  <bruno@clisp.org>
5580         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
5582 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
5584         * resolv/res_hconf.c (_res_hconf_init): Move code into new
5585         function do_init.  Use __libc_once.
5586         (do_init): New function.
5588         * iconvdata/iso8859-11.h: Removed.
5589         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
5590         (distribute): Remove iso8859-11.h.
5591         * iconvdata/tst-tables.sh: Add ISO-8859-11.
5593         * stdio-common/vfscanf.c (inchar): Restore errno from previous
5594         underflow operation if c == (W)EOF.
5596 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5598         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
5599         non-zero, adjust exponent.
5600         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
5601         Remove NO_LONG_DOUBLE aliases.
5602         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
5603         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
5604         (__log1pl): Raise divide by zero and invalid exceptions when needed.
5605         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
5606         1**y and -1**+-Inf.
5607         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
5608         Fix BITS_PER_MP_LIMB 32 extraction.
5609         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
5610         exceptions for qNaNs.
5611         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
5612         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
5613         Raise exceptions when needed.  Don't recurse unnecessarily.
5614         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
5615         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
5616         exceptions for qNaNs.
5617         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
5618         to fix *quo return value sign.
5619         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
5620         case -Inf argument.
5621         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
5623 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5625         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
5626         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
5627         -DNDEBUG.
5629 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5631         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
5632         the result.
5634         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
5635         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
5637         * Versions.def (libthread_db): Add GLIBC_2.3.
5639 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
5641         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
5642         new stream if possible.
5643         * libio/freopen64.c (freopen64): Likewise.
5644         * libio/Makefile (tests): Add tst-freopen.
5645         * libio/tst-freopen.c: New file.
5647 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5649         * libio/stdio.h (obstack_printf): Add format attribute.
5650         (obstack_vprintf): Likewise.
5652 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5654         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
5655         resp. 16 bytes on 32-bit resp. 64-bit platforms.
5656         (re_charset_t, re_string_t): Reorder structure members for 64-bit
5657         architectures.
5659 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5661         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
5662         (init_dfa): ...here.
5664 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5666         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
5667         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
5668         nodes in parse trees.
5669         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
5670         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
5671         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
5672         nodes which can epsilon transit.
5673         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
5674         to IS_EPSILON_NODE macro.
5675         * posix/regexec.c (update_regs): New function to update registers
5676         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
5677         (proceed_next_node): Use the entities of the nodes to determine
5678         whether the node can transit to.
5679         (set_regs): Use update_regs function to update registers.
5681 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5683         * posix/bug-regex4.c (main): Remove duplicate setlocale.
5684         * posix/bug-regex6.c: New file.
5685         * posix/Makefile (tests): Add bug-regex6.
5686         (bug-regex6-ENV): Set LOCPATH.
5688 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5690         * Versions.def [libpthread]: Add GLIBC_2.2.6.
5691         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
5693 2002-07-06  Bruno Haible  <bruno@clisp.org>
5695         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
5697 2002-07-06  Bruno Haible  <bruno@clisp.org>
5699         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
5700         declarations.
5702         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
5704         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
5706         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
5707         not _UTSNAME_H.
5708         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
5710         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
5711         * sysdeps/generic/bits/ustat.h: Likewise.
5713         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5715 2002-07-08  Andreas Jaeger  <aj@suse.de>
5717         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5719 2002-07-08  Andreas Jaeger  <aj@suse.de>
5721         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5723 2002-07-06  Andreas Jaeger  <aj@suse.de>
5725         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5726         * sysdeps/x86_64/fpu/s_copysign.S: New file.
5727         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5728         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5729         * sysdeps/x86_64/fpu/s_finitel.S: New file.
5730         * sysdeps/x86_64/fpu/s_fmax.S: New file.
5731         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5732         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5733         * sysdeps/x86_64/fpu/s_fmin.S: New file.
5734         * sysdeps/x86_64/fpu/s_fminf.S: New file.
5735         * sysdeps/x86_64/fpu/s_fminl.S: New file.
5737 2002-06-05  Brian Youmans <3diff@gnu.org>
5739         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5740         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5741         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5742         * sysdeps/ia64/fpu/e_asin.S: Likewise.
5743         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5744         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5745         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5746         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5747         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5748         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5749         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5750         * sysdeps/ia64/fpu/e_exp.S: Likewise.
5751         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5752         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5753         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5754         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5755         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5756         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5757         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5758         * sysdeps/ia64/fpu/e_log.S: Likewise.
5759         * sysdeps/ia64/fpu/e_logf.S: Likewise.
5760         * sysdeps/ia64/fpu/e_pow.S: Likewise.
5761         * sysdeps/ia64/fpu/e_powf.S: Likewise.
5762         * sysdeps/ia64/fpu/e_powl.S: Likewise.
5763         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5764         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5765         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5766         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5767         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5768         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5769         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5770         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5771         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5772         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5773         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5774         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5775         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5776         * sysdeps/ia64/fpu/libm_error.c: Likewise.
5777         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5778         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5779         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5780         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5781         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5782         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5783         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5784         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5785         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5786         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5787         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5788         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5789         * sysdeps/ia64/fpu/s_logb.S: Likewise.
5790         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5791         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5792         * sysdeps/ia64/fpu/s_modf.S: Likewise.
5793         * sysdeps/ia64/fpu/s_modff.S: Likewise.
5794         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5795         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5796         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5797         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5798         * sysdeps/ia64/fpu/s_rint.S: Likewise.
5799         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5800         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5801         * sysdeps/ia64/fpu/s_round.S: Likewise.
5802         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5803         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5804         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5805         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5806         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5807         * sysdeps/ia64/fpu/s_significand.S: Likewise.
5808         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5809         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5810         * sysdeps/ia64/fpu/s_tan.S: Likewise.
5811         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5812         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5813         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5814         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5815         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5816         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5817         reflect IBM donation of math library to FSF
5818         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5819         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5820         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5821         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5822         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5823         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5824         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5825         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5826         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5827         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5828         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5829         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5830         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5831         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5832         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5833         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5834         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5835         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5836         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5837         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5838         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5839         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5840         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5841         * sysdeps/vax/__longjmp.c: Likewise.
5842         * sysdeps/vax/setjmp.c: Likewise.
5843         * libio/filedoalloc.c: Fixed BSD copying permission notice to
5844         remove advertising clause
5845         * sysdeps/vax/htonl.s: Likewise.
5846         * sysdeps/vax/htons.s: Likewise.
5847         * libio/wfiledoalloc.c: Likewise.
5848         * stdlib/random.c: Likewise.
5849         * stdlib/random_r.c: Likewise.
5850         * sysdeps/mach/sys/reboot.h: Likewise.
5851         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5852         * sysdeps/posix/getaddrinfo.c: Likewise.
5853         * sunrpc/des_impl.c: Updated license permission notice to Lesser
5854         GPL and corrected pointer to point to the correct license.
5856 2002-07-04  Andreas Jaeger  <aj@suse.de>
5858         * scripts/config.guess: New upstream version.
5859         * scripts/config.sub: Likewise.
5861 2002-07-02  Andreas Schwab  <schwab@suse.de>
5863         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5864         in parallel to bumping up the buffer pointer.
5866 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5868         * math/libm-test.inc (acos_test): Add missing L suffix for
5869         expected result.
5870         (cpow_test): Likewise.
5871         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5872         error for acos (0.0625).
5874 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5876         * locale/iso-639.def: Add entry for Ganda.
5877         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5878         definition.
5879         (address_finish): Handle entries with two letter ISO 639 code.
5881         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5882         directory if it existed before.
5883         * iconv/iconvconfig.c: Implement --prefix option.
5885         * math/libm-test.inc (cexp_test): Add missing L suffix for
5886         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
5887         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5888         1.25 i).
5890 2002-05-29  H.J. Lu  <hjl@gnu.org>
5892         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5893         is turned on.
5895 2002-05-28  H.J. Lu  <hjl@gnu.org>
5897         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5898         are not dlopened on the dependency list of a dlopened object.
5900 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5902         * elf/dl-lookup.c (add_dependency): It is not necessary to add
5903         dependencies if they are created between objects which are created
5904         while processing RTLD_NOW for objects loaded as part of the same
5905         dlopen call.
5907 2002-06-14  H.J. Lu  <hjl@gnu.org>
5909         * elf/Makefile (tests): Add circleload1.
5910         (modules-names): Add circlemod1, circlemod2, circlemod3,
5911         circlemod1a, circlemod2a and circlemod3a.
5912         ($(objpfx)circleload1): New target.
5913         ($(objpfx)circleload1.out): Likewise.
5914         ($(objpfx)circlemod1.so): Likewise.
5915         ($(objpfx)circlemod2.so): Likewise.
5916         ($(objpfx)circlemod1a.so): Likewise.
5917         ($(objpfx)circlemod2a.so): Likewise.
5918         * elf/circleload1.c: New file.
5919         * elf/circlemod1.c: New file.
5920         * elf/circlemod1a.c: New file.
5921         * elf/circlemod2.c: New file.
5922         * elf/circlemod2a.c: New file.
5923         * elf/circlemod3.c: New file.
5924         * elf/circlemod3a.c: New file.
5926 2002-06-18  Amos Waterland  <apw@us.ibm.com>
5928         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5929         file descriptor.
5930         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5931         add check for fd not open for writing.
5933         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5934         completed element(s) and do not suspend thread if so.  Patch
5935         heavily modified by drepper.
5937         * rt/tst-aio7.c: New file.  Regression test for problems which the
5938         above three changes fix.
5939         * rt/Makefile (tests): Add tst-aio7.
5941 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
5943         * rt/tst-aio6.c: Fix comment.
5945         * catgets/gencat.c (read_input_file): Handle more than one slash
5946         at end of line correctly [PR libc/3926].
5947         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5949         * catgets/sample.SJIS: Add test case for above bug.
5950         * catgets/test-gencat.c: Adjust test code.
5951         * catgets/test-gencat.sh: Adjust expected results.
5953         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5954         to skip relative relocations.
5955         Patch by Geoff Keating <geoffk@redhat.com>.
5957 2002-05-26  Bruno Haible  <bruno@clisp.org>
5959         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5960         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5961         All callers changed.
5962         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5963         STANDARD_FROM_LOOP_ERR_HANDLER.
5964         (utf8_internal_loop): Likewise.
5965         (ucs2_internal_loop): Likewise.
5966         (internal_ucs2_loop): Perform error handling like in
5967         STANDARD_FROM_LOOP_ERR_HANDLER.
5968         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5969         in STANDARD_FROM_LOOP_ERR_HANDLER.
5970         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5971         handling.
5972         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5973         in STANDARD_FROM_LOOP_ERR_HANDLER.
5974         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5975         handling.
5976         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5977         in STANDARD_FROM_LOOP_ERR_HANDLER.
5978         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5979         handling.
5980         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5981         STANDARD_FROM_LOOP_ERR_HANDLER.
5982         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5983         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5984         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5985         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5986         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5987         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5988         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5989         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5990         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5991         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5992         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5993         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5994         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5995         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5996         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5997         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5998         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5999         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
6000         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
6001         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
6002         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
6003         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
6004         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
6005         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
6006         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
6007         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
6008         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
6009         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
6010         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
6011         an error, still set result = __GCONV_ILLEGAL_INPUT.
6012         (BODY for TO_LOOP): Likewise.
6013         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
6014         STANDARD_FROM_LOOP_ERR_HANDLER.
6015         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6016         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
6017         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
6018         handling.
6019         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6020         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
6021         STANDARD_FROM_LOOP_ERR_HANDLER.
6022         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6023         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
6024         STANDARD_FROM_LOOP_ERR_HANDLER.
6025         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6026         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
6027         STANDARD_FROM_LOOP_ERR_HANDLER.
6028         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6029         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
6030         STANDARD_FROM_LOOP_ERR_HANDLER.
6031         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6032         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
6033         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
6034         handling.
6035         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6036         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
6037         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
6038         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
6040 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6042         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
6043         labels in assembler instructions.
6045 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
6047         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
6048         not enough content is available.
6049         * libio/tst-eof.c: New file.
6050         * libio/Makefile (tests): Add tst-eof.
6052         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
6053         update atime.
6054         * libio/tst-atime.c: New file.
6055         * libio/Makefile (tests): Add tst-atime.
6057         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
6058         handling of overly long words.
6060 2002-06-25  Andreas Jaeger  <aj@suse.de>
6062         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
6063         to not use 32-bit pc relative relocations.
6064         (elf_machine_dynamic): Likewise.
6066 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
6068         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
6069         (__GETDENTS): Check for failed getdents64 syscall.
6070         * dirent/Makefile (tests): Add bug-readdir1.
6071         * dirent/bug-readdir1.c: New file.
6073 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
6075         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
6076         lookups.
6077         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
6078         code.  Print TLS modid and offset for modules containing PT_TLS
6079         segments.
6081 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
6083         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
6084         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
6085         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
6086         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
6088 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
6090         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
6091         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
6092         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
6093         * nss/getXXent_r.c (NEW, NEW1): Define.
6094         (NEW (REENTRANT_GETNAME)): Strong alias to
6095         INTERNAL (REENTRANT_GETNAME).
6096         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
6098 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
6100         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
6101         (_IO_file_jumps_mmap): Use it.
6102         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
6103         * libio/libioP.h: Remove _IO_wdefault_setbuf and
6104         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
6105         prototype.
6106         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
6107         (_IO_wfile_jumps_mmap): Don't use it anymore.
6108         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
6109         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
6110         _IO_wdefault_setbuf.
6111         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
6112         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
6113         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
6115 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
6117         * libio/Makefile (tests): Add tst-mmap-setvbuf.
6118         * libio/tst-mmap-setvbuf.c: New test.
6120 2002-06-21  Andreas Jaeger  <aj@suse.de>
6122         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
6124 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
6126         * include/unistd.h (__fork_internal): Remove.
6127         (__fork): Don't define to __fork_internal.
6128         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
6129         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
6130         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
6131         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
6132         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
6134 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
6136         * po/hr.po: New file.
6138 2002-06-11  Wolfram Gloger  <wg@malloc.de>
6140         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
6141         Reported by Michael Meissner <meissner@redhat.com>.
6143 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
6145         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
6146         Patch by Hans Boehm <hans_boehm@hp.com>.
6148 2002-06-20  Andreas Jaeger  <aj@suse.de>
6150         * math/libm-test.inc: Use exact values as input parameters,
6151         compute output parameters with 36 digits for 128-bit long doubles.
6152         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
6153         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
6154         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
6156 2002-06-13  Stephen L Moshier  <steve@moshier.net>
6158         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
6159         argument or result is subnormal.
6161 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
6163         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
6164         quotient.
6165         * sysdeps/i386/fpu/s_remquof.S: Likewise.
6166         * sysdeps/i386/fpu/s_remquol.S: Likewise.
6168         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
6170 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
6172         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
6173         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
6174         Reported by Peter A. Buhr.
6176 2002-06-15  Roland McGrath  <roland@frob.com>
6178         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
6179         warning.
6181         * sysdeps/mach/hurd/getcwd.c
6182         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
6184         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
6185         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
6187         * sysdeps/alpha/divrem.h: Use local label instead of global one for
6188         jump to local subroutine.
6190 2002-06-14  Roland McGrath  <roland@frob.com>
6192         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
6193         * sysdeps/mach/hurd/Makeconfig: ... here.
6195 2002-06-13  Andreas Schwab  <schwab@suse.de>
6197         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
6198         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6199         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
6201 2002-06-13  Roland McGrath  <roland@frob.com>
6203         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
6204         * hurd/hurdstartup.c (_hurd_startup): Likewise.
6205         Use intptr_t instead of int for argc in stack layout.
6206         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
6207         (_dl_init_first): Likewise.
6208         (_hurd_stack_setup): Likewise.
6209         (init1): Add a cast.
6210         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
6212         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
6213         argument to pfinet_siocgifconf RPC.
6215 2002-06-13  Andreas Schwab  <schwab@suse.de>
6217         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
6218         expansion order.
6220 2002-06-12  Roland McGrath  <roland@frob.com>
6222         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
6223         if already defined.
6224         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
6225         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
6227 2002-06-11  Roland McGrath  <roland@frob.com>
6229         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
6230         file on [!RTLD_STAT64].
6231         * sysdeps/mach/hurd/fxstat64.c: Likewise.
6233         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
6234         (__fdopen): Use INTUSE.
6235         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
6237         * stdio-common/tmpfile64.c: File removed.
6238         * sysdeps/generic/tmpfile64.c: New file.
6239         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
6240         if not already defined.
6241         (tmpfile): Use it in place of __GT_FILE.
6243         * include/unistd.h: Declare __chown_internal.
6245         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
6246         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
6248 2002-06-09  Roland McGrath  <roland@frob.com>
6250         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
6251         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
6252         value of HURD_INTERFACE_VERSION >= 20020609.
6253         * sysdeps/mach/hurd/configure: Regenerated.
6254         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
6255         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
6256         convert a struct stat64 into a struct stat and return 0 or -1
6257         with errno set to EOVERFLOW.
6258         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
6259         for struct statfs64 to struct statfs.
6260         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
6261         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
6262         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
6263         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
6264         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
6265         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
6266         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
6267         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
6268         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
6269         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
6270         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
6271         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
6272         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
6273         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
6274         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
6275         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
6276         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
6277         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
6278         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
6279         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
6280         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
6281         Use struct stat64 for io_stat argument.
6282         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
6283         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
6284         to io_seek.
6285         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
6286         * hurd/fd-write.c (_hurd_fd_write): Likewise.
6287         * hurd/hurd/fd.h: Update decls.
6288         * sysdeps/mach/hurd/getcwd.c
6289         (_hurd_canonicalize_directory_name_internal): Use ino64_t
6290         and struct dirent64.
6291         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
6292         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
6293         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
6294         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
6296 2002-06-08  Roland McGrath  <roland@frob.com>
6298         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
6299         instead of unsigned long int for __allocation and __size members.
6301 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
6303         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
6304         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
6305         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
6306         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
6308 2002-06-07  Roland McGrath  <roland@frob.com>
6310         * sysdeps/mach/hurd/bits/environments.h: File removed.
6312 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
6314         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
6315         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
6316         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
6317         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
6318         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
6319         (sendfile64): Likewise.
6320         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
6321         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
6322         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
6323         Likewise.
6324         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
6326         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
6327         already defined.
6329 2002-06-04  Bruno Haible  <bruno@clisp.org>
6331         * sysdeps/cris/stackinfo.h: New file.
6333         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
6334         to an integer type before performing bit operations on it.
6336 2002-06-05  Roland McGrath  <roland@frob.com>
6338         * sysdeps/generic/sendfile.c: Include <errno.h>.
6339         * sysdeps/generic/sendfile64.c: Likewise.
6341         * io/Makefile (routines): Add sendfile and sendfile64.
6342         (headers): Add sys/sendfile.h to the list.
6343         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
6344         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
6345         * io/sys/sendfile.h: ... here.
6346         * sysdeps/generic/sendfile.c: New file.
6347         * sysdeps/generic/sendfile64.c: New file.
6349         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
6350         Move sendfile, sendfile64 to ...
6351         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
6352         * sysdeps/mach/hurd/sendfile.c: New file.
6353         * sysdeps/mach/hurd/sendfile64.c: New file.
6355         * sysdeps/mach/nanosleep.c: New file.
6357 2002-06-04  Roland McGrath  <roland@frob.com>
6359         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
6360         * sysdeps/alpha/elf/configure: New file (generated).
6362 2002-06-02  Roland McGrath  <roland@frob.com>
6364         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
6366 2002-06-01  Roland McGrath  <roland@frob.com>
6368         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
6369         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
6371 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
6373         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
6374         Add nsmap.
6375         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
6376         Remove nstimes setting.
6377         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
6378         * resolv/res_send.c (res_nsend): Don't close unconditionally if
6379         there is mix of IPv6 and IPv4 nameservers.
6380         Use nsmap array to find free slots and preserve nameserver ordering.
6381         Fix RES_ROTATE.
6383 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
6385         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
6386         use this header with LFS.
6388         * po/sk.po: Update from translation team.
6390 2002-05-28  Andreas Schwab  <schwab@suse.de>
6392         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
6393         message when finding object of wrong class.
6395 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
6397         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
6398         Patch by <radu@netsoft.ro>.
6400 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
6402         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
6403         Add readahead.
6404         * sysdeps/unix/sysv/linux/readahead.c: New file.
6405         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
6406         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
6407         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
6408         Add sendfile64 alias to sendfile syscall.
6409         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6410         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6411         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6412         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
6413         syscall.
6415         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
6416         special section for PIC register loading.
6417         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
6419         * config.h.in: Define HAVE_HIDDEN.
6420         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
6422         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
6424 2002-05-28  Roland McGrath  <roland@frob.com>
6426         * sysdeps/mach/alpha/setfpucw.c: New file.
6428 2002-05-26  Roland McGrath  <roland@frob.com>
6430         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
6431         Use integer_t instead of int for IOC_VOID case.
6433 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
6435         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
6437 2002-05-26  Bruno Haible  <bruno@clisp.org>
6439         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
6440         end of the ISO-8859-7 from idx table.
6442 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
6444         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
6446 2002-05-24  David S. Miller  <davem@redhat.com>
6448         * string/bits/string2.h (memset): Do not try to optimize when
6449         not _STRING_ARCH_unaligned if GCC will do the right thing.
6451 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
6453         * posix/regex.c: Define `inline' as a macro into nothing for the
6454         compilers which lack the keyword.
6455         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
6456         for the compatibility of gawk.
6457         * posix/regcomp.c: Add fake implementation of isblank() for the
6458         environments which lack the function.
6459         Don't use free_charset() in case of non-i18n envs.
6460         (build_range_exp): Don't use i18n related code in case of non-i18n
6461         envs.
6462         (build_collating_symbol): Likewise.
6463         (build_equiv_class): Likewise.
6464         (build_charclass): Likewise.
6465         (re_compile_fastmap_iter): Likewise.
6466         (parse_bracket_exp): Likewise.
6467         (build_word_op): Likewise.
6468         (regfree): Don't use free_charset() in case of non-i18n envs.
6469         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
6470         re_token_type_t in case of non-i18n envs.
6471         Don't define re_charset_t in case of non-i18n envs.
6472         Change the type of wcs of re_string_t from wchar_t to wint_t,
6473         since we store also WEOF.
6474         * posix/regex_internal.c: (re_string_realloc_buffers): Change
6475         the type of wcs of re_string_t from wchar_t to wint_t.
6476         (re_string_reconstruct): Likewise.
6477         (create_ci_newstate): Don't use i18n related code in case of
6478         non-i18n envs.
6479         (create_cd_newstate): Likewise.
6481 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
6483         * iconv/loop.c: Fix typo.
6485 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
6487         * inet/ether_line.c (ether_line): Fix a typo causing only
6488         lower 4 bits of each ethernet address byte being assigned.
6489         Don't modify what line points to.
6490         * inet/tst-ether_aton.c (main): Add ether_line tests.
6492 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
6494         * manual/filesys.texi: Don't make readlink example leak memory
6495         when readlink fails.
6497 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
6499         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
6500         some more security checks.
6502 2002-05-17  David S. Miller  <davem@redhat.com>
6504         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
6506 2002-05-16  David S. Miller  <davem@redhat.com>
6508         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
6509         (elf_machine_dynamic): Use it to force PIC register to be loaded.
6510         (elf_machine_load_address): Likewise.
6511         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
6513         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
6514         is unaligned, do not forget to fully initialize %g1 magic value.
6516         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
6517         register definitions and provide 32-bit variants of structures
6518         during 64-bit builds.
6520         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
6521         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
6522         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
6523         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
6524         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
6525         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
6526         Do not clear implicit one bit here, it must be done post-rounding.
6527         Only pad to the left using left shift if value uses less than the
6528         available fractional bits.
6530 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6532         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
6533         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
6534         (shared-only-routines): Likewise.
6535         * sysdeps/powerpc/libgcc-compat.c: New file.
6536         * sysdeps/wordsize-32/cmpdi2.c: Removed.
6537         * sysdeps/wordsize-32/fixdfdi.c: Removed.
6538         * sysdeps/wordsize-32/fixsfdi.c: Removed.
6539         * sysdeps/wordsize-32/shdi3.c: Removed.
6541 2002-05-16  Bruno Haible  <bruno@clisp.org>
6543         * MakeTAGS (libc.pot): Don't sort the output.
6544         * po/header.pot: Update to match xgettext 0.11 output.
6546 2002-05-16  Bruno Haible  <bruno@clisp.org>
6548         * MakeTAGS (subdirs): Remove duplicates.
6550 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
6552         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
6553         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
6554         alias.
6556 2002-05-19  Andreas Jaeger  <aj@suse.de>
6558         * sysdeps/unix/sysv/linux/configure.in: Warn against an
6559         installation in /usr/local.
6561 2002-05-16  Bruno Haible  <bruno@clisp.org>
6563         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
6564         string as argument of #error.
6566 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
6568         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
6569         don't define static.  Remove old __realpath function.  TC1 of
6570         POSIX 2001 will allow the second parameter to be NULL.
6571         * stdlib/test-canon.c: Comment out test for NULL as second
6572         parameter of realpath.
6574         * time/offtime.c (__offtime): Set errno if overflow is detected.
6576         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
6577         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
6578         dl-brk and dl-sbrk.
6580         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
6581         (fdimf): Likewise.
6583 2002-05-15  Roland McGrath  <roland@frob.com>
6585         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
6587 2002-05-12  Bruno Haible  <bruno@clisp.org>
6589         * iconvdata/testdata/EUC-JISX0213: New file.
6590         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
6591         * iconvdata/testdata/SHIFT_JISX0213: New file.
6592         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
6593         * iconvdata/testdata/ISO-2022-JP-3: New file.
6594         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
6595         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
6596         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
6597         contains comments indicating precomposed characters.
6599 2002-04-21  Bruno Haible  <bruno@clisp.org>
6601         * iconvdata/iso-2022-jp-3.c: New file.
6602         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
6603         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
6604         (LDFLAGS-ISO-2022-JP-3.so): New variable.
6605         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
6606         (distribute): Add iso-2022-jp-3.c.
6608 2002-05-12  Bruno Haible  <bruno@clisp.org>
6610         * iconvdata/tst-table-to.c (main): Restore handling of
6611         transliterations, broken by last patch.
6613 2002-05-12  Bruno Haible  <bruno@clisp.org>
6615         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
6617 2002-05-12  Bruno Haible  <bruno@clisp.org>
6619         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
6620         when there is not enough room in the output buffer.
6621         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
6623 2002-04-20  Bruno Haible  <bruno@clisp.org>
6625         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
6626         macros.
6627         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6628         Also make this macro work if FROM_DIRECTION evaluates to 0.
6629         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6630         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
6631         of consume_incomplete.
6632         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6633         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
6634         4, not 8.
6635         * iconvdata/cp1258.c: Likewise.
6636         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6637         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
6638         not 2.
6639         * iconvdata/ibm933.c: Likewise.
6640         * iconvdata/ibm935.c: Likewise.
6641         * iconvdata/ibm937.c: Likewise.
6642         * iconvdata/ibm939.c: Likewise.
6643         * iconvdata/iso-2022-cn.c: Define
6644         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6645         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
6646         * iconvdata/iso-2022-cn-ext.c: Likewise.
6647         * iconvdata/iso-2022-jp.c: Define
6648         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6649         {MIN,MAX}_NEEDED_{FROM,TO}.
6650         * iconvdata/tcvn5712-1.c: Define
6651         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6652         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
6653         * iconvdata/euc-jisx0213.c: Define
6654         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6655         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
6656         * iconvdata/shift_jisx0213.c: Likewise.
6658 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6660         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
6661         shdi3, fixdfdi, fixsfdi in csu dir.
6662         (shared-only-routines): Likewise.
6663         * sysdeps/wordsize-32/cmpdi2.c: New file.
6664         * sysdeps/wordsize-32/shdi3.c: New file.
6665         * sysdeps/wordsize-32/fixdfdi.c: New file.
6666         * sysdeps/wordsize-32/fixsfdi.c: New file.
6667         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
6668         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
6669         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
6671         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
6672         Only use va_arg if the argument will be used [PR libc/3259].
6674 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
6676         * catgets/catgets.c (catopen): Free buffer if internal catalog
6677         open fails.
6679 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6681         * debug/xtrace.sh: Make more robust.  For realtime tracking use
6682         non-buffering methods.
6683         * debug/pcprofiledump.c: Implement -u option.
6684         Patch by Roger Luethi <rl@hellgate.ch>.
6686 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
6688         * include/netinet/in.h (bindresvport_internal): Add prototype.
6689         * include/rpc/auth.h  (authunix_create_internal,
6690         authunix_create_default_internal, authnone_create_internal,
6691         authdes_pk_create_internal): Add prototypes.
6692         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
6693         clntudp_create_internal, clntudp_bufcreate_internal,
6694         clntunix_create_internal): Add prototypes.
6695         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
6696         svc_getreq_internal, svc_getreq_common_internal,
6697         svc_getreqset_internal, svc_getreq_poll_internal,
6698         svc_register_internal, svc_unregister_internal,
6699         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
6700         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
6701         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
6702         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
6703         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
6704         * inet/rcmd.c (rcmd_af): Use __listen.
6705         (rresvport_af): Use __bind.
6706         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
6707         authunix_create, authunix_create_default, authnone_create,
6708         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
6709         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
6710         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
6711         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
6712         _authenticate, add INTDEF after such function definitions.
6713         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6714         __setsockopt, __getsockname instead of non-__ variants.
6715         * sunrpc/pmap_rmt.c: Likewise.
6716         * sunrpc/rtime.c: Likewise.
6717         * sunrpc/svc_udp.c: Likewise.
6718         * sunrpc/clnt_unix.c: Likewise.
6719         * sunrpc/svc_unix.c: Likewise.
6720         * sunrpc/bindrsvprt.c: Likewise.
6721         * sunrpc/svc_tcp.c: Likewise.
6722         * sunrpc/auth_none.c: Likewise.
6723         * sunrpc/clnt_raw.c: Likewise.
6724         * sunrpc/clnt_tcp.c: Likewise.
6725         * sunrpc/auth_unix.c: Likewise.
6726         * sunrpc/key_call.c: Likewise.
6727         * sunrpc/clnt_gen.c: Likewise.
6728         * sunrpc/pm_getmaps.c: Likewise.
6729         * sunrpc/clnt_simp.c: Likewise.
6730         * sunrpc/pmap_clnt.c: Likewise.
6731         * sunrpc/svc_run.c: Likewise.
6732         * sunrpc/svc.c: Likewise.
6733         * sunrpc/svc_simple.c: Likewise.
6734         * sunrpc/pm_getport.c: Likewise.
6735         * sunrpc/auth_des.c: Likewise.
6736         * sunrpc/svc_auth.c: Likewise.
6737         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6738         __register_frame_info_table_bases, __deregister_frame_info_bases):
6739         Add INTDEF.
6740         (__register_frame_info_bases_internal,
6741         __register_frame_info_table_bases_internal,
6742         __deregister_frame_info_bases_internal): Add prototypes.
6743         (__register_frame_info, __register_frame): Use INTUSE in call to
6744         __register_frame_info_bases.
6745         (__register_frame_info_table): Similarly.
6746         (__deregister_frame_info, __deregister_frame): Similarly.
6747         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6748         sendto as weak alias.
6749         * sysdeps/mach/hurd/sendto.c: Likewise.
6750         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6751         recvfrom as weak alias.
6752         * sysdeps/mach/hurd/recvfrom.c: Likewise.
6753         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6754         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6755         recvmsg as weak alias.
6756         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6757         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6758         sendmsg as weak alias.
6759         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6760         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6761         setsockopt, add setsockopt as weak alias.
6762         * sysdeps/mach/hurd/setsockopt.c: Likewise.
6763         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6764         weak alias.
6765         * sysdeps/mach/hurd/bind.c: Likewise.
6766         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6767         as weak alias.
6768         * sysdeps/mach/hurd/listen.c: Likewise.
6769         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6770         getsockname, add getsockname as weak alias.
6771         * sysdeps/mach/hurd/getsockname.c: Likewise.
6772         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6773         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6774         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6775         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6776         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6777         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6778         Add aliases.
6779         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6780         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6781         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6782         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6783         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6784         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6785         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6786         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6787         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6788         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6789         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6790         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6792 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6794         * locale/programs/localedef.h (show_archive_content): Add verbose
6795         argument.
6796         * locale/programs/localedef.c (main): Adjust caller.
6797         * locale/programs/locarchive.c (struct nameent, struct dataent): New
6798         types.
6799         (nameentcmp, dataentcmp): New functions.
6800         (xstrcmp): Remove.
6801         (show_archive_content): Print verbose listing with --list-archive -v.
6803 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6805         * locale/programs/locarchive.c (open_archive): Take extra argument
6806         readonly.  If true open file with O_RDONLY and don't create the
6807         archive if it doesn't exist.
6808         Adapt all callers.
6809         (close_archive): Don't do anything if fd element is -1.
6810         * locale/programs/localedef.h (open_archive): Adjust prototype.
6811         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6812         call.
6814         * malloc/malloc.c (__posix_memalign): Correct check for size of
6815         alignment value [PR libc/3444].
6817         * include/stdio.h: Remove references to old stdio implementation.
6819         * libio/Makefile (bug-ungetwc2-ENV): Define.
6821 2002-05-13  Roland McGrath  <roland@frob.com>
6823         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6825         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6827 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
6829         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6830         Allocate three, not two, more than LEN when appending '/.'.
6831         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
6832         if NAME ends with '/.' if it is shorter than 2 chars.
6834 2002-05-12  Roland McGrath  <roland@frob.com>
6836         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6837         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6839         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6840         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6842 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6844         * sysdeps/ia64/Makefile: Remove extra endif.
6845         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6847 2002-05-10  Andreas Schwab  <schwab@suse.de>
6849         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6851 2002-05-09  Andreas Jaeger  <aj@suse.de>
6853         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6854         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6855         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6857         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6858         * sysdeps/wordsize-64/glob.c: ...here.
6859         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6860         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6861         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6863 2002-05-08  Roland McGrath  <roland@frob.com>
6865         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6866         O_NOTRANS flag in "." lookup.
6868 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
6870         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6872 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
6874         * locale/duplocale.c (__duplocale): Update special members only
6875         when allocation succeeded.
6877 2002-05-03  Roland McGrath  <roland@frob.com>
6879         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6880         we can only build libc.so.0.3(GLIBC_2.2.6) now.
6882 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
6884         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6885         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6886         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6887         * sysdeps/ia64/ia64libgcc.S: New file.
6889 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
6891         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6893         * malloc/memusage.c: Distinguish anonymous mmap.
6895 2002-05-01  Roland McGrath  <roland@frob.com>
6897         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6898         and use INTDEF on it.
6899         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6901         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6903         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6905 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
6907         * malloc/memusage.c: Add support for tracking mmap & friends.
6908         * malloc/memusage.sh: Implement -m/--mmap option.
6910 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6912         * locale/programs/locarchive.c (create_archive): Add archivefname
6913         argument, create fname from it.
6914         (enlarge_archive): Honour output_prefix.
6915         (open_archive): Likewise.
6917 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6919         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6920         too many stpcpy macros.
6922 2002-04-26  Bruno Haible  <bruno@clisp.org>
6924         * locale/programs/ld-collate.c (collate_read): Cast first argument
6925         for "%.*s" to int.
6927 2002-04-26  Bruno Haible  <bruno@clisp.org>
6929         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6930         __dcngettext_internal): New declarations.
6931         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6932         attribute declarations.
6934 2002-04-30  Roland McGrath  <roland@frob.com>
6936         Removed old GNU stdio implementation; GNU libio is now the only option.
6937         * configure.in: Removed --enable-libio option and @stdio@ subst var.
6938         Define USE_IN_LIBIO unconditionally.
6939         * configure: Regenerated.
6940         * Makeconfig (stdio): Set to libio by default.
6941         * config.make.in (stdio): Variable removed.
6942         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6943         * sysdeps/unix/sysv/linux/configure: Regenerated.
6944         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6945         * sysdeps/mach/hurd/configure: Regenerated.
6946         * stdio/.cvsignore: File removed.
6947         * stdio/Makefile: File removed.
6948         * stdio/Versions: File removed.
6949         * stdio/__fbufsize.c: File removed.
6950         * stdio/__flbf.c: File removed.
6951         * stdio/__fpending.c: File removed.
6952         * stdio/__fpurge.c: File removed.
6953         * stdio/__freadable.c: File removed.
6954         * stdio/__freading.c: File removed.
6955         * stdio/__fsetlocking.c: File removed.
6956         * stdio/__fwritable.c: File removed.
6957         * stdio/__fwriting.c: File removed.
6958         * stdio/clearerr.c: File removed.
6959         * stdio/fclose.c: File removed.
6960         * stdio/fcloseall.c: File removed.
6961         * stdio/feof.c: File removed.
6962         * stdio/ferror.c: File removed.
6963         * stdio/fflush.c: File removed.
6964         * stdio/fgetc.c: File removed.
6965         * stdio/fgetpos.c: File removed.
6966         * stdio/fgets.c: File removed.
6967         * stdio/fileno.c: File removed.
6968         * stdio/fmemopen.c: File removed.
6969         * stdio/fopen.c: File removed.
6970         * stdio/fopncook.c: File removed.
6971         * stdio/fputc.c: File removed.
6972         * stdio/fputs.c: File removed.
6973         * stdio/fread.c: File removed.
6974         * stdio/freopen.c: File removed.
6975         * stdio/fseek.c: File removed.
6976         * stdio/fsetpos.c: File removed.
6977         * stdio/ftell.c: File removed.
6978         * stdio/fwrite.c: File removed.
6979         * stdio/getc.c: File removed.
6980         * stdio/getchar.c: File removed.
6981         * stdio/getdelim.c: File removed.
6982         * stdio/gets.c: File removed.
6983         * stdio/glue.c: File removed.
6984         * stdio/internals.c: File removed.
6985         * stdio/linewrap.c: File removed.
6986         * stdio/linewrap.h: File removed.
6987         * stdio/memstream.c: File removed.
6988         * stdio/newstream.c: File removed.
6989         * stdio/obstream.c: File removed.
6990         * stdio/putc.c: File removed.
6991         * stdio/putchar.c: File removed.
6992         * stdio/puts.c: File removed.
6993         * stdio/rewind.c: File removed.
6994         * stdio/setbuf.c: File removed.
6995         * stdio/setbuffer.c: File removed.
6996         * stdio/setlinebuf.c: File removed.
6997         * stdio/setvbuf.c: File removed.
6998         * stdio/stdio.h: File removed.
6999         * stdio/ungetc.c: File removed.
7000         * stdio/vasprintf.c: File removed.
7001         * stdio/vscanf.c: File removed.
7002         * stdio/vsnprintf.c: File removed.
7003         * stdio/vsprintf.c: File removed.
7004         * stdio/vsscanf.c: File removed.
7005         * sysdeps/generic/defs.c: File removed.
7006         * sysdeps/generic/fdopen.c: File removed.
7007         * sysdeps/generic/pipestream.c: File removed.
7008         * sysdeps/generic/stdio_init.c: File removed.
7009         * sysdeps/generic/sysd-stdio.c: File removed.
7010         * sysdeps/generic/vdprintf.c: File removed.
7011         * sysdeps/mach/hurd/defs.c: File removed.
7012         * sysdeps/mach/hurd/fdopen.c: File removed.
7013         * sysdeps/mach/hurd/pipestream.c: File removed.
7014         * sysdeps/mach/hurd/stdio_init.c: File removed.
7015         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
7016         * sysdeps/mach/hurd/vdprintf.c: File removed.
7017         * sysdeps/posix/defs.c: File removed.
7018         * sysdeps/posix/fdopen.c: File removed.
7019         * sysdeps/posix/pipestream.c: File removed.
7020         * sysdeps/posix/stdio_init.c: File removed.
7021         * sysdeps/posix/vdprintf.c: File removed.
7022         * sysdeps/unix/pipestream.c: File removed.
7023         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
7024         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
7025         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
7027 2002-04-29  Roland McGrath  <roland@frob.com>
7029         * include/libc-symbols.h (link_warning): Use `unused' attribute.
7031 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
7033         * sysdeps/generic/tls.h: Describe what must be defined.
7035         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
7036         glob_in_dir [PR libc/3385].
7037         * posix/globtest.sh: Add test case.
7039         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
7040         //TRANSLIT twice.
7042 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
7044         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
7045         _internal symbol handling.
7046         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
7048 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
7050         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
7051         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
7053 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
7055         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
7056         not _LIBC and RE_ENABLE_I18N.
7057         (build_range_exp): Implement for not _LIBC.
7058         (build_collating_symbol): Likewise.
7059         (parse_bracket_exp): Unify redundant error handlings.
7060         Don't erase mbcset for non matching list in multibyte envs.
7061         (build_word_op): Add '_' to matching list for \w operator.
7062         * posix/regex_internal.c (re_string_construct): Invoke
7063         build_upper_buffer in case of not RE_ENABLE_I18N.
7064         (re_string_reconstruct): Don't touch cur_state in case of not
7065         RE_ENABLE_I18N.
7066         * posix/regex_internal.h (attribute_hidden): New macro in case of
7067         not _LIBC.
7068         (re_charset_t): Define range_starts/ends in case of not _LIBC.
7069         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
7070         RE_ENABLE_I18N.
7071         (transit_state_mb): Likewise.
7072         (check_node_accept_bytes): Implement the code evaluating range
7073         expression in case of not _LIBC.
7074         (find_collation_sequence_value): Hide in case of not _LIBC.
7076 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
7078         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
7079         i386/semctl.c.
7080         (__old_semctl, __new_semctl): Only use va_arg if the argument will
7081         be used.
7083 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
7085         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
7087         * sysdeps/ia64/strncpy.S: Fix recovery code.
7088         Patch by David Mosberger <davidm@hpl.hp.com>.
7090 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
7092         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
7093         GLIBC_2.2.6.
7095 2002-04-14  Bruno Haible  <bruno@clisp.org>
7097         * posix/regex.c (re_max_failures): Add back symbol for binary
7098         compatibility.
7100 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
7102         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
7103         of buffer building functions.
7104         * posix/regex_internal.c (re_string_allocate): New function.
7105         (re_string_realloc_buffers): New function.
7106         (re_string_skip_chars): New function.
7107         (re_string_reconstruct): New function.
7108         (re_string_construct): Adapt it to new interface of buffer building
7109         functions.
7110         (re_string_construct_common): Likewise.
7111         (build_wcs_buffer): Likewise.
7112         (build_wcs_upper_buffer): Likewise.
7113         (build_upper_buffer): Likewise.
7114         (re_string_translate_buffer): Likewise.
7115         (re_string_context_at): Adapt it to variable length buffers.
7116         * posix/regex_internal.h (re_string_t): Add new fields to handle
7117         variable length buffers.
7118         (re_match_context_t): Likewise.
7119         * posix/regexec.c (re_search_internal): Adapt it to new interface
7120         of re_string_t and re_match_context_t.
7121         (acquire_init_state_context): Likewise.
7122         (check_matching): Likewise.
7123         (check_halt_state_context): Likewise.
7124         (proceed_next_node): Likewise.
7125         (set_regs): Likewise.
7126         (sift_states_backward): Likewise.
7127         (clean_state_log_if_need): Likewise.
7128         (sift_states_iter_mb): Likewise.
7129         (sift_states_iter_bkref): Likewise.
7130         (add_epsilon_backreference): Likewise.
7131         (transit_state): Likewise.
7132         (transit_state_sb): Likewise.
7133         (transit_state_mb): Likewise.
7134         (transit_state_bkref): Likewise.
7135         (transit_state_bkref_loop): Likewise.
7136         (check_node_accept): Likewise.
7137         (match_ctx_init): Likewise.
7138         (extend_buffers): New function.
7140 2002-04-21  Bruno Haible  <bruno@clisp.org>
7142         * iconvdata/tst-table.sh: For the second check, use the truncated
7143         GB18030 charmap table, like for the first check.
7145 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
7147         * elf/dl-load.c (open_verify): Correct __lseek parameters.
7148         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
7150 2002-04-23  H.J. Lu  <hjl@gnu.org>
7152         * include/math.h (isfinite): Fix a typo.
7154 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
7156         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
7157         which is created by the test suite.
7159 2002-04-20  Bruno Haible  <bruno@clisp.org>
7161         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
7162         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
7164 2002-04-20  Bruno Haible  <bruno@clisp.org>
7166         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
7167         to avoid gcc warning.
7169 2002-04-20  Bruno Haible  <bruno@clisp.org>
7171         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
7172         of data->__statep->__count.
7174 2002-04-20  Bruno Haible  <bruno@clisp.org>
7176         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
7177         tag characters.
7178         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
7180 2002-04-24  Roland McGrath  <roland@frob.com>
7182         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
7183         use END macro instead of our own .end directive.
7184         Use `callsys' insn mnemonic instead of `call_pal'.
7186         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
7188         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
7189         macro; we need this for Hurd.
7191         Log entry was missing for 2002/03/24 commit of rev 1.8,
7192         goes with 2002-03-17 changes.
7193         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
7194         (sysdep_routines): Append ioperm here.
7195         (sysdep_headers): Append sys/io.h here.
7197 2002-04-23  Roland McGrath  <roland@frob.com>
7199         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
7200         * sysdeps/mach/hurd/sendto.c: Likewise.
7201         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
7202         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
7203         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
7205 2002-04-22  Roland McGrath  <roland@frob.com>
7207         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
7208         failure from i386_io_perm_* RPCs to ENOSYS.
7210 2002-04-22  Andreas Jaeger  <aj@suse.de>
7212         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
7214         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
7216         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
7217         register instead of destroying %rbx.
7219 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
7221         * string/string.h: Declare strerror_r also for XPG6.
7223 2002-04-19  Roland McGrath  <roland@frob.com>
7225         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
7227 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
7229         * Makefile: Add handling of xtests and xcheck targets.
7230         * MakeTAGS: Likewise.
7231         * Makeconfig: Likewise.
7232         * Makerules: Likewise.
7233         * Rules: Likewise.
7234         * manual/Makefile: Likewise.
7235         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
7236         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
7238 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
7240         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
7241         authnone_private_s.
7242         * sunrpc/auth_none.c: Include bits/libc-lock.h.
7243         Delete #ifdef _RPC_THREAD_SAFE_ block.
7244         (authnone_private): Make a struct, not a pointer to struct.
7245         (authnone_private_guard): New once-control variable.
7246         (authnone_create_once): New function, split out of
7247         authnone_create.  No need to allocate memory.
7248         (authnone_create): Just call authnone_create_once via
7249         __libc_once, then return &authnone_private->no_client.
7250         (authnone_marshal): Access private data via CLIENT argument,
7251         not authnone_private pointer.
7252         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
7253         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
7254         authnone_private_s.
7256 2002-04-12  H.J. Lu  <hjl@gnu.org>
7258         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
7260 2002-04-18  Bruno Haible  <bruno@clisp.org>
7262         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
7263         FROM_DIRECTION): Make the FROM direction stateless.
7264         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
7265         FROM_DIRECTION): Likewise.
7267 2002-04-15  Bruno Haible  <bruno@clisp.org>
7269         * iconvdata/JISX0213.TXT: New file.
7270         * iconvdata/jisx0213.h: New file.
7271         * iconvdata/jisx0213.c: New file.
7272         * iconvdata/euc-jisx0213.c: New file.
7273         * iconvdata/shift_jisx0213.c: New file.
7274         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
7275         * iconvdata/EUC-JISX0213.precomposed: New file.
7276         * iconvdata/SHIFT_JISX0213.precomposed: New file.
7277         * iconvdata/SHIFT_JISX0213.irreversible: New file.
7278         * iconvdata/tst-table-to.c (main): Make it work for encodings for
7279         which the "to" direction is stateful.
7280         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
7281         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
7282         SHIFT_JISX0213.
7283         (libJISX0213-routines): New variable.
7284         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
7285         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
7286         (LDFLAGS-libJISX0213.so): New variable.
7287         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
7288         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
7289         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
7291 2002-04-15  Bruno Haible  <bruno@clisp.org>
7293         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
7294         uint32_t.  Update to Unicode 3.2.
7295         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
7296         (BODY for TO_LOOP): Handle the ASCII range specially.
7297         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
7298         * iconvdata/testdata/BIG5HKSCS: Remove a character.
7299         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
7301 2002-04-15  Bruno Haible  <bruno@clisp.org>
7303         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
7304         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
7306 2002-04-15  Bruno Haible  <bruno@clisp.org>
7308         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
7309         (ucs4_to_cns11643): Update.
7310         * iconvdata/cns11643.c: Update to Unicode 3.2.
7311         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
7312         __cns11643_from_ucs4p2_tab): Regenerated.
7313         (__cns11643_from_ucs4p2c_tab): New array.
7314         * iconvdata/cvs11643l1.c: Update comments.
7315         * iconvdata/EUC-TW.irreversible: Remove two entries.
7317 2002-04-15  Bruno Haible  <bruno@clisp.org>
7319         * locale/C-translit.h.in: Update to Unicode 3.2.
7320         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
7321         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
7323 2002-04-15  Bruno Haible  <bruno@clisp.org>
7325         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
7326         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
7328 2002-04-15  Bruno Haible  <bruno@clisp.org>
7330         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
7331         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
7332         always one byte, not 0 bytes in some cases and 2 bytes in others.
7334         * iconvdata/tst-table-from.c (main): Correct the usage message.
7336 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
7338         * posix/regcomp.c (parse_expression): Fix incorrect error code.
7339         (parse_dup_op): Fix error handling like "a{}".
7340         (parse_bracket_exp): Add error handling.
7341         (fetch_number): Add error handling for "a{<very_large_number>}".
7343 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
7345         * posix/regcomp.c (parse_bracket_symbol): Add error handling
7346         in case that the symbol name is too long.
7347         (build_charclass): Handle [:lower:]/[:uppper:] correctly
7348         in case of REG_ICASE.
7350 2002-04-19  Andreas Jaeger  <aj@suse.de>
7352         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
7353         <hartvige@mips.com>.
7355 2002-04-15  H.J. Lu  <hjl@gnu.org>
7357         * include/math.h (__finitel_internal): Declare only if
7358         __NO_LONG_DOUBLE_MATH is not defined.
7359         (__isinfl_internal): Likewise.
7360         (__isnanl_internal): Likewise.
7362         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
7363         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
7364         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
7365         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
7366         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7367         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
7368         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7370         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
7371         __fcntl_internal.
7373         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
7374         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
7376 2002-04-15  Bruno Haible  <bruno@clisp.org>
7378         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
7379         (BODY for TO_LOOP): Likewise.
7380         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
7381         * iconvdata/tst-table.sh: Add support for encodings which contain
7382         precomposed Unicode characters, known to the iconv converter in both
7383         directions but not listed in the charmap.
7384         * iconvdata/IBM856.irreversible: New file.
7385         * iconvdata/IBM922.irreversible: New file.
7386         * iconvdata/IBM1132.irreversible: New file.
7387         * iconvdata/IBM1133.irreversible: New file.
7388         * iconvdata/IBM1160.irreversible: New file.
7389         * iconvdata/IBM1161.irreversible: New file.
7390         * iconvdata/IBM1163.irreversible: New file.
7391         * iconvdata/IBM1164.irreversible: New file.
7392         * iconvdata/ARMSCII-8.irreversible: New file.
7393         * iconvdata/TCVN5712-1.precomposed: New file.
7394         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
7395         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
7396         ARMSCII-8, TCVN5712-1.
7397         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
7398         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
7399         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
7400         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
7402 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
7404         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
7405         for EVENING69.  Include offsets in TZ environment variable.
7407 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
7409         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
7410         avoid compiler warnings.
7412         * locale/programs/localedef.c (main): Always call
7413         construct_output_path.
7415         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
7417         * locale/programs/locfile.c (to_archive): New variable.  To collect
7418         data which has to be added to the locale archive.
7419         (write_all_categories): Take new third parameter with locale name.
7420         Unless no_archive flag set add new locale data to the archive
7421         (write_locale_data): Unless no-archive flag set store generated data
7422         in to_archive data structure instead of generation output file.
7423         Add new parameter with locale category index.
7424         * locale/programs/locfile.h: Add new parameters in declaractions of
7425         write_all_categories and write_locale_data.
7426         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
7427         --add-to-archive, and --delete-from-archive options.  Pass extra
7428         parameter to write_all_categories.
7429         * locale/programs/localedef.h: Add prototypes for functions in
7430         locarchive.c.
7431         * locale/locarchive.h: New file.
7432         * locale/programs/locarchive.c: New file.
7433         * locale/Makefile (distribute): Add programs/locarchive.c and
7434         locarchive.h.
7435         (localedef-modules): Add md5 and locarchive.
7436         Add vpath to crypt subdir for md5.c.
7438         * locale/programs/ld-address.c: Pass locale category ID as new second
7439         parameter to write_locale_data.
7440         * locale/programs/ld-collate.c: Likewise.
7441         * locale/programs/ld-ctype.c: Likewise.
7442         * locale/programs/ld-identification.c: Likewise.
7443         * locale/programs/ld-measurement.c: Likewise.
7444         * locale/programs/ld-messages.c: Likewise.
7445         * locale/programs/ld-monetary.c: Likewise.
7446         * locale/programs/ld-name.c: Likewise.
7447         * locale/programs/ld-numeric.c: Likewise.
7448         * locale/programs/ld-paper.c: Likewise.
7449         * locale/programs/ld-telephone.c: Likewise.
7450         * locale/programs/ld-time.c: Likewise.
7452         * locale/simple-hash.c: Move compute_hashval function from here...
7453         * locale/hashval.h: ...to here.  New file.
7454         * locale/simple-hash.h: Add prototype for compute_hashval.
7456         * include/libintl.h: Minor cleanups.
7458 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
7460         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
7462 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
7464         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
7466 2002-04-14  Bruno Haible  <bruno@clisp.org>
7468         * locale/programs/charmap.c (charmap_read): Don't access result if
7469         result == NULL.
7471 2002-02-17  Andreas Schwab  <schwab@suse.de>
7473         * elf/reldep7.c: New file.
7474         * elf/reldep7mod1.c: New file.
7475         * elf/reldep7mod2.c: New file.
7476         * elf/Makefile: Add rules to build and run reldep7.
7478 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
7480         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
7481         the end of the function.  Pass original flags to recursive call if
7482         add_dependency failed.
7483         (_dl_lookup_versioned_symbol): Likewise.
7485 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
7487         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
7488         early, but check whether it overflowed afterwards.
7489         * time/tst-mktime.c (main): Add new tests.
7491 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
7493         * debug/xtrace.sh: Fix program name in help message.
7494         Patch by Roger Luethi <rl@hellgate.ch>.
7496         * include/sys/stat.h: Add prototypes for __lxstat_internal and
7497         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
7498         NOT_IN_libc.
7499         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
7500         * sysdeps/mach/hurd/lxstat.c: Likewise.
7501         * sysdeps/unix/common/lxstat.c: Likewise.
7502         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
7503         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
7504         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
7505         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
7506         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
7507         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
7508         * sysdeps/mach/hurd/lxstat64.c: Likewise.
7509         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
7510         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
7512         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
7513         prototypes.  Add __mbrlen and __mbrtowc macros.
7514         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
7515         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
7517         * include/unistd.h: Add prototype for __write_internal and add
7518         __libc_write macro is SHARED.
7519         * sysdeps/generic/write.c: Use INTDEF for __write.
7520         * sysdeps/mach/hurd/write.c: Likewise.
7521         * sysdeps/unix/sysv/aix/write.c: Likewise.
7522         * sysdeps/unix/syscalls.list: Add __libc_write alias.
7524         * assert/assert.c: Replace STR_N_SIZE with something usable in
7525         macro arguments.
7526         * assert/assert-perr.c: Likewise.
7528         * include/sys/socket.h: Declare __libc_sa_len_internal and define
7529         SA_LEN macro to use it if not NOT_IN_libc.
7530         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
7532         * include/fcntl.h: Declare __open_internal and define __open and
7533         __libc_open macros if not NOT_IN_libc.
7534         * sysdeps/generic/open.c: Use INTDEF for __open.
7535         * sysdeps/mach/hurd/open.c: Likewise.
7536         * sysdeps/unix/sysv/aix/open.c: Likewise.
7537         * sysdeps/unix/syscalls.list: Add __open_internal alias.
7539         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
7540         has correct number.
7542         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
7543         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
7544         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7545         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7547         * include/wctype.h: Declare __iswalpha_l_internal,
7548         __iswdigit_l_internal, __iswspace_l_internal,
7549         __iswxdigit_l_internal, and __iswctype_internal.  Define
7550         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
7551         __iswxdigit_l macros if not NOT_IN_libc.
7552         * wctype/iswctype.c: Use INTDEF for __iswctype.
7553         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
7555         * include/math.h: Declare __isinf_internal, __isinfl_internal,
7556         __isnan_internal, and __isnanl_internal.
7557         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
7558         __isnan, and __isnanl.
7559         * stdio-common/printf_size.c: Likewise.
7560         * sysdeps/generic/printf_fphex.c: Likewise.
7561         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
7562         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7563         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
7564         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
7565         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
7566         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7567         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
7568         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7569         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
7570         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7571         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
7572         * sysdeps/m68k/s_isinfl.c: Likewise.
7573         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
7574         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
7576         * include/sys/time.h: Declare __gettimeofday_internal and define
7577         __gettimeofday macro if not NOT_IN_libc.
7578         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
7579         * sysdeps/mach/gettimeofday.c: Likewise.
7580         * sysdeps/posix/gettimeofday.c: Likewise.
7581         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
7582         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
7583         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
7584         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
7586         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
7587         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
7588         Remove __lstat and __fstat inline functions.
7589         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
7590         * sysdeps/mach/hurd/fxstat.c: Likewise.
7591         * sysdeps/unix/fxstat.c: Likewise.
7592         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
7593         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
7594         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
7595         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
7596         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
7597         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
7598         * sysdeps/mach/hurd/fxstat64.c: Likewise.
7599         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
7600         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
7602         * include/unistd.h: Declare __getpid_internal and define
7603         __getpid macro if not NOT_IN_libc.
7604         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
7605         * sysdeps/generic/getpid.c: Likewise.
7606         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
7607         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
7609         * include/unistd.h: Declare __getpgid_internal and define
7610         __getpgid macro if not NOT_IN_libc.
7611         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
7612         * sysdeps/mach/hurd/getpgid.c: Likewise.
7613         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
7614         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
7615         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
7616         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
7618         * include/unistd.h: Declare __getpagesize_internal and define
7619         __getpagesize macro if not NOT_IN_libc.
7620         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
7621         __getpagesize.
7622         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
7623         * sysdeps/mach/getpagesize.c: Likewise.
7624         * sysdeps/posix/getpagesize.c: Likewise.
7625         * sysdeps/unix/getpagesize.c: Likewise.
7626         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
7627         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7628         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
7629         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
7631 2002-04-13  Andreas Jaeger  <aj@suse.de>
7633         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
7634         as clobber to reduce register pressure.
7635         (__strpbrk_cg): Likewise.
7636         (__mempcpy_by4): Likewise.
7637         (__strstr_cg): Likewise.
7638         Add prototype for __memrchr.
7640 2002-04-13  Andreas Schwab  <schwab@suse.de>
7642         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
7643         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
7644         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
7646 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
7648         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
7649         check whether the caller prefers getting the most recent version of
7650         a symbol of the earliest version.
7651         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
7652         _dl_do_lookup to also take the new parameter and pass it on.
7653         Change 'explicit' parameter of _dl_lookup_symbol and
7654         _dl_lookup_versioned_symbol to flags.  Adjust tests.
7655         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7656         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
7657         _dl_lookup_versioned_symbol.
7658         * elf/dl-reloc.c: Likewise.
7659         * elf/dl-runtime.c: Likewise.
7660         * elf/dl-sym.c: Likewise.
7661         * sysdeps/mips/dl-machine.h: Likewise.
7663 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7665         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
7666         in a token.
7667         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
7669 2002-04-10  Andreas Jaeger  <aj@suse.de>
7671         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
7673         * include/argz.h: Remove extra char from last patch.
7675 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
7677         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
7678         * sysdeps/unix/sysv/aix/chown.c: Likewise.
7679         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
7680         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
7681         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7682         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
7683         __chown_internal.
7684         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
7686         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
7687         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
7688         * intl/ngettext.c: Likewise.
7690         * include/sys/socket.h: Declare __connect_internal and define
7691         __connect macro if not NOT_IN_libc.
7692         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
7693         * sysdeps/unix/sysv/aix/connect.c: Likewise.
7694         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
7696         * include/unistd.h: Declare __close_internal and define __close macro
7697         if not NOT_IN_libc.
7698         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
7699         WJUMP3): Add extra parenthesis to avoid expanding element names with
7700         macors like __close.
7701         * sysdeps/unix/syscalls.list: Add __close_internal alias.
7703         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
7704         if not NOT_IN_libc.
7705         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
7706         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
7707         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
7709         * include/unistd.h: Declare __fork_internal and define __fork macro
7710         if not NOT_IN_libc.
7711         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
7712         * sysdeps/unix/sysv/aix/fork.c: Likewise.
7713         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7715         * include/stdio_ext.h: Declare __fsetlocking_internal and define
7716         __fsetlocking macro to use it if not NOT_IN_libc.
7717         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7719         * libio/__fbufsize.c: Correct copyright.
7720         * libio/__flbf.c: Likewise.
7721         * libio/__fpending.c: Likewise.
7722         * libio/__fpurge.c: Likewise.
7723         * libio/__freadable.c: Likewise.
7724         * libio/__freading.c: Likewise.
7725         * libio/__fsetlocking.c: Likewise.
7726         * libio/__fwritable.c: Likewise.
7727         * libio/__fwriting.c: Likewise.
7729         * include/stdio.h: Declare __asprintf_internal and define __asprintf
7730         macro to use it if not NOT_IN_libc.
7731         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7733         * include/mntent.h: Declare __setmntent_internal,
7734         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
7735         __getmntent_r, and __endmntent macros to use these functions if not
7736         NOT_IN_libc.
7737         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7738         __endmntent.
7740         * include/math.h: Declare __finite_internal, __finitef_internal, and
7741         __finitel_internal.  Redefine isfinite macro if in libc or libm using
7742         these functions.
7743         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7744         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7745         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7746         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7747         * sysdeps/i386/fpu/s_finitef.S: Likewise.
7748         * sysdeps/i386/fpu/s_finitel.S: Likewise.
7749         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7750         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7751         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7752         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7754         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
7755         to use this function if not NOT_IN_libc.
7756         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7757         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7758         * sysdeps/mach/hurd/fcntl.c: Likewise.
7759         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7760         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7762         * include/argz.h: Declare __argz_count_internal and
7763         __argz_stringify_internal.
7764         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7765         __argz_stringify.
7766         * string/argz-count.c: Use INTDEF for __argz_count.
7767         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7769         * include/stdlib.h: Declare __cxa_atexit_internal and define
7770         __cxa_atexit macro if not NOT_IN_libc.
7771         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7772         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7774         * assert/assert.c: Use INTDEF for __assert_fail.
7775         * assert/__assert.c: Use INTUSE for call to __assert_fail.
7776         * include/assert.h: Declare __assert_fail_internal.
7778         * extra-lib.mk: Mark assignment to lib with override.
7780 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7782         * Makerules: Use cppflags-iterator.mk to add defines for all test
7783         source files.
7785 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
7787         * elf/elf.h: Define R_SH_TLS_xxx macros.
7788         * elf/rtld.c: Remove an extra parenthesis.
7789         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7790         TLS_GD macros.
7791         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7792         * sysdeps/sh/dl-lookupcfg.h: New file.
7793         * sysdeps/sh/dl-tls.h: New file.
7794         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7795         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7796         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7797         R_SH_TLS_TPOFF32 relocations.
7799 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7801         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7802         of NOT_IN_LIBC.
7803         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7804         * include/stdlib.h: Likewise.
7806 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
7808         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7809         instead of _RTLD_LOCAL.
7810         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7811         * include/unistd.h: Likewise.
7812         * sysdeps/generic/ldsodefs.h: Likewise.
7814         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7815         if in libc or ld.so.
7817 2002-04-08  Andreas Jaeger  <aj@suse.de>
7819         * elf/cache.c (print_entry): Support x86-64.
7821 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7823         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7824         with one accessing the locale data structures directly.
7825         * stdio-common/printf-prs.c: Include localeinfo.h for new
7826         MB_CUR_MAX definition.
7828         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7829         is the name of the source file without extension.
7830         * Makefile (distribute): Add cppflags-iterator.mk.
7831         * cppflags-iterator.mk: New file.
7832         * extra-lib.mk: For the sources of the library run
7833         cppflags-iterator.mk.
7835         * include/libintl.h: Declare __dcgettext_internal and
7836         _libc_intl_domainname_internal.  Define __dcgettext using these
7837         two symbols if used in libc itself.
7838         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7839         _libc_intl_domainname_internal.
7840         * argp/argp-parse.c: Likewise.
7841         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7842         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7843         * intl/gettext.c: Likewise.
7844         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7845         alias.
7846         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7847         __dcgettext.
7848         * posix/regex_internal.c (gettext): Likewise.
7850 2002-04-08  Andreas Jaeger  <aj@suse.de>
7852         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7854         * sysdeps/x86_64/fpu/s_llrint.S: New file.
7855         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7856         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7857         * sysdeps/x86_64/fpu/s_lrint.S: New file.
7858         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7859         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7861 2002-04-08  Roland McGrath  <roland@frob.com>
7863         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7864         widening __hurd_fail value.
7866 2002-04-07  Roland McGrath  <roland@frob.com>
7868         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7869         <mach/machine/alpha_instruction.h>.
7870         (_hurd_setup_sighandler): Take proper arguments for current decls.
7871         Update code to use _hurdsig_catch_fault.
7872         Use `callsys' instruction instead of `call_pal'.
7873         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7875         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7876         (ALIGN, at, AT, fp): New macros.
7878 2002-04-06  Roland McGrath  <roland@frob.com>
7880         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7882         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7883         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7885         * sysdeps/mach/hurd/bind.c: Use prototype definition.
7886         * sysdeps/mach/hurd/connect.c: Likewise.
7887         * sysdeps/mach/hurd/getsockopt.c: Likewise.
7888         * sysdeps/mach/hurd/setsockopt.c: Likewise.
7890         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7891         __msg_sig_post RPC.
7893         * hurd/catch-exc.c: Use integer_t instead of int.
7894         * hurd/hurdfault.c: Likewise.
7896         * sysdeps/mach/hurd/alpha/exc2signal.c
7897         (_hurd_exception2signal): Rewritten.
7898         * sysdeps/mach/hurd/alpha/longjmp-ts.c
7899         (_hurd_longjmp_thread_state): Rewritten.
7901 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
7903         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7904         DB_LOOKUP_FCT prototype.
7905         * nss/getXXent_r.c: Likewise.
7906         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7907         * inet/getaliasname_r.c: Likewise.
7908         * inet/getnetbyad_r.c: Likewise.
7909         * inet/getnetbynm_r.c: Likewise.
7910         * inet/getnetent_r.c: Likewise.
7911         * inet/getproto_r.c: Likewise.
7912         * inet/getprtent_r.c: Likewise.
7913         * inet/getprtname_r.c: Likewise.
7914         * inet/getrpcbyname_r.c: Likewise.
7915         * inet/getrpcbynumber_r.c: Likewise.
7916         * inet/getrpcent_r.c: Likewise.
7917         * inet/getservent_r.c: Likewise.
7918         * inet/getsrvbynm_r.c: Likewise.
7919         * inet/getsrvbypt_r.c: Likewise.
7920         * shadow/getspent_r.c: Likewise.
7921         * shadow/getspnam_r.c: Likewise.
7923         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7925         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7926         Use i686-friendly PIC code.
7927         * sysdeps/i386/elf/setjmp.S: Likewise.
7929         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7931         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7932         list.
7933         * elf/Versions: Remove it here.
7935 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
7937         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7938         direction.  Reported by H . J . Lu <hjl@lucon.org>.
7940 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7942         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7943         test just before the test runs.
7944         * intl/tst-translit.sh: Likewise.
7945         * intl/tst-codeset.sh: Likewise.
7947         * timezone/zic.c: Update from tzcode2002c.
7948         * timezone/asia: Update from tzdata2002c.
7949         * timezone/backward: Likewise.
7950         * timezone/europe: Likewise.
7951         * timezone/northamerica: Likewise.
7952         * timezone/northamerica: Likewise.
7953         * timezone/northamerica: Likewise.
7954         * timezone/southamerica: Likewise.
7955         * timezone/zone.tab: Likewise.
7957 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
7959         * sysdeps/generic/brk.c (__curbrk): Declare.
7960         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7961         * sysdeps/generic/dl-sbrk.c: Likewise.
7962         * sysdeps/unix/arm/dl-brk.S: New file.
7963         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7964         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7965         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7966         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7967         * sysdeps/unix/i386/dl-brk.S: New file.
7968         * sysdeps/unix/mips/dl-brk.S: New file.
7969         * sysdeps/unix/sparc/dl-brk.S: New file.
7970         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7971         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7972         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7973         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7975 2002-04-03  Andreas Schwab  <schwab@suse.de>
7977         * Makefile (headers): Add gnu/lib-names.h here instead of
7978         install-others.
7979         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7980         installation rule.
7981         (install-headers): Add dependency on install-headers-nosubdir.
7982         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7983         instead of install-others.
7984         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7985         installation rule.
7987 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7989         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7990         Reported by Sam Roberts <sroberts@uniserve.com>.
7992 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7994         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7995         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7996         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7997         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7999 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
8001         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
8002         (RTLD_START): Ditto.
8003         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
8004         dependency violation.
8006 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
8008         * time/mktime.c (__mktime_internal): Move check for year < 70 below
8009         all variable declarations.
8011 2002-04-04  Andreas Schwab  <schwab@suse.de>
8013         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
8015 2002-04-04  Andreas Jaeger  <aj@suse.de>
8017         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
8018         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
8020         * sysdeps/x86_64/fpu/s_fabs.c: New file.
8021         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
8022         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
8024         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
8026         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
8028         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
8029         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
8031         * configure.in: Handle all mips entries the same.
8033         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
8034         * sysdeps/mips/mips3/*: Likewise.
8035         * sysdeps/mips/p40/bits/endian.h: Likewise.
8037 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
8039         * misc/dirname.c (dirname): Ignore trailing slashes at end of
8040         non-null result [PR libc/2600].
8042         * misc/tst-dirname.c: Add more tests.
8044 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
8046         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
8047         define a code_set_name provide one based on the filename.
8049         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
8051 2001-12-28  Andreas Jaeger  <aj@suse.de>
8053         * time/mktime.c (__mktime_internal): Check for year < 70
8054         [PR libc/2738].
8056 2002-04-03  Andreas Jaeger  <aj@suse.de>
8058         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
8059         shmat.
8060         Reported by Andi Kleen <ak@suse.de>.
8062 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
8064         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
8065         * sysdeps/generic/w_lgammaf.c: Likewise.
8066         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
8068         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
8069         Adjust for new output format of the backtrace functions.
8071         * misc/syslog.c (vsyslog): Only use cleanup handler if
8072         _LIBC_REENTRANT is defined [PR libc/2924].
8074         * libio/Makefile (tests): Add bug-ungetwc2.
8075         * libio/bug-ungetwc2.c: New file.
8077         * manual/install.texi: Typographical and grammatical cleanup.
8078         Patch by Dennis Grace <dgrace@us.ibm.com>.
8080         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
8081         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
8083         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
8084         always "&".  Adjust callers.
8085         Add "_" prefix to several generated definitions.
8086         Patch by paul@serice.net [PR libc/3158].
8088 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8090         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
8091         size of _dl_arm_cap_flags.
8092         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
8094         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
8095         Define as 8.
8097 2002-03-22  H.J. Lu  <hjl@gnu.org>
8099         * scripts/firstversions.awk: Check the first version.
8101 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8103         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
8104         dependencies must be stable to work correctly.
8105         Reported by martin.lubich@datacon.at.
8107         * libio/bug-ungetwc1.c: New file.
8108         * libio/Makefile (tests): Add bug-ungetwc1.
8110         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
8111         if stream was last used for writing.
8113         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
8114         number [PR libc/3111].
8116         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
8117         to ...
8118         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
8120 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
8122         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
8123         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
8124         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
8125         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
8126         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
8128 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
8130         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
8131         dynamic tags.
8133 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8135         * sysdeps/i386/fpu/s_fabs.S: New file.
8136         * sysdeps/i386/fpu/s_fabsf.S: New file.
8137         * sysdeps/i386/fpu/s_fabsl.S: New file.
8138         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
8139         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
8140         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
8142 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8144         * rt/tst-shm.c (do_test): Add one more test for size of shared
8145         memory object.
8147 2002-03-29  Wolfram Gloger  <wg@malloc.de>
8149         * malloc/malloc.c: Add short description and prototypes for
8150         malloc_get_state, malloc_set_state and posix_memalign, for
8151         consistency and to avoid warnings with -Wstrict-prototypes.
8152         Reported by Andreas Jaeger <aj@suse.de>.
8154 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8156         * po/gl.po: Update from translation team.
8158 2002-03-31  Roland McGrath  <roland@frob.com>
8160         * hurd/hurdselect.c (_hurd_select): Fix
8161         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
8162         Use a union rather than casts to compare mach_msg_type_t as int.
8164 2002-03-25  Roland McGrath  <roland@frob.com>
8166         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
8167         check off the end of NAME when it's shorter than 2 chars.
8168         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
8170 2002-03-17  Roland McGrath  <roland@frob.com>
8172         * sysdeps/mach/hurd/i386/sys/io.h: New file.
8173         * sysdeps/mach/hurd/i386/ioperm.c: New file.
8174         * sysdeps/mach/hurd/i386/Dist: Add them.
8175         * sysdeps/mach/hurd/i386/Versions
8176         (libc: GLIBC_2.2.6): New set, add ioperm.
8177         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
8178         (mach_interface_list): Check for mach_i386.defs.
8179         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
8180         * sysdeps/mach/configure: Regenerated.
8182 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
8184         * po/fr.po: Update from translation team.
8186 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8188         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
8189         getpriority from syscalls list.
8191 2002-03-28  Andreas Jaeger  <aj@suse.de>
8193         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
8194         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
8195         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
8196         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
8198 2002-03-27  Andreas Jaeger  <aj@suse.de>
8200         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8201         sigcontext): Follow further kernel change.
8203         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
8204         kernel change.
8206         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
8207         Change for struct sigcontext change.
8209         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
8210         Follow changes in struct sigcontext.
8212         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
8213         sysycall, use wrapper instead.
8215 2002-03-26  Andreas Jaeger  <aj@suse.de>
8217         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
8218         read and write accesses as detailed as possible.
8219         (__memcpy_by2): Likewise.
8220         (__memcpy_g): Likewise.
8221         (memmove): Likewise.
8222         (memcmp): Likewise.
8223         (__memset_ccn_by4): Likewise.
8224         (__memset_ccn_by2): Likewise.
8225         (__memset_gcn_by4): Likewise.
8226         (__memset_gcn_by2): Likewise.
8227         (memchr): Likewise.
8228         (__memrchr): Likewise.
8229         (rawmemchr): Likewise.
8230         (__strlen_g): Likewise.
8231         (__strcpy_g): Likewise.
8232         (__mempcpy_by4): Likewise.
8233         (__mempcpy_by2): Likewise.
8234         (__mempcpy_byn): Likewise.
8235         (__stpcpy_g): Likewise.
8236         (__strncpy_by4): Likewise.
8237         (__strncpy_by2): Likewise.
8238         (__strncpy_byn): Likewise.
8239         (__strncpy_gg): Likewise.
8240         (__strcat_c): Likewise.
8241         (__strcat_g): Likewise.
8242         (__strncat_g): Likewise.
8243         (__strcmp_gg): Likewise.
8244         (__strncmp_g): Likewise.
8245         (__strchr_c): Likewise.
8246         (__strchr_g): Likewise.
8247         (__strchrnul_c): Likewise.
8248         (__strchrnul_g): Likewise.
8249         (__strrchr_c): Likewise.
8250         (__strrchr_g): Likewise.
8251         (__strrchr_c): Likewise.
8252         (__strrchr_g): Likewise.
8253         (__strcspn_c1): Likewise.
8254         (__strcspn_cg): Likewise.
8255         (__strcspn_g): Likewise.
8256         (__strcspn_g): Likewise.
8257         (__strspn_c1): Likewise.
8258         (__strspn_cg): Likewise.
8259         (__strspn_g): Likewise.
8260         (__strspn_g): Likewise.
8261         (__strpbrk_cg): Likewise.
8262         (__strpbrk_g): Likewise.
8263         (__strstr_cg): Likewise.
8264         (__strstr_g): Likewise.
8266         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
8267         Michal Ludvig <mludvig@suse.cz>.
8269         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
8270         compatibilty, adjust for kernel changes.
8272         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8273         sigcontext): Adjust for kernel changes.
8275 2002-03-25  Andreas Jaeger  <aj@suse.de>
8277         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
8278         little endian.
8279         Reported by Artur Zaprzala <zybi@talex.com.pl>.
8281 2002-03-24  Andreas Jaeger  <aj@suse.de>
8283         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
8285         * stdio-common/tst-fdopen.c (main): Remove unused variable.
8287         * iconv/tst-iconv3.c (main): Use correct printf strings.
8289 2002-03-18  Roland McGrath  <roland@frob.com>
8291         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
8292         (CMGROUP_MAX): New macro.
8294 2002-03-23  Roland McGrath  <roland@frob.com>
8296         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
8297         * sysdeps/posix/shm_unlink.c: Likewise.
8299 2002-03-22  Roland McGrath  <roland@frob.com>
8301         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
8302         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
8303         under --enable-libio.
8304         * sysdeps/mach/hurd/configure: Regenerated.
8306 2002-03-23  Roland McGrath  <roland@frob.com>
8308         * sysdeps/mach/hurd/i386/Makefile
8309         (sysdep_routines, shared-only-routines): Don't add framestate,
8310         reverting 2001-10-02 change.
8311         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
8312         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
8313         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8314         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8315         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
8316         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
8317         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8318         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
8319         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
8320         Do it here instead, only if [$(unwind-find-fde) = yes].
8322 2002-03-23  Andreas Jaeger  <aj@suse.de>
8324         * signal/signal.h: Fix typo. Patch by Steve Kemp
8325         <skx@tardis.ed.ac.uk>.
8327 2002-03-22  Andreas Jaeger  <aj@suse.de>
8329         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
8330         getresuid.
8332         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8333         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
8334         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8335         user_fpregs_struct): Rename fwd.
8337         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
8338         Follow sigcontext changes.
8340 2002-03-22  Andreas Jaeger  <aj@suse.de>
8342         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
8343         changes for NaNs on MIPS.
8344         Patch by Hartvig Ekner <hartvige@mips.com>.
8346 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
8348         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
8349         Use realloc if too large.
8350         (addgrbyid): Likewise.
8351         * nscd/hstcache.c (addhstbyname): Likewise.
8352         (addhstbyaddr): Likewise.
8353         (addhstbynamev6): Likewise.
8354         (addhstbyaddrv6): Likewise.
8355         * nscd/pwdcache.c (addpwbyname): Likewise.
8356         (addpwbyuid): Likewise.
8358 2002-03-21  Andreas Jaeger  <aj@suse.de>
8360         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8361         _fpstate): Add separate struct for x86-64.
8363         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8364         user_fpregs_struct): Change member names to follow kernel.
8366 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
8368         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
8369         Correctly close the UDP connection right away [PR libc/3120].
8371 2002-03-20  Andreas Jaeger  <aj@suse.de>
8373         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8374         user_fpregs_struct): Fix for changed kernel struct.
8375         (struct user_regs_struct): Likewise.
8376         (struct user): Likewise.
8377         Add 32-bit x86 compatibility.
8379         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
8381 2002-03-19  Andreas Jaeger  <aj@suse.de>
8383         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
8385 2002-03-18  Andreas Jaeger  <aj@suse.de>
8387         * iconvdata/Makefile: Only run tests when shared libs are
8388         available.
8390 2002-03-17  Andreas Jaeger  <aj@suse.de>
8392         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
8394         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
8396         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
8397         bits.
8399         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
8400         (CAUSE_SHIFT): New macro.
8401         Patch by Hartvig Ekner <hartvige@mips.com>.
8403         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
8404         * sysdeps/generic/unwind-pe.h: Likewise.
8406         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
8407         type to _IO_setb.
8409         * libio/stdio.c (AL2): Define variant when visibility attribute is
8410         not supported.
8412         * include/libc-symbols.h (_INTVARDEF): Define variant when
8413         visibility attribute is not supported.
8415 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
8417         * po/fr.po: Update from translation team.
8419 2002-02-25  Bruno Haible  <bruno@clisp.org>
8421         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
8423 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
8425         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
8426         buffers if _IO_file_attach failed.
8428         * libio/fileops.c (_IO_file_open): Close file descriptor if
8429         _IO_SEEKOFF call failed.
8431 2002-03-15  H.J. Lu  <hjl@gnu.org>
8432             Ulrich Drepper  <drepper@redhat.com>
8434         * configure.in: Check for availability of
8435         init_array/fini_array/preinit_array handling in binutils.
8436         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
8437         * config.make.in (have-initfini-array): New variable.
8439 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
8441         * stdio-common/tst-printf.c (main): Comment out one test which
8442         checked the compiler's ability to fold floating-point constants
8443         but not really printf.
8444         (rfg3): Make s const.
8445         * stdio-common/tst-printf.sh: Adjust for removed test.
8447         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
8448         internal function.  Adjust for internal_function calling convention.
8449         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
8450         as internal_function.
8452         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
8453         hidden.
8455         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
8456         declaration and definition.
8457         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
8458         declaration.
8459         * nss/getXXent_r.c: Likewise.
8460         * nss/nsswitch.h (db_lookup_function): Add internal_function to
8461         definition.
8463         * include/time.h: Declare __localtime_r as hidden.
8465         * include/aliases.h: Declare __getaliasent_r as hidden.
8466         * include/grp.h: Declare __getgrent_r as hidden.
8467         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
8468         __getservent_r, and __getprotoent_r as hidden.
8469         * include/pwd.h: Declare __getpwent_r as hidden.
8470         * include/shadow.h: Declare __getspent_r as hidden.
8471         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
8473         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
8474         and __gconv_transliterate as hidden.
8475         Add internal_function to __gconv_get_path declaration.
8476         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
8477         definition.  Add attribute_hidden to __gconv_read_conf definition.
8479 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
8481         * elf/rtld.c: Declare _environ as hidden.
8482         * sysdeps/generic/dl-environ.c: Likewise.
8483         * sysdeps/generic/dl-sysdep.c: Likewise.
8485         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
8486         _dl_mcount_internal as hidden.
8488         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
8489         * sysdeps/generic/dl-brk.c: New file.
8490         * sysdeps/generic/dl-sbrk.c: New file.
8491         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
8492         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
8494         * elf/dl-minimal.c (malloc): Declare _end as hidden.
8495         (__errno_location): New function.  Declare errno as hidden.
8496         * elf/rtld.c (_dl_argc): Define as hidden.
8497         (_dl_skip_args): Define as hidden.
8498         (_begin, _end): Declare as hidden.
8499         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
8500         * sysdeps/generic/entry.h (_start): Declare as hidden.
8501         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
8502         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
8503         _dl_runtime_resolve and _dl_runtime_profile as hidden.
8504         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
8506 2002-03-14  Roland McGrath  <roland@frob.com>
8508         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
8510         * Makeconfig (%.v.i, %.v): New implicit rules.
8511         (preprocess-versions): Variable removed.
8512         ($(common-objpfx)shlib-versions.v.i): New target giving just the
8513         shlib-versions input files as dependencies.
8514         ($(common-objpfx)soversions.i): Depend on that instead of the input
8515         files.  Use it as input instead of using a pipeline.
8516         (postclean-generated): Append soversions.i, shlib-versions.v, and
8517         shlib-versions.v.i here.
8518         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
8519         the Versions.def input files as dependencies.
8520         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
8521         ($(common-objpfx)Versions.all): Depend on that instead of the input
8522         files.  Use it as input instead of using a pipeline.
8523         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
8524         (postclean-generated): Append those .v and .v.i files here.
8526 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
8528         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
8529         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
8530         Remove.
8532 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
8534         * sysdeps/generic/mp_clz_tab.c: New file.
8535         * sysdeps/i386/mp_clz_tab.c: New file.
8536         * sysdeps/hppa/mp_clz_tab.c: New file.
8537         * sysdeps/powerpc/mp_clz_tab.c: New file.
8538         * stdlib/Makefile (aux): Revert last patch.
8539         * math/Makefile (gmp-objs): Likewise.
8541 2002-03-13  Paul Eggert  <eggert@twinsun.com>
8543         * time/strftime.c: Comment fixes for references to obsolescent
8544         standards, In most cases the simplest fix is to remove the
8545         confusing comments.  Cross-referencing all the standards properly
8546         is a bit of a pain, and it should be enough to put that info in
8547         the documentation as I did in my recent time.texi patch.
8549 2002-03-13  Paul Eggert  <eggert@twinsun.com>
8551         * manual/time.texi (Formatting Calendar Time):
8552         ISO C99 also specifies the E and O modifiers.
8553         %P is a GNU extension, and is not in ISO C99.
8554         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
8555         %T is also in ISO C99.
8556         The RFC 822 example is not valid in arbitrary locales.
8557         Reword the POSIX.2 wording slightly, to make it a bit clearer
8558         that POSIX.2 formats are also supported by later POSIX versions.
8559         If a format was introduced in ISO C99 it is also required by
8560         POSIX.1-2001.
8562 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
8564         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
8565         _sys_nerr_internal with INTVARDEF2.
8566         * include/libc-symbols.h (INTVARDEF2): New macro.
8567         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
8568         (_sys_nerr_internal): Library.
8570         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
8571         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
8573         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
8575 2002-03-13  Wolfram Gloger  <wg@malloc.de>
8577         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
8579 2002-03-02  Andreas Schwab  <schwab@suse.de>
8581         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
8582         'h' flag and positional arg.
8583         * stdio-common/tst-printf.c (rfg3): New function to test
8584         positional arguments.
8585         (main): Fix some warnings.
8587 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
8589         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
8590         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8592 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
8594         * grp/initgroups.c (__nss_group_data): Declare as hidden.
8596         * include/locale.h (_nl_C_locobj): Declare as hidden.
8598         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
8599         * time/strptime.c (_nl_C_LC_TIME): Likewise.
8601         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
8603         * include/sys/gmon.h: Declare _gmonparam as hidden.
8605         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
8606         (__ctype32_wctrans): Likewise.
8607         (__ctype32_width): Likewise.
8609         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
8610         use of __ttyname.
8612         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
8613         Define as hidden.
8614         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
8615         hidden.  Change all users of these variables.
8617         * posix/regex_internal.h (__re_error_msgid): Renamed from
8618         re_error_msgid.  Declare as hidden.
8619         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
8620         hidden.
8622         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
8623         (__printf_function_table): Likewise.
8624         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
8625         hidden.
8626         (__printf_function_table): Likewise.
8628         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
8629         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
8631         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
8632         * nss/nsswitch.c: Declare _nss_*_database as hidden.
8634         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
8635         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
8637 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
8639         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
8640         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8641         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8642         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8643         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8644         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8645         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8646         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8647         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
8648         _nl_C_LC_CTYPE_width: Declare as hidden.
8649         * include/locale.h: Declare _nl_locale_file_list.
8650         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
8651         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
8652         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
8653         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
8654         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
8655         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
8656         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
8657         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
8658         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
8659         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
8660         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
8661         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
8662         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8663         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8664         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8665         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8666         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8667         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8668         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8669         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
8670         _nl_C_LC_CTYPE_width, and as hidden.
8671         * locale/findlocale.c: Declare _nl_C as hidden.
8672         * locale/newlocale.c: Likewise.
8673         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
8674         _nl_locale_file_list.
8675         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
8676         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
8677         Define _nl_C_locobj as hidden.
8679         * malloc/mtrace.c (_mtrace_file): Define as hidden.
8680         (_mtrace_line): Likewise.
8682         * include/time.h: Declare __mon_yday as hidden.
8683         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
8685         * libio/libioP.h: Declare __libio_codecvt as hidden.
8686         * libio/fileops.c: Declare __libio_translit as hidden.
8687         * libio/iofwide.c: Define __libio_translit as hidden.
8689         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
8690         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
8691         * login/getutline_r.c: Likewise.
8692         * login/utmpname.c: Likewise.
8694         * login/utmp-private.h: Declare __libc_utmp_file_functions,
8695         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
8696         __libc_utmp_file_name as hidden.
8698         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
8699         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
8700         * locale/freelocale.c: Likewise.
8701         * locale/lc-time.c: Likewise.
8703         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
8704         (__libc_ptyname2): Likewise.
8705         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
8706         hidden.
8707         (__libc_ptyname2): Likewise.
8709         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
8710         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
8711         * sysdeps/generic/init-first.c: Likewise.
8712         * sysdeps/i386/init-first.c: Likewise.
8713         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8714         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8715         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8716         * sysdeps/sh/init-first.c: Likewise.
8717         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8718         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8720         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8721         (_itowa_upper_digits): Likewise.
8723         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8724         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8725         as hidden.
8727         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8728         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8729         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8730         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8732         * gmon/gmon.c (__bb_head): Define as hidden.
8733         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8735         * argp/argp-parse.c (_argp_hang): Define as static.
8737         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8738         handling in latest compilers.
8740         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8741         define alias.
8742         * libio/fileops.c (_IO_file_jumps): Likewise.
8743         * libio/stdfiles.c (_IO_list_all): Likewise.
8744         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8746         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8747         include/malloc.h.
8748         * include/malloc.h: Add __libc_malloc_initialized declaration
8749         here.  Mark variable hidden.
8750         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8752         * elf/dl-open.c (__libc_argc): Declare as hidden.
8753         (__libc_argv): Likewise.
8754         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8755         (__libc_argv): Likewise.
8756         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8757         __libc_argv as hidden.
8758         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8759         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8760         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8761         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8763         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8764         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8765         * stdlib/erand48.c: Likewise.
8766         * stdlib/jrand48.c: Likewise.
8767         * stdlib/lcong48.c: Likewise.
8768         * stdlib/lrand48.c: Likewise.
8769         * stdlib/mrand48.c: Likewise.
8770         * stdlib/nrand48.c: Likewise.
8771         * stdlib/seed48.c: Likewise.
8772         * stdlib/srand48.c: Likewise.
8774         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8775         (_itoa_lower_digits_internal): New declaration.
8776         (_itoa_upper_digits_internal): New declaration.
8777         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8778         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8779         (_itoa_upper_digits_internal): New declaration.
8780         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8781         _itoa_lower_digits.
8782         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8783         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8785         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8786         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8788         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8789         (_itowa_lower_digits): Likewise.
8790         (_itowa_upper_digits): Likewise.
8791         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8792         (_itowa_upper_digits): Likewise.
8794         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8795         not already defined.
8796         (GERMANIC_PLURAL): Declare as hidden.
8798         * posix/getopt.c (__getopt_initialized): Declare as hidden.
8799         (attribute_hidden): Define as empty macro if not already defined.
8801         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8802         (__gconv_max_path_elem_len): Likewise.
8803         (__gconv_path_envvar): Likewise.
8805         * math/Makefile (gmp-objs): Remove mp_clz_tab.
8806         * stdlib/Makefile (aux): Remove mp_clz_tab.
8807         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
8809         * stdlib/exit.h (__exit_funcs): Declare as hidden.
8811         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8813         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8814         _nl_category_names, _nl_category_name_sizes, _nl_current,
8815         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8817         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8818         (_nl_current_default_domain): Likewise
8819         (_nl_state_lock): Likewise.
8820         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8821         (_nl_current_default_domain): Likewise
8822         (_nl_state_lock): Likewise.
8823         * intl/bindtextdom.c (_nl_state_lock): Likewise.
8825         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8826         (_fpioconst_pow10): Likewise.
8828         * include/time.h (_tmbuf): Add attribute_hidden.
8830         * time/tzset.c (tzstring_list): Define as static.
8832         * include/time.h: Add attribute_hidden to __tzname_cur_max and
8833         __use_tzfile declaration.
8835         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8836         and __wcsmbs_last_locale declaration.
8838 2002-02-25  Paul Eggert  <eggert@twinsun.com>
8840         * timezone/Makefile (tzbases): Move systemv from here...
8841         (tzlinks): to here, since the entries in systemv were all changed
8842         from Zone to Link lines in tz-2001a.  Bug reported (and patch
8843         tested) by Peter Breitenlohner.
8845 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
8847         * time/tst-posixtz.c (tests): Add new tests.
8848         (main): Test whether tzset() sets daylight properly.
8850 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8852         * time/tzset.c (tz_compute): Move __daylight, __tzname and
8853         __tzname_cur_max setting...
8854         (tzset_internal): ...here.
8856 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8858         * time/tzset.c (compute_change): Don't return any value.
8859         (tz_compute): Likewise.  Don't handle southern hemisphere here.
8860         (__tz_convert): But here.
8862 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8864         * manual/examples/mkfsock.c: Include <string.h> as well.
8865         Patch by Alain De Carolis <alaind@wseurope.com>.
8867 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
8869         * posix/regexec.c (re_match): Fix incorrect register sizes.
8870         (re_search): Likewise.
8872 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8874         * posix/regcomp.c (regfree): Remove a disused condition.
8875         * posix/regex_internal.c (re_acquire_state): Likewise.
8876         (re_acquire_state_context): Likewise.
8877         (register_state): Remove a redundant malloc invocation.
8878         * posix/regex_internal.h: (re_state_table_entry): Simplify
8879         the structure.
8881 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8883         * posix/regcomp.c (regcomp): Add __builtin_expect to error
8884         handling conditions.
8885         (regerror): Likewise.
8886         (regfree): Likewise.
8887         (re_compile_internal): Likewise.
8888         (init_dfa): Likewise.
8889         (init_word_char): Likewise.
8890         (create_initial_state): Likewise.
8891         (analyze): Likewise.
8892         (analyze_tree): Likewise.
8893         (duplicate_node): Likewise.
8894         (calc_eclosure): Likewise.
8895         (calc_eclosure_iter): Likewise.
8896         (parse): Likewise.
8897         (parse_reg_exp): Likewise.
8898         (parse_branch): Likewise.
8899         (parse_expression): Likewise.
8900         (parse_subexp): Likewise.
8901         (parse_dup_op): Likewise.
8902         (parse_bracket_exp): Likewise.
8903         (build_equiv_class): Likewise.
8904         (build_charclass): Likewise.
8905         (build_word_op): Likewise.
8906         (fetch_number): Likewise.
8907         (create_tree): Likewise.
8908         (duplicate_tree): Likewise.
8909         * posix/regex.c (BE): New macro.
8910         * posix/regexec.c (re_match): Add __builtin_expect to error
8911         handling conditions.
8912         (re_match_2): Likewise.
8913         (re_search): Likewise.
8914         (re_search_internal): Likewise.
8915         (check_matching): Likewise.
8916         (proceed_next_node): Likewise.
8917         (set_regs): Likewise.
8918         (sift_states_backward): Likewise.
8919         (add_epsilon_backreference): Likewise.
8920         (transit_state): Likewise.
8921         (transit_state_sb): Likewise.
8922         (transit_state_mb): Likewise.
8923         (transit_state_bkref): Likewise.
8924         (transit_state_bkref_loop): Likewise.
8925         (build_trtable): Likewise.
8926         (group_nodes_into_DFAstates): Likewise.
8927         (match_ctx_init): Likewise.
8928         (match_ctx_add_entry): Likewise.
8929         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8930         to error handling conditions.
8931         (re_string_construct_toupper): Likewise.
8932         (build_wcs_buffer): Likewise.
8933         (build_wcs_upper_buffer): Likewise.
8934         (build_upper_buffer): Likewise.
8935         (re_string_translate_buffer): Likewise.
8936         (re_node_set_alloc): Likewise.
8937         (re_node_set_init_1): Likewise.
8938         (re_node_set_init_2): Likewise.
8939         (re_node_set_init_copy): Likewise.
8940         (re_node_set_intersect): Likewise.
8941         (re_node_set_init_union): Likewise.
8942         (re_node_set_merge): Likewise.
8943         (re_node_set_insert): Likewise.
8944         (re_dfa_add_node): Likewise.
8945         (re_acquire_state): Likewise.
8946         (re_acquire_state_context): Likewise.
8947         (create_new_state_common): Likewise.
8948         (register_state): Likewise.
8949         (create_ci_new_state): Likewise.
8950         (create_cd_new_state): Likewise.
8951         (re_string_context_at): Remove redundant condition.
8953 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8955         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8957         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8959 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
8961         * sysdeps/i386/elf/configure.in: Fix comment.
8963         * sysdeps/sparc/sparc64/configure.in: New file.
8964         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8965         if .dynamic comes before .got.
8966         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8968         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8969         HP_TIMING_ACCUM): Fix typos.
8971 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8973         * string/strfry.c: Add some more randomness to the seed.
8974         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8976         * po/es.po: Update from translation team.
8977         * po/fr.po: Likewise.
8979         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8981         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8982         when determining type of format.
8983         Patch by James Antill <james@anqd.org> [PR libc/2787].
8985 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
8987         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8989 2002-03-11  Roland McGrath  <roland@frob.com>
8991         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8993         * Versions.def (libc): Add GLIBC_2.2.6.
8994         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8995         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8996         __errno_location instead of __hurd_errno_location, and don't inline it.
8997         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8998         * hurd/errno.c: New file.
8999         * hurd/Makefile (routines): Add errno.
9001 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
9003         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
9004         ridiculously large widths and precisions [PR libc/3026].
9006 2002-03-11  Andreas Jaeger  <aj@suse.de>
9008         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
9009         support.
9010         Patch by Susanne Oberhauser <froh@SuSE.de>.
9012 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
9014         * inet/rexec.c (ahostbuf): Define as static.
9016         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
9017         (__ctype32_wctrans): Likewise.
9018         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
9019         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
9020         (__ctype32_wctrans): Likewise.
9021         (__ctype32_width): Likewise.
9023         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
9024         They were never exported anyway.
9026         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
9027         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
9028         exported.
9029         * include/sys/gmon.h: Declare _gmonparam.
9031         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
9032         symbols for getdents64.  They were never exported.
9034 2002-03-09  Roland McGrath  <roland@frob.com>
9036         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
9037         Reported by Jon Arney <jarney1@cox.net>.
9039 2002-02-23  Roland McGrath  <roland@frob.com>
9041         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
9042         declaration.
9043         (__hurd_errno_location): Function removed.
9045 2002-03-06  Andreas Jaeger  <aj@suse.de>
9047         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
9048         32-bit.
9050 2002-03-04  Andreas Jaeger  <aj@suse.de>
9052         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
9054         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
9055         x86-64.
9057         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
9059         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
9061         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
9063         * sysdeps/x86_64/bits/setjmp.h: New file.
9065         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
9067         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
9069         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
9070         for x86.
9071         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
9072         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
9074 2002-02-28  Bo Thorsen  <bo@suse.de>
9076         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
9077         version.
9079 2002-03-03  Andreas Jaeger  <aj@suse.de>
9081         * sysdeps/x86_64/bits/wordsize.h: New file.
9083         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
9084         * elf/tst-tlsmod1.c: Likewise.
9086         * posix/regcomp.c: Get regex.h from include dir for internal
9087         prototypes.
9089         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
9090         to libc-internal.h and include it.
9091         * include/libc-internal.h: Add __init_misc.
9093         * misc/init-misc.c: Include libc-internal.h for prototypes.
9095         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
9097         * misc/error.c [_LIBC]: Include libioP.h for prototype of
9098         _IO_putc_internal.
9100 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
9102         * posix/regcomp.c: Compatibility changes to allow using the code
9103         outside glibc.
9105 2002-02-28  Hartvig Ekner <hartvige@mips.com>
9107         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
9108         compiled non-PIC.
9110 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
9112         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
9113         of .str elements in the returned data structure.
9115         * elf/elf.h: Add Alpha TLS bits.
9117 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
9119         * sysdeps/unix/sysv/linux/nice.c: New file.
9121 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
9123         * elf/Makefile (dl-routines): Add dl-origin.
9124         (elide-routines.os): Add dl-origin.
9125         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
9126         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
9127         _dl_debug_state.
9128         * include/libc-symbols.c: Define attribute_hidden depending on
9129         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
9131         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
9132         * elf/dl-load.c: Likewise.
9133         * elf/rtld.c: Likewise.
9134         * include/unistd.h: Declare __libc_enable_secure_internal.
9135         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
9136         Use INTUSE with __libc_enable_secure.
9137         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
9139         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
9140         * elf/dl-error.c: Likewise,
9141         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
9143         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
9144         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
9145         function definition.  Use INTDEF with _dl_get_origin.
9146         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9148         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
9149         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
9151         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
9152         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
9153         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
9155         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
9156         * elf/dl-deps.c: Likewise.
9157         * elf/dl-error.c: Likewise.
9158         * elf/dl-fini.c: Likewise.
9159         * elf/dl-init.c: Likewise.
9160         * elf/dl-load.c: Likewise.
9161         * elf/dl-lookup.c: Likewise.
9162         * elf/dl-reloc.c: Likewise.
9163         * elf/dl-version.c: Likewise.
9164         * elf/do-lookup.h: Likewise.
9165         * sysdeps/arm/dl-machine.h: Likewise.
9166         * sysdeps/cris/dl-machine.h: Likewise.
9167         * sysdeps/hppa/dl-machine.h: Likewise.
9168         * sysdeps/i386/dl-machine.h: Likewise.
9169         * sysdeps/m68k/dl-machine.h: Likewise.
9170         * sysdeps/powerpc/dl-machine.h: Likewise.
9171         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9172         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9173         * sysdeps/sh/dl-machine.h: Likewise.
9174         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
9175         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
9176         * sysdeps/x86_64/dl-machine.h: Likewise.
9177         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
9178         _dl_argv[0].  Use INTUSE with _dl_argv.
9179         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
9180         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
9182 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
9184         * elf/rtld.c (_rtld_global): Remove .protected.
9185         (_rtld_local): Strong alias to _rtld_global.
9186         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
9187         only .os object.
9188         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
9189         _rtld_local instead of _rtld_global.
9190         (_rtld_local): Add hidden extern, possibly in .sdata section.
9191         * configure.in: Add tests for visibility attribute and .sdata.
9192         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
9193         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
9194         * sysdeps/arm/dl-machine.h: Likewise.
9195         * sysdeps/generic/ldsodefs.h: Likewise.
9196         * sysdeps/hppa/dl-machine.h: Likewise.
9197         * sysdeps/cris/dl-machine.h: Likewise.
9198         * sysdeps/i386/dl-machine.h: Likewise.
9199         * sysdeps/ia64/dl-machine.h: Likewise.
9200         * sysdeps/m68k/dl-machine.h: Likewise.
9201         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9202         * sysdeps/mips/dl-machine.h: Likewise.
9203         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9204         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9205         * sysdeps/sh/dl-machine.h: Likewise.
9206         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9207         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9208         * sysdeps/x86_64/dl-machine.h: Likewise.
9210 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
9212         * login/login.c (login): Always initialize ut_line field
9213         [PR libc/2991].
9215 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
9217         * sysdeps/i386/Makefile (sysdep_routines): Add
9218         divdi3 in csu dir.
9219         (shared-only-routines): Likewise.
9220         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
9221         (shared-only-routines): Likewise.
9222         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
9223         (shared-only-routines): Likewise.
9224         * sysdeps/wordsize-32/divdi3.c: New file.
9226 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
9228         * locale/iso-4217.def: Remove obsolete currencies for countries
9229         with Euro.
9231 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
9233         * posix/regcomp.c (regcomp): Remove a redundant condition.
9234         (init_word_char): Add a check on malloc failure.
9235         (create_initial_state): Likewise.
9236         (duplicate_node): Likewise.
9237         (calc_eclosure): Likewise.
9238         (calc_eclosure_iter): Likewise.
9239         (parse_expression): Likewise.
9240         (parse_bracket_exp): Remove unnecessary malloc invocations.
9241         (build_equiv_class): Likewise.
9242         (build_charclass): Likewise.
9243         * posix/regex_internal.c (re_node_set_intersect): Add a check
9244         on malloc failure.
9245         (re_node_set_add_intersect): Likewise.
9246         (re_node_set_merge): Likewise.
9247         (re_acquire_state): Likewise.
9248         (re_acquire_state_context): Likewise.
9249         (create_newstate_common): Likewise.
9250         (register_state): Likewise.
9251         (create_ci_newstate): Likewise.
9252         (create_cd_newstate): Likewise.
9253         * posix/regex_internal.h: Fix prototypes of re_acquire_state
9254         and re_acquire_state_context.
9255         * posix/regexec.c (regexec): Suit it to the error handling of
9256         re_search_internal.
9257         (re_match): Likewise.
9258         (re_search): Likewise.
9259         (re_search_internal): Add a check on malloc failure.
9260         (acquire_init_state_context): Likewise.
9261         (check_matching): Likewise.
9262         (proceed_next_node): Likewise.
9263         (set_regs): Likewise.
9264         (sift_states_backward): Likewise.
9265         (sift_states_iter_bkref): Likewise.
9266         (add_epsilon_backreference): Likewise.
9267         (transit_state): Likewise.
9268         (transit_state_sb): Likewise.
9269         (transit_state_mb): Likewise.
9270         (transit_state_bkref_loop): Likewise.
9271         (build_trtable): Likewise.
9272         (group_nodes_into_DFAstates): Likewise.
9273         (match_ctx_init): Likewise.
9274         (match_ctx_add_entry): Likewise.
9276 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
9278         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
9279         l_libname if profiling is enabled [PR libc/2916].
9281         * sysdeps/ia64/dl-tls.h: New file.
9283 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
9285         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
9286         Work around an Alpha gas bug.
9288 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
9290         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
9291         uses read to load the catalog.
9292         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
9294 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
9296         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
9297         regex_internal.c, and regex_internal.h.
9298         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
9299         * posix/regex.c: Complete rewrite.
9300         * posix/regexec.c: New file.
9301         * posix/regcomp.c: New file.
9302         * posix/regex_internal.c: New file.
9303         * posix/regex_internal.h: New file.
9304         * posix/regex.h (RE_ICASE): New macro.
9305         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
9307         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
9308         ungetwc.  It's a macro.
9309         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
9310         implementation.
9311         Reported by Jason Merrill <jason@redhat.com>.
9313 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
9315         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
9316         position to fp->_offset if it is set.
9317         * stdio-common/Makefile (tests): Add tst-fdopen.
9318         * stdio-common/tst-fdopen.c: New test.
9320 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
9322         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
9323         * stdio-common/tst-ungetc.c (main): Add another test.
9325 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
9327         * assert/assert-perr.c: Use INTUSE to reference functions and variables
9328         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
9329         aliases.  Add prototypes for the new aliases.
9330         * assert/assert.c: Likewise.
9331         * include/libc-symbols.h: Likewise.
9332         * include/stdio.h: Likewise.
9333         * include/netinet/in.h: Likewise.
9334         * include/rpc/auth.h: Likewise.
9335         * include/rpc/auth_unix.h: Likewise.
9336         * include/rpc/key_prot.h: Likewise.
9337         * include/rpc/pmap_prot.h: Likewise.
9338         * include/rpc/pmap_rmt.h: Likewise.
9339         * include/rpc/rpc_msg.h: Likewise.
9340         * include/rpc/xdr.h: Likewise.
9341         * inet/gethstbyad_r.c: Likewise.
9342         * inet/gethstbynm2_r.c: Likewise.
9343         * inet/gethstbynm_r.c: Likewise.
9344         * inet/gethstent_r.c: Likewise.
9345         * inet/in6_addr.c: Likewise.
9346         * libio/__fpurge.c: Likewise.
9347         * libio/filedoalloc.c: Likewise.
9348         * libio/fileops.c: Likewise.
9349         * libio/ftello.c: Likewise.
9350         * libio/ftello64.c: Likewise.
9351         * libio/genops.c: Likewise.
9352         * libio/iofclose.c: Likewise.
9353         * libio/iofdopen.c: Likewise.
9354         * libio/iofflush.c: Likewise.
9355         * libio/iofflush_u.c: Likewise.
9356         * libio/iofgetpos.c: Likewise.
9357         * libio/iofgetpos64.c: Likewise.
9358         * libio/iofgets.c: Likewise.
9359         * libio/iofgets_u.c: Likewise.
9360         * libio/iofopen.c: Likewise.
9361         * libio/iofopncook.c: Likewise.
9362         * libio/iofputs.c: Likewise.
9363         * libio/iofread.c: Likewise.
9364         * libio/iofread_u.c: Likewise.
9365         * libio/iofsetpos.c: Likewise.
9366         * libio/iofsetpos64.c: Likewise.
9367         * libio/ioftell.c: Likewise.
9368         * libio/iofwrite.c: Likewise.
9369         * libio/iogetline.c: Likewise.
9370         * libio/iogets.c: Likewise.
9371         * libio/iogetwline.c: Likewise.
9372         * libio/iolibio.h: Likewise.
9373         * libio/iopadn.c: Likewise.
9374         * libio/iopopen.c: Likewise.
9375         * libio/ioseekoff.c: Likewise.
9376         * libio/ioseekpos.c: Likewise.
9377         * libio/iosetbuffer.c: Likewise.
9378         * libio/iosetvbuf.c: Likewise.
9379         * libio/ioungetc.c: Likewise.
9380         * libio/ioungetwc.c: Likewise.
9381         * libio/iovdprintf.c: Likewise.
9382         * libio/iovsprintf.c: Likewise.
9383         * libio/iovsscanf.c: Likewise.
9384         * libio/libioP.h: Likewise.
9385         * libio/memstream.c: Likewise.
9386         * libio/obprintf.c: Likewise.
9387         * libio/oldfileops.c: Likewise.
9388         * libio/oldiofclose.c: Likewise.
9389         * libio/oldiofdopen.c: Likewise.
9390         * libio/oldiofgetpos.c: Likewise.
9391         * libio/oldiofgetpos64.c: Likewise.
9392         * libio/oldiofopen.c: Likewise.
9393         * libio/oldiofsetpos.c: Likewise.
9394         * libio/oldiofsetpos64.c: Likewise.
9395         * libio/oldiopopen.c: Likewise.
9396         * libio/oldstdfiles.c: Likewise.
9397         * libio/putc.c: Likewise.
9398         * libio/setbuf.c: Likewise.
9399         * libio/setlinebuf.c: Likewise.
9400         * libio/stdfiles.c: Likewise.
9401         * libio/stdio.c: Likewise.
9402         * libio/strops.c: Likewise.
9403         * libio/vasprintf.c: Likewise.
9404         * libio/vscanf.c: Likewise.
9405         * libio/vsnprintf.c: Likewise.
9406         * libio/vswprintf.c: Likewise.
9407         * libio/wfiledoalloc.c: Likewise.
9408         * libio/wfileops.c: Likewise.
9409         * libio/wgenops.c: Likewise.
9410         * libio/wstrops.c: Likewise.
9411         * malloc/mtrace.c: Likewise.
9412         * misc/error.c: Likewise.
9413         * misc/syslog.c: Likewise.
9414         * nss/getXXbyYY_r.c: Likewise.
9415         * nss/getXXent_r.c: Likewise.
9416         * nss/hosts-lookup.c: Likewise.
9417         * stdio-common/getw.c
9418         * stdio-common/printf-prs.c: Likewise.
9419         * stdio-common/printf_fp.c: Likewise.
9420         * stdio-common/printf_size.c: Likewise.
9421         * stdio-common/putw.c: Likewise.
9422         * stdio-common/scanf.c: Likewise.
9423         * stdio-common/sprintf.c: Likewise.
9424         * stdio-common/tmpfile64.c: Likewise.
9425         * stdio-common/vfprintf.c: Likewise.
9426         * stdio-common/vfscanf.c: Likewise.
9427         * stdlib/strfmon.c: Likewise.
9428         * sunrpc/auth_des.c: Likewise.
9429         * sunrpc/auth_none.c: Likewise.
9430         * sunrpc/auth_unix.c: Likewise.
9431         * sunrpc/authdes_prot.c: Likewise.
9432         * sunrpc/authuxprot.c: Likewise.
9433         * sunrpc/clnt_perr.c: Likewise.
9434         * sunrpc/clnt_raw.c: Likewise.
9435         * sunrpc/clnt_tcp.c: Likewise.
9436         * sunrpc/clnt_udp.c: Likewise.
9437         * sunrpc/clnt_unix.c: Likewise.
9438         * sunrpc/key_call.c: Likewise.
9439         * sunrpc/key_prot.c: Likewise.
9440         * sunrpc/openchild.c: Likewise.
9441         * sunrpc/pm_getmaps.c: Likewise.
9442         * sunrpc/pm_getport.c: Likewise.
9443         * sunrpc/pmap_clnt.c: Likewise.
9444         * sunrpc/pmap_prot.c: Likewise.
9445         * sunrpc/pmap_prot2.c: Likewise.
9446         * sunrpc/pmap_rmt.c: Likewise.
9447         * sunrpc/rpc_cmsg.c: Likewise.
9448         * sunrpc/rpc_prot.c: Likewise.
9449         * sunrpc/svc_authux.c: Likewise.
9450         * sunrpc/svc_raw.c: Likewise.
9451         * sunrpc/svc_simple.c: Likewise.
9452         * sunrpc/svc_tcp.c: Likewise.
9453         * sunrpc/svc_udp.c: Likewise.
9454         * sunrpc/svc_unix.c: Likewise.
9455         * sunrpc/xdr.c: Likewise.
9456         * sunrpc/xdr_array.c: Likewise.
9457         * sunrpc/xdr_mem.c: Likewise.
9458         * sunrpc/xdr_rec.c: Likewise.
9459         * sunrpc/xdr_ref.c: Likewise.
9460         * sunrpc/xdr_stdio.c: Likewise.
9461         * sysdeps/generic/_strerror.c: Likewise.
9462         * sysdeps/generic/printf_fphex.c: Likewise.
9463         * sysdeps/generic/tmpfile.c: Likewise.
9464         * sysdeps/gnu/errlist.awk: Likewise.
9465         * sysdeps/gnu/errlist.c: Likewise.
9467         * libio/Makefile (routines): Remove iosprint.
9468         * libio/iosprintf.c: Removed
9471 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
9473         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
9474         non_dynamic_init and exported now.
9475         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
9476         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
9477         !SHARED.
9478         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
9479         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
9480         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
9482 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
9484         * elf/dl-close.c (free_slotinfo): Check for end of list and return
9485         true in this case.
9487         * locale/iso-639.def: Add language codes for Walloon.
9489         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
9490         total number of relocations performed.
9492         * elf/sprof.c (load_profdata): If do_test provide information as
9493         to why loading failed.
9494         * elf/dl-profile.c (_dl_start_profile): Initialize all of
9495         hist_hdr.dimen.
9497         * csu/set-init.c: Moved to...
9498         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
9499         * csu/Makefile: Don't compile set-init.
9500         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
9501         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
9502         to __libc_init.
9503         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
9504         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
9505         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
9506         __libc_init.
9507         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
9508         __libc_subinit.
9510 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
9512         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
9513         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
9514         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
9515         (_dl_deallocate_tls): New function.
9516         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
9517         _dl_deallocate_tls.
9519 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
9521         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
9522         * stdio-common/tst-fseek.c (main): Add test for this.
9524 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
9526         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
9528 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
9530         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
9531         pointer before dereferencing.
9533 2002-02-18  Roland McGrath  <roland@frob.com>
9535         * sysdeps/mach/hurd/times.c: Fix typo in last change.
9537         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
9538         Use task_policy in place of task_priority.
9540         * sysdeps/generic/bits/mman.h
9541         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
9542         * sysdeps/mach/msync.c: New file.
9544         * sysdeps/mach/powerpc/syscall.S: New file.
9546         * mach/msg.c [MACH_MSG_OVERWRITE]
9547         (__mach_msg_trap, __mach_msg_overwrite): New functions.
9548         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
9550         * sysdeps/mach/configure.in: Check for clock.defs to put into
9551         mach_interface_list.
9552         * sysdeps/mach/configure: Regenerated.
9554         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
9555         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
9556         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
9557         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
9558         (mach-shortcuts): Add device_read_overwrite_request,
9559         device_read_overwrite, vm_read_overwrite, thread_switch.
9561         * configure.in (base_machine): Set to $machine by default.
9562         * configure: Regenerated.
9564         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
9565         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
9566         * sysdeps/mach/configure: Regenerated.
9567         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
9569         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
9571         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
9573         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
9574         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
9576 2002-02-17  Roland McGrath  <roland@frob.com>
9578         * sysdeps/mach/hurd/times.c
9579         [NO_CREATION_TIME] (startup_time): New static variable.
9580         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
9581         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
9582         creation_time from task_basic_info.
9583         (__times): Use __gettimeofday instead of __host_get_time.
9585         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
9586         Use untyped Mach IPC message format.
9588         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
9590         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
9591         _S_catch_exception_raise_state_identity,
9592         _hurdsig_fault_catch_exception_raise_state,
9593         _hurdsig_fault_catch_exception_raise_state_identity.
9595         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
9597         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
9598         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
9600         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
9601         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
9603         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
9604         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
9605         them as no-op macros.
9606         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
9607         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
9609         * sysdeps/powerpc/dl-machine.h
9610         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
9612         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
9613         Use untyped Mach IPC message format.
9615         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
9616         Handle untyped Mach IPC message formats.
9618         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
9619         Expect different argument conventions when this is defined.
9620         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
9621         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
9622         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
9623         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
9624         for OSF Mach variant.
9625         (faulted): Use mig_reply_error_t for REPLY.
9626         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
9627         in __thread_set_exception_ports call.
9628         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
9629         __mach_port_set_attributes in place of __mach_port_set_qlimit.
9631         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
9632         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
9633         on Darwin, which includes bogons.
9635         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
9636         variable LOADBASE so it's not declared when it's not used.
9638 2002-02-16  Roland McGrath  <roland@frob.com>
9640         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
9641         to use BI.creation_time.
9643         * mach/Machrules (MIG): Add -x c to CPP value passed down.
9645         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
9646         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
9647         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
9648         host_page_size instead of vm_statistics.
9650         * sysdeps/mach/Makefile (mach-before-compile): Don't include
9651         mach_interface.h here, since not all variants use that name.
9653         * sysdeps/mach/configure.in: Add some checks for Mach headers
9654         to ensure a sane installation.
9655         (mach_interface_list): Define this variable by checking for .defs
9656         files found in various variants.
9657         * configure.in (mach_interface_list): AC_SUBST this.
9658         * config.make.in (mach-interface-list): New substituted variable.
9659         * mach/Makefile (user-interfaces): Define this using the value
9660         of $(mach-interface-list) instead of mach, mach4.
9661         Updated other references to mach_interface to use it as well.
9663         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
9665         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
9666         mig_reply_error_t for OSF Mach variant.
9668         * mach/Makefile (routines): Remove bootprivport.
9669         * mach/bootprivport.c: File removed.  It has never been used.
9671         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
9672         Grok the OSF flavor of message format.
9673         (mach_msg_destroy_port): For MAKE_SEND and
9674         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
9675         no-senders notification.
9677 2002-02-06  Roland McGrath  <roland@frob.com>
9679         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
9680         to here if 2.0 compatibility enabled ...
9681         (libc: GLIBC_2.1.3): ... from here.
9683 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
9685         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
9686         generation counter.
9687         * elf/dl-close.c (_dl_close): Likewise.
9689 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
9691         * elf/Makefile: Add rules to build and run tst-tls8.
9692         * elf/tst-tls8.c: New file.
9693         * elf/tst-tlsmod4.c: New file.
9695         * stdlib/test-a64l.c (tests): Add more test cases.
9697         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
9698         Reported by Walter Harms <WHarms@bfs.de>.
9700 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
9702         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
9703         definitions for struct sigcontext.
9704         Suggested by David Mosberger-Tang.
9706 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9708         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
9709         for removing reference of module in slotinfo list.
9710         (_dl_close): Use remove_slotinfo.
9711         * sysdeps/generic/dl-tls.c: General pretty printing.
9712         (oom): Define only if SHARED.
9713         (_dl_next_tls_modid): Correct starting point for the case we assume
9714         there is a gap.  Add missing instruction grouping (doh!).  Correct
9715         tests for reaching maximum index.
9716         * elf/Makefile: Add rules to build and run tst-tls7.
9717         * elf/tst-tls7.c: New file.
9718         * elf/tst-tlsmod3.c: New file.
9720         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9721         USE_TLS.
9722         * elf/tst-tlsmod2.c: Likewise.
9724         * elf/dl-close.c (_dl_close): When closing an object using TLS
9725         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9726         true.  Increment dl_tls_generation only if we closed any TLS-using
9727         object.
9728         * elf/tst-tls6.c: New file.
9729         * elf/Makefile: Add rules to build and run tst-tls6.
9731         * po/da.po: Update from translation team.
9733         * locale/categories.def: Fix typo [PR libc/2948].
9734         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9735         [PR libc/2949].
9736         * locale/iso-4217.def: Update from official version [PR libc/2950].
9737         * glibcbug.in: Honor TMPDIR [PR libc/2951].
9738         * locale/programs/ld-collate.c (collate_finish): Bail out with a
9739         message if input is too confusion instead of using assert.
9740         (collate_read): Don't crash on unknown symbol [PR libc/2952].
9741         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9743         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9744         * elf/tst-tls2.c: Likewise.
9745         * elf/tst-tls3.c: Likewise.
9747 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
9749         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9751 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9753         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9754         if this is really necessary.
9756         * elf/dl-close.c (_dl_close): Implement freeing entries in the
9757         slotinfo array.
9758         (free_mem): Free memory for the slotinfo array if possible.
9760 2002-02-12  Andreas Schwab  <schwab@suse.de>
9762         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9764 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
9766         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9767         TLS_DTV_UNALLOCATE.
9768         (oom): New function.
9769         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9770         (_dl_determine_tlsoffset): Likewise.
9771         (_dl_allocate_tls): Likewise.
9772         (__TLS_GET_ADDR): Define if not already defined.
9773         (_dl_tls_symaddr): New function.
9774         (allocate_and_init): New function.
9775         (__tls_get_addr): Actually implement handling of generation counter
9776         and deferred allocation.
9777         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9778         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9779         _dl_tls_generation.
9780         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9781         Declare _dl_tls_symaddr.
9782         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9783         SHARED.
9784         * include/link.h (struct link_map):  Remove l_tls_nextimage and
9785         l_tls_previmage.
9786         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9787         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9788         (_dl_vsym): Likewise.
9789         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9790         layout.
9791         (dl_main): Allow PT_TLS be present for empty segment.  Remove
9792         nextimage list handling.  Instead add all modules using TLS to
9793         dl_tls_dtv_slotinfo_list.
9794         * elf/dl-open.c (dl_open_worker): After successfully loading all
9795         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9796         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9797         empty segment don't do anything.  Remove handling of initimage list.
9798         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9799         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9800         * elf/dl-minimal.c: Define __libc_memalign.
9801         * elf/dl-support.c: Remove _dl_initimage_list.  Add
9802         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9803         _dl_tls_generation.
9804         * include/stdlib.h: Declare __libc_memalign.
9806         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9807         * elf/tst-tls4.c: New file.
9808         * elf/tst-tls5.c: New file.
9809         * elf/tst-tlsmod2.c: New file.
9811         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9813         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9815         * elf/tst-tls1.c: Use test-skeleton.c.
9816         * elf/tst-tls2.c: Likewise.
9817         * elf/tst-tls3.c: Likewise.
9819         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9821 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
9823         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9825 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
9827         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9829         * elf/tst-tls3.c: New file.
9830         * elf/tst-tlsmod1.c: New file.
9831         * elf/Makefile: Add rules to build and run tst-tls3.
9833         * sysdeps/i386/dl-machine.h: Include <tls.h>.
9834         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9835         TLS relocations.
9837         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9839         * po/fr.po: Update from translation team.
9841         * elf/tls-macros.h: Add alternative macros for use in PIC.
9843         * elf/dl-lookup.c: Include <tls.h>.
9844         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9846         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9847         required by passing pointer to last element of the list.
9849         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9850         l_tls_initimage to a place where it actually is performed.
9852         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9853         after globfree() calls.
9855         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9856         (openaux): Pass open_mode as new last argument to _dl_map_object.
9857         (_dl_map_object_deps): Add new argument open_mode.  Initialize
9858         open_mode element of args variable with it.
9859         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9860         _dl_map_object_deps.
9861         * elf/rtld.c (dl_main): Add zero as last parameter to
9862         _dl_map_object_deps call.
9863         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9864         * elf/nodlopen2.c: New file.
9865         * elf/nodlopenmod2.c: New file.
9866         * elf/Makefile: Add rules to build and run nodlopen2.
9868         * elf/tst-tls1.c: Move TLS helper macros to...
9869         * elf/tls-macros.h: ...here.  New file.
9870         * elf/tst-tls2.c: New file.
9871         * elf/Makefile (tests): Add tst-tls2.
9872         (distribute): Add tls-macros.h.
9874         * po/sv.po: Update from translation team.
9876         * elf/tst-tls1.c (main): Add complete set of tests.  Split
9877         architecture specific definitions from the actual test code.
9879         * po/tr.po: Update from translation team.
9881 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
9883         * elf/Makefile (tests): Add tst-tls1.
9884         * elf/tst-tls1.c: New file.
9886         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9887         alignment of TCB for now.
9889         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9890         initialization image for the application itself.
9892         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9893         loop to initialize TLS block.
9895 2002-02-08  Richard Henderson  <rth@redhat.com>
9897         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9898         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9900         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9902 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
9904         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9906 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
9908         * po/ca.po: Update from translation team.
9909         * po/sk.po: Likewise.
9911         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9912         (dl_main): Move dtv/static TLS handling before relocation.
9913         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
9914         TLS_INIT_TP to allocate and install the dtv/static TLS block.
9915         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9916         so far uses TLS initialize GL(dl_tls_static_size) and
9917         GL(dl_tls_static_align) to account for the TCB.
9918         (_dl_allocate_tls): New function.
9919         * sysdeps/generic/ldsodefs.h (rtld_global): Add
9920         _dl_initial_dtv_malloced.
9922         * configure.in: Test for __builtin_memset more realistically.
9924         * csu/version.c (banner): If TLS support is available say so.
9926 2002-02-04  H.J. Lu  <hjl@gnu.org>
9928         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9929         __attribute_used__.
9930         (__dl_runtime_resolve): Likewise.
9932         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9933         declaration.
9935 2001-11-15  H.J. Lu  <hjl@gnu.org>
9937         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9938         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9940         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9942 2002-02-07  H.J. Lu  <hjl@gnu.org>
9944         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9945         ".set noreorder".
9946         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9947         Likewise.
9949 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9951         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9953         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9954         ___tls_get_addr_internal.
9955         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9957         * po/ko.po: Update from translation team.
9959 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
9961         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9962         attribute, change __pad{1,2} type to unsigned int.
9963         (struct stat64): Remove packed attribute.
9965 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9967         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9969 2002-02-07  Andreas Schwab  <schwab@suse.de>
9971         * configure.in: Fix check for -zcombreloc.
9973 2002-02-06  H.J. Lu  <hjl@gnu.org>
9975         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9976         * configure.in: Check if __builtin_memset really works.
9977         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9978         __GNUC_PREREQ (2, 96) before using __builtin_memset.
9980 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9982         * io/bug-ftw3.c (main): Don't try the test if root.
9984 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9986         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9987         constraints.
9988         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9989         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9990         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9991         Likewise.
9992         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9993         a weak alias for __clone.
9994         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9995         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9996         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9997         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9998         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9999         a weak alias for __mmap64.
10001 2002-02-05  H.J. Lu  <hjl@gnu.org>
10003         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
10004         (atomic_add): Likewise.
10005         (compare_and_swap): Likewise.
10006         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
10008 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
10010         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
10012         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
10013         alignment of the TCB and store total size and alignment of static
10014         TLS block in _dl_tls_static_size and _dl_tls_static_align.
10015         tls_index is a typedef.
10016         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
10017         _dl_tls_static_align.
10018         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
10019         * elf/dl-support.c: Define _dl_tls_static_size and
10020         _dl_tls_static_align.
10022 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
10024         * configure.in: Add --without-tls option.
10025         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
10026         --without-tls is given.
10028         * sysdeps/generic/dl-tls.c: Include <tls.h>.
10030         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
10032 2002-02-06  Roland McGrath  <roland@frob.com>
10034         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
10035         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
10037         * scripts/versions.awk: Improve error message for missing version.
10038         Each version inherits from the last one only if they have the same
10039         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
10040         but not GLIBC_x and FOO_y.
10042         * scripts/firstversions.awk: Handle libraries that don't have each
10043         particular version named in the third column of shlib-versions.
10045         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
10047 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
10049         * Versions.def [ld]: Add GLIBC_2.3.
10050         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
10051         * elf/Makefile (dl-routines): Add dl-tls.
10052         (distribute): Add dl-tls.h.
10053         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
10054         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
10055         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
10056         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
10057         along with the other info in the link map.  Change queueing of init
10058         images for double linked list.  Use _dl_next_tls_modid to compute
10059         l_tls_modid.
10060         * elf/rtld.c (_dl_start_final): Store alignment requirement
10061         along with the other info in rtld map and executable map.
10062         (dl_main): Add ld.so to the init image list if necessary.  Compute
10063         final module ID with _dl_next_tls_modid.
10064         * include/link.h (struct link_map): Add l_tls_previmage and
10065         l_tls_align.
10066         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
10067         * sysdeps/i386/elf/Versions: New file.
10068         * sysdeps/generic/dl-tls.c: New file.
10069         * sysdeps/generic/dl-tls.h: New file.
10070         * sysdeps/i386/dl-tls.h: New file.
10072 2002-02-06  Roland McGrath  <roland@frob.com>
10074         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
10075         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
10077 2002-01-05  Roland McGrath  <roland@frob.com>
10079         * sysdeps/mach/configure.in: New file.
10080         * sysdeps/mach/configure: New generated file.
10082         * mach/Makefile (user-interfaces): Remove default_pager_helper.
10083         It has never been used by anything.
10085 2002-02-06  H.J. Lu  <hjl@gnu.org>
10087         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
10088         is included.
10090 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
10092         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
10093         attribute((packed)) to counter stupid people misusing gcc options.
10094         (struct stat64): Likewise.
10096 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
10098         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
10099         the variables which are used as booleans.
10101 2002-02-06  Andreas Jaeger  <aj@suse.de>
10103         * include/libc-symbols.h (INTUSE): Renamed from INT.
10104         * elf/dl-deps.c: Change users.
10105         * sysdeps/generic/dl-sysdep.c: Likewise.
10106         * sysdeps/generic/dl-cache.c: Likewise.
10107         * elf/dl-reloc.c: Likewise.
10108         * elf/rtld.c: Likewise.
10109         * elf/dl-version.c: Likewise.
10110         * elf/dl-load.c: Likewise.
10111         * elf/dl-dst.h: Likewise.
10112         * elf/dl-init.c: Likewise.
10113         * elf/dl-error.c: Likewise.
10114         * elf/dl-fini.c: Likewise.
10115         * elf/dl-runtime.c: Likewise.
10116         * elf/do-lookup.h: Likewise.
10118         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
10119         definition.
10120         * stdio-common/_itowa.h: Likewise.
10122 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
10124         * elf/dl-minimal.c: Define _itoa_lower_digits.
10126         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
10127         DT_FLAGS set.
10129         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
10130         loading modules with the DF_STATIC_TLS flag set.
10131         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
10132         element.
10133         * include/link.h (struct link_map): Add l_flags field.
10134         * elf/elf.h (DF_STATIC_TLS): New definition.
10136         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
10137         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
10139         * elf/rtld.c (process_dl_debug): Correct printing help message.
10140         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
10141         for %s.
10143         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
10144         definition and pass &errno in use of this variable.
10145         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
10147 2002-02-04  Andreas Schwab  <schwab@suse.de>
10149         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
10150         * locale/programs/charmap-dir.c: Wrap calls that output messages
10151         with WITH_CUR_LOCALE.  Include "localedef.h" first.
10152         * locale/programs/charmap.c: Likewise.
10153         * locale/programs/ld-address.c: Likewise.
10154         * locale/programs/ld-collate.c: Likewise.
10155         * locale/programs/ld-ctype.c: Likewise.
10156         * locale/programs/ld-identification.c: Likewise.
10157         * locale/programs/ld-measurement.c: Likewise.
10158         * locale/programs/ld-messages.c: Likewise.
10159         * locale/programs/ld-monetary.c: Likewise.
10160         * locale/programs/ld-name.c: Likewise.
10161         * locale/programs/ld-numeric.c: Likewise.
10162         * locale/programs/ld-paper.c: Likewise.
10163         * locale/programs/ld-telephone.c: Likewise.
10164         * locale/programs/ld-time.c: Likewise.
10165         * locale/programs/linereader.c: Likewise.
10166         * locale/programs/linereader.h: Likewise.
10167         * locale/programs/localedef.c: Likewise.
10168         * locale/programs/locfile.c: Likewise.
10169         * locale/programs/repertoire.c: Likewise.
10171 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
10173         * elf/rtld.c (_dl_start_final): Determine load address to locate
10174         ehdr with GL(dl_rtld_map).l_map_start.
10176         * po/ca.po: Update from translation team.
10178         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
10179         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
10180         header entry.
10181         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10182         _dl_tls_module_cnt.
10183         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
10185 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
10187         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
10188         * include/link.h (struct link_map): Add various members for TLS
10189         information.
10190         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
10191         _rtld_tlsoffset, add _dl_initimage_list.
10192         * sysdeps/i386/dl-lookupcfg.h: New file.
10193         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
10194         TLS relocation.  When using TLS we now use RESOLVE_MAP.
10195         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
10196         is used.
10198         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
10199         unused.
10201         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
10202         thread-pointer as soon as possible.
10203         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
10204         elements in rtld_global.
10205         * sysdeps/generic/tls.h: New file.
10206         * elf/Makefile (distribute): Add tls.h.
10207         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
10208         relocations.  Not complete yet.
10210         * resolv/resolv.h: Allow user to define __need_res_state and only
10211         define __res_start structure then.
10212         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
10214         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
10215         dl_cpuclock_offset initialization to _dl_start_final.
10216         (_dl_show_auxv): Avoid unnecessary sign extension.
10217         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
10219 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
10221         * config.h.in: Add HAVE_TLS_SUPPORT.
10222         * sysdeps/i386/elf/configure.in: New file.
10224 2002-02-03  Andreas Schwab  <schwab@suse.de>
10226         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
10227         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
10229 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
10231         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
10232         alloca if the memory reqirements are too high.
10234 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
10236         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
10237         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
10238         the former is available anyway and speed isn't important here.
10239         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
10240         * elf/dl-version.c (match_symbol): Likewise.
10241         (_dl_check_map_versions): Likewise.
10242         * elf/rtld.c (process_envvars): Likewise.
10243         (print_statistics): Likewise.
10244         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
10245         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
10246         bases.  Add assert to catch uses of unimplemented features.
10247         (__strsep): Add assert to catch uses of unimplemented features.
10248         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
10249         and avoid inline optimization.
10250         * elf/rtld.c (process_envvars): Likewise.
10251         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
10252         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
10253         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
10255 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10257         * stdio-common/_itoa.h: Minor simplifications of the code.
10258         * stdio-common/_itoa.c: Likewise.
10260         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
10261         instead of _dl_printf for debugging info output.
10263         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
10264         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
10266 2002-02-01  H.J. Lu  <hjl@gnu.org>
10268         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
10269         (atomic_add): Likewise.
10270         (compare_and_swap): Return 0 only when failed to compare. Use
10271         branch likely.
10273         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
10274         branch likely.
10276 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
10278         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
10280 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10282         * elf/dl-minimal.c (__strsep): New minimal implementation.
10284 2002-02-02  Paul Eggert  <eggert@twinsun.com>
10286         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
10287         (__mktime_internal): If no tm_isdst is requested, prefer solutions
10288         with tm_isdst > 0 when the requested time falls within a
10289         spring-forward gap [PR libc/2894].
10291 2002-02-03  Andreas Schwab  <schwab@suse.de>
10293         * stdio-common/tst-rndseek.c: Increase timeout.
10295 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10297         Change ld.so to not use functions which are exported.  One cannot
10298         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
10299         definitions.
10300         * include/libc-symbols.h: Define INT and INTDEF.
10301         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
10302         _dl_signal_error_internal, _dl_map_object_internal,
10303         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
10304         _dl_lookup_versioned_symbol_internal,
10305         _dl_relocate_object_internal, _dl_debug_state_internal,
10306         _dl_start_profile_internal, and _dl_unload_cache_internal.
10307         * include/dlfcn.h: Declare _dl_catch_error_internal.
10308         * elf/rtld.c: Use INT for calls to any of the *_internal functions
10309         above.  Add INTDEF to function definitions.
10310         * elf/dl-debug.c: Likewise.
10311         * elf/dl-deps.c: Likewise.
10312         * elf/dl-dst.h: Likewise.
10313         * elf/dl-error.c: Likewise.
10314         * elf/dl-fini.c: Likewise.
10315         * elf/dl-init.c: Likewise.
10316         * elf/dl-load.c: Likewise.
10317         * elf/dl-lookup.c: Likewise.
10318         * elf/dl-misc.c: Likewise.
10319         * elf/dl-open.c: Likewise.
10320         * elf/dl-profile.c: Likewise.
10321         * elf/dl-reloc.c: Likewise.
10322         * elf/dl-runtime.c: Likewise.
10323         * elf/dl-version.c: Likewise.
10324         * elf/do-lookup.h: Likewise.
10325         * sysdeps/generic/dl-cache.c: Likewise.
10326         * sysdeps/generic/dl-sysdep.c: Likewise.
10327         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
10328         instead of _dl_init.
10329         * sysdeps/arm/dl-machine.h: Likewise.
10330         * sysdeps/cris/dl-machine.h: Likewise.
10331         * sysdeps/hppa/dl-machine.h: Likewise.
10332         * sysdeps/i386/dl-machine.h: Likewise.
10333         * sysdeps/ia64/dl-machine.h: Likewise.
10334         * sysdeps/m68k/dl-machine.h: Likewise.
10335         * sysdeps/mips/dl-machine.h: Likewise.
10336         * sysdeps/mips/mips64/dl-machine.h: Likewise.
10337         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10338         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10339         * sysdeps/sh/dl-machine.h: Likewise.
10340         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10341         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10342         * sysdeps/x86_64/dl-machine.h: Likewise.
10343         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
10345         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
10346         and _dl_debug_initialize.
10348         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
10349         more information.
10350         * elf/rtld.c (dl_main): Avoid strrchr.
10351         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
10352         result of readlink.  Search from the back for '/'.
10354         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
10355         strncpy if possible.
10357         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
10358         strncmp.
10359         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
10360         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
10361         strspn, and strcspn.
10362         (process_envvars): Don't use strcspn.
10364         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
10365         (_dl_dst_substitute): Likewise.
10367 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10369         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
10370         code which is never used when relocating ld.so itself.
10372         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
10373         starting ld.so itself.  Move l_addr variable initialization closer
10374         to use.
10375         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
10377 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
10379         * Versions.def (libc): Add GLIBC_PRIVATE.
10380         (libdb, libnss_db, libdb1): Remove.
10381         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
10382         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
10383         (libpthread): Add GLIBC_PRIVATE.
10384         (libresolv): Likewise, remove GLIBC_2.1.
10385         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
10386         GLIBC_2.2.3, GLIBC_2.3.
10387         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
10388         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
10389         _dl_sym, _dl_vsym): Likewise.
10390         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
10391         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
10392         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
10393         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
10394         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
10395         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
10396         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
10397         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
10398         Likewise.
10399         (_dl_object_relocation_scope): Remove.
10400         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
10401         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
10402         __gconv_cache): Move to GLIBC_PRIVATE.
10403         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
10404         __internal_setnetgrent): Likewise.
10405         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
10406         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
10407         * locale/Versions (__collate_element_hash, __collate_element_strings,
10408         __collate_symbol_classes, __collate_symbol_hash,
10409         __collate_symbol_strings, _nl_current_LC_COLLATE,
10410         _nl_current_LC_CTYPE): Likewise.
10411         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
10412         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
10413         (libnss_nis, libnss_nisplus): Likewise.
10414         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
10415         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
10416         (libnss_files): Move all symbols to GLIBC_PRIVATE.
10417         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
10418         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
10419         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
10420         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
10421         __ns_get16, __ns_samename): Likewise.
10422         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
10423         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
10424         GLIBC_PRIVATE.
10425         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
10426         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
10427         __libc_connect): Likewise.
10428         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
10429         Likewise.
10430         * stdlib/Versions (__libc_system): Likewise.
10431         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
10432         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
10433         * sysdeps/ia64/fpu/Versions: Likewise.
10434         * sysdeps/ia64/Versions: Likewise.
10435         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
10436         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
10437         to GLIBC_PRIVATE.
10438         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
10439         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
10440         __libc_sigaction): Likewise.
10441         * termios/Versions (__libc_tcdrain): Likewise.
10443         * misc/sys/cdefs (__attribute_noinline__): Define.
10444         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
10445         __attribute_noinline__.
10447         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
10448         * elf/dl-xstat64.c: New file.
10449         * elf/dl-fxstat64.c: New file.
10450         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
10451         don't export __fxstat64 at multiple versions.
10452         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
10453         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
10455 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
10457         * locale/program/ld-collate.c (collate_finish): Assign a wide
10458         char collation sequence value to multi character collating
10459         elements, and avoid over writing by non-character elements.
10461 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10463         * elf/Makefile (distribute): Add dl-procinfo.c.
10464         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
10465         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
10467 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
10469         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
10470         definition.
10471         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
10472         _rtld_global struct.
10473         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10474         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
10475         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10476         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
10477         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
10478         _dl_fpu_control_set): Remove unused externs.
10479         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
10480         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
10481         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
10482         related variables in _rtld_global struct.
10483         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
10484         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
10485         unused extern.
10487 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10489         * sysdeps/generic/dl-procinfo.c: New file.
10491 2002-02-01  Andreas Schwab  <schwab@suse.de>
10493         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
10495 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10497         * elf/rtld.c (_dl_start): Mark as internal_function.
10498         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
10499         in register.
10500         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
10501         General pretty printing.
10503 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
10505         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
10506         * elf/dl-reloc.c: Pretty printing.
10507         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
10508         procinfo-related variables in rtld_global struct.
10509         * elf/dl-support.c: Likewise.
10510         * elf/rtld.c: Likewise.
10511         * sysdeps/i386/i686/Makefile: Likewise.
10512         * sysdeps/i386/i686/hp-timing.c: Likewise.
10513         * sysdeps/i386/i686/hp-timing.h: Likewise.
10514         * sysdeps/ia64/Makefile: Likewise.
10515         * sysdeps/ia64/hp-timing.c: Likewise.
10516         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
10517         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
10518         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
10519         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
10520         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10521         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
10522         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
10523         * sysdeps/x86_64/Makefile: Likewise.
10525         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
10526         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
10527         _dl_debug_fd to rtld_global.
10528         * elf/Versions: Likewise.
10529         * elf/dl-close.c: Likewise.
10530         * elf/dl-iteratephdr.c: Likewise.
10531         * elf/dl-lookup.c: Likewise.
10532         * elf/dl-misc.c: Likewise.
10533         * elf/dl-open.c: Likewise.
10534         * elf/dl-support.c: Likewise.
10535         * elf/do-lookup.h: Likewise.
10536         * elf/rtld.c: Likewise.
10537         * sysdeps/generic/dl-cache.c: Likewise.
10538         * sysdeps/generic/dl-sysdep.c: Likewise.
10539         * sysdeps/ia64/Versions: Likewise.
10540         * sysdeps/unix/clock_gettime.c: Likewise.
10541         * sysdeps/unix/clock_settime.c: Likewise.
10542         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10543         * sysdeps/sparc/Versions: Removed.
10544         * sysdeps/i386/i686/Versions : Removed.
10545         * sysdeps/x86_64/Versions: Removed.
10546         * configure.in: Define HAVE_PROTECTED if .protected is available.
10547         * config.h.in: Add entry for HAVE_PROTECTED.
10549 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
10551         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
10552         code in struct _rtld_global.  Export this struct, remove all
10553         exports for the signal variables.
10554         * sysdeps/arm/dl-machine: Likewise.
10555         * sysdeps/generic/dl-origin: Likewise.
10556         * sysdeps/generic/dl-sysdep: Likewise.
10557         * sysdeps/generic/dl-cache: Likewise.
10558         * sysdeps/hppa/dl-fptr: Likewise.
10559         * sysdeps/hppa/dl-machine: Likewise.
10560         * sysdeps/cris/dl-machine: Likewise.
10561         * sysdeps/i386/dl-machine: Likewise.
10562         * sysdeps/ia64/dl-machine: Likewise.
10563         * sysdeps/m68k/dl-machine: Likewise.
10564         * sysdeps/mach/hurd/dl-sysdep: Likewise.
10565         * sysdeps/mips/mips64/dl-machine: Likewise.
10566         * sysdeps/mips/dl-machine: Likewise.
10567         * sysdeps/powerpc/elf/libc-start: Likewise.
10568         * sysdeps/powerpc/dl-machine: Likewise.
10569         * sysdeps/powerpc/dl-start: Likewise.
10570         * sysdeps/sparc/sparc32/dl-machine: Likewise.
10571         * sysdeps/sparc/sparc64/dl-machine: Likewise.
10572         * sysdeps/sh/dl-machine: Likewise.
10573         * sysdeps/s390/s390-32/dl-machine: Likewise.
10574         * sysdeps/s390/s390-64/dl-machine: Likewise.
10575         * sysdeps/unix/sysv/aix/libc-start: Likewise.
10576         * sysdeps/unix/sysv/aix/start-libc: Likewise.
10577         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
10578         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
10579         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
10580         * sysdeps/x86_64/dl-machine: Likewise.
10582 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
10584         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
10585         are too high.
10587 2002-01-31  Andreas Schwab  <schwab@suse.de>
10589         * sysdeps/posix/readv.c: Check for ssize_t overflow.
10591 2002-01-31  Andreas Schwab  <schwab@suse.de>
10593         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
10594         reference to _dl_pagesize.
10596 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
10598         * Versions.def [ld]: Add GLIBC_2.3.
10599         * elf/dl-addr.c: Move global variables for SHARED code in struct
10600         _rtld_global.  Export this struct, remove all exports for the
10601         signal variables.
10602         * elf/dl-close.c: Likewise.
10603         * elf/dl-conflict.c: Likewise.
10604         * elf/dl-debug.c: Likewise.
10605         * elf/dl-deps.c: Likewise.
10606         * elf/dl-dst.h: Likewise.
10607         * elf/dl-error.c: Likewise.
10608         * elf/dl-fini.c: Likewise.
10609         * elf/dl-init.c: Likewise.
10610         * elf/dl-iteratephdr.c: Likewise.
10611         * elf/dl-libc.c: Likewise.
10612         * elf/dl-load.c: Likewise.
10613         * elf/dl-lookup.c: Likewise.
10614         * elf/dl-minimal.c: Likewise.
10615         * elf/dl-object.c: Likewise.
10616         * elf/dl-open.c: Likewise.
10617         * elf/dl-profile.c: Likewise.
10618         * elf/dl-profstub.c: Likewise.
10619         * elf/dl-reloc.c: Likewise.
10620         * elf/dl-runtime.c: Likewise.
10621         * elf/dl-support.c: Likewise.
10622         * elf/dl-sym.c: Likewise.
10623         * elf/dl-version.c: Likewise.
10624         * elf/do-lookup.h: Likewise.
10625         * elf/do-rel.h: Likewise.
10626         * elf/dynamic-link.h: Likewise.
10627         * elf/rtld.c: Likewise.
10628         * sysdeps/generic/dl-cache.c: Likewise.
10629         * sysdeps/generic/dl-sysdep.c: Likewise.
10630         * sysdeps/generic/ldsodefs.h: Likewise.
10631         * sysdeps/generic/libc-start.c: Likewise.
10632         * sysdeps/i386/dl-machine.h: Likewise.
10633         * sysdeps/ia64/dl-fptr.c: Likewise.
10634         * sysdeps/ia64/dl-machine.h: Likewise.
10635         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
10636         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10637         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
10638         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
10639         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
10640         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
10641         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
10642         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
10644 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10646         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
10647         to avoid warning
10648         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
10650         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
10651         SHARED version.
10652         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
10654         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
10656 2002-01-29  Ben Collins  <bcollins@debian.org>
10658         * string/bits/string2.h (__mempcpy): Protect size arg for
10659         addition when using __builtin_memcpy.
10661 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10663         * stdlib/Makefile (tests): Add tst-qsort.
10664         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
10666         * manual/signal.texi (Process Signal Mask): Document that
10667         pthread_sigmask, not sigprocmask, must be used in MT programs.
10668         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
10670         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
10671         found.
10672         * misc/Makefile (tests): Add tst-hsearch.
10673         * misc/tst-hsearch.c: New file.
10675 2002-01-18  Wolfram Gloger  <wg@malloc.de>
10677         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
10678         * malloc/malloc.h: Likewise.
10679         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
10680         * malloc/arena.c: New file.
10681         * malloc/hooks.c: New file.
10682         * malloc/tst-mallocstate.c: New file.
10683         * malloc/Makefile: Add new testcase tst-mallocstate.
10684         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
10686 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10688         * stdlib/msort.c: Remove last patch.  The optimization violates the
10689         same rule which qsort.c had problems with.
10691 2002-01-27  Paul Eggert  <eggert@twinsun.com>
10693         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
10694         to a pivot element that lies outside the array to be sorted, as
10695         ISO C99 requires that the comparison function be called only with
10696         addresses of array elements [PR libc/2880].
10698 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10700         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
10701         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
10703         * timezone/asia: Update from tzdata2002b.
10704         * timezone/australasia: Likewise.
10705         * timezone/backward: Likewise.
10706         * timezone/europe: Likewise.
10707         * timezone/leapseconds: Likewise.
10708         * timezone/iso3166.tab: Likewise.
10709         * timezone/zone.tab: Likewise.
10711 2002-01-23  Richard Henderson  <rth@redhat.com>
10713         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10715 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10717         * string/strxfrm.c: Allocate one more byte for rulearr and clear
10718         this element [PR libc/2855].
10720         * string/strcoll.c: Handle zero-length arguments specially
10721         [PR libc/2856].
10723 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
10725         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10726         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10727         short lengths and constant src.
10728         (strcpy): Don't optimize for gcc 3.0+.
10729         (__stpcpy): For gcc 3.0+, don't use
10730         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10731         for short string literal src.
10733 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10735         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10736         Set for arm, too.
10738 2001-01-22  Paul Eggert  <eggert@twinsun.com>
10740         * manual/llio.texi (Linked Channels, Cleaning Streams):
10741         Make it clearer that a just-opened input stream might need cleaning.
10743 2002-01-21  H.J. Lu  <hjl@gnu.org>
10745         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10746         Don't use label at end of compound statement.
10748 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
10750         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10751         Remove test for negative integer arg; sin_pi does it correctly.
10753 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
10755         * nscd/Makefile (distribute): Filter out xmalloc.c.
10757 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
10759         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10760         Set offset if read end wasn't the buffer end.
10761         (_IO_file_seekoff_mmap): New function.
10762         (_IO_file_xsgetn_mmap): New function.
10763         (_IO_file_jumps_mmap): Use the two new functions.
10764         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10765         != end buffer.
10766         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10767         _IO_file_underflow_mmap.
10768         * libio/iofopen.c: Don't position file descriptor at end of file.
10769         * libio/tst-widetext.c: Improve error messages.
10770         * stdio-common/tst-rndseek.c: Likewise.
10772 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
10774         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10775         end of enum for !_GNU_SOURCE.
10776         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10777         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10778         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10779         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10780         values unless _GNU_SOURCE.
10782         * iconvdata/tcvn5712-1.c: Minor cleanups.
10784 2002-01-18  Andreas Schwab  <schwab@suse.de>
10786         * sysdeps/unix/sysv/linux/configure.in
10787         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10789 2002-01-16  Roger Sayle  <roger@eyesopen.com>
10791         * stdlib/msort.c (msort_with_tmp): Replace implementation with
10792         more efficient "Towers of Hanoi" mergesort.
10793         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10794         for generic, sizeof(int) and sizeof(long) variants respectively.
10796 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
10798         * manual/syslog.texi (openlog): Describe possible problems with
10799         first parameter.
10800         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10802         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
10803         * nscd/connections.c (begin_drop_privileges): New function.
10804         (finish_drop_privileges): New function.
10805         (nscd_init): Call the new functions which also install all groups
10806         for the server user.
10807         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10808         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10810 2002-01-17  H.J. Lu  <hjl@gnu.org>
10812         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10813         `const' from `got'.
10815 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10817         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10818         instructions for pointer operations.
10819         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10821 2002-01-17  Andreas Jaeger  <aj@suse.de>
10823         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10824         __uint128_t build-in.
10826         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10827         PowerPC, sync with 2.2 branch.
10829 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10831         * posix/getconf.c: Update copyright year.
10832         * nss/getent.c: Likewise.
10833         * nscd/nscd_nischeck.c: Likewise.
10834         * iconv/iconvconfig.c: Likewise.
10835         * iconv/iconv_prog.c: Likewise.
10836         * elf/ldconfig.c: Likewise.
10837         * catgets/gencat.c: Likewise.
10838         * csu/version.c: Likewise.
10839         * elf/ldd.bash.in: Likewise.
10840         * elf/sprof.c (print_version): Likewise.
10841         * locale/programs/locale.c: Likewise.
10842         * locale/programs/localedef.c: Likewise.
10843         * nscd/nscd.c (print_version): Likewise.
10844         * debug/xtrace.sh: Likewise.
10845         * malloc/memusage.sh: Likewise.
10846         * malloc/mtrace.pl: Likewise.
10848 2002-01-16  Andreas Schwab  <schwab@suse.de>
10850         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10851         reliably remove "-ia64" from rtld name.
10853 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10855         * iconvdata/gb18030.c: Bug fixes and support for more characters.
10856         Patch by Yu Shao <yshao@redhat.com>.
10858 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10860         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10861         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10862         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10864 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10866         * sysdeps/s390/fpu/libm-test-ulps: Update.
10868 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
10870         * elf/elf.h: Update x86 relocations.
10872 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10874         * locale/programs/charmap.c (new_width): Check whether byte
10875         sequences for both ends of range have the same length.
10877 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10879         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10881 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10883         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10884         string literals.
10885         (__full_ieee754_sqrt): Add __attribute_used__.
10887 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10889         * sysdeps/generic/group_member.c (__group_member): Also check
10890         groups[0] [PR libc/2781].
10892 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
10894         * Makefile (distribute): Add scripts/cpp.
10895         * elf/Makefile (distribute): Add reldep6mod[01234].c,
10896         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10897         unwind-dw2-fde.h, and dwarf2.h.
10898         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10899         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10900         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10901         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10903 2002-01-07  Roland McGrath  <roland@frob.com>
10905         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10906         volatile on type of ARGC so the compiler doesn't get clever.
10908 2002-01-07  Andreas Jaeger  <aj@suse.de>
10910         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10911         * sysdeps/i386/bits/byteswap.h: Likewise.
10912         * sysdeps/ia64/bits/byteswap.h: Likewise.
10913         * sysdeps/m68k/bits/byteswap.h: Likewise.
10914         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10915         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10917 2002-01-02  Bruno Haible  <bruno@clisp.org>
10919         * intl/plural.y: Fix %expect count.
10921 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10923         * elf/Makefile (routines, shared-only-routines): Add
10924         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10925         * elf/elf.h (PT_GNU_EH_FRAME): Define.
10926         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10927         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10928         Optimize if .eh_frame section contains no FDEs.
10929         (__register_frame, __deregister_frame_info_bases,
10930         __deregister_frame): Likewise.
10931         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10932         DW_CFA_restore handling.
10934 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
10936         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10938         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10939         for x < 0.25 and restore original range reduction method.
10940         (__ieee754_lgammal_r): Make sure signgam is set before returning.
10942 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
10944         * libio/fileops.c (_IO_file_underflow_mmap): New function.
10945         (_IO_file_close_mmap): New function.
10946         (_IO_file_jumps_mmap): New variable.
10947         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10948         trying to convert rest of byte buffer.
10949         (_IO_wfile_underflow_mmap): New function.
10950         (_IO_wfile_jumps_mmap): New variable.
10951         * libio/iofopen.c (__fopen_maybe_mmap): New function.
10952         (__fopen_internal): New function.  Split out from _IO_new_fopen.
10953         (_IO_new_fopen): Call __fopen_internal.
10954         * libio/iofopen64.c: Just call __fopen_internal.
10955         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10956         successfully.
10957         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10958         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10959         _IO_file_close_mmap.
10961         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10962         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10964         * stdio-common/Makefile (tests): Add tst-rndseek.
10965         * stdio-common/tst-rndseek.c: New file.
10967 2002-01-05  Roland McGrath  <roland@frob.com>
10969         * config.h.in (HAVE_MIG_RETCODE): New #undef.
10970         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10971         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10972         * sysdeps/mach/hurd/configure: Regenerated.
10974 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
10976         * elf/elf.h: Add more TLS definitions.
10978 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
10980         * include/features.h (__GLIBC_MINOR__): Bump to 3.
10982 2002-01-02  Roland McGrath  <roland@frob.com>
10984         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10985         __sigisemptyset.  Don't use MASK uninitialized.
10987         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10988         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10989         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10990         __sigdelset, __sigaddset, __sigorset.
10992         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10993         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10995         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10996         _hurd_ports is null.
10998         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10999         for old CMU and new OSF Mach interface flavors.
11000         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
11001         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
11003         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
11005         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
11006         Pass extra arguments to task_create for OSF variant.
11007         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
11009         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
11010         conditional on [HAVE_AUX_VECTOR].
11012         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
11013         mach_msg_timeout_t as type of final argument.
11015         * hurd/privports.c (__get_privileged_ports):
11016         Change host_priv_t to mach_port_t in argument type.
11017         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
11018         Update decls.
11020         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
11021         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
11022         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
11023         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
11024         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
11025         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
11027 2002-01-01  Roland McGrath  <roland@frob.com>
11029         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
11031 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
11033         * include/stdlib.h: Define inlines for the _l variants of the strto*
11034         functions.
11036 2002-01-01  Roland McGrath  <roland@frob.com>
11038         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
11040         * mach/Machrules (MIG): Set CPP as well as CC.
11042 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
11044         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
11045         locale to parse /proc/loadavg [PR libc/2760].
11047 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
11049         * elf/dl-conflict.c: Include sys/param.h.
11050         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
11051         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
11052         warning.
11053         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
11054         literals to avoid warnings.
11056 2001-12-31  Andreas Jaeger  <aj@suse.de>
11058         * configure.in: Don't check for gsed since we do not use it anywhere.
11060 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
11062         * io/fts.c: Update from BSD to fix memory leaks.
11064 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
11066         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
11067         * elf/chroot_canon.c: Likewise.
11068         * elf/dl-object.c: Likewise.
11069         * iconv/iconv_charmap.c: Likewise.
11070         * iconv/iconv_prog.c: Likewise.
11071         * libio/iogetdelim.c: Likewise.
11072         * locale/lc-time.c: Likewise.
11073         * stdlib/canonicalize.c: Likewise.
11074         * sunrpc/svc.c: Likewise.
11075         * sysdeps/generic/glob.c: Likewise.
11077 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11079         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
11080         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
11081         remove high order bit from the program counter.
11082         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
11084 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11086         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
11087         unnecessary code and add missing reloc types.
11088         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
11089         case for reloc type R_390_NONE.
11091 2001-12-28  Andreas Jaeger  <aj@suse.de>
11093         * io/bug-ftw3.c: Include string.h for prototypes.
11095         * crypt/md5test.c (main): Remove unused variable.
11097         * dlfcn/modstatic.c: Add prototype to avoid warning.
11099 2001-12-26  Roland McGrath  <roland@frob.com>
11101         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
11102         check only (SS->pending & MASK) for the signal to return.
11103         From Jeroen Dekkers <jeroen@dekkers.cx>.
11105 2001-12-22  Roland McGrath  <roland@frob.com>
11107         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
11108         Use preprocessor #if conditionals instead of `if' to avoid
11109         warnings about divide by zero in dead code.
11111         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
11112         _hurd_port_init, and __hurd_self_sigstate.
11114         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
11116 2001-12-21  Andreas Jaeger  <aj@suse.de>
11118         * elf/dblloadmod1.c: Add prototype to avoid warning.
11119         * elf/dblloadmod2.c: Likewise.
11120         * elf/dblloadmod3.c: Likewise.
11121         * elf/reldepmod5.c: Likewise.
11122         * elf/reldepmod6.c: Likewise.
11124         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
11125         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
11126         used on all architectures.
11128         * sunrpc/svc_tcp.c: Add noreturn attribute for
11129         svctcp_rendezvous_abort.
11130         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
11132         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
11133         to avoid warning.
11135 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
11137         * manual/llio.texi (aio_fsync): Fix a typo.
11138         Patch by Tammy Fox <tfox@redhat.com>.
11140 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
11142         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
11143         stack bias from child stack pointer before passing it to clone syscall.
11145 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
11147         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
11148         _SC_TZNAME_MAX.
11149         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
11150         Reported by Thorsten Kukuk <kukuk@suse.de>.
11152         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
11153         add some casts.
11155         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
11157 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
11159         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
11160         conforming: return EBADF if file descriptor is invalid and EINVAL
11161         if file descriptor is no valid tty.
11162         * login/tst-grantpt.c: New file.
11163         * login/Makefile (tests): Add tst-grantpt.
11165 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
11167         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
11168         different than implemented in last patch.
11169         * io/bug-ftw3.c: Adjust test for changed handling of
11170         inaccessibility of toplevel dir.
11172 2001-12-16  Roland McGrath  <roland@frob.com>
11174         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
11175         * grp/initgroups.c (internal_getgrouplist): Likewise.
11177         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
11178         `default:' to silence new GCC warning.
11179         Rewrite cast of lvalue to silence new GCC warning.
11181         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
11183         * sysdeps/mach/hurd/spawni.c: New file, by me with a
11184         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
11186 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
11188         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
11189         Patch by Stephen R. van den Berg.
11191         * crypt/md5.h: Define md5_uintptr.
11193 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
11195         * libio/tst_swprintf.c (main): Add test for string argument with
11196         zero precision.
11197         * stdio-common/Makefile (tests): Add tst-sprintf.
11198         * stdio-common/tst-sprintf.c: New file.
11200 2001-12-13  Andreas Schwab  <schwab@suse.de>
11202         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
11203         zero precision with wide character string format.
11205 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
11207         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
11208         but have a user supplied buffer, return the empty buffer, not NULL.
11210 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
11212         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
11213         Patch by Eric Sharkey <sharkey@netrics.com>.
11215         * crypt/md5test.c (main): Add test for multiple calls to
11216         __md5_process_bytes to itererate over input string.
11218 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
11220         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
11221         from __nis_findfastest.  Take timeout value from parameter.
11222         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
11223         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
11224         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
11226 2001-12-12  Andreas Jaeger  <aj@suse.de>
11228         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
11229         combreloc test so that it works in this case.
11231         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
11233 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
11235         * sysdeps/sh/Makefile: New file.
11236         * sysdeps/sh/_mcount.S: New file.
11237         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
11238         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
11240 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
11242         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
11243         limitation [PR libc/2564].
11245 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
11247         * elf/Makefile (dl-routines): Add conflict.
11248         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
11249         (ld.so): Add _begin local symbol.
11250         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
11251         Define.
11252         * elf/dl-deps.c (_dl_build_local_scope): New function.
11253         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
11254         of all libraries.
11255         * elf/do-rel.h (VALIDX): Define.
11256         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
11257         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
11258         can be skipped.
11259         * elf/dl-conflict.c: New file.
11260         * elf/dl-lookup.c (_dl_debug_bindings): New function.
11261         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
11262         non-NULL.
11263         (_dl_lookup_symbol_skip): Likewise.
11264         (_dl_lookup_versioned_symbol): Likewise.
11265         (_dl_lookup_versioned_symbol_skip): Likewise.
11266         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
11267         define to ElfW(Rel).
11268         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
11269         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
11270         ranges.
11271         Don't adjust address dynamic tags if l_addr is 0.
11272         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
11273         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
11274         (VALIDX, ADDRIDX): Define.
11275         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
11276         (dl_main): Print library list for LD_TRACE_PRELINKING.
11277         If prelinking information can be used, skip relocating libraries and
11278         call _dl_resolve_conflicts instead.
11279         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
11280         * elf/dl-load.c (_dl_map_object): Don't create fake libs
11281         if LD_TRACE_PRELINKING.
11282         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
11283         + DT_ADDRNUM.
11284         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
11285         (DL_DEBUG_PRELINK): Define.
11286         (_dl_resolve_conflicts): Add prototype.
11288         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
11289         .plt for prelinked libraries where prelinking info cannot be used.
11290         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
11291         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
11292         * sysdeps/arm/bits/link.h: New file.
11293         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
11294         content of .got[1].
11295         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
11296         (ELF_MACHINE_PLT_REL): Define.
11297         (elf_machine_rela, elf_machine_rela_relative): New functions.
11298         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
11299         of adjusting it if prelinked and prelinking cannot be used.
11300         * sysdeps/i386/bits/link.h: New file.
11301         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
11302         content of .got[1].
11303         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
11304         (ELF_MACHINE_PLT_REL): Define.
11305         (elf_machine_rela, elf_machine_rela_relative): New functions.
11306         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
11307         of adjusting it if prelinked and prelinking cannot be used.
11308         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
11309         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
11310         to find out map for R_PPC_JMP_SLOT relocs.
11311         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
11312         (OPCODE_BA): Define.
11313         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
11314         libraries where prelinking info cannot be used.
11315         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
11316         (elf_machine_fixup_plt): Call sparc_fixup_plt.
11317         (elf_machine_rela): Set value to 0 if relocating conflicts.
11318         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
11319         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
11320         (sparc64_fixup_plt): Fix a typo.
11321         (elf_machine_rela): Set value to 0 if relocating conflicts.
11322         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
11323         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
11324         libraries where prelinking info cannot be used.
11325         * sysdeps/sh/bits/link.h: New file.
11326         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
11327         content of .got[1].
11328         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
11329         of adjusting it if prelinked and prelinking cannot be used.
11330         * sysdeps/s390/s390-32/bits/link.h: New file.
11331         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
11332         Save original content of .got[1].
11333         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
11334         of adjusting it if prelinked and prelinking cannot be used.
11335         * sysdeps/s390/s390-64/bits/link.h: New file.
11336         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
11337         Save original content of .got[1].
11338         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
11339         of adjusting it if prelinked and prelinking cannot be used.
11340         * sysdeps/x86_64/bits/link.h: New file.
11341         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
11342         Save original content of .got[1].
11343         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
11344         of adjusting it if prelinked and prelinking cannot be used.
11346 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
11348         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
11349         where appropriate instead of numbers.  Little optimizations.
11351 2001-12-10  Roland McGrath  <roland@frob.com>
11353         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
11354         set it.
11356         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
11357         set to GLIBC_2.2.5, not GLIBC_2.2.4.
11359         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
11360         Fix conditionals so this is set by default for stdio and not for libio.
11361         * sysdeps/mach/hurd/configure: Regenerated.
11363 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
11365         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
11367 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
11369         * io/Makefile (tests): Add bug-ftw3.
11370         * io/bug-ftw3.c: New file.
11372         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
11373         matches and GLOB_NOCHECK is set.
11374         * posix/globtest.sh: Correct expected result for NOCHECK test.
11376         * po/ca.po: Update from translation team.
11378 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
11380         Implement transliteration of characters in strings of the locale
11381         definitions.
11382         * locale/programs/linereader.c: Adjust for additional parameter to
11383         lr_token.
11384         (get_string): If character <Uxxxx> is not found try to transliterate
11385         it.
11386         * locale/programs/ld-ctype.c: Adjust for additional parameter to
11387         lr_token.  Add const to charmap parameter of all functions.
11388         (find_translit, find_translit2): New functions.
11389         * locale/programs/charmap.c: Adjust for additional parameter to
11390         lr_token.
11391         * locale/programs/repertoire.c: Likewise.
11392         * locale/programs/linereader.h: Likewise.
11393         * locale/programs/ld-address.c: Likewise.  Add const to charmap
11394         parameter of all functions.
11395         * locale/programs/ld-collate.c: Likewise.
11396         * locale/programs/ld-identification.c: Likewise.
11397         * locale/programs/ld-measurement.c: Likewise.
11398         * locale/programs/ld-messages.c: Likewise.
11399         * locale/programs/ld-monetary.c: Likewise.
11400         * locale/programs/ld-name.c: Likewise.
11401         * locale/programs/ld-numeric.c: Likewise.
11402         * locale/programs/ld-paper.c: Likewise.
11403         * locale/programs/ld-paper.c: Likewise.
11404         * locale/programs/ld-telephone.c: Likewise.
11405         * locale/programs/ld-time.c: Likewise.
11406         * locale/programs/locfile.c: Likewise.
11407         * locale/programs/localedef.c: Likewise.
11408         * locale/programs/localedef.h: Likewise.
11409         * locale/programs/locfile.h: Likewise.  Add declaration for
11410         find_translit.
11411         * locale/programs/simple-hash.c: Add const to first parameter of
11412         find_entry, iterate_table, and lookup.
11413         * locale/programs/simple-hash.h: Likewise.
11414         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
11415         instead.
11416         * include/locale.h: Define __LC_LAST.
11417         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
11419 2001-12-07  Geoff Keating  <geoffk@redhat.com>
11421         * sysdeps/powerpc/Dist: Update for recent FP changes.
11422         * sysdeps/powerpc/fpu/Dist: Likewise.
11424 2001-12-07  Andreas Schwab  <schwab@suse.de>
11426         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
11428 2001-12-06  Geoff Keating  <geoffk@redhat.com>
11430         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
11431         save/restore functions here.
11432         (libm-support): Don't define these functions here.
11433         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
11434         functions here.
11435         * sysdeps/powerpc/fe_nomask.c: Move to...
11436         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
11437         * sysdeps/powerpc/fprrest.S: Move to...
11438         * sysdeps/powerpc/fpu/fprrest.S: ... here.
11439         * sysdeps/powerpc/fprsave.S: Move to...
11440         * sysdeps/powerpc/fpu/fprsave.S: ... here.
11442 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
11444         * sysdeps/unix/sysv/linux/opensock.c: New file.
11446 2001-12-06  Geoff Keating  <geoffk@redhat.com>
11448         * config.make.in (with-fp): Define from configure.
11449         * configure.in: Substitute with_fp.
11450         * configure: Regenerate.
11451         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
11452         specified, and don't change FPU environment.
11454 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
11456         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
11457         * assert/assert.c: Check result of __asprintf call and don't use
11458         string if it failed.
11459         * assert/assert-perr.c: Likewise.
11460         * inet/rcmd.c: Likewise.
11461         * locale/programs/localedef.c (main): Check result of
11462         construct_output_path and exit if it failed.
11463         (construct_output_path): Check result of asprintf and mkdir calls and
11464         fail if they failed.
11465         * posix/getopt.c: Check result of __asprintf calls and fail if
11466         they failed.
11467         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
11469 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11471         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
11472         patch.
11473         * sysdeps/generic/strncase.c: Likewise.
11474         * string/tester.c: Add tests for strcasecmp and strncasecmp.
11476 2001-12-05  Geoff Keating  <geoffk@redhat.com>
11478         * scripts/cpp: Test the exit status from 'type', not 'awk'.
11480         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
11481         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
11482         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
11483         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
11484         * sysdeps/powerpc/fclrexcpt.c: Move to...
11485         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
11486         * sysdeps/powerpc/fpu_control.h: Move to...
11487         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
11489 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11491         * iconvdata/ibm1129.h: Remove duplicate mappings.
11492         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
11493         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
11494         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11496         * timezone/zic.c: Fix handling of turnaround times.
11497         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
11499 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
11501         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
11502         overflow problem.
11504 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11506         * posix/regex.c: For use outside glibc defined bounded pointer
11507         macros here.  Patch by Jim Meyering <jim@meyering.net>.
11509         * iconvdata/Makefile (modules): Add TCVN5712-1.
11510         * iconvdata/TESTS: Add TCVN5712-1.
11511         * iconvdata/gconv-modules: Likewise.
11512         * iconvdata/tcvn5712-1.c: New file.
11513         * iconvdata/testdata/TCVN-5712: New file.
11514         * iconvdata/testdata/TCVN-5712..UTF8: New file.
11516 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
11518         * iconvdata/cp1258.c: Optimize conversion from UCS4.
11520 2001-12-02  Roland McGrath  <roland@frob.com>
11522         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
11524         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
11525         Reported by Jeff Bailey <jbailey@nisa.net>.
11527         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
11528         Reported by Jeff Bailey <jbailey@nisa.net>.
11530         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
11531         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
11532         Reported by Jeff Bailey <jbailey@nisa.net>.
11534 2001-12-01  Roland McGrath  <roland@frob.com>
11536         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
11537         missing backslash in test arguments.
11538         * sysdeps/mach/hurd/configure: Regenerated.
11540 2001-11-26  Roland McGrath  <roland@frob.com>
11542         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
11543         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
11545 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
11547         * iconvdata/Makefile (modules): Add ARMSCII-8.
11548         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
11549         * iconvdata/armscii-8.c: New file.
11551 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
11553         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
11554         don't match, fix {{a,b},c} globbing, clean up.
11555         Patch by Flavio Veloso <flaviovs@magnux.com>.
11556         * posix/globtest.sh: Add new tests.
11558 2001-11-29  Andreas Jaeger  <aj@suse.de>
11560         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
11561         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
11563         * sysdeps/generic/abort.c: Include libioP.h for
11564         _IO_flush_all_lockp prototype.
11566 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
11568         * posix/regex.h: Define __restrict_arr correctly.
11570 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11572         * iconvdata/ibm1163.c: New file.
11573         * iconvdata/ibm1163.h: New file.
11574         * iconvdata/ibm1164.c: New file.
11575         * iconvdata/ibm1164.h: New file.
11576         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
11577         * iconvdata/Makefile: Likewise.
11578         * iconvdata/testdata/IBM1163: New file.
11579         * iconvdata/testdata/IBM1163..UTF8: New file.
11580         * iconvdata/testdata/IBM1164: New file.
11581         * iconvdata/testdata/IBM1164..UTF8: New file.
11582         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11584         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
11585         * iconvdata/ibm1124.h: Likewise.
11586         * iconvdata/ibm1132.h: Likewise.
11587         * iconvdata/ibm1133.h: Likewise.
11588         * iconvdata/ibm1160.h: Likewise.
11589         * iconvdata/ibm1161.h: Likewise.
11590         * iconvdata/ibm1162.h: Likewise.
11591         * iconvdata/ibm856.h: Likewise.
11592         * iconvdata/ibm922.h: Likewise.
11593         * iconvdata/ibm930.h: Likewise.
11594         * iconvdata/ibm932.h: Likewise.
11595         * iconvdata/ibm933.h: Likewise.
11596         * iconvdata/ibm935.h: Likewise.
11597         * iconvdata/ibm937.h: Likewise.
11598         * iconvdata/ibm939.h: Likewise.
11599         * iconvdata/ibm943.h: Likewise.
11600         * iconvdata/ibm930.c: Pretty printing.
11601         * iconvdata/ibm937.c: Avoid access accross array boundary.
11603         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
11604         the current locale's codeset.
11605         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
11606         empty input string.
11607         * iconv/iconv_prog.c: Pass empty strings as default value for to-
11608         and from-charset.  Don't determine locale's charset here.
11610         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
11611         as the old _IO_flush_all but lock only if parameter is nonzero.
11612         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
11613         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
11614         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
11615         if libio is used [PR libc/2575].
11617 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
11619         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
11620         __signbitl): Only define for ISO C99.
11622 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11624         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
11625         herrnop to NETDB_INTERNAL if we run out of buffer space.
11627 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11629         * nss/nss_files/files-XXX.c (internal_getent): Correct input
11630         overflow test for platforms with signed char.
11631         Reported by Andrew Haley <aph@cambridge.redhat.com>.
11633 2001-11-28  Bruno Haible  <bruno@clisp.org>
11635         * locale/programs/simple-hash.c (lookup_2): Remove function.
11636         (insert_entry_2): Call lookup instead of lookup_2.
11638 2001-03-04  Bruno Haible  <bruno@clisp.org>
11640         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
11642 2001-10-31  Bruno Haible  <bruno@clisp.org>
11644         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
11646 2001-03-21  Bruno Haible  <bruno@clisp.org>
11648         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
11649         chokes on empty macro arguments.
11650         * intl/plural.y: Add #pragma for alloca on AIX 3.
11652 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11654         * intl/dcigettext.c (guess_category_value): Only implement for
11655         glibc.  Otherwise rely on function _nl_locale_name which isn't
11656         present in the glibc sources.
11658 2001-09-24  Bruno Haible  <bruno@clisp.org>
11660         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
11661         transliteration when building on a glibc system but outside glibc.
11663 2001-09-22  Bruno Haible  <bruno@clisp.org>
11665         * intl/plural-eval.c: New file, extracted from dcigettext.c.
11666         * intl/dcigettext.c (plural_eval): Remove function, moved to
11667         intl/plural-eval.c.
11668         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
11669         Include plural-eval.c.
11671 2001-09-22  Bruno Haible  <bruno@clisp.org>
11673         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
11674         don't start with a digit; nplurals must be positive.
11676 2001-09-02  Bruno Haible  <bruno@clisp.org>
11678         * intl/plural-exp.h: New file, extracted from gettextP.h.
11679         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
11680         * intl/gettextP.h (struct expression, struct parse_args,
11681         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
11682         * intl/loadmsgcat.c: Include plural-exp.h.
11683         (PLURAL_PARSE): Move macro to plural-exp.h.
11684         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
11685         plural-exp.c.
11686         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
11687         EXTRACT_PLURAL_EXPRESSION.
11688         (_nl_unload_domain): Update.
11689         * intl/dcigettext.c: Include plural-exp.h.
11690         * intl/plural.y: Include plural-exp.h, not gettextP.h.
11691         (FREE_EXPRESSION): Move macro to plural-exp.h.
11692         * intl/Makefile (routines): Add plural-exp.
11693         (distribute): Add plural-exp.h.
11695 2001-07-28  Bruno Haible  <bruno@clisp.org>
11697         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
11698         isdigit, tolower argument to 'unsigned char'.
11699         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
11700         'unsigned char'.
11701         * intl/localealias.c (read_alias_file): Cast isspace argument to
11702         'unsigned char'.
11704 2001-10-20  Bruno Haible  <bruno@clisp.org>
11706         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
11707         anyway.)
11708         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
11709         with the variable 'index' in plural_lookup.
11710         * intl/l10nflist.c (strchr): Likewise.
11711         * intl/localealias.c (strchr): Likewise.
11713         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11714         * intl/bindtextdom.c: Likewise.
11715         * intl/dcigettext.c: Likewise.
11716         * intl/dgettext.c: Likewise.
11717         * intl/dngettext.c: Likewise.
11718         * intl/explodename.c: Likewise.
11719         * intl/finddomain.c: Likewise.
11720         * intl/gettext.c: Likewise.
11721         * intl/l10nflist.c: Likewise.
11722         * intl/loadmsgcat.c: Likewise.
11723         * intl/localealias.c: Likewise.
11724         * intl/ngettext.c: Likewise.
11725         * intl/textdomain.c: Likewise.
11726         * intl/gettext.h: Assume <limits.h> exists.
11728 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11730         * stdio-common/Makefile (tests): Add scanf11.
11731         * stdio-common/scanf11.c: New file.
11733 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11735         * version.h (RELEASE): Define as development.
11736         (VERSION): Set to 2.2.90.
11738 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11740         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11741         * nis/nss_nis/nis-grp.c: Likewise.
11742         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11744         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11745         * nis/nss_nis/nis-pwd.c: Likewise.
11746         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11748         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11749         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11750         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11752         * nscd/grpcache.c: Use strtoul instead of atol.
11753         * nscd/pwdcache.c: Likewise.
11754         * nss/getent.c: Likewise.
11756 2001-11-27  Paul Eggert  <eggert@twinsun.com>
11758         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11759         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11761 2001-11-19  Bruno Haible  <bruno@clisp.org>
11763         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11764         90%.
11765         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11766         improves the quality of the hash function, especially for short
11767         strings.
11769 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11771         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11772         are found call conv_error and not input_error [PR libc/2669].
11774         * math/bits/mathcalls.h: Mark ceil and floor as const.
11775         Reported by David Mosberger.
11777 2001-11-21  Jim Meyering  <meyering@lucent.com>
11779         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11780         Define to be __-prefixed.
11781         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11783 2001-11-26  Andreas Jaeger  <aj@suse.de>
11785         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11786         avoid warning.
11788 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
11790         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11791         initialization.
11793         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11794         unused variables.  Fix threshold for returning 1.0.
11796         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11797         argument.
11799         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11800         remove unused variables.
11802         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11804         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11805         include local math header files.
11807 2001-11-22  Andreas Jaeger  <aj@suse.de>
11809         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11810         avoid warning.
11812 2001-11-21  Andreas Jaeger  <aj@suse.de>
11814         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11816         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11817         sys/debugreg.h
11819 2001-11-15  Andreas Jaeger  <aj@suse.de>
11821         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11822         compilers that support it.
11824         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11825         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11826         * stdlib/stdlib.h: Likewise.
11828 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
11830         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11831         statement with gotos.
11832         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11834 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
11836         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11838 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
11840         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11842 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
11843             H.J. Lu  <hjl@gnu.org>
11845         * Versions.def (libc): Add GCC_3.0.
11846         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11847         if gcc supports this flag.
11848         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11849         (gcc3): Allow glibc to be compiled with gcc 3.x.
11850         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11851         * config.make.in (static-libgcc, unwind-find-fde): Add.
11852         * Makerules (build-shlib-helper, build-module-helper): Use it.
11853         * scripts/versions.awk: Make sure GLIBC_ versions come first.
11854         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11855         necessary.
11856         (_fini): Call __deregister_frame_info_bases if
11857         __register_frame_info_bases was used to register.
11858         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11859         for GLIBC_2.0.
11860         (__register_frame_info_bases, __register_frame_info_table_bases,
11861         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11862         * elf/Makefile (routines): Add unwind-dw2-fde.
11863         (shared-only-routines): Add unwind-dw2-fde.
11864         * sysdeps/alpha/gccframe.h: New file.
11865         * sysdeps/arm/gccframe.h: New file.
11866         * sysdeps/generic/framestate.c: New file.
11867         * sysdeps/generic/dwarf2.h: New file.
11868         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11869         * sysdeps/generic/unwind-dw2-fde.c: New file.
11870         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11871         * sysdeps/generic/unwind-dw2-fde.h: New file.
11872         * sysdeps/generic/unwind-dw2.c: New file.
11873         * sysdeps/generic/unwind-pe.h: New file.
11874         * sysdeps/generic/unwind.h: New file.
11875         * sysdeps/hppa/gccframe.h: New file.
11876         * sysdeps/i386/gccframe.h: New file.
11877         * sysdeps/m68k/gccframe.h: New file.
11878         * sysdeps/mips/gccframe.h: New file.
11879         * sysdeps/powerpc/gccframe.h: New file.
11880         * sysdeps/s390/gccframe.h: New file.
11881         * sysdeps/sh/gccframe.h: New file.
11882         * sysdeps/sparc/gccframe.h: New file.
11883         * sysdeps/vax/gccframe.h: New file.
11884         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11885         Set on all architectures except ia64.
11886         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11887         for i386.
11888         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11889         __deregister_frame_info): Move to elf/Versions.
11890         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11891         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11892         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11893         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11894         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11895         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11896         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11897         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11898         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11899         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11900         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11901         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11902         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11903         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11904         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11905         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11906         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11907         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11909 2001-11-15  Jeff Law  <law@redhat.com>
11911         * posix/regex.c (uintptr_t): Do not provide a definition if the
11912         system provided one.
11914 2001-11-13  Roland McGrath  <roland@frob.com>
11916         * stdio-common/tmpfile.c: Moved to ...
11917         * sysdeps/generic/tmpfile.c: ... here.
11918         * sysdeps/mach/hurd/tmpfile.c: New file.
11920         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11921         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11922         (fopenport): Define as weak alias.
11924         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11925         * libio/libioP.h: ... to here.
11927 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
11929         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11930         program header twice.  Construct list with the needed information.
11932 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
11934         * po/ca.po: Update from translation team.
11936         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11937         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
11938         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11939         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11941 2001-11-10  Andreas Jaeger  <aj@suse.de>
11943         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11944         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11945         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11947 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11949         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11950         correctly.
11951         * elf/dl-load.c (is_dst): New function.
11952         (_dl_dst_count): Use is_dst to check for DST variable.
11953         (_dl_dst_substitute): Likewise.
11955 2001-11-09  Roland McGrath  <roland@frob.com>
11957         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11958         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11959         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11960         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11961         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11962         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11963         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11964         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11965         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11966         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11967         * sysdeps/mach/hurd/powerpc/Dist: New file.
11969         * hurd/privports.c (__get_privileged_ports):
11970         Only contact the proc server if necessary for this call.
11971         Suggested by Neal H Walfield <neal@cs.uml.edu>.
11972         Check error return for mach_port_mod_refs.
11974 2001-11-09  Andreas Schwab  <schwab@suse.de>
11976         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11978 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11980         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
11981         object is always the last in the list.
11982         (_dl_map_object_from_fd): Delete code to remove from object list
11983         when DF_1_NOOPEN is seen.  This is done in lose.
11985 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
11987         * elf/dl-object.c (_dl_new_object): Various small optimizations.
11989 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
11991         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11992         HWCAP_CHECK macro code.
11994         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11995         Now returns MAP_FAILED on error.
11996         * elf/rtld.c: Adjust caller.
11997         * sysdeps/generic/dl-cache.c: Likewise.
11998         * sysdeps/generic/ldsodefs.h: Adjust description.
12000         * elf/dl-version.c (match_symbol): Optimize error handling for size.
12001         (_dl_check_map_versions): Likewise.
12003 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
12005         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
12006         _dl_signal_error directly, always use lose.  Set fd to -1 after
12007         file is closed.
12008         (lose): Don't call close if fd == -1.
12010 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
12012         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
12013          Also fix typo @code {mbsinit} to @code{mbsinit}.
12015 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
12017         * elf/dl-profile.c: Replace state variable with simple flag named
12018         running.  Remove commented-out code.
12020         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
12021         (_dl_init_paths): Likewise.
12022         (_dl_map_object_from_fd): Likewise.
12023         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
12025 2001-11-06  Roland McGrath  <roland@frob.com>
12027         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
12028         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
12030         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
12031         sysdeps/powerpc/elf/sysdep.h.
12032         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
12034 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
12036         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
12037         speed.
12038         (process_envvars): Some more optimizations.
12039         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
12041         * elf/elf.h: Add dynamic tag definitions for prelinking.
12043         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
12044         Rewrite code to remove environment varables for SUID binaries.
12045         Small optimization in LD_PROFILE handling.
12046         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
12047         changes.
12048         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
12050         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
12052         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
12053         strings.  Change type of second parameter.
12054         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
12055         for last change.
12057         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
12059 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
12061         * manual/string.texi: Fix typos.
12062         * manual/examples/argp-ex2.c: Likewise.
12064 2001-11-05  Roland McGrath  <roland@frob.com>
12066         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
12067         the more-specific unix/sysv/linux/powerpc file and breaks everything.
12068         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
12069         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
12070         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
12071         here, put under [__ELF__].
12073 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
12075         * manual/charset.texi: Extensive editing work.
12076         * manual/nss.texi: Likewise.
12077         Changes by Dennis Grace <dgrace@us.ibm.com>.
12079 2001-11-04  Roland McGrath  <roland@frob.com>
12081         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
12082         parameter to dir_mkfile.
12084 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
12086         * string/bits/string2.h (__strndup): If n is smaller than len, set
12087         len to n + 1.
12088         * string/tester.c (test_strndup): New function.
12089         (main): Call it.
12091 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
12093         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
12095         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
12096         * scripts/cpp: New file.
12098         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
12099         for rtld_search_dirs content.  Minor optimizations.
12101 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
12103         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
12104         avoiding unnecessary duplication.
12106 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
12108         * elf/dl-load.c (_dl_map_object): If library was found using
12109         LD_LIBRARY_PATH, don't try RUNPATH list.
12111 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12113         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
12114         Correct second argument of register_dump call.
12115         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
12116         Likewise.
12118 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
12120         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
12121         modules.
12122         * iconvdata/TESTS: Likewise.
12123         * iconvdata/gconv-modules: Likewise.
12124         * iconvdata/ibm1132.c: New file.
12125         * iconvdata/ibm1132.h: New file.
12126         * iconvdata/ibm1133.c: New file.
12127         * iconvdata/ibm1133.h: New file.
12128         * iconvdata/ibm1162.c: New file.
12129         * iconvdata/ibm1162.h: New file.
12130         * iconvdata/testdata/IBM1132: New file.
12131         * iconvdata/testdata/IBM1132..UTF8: New file.
12132         * iconvdata/testdata/IBM1133: New file.
12133         * iconvdata/testdata/IBM1133..UTF8: New file.
12134         * iconvdata/testdata/IBM1162: New file.
12135         * iconvdata/testdata/IBM1162..UTF8: New file.
12136         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
12138         * string/string.h: Fix typo in comment.
12139         * wcsmbs/wchar.h: Likewise.
12141 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
12143         * manual/getopt.texi (getopt_long, getopt_long_only): Include
12144         const in type of longopts parameter.
12146 2001-10-29  Andreas Jaeger  <aj@suse.de>
12148         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
12150 2001-10-29  Kevin Ryde  <user42@zip.com.au>
12152         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
12153         output, clarify `#' behaviour on 0.
12154         (Floating-Point Conversions): Clarify that %g only uses %e when
12155         the exponent would be greater than 1.
12157 2001-10-28  Roland McGrath  <roland@frob.com>
12159         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
12160         * sysdeps/mach/powerpc/machine-sp.h: New file.
12161         * sysdeps/mach/powerpc/sysdep.h: New file.
12162         * sysdeps/mach/powerpc/thread_state.h: New file.
12164         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
12165         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
12166         expect to need the same thing on every platform.
12168         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
12169         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
12171         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
12172         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
12173         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
12174         Move all these assembly-related definitions to ...
12175         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
12177         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
12178         by Peter Bruin <pjbruin@dds.nl>.
12180         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
12181         packing results for a `poll' call.
12183 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
12185         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
12186         correctly.
12187         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
12188         bracket expression.
12190         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12191         nrules value.
12192         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
12194 2001-10-24  H.J. Lu  <hjl@gnu.org>
12196         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
12197         Use __BEGIN_DECLS/__END_DECLS around prototypes.
12198         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
12200 2001-10-21  Jim Meyering  <meyering@lucent.com>
12202         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
12203         this code would end up calling gettext even in packages built
12204         with --disable-nls.
12205         * posix/getopt.c (_): Likewise.
12206         * posix/regex.c (_): Likewise.
12208 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
12210         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
12211         lookup not ip6.int.
12212         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
12213         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
12215 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
12217         * misc/sys/cdefs.h (__attribute_used__): Define.
12218         * elf/rtld.c (_dl_start): Add __attribute_used__.
12219         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
12221 2001-10-25  Andreas Schwab  <schwab@suse.de>
12223         * stdlib/a64l.c: Expect least significant digit first.
12224         * stdlib/l64a.c: Produce least significant digit first.
12225         * stdlib/Makefile (tests): Add test-a64l.
12226         * stdlib/test-a64l.c: New file.
12227         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
12229 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
12231         * po/sk.po: Update from translation team.
12233 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
12235         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
12237 2001-10-18  Andreas Schwab  <schwab@suse.de>
12239         * math/libm-test.inc (print_ulps): Print ulp values rounded to
12240         next whole number.
12241         (print_function_ulps): Likewise.
12242         (print_complex_function_ulps): Likewise.
12243         (print_max_error): Likewise.
12244         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
12246 2001-10-16  Andreas Schwab  <schwab@suse.de>
12248         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
12249         implementation.
12251         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
12252         BSD_SETJMP or BSD__SETJMP is defined, resp.
12253         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
12254         a tail call to __sigsetjmp that would require extending the
12255         caller's frame.
12256         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
12257         * sysdeps/m68k/bsd-setjmp.S: Deleted.
12258         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
12259         Reported by Jes Sorensen <jes@trained-monkey.org>.
12261 2001-10-16  Andreas Jaeger  <aj@suse.de>
12263         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
12264         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
12265         close PR libc/2589.
12267 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
12269         * po/ca.po: New file.  Contributed by the translation team.
12271 2001-10-15  Ralf Baechle  <ralf@gnu.org>
12273         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
12274         a varargs prototype.  Remove dependency from kernel header files.
12276         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
12277         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
12279 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
12281         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
12282         to generate hexadecimal identifier.
12283         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
12285 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
12287         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
12289 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
12291         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
12292         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
12293         Contributed by Stephen L Moshier <moshier@mediaone.net>.
12295         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
12296         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12297         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
12298         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
12299         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
12300         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
12302         * timezone/africa: Update from tzdata2001d.
12303         * timezone/asia: Likewise.
12304         * timezone/australasia: Likewise.
12305         * timezone/backward: Likewise.
12306         * timezone/europe: Likewise.
12307         * timezone/leapseconds: Likewise.
12308         * timezone/northamerica: Likewise.
12309         * timezone/southamerica: Likewise.
12310         * timezone/zone.tab: Likewise.
12312 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12314         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
12315         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
12317 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
12319         * elf/elf.h (PT_TLS): New definition.
12321 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
12323         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
12324         bits/errno.h
12326 2001-10-07  Roland McGrath  <roland@frob.com>
12328         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
12330 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
12332         * elf/elf.h: Add more ELFOSABI_* constants.
12334 2001-10-04  Ben Collins  <bcollins@debian.org>
12336         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
12337         decleration of __need_wchar_t.
12339 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
12341         * string/bits/string2.h (__strsep_g): Add prototype.
12342         (__strsep): Use it.
12343         * string/Versions (__strsep): Remove.
12344         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
12346 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
12348         * manua/llio.texi: Clarify file references added by mmap.
12349         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
12351 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
12353         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
12354         Add sc_loadrs and sc_rbs_bas to match current kernel.
12356 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
12358         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
12360         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
12362 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
12364         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
12365         object has been bumped because of relocation dependency, avoid
12366         duplicates in l_scope.
12367         (show_scope): Fix typos.
12368         * elf/Makefile: Add rules to build and run reldep6.
12369         * elf/reldep6.c: New file.
12370         * elf/reldep6mod0.c: New file.
12371         * elf/reldep6mod1.c: New file.
12372         * elf/reldep6mod2.c: New file.
12373         * elf/reldep6mod3.c: New file.
12374         * elf/reldep6mod4.c: New file.
12376 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
12378         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
12379         sparc64_fixup_plt.
12380         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
12381         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
12382         for non-lazy binding. Fix .plt[32768+] handling.
12383         (elf_machine_plt_value): Don't add addend.
12384         (elf_machine_rela): Call sparc64_fixup_plt instead of
12385         elf_machine_fixup_plt.
12386         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
12387         dynamic linker at 0xfffff800XXXXXXXX.
12389         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
12391 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
12393         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
12395 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
12397         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
12398         declare __cmsg_data field if its size would be bigger than 0.
12399         (CMSG_DATA): Adjust accordingly.
12400         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
12401         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
12402         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
12403         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
12404         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12405         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
12406         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12408 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
12410         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
12411         * iconvdata/testdata/IBM1160: New file.
12412         * iconvdata/testdata/IBM1160..UTF8: New file.
12413         * iconvdata/testdata/IBM1161: New file.
12414         * iconvdata/testdata/IBM1161..UTF8: New file.
12415         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
12417 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
12419         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
12420         UL_SETFSIZE computations better.
12422         * rt/Makefile: Remove use of filter for librt again.
12424         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
12425         UL_SETFSIZE computations better.
12427         * string/Versions: Export __strsep for GLIBC_2.2.5.
12428         * string/bits/string2.h: Define all __STRING_INLINE functions if
12429         _FORCE_INLINES is defined.
12430         Use int instead of char of parameter types.
12431         (__strsep): Don't use __strsep_g.  Don't define it.
12432         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
12433         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
12434         __strcpy_small.
12435         (__stpcpy_a_small): Renamed from __stpcpy_small.
12436         (__strcspn_c1): Don't define if _FORCE_INLINES.
12437         (__strspn_c1): Likewise.
12439 2001-09-22  Ben Collins  <bcollins@debian.org>
12441         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
12442         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
12443         * sysdeps/ia64/bits/sigaction.h: Likewise.
12444         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
12446 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
12448         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
12450 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
12452         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
12454 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
12456         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
12458 2001-09-20  H.J. Lu  <hjl@gnu.org>
12460         * include/dlfcn.h (__RTLD_SPROF): New definiton.
12461         * elf/dl-open.c (dl_open_worker): Return immediately after loading
12462         for __RTLD_SPROF.
12463         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
12464         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
12466 2001-09-20  H.J. Lu  <hjl@gnu.org>
12468         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
12469         don't add 1.
12471 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
12473         * nss/getent.c: Accept -s parameter to overwrite rules in
12474         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
12476         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
12477         with as many ".0" as necessary to form a complete address
12478         inet_network understands.
12480         * nss/getent.c: Various cleanups.  Use simpler and fewer function
12481         calls.
12483 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12485         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
12486         _JMPBUF_UNWINDS.
12487         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
12489 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
12491         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
12492         IBM1161.
12493         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
12494         * iconvdata/ibm1160.c: New file.
12495         * iconvdata/ibm1160.h: New file.
12496         * iconvdata/ibm1161.c: New file.
12497         * iconvdata/ibm1161.h: New file.
12498         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
12500 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
12502         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
12503         difference between base address and first PT_LOAD's virtual address,
12504         not the base address.
12506 2001-09-11  Tom Rix  <trix@redhat.com>
12508         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
12509         ifdef for __getopt_clean_environment.
12510         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
12512 2001-09-22  Andreas Jaeger  <aj@suse.de>
12514         * elf/reldep4.c (main): Add proper prototype to fix warning.
12516         * elf/reldep5.c (main): Remove unused variable.
12518         * math/math_private.h: Add prototypes.
12520 2001-09-21  Andreas Jaeger  <aj@suse.de>
12522         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
12523         * sysdeps/x86_64/Dist: New file.
12524         * sysdeps/x86_64/soft-fp/Dist: New file.
12526         * sysdeps/gnu/Dist: Remove eval.c.
12528 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
12530         * malloc/memusage.c (realloc): Don't count already allocated
12531         memory in the sums.
12532         (me): Always use dlsym() to find the real implementations.
12534         * malloc/memusage.sh: Make -n option actually do something.
12536 2001-09-20  Andreas Jaeger  <aj@suse.de>
12538         * elf/elf.h (R_390_NUM): Correct value.
12540         * Versions.def: Add missing versions 2.2.3 for libthread_db and
12541         libpthread.
12543         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
12544         for x86-64, install x86-64 into */lib64.
12546         * shlib-versions: Add x86-64.
12548         * elf/elf.h: Add x86-64 relocations.
12550 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
12552         * po/fr.po: Update from translation team.
12554 2001-09-19  Andreas Jaeger  <aj@suse.de>
12556         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
12557         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
12558         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
12559         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
12560         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
12561         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
12562         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
12563         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
12564         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
12565         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
12566         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
12567         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
12568         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
12569         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
12570         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
12571         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
12572         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
12573         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
12574         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
12575         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
12576         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
12577         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
12578         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
12579         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
12580         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
12581         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
12582         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
12583         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
12584         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
12585         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
12586         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
12587         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
12588         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
12589         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
12590         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
12591         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
12592         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
12593         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
12594         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
12595         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
12596         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
12597         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
12598         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
12599         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
12600         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
12601         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
12602         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
12603         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
12604         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
12605         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
12606         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
12607         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
12608         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
12609         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
12610         * sysdeps/unix/x86_64/sysdep.S: New file.
12611         * sysdeps/unix/x86_64/sysdep.h: New file.
12612         * sysdeps/x86_64/Implies: New file.
12613         * sysdeps/x86_64/Makefile: New file.
12614         * sysdeps/x86_64/Versions: New file.
12615         * sysdeps/x86_64/__longjmp.S: New file.
12616         * sysdeps/x86_64/abort-instr.h: New file.
12617         * sysdeps/x86_64/atomicity.h: New file.
12618         * sysdeps/x86_64/bits/endian.h: New file.
12619         * sysdeps/x86_64/bits/setjmp.h: New file.
12620         * sysdeps/x86_64/bits/string.h: New file.
12621         * sysdeps/x86_64/bp-asm.h: New file.
12622         * sysdeps/x86_64/bsd-_setjmp.S: New file.
12623         * sysdeps/x86_64/bsd-setjmp.S: New file.
12624         * sysdeps/x86_64/dl-machine.h: New file.
12625         * sysdeps/x86_64/elf/initfini.c: New file.
12626         * sysdeps/x86_64/elf/start.S: New file.
12627         * sysdeps/x86_64/ffs.c: New file.
12628         * sysdeps/x86_64/ffsll.c: New file.
12629         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
12630         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
12631         * sysdeps/x86_64/fpu/e_acosl.c: New file.
12632         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
12633         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
12634         * sysdeps/x86_64/fpu/e_expl.c: New file.
12635         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
12636         * sysdeps/x86_64/fpu/e_log10l.S: New file.
12637         * sysdeps/x86_64/fpu/e_log2l.S: New file.
12638         * sysdeps/x86_64/fpu/e_logl.S: New file.
12639         * sysdeps/x86_64/fpu/e_powl.S: New file.
12640         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
12641         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
12642         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
12643         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
12644         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
12645         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
12646         * sysdeps/x86_64/fpu/fegetenv.c: New file.
12647         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
12648         * sysdeps/x86_64/fpu/fegetround.c: New file.
12649         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
12650         * sysdeps/x86_64/fpu/fesetenv.c: New file.
12651         * sysdeps/x86_64/fpu/fesetround.c: New file.
12652         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
12653         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
12654         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
12655         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
12656         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
12657         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
12658         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
12659         * sysdeps/x86_64/fpu/s_atanl.c: New file.
12660         * sysdeps/x86_64/fpu/s_cosl.S: New file.
12661         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
12662         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
12663         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
12664         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
12665         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
12666         * sysdeps/x86_64/fpu/s_logbl.c: New file.
12667         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
12668         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
12669         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
12670         * sysdeps/x86_64/fpu/s_rintl.c: New file.
12671         * sysdeps/x86_64/fpu/s_significandl.c: New file.
12672         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
12673         * sysdeps/x86_64/fpu/s_sinl.S: New file.
12674         * sysdeps/x86_64/fpu/s_tanl.S: New file.
12675         * sysdeps/x86_64/gmp-mparam.h: New file.
12676         * sysdeps/x86_64/hp-timing.c: New file.
12677         * sysdeps/x86_64/hp-timing.h: New file.
12678         * sysdeps/x86_64/htonl.S: New file.
12679         * sysdeps/x86_64/memusage.h: New file.
12680         * sysdeps/x86_64/setjmp.S: New file.
12681         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
12682         * sysdeps/x86_64/stackinfo.h: New file.
12683         * sysdeps/x86_64/sysdep.h: New file.
12684         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
12686         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
12687         L Moshier.
12689 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12691         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
12692         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
12694 2001-09-18  Andreas Schwab  <schwab@suse.de>
12696         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
12697         list, now that l_scope is a pointer.
12699         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
12700         scope list.
12702 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12704         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
12705         (elf_machine_rela_relative): Add a missing declaration.
12707 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
12709         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
12710         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
12711         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
12712         ldd-rewrite scripts.
12714 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12716         * elf/ldd.bash.in: Update copyright message.
12718 2001-09-17  H.J. Lu  <hjl@gnu.org>
12720         * hurd/hurdmalloc.c (bcopy): Removed.
12721         (realloc): Replace bcopy with memcpy.
12722         * hurd/path-lookup.c (file_name_path_scan): Likewise.
12723         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12724         * sunrpc/rpcinfo.c (pmapdump): Likewise.
12726         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12727         (gethostbyaddr): Likewise.
12728         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12730 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12732         * sysdeps/gnu/eval.c: Removed.
12734 2001-09-18  Andreas Jaeger  <aj@suse.de>
12736         * sysdeps/i386/fpu/s_logbl.S: Move to ...
12737         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12739         * sysdeps/i386/fpu/s_rintl.S: Move to ...
12740         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12742         * sysdeps/i386/fpu/s_significandl.S: Move to ...
12743         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12745 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
12747         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12748         nrules value.
12750 2001-09-14  H.J. Lu  <hjl@gnu.org>
12752         * sysdeps/mips/fpu/libm-test-ulps: Updated.
12754 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
12756         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12757         Patch by Florian La Roche <laroche@redhat.com>.
12759         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12761         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12762         ETHER_CRC_LEN.
12764 2001-09-14  Andreas Schwab  <schwab@suse.de>
12766         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
12767         Sumner <bls@sgi.com>.
12768         * posix/execlp.c: Likewise.
12770 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
12772         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12773         is already found earlier in the search scope.
12775 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
12777         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12778         filter.
12780 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
12782         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12784 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
12786         * config.h.in: Enforce optimization to be used.
12787         * Makeconfig (preprocess-versions): Define ASSEMBLER.
12788         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12789         * posix/Makefile (annexc-CFLAGS): Define to -O.
12790         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12792 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
12794         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12795         Patch by Stephan Kulow.
12797 2001-09-08  Ben Collins  <bcollins@debian.org>
12799         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12800         usage of RESOLVE() (r_type, not reloc->r_type).
12802 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12804         * elf/dl-object.c: Avoid allocating extra memory block for name.
12805         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12806         allocated separately.
12807         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12809 2001-09-08  H.J. Lu  <hjl@gnu.org>
12811         * po/zh_TW.po: Fix a typo.
12813 2001-09-07  Tom Rix  <trix@redhat.com>
12815         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12817 2001-08-26  Tom Rix  <trix@redhat.com>
12819         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12820         command line options.
12821         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12822         * sysdeps/unix/sysv/aix/start.c: Removed.
12823         * sysdeps/unix/sysv/aix/start-libc.c: New file.
12824         * sysdeps/unix/sysv/aix/init-first.c: New file.
12825         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12827 2001-09-08  Ben Collins  <bcollins@debian.org>
12829         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12830         * sysdeps/generic/dl-machine.h: Likewise.
12831         * sysdeps/hppa/dl-fptr.c: Likewise.
12832         * sysdeps/ia64/dl-fptr.c: Likewise.
12833         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12834         * sysdeps/mips/dl-machine.h: Likewise.
12835         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12836         * sysdeps/powerpc/dl-machine.c: Likewise.
12838 2001-09-07  Ben Collins  <bcollins@debian.org>
12840         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12842         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12844 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12846         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12847         dependencies if necessary.
12849         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12850         loaded directly) determine length if l_initfini list by iterating
12851         over its elements.  Minor optimizations.
12852         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12853         for dependency objects.
12854         If object was already loaded check whether any of the dependencies
12855         is already on the relocation dependency list.  If yes, remove the
12856         latter.  Minor optimizations.
12857         * elf/dl-lookup.c (add_dependency): Add check for self reference of
12858         maps here.  Search l_initfini list only if the object was loaded
12859         directly and not only as a dependency.
12860         (_dl_lookup_symbol): Add relocation dependency also if object
12861         is not in global scope.  Remove test for self-reference here.
12862         (_dl_lookup_versioned_symbol): Likewise.
12863         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
12864         element of first name record.
12865         * elf/loadtest.c: Add some more test to recognize early if an object
12866         wasn't unloaded.
12867         * elf/Makefile: Add rules to build and run reldep5.
12868         * elf/reldep5.c: New file.
12869         * elf/reldepmod5.c: New file.
12870         * elf/reldepmod6.c: New file.
12872         * elf/reldep2.c: Fix typo.
12874 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
12876         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12877         elements.  Change l_scope to be a pointer only.
12878         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12879         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12880         here add searchlist of newly open file to the dependency's scope.
12881         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12882         only searchlist from its scope.  Free own scope array if necessary.
12883         * elf/Makefile (tests): Add dblload and dblunload now.
12885 2001-09-06  Andreas Jaeger  <aj@suse.de>
12887         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12888         Stephen L Moshier.
12890 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
12892         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
12893         they both fail.
12894         * elf/dblload.c: New file.
12895         * elf/dblloadmod1.c: New file.
12896         * elf/dblloadmod2.c: New file.
12897         * elf/dblloadmod3.c: New file.
12898         * elf/dblunload.c: New file.
12900 2001-09-04  Richard Henderson  <rth@redhat.com>
12902         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12903         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12905 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12907         Correct very misleading message for error in failed runtime relocation.
12908         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12909         place of the error.
12910         (_dl_signal_cerror): Likewise.
12911         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12912         * elf/dl-close.c: Likewise.
12913         * elf/dl-deps.c: Likewise.
12914         * elf/dl-load.c: Likewise.
12915         * elf/dl-lookup.c: Likewise.
12916         * elf/dl-open.c: Likewise.
12917         * elf/dl-reloc.c: Likewise.
12918         * elf/dl-sym.c: Likewise.
12919         * elf/dl-version.c: Likewise.
12920         * sysdeps/generic/dl-sysdep.c: Likewise.
12922 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12924         * iconv/strtab.c (strtabinit): Initialize null Strent.
12925         (newstring): Move len == 0 handling...
12926         (strtabadd): ...here.
12927         If len == 1, return null Strent.
12928         When inserting a suffix of an existing string, check if
12929         it is not equal to some suffix already recorded.
12930         Copy left and right members over if adding longer string.
12932 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12934         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12936         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12937         (__syscall_gethostname): Add prototype.
12939 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12941         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12943 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
12945         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12947 2001-08-27  Roland McGrath  <roland@frob.com>
12949         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12950         short, copy that much into NAME anyway before returning error.
12952 2001-09-01  Richard Henderson  <rth@redhat.com>
12954         * sysdeps/alpha/elf/Dist: Remove file.
12955         * sysdeps/alpha/elf/Makefile: Remove file.
12956         * sysdeps/alpha/elf/crtbegin.S: Remove file.
12957         * sysdeps/alpha/elf/crtend.S: Remove file.
12958         * sysdeps/alpha/elf/initfini.c: New file.
12960 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
12962         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12963         * iconv/tst-iconv3.c: Likewise.
12965 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
12967         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12969 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
12971         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12972         export it.
12973         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12974         * iconv/iconv_prog.c (insert_cache): New function.
12975         (print_known_names): If cache is used call insert_cache to use the
12976         information from the cache [PR libc/2509].
12978 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
12980         * time/strptime.c (strptime_internal): Recognize 'l' format and
12981         handle it like 'I' for symmetry with strftime.
12983 2001-08-31  Richard Henderson  <rth@redhat.com>
12985         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12986         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12987         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12988         (print_statistics): Make scalar unsigned long long.
12989         * sysdeps/alpha/hp-timing.h: New file.
12991 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12993         * stdio-common/perror.c (perror): Save errno early, pass it
12994         down to perror_internal.
12995         (perror_internal): Add errnum argument.
12997 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12999         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
13000         Don't add old memory content for R_ALPHA_REFQUAD.
13002 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
13004         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
13005         memory correctly.
13007         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
13008         instead of open, __close instead of close, __getpagesize instead
13009         of getpagesize.
13011         * string/argz-stringify.c (__argz_stringify): Use __strnlen
13012         instead of strnlen.
13013         * include/string.h (strndupa): Redefine here to use __strnlen
13014         instead of strnlen.
13015         * string/strndup.c (__strndup): Use __strnlen not strnlen.
13017         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
13018         connected).
13020 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
13022         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
13023         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
13024         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
13025         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
13026         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
13027         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
13028         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
13030 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
13032         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
13034 2001-08-30  Andreas Jaeger  <aj@suse.de>
13036         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
13037         contributed Stephen L Moshier.
13039 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
13041         * sunrpc/etc.rpc (sgi_fam): Add.
13043 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
13045         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
13047 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
13049         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
13050         first is from a previous call.
13051         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
13053 2001-08-29  Andreas Schwab  <schwab@suse.de>
13055         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
13057 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
13059         * config.make.in (INSTALL_SCRIPT): Define.
13060         * Makeconfig (INSTALL_SCRIPT): Define.
13061         * Makerules (do-install-script): New macro to install scripts using
13062         INSTALL_SCRIPT.
13063         (install-bin-script): New rule to install scripts with
13064         do-install-script.
13065         (install-bin-script-nosubdir): New rule.
13066         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
13067         (distinfo-vars): Add $(install-bin-script).
13068         * Rules (others): Likewise.
13069         * Makefile (glibcbug): Install with install-bin-script.
13070         * debug/Makefile (xtrace): Likewise.
13071         (catchsegv): Likewise.
13072         * elf/Makefile (ldd): Likewise.
13073         * malloc/Makefile (mtrace): Likewise.
13074         * timezone/Makefile (tzselect): Likewise.
13076 2001-08-29  H.J. Lu  <hjl@gnu.org>
13078         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
13079         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
13080         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
13082 2001-08-29  Andreas Schwab  <schwab@suse.de>
13084         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
13086 2001-08-28  H.J. Lu  <hjl@gnu.org>
13088         * Makeconfig (combreloc-LDFLAGS): New variable.
13089         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
13090         * config.make.in (have-z-combreloc): New variable.
13091         * configure.in: Substitute libc_cv_z_combreloc.
13093 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
13095         * po/sv.po: Update from translation team.
13096         * po/fr.po: Likewise.
13097         * po/da.po: Likewise.
13099 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
13101         * Makerules: Fix a typo: MD% -> MD5.
13103 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
13105         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
13106         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
13108 2001-08-28  Andreas Jaeger  <aj@suse.de>
13110         * manual/libc-texinfo.sh: Add entry about free manuals.
13112         * manual/contrib.texi (Contributors): Fix cross reference.
13114         * manual/libc.texinfo (Copying): Include freemanuals.
13116         * manual/Makefile (appendices): Add freemanuals.
13118         * manual/freemanuals.texi: New file.
13119         Patch by Brian Youmans <3diff@gnu.org>.
13121         * manual/libm-err-tab.pl: Pretty print more platforms, print a
13122         smaller table.
13124         * manual/math.texi (Errors in Math Functions): Fix grammar, start
13125         table on separate page.
13126         Patch by Brian Youmans <3diff@gnu.org>.
13128 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
13130         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
13131         the connection went down after we first used it try to connect
13132         again and resend the message before printing to the console.
13133         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
13135 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
13137         * string/tst-strlen.c (main): Test strnlen (, -1) too.
13138         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
13139         bit set.
13141 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
13143         * iconv/strtab.c (searchstring): Use correct length for comparison.
13144         (strtabadd): Account total size correct if new string has old string as
13145         substring.
13147 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
13149         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
13151 2001-08-27  Andreas Jaeger  <aj@suse.de>
13153         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
13155         * math/libm-test.inc (j0_test): Add extra tests.
13156         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
13157         not x, in Hankel approximation.
13158         Patches by Stephen L Moshier.
13160 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
13162         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
13163         link_map.
13165         * configure.in: Fix test for .rela.dyn section.
13167         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
13169 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
13171         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
13172         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
13173         Pass type_class to _dl_lookup_*.
13174         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
13175         Pass around just type_class instead of noexec, noplt pair.
13176         (_dl_lookup_versioned_symbol): Likewise.
13177         (_dl_lookup_symbol_skip): Pass around just type_class instead of
13178         noexec, noplt pair.
13179         (_dl_lookup_versioned_symbol_skip): Likewise.
13180         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
13181         * elf/do-lookup.h (do_lookup): Likewise.
13182         * include/link.h (struct link_map): Replace noexec and noplt fields
13183         in l_lookup_cache with type_class field.
13184         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
13185         ELF_RTYPE_CLASS_COPY): Define.
13186         Adjust prototypes for _dl_lookup_symbol and
13187         _dl_lookup_versioned_symbol.
13188         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
13189         elf_machine_lookup_noexec_p): Remove.
13190         (elf_machine_type_class): Define.
13191         * sysdeps/arm/dl-machine.h: Likewise.
13192         * sysdeps/hppa/dl-machine.h: Likewise.
13193         * sysdeps/cris/dl-machine.h: Likewise.
13194         * sysdeps/i386/dl-machine.h: Likewise.
13195         * sysdeps/ia64/dl-machine.h: Likewise.
13196         * sysdeps/m68k/dl-machine.h: Likewise.
13197         * sysdeps/mips/mips64/dl-machine.h: Likewise.
13198         * sysdeps/mips/dl-machine.h: Likewise.
13199         * sysdeps/powerpc/dl-machine.h: Likewise.
13200         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13201         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13202         * sysdeps/sh/dl-machine.h: Likewise.
13203         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13204         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13206 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
13208         * manual/message.texi (Advanced gettext functions): Change
13209         description of plural forms for Slovak.
13210         Reported by Marcel Telka <marcel@telka.sk>.
13212         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
13213         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
13215 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
13217         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
13218         typo.  Patch by Florian La Roche <laroche@redhat.com>.
13220 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
13222         * include/link.h (struct link_map): Add l_lookup_cache element.
13223         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
13224         (RESOLVE_MAP): Likewise.
13225         (_dl_relocate_object): Remove cache initialization.
13226         * elf/dl-lookup.c: Rip out cache handling code.
13227         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
13228         declarations.
13230         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
13231         remove some __builtin_expect.
13232         (_dl_lookup_versioned_symbol): Likewise.
13234         * config.h.in: Add HAVE_Z_COMBRELOC.
13235         * configure.in: Add test for -z combreloc.
13237         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
13238         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
13239         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
13240         case to almost no code.
13242 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
13244         * po/tr.po: Update from translation team.
13246 2001-08-24  Andreas Jaeger  <aj@suse.de>
13248         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
13249         make clean works.
13251 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13253         * elf/rtld.c (print_statistics): Printf % after percent values.
13254         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
13256         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
13257         don't have to compute the hash value and initialize current_value.
13258         Move reference_name variable to where it is needed.
13259         (_dl_lookup_versioned_symbol): Likewise.
13261 2001-08-24  Roland McGrath  <roland@frob.com>
13263         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
13264         Just test that strerror returns non-null for a few errno codes.
13266 2001-08-23  Roland McGrath  <roland@frob.com>
13268         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
13269         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
13271         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
13273         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
13274         __mach_reply_port.
13276 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13278         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
13279         returns NULL.
13281         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
13282         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
13283         doesn't do it.
13284         * elf/rtld.c: Include <sys/param.h>.
13285         * elf/dl-reloc.c: Likewise.
13287 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
13289         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
13290         empty to prevent junk from being generated.
13291         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
13293 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
13295         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
13296         records.  Rename endrel to relative, initialize it to r, and use it
13297         in elf_machine_rel_relative calls.  Point r after relative relocs.
13299 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13301         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
13302         of R_386_NONE.
13304 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
13306         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
13307         necessary.  Undefine newly defined macros at the end.
13308         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
13309         Rename from elf_machine_rel_relative.
13310         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
13311         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
13312         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
13313         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
13314         Likewise.
13315         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
13316         Likewise.
13317         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
13318         Fix argument types.
13319         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
13320         Fix argument types.
13321         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
13322         Likewise.  Fix argument types.
13323         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
13324         Likewise.  Fix argument types.
13325         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
13326         Fix argument types.
13327         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
13328         ElfW(Rel) in argument.
13329         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
13330         function.
13332 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
13334         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
13336 2001-08-24  Andreas Jaeger  <aj@suse.de>
13338         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
13339         Stephen L Moshier <moshier@mediaone.net>.
13341 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13343         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
13344         first if RELCOUNT is set.
13346         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
13347         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
13348         elf_machine_rel_relative.
13349         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
13350         Minor optimizations.
13351         * sysdeps/arm/dl-machine.h: Likewise.
13352         * sysdeps/cris/dl-machine.h: Likewise.
13353         * sysdeps/hppa/dl-machine.h: Likewise.
13354         * sysdeps/i386/dl-machine.h: Likewise.
13355         * sysdeps/ia64/dl-machine.h: Likewise.
13356         * sysdeps/m68k/dl-machine.h: Likewise.
13357         * sysdeps/mips/dl-machine.h: Likewise.
13358         * sysdeps/powerpc/dl-machine.h: Likewise.
13359         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13360         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13361         * sysdeps/sh/dl-machine.h: Likewise.
13362         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13363         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13365 2001-08-23  Roland McGrath  <roland@frob.com>
13367         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
13369         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
13370         sysdeps/mach version.  Implement counting ("recursive") mutexes
13371         on top of cthreads mutexes.
13372         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
13374         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
13375         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
13376         (__libc_cleanup_region_start, __libc_cleanup_region_end,
13377         __libc_clean_end): Define these to call the cleanup function after
13378         normal exit when they're supposed to.
13380         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
13381         Take new first arg DOIT, a boolean saying whether to really install
13382         any cleanup handler.
13383         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
13384         (__libc_cleanup_end): Likewise.
13385         * sysdeps/generic/bits/libc-lock.h: Same changes.
13386         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
13387         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
13388         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
13389         Likewise.
13390         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
13391         * sysdeps/generic/bits/stdio-lock.h
13392         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
13394 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13396         * elf/ldconfig.c (search_dir): Remove stale symlinks.
13398 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13400         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
13401         functions.
13402         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
13403         lookups in cache.
13404         (_dl_lookup_versioned_symbol): Likewise.
13405         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
13406         relocation lookup.
13407         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
13408         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
13409         (lookup_cache, lookup_cache_versioned): Add declarations.
13411 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
13413         * stdlib/tst-random.c (main): Swap parameters in fail call.
13414         Patch by Pete Bevin <pete@petebevin.com>.
13416 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13418         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
13420 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
13422         * malloc/obstack.c: Indent preprocessor directives.
13423         Patch by Jim Meyering <meyering@ascend.com>.
13425         * po/ja.po: Update from translation team.
13427 2001-08-23  Roland McGrath  <roland@frob.com>
13429         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
13431         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
13432         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
13434 2001-08-22  Roland McGrath  <roland@frob.com>
13436         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
13437         __libc_lock_define_recursive.
13438         * elf/dl-open.c: Don't declare it here any more.
13439         * elf/dl-close.c: Likewise.
13440         * elf/dl-lookup.c: Likewise.
13441         * elf/dl-iteratephdr.c: Likewise.
13442         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
13443         __libc_lock_unlock_recursive.
13444         * elf/dl-close.c (_dl_close): Likewise
13445         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
13446         * elf/dl-open.c (_dl_open): Likewise
13448         * sysdeps/generic/bits/libc-lock.h
13449         (__libc_lock_define_recursive): New macro.
13450         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
13451         (_IO_lock_lock): Use __libc_lock_lock_recursive.
13452         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
13454         * conform/conformtest.pl (checknamespace): Sort the output list.
13456         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
13457         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
13458         definitions conditional on [__USE_XOPEN].
13460         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
13461         these unconditionally, not only use [__USE_BSD], so as to match
13462         the sysdeps/unix/sysv/linux files.
13464 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13466         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
13467         avoid warnings.
13469         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
13470         DL_LOOKUP_ADDRESS.
13472 2001-08-22  Roland McGrath  <roland@frob.com>
13474         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
13475         conditionalization of sa_handler/sa_sigaction member types to
13476         match the sysdeps/unix/sysv/linux file.
13478 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13480         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
13481         symbol sizes a bit better.
13483         * sysdeps/ia64/strncpy.S: Complete rewrite.
13484         Contributed by Jakub Jelinek <jakub@redhat.com>.
13486         * string/stratcliff.c (main): Add strncpy test.
13488 2001-08-22  Roland McGrath  <roland@frob.com>
13490         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
13491         and don't declare unsetenv or _environ directly.
13492         (unsetenv): Return int, not void.  Use __environ instead of _environ.
13494 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
13496         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
13497         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
13498         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
13499         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
13500         test for cmsg struct size.
13502 2001-04-23  Paul Eggert  <eggert@twinsun.com>
13504         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
13505         Rename __argc to ___argc in prototypes to avoid compatibility
13506         problems with systems that reserve the identifier "__argc".
13507         Similarly for __argv.
13509 2001-08-21  Roland McGrath  <roland@frob.com>
13511         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
13513         * mach/Makefile (tests): Removed.
13514         * mach/hello.c: File removed.
13516 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13518         * po/sv.po: Update from translation team.
13520         * stdio-common/vfscanf.c: Fix handling of %l[].
13521         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
13523         * libio/Makefile (tests): Add tst-sscanf.
13524         * libio/tst-sscanf.c: New file.
13526         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
13527         * malloc/mtrace.c (tr_where): dli_sname always points to a
13528         non-empty string if != NULL.
13529         Reported by Tim Janik <timj@gtk.org>.
13531 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
13533         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
13534         buf.  Free resources on failure.
13535         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
13536         (makefd_xprt): Likewise.
13537         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
13538         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
13539         * sunrpc/auth_unix.c (authunix_create): Likewise.
13541 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
13543         * string/strnlen.c: Remove.
13544         * sysdeps/generic/strnlen.c: New file.
13545         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
13547 2001-08-21  Roland McGrath  <roland@frob.com>
13549         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
13550         as a macro, not an extern inline function.
13552         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
13553         * Versions.def (libc): Add GLIBC_2.2.5 set.
13554         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
13555         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
13557 2001-08-20  Roland McGrath  <roland@frob.com>
13559         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
13560         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
13562 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
13564         * string/bits/string2.h: Remove strnlen optimization here.
13565         * sysdeps/i386/i486/bits/string.h: Add it here.
13567 2001-08-21  Wolfram Gloger  <wg@malloc.de>
13569         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
13571 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
13573         * po/gl.po: Update from translation team.
13575 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13577         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
13578         * misc/err.c (convert_and_print): Likewise.
13580         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
13581         function calls.
13583 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13585         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
13586         change of the gregset_t type.
13587         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13589 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
13591         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
13593 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13595         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
13597         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
13599 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
13601         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
13602         before calling the cthreads initialization code.
13604 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13606         * argp/argp-help.c: Fix two problems introduced in last change.
13608         * include/dirent.h: Include <dirstream.h> first.
13610 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
13612         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
13614         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
13615         * sunrpc/xdr_rec.c: Likewise.
13616         * sunrpc/xdr_mem.c: Likewise.
13617         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
13618         * sunrpc/rpc_cmsg.c: Likewise.
13619         * sunrpc/getrpcport.c (getrpcport): Likewise.
13620         * sunrpc/clnt_simp.c (callrpc): Likewise.
13621         * sunrpc/clnt_gen.c (clnt_create): Likewise.
13622         * string/envz.c: Likewise.
13624         * po/ko.po: Update from translation team.
13626         * argp/argp-help.c: Handle wide oriented stderr stream.
13628 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
13630         * sysdeps/generic/strtol.c: Little optimizations.  Add some
13631         __builtin_expect.
13633         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
13635         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
13636         * wcsmbs/wcwidth.c (wcwdith): Likewise.
13637         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
13639         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
13641         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
13643         * time/time.h (struct timespec): Use __time_t for tv_sec element.
13645         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
13646         wchar_t for function declarations and defintions.
13648         * misc/sys/select.h: Define __need_time_t before including <time.h>.
13649         Define suseconds_t if it hasn't happened yet.
13651         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
13653         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
13655         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
13656         <stddef.h>.
13658         * conform/data/stddef.h-data: Remove wint_t.
13660         * conform/conformtest.pl: Change namespace test to take #undef
13661         lines into account.
13663         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
13665         * conform/data/sys/socket.h-data: Add sockatmark.
13667 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13669         * io/fts.c: Update from recent BSD source.
13671 2001-08-17  Roland McGrath  <roland@frob.com>
13673         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
13674         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
13675         Likewise.
13677 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13679         * locale/duplocale.c (__duplocale): Also initialize the special
13680         __ctype_* elements.
13682         * conform/data/netdb.h-data: Adjust gai_strerror return type.
13684 2001-08-17  Andreas Jaeger  <aj@suse.de>
13686         * misc/getpass.c: Include wchar.h for prototypes.
13687         * malloc/obstack.c: Likewise.
13689 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13691         * sunrpc/svc_simple.c (universal): Use __write instead of write.
13693         * wcsmbs/wcscoll.c: Also define __wcscoll.
13694         * include/wchar.h: Declare __wcscoll.
13696         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
13697         * libio/vwprintf.c: Likewise.
13698         * libio/wprintf.c: Likewise.
13700         * iconv/gconv_cache.c: Use __munmap instead of munmap.
13702 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
13704         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
13705         instead of mbrtowc.
13706         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
13707         wcslen, and __wcscoll instead of wcscoll.
13709         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
13711         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
13712         __getuid instead of getuid.
13714         * stdio-common/perror.c (perror): Use __close instead of close.
13715         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13716         * libio/freopen.c (freopen): Likewise.
13717         * libio/freopen64.c (freopen64): Likewise.
13719         * libio/tst-ungetwc2.c (main): Define str const.
13721         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13722         * libio/fwprintf.c: Also define __fwprintf.
13723         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13724         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13725         * assert/assert-perr.c: Likewise.
13726         * assert/assert.c: Likewise.
13727         * gmon/gmon.c: Likewise.
13728         * inet/rcmd.c: Likewise.
13729         * malloc/obstack.c: Likewise.
13730         * misc/err.c: Likewise.
13731         * misc/error.c: Likewise.
13732         * misc/getpass.c: Likewise.
13733         * posix/getopt.c: Likewise.
13734         * resolv/res_hconf.c: Likewise.
13735         * stdio-common/perror.c: Likewise.
13736         * stdio-common/psignal.c: Likewise.
13737         * stdlib/fmtmsg.c: Likewise.
13738         * sunrpc/auth_unix.c: Likewise.
13739         * sunrpc/clnt_perr.c: Likewise.
13740         * sunrpc/clnt_tcp.c: Likewise.
13741         * sunrpc/clnt_udp.c: Likewise.
13742         * sunrpc/clnt_unix.c: Likewise.
13743         * sunrpc/svc_simple.c: Likewise.
13744         * sunrpc/svc_tcp.c: Likewise.
13745         * sunrpc/svc_udp.c: Likewise.
13746         * sunrpc/svc_unix.c: Likewise.
13747         * sunrpc/xdr.c: Likewise.
13748         * sunrpc/xdr_array.c: Likewise.
13749         * sunrpc/xdr_rec.c: Likewise.
13750         * sunrpc/xdr_ref.c: Likewise.
13751         * sysdeps/generic/wordexp.c: Likewise.
13753         * po/it.po: Update from translation team.
13755         * misc/err.c: Handle wide oriented stderr stream.
13757 2001-08-14  Tom Rix  <trix@redhat.com>
13759         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13760         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13762 2001-08-13  Tom Rix  <trix@redhat.com>
13764         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13765         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13766         and __intptr_t.
13768 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13770         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13771         Store the access registers to the ucontext structure.
13772         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13773         Likewise.
13775         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13776         Load the access registers from the ucontext structure.
13777         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13778         Likewise.
13780         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13781         offsets to the new ucontext layout.
13782         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13784         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13785         of the ucontext structure.
13786         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13788 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
13790         * misc/error.c (error): Handle wide oriented stderr stream correctly.
13791         (error_at_line): Likewise.
13793         * stdio-common/perror.c (perror): Implement according to standard.
13794         The stream orientation must not be changed if the stream was not
13795         oriented before the call.
13796         * stdio-common/Makefile (tests): Add tst-perror.
13797         * stdio-common/tst-perror.c: New file.
13800 See ChangeLog.12 for earlier changes.