BZ #11538: Fix ttyname_r callers not to expect errno was set.
[glibc.git] / ChangeLog.13
blob241861369efeeade2efb61a0908e4cbe1448cea0
1 2002-10-03  Richard Henderson  <rth@redhat.com>
3         * sysdeps/alpha/stxncpy.S: Don't access memory beyond the source
4         buffer.
5         * sysdeps/alpha/alphaev6/stxncpy.S: Likewise.
7 2002-10-02  Andreas Jaeger  <aj@suse.de>
8             Guido Guenther  <agx@sigxcpu.org>
10         * sysdeps/mips/fpu/fraiseexcpt.c: Add internal definition.
11         * sysdeps/mips/fpu/fesetenv.c: Likewise.
13 2002-10-03  Jakub Jelinek  <jakub@redhat.com>
15         * sysdeps/unix/sysv/linux/net/route.h: Include bits/wordsize.h.
16         (struct rtentry): Make rt_pad4 6 bytes long if __WORDSIZE == 64.
17         * sysdeps/unix/sysv/linux/alpha/Dist: Remove net/route.h.
18         * sysdeps/unix/sysv/linux/alpha/net/route.h: Remove.
19         * sysdeps/unix/sysv/linux/ia64/Dist: Remove net/route.h.
20         * sysdeps/unix/sysv/linux/ia64/net/route.h: Remove.
21         * sysdeps/unix/sysv/linux/s390/Dist: Remove net/route.h.
22         * sysdeps/unix/sysv/linux/s390/net/route.h: Remove.
24 2002-10-03  Ulrich Drepper  <drepper@redhat.com>
26         * libio/freopen.c: Don't re-set _wide_data element if the stream
27         is of old style which didn't have the element.
28         * libio/freopen64.c: Likewise.
30 2002-10-02  Ulrich Drepper  <drepper@redhat.com>
32         * sysdeps/unix/sysv/linux/x86_64/Dist: Add bits/utmpx.h.
33         * sysdeps/unix/sysv/linux/sparc/Dist: Likewise.
34         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
36         * sysdeps/s390/s390-32/initfini.c: Avoid unterminated string literals.
37         * sysdeps/sh/elf/initfini.c: Likewise.
38         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
39         * sysdeps/hppa/elf/initfini.c: Likewise.
40         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Likewise.
42 2002-10-02  Steven Munroe  <sjmunroe@us.ibm.com>
43             Jakub Jelinek  <jakub@redhat.com>
45         * login/programs/utmpdump.c (print_entry): Copy up->ut_tv fields
46         to struct timeval temp_tv before printing to be 32-/64-bit agnostic.
47         * sysdeps/powerpc/bits/wordsize.h: Move to...
48         * sysdeps/powerpc/powerpc32/bits/wordsize.h: ...here.
49         (__WORDSIZE_COMPAT32): Define.
50         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
51         * sysdeps/sparc/sparc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
52         Define.
53         * sysdeps/sparc/sparc64/bits/wordsize.h (__WORDSIZE_COMPAT32):
54         Define.
55         * sysdeps/s390/bits/wordsize.h: Move to...
56         * sysdeps/s390/s390-32/bits/wordsize.h: ...here.
57         * sysdeps/s390/s390-64/bits/wordsize.h: Likewise.
58         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Define.
59         * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: New file.
60         * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: New file.
61         * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: New file.
62         * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: New file.
63         * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: New file.
64         * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: New file.
66 2002-10-02  Jakub Jelinek  <jakub@redhat.com>
68         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix comment typo.
69         Temporarily enable R_ALPHA_NONE relocs in ld.so.
70         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Temporarily enable
71         R_IA64_NONE relocs in ld.so.
73 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
75         * README.template: Minimum Linux kernel for powerpc64 is 2.4.19.
77         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (struct ipc_perm):
78         Use __uint32_t and __uint64_t for __seq, __pad1, __unused[12] fields
79         so they are consistent between PPC32 and PPC64.
81         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__WORDSIZE != 32]:
82         (_STAT_VER): Define to _STAT_VER_KERNEL.
83         (stru stat, struct stat64): Define to match the PPC64 kernel.
84         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
85         (libc: GLIBC_2.2): Remove __xstat64, __fxstat64, and __lxstat64.
86         * sysdeps/unix/sysv/linux/powerpc/powerpc64/kernel_stat.h: New file.
87         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fxstat64.c: New file.
88         * sysdeps/unix/sysv/linux/powerpc/powerpc64/lxstat64.c: New file.
89         * sysdeps/unix/sysv/linux/powerpc/powerpc64/xstat64.c: New file.
90         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add kernel_stat.h.
92 2002-10-02  Roland McGrath  <roland@redhat.com>
94         * sysdeps/unix/sysv/linux/xstatconv.c [STAT_IS_KERNEL_STAT]:
95         Conditionalize the function definitions on this.
96         * sysdeps/unix/sysv/linux/xstat.c (__xstat) [STAT_IS_KERNEL_STAT]:
97         Don't use xstat_conv, just fail if VERS != _STAT_VER_KERNEL.
98         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat) [STAT_IS_KERNEL_STAT]:
99         Likewise.
100         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat) [STAT_IS_KERNEL_STAT]:
101         Likewise.
103 2002-10-02  Ulrich Drepper  <drepper@redhat.com>
105         * version.h (VERSION): Bump to 2.3.
107         * elf/Makefile (distribute): Add tst-tlsmod1.c, tst-tlsmod2.c,
108         tst-tlsmod3.c, tst-tlsmod4.c, circlemod1.c, circlemod1a.c,
109         circlemod2.c, circlemod2a.c, circlemod3.c, circlemod3a.c,
110         and nodlopenmod2.c.
112         * login/Makefile (distribute): Add utmp-equal.h.
114         * iconvdata/Makefile (distribute): Add TSCII.precomposed and
115         TSCII.irreversible.
117         * Make-dist (dist): Create .bz2 file.  Add rule to create .bz2 files.
118         Also distribute xtests sources.
120 2002-10-02  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
122         * elf/elf.h: Change TLS ELF relocation numbers.
123         * elf/tls-macros.h: Fix code sequences for SH TLS_LD and TLS_GD
124         macros.
125         * sysdeps/sh/dl-machine.h (dl_machine_rela) [case R_SH_TLS_TPOFF32]:
126         Use addend.
127         * sysdeps/sh/elf/initfini.c: Move __fpscr_values to...
128         * sysdeps/sh/elf/start.S: ...here.
130 2002-10-01  Jakub Jelinek  <jakub@redhat.com>
132         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ,
133         SIGSTKSZ): Changed to match kernel.
134         * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h: New file.
136 2002-10-01  Carlos O'Donell  <carlos@baldric.uwo.ca>
138         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
139         [__USE_GNU] (F_SETLEASE, F_GETLEASE, F_NOTIFY): New macros.
140         [__USE_GNU] (DN_ACCESS, DN_MODIFY, DN_CREATE, DN_DELETE, DN_RENAME,
141         DN_ATTRIB, DN_MULTISHOT): New macros.
143 2002-02-08  Randolph Chung  <tausq@debian.org>
145         * sysdeps/hppa/elf/start.S: Define __data_start.
147 2002-10-01  Isamu Hasegawa  <isamu@yamato.ibm.com>
149         * posix/regex_internal.c (re_string_reconstruct): Reset the member
150         LEN and STOP.
151         * posix/regexec.c (re_search_stub): Remove incorrect condition of
152         "range < 0".
153         Round RANGE in case that it is too small.
155 2002-10-01  Roland McGrath  <roland@frob.com>
157         * config.h.in (NO_HIDDEN): New #undef.
158         * include/libc-symbols.h [! NO_HIDDEN]: Add this condition to
159         nonempty definitions of hidden_proto et al.
160         * configure.in: Grok --disable-hidden-plt to define NO_HIDDEN.
161         * configure: Regenerated.
162         * sysdeps/mach/hurd/configure.in: Always define NO_HIDDEN.
163         * sysdeps/mach/hurd/configure: Regenerated.
165 2002-09-19  David Mosberger  <davidm@hpl.hp.com>
167         * sysdeps/ia64/dl-fptr.c (make_fdesc): Load address of "local" via
168         a 64-bit gp-relative address to enable binaries with large data
169         sections.
171 2002-09-30  Ulrich Drepper  <drepper@redhat.com>
173         * stdlib/cxa_finalize.c (__cxa_finalize): Call UNREGISTER_ATFORK
174         if it is defined.
175         * posix/Makefile (distribute): Add fork.h.
176         * sysdeps/generic/fork.h: New file.
178 2002-09-29  Bruno Haible  <bruno@clisp.org>
180         * sysdeps/generic/utmp_file.c (LOCKING_FAILED): New macro.
181         (UNLOCK_FILE): Add a label.
182         (getutent_r_file, internal_getut_r, getutline_r_file, pututline_file,
183         updwtmp_file): Shut off the alarm clock when locking failed.
185 2002-09-30  Isamu Hasegawa  <isamu@yamato.ibm.com>
187         * posix/regex_internal.h (re_match_context_t): Add a new member.
188         (re_fail_stack_ent_t): New structure.
189         (re_fail_stack_t): Likewise.
190         * posix/regexec.c (re_search_internal): Use the new member of
191         re_match_context_t.
192         Use fail stack only if it has back references and there are plural
193         matching candidates.
194         (proceed_next_node): Use fail stack if it is indicated.
195         (set_regs): Likewise.
196         (push_fail_stack): New function.
197         (pop_fail_stack): New function.
198         (check_dst_limits): Likewise.
199         (check_dst_limits_calc_pos): Likewise.
200         (search_subexp): Check the limitations on the top of subexpressions.
201         (sift_states_bkref): Check the limitations of the destination node.
202         Reuse the array sctx->sifted_states.
204 2002-09-30  Ulrich Drepper  <drepper@redhat.com>
206         * stdio-common/printf_fp.c: Shuffle a few lines around to help the
207         compiler optimizing.  No semantical changes intended.
209 2002-09-30  Jakub Jelinek  <jakub@redhat.com>
211         * sysdeps/ia64/strncpy.S: Only segfault in .recovery2 if some bits
212         from the next quad are needed.
214 2002-09-30  Roland McGrath  <roland@redhat.com>
216         * elf/tls-macros.h (TLS_LD, TLS_GD): Use call insn, not callq.
218         * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD] [! PIC]:
219         Use direct-%fs form of TLS access for errno.
221         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: File removed, since
222         the i386 version has all the same asm now.
224         * sysdeps/i386/elf/configure.in: Add @GOTNTPOFF and @NTPOFF uses to
225         the TLS support check.
226         * sysdeps/i386/elf/configure: Regenerated.
228         * sysdeps/unix/sysv/linux/i386/sysdep.h [USE_TLS && HAVE___THREAD]
229         (SYSCALL_ERROR_HANDLER): Use direct-%gs form of TLS access for errno.
231         * sysdeps/unix/i386/sysdep.S (syscall_error)
232         [USE_TLS && HAVE___THREAD]: Use TLS access for errno.
234         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
235         [USE_TLS && HAVE___THREAD] (SYSCALL_ERROR_HANDLER): Use TLS access.
237         * rt/tst-aio7.c (do_test): Don't read from stdin, which could be the
238         terminal when the test is running in a background job.  Instead, make
239         a pipe and read from its read half while never writing anything to it.
241 2002-09-30  Andreas Jaeger  <aj@suse.de>
243         * stdlib/tst-bsearch.c (main): Fix format strings.
244         * stdio-common/tst-rndseek.c (do_test): Likewise.
245         * libio/tst_swprintf.c (main): Likewise.
246         * catgets/tst-catgets.c (main): Likewise.
247         * libio/tst-fgetws.c (main): Likewise.
248         * posix/tst-mmap.c (main): Likewise.
249         * posix/bug-regex12.c (main): Likewise.
250         * posix/bug-regex11.c (main): Likewise.
251         * io/tst-getcwd.c (do_test): Likewise.
253         * iconvdata/tst-e2big.c (test): Use %td in printf for ptrdiff_t.
255         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
256         Store 4 bytes into errno, not 8 bytes.
258 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
260         * posix/regexec.c (sift_states_bkref): Remove ret variable.  Use
261         err instead.
263 2002-09-29  Roland McGrath  <roland@redhat.com>
265         * test-skeleton.c (timeout_handler): Use WUNTRACED flag in waitpid.
266         Examine the child's status and print something different if it wasn't
267         just killed by our SIGKILL.
268         (main): In the child process call setpgid to put it in its own pgrp.
270 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
272         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): The return value
273         semantics for sigtimedwait is different.  Rework the return value
274         handling and don't pass in a siginfo variable.
276 2002-09-29  Roland McGrath  <roland@redhat.com>
278         * malloc/malloc.c [! MALLOC_DEBUG] (assert): #undef before defining.
280         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.2.6): Add __errno_location.
282         * sysdeps/unix/sysv/linux/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]:
283         Define errno in .tbss.
284         * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]: Use TLS
285         access for setting errno.
287         * sysdeps/unix/x86_64/sysdep.S: Store 32 bits at errno, not 64 bits.
288         AFAICT, it was just blind luck that the word following errno in .bss
289         was just alignment padding and not some other variable to be clobbered.
291 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
293         * sysdeps/unix/sysv/linux/kernel-features.h
294         (__ASSUME_SETRESUID_SYSCALL): On the sparc, define to 1, not empty.
296 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
298         * nss/bug-erange.c (main): Don't fail if /etc/resolv.conf doesn't
299         exist.
301 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
303         * nss/Makefile: Move bug-erange from tests to xtests.
305 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
307         * stdlib/longlong.h (__udiv_qrnnd): Remove PARAMS from prototype.
309 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
311         * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall0): Make asm
312         volatile.
313         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
314         inline_syscall5, inline_syscall6): Likewise.
315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
316         Likewise.
317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (INLINE_SYSCALL):
318         Likewise.
320 2002-09-29  Roland McGrath  <roland@redhat.com>
322         * configure.in (libc_cv_ranlib_necessary check): Put the .o file in
323         the archive, not the .c file.
324         * configure: Regenerated.
326 2002-09-29  Roland McGrath  <roland@redhat.com>
328         * configure: Regenerated after aclocal.m4 change.
330         * sysdeps/x86_64/sysdep.h [HAVE_ELF] (L): Define with .L##name form.
331         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (L): Don't define it here.
333         * sysdeps/generic/dl-lookupcfg.h [USE_TLS] (DL_LOOKUP_RETURNS_MAP):
334         Define it, because _dl_sym presumes it (for any platform).
336         * sysdeps/x86_64/dl-tls.h: New file.
338         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add a cast.
340         * sysdeps/x86_64/elf/configure.in: New file.
341         * sysdeps/x86_64/elf/configure: New generated file.
343 2002-09-28  Roland McGrath  <roland@redhat.com>
345         * elf/rtld.c (_dl_start): Fix conditional for declaring CNT.
347         * aclocal.m4 (LIBC_PROG_BINUTILS): Don't clobber $RANLIB with ranlib
348         before we check it.
350 2002-09-28  Ulrich Drepper  <drepper@redhat.com>
352         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __syscall_exit
353         entry point.
355 2002-09-28  Jakub Jelinek  <jakub@redhat.com>
357         * posix/bug-regex11.c (tests): Add flags field.
358         (main): Avoid warnings.  Use test[i].flags.  Return nonzero
359         if any of the tests failed.
360         * posix/bug-regex12.c: New file.
361         * posix/Makefile (tests): Add bug-regex12.
363 2002-03-02  Thorsten Kukuk  <kukuk@suse.de>
365         * sysdeps/unix/nice.c (nice): Use getpriority() for the return value.
367 2002-09-28  Jeff Bailey  <jbailey@gnu.org>
369         * sysdeps/unix/sysv/sysv4/solaris2/configure.in: Delete.
370         * sysdeps/unix/sysv/aix/configure.in: Update comment and remove
371         stdio=libio setting.
373 2002-09-28  Roland McGrath  <roland@redhat.com>
375         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Use INTUSE for
376         _dl_signal_error.
377         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Likewise.
378         * sysdeps/powerpc/powerpc64/dl-machine.c
379         (_dl_reloc_overflow): Likewise.
380         * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
381         (elf_machine_rela): Likewise.
383 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
385         * include/libc-symbols.h (__hidden_dot_weak1): Fix typo.  Replace
386         ASM_GLOBAL_DIRECTIVE with .weak.
388 2002-09-28  Andreas Jaeger  <aj@suse.de>
390         * sysdeps/unix/sysv/linux/mips/truncate64.c (truncate64): Fix
391         number of args to syscall.
392         * sysdeps/unix/sysv/linux/mips/ftruncate64.c (__ftruncate64): Likewise.
393         Patch by Guido Guenther <agx@sigxcpu.org>.
395 2002-09-27  Roland McGrath  <roland@redhat.com>
397         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_pread, __NR_pwrite):
398         Define these to __NR_pread64, __NR_pwrite64 if not defined.
400         * sysdeps/unix/sysv/linux/powerpc/lchown.S
401         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Use this condition
402         on chown compatibility symbol; use compat_symbol, not symbol_version.
404 2002-09-27  Isamu Hasegawa  <isamu@yamato.ibm.com>
406         * posix/regcomp.c (reg_free): Free the debug area.
407         (re_compile_internal): Allocate debug area for the input string.
408         (create_initial_state): Check the back references in initial states
409         if they are really match null string in the initial state.
410         (parse_reg_exp): Mark the dfa that the dfa can have plural matchings.
411         (parse_expression): Likewise.
412         (parse_bracket_exp): Likewise.
413         * posix/regex_internal.c (re_node_set_intersect): Remove unused
414         function.
415         (re_node_set_contains): Change to return the index of node.
416         * posix/regex_internal.h (re_backref_cache_entry): Change the members.
417         (re_match_context_t): Likewise.
418         (struct re_dfa_t): Likewise.
419         (re_sift_context_t): New structure.
420         * posix/regexec.c (match_ctx_clear_flag): New function.
421         (sift_ctx_init): Likewise.
422         (update_cur_sifted_state): Likewise.
423         (add_epsilon_src_nodes): Likewise.
424         (sub_epsilon_src_nodes): Likewise.
425         (check_subexp_limits): Likewise.
426         (search_subexp): Likewise.
427         (sift_states_bkref): Likewise.
428         (merge_state_array): Likewise.
429         (sift_states_iter_bkref): Remove unused function.
430         (add_epsilon_backreference): Remove unused function.
431         (re_search_internal): Adapt new members and interfaces.
432         (check_matching): Check the back references in initial states
433         if they are really match null string in the initial state.
434         (proceed_next_node): Change the evaluation of back references,
435         since we have real registers here.
436         (set_regs): Adapt new interface of proceed_next_node.
437         (sift_states_backward): Add invocation of update_cur_sifted_state
438         instead of add_epsilon_backreference.
439         Add a sentinel to the outermost while loop.
440         Move the handling of back references to sift_states_bkref function,
441         since we can't handle some back references (e.g. a back reference
442         which match NULL string) here.
443         (transit_state_mb): Handle the new member max_mb_elem_len.
444         (transit_state_bkref_loop): Move the evaluation of back references to
445         search_subexp function, since we can't evaluate some back references
446         (e.g. a back reference which can have plural matchings) here.
447         (match_ctx_init): Adapt the new member.
448         (match_ctx_add_entry): Adapt the new members.
450 2002-09-25  Alan Modra  <amodra@bigpond.net.au>
452         * elf/do-rel.h: Define macro DO_ELF_MACHINE_REL_RELATIVE for
453         'elf_machine_rel_relative'
454         (elf_dynamic_do_rel): Call DO_ELF_MACHINE_REL_RELATIVE macro
455         instead of 'elf_machine_rel_relative'.
456         * sysdeps/hppa/dl-machine.h:
457         Define macro DO_ELF_MACHINE_REL_RELATIVE for
458         'elf_machine_rel_relative' with extra map parameter
459         required by HPPA.
460         (elf_machine_rela_relative): Add plt relocation changes.
462 2001-11-14  Matthew Wilcox  <willy@debian.org>
464         * sysdeps/unix/sysv/linux/hppa/bits/ipc.h: New file.
465         * sysdeps/unix/sysv/linux/hppa/bits/msq.h: New file.
466         * sysdeps/unix/sysv/linux/hppa/bits/sem.h: New file.
467         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: New file.
469 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
471         * sysdeps/powerpc/powerpc32/Makefile: Fix typo in comment.
473         * sysdeps/powerpc/powerpc64/Makefile
474         [$(build-shared) = yes] (pic-ccflag): Define it.
475         [$(subdir) = csu] (CFLAGS-initfini.s): Add -fpic here too.
477 2002-09-27  Roland McGrath  <roland@redhat.com>
479         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Remove
480         unneeded TLS cases.
482 2002-09-27  Jakub Jelinek  <jakub@redhat.com>
484         * elf/dl-addr.c (_dl_addr): Set dli_fbase to l_map_start
485         unconditionally.  Set dli_fname to _dl_argv[0] only for main program.
487 2002-09-27  Roland McGrath  <roland@redhat.com>
489         * elf/dl-addr.c (_dl_addr): Add a cast.
491         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [USE_TLS]: Handle new
492         TLS relocs R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, and R_X86_64_TPOFF64.
494         * elf/elf.h (R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, R_X86_64_TPOFF64,
495         R_X86_64_TLSGD, R_X86_64_TLSLD, R_X86_64_DTPOFF32,
496         R_x86_64_GOTTPOFF, R_X86_64_TPOFF32): New macros.
497         (R_X86_64_NUM): Update the value.
499 2002-09-24  Jakub Jelinek  <jakub@redhat.com>
501         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_load_address): Don't
502         rely on *r_offset of R_SPARC_RELATIVE reloc in .got to contain the
503         addend.
504         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Use
505         the same l_addr computation.
506         * sysdeps/sparc/sparc64/configure.in: Removed.
507         * sysdeps/sparc/sparc64/configure: Removed.
508         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Remove.
510 2002-09-26  Ulrich Drepper  <drepper@redhat.com>
512         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_HASH entry
513         if necessary.
514         * elf/dl-lookup.c (_dl_setup_hash): DT_HASH entry is already relocated.
515         * elf/dl-addr.c (_dl_addr): Use .hash[1] entry to determine end of the
516         symbol table if necessary.
518 2002-09-26  Roland McGrath  <roland@redhat.com>
520         * stdlib/longlong.h: Replaced with current version from GCC mainline,
521         last modified 2002-09-22  Kazu Hirata  <kazu@cs.umass.edu>.
523 2002-09-25  Andreas Jaeger  <aj@suse.de>
525         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add syscall_exit.
526         Patch by Guido Guenther <agx@sigxcpu.org>.
528 2002-09-25  Roland McGrath  <roland@redhat.com>
530         * Makeconfig (%.v.i pattern rule): Use $(CPPFLAGS).
532 2002-09-24  Ulrich Drepper  <drepper@redhat.com>
534         * sysdeps/unix/sysv/linux/configure.in: Recognize nptl add-on name.
536 2002-09-24  Roland McGrath  <roland@redhat.com>
538         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Move __libc_read,
539         __libc_write, __libc_lseek64, to ...
540         (ld: GLIBC_PRIVATE): ... here.
542         * csu/Versions: Use %include <tls.h> to get USE_TLS defined.
543         (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _errno, errno.
544         (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put errno here instead.
545         * resolv/Versions: Use %include <tls.h> to get USE_TLS defined.
546         (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _h_errno, h_errno,
547         and _res.
548         (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put h_errno, _res here.
550         * elf/tls-macros.h [__x86_64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
551         New macros for x86-64.
553         * sysdeps/unix/sysv/linux/alpha/bits/time.h: File removed.
554         It was indentical to the linux/bits/time.h file.
556         * nscd/nscd_gethst_r.c (nscd_gethst_r): Add a cast to silence warning.
558         * resolv/gethnamaddr.c (gethostbyaddr): Use socklen_t for SIZE.
560 2002-09-23  Ulrich Drepper  <drepper@redhat.com>
562         * po/zh_CN.po: New file.
564 2002-09-23  Roland McGrath  <roland@redhat.com>
566         * posix/unistd.h: Test [__USE_UNIX98] instead of [__USE_OPEN2K]
567         for gethostname declaration.
569         * catgets/open_catalog.c (__open_catalog): Don't use a value type
570         as the __builtin_expect expression, just the Boolean value.
572         * sysdeps/generic/wordexp.c (parse_glob): int -> size_t for counter.
573         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
574         * resolv/res_hconf.c (arg_service_list, parse_line): Likewise.
575         * iconvdata/tst-loading.c (main): Likewise.
576         * catgets/tst-catgets.c (main): Likewise.
577         * stdlib/tst-xpg-basename.c (main): Likewise.
578         * stdlib/tst-bsearch.c (main): Likewise.
579         * stdio-common/test-vfprintf.c (main): Likewise.
580         * stdio-common/tst-rndseek.c (do_test): Likewise.
581         * libio/tst_swprintf.c (main): Likewise.
582         * libio/tst-fgetws.c (main): Likewise.
583         * wcsmbs/tst-mbrtowc.c (check_ascii): Likewise.
584         * time/tst-posixtz.c (main): Likewise.
585         * time/tst-strptime.c (test_tm): Likewise.
586         * time/tst-strptime.c (main): Likewise.
587         * time/tst-getdate.c (main): Likewise.
588         * posix/tst-mmap.c (main): Likewise.
589         * posix/tst-getaddrinfo.c (do_test): Likewise.
590         * io/tst-getcwd.c (do_test): Likewise.
591         * resolv/tst-aton.c (main): Likewise.
592         * inet/tst-network.c (main): Likewise.
593         * libio/tst-fgetws.c (main): Likewise.
594         * sysdeps/posix/sprofil.c (add_region): int -> unsigned int for I.
595         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): int -> unsigned int
596         for PTYNO.
598         * stdlib/msort.c (qsort): Add a cast to silence warning.
599         * stdio-common/vfprintf.c (process_string_arg): Likewise.
600         * libio/oldfileops.c (_IO_old_do_write): Likewise.
601         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Likewise.
602         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
603         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
604         * argp/argp-fmtstream.c (__argp_fmtstream_printf): Likewise.
605         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
606         * sysdeps/unix/grantpt.c (grantpt): Likewise.
607         * libio/tst-widetext.c (main): Likewise.
608         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
609         * rt/tst-aio.c (test_file): Likewise.
610         * rt/tst-aio64.c (test_file): Likewise.
611         * resolv/tst-aton.c (main): Likewise.
613         * catgets/catgetsinfo.h (CATGETS_MAGIC): Use U suffix on the constant.
615         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Cast to int32_t
616         instead of uint32_t in these macros.
618 2002-09-22  Bruno Haible  <bruno@clisp.org>
620         * iconv/iconv_prog.c (main): Provide an error message that identifies
621         the wrong encoding.
623         * iconvdata/tscii.c: New file.
624         * iconvdata/testdata/TSCII: New file.
625         * iconvdata/testdata/TSCII..UTF8: New file.
626         * iconvdata/TSCII.precomposed: New file.
627         * iconvdata/TSCII.irreversible: New file.
628         * iconvdata/gconv-modules (TSCII): New module.
629         * iconvdata/Makefile (modules): Add TSCII.
630         (distribute): Add tscii.c.
631         * iconvdata/tst-table-from.c (try, utf8_decode, main): Double output
632         buffer size.
633         * iconvdata/tst-tables.sh: Add TSCII.
634         * iconvdata/TESTS: Add TSCII.
636         Revert 2002-04-18 patch.
637         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
638         FROM_DIRECTION): Make the FROM direction stateful again.
639         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
640         FROM_DIRECTION): Likewise.
642         * iconvdata/tst-e2big.c: New file.
643         * iconvdata/Makefile (tests): Add tst-e2big.
645 2002-09-23  Roland McGrath  <roland@redhat.com>
647         * elf/Makefile (test-extras): Define this instead of test-srcs.
648         * Makerules (all-nonlib): Include $(test-extras) too.
650 2002-09-21  Carlos O'Donell  <carlos@baldric.uwo.ca>
652         * sysdeps/hppa/abort-instr.h: New file.
654 2002-09-22  Roland McGrath  <roland@frob.com>
656         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Remove duplicate entry.
658         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Add alias __GI__exit.
660 2002-09-22  Andreas Schwab  <schwab@suse.de>
662         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Append, not overwrite.
664         * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal)
665         (isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]:
666         Use GCC builtins.
668 2002-09-21  Roland McGrath  <roland@redhat.com>
670         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM):
671         Correct the value so it covers all platforms, and is computed
672         from _DL_PLATFORMS_COUNT rather than hard-wired.
673         From Andrew Suffield <asuffield@debian.org>.
675 2002-09-20  Ulrich Drepper  <drepper@redhat.com>
677         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
678         locking when using mount tab file.
679         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
680         * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
681         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
683         * elf/dl-init.c (_dl_init): Fix test of the size of the
684         preinit_array section.
685         (call_init): Optimize access to DT_INIT_ARRAY entry a bit.
686         Reported by Brian Cabral <cabral@ikuni.com>.
688 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
690         * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros.
691         * sysdeps/powerpc/powerpc32/sysdep.h: New file.  Define powerpc32
692         specific macros copied from sysdeps/powerpc/sysdep.h.
693         * sysdeps/powerpc/powerpc64/sysdep.h: New file.  Define powerpc64
694         specific macros.
695         * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>.
696         [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h.
697         [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h.
699 2002-09-19  Bruno Haible  <bruno@clisp.org>
701         * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
702         returning.
704 2002-09-17  Bruno Haible  <bruno@clisp.org>
706         * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
707         * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
708         also on platforms with !HAVE_UT_TYPE.
709         (proc_utmp_eq): Remove function.
710         (internal_getut_r, pututline_file): Call __utmp_equal instead.
712 2002-09-20  Bruno Haible  <bruno@clisp.org>
714         * abi-tags: Add support for FreeBSD with ABI OS value 3.
715         * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
717 2002-09-20  Roland McGrath  <roland@redhat.com>
719         * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
720         (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
721         terms of __WORDSIZE.
722         * sysdeps/x86_64/gmp-mparam.h: File removed.
723         * sysdeps/sparc/gmp-mparam.h: File removed.
724         * sysdeps/mips/mips64/gmp-mparam.h: File removed.
725         * sysdeps/ia64/gmp-mparam.h: File removed.
726         * sysdeps/alpha/gmp-mparam.h: File removed.
728 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
730         * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
731         load, so as to work on both 32-bit and 64-bit.  Remove unnecessary
732         casts.  Align __libc_stack_end to 8 bytes.
734 2002-09-20  Roland McGrath  <roland@redhat.com>
736         * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
737         instead of asm for lrintf, __lrintf aliases.
739         * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
740         int array for 32-/64-bit compatibility.
741         From Steven Munroe  <sjmunroe@us.ibm.com>.
743 2002-09-17  Bruno Haible  <bruno@clisp.org>
745         * sysdeps/generic/ifreq.h (__if_nextreq): New function.
746         * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
747         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
748         * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
749         for iterating through the list of interfaces.
750         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
752 2002-09-20  Roland McGrath  <roland@redhat.com>
754         * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
755         Reported by Bruno Haible <bruno@clisp.org>.
757         * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
759         * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
760         * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
761         isatty unmodified.  Reported by Bruno Haible <bruno@clisp.org>.
763 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
765         * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
766         * sysdeps/powerpc/bits/wordsize.h: New file.
767         * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
768         array to int array for 32-/64-bit compatibility.
770 2002-09-20  Roland McGrath  <roland@redhat.com>
772         * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
774         * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
775         Reported by Bruno Haible <bruno@clisp.org>.
777         * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
778         before doubling RQ_LEN.
779         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
780         Reported by Bruno Haible <bruno@clisp.org>.
782 2002-09-18  Bruno Haible  <bruno@clisp.org>
784         * login/logout.c (logout): Don't assume ut_time has the same size as
785         a time_t.
786         * login/logwtmp.c (logwtmp): Likewise.
788         * sysdeps/pthread/configure: New file, moved here from
789         linuxthreads/sysdeps/unix/sysv/linux/configure.
791 2002-09-19  Ulrich Drepper  <drepper@redhat.com>
793         * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
794         (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
795         Reported by Glen Nakamura <glen@imodulo.com>.
797 2002-09-19  Neal H. Walfield  <neal@cs.uml.edu>
799         * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
800         thread's sigstate data structure if it has been allocated.
802 2002-09-19  Roland McGrath  <roland@redhat.com>
804         * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
805         [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
807 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
809         * version.h (VERSION): Bump to 2.2.94.
811         * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
812         * sysdeps/powerpc/powerpc32/fpu/Dist: ...here.  New file.
813         * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
814         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
816         * sysdeps/i386/Makefile: Remove obsolete db2 rules.
818         * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
820         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
824 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
826         * sysdeps/wordsize-32/Makefile: New file.
827         * sysdeps/arm/Makefile: Removed.
828         * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
829         Don't add divdi3 here.
830         * sysdeps/m68k/Makefile: Likewise.
831         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
832         * sysdeps/sh/Makefile: Likewise.
833         * sysdeps/s390/s390-32/Makefile: Likewise.
835 2002-09-18  Roland McGrath  <roland@redhat.com>
837         * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
838         the __ctype_* compat symbols, so the relocs generated bind to the
839         right versioned global symbol in the shared object.
841         * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
842         from the value taken from the DT_VERSYM table.
843         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
844         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
845         (RESOLVE_GOTSYM): Likewise.
847         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
848         Add libc_hidden_def.
849         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
850         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
851         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
852         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
853         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
854         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
855         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
856         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
858 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
860         * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
862         * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
863         define sigaction and __sigaction as wrappers around
864         __libc_sigaction which rejects changing SIGCANCEL.
865         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
867         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
868         SETTID/CLEARTID.
870         * signal/allocrtsig.c: Move to...
871         * sysdeps/generic/allocrtsig.c: ...here.  New file.
873 2002-09-17  Jakub Jelinek  <jakub@redhat.com>
875         * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
877         * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
878         R_386_TLS_LE): Define.
879         (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
880         comments.
881         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
882         ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
883         (elf_machine_rel): Handle R_386_TLS_TPOFF.
884         (elf_machine_rela): Likewise.
885         Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
887 2002-09-17  Roland McGrath  <roland@redhat.com>
889         * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
890         file-specific variable override so it compiles properly when using
891         --with-headers.
893 2002-09-17  Steven Munroe  <sjmunroe@us.ibm.com>
895         Ported to PowerPC64 running Linux.
896         * sysdeps/powerpc/powerpc64/Dist: New file.
897         * sysdeps/powerpc/powerpc64/Implies: New file.
898         * sysdeps/powerpc/powerpc64/Makefile: New file.
899         * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
900         * sysdeps/powerpc/powerpc64/atomicity.h: New file.
901         * sysdeps/powerpc/powerpc64/backtrace.c: New file.
902         * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
903         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
904         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
905         * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
906         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
907         * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
908         * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
909         * sysdeps/powerpc/powerpc64/memset.S: New file.
910         * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
911         * sysdeps/powerpc/powerpc64/register-dump.h: New file.
912         * sysdeps/powerpc/powerpc64/setjmp.S: New file.
913         * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
914         * sysdeps/powerpc/powerpc64/strchr.S: New file.
915         * sysdeps/powerpc/powerpc64/strcmp.S: New file.
916         * sysdeps/powerpc/powerpc64/strcpy.S: New file.
917         * sysdeps/powerpc/powerpc64/strlen.S: New file.
918         * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
919         * sysdeps/powerpc/powerpc64/elf/start.S: New file.
920         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
921         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
923         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
927         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
930         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
931         (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
932         various gcc versions.  Dot names required for powerpc64.
933         [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
934         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
935         C_SYMBOL_DOT_NAME(alias).
936         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
937         original strong_alias macro.
938         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
939         C_SYMBOL_DOT_NAME(alias).
940         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
941         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
942         '.'ed name.
943         Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
944         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro.  Generate
945         .global C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
946         (hidden_def): Append hidden_dot_def1 macro to definition.
947         (hidden_ver): Append hidden_dot_def1 macro to definition.
948         (hidden_data_def): New macro.  Same as original hidden_def macro.
949         (hidden_data_ver): New macro.  Same as original hidden_ver macro.
950         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro.  Generate
951         .weakext C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
952         (hidden_weak): Append hidden_dot_weak1 macro to definition.
953         (hidden_data_weak): New macro.  Same as original hidden_weak macro.
954         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
955         Otherwise defined as __GI_name.
956         (libc_hidden_data_def): New macro.  Use hidden_data_def.
957         (libc_hidden_data_weak): New macro.  Use hidden_data_weak.
958         (libc_hidden_data_ver): New macro.  Use hidden_data_ver.
959         (rtld_hidden_data_def): New macro.  Use hidden_data_def.
960         (rtld_hidden_data_weak): New macro.  Use hidden_data_weak.
961         (rtld_hidden_data_ver): New macro.  Use hidden_data_ver.
962         (libm_hidden_data_def): New macro.  Use hidden_data_def.
963         (libm_hidden_data_weak): New macro.  Use hidden_data_weak.
964         (libm_hidden_data_ver): New macro.  Use hidden_data_ver.
965         * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
967 2002-09-17  Ulrich Drepper  <drepper@redhat.com>
969         * include/libc-symbols.h: Change *hidden_proto macros to accept
970         option parameters and pass those to the attribute definition.
971         * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
973         * include/unistd.h: Declare __libc_pause.
975         * include/sys/socket.h: Declare __libc_send, __libc_recv,
976         __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
978         * include/unistd.h: Declare __libc_fork.
980 2002-09-17  Roland McGrath  <roland@redhat.com>
982         * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
983         (passwd2des): Define it as an alias.
984         (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
986 2002-09-12  Bruno Haible  <bruno@clisp.org>
988         * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
989         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
991         * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
992         * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
994 2002-09-05  Steven Munroe  <sjmunroe@us.ibm.com>
996         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
997         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
998         __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
999         PowerPC64 does not have separate 64-bit syscalls.
1001 2002-09-16  Roland McGrath  <roland@redhat.com>
1003         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
1005         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
1006         New macro.
1008         * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
1010         * include/unistd.h: Uncomment libc_hidden_proto for _exit.
1011         * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
1012         * sysdeps/generic/_exit.c: Likewise.
1014 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
1016         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
1018         * elf/rtld.c (struct dl_start_final_info): New.
1019         (_dl_start_final): Change second argument to struct
1020         dl_start_final_info *.  Set start_time from info.
1021         (_dl_start): Remove bootstrap_map variable, add info.
1022         Define bootstrap_map as macro.  If not DONT_USE_BOOTSTRAP_MAP,
1023         store HP_TIMING_NOW result into info.start_time.
1025 2002-09-16  Andreas Jaeger  <aj@suse.de>
1027         * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
1028         to _Exit.
1029         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
1031 2002-09-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1033         * sysdeps/powerpc/abort-instr.h: New file.
1035 2002-09-14  Ulrich Drepper  <drepper@redhat.com>
1037         * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
1038         comment.
1040         * test-skeleton.c (main): Provide more information in case waitpid
1041         fails.
1043         * include/unistd.h: Declare __exit_thread.
1044         * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
1045         Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
1046         * sysdeps/unix/sysv/linux/exit-thread.S: New file.
1047         * sysdeps/unix/sysv/linux/_exit.c: New file.
1048         * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
1049         * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
1050         Add exit-thread.
1052         * configure.in: Add dl_iterate_phdr to test using -nostdlib.
1054 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
1056         * sysdeps/i386/dl-machine.h (elf_machine_rel)
1057         (case R_386_TLS_DTPMOD32): Don't use addend.
1058         [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
1059         (elf_machine_rela): Add support for TLS relocs.
1061 2002-09-14  Roland McGrath  <roland@redhat.com>
1063         * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
1065 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
1067         * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
1068         specific asm macros for multiple percision integer math.
1070 2002-06-04  Steven Munroe  <sjmunroe@us.ibm.com>
1072         * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
1073         * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
1074         Remove per-machine conditionals for FLAG_* cases.
1075         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
1076         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
1077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
1079 2002-09-10  Alan Modra <amodra@bigpond.net.au>
1081         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
1082         defined in entry.h.
1083         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
1084         lowest address for profiling in  __monstartup call.
1085         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
1087 2002-09-14  Roland McGrath  <roland@redhat.com>
1089         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
1090         instead of __NR_pread.
1091         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
1092         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
1093         instead of __NR_pwrite.
1094         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
1096 2002-09-13  Roland McGrath  <roland@redhat.com>
1098         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
1100 2002-09-13  Andreas Jaeger  <aj@suse.de>
1102         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
1103         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
1105 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
1107         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
1109 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
1111         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
1112         reading the headers.
1114 2002-09-12  Roland McGrath  <roland@redhat.com>
1116         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
1117         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
1118         find the ELF header.
1120         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
1121         executable if needed, in case it's actually a shared object.
1123 2002-09-11  Roland McGrath  <roland@redhat.com>
1125         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
1126         l_map_start to adjust l_tls_initimage.
1128         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
1129         when using h_errno and it's not set to NETDB_INTERNAL.
1130         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
1132         * Makefile ($(common-objpfx)testrun.sh): New target.
1133         (others): Depend on it.
1134         (postclean-generated): Append it.
1136         * nss/bug-erange.c: New file.
1137         * nss/Makefile (tests): Add it.
1139         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
1140         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
1142         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
1143         strncmp, keeps the code smaller for a non-performance-critical case.
1145         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
1146         no longer wrongly matches arbitrary prefixes of NAME.
1147         Reported by Jakub Jelinek <jakub@redhat.com>.
1149 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
1151         * posix/bug-regex11.c (tests): New array.
1152         (main): Rewritten to run more different tests.
1154 2002-09-10  Roland McGrath  <roland@redhat.com>
1156         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
1157         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
1158         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
1160         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
1161         well so we don't get it declared by include/math.h's hidden_proto.
1162         Then do hidden_proto for __isnanf locally so hidden_def works right.
1164         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
1165         a cast to turn nl_langinfo return value into an integer.
1167 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
1169         * posix/regexec.c (build_trtable): Fix the destination of
1170         newline to prevent wrong states from overwriting.
1171         Append break statements to optimization.
1173 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
1175         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
1176         (build_range_exp): Add castings to strlen invocations.
1177         (build_collating_symbol): Restore the type of characters from "char"
1178         to "unsigned char", and supplement castings.
1179         (build_collating_symbol): Likewise.
1180         (build_equiv_class): Likewise.
1181         (build_charclass): Likewise.
1182         (seek_collating_symbol_entry): Likewise.
1183         (parse_bracket_exp): Likewise.
1184         (build_word_op): Supplement a casting.
1185         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
1186         (re_string_allocate): Fix castings.
1187         (re_string_construct): Likewise.
1188         (re_string_construct_common): Likewise.
1189         (re_string_realloc_buffers): Likewise.
1190         (build_wcs_buffer): Likewise.
1191         (build_wcs_upper_buffer): Likewise.
1192         (re_string_skip_chars): Likewise.
1193         (re_string_reconstruct): Likewise.
1194         * posix/regex_internal.h: Restore the type of characters in
1195         re_string_t and bracket_elem_t from "char" to "unsigned char".
1196         (re_string_elem_size_at): Fix castings.
1197         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
1198         (transit_state_bkref_loop): Restore the type of characters from
1199         "char" to "unsigned char", and append a cast to "char*" pointer in
1200         array subscript.
1201         (check_node_accept_bytes): Likewise.
1202         (find_collation_sequence_value): Likewise.
1204 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
1206         * sysdeps/mips/memcpy.S: New file.
1207         * sysdeps/mips/memset.S: New file.
1208         * sysdeps/mips/fpu/e_sqrt.c:  New file.
1209         * sysdeps/mips/fpu/e_sqrtf.c: New file.
1211         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
1212         functional before. Also removed all SHLIB_COMPAT stuff.
1213         * fpu/fegetenv.c: Likewise.
1214         * fpu/fesetenv.c:: Likewise.
1215         * fpu/feupdateenv.c: Likewise.
1216         * fpu/fgetexcptflg.c: Likewise.
1217         * fpu/fraiseexcpt.c: Likewise.
1219         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
1221 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
1223         * include/math.h (__finite_internal, __finitef_internal,
1224         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
1225         (isfinite): Remove.
1226         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
1227         __isinfl, __isnanl): Add hidden_proto.
1228         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
1229         libm_hidden_proto.
1230         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
1231         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
1232         __is{inf,nan} calls.
1233         * stdio-common/printf_size.c (printf_size): Likewise.
1234         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
1235         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
1236         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
1237         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
1238         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
1239         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
1240         (__finite): Add hidden_def.
1241         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
1242         (__finitef): Add hidden_def.
1243         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
1244         (__finitel): Add hidden_def.
1245         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
1246         hidden_def.
1247         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
1248         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
1249         libm_hidden_def.
1250         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
1251         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
1252         hidden_def.
1253         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
1254         (__isinfl): Remove INTDEF.
1255         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
1256         hidden_def.
1257         (__isnanl): Remove INTDEF.
1258         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
1259         libm_hidden_def.
1260         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
1261         instead of sin and cos.
1262         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
1263         Add hidden_def.
1264         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
1265         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
1266         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
1267         libm_hidden_def.
1268         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
1269         Add hidden_def.
1270         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
1271         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
1272         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
1273         libm_hidden_def.
1274         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
1275         libm_hidden_def.
1276         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
1277         Add hidden_def.
1278         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
1279         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
1280         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
1281         libm_hidden_def.
1282         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
1283         __finitel_internal): Remove aliases.
1284         (__finite, __finitef, __finitel): Add hidden_def.
1285         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
1286         __isnanl_internal): Remove aliases.
1287         (__isnan, __isnanf, __isnanl): Add hidden_def.
1288         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
1289         __isinfl_internal): Remove aliases.
1290         (__isinf, __isinff, __isinfl): Add hidden_def.
1291         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
1292         __fpclassifyl): Add libm_hidden_def.
1293         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
1294         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
1295         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
1296         (hidden_defx): Define and use.
1297         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
1298         libm_hidden_def.
1299         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
1300         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
1301         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
1302         Remove INTDEF.
1303         (__isnan, __isnanf): Add hidden_def.
1304         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
1305         (__finitel): Add libm_hidden_def.
1306         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
1308         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
1309         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
1310         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1311         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
1312         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1313         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
1314         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
1315         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
1316         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1317         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
1318         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1319         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
1320         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1321         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
1322         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1323         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
1324         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1325         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
1326         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1327         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
1328         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1329         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
1330         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1331         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
1332         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1333         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
1334         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1336 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
1338         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
1340 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
1342         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
1343         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
1345 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
1347         * string/stratcliff.c: Some more strncpy tests.
1348         Patch by Daniel Jacobowitz <drow@mvista.com>.
1350 2002-09-08  Roland McGrath  <roland@redhat.com>
1352         * resolv/resolv.h: Include <sys/types.h> for u_long even in
1353         the [__need_res_state] case.
1354         Reported by Bruno Haible <bruno@clisp.org>.
1356 2002-09-04  Bruno Haible  <bruno@clisp.org>
1358         * sysdeps/generic/bits/ustat.h: Comment fix.
1359         * io/sys/sendfile.h: Comment fix.
1360         * sysdeps/posix/pread.c: Comment fix.
1361         * sysdeps/posix/pread64.c: Comment fix.
1362         * sysdeps/posix/pwrite.c: Comment fix.
1363         * sysdeps/posix/pwrite64.c: Comment fix.
1365 2002-09-06  Roland McGrath  <roland@redhat.com>
1367         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
1368         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
1369         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
1370         (_UTSNAME_MACHINE_LENGTH): Likewise.
1371         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
1373 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
1375         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
1376         test for filesystem type name of mount points.
1378         * include/errno.h: Use errno definition with __thread for now only
1379         in libc and ld.so.
1381         * test-skeleton.c (main): Improve error message for unexpected
1382         signal case.
1384 2002-09-05  Roland McGrath  <roland@redhat.com>
1386         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
1387         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1389 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
1391         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
1392         case of failure.
1394 2002-09-04  Bruno Haible  <bruno@clisp.org>
1396         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
1397         sigset_get_old_mask): Turn into inline functions.
1398         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
1399         sigset_get_old_mask): Likewise.
1400         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
1401         sigset_get_old_mask): Likewise.
1402         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
1403         syntax.
1405         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
1407         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
1408         default definitions.
1409         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
1410         _sys_nerr_internal instead of _sys_nerr.
1412         * nscd/connections.c (handle_request): Declare CALLER inside #if.
1414 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
1416         * sysdeps/powerpc/__longjmp.S: Moved to...
1417         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
1418         * sysdeps/powerpc/add_n.S: Moved to...
1419         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
1420         * sysdeps/powerpc/addmul_1.S: Moved to...
1421         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
1422         * sysdeps/powerpc/atomicity.h: Moved to...
1423         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
1424         * sysdeps/powerpc/backtrace.c: Moved to...
1425         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
1426         * sysdeps/powerpc/bp-asm.h: Moved to...
1427         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
1428         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
1429         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
1430         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
1431         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
1432         * sysdeps/powerpc/dl-machine.c: Moved to...
1433         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
1434         * sysdeps/powerpc/dl-machine.h: Moved to...
1435         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
1436         * sysdeps/powerpc/dl-start.S: Moved to...
1437         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
1438         * sysdeps/powerpc/gprrest0.S: Moved to...
1439         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
1440         * sysdeps/powerpc/gprrest1.S: Moved to...
1441         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
1442         * sysdeps/powerpc/gprsave0.S: Moved to...
1443         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
1444         * sysdeps/powerpc/gprsave1.S: Moved to...
1445         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
1446         * sysdeps/powerpc/lshift.S: Moved to...
1447         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
1448         * sysdeps/powerpc/memset.S: Moved to...
1449         * sysdeps/powerpc/powerpc32/memset.S: ...here.
1450         * sysdeps/powerpc/mul_1.S: Moved to...
1451         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
1452         * sysdeps/powerpc/ppc-mcount.S: Moved to...
1453         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
1454         * sysdeps/powerpc/register-dump.h: Moved to...
1455         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
1456         * sysdeps/powerpc/rshift.S: Moved to...
1457         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
1458         * sysdeps/powerpc/setjmp.S: Moved to...
1459         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
1460         * sysdeps/powerpc/stpcpy.S: Moved to...
1461         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
1462         * sysdeps/powerpc/strchr.S: Moved to...
1463         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
1464         * sysdeps/powerpc/strcmp.S: Moved to...
1465         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
1466         * sysdeps/powerpc/strcpy.S: Moved to...
1467         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
1468         * sysdeps/powerpc/strlen.S: Moved to...
1469         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
1470         * sysdeps/powerpc/sub_n.S: Moved to...
1471         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
1472         * sysdeps/powerpc/submul_1.S: Moved to...
1473         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
1474         * sysdeps/powerpc/elf/bzero.S: Moved to...
1475         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
1476         * sysdeps/powerpc/elf/start.S: Moved to...
1477         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
1478         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
1479         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
1480         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
1481         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
1482         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
1483         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
1484         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
1485         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
1486         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
1487         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
1488         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
1489         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
1490         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
1491         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
1492         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
1493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
1494         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
1495         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
1496         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
1497         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
1498         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
1499         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
1500         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
1501         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
1502         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
1503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
1504         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
1505         powerpc/powerpc64.
1507 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
1509         * FAQ.in: Add powerpc64 to supported targets list. Also state the
1510         minimum gcc version is 3.2
1511         * README: Add powerpc64 to supported targets list.
1512         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
1513         Add powerpc64 and machine=powerpc/powerpc64.
1514         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
1515         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
1516         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
1517         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
1518         * sysdeps/powerpc/powerpc32/Dist: New file.
1519         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
1520         * sysdeps/powerpc/powerpc32/Implies: New file.
1521         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
1522         ($(with-fp) = no): Move test to powerpc32/Makefile.
1523         ($(subdir) = misc): Move to powerpc32/Makefile.
1524         ($(build-shared) = yes): Move to powerpc32/Makefile.
1525         ($(subdir) = csu): Move to powerpc32/Makefile.
1526         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
1527         * sysdeps/powerpc/powerpc32/Makefile: New file.
1528         * sysdeps/powerpc/Versions: Remove libgcc functions.
1529         * sysdeps/powerpc/powerpc32/Versions: New file.
1530         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
1531         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
1532         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
1533         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
1534         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
1535         ($machine): Add powerpc/powerpc64 to if ... | for
1536         libc_cv_slibdir=/libc64.
1537         (powerpc*): Set ldd_rewrite_script.
1538         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
1539         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
1540         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
1541         Add clone.S.
1542         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
1543         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
1544         functions.  Remove GLIBC_2.2 functions except getrlimit and
1545         setrlimit.  Moved them to ...
1546         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
1548 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
1550         * libio/tst-atime.c: Include <errno.h>.
1551         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
1553 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
1555         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
1556         warnings of some compilers.
1557         (build_collating_symbol): Change the type of characters from
1558         "unsigned char" to "char", and append a cast to "char*" pointer in
1559         array subscript.
1560         (build_collating_symbol): Likewise.
1561         (build_equiv_class): Likewise.
1562         (build_charclass): Likewise.
1563         (re_compile_pattern): Remove incorrect cast.
1564         (re_compile_fastmap_iter): Change the type of characters from
1565         "unsigned char" to "char", and append a cast to "char*" pointer
1566         in array subscript.
1567         (parse_bracket_exp): Likewise.
1568         * posix/regex_internal.c (re_string_construct_common): Likewise.
1569         (re_string_allocate): Likewise.
1570         (re_string_construct): Likewise.
1571         (re_string_realloc_buffers): Likewise.
1572         (build_wcs_buffer): Likewise.
1573         (re_string_reconstruct): Likewise.
1574         * posix/regex_internal.h: Change the type of characters in
1575         re_string_t and bracket_elem_t from "unsigned char" to "char".
1576         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
1577         warnings of some compilers.
1578         (transit_state_bkref_loop): Change the type of characters from
1579         "unsigned char" to "char", and append a cast to "char*" pointer in
1580         array subscript.
1581         (check_node_accept_bytes): Likewise.
1582         (find_collation_sequence_value): Likewise.
1584 2002-09-04  Roland McGrath  <roland@redhat.com>
1586         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
1587         from 1024 to 65536, to avoid buffer overrun.
1589 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
1591         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
1593 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
1595         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
1596         for filesystem.
1598 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
1600         * posix/bug-regex11.c: New test.
1601         * posix/Makefile (tests): Add bug-regex11.
1603 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
1605         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
1606         newlocale.
1608 2002-09-02  Roland McGrath  <roland@redhat.com>
1610         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
1611         __pthread_initialize_minimal and __libc_check_standard_fds to
1612         match the generic version.
1614         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
1615         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
1617         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
1618         warnings on platorms where char is unsigned.
1620 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
1622         * version.h (VERSION): Bump to 2.2.93.
1624         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
1626 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
1628         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
1629         as relocated.
1631 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
1633         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
1635 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
1637         * locale/localeinfo.h (struct locale_data): Add private.ctype.
1638         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
1639         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
1640         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
1641         (__wcsmbs_load_conv): Remove const from argument.
1642         (_nl_cleanup_ctype): New proto.
1643         (get_gconv_fcts): New function.
1644         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
1645         (__wcsmbs_to_wc): Rename back to...
1646         (to_wc): ... this.
1647         (__wcsmbs_gconv_fcts): Rename to...
1648         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
1649         (lock): Removed.
1650         (__libc_setlocale_lock): New extern.
1651         (__wcsmbs_load_conv): Remove const from argument.
1652         Initialize new_category->private.ctype instead of a global
1653         variable.
1654         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
1655         update_function_ptrs.  No locking is necessary.
1656         (_nl_cleanup_ctype): New function.
1657         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
1658         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
1659         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1660         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
1661         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
1662         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
1663         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
1664         * wcsmbs/wctob.c (wctob): Likewise.
1665         * stdlib/mblen.c (mblen): Likewise.
1666         * stdlib/mbtowc.c (mbtowc): Likewise.
1667         * stdlib/wctomb.c (wctomb): Likewise.
1668         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
1669         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
1670         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
1671         Removed.
1673 2002-09-02  Roland McGrath  <roland@frob.com>
1675         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
1677 2002-09-01  Roland McGrath  <roland@redhat.com>
1679         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
1680         Variable declarations removed.
1681         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
1682         these functions to replace them.
1683         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
1684         functions plus an indirection rather than the old global variables.
1685         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
1686         Macros removed.
1687         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
1688         inline functions.
1689         * ctype/ctype-info.c: Revert last reversion back the other way.
1690         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
1691         Define real function versions of include/ctype.h inlines here.
1692         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
1693         __ctype_tolower_loc, __ctype_toupper_loc.
1694         * locale/lc-ctype.c: Revert last reversion back the other way.
1695         (_nl_postload_ctype): If current thread uses the global locale,
1696         update its tsd vars.
1697         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
1698         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
1699         CTYPE_TOLOWER, CTYPE_TOUPPER.
1701         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
1702         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
1703         from __libc_tsd_threadvar_location.
1704         (__libc_tsd_set, __libc_tsd_get): Update uses.
1706 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
1708         * ctype/ctype.h: Undo the patch before the last one.  Put back the
1709         macro definitions for the standard functions to access the
1710         classification and mapping arrays.
1711         * include/ctype.h: Partly revert last patch.  Move the macro
1712         definitions for the exported functions back to the public header.
1713         #undef all the macros defined here before redefining.
1714         * ctype/ctype-info.c: Revert last patch.
1715         * locale/lc-ctype.c: Revert last patch.
1717         * ctype/Makefile (routines): Add isctype.
1718         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
1719         * ctype/ctype.h: Add declaration of isctype.
1720         * include/ctype.h: Declare __isctype.
1721         * ctype/isctype.c: New file.
1723 2002-09-01  Roland McGrath  <roland@redhat.com>
1725         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
1726         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1728         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1730         * locale/findlocale.c (_nl_remove_locale): Don't search in
1731         _nl_locale_file_list if DATA->alloc is ld_archive.
1732         Use _nl_unload_locale to do the rest of the work.
1734         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1735         of new structure to UNDELETABLE.
1737         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1738         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1739         towlower, towupper): Macros removed.
1740         * ctype/ctype.h (__tobody): Put parens around macro argument.
1741         (__isctype): Macro removed.
1742         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1743         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1744         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1745         tolower, toupper): Macros and inlines removed.
1746         * include/ctype.h [! NOT_IN_libc]
1747         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1748         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1749         tolower, toupper): Define here instead, using _NL_CURRENT.
1750         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1751         using _NL_CURRENT.
1752         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1753         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1754         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1755         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1756         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1757         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1758         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
1759         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1760         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1761         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1762         (ISSORTMASK): Update use.
1763         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1764         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1765         (_nss_files_getENTNAME_r): Likewise.
1766         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1767         Likewise.
1769         * Makerules (all-nonlib): Renamed from all-tests.
1770         Include $(others) here too.
1771         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1772         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1773         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1774         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1775         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
1776         the program modules via cppflags-iterator.mk.
1777         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1778         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1780 2002-08-31  Roland McGrath  <roland@redhat.com>
1782         * posix/tst-getconf.sh: If no third arg, work with static linking.
1784         * locale/categories.def (LC_TIME): No more _nl_postload_time.
1786         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1787         [_NL_CURRENT_INDIRECT].
1789 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1791         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1793 2002-08-31  Roland McGrath  <roland@redhat.com>
1795         * locale/newlocale.c (__newlocale): Don't use strdup for names.
1796         Instead, make the single allocation of the structure larger to hold
1797         the name strings.
1798         * locale/duplocale.c (__duplocale): Don't strdup names individually.
1799         Instead, calculate size for a single allocation and copy into it.
1800         * locale/freelocale.c (__freelocale): Don't free names individually.
1802         * locale/newlocale.c (__newlocale): Don't leak old data or names.
1804         * locale/xlocale.h (__locale_struct): Move __names member last,
1805         for binary compatibility.
1807         * locale/duplocale.c (__duplocale): Free names from the right array.
1809         * locale/uselocale.c (__uselocale): Return previous locale when
1810         setting a new one.
1812         * locale/newlocale.c: Commit changes from 2002-08-30
1813         batch where I failed to commit this file:
1814         (__newlocale): Fill in __names array.
1816 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1818         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1819         errlist-compat.c if versioning==yes.
1821 2002-08-31  Andreas Jaeger  <aj@suse.de>
1823         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1824         external functions with hidden attribute.
1825         (elf_machine_rela): Optimize.
1827         * sysdeps/x86_64/memset.S: New file.
1828         * sysdeps/x86_64/bzero.S: New file.
1829         * sysdeps/x86_64/stpcpy.S: New file.
1830         * sysdeps/x86_64/strcat.S: New file.
1831         * sysdeps/x86_64/strchr.S: New file.
1832         * sysdeps/x86_64/strcpy.S: New file.
1833         * sysdeps/x86_64/strcspn.S: New file.
1834         * sysdeps/x86_64/strlen.S: New file.
1835         * sysdeps/x86_64/strpbrk.S: New file.
1836         * sysdeps/x86_64/strspn.S: New file.
1837         * sysdeps/x86_64/strcmp.S: New file.
1838         * sysdeps/x86_64/strtok_r.S: New file.
1839         * sysdeps/x86_64/strtok.S: New file.
1840         * sysdeps/x86_64/memcpy.S: New file.
1841         * sysdeps/x86_64/mempcpy.S: New file.
1843         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1845         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1847 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1849         * stdio-common/Makefile (generated): Add errlist-compat.c.
1851         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1853         * locale/localeinfo.h: Pretty printing.
1855         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1856         form_number handling.
1858 2002-08-31  Andreas Jaeger  <aj@suse.de>
1860         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1861         double tests.
1863         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1864         __start_context.
1866         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1868         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1870         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1871         registers used for passing args.
1873         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1874         all needed registers.
1876         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1877         registers.
1879         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1880         registers.
1882 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
1884         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1885         always_inline attribute.
1887 2002-08-30  Roland McGrath  <roland@redhat.com>
1889         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1890         presume it's the stub and bail without error.
1892         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1893         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1895         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1897         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1898         macros replace the i686 versions for 64-bit mode.
1900         * locale/duplocale.c: Include <string.h>.
1902         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1903         [_LIBC] (category_to_name): Don't define the function.  Instead
1904         define a macro using _nl_category_names.
1906         * locale/xlocale.h (struct __locale_struct): New member `__names'.
1907         * locale/xlocale.c (_nl_C_locobj): Update initializer.
1908         * locale/global-locale.c (_nl_global_locale): Likewise.
1909         * locale/duplocale.c (__duplocale): strdup __names elements.
1910         * locale/freelocale.c (__freelocale): Free __names elements.
1911         * locale/localename.c (_nl_current_names): Variable removed.
1912         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1913         * locale/localeinfo.h (_nl_current_names): Removed decl.
1914         * locale/setlocale.c: Use _nl_global_locale->__names in place of
1915         _nl_current_names throughout.
1917         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1919         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1920         and sys_nerr in the output file.
1922         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1923         * scripts/cpp: Just use the environment variable.
1925         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1926         * libio/tst-mmap-offend.c (do_test): Likewise.
1927         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1928         * libio/tst-mmap-eofsync.c (do_test): Likewise.
1929         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1931         * locale/localename.c: If the current locale is the global locale, use
1932         _nl_current_names; otherwise use the locale object.
1934 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1936         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1937         'm' to enable mmap I/O.
1938         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
1939         former wasn't used (anymore?).
1940         (_IO_FLAGS2_MMAP): New define.
1941         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1942         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1943         _IO_FLAGS2_MMAP bit is set.
1944         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1945         Enable mmap-using mode only if 'm' was set.
1947 2002-08-29  Roland McGrath  <roland@frob.com>
1949         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1951         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1952         Change argument type from int to intptr_t.
1954         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1955         initializer on [! _HURD_THREADVAR_H] (bad kludge).
1956         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1957         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1958         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
1960         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1962         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1964         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1966         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1967         * assert/assert-perr.c: Add libc_hidden_def.
1968         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1970         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1971         found at all.
1972         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
1973         sys_errlist stuff to ...
1974         * sysdeps/unix/sysv/linux/Versions: ... here.
1976         * mach/mach.h: Include <features.h>.
1978 2002-08-29  Roland McGrath  <roland@redhat.com>
1980         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1981         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1982         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1984         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1986         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1987         (norm_add_slashes): alloca -> __alloca
1989 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
1991         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1992         string_malloced, it is unlikely to be set.
1993         Only call free with non-NULL workspace.
1994         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1995         -mcpu=ultrasparc, not only tune for it.
1996         (ASFLAGS*): Set unconditionally.
1998         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1999         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
2000         p_vaddr/p_offset when computing LOADADDR.
2002 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
2004         * version.h (VERSION): Bump to 2.2.92.
2006         * time/Makefile (tst-ftime_l-ENV): New variable.
2008         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
2010         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
2011         <U017A>, <U017D> and <U0179>. Add missing mappings.
2012         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
2014         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
2015         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
2016         (struct tostruct): Use ACRINDEX as type for link field.
2017         (statuc gmonparam): Likewise for froms.
2018         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
2019         kcount and froms.
2020         (write_call_graph): Use correct type for from_index and to_index.
2021         * gmon/mcount.c: Use correct types for frompcindex and toindex
2022         variables.
2023         Patches by Dan Kegel <dank@kegel.com>.
2025         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
2026         canonical name.
2028         * time/strptime.c (ISSPACE): New #define.  Use isspace or
2029         __isspace_l.  Replace calls to isspace.
2030         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
2032 2002-08-29  Roland McGrath  <roland@redhat.com>
2034         * string/tst-strxfrm.c: Remove __ from function names.
2036 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2038         * include/wchar.h: Declare __mbsrtowcs_l.
2039         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
2040         * wcsmbs/mbsrtowcs.c: Add support for compilation with
2041         USE_IN_EXTENDED_LOCALE_MODEL.
2042         * wcsmbs/mbsrtowcs_l: New file.
2043         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
2044         define as static.  Change all uses.
2045         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
2046         Change all callers.
2047         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
2048         * time/strftime.c: When translating for the extended locale model
2049         use the _l functions.
2050         * time/Makefile (tests): Add tst-ftime_l.
2051         * time/tst-ftime_l.c: New file.
2053 2002-08-28  Roland McGrath  <roland@redhat.com>
2055         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
2056         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
2057         from _nl_find_locale ok if for _nl_C_name.
2059         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
2060         iterator to refer to each category's _nl_current_LC_FOO symbol, so
2061         we know they are all linked in.
2063         * NEWS: Added 2.2.6 text from 2.2 branch version.
2065         * time/strptime.c (strptime_internal): Remove spurious const.
2067         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
2068         _nl_select_era_entry): Moved to ...
2069         * time/era.c: ... here, new file.
2070         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
2071         Add internal_function to definitions.  Take an additional argument
2072         giving the `struct locale_data *' to use.
2073         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
2074         _nl_parse_alt_digit): Moved to ...
2075         * time/alt_digit.c: ... here, new file.
2076         * time/lc-time-cleanup.c: New file.
2077         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
2078         * locale/localeinfo.h (_nl_postload_time): Remove decl.
2079         (_nl_cleanup_time): Declare it.
2080         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
2081         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
2082         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
2083         * time/strftime.c: Pass locale data to helper functions.
2084         * time/strptime.c: Likewise.
2086         * locale/localeinfo.h (struct locale_data): New member `private'
2087         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
2088         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
2089         * locale/C-collate.c: Update initializer.
2090         * locale/C-identification.c: Likewise.
2091         * locale/C-measurement.c: Likewise.
2092         * locale/C-telephone.c: Likewise.
2093         * locale/C-address.c: Likewise.
2094         * locale/C-name.c: Likewise.
2095         * locale/C-paper.c: Likewise.
2096         * locale/C-time.c: Likewise.
2097         * locale/C-numeric.c: Likewise.
2098         * locale/C-monetary.c: Likewise.
2099         * locale/C-messages.c : Likewise.
2100         * locale/C-ctype.c: Likewise.
2102         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
2103         Redefine this too.
2105 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2107         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
2108         (_rtld_global): Use it.
2110         * sysdeps/gnu/Dist: Remove errlist-compat.c.
2111         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
2112         object directory.  Pass all Versions files to the awk script.
2113         * sysdeps/gnu/errlist-compat.c: Removed.
2114         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
2115         first Versions file in the search path which has them.
2116         Allow multiple errlist symbol versions to have the same count of
2117         errors.
2118         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
2119         of "errlist-compat.c".
2120         * sysdeps/gnu/errlist.c: Regenerated.
2121         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
2122         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
2123         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2124         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
2125         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
2126         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
2127         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
2128         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
2129         ECANCELLED if not defined by kernel headers.
2130         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
2131         already defined by kernel headers.
2132         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
2133         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
2134         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
2135         is a macro.
2136         * Versions.def (GLIBC_2.3) [librt]: Add.
2138         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
2140 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2142         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
2143         missing comma to .type directive.
2145 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2147         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
2148         unconditionally.
2149         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
2150         check.
2151         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
2153 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2155         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
2156         check to close_and_out close.  Replace return NULL statements where
2157         fd might be >= 0 with goto close_and_out.  Close the file descriptor
2158         when it is no longer needed.
2160 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2162         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
2163         string constants.
2164         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2165         * sysdeps/arm/dl-machine.h: Likewise.
2166         * sysdeps/cris/dl-machine.h: Likewise.
2167         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
2168         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
2170 2002-08-28  Roland McGrath  <roland@redhat.com>
2172         * Makeconfig (default_cflags): Revert unintended change.
2174 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2176         * version.h (VERSION): Bump to 2.2.91.
2178         * configure.in: Disable TLS support by default for now.
2180         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
2182         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
2183         warnings.
2185         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
2187         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
2188         fprintf/fwprintf calls.
2190 2002-08-28  Roland McGrath  <roland@redhat.com>
2192         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
2193         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
2195         * locale/setlocale.c: Declare postload functions weak.
2197         * elf/tst-tls1-static.c: New file.
2198         * elf/tst-tls2-static.c: New file.
2199         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
2201         Make uselocale support static linking.
2202         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
2203         This file again just defines _nl_C_locobj.
2204         (_nl_C_locobj): Use a categories.def iterator in the initializer.
2205         * locale/global-locale.c: New file.  Define _nl_global_locale here,
2206         using all weak references in the initializer.
2207         * locale/Makefile (aux): Add global-locale.
2208         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
2209         these unconditional, along with the tsd decl.
2210         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
2211         Define it under these conditions.
2212         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
2213         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
2214         `extern __thread struct locale_data *const *'.
2215         [NL_CURRENT_INDIRECT]
2216         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
2217         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
2218         the thread variable _nl_current_LC_FOO and also a special absolute
2219         symbol _nl_current_LC_FOO_used.
2220         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
2221         Set each _nl_current_LC_FOO symbol to point into the new locale,
2222         using weak references to test if _nl_current_LC_FOO_used was linked in.
2223         * locale/setlocale.c [! SHARED]: Replace this conditional ...
2224         [NL_CURRENT_INDIRECT]: ... with this one.
2225         (_nl_current, _nl_C): Variables removed.
2226         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
2227         weak references to _nl_current_LC_FOO_used.
2228         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
2229         (free_category): New function, broken out of ...
2230         (free_mem): ... here.  Call that.
2231         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
2232         instead of a loop.
2234         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
2235         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
2236         it is already absolute.
2238         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
2239         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
2240         [$(build-static) = yes] (tests-static): New variable.
2241         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
2243 2002-08-26  Christoph Hellwig  <hch@lst.de>
2245         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
2246         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
2248 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2250         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
2252         * sysdeps/s390/Dist: Add bits/link.h.
2254         * sysdeps/sh/Dist: New file.
2256         * sysdeps/ia64/Dist: Add ia64libgcc.S.
2258         * sysdeps/wordsize-32/Dist: New file.
2260         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
2261         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
2262         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
2264         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
2265         sys/personality.h.
2267         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
2268         sparc/dl-brk.S.
2270         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
2272         * sysdeps/unix/bsd/sun/Dist: New file.
2274         * sysdeps/unix/bsd/osf/Dist: New file.
2276         * sysdeps/unix/bsd/hp/Dist: New file.
2278         * sysdeps/unix/arm/Dist: New file.
2280         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
2282         * sysdeps/mach/hurd/Dist: Add set-init.c.
2284         * sysdeps/i386/Dist: Add bits/link.h.
2286         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
2288         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
2290         * locale/Makefile (distribute): Add hashval.h.
2292         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
2294         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
2296         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
2297         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
2298         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
2299         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
2300         implementations.
2301         * libio/stdio.h: Likewise.
2302         * locale/locale.h: Likewise.
2303         * math/math.h: Likewise.
2304         * math/bits/mathcalls.h: Likewise.
2305         * setjmp/setjmp.h: Likewise.
2306         * signal/signal.h: Likewise.
2307         * stdlib/stdlib.h: Likewise.
2308         * string/string.h: Likewise.
2309         * time/time.h: Likewise.
2310         * wcsmbs/wchar.h: Likewise.
2311         * wctype/wctype.h: Likewise.
2313 2002-08-28  Roland McGrath  <roland@redhat.com>
2315         * locale/tst-C-locale.c (run_test): Remove __ from function names.
2317 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2318             Roland McGrath <roland@redhat.com>
2320         * locale/hashval.h (compute_hashval): Use prototype defn.
2321         (hashval_t): New macro, defined to unsigned long int
2322         if not already defined.
2323         (compute_hashval): Return hashval_t instead of unsigned long int.
2324         * locale/loadarchive.c (hashval_t): New macro.
2325         * locale/programs/locarchive.c: Include hashval.h directly instead
2326         of simple-hash.h.
2327         (compute_hashval, hashval_t): Define these macros first.
2328         (insert_name): Use archive_hashval instead of compute_hashval.
2329         (add_locale, delete_locales_from_archive): Likewise.
2331 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2333         * locale/programs/locarchive.c (insert_name): Suppress warnings about
2334         hash collisions if be_quiet.
2336 2002-08-27  Roland McGrath  <roland@redhat.com>
2338         * locale/locale.h (__newlocale, __duplocale, __freelocale,
2339         __uselocale): Don't declare these any more.
2340         * include/locale.h (__uselocale): Declare here instead, using __typeof.
2342         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
2343         and treat it as an EOF return.
2344         * sysdeps/unix/readdir_r.c: Likewise.
2346         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
2347         From Alexandre Oliva <aoliva@redhat.com>.
2348         * sysdeps/gnu/errlist-compat.c: Regenerated.
2350 2002-08-27  Brian Youmans  <3diff@gnu.org>
2352         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
2353         wording at request of copyright holder Stephen Moshier.
2354         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2355         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2356         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2357         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2358         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2359         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2360         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2361         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2362         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2363         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2364         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2365         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2366         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2367         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2369 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2371         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
2372         * ctype/ctype-extn.c (isblank_l): Add weak alias.
2373         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
2374         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
2375         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
2376         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
2377         * wctype/iswctype_l.c (iswctype_l): Likewise.
2379 2002-08-27  Roland McGrath  <roland@redhat.com>
2381         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
2383         * ctype/ctype.h (__exctype_l): Don't declare __ name.
2384         * stdlib/stdlib.h: Don't declare __*_l names.
2385         * include/stdlib.h: Declare them here instead.
2386         * include/string.h: Don't declare __*_l names.
2387         * string/string.h: Declare them here instead.
2388         * time/time.h: Don't declare __*_l names.
2389         * include/time.h: Declare them here instead.
2390         * wcsmbs/wchar.h: Don't declare __*_l names.
2391         * include/wchar.h: Declare them here instead.
2392         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
2393         Don't declare __*_l names.
2394         * include/wctype.h: Declare them here instead.
2395         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
2396         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
2397         * locale/langinfo.h: Don't declare __nl_langinfo_l.
2398         * include/langinfo.h: Declare it here with __typeof.
2400         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
2401         instead, taking an extra __locale_t argument.
2402         * time/Makefile (routines): Add strptime_l.
2403         * time/time.h (__strptime_l, strptime_l): Declare them.
2404         * time/strptime_l.c: New file.
2406         * time/time.h (__strftime_l, strftime_l): Declare them.
2407         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
2408         * time/strftime_l.c: New file.
2409         * time/wcsftime_l.c: New file.
2410         * time/Makefile (routines): Add strftime_l, wcsftime_l.
2411         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
2412         strftime_l, wcsftime_l.
2413         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
2414         or __wcsftime_l instead, taking an extra __locale_t argument.
2416         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
2417         (libc: GLIBC_2.3): ... here.
2419 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
2421         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
2423         * Makefile (distribute): Add LICENSES.
2425         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
2426         sys/debugreg.h.
2428         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
2430         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
2432         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
2434         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
2436         * sysdeps/mach/hurd/alpha/Dist: New file.
2438         * sysdeps/arm/Dist: Add bits/link.h.
2440         * sunrpc/Makefile: Distribute thrsvc.
2442         * stdio-common/Makefile: Remove more left-overs from old stdio.
2444         * include/linewrap.h: Removed.
2446         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
2448         * intl/Makefile (distribute): Add plural-eval.c.
2450 2002-08-27  Roland McGrath  <roland@redhat.com>
2452         * manual/sysinfo.texi (Mount Information): Correct file name to macro
2453         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
2454         Say mtab is in either /var/run or /etc.
2456 2002-08-26  Roland McGrath  <roland@redhat.com>
2458         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
2459         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
2461         * sysdeps/gnu/Versions: New file.
2462         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
2463         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
2464         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
2465         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
2466         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
2467         and _sys_nerr_internal instead of anything else.  Make it include
2468         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
2469         Make it emit some asm magic if [EMIT_ERR_MAX].
2470         * sysdeps/gnu/errlist.c: Regenerated.
2471         * sysdeps/gnu/errlist-compat.awk: New file.
2472         * sysdeps/gnu/errlist-compat.c: New file (generated).
2473         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
2474         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
2475         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
2476         (SYS_ERRLIST, SYS_NERR): Macros removed.
2477         (sys_nerr, _sys_nerr): Remove these weak aliases.
2478         * sysdeps/unix/sysv/linux/errlist.c: File removed.
2479         * sysdeps/unix/sysv/linux/errlist.h: File removed.
2480         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
2482         * include/libc-symbols.h (declare_symbol): New macro.
2483         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
2484         * configure.in: New check to define it.
2485         * configure: Regenerated.
2487 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
2489         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
2490         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
2492         * Make-dist: Remove traces of old stdio.
2493         * Makeconfig: Likewise.
2495         * locale/Makefile (localedef-aux): New variable.  Only md5
2496         assigned to it.  These files are not ddistributed in this directory.
2498         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
2499         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
2500         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
2502         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
2504         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
2505         set h_errno to NO_RECOVERY [PR libc/4360].
2507 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2509         * libio/Makefile (tests): Add bug-fopena+.
2510         * libio/bug-fopena+.c: New file.
2511         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
2512         file for _IO_IS_APPENDING if file isn't opened for reading, too.
2514         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
2516         * locale/xlocale.c: Fix the last change.  The variable still has
2517         to end in _data.
2518         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
2519         (__libc_tsd_set): Add _data prefix to variable name.
2521 2002-08-26  Roland McGrath  <roland@redhat.com>
2523         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
2524         macro with inline function.
2525         (sigset_get_old_mask): Likewise.
2526         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
2527         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2528         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2529         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
2530         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
2531         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
2532         values.
2533         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
2534         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
2536 2002-07-06  Bruno Haible  <bruno@clisp.org>
2538         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
2539         sigset_get_old_mask): Make it work with larger sigset_t.
2540         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
2541         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2542         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2544 2002-08-26  Roland McGrath  <roland@redhat.com>
2546         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
2547         * manual/filesys.texi (File Times): Document lutimes and futimes.
2548         * misc/Makefile (routines): Add them.
2549         * misc/Versions (libc: GLIBC_2.3): Likewise.
2550         * sysdeps/generic/lutimes.c: New file.
2551         * sysdeps/generic/futimes.c: New file.
2552         * sysdeps/mach/hurd/lutimes.c: New file.
2553         * sysdeps/mach/hurd/futimes.c: New file.
2555         * manual/filesys.texi (File Times): Add explicit note about null
2556         pointer argument to utimes.
2558 2002-08-26  Roland McGrath  <roland@frob.com>
2560         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
2561         (__ifreq): Add a cast.  Remove an unused variable.
2563         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
2564         _HURD_THREADVAR_LOCALE.
2566 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
2568         * posix/regexec.c (re_search_stub): Return correct match length
2569         if start != 0.
2570         * posix/bug-regex10.c: New test.
2571         * posix/Makefile (tests): Add bug-regex10.
2573 2002-08-26  Brian Youmans  <3diff@gnu.org>
2575         * COPYING.LIB: Replaced with fresh copy from
2576         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
2577         suggested copying permission notice now says version 2.1 instead
2578         of version 2.
2580         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
2581         from Library GPL.
2582         * crypt/crypt_util.c: Likewise.
2583         * crypt/ufc.c: Likewise.
2584         * elf/dl-conflict.c: Likewise.
2585         * elf/dl-iteratephdr.c: Likewise.
2586         * iconv/iconvconfig.h: Likewise.
2587         * malloc/arena.c: Likewise.
2588         * malloc/hooks.c: Likewise.
2589         * malloc/malloc.c: Likewise.
2590         * posix/glob/Makefile.ami: Likewise.
2591         * posix/glob/Makefile.in: Likewise.
2592         * stdlib/gmp-impl.h: Likewise.
2593         * stdlib/gmp.h: Likewise.
2594         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
2595         * sysdeps/generic/strnlen.c: Likewise.
2596         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
2597         * sysdeps/mach/hurd/recvmsg.c: Likewise.
2598         * sysdeps/mach/hurd/sendmsg.c: Likewise.
2599         * sysdeps/mach/hurd/spawni.c: Likewise.
2600         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
2601         * sysdeps/mach/powerpc/sysdep.h: Likewise.
2602         * sysdeps/mach/powerpc/thread_state.h: Likewise.
2603         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
2604         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
2605         * sysdeps/x86_64/gmp-mparam.h: Likewise.
2607         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
2608         Lesser GPL copying permission notice from 2 to 2.1.
2609         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
2610         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
2611         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2612         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
2613         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2614         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2615         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2616         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2617         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2618         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2619         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2620         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2621         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2622         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2623         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2624         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2625         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2626         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2627         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2628         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2629         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2630         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2631         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2632         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2633         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2634         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2635         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2636         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2637         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2638         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2639         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2640         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2641         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2642         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2643         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2644         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2645         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2646         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2647         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2648         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2649         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2650         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2651         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2652         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2653         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2654         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2655         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2656         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2657         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2658         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2659         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2660         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2661         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2662         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2663         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2665         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
2666         Moshier and Lesser GPL copying permission notice, per license from
2667         Moshier.
2668         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2669         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2670         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2671         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2672         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2673         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2674         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2675         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2676         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2677         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2678         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2679         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2680         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2681         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2683         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
2684         notice, per license from copyright holder Stephen Moshier.
2685         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2686         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2687         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2688         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2689         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2690         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2691         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2692         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2693         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2695 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2697         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
2698         (shared-only-routines): Likewise.
2700 2002-08-26  Roland McGrath  <roland@redhat.com>
2702         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
2703         name of "", store a null pointer instead.
2705         * configure.in (elf): Set to yes for freebsd*, netbsd*.
2706         * configure: Regenerated.
2708         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
2709         Initialize this instead of __libc_tsd_LOCALE_data.
2711         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
2712         ptsname_r to EINVAL.
2714         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
2716         * rt/Makefile: Revert last change, it was inappropriate to presume aio
2717         implementations depend on pthreads.
2718         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
2719         * rt/tst-aio64.c (do_test): Likewise.
2720         * rt/tst-aio2.c (do_test): Likewise.
2721         * rt/tst-aio3.c (do_test): Likewise.
2722         * rt/tst-aio4.c (do_test): Likewise.
2723         * rt/tst-aio5.c (do_test): Likewise.
2724         * rt/tst-aio6.c (do_test): Likewise.
2725         * rt/tst-aio7.c (do_test): Likewise.
2727         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2728         void so as to avoid compiler warnings.
2730         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2731         _IO_wide_data_FD, which is never used here.
2733         * libio/iofread.c
2734         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2735         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2736         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2738         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2739         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2741         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2742         (closelog): Likewise.
2744 2002-07-06  Bruno Haible  <bruno@clisp.org>
2746         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2748         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2749         * sysdeps/unix/alpha/pipe.S: ... here.
2750         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2752         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2754         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2755         * sysdeps/unix/i386/fork.S: Likewise.
2756         * sysdeps/unix/i386/pipe.S: Likewise.
2757         * sysdeps/unix/i386/wait.S: Likewise.
2759         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2760         * sysdeps/unix/arm/fork.S: Likewise.
2762         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2763         arguments.
2764         (DO_CALL): Swap argument order.
2765         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2766         arguments.
2767         (DO_CALL): Swap argument order.
2768         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2769         arguments.
2770         (DO_CALL): Swap argument order.
2771         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2772         arguments.
2773         (DO_CALL): Swap argument order.
2774         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2775         arguments.
2776         (DO_CALL): Swap argument order.
2777         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2778         arguments.
2779         (DO_CALL): Swap argument order.
2780         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2781         arguments.
2782         (DO_CALL): Swap argument order.
2784         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2785         (L): Define right for ELF.
2786         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2787         Now defined in sysdeps/i386/sysdep.h.
2789         * sysdeps/posix/readv.c: Ansify function definition.
2790         * sysdeps/posix/writev.c: Likewise.
2792         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2793         have the same size. Avoid direct cast from size_t to off_t.
2795         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2796         nul byte in entry[n].ut_user.
2797         (simulate_logout): Likewise.
2799         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2800         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2801         existence of corresponding members of 'struct utmp'.
2802         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2803         !_HAVE_UT_TYPE.
2805         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2806         allocate a buffer of at least BUFSIZ bytes, not just of
2807         sizeof (struct dirent).
2809         * sysdeps/generic/glob.c: Include <limits.h>.
2810         (NAME_MAX): Define a fallback.
2811         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2812         stack.
2813         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2814         (main): Allocate enough room for a 'struct dirent64' on the stack.
2815         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2816         'struct dirent'.
2818         * sysdeps/unix/sysv/linux/init-first.c: Don't include
2819         kernel-features.h.
2821         * inet/htontest.c: Include <sys/types.h>.
2823         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2825         * include/sys/sysctl.h: Comment fix.
2827         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2828         _dl_load_lock.
2829         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2831         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2833         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2834         (__getpeername): New alias.
2835         (__getsockname): New alias.
2836         (__socket): New alias.
2838         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2840         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2841         (__fcntl_internal): New alias.
2842         (__profil): New alias.
2844 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2846         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2847         entry was for getaddr* lookup or not.  Add only matching cache
2848         entry.  Change all callers [PR libc/4317].
2850         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2851         finding the read position [PR libc/4265].
2852         * libio/Makefile (tests): Add bug-rewind2.
2853         * libio/bug-rewind2.c: New file.
2855         * libio/bug-rewind.c: Fix creation of temp file.
2857 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2859         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2860         neither SUCCESS nor TRYAGAIN [PR libc/4259].
2861         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2862         to ENOENT if no entry is found.
2863         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2864         failure.
2865         * nis/nss_compat/compat-initgroups.c: Likewise.
2866         * nis/nss_compat/compat-pwd.c: Likewise.
2867         * nis/nss_compat/compat-spwd.c: Likewise.
2868         * nis/nss_nis/nis-alias.c: Likewise.
2869         * nis/nss_nis/nis-ethers.c: Likewise.
2870         * nis/nss_nis/nis-grp.c: Likewise.
2871         * nis/nss_nis/nis-hosts.c: Likewise.
2872         * nis/nss_nis/nis-initgroups.c: Likewise.
2873         * nis/nss_nis/nis-netgrp.c: Likewise.
2874         * nis/nss_nis/nis-network.c: Likewise.
2875         * nis/nss_nis/nis-proto.c: Likewise.
2876         * nis/nss_nis/nis-publickey.c: Likewise.
2877         * nis/nss_nis/nis-pwd.c: Likewise.
2878         * nis/nss_nis/nis-rpc.c: Likewise.
2879         * nis/nss_nis/nis-service.c: Likewise.
2880         * nis/nss_nis/nis-spwd.c: Likewise.
2881         * resolv/nss_dns/dns-host.c: Likewise.
2882         * resolv/nss_dns/dns-network.c: Likewise.
2883         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2884         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2885         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2886         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2887         * nis/nss_nisplus/nisplus-network.c: Likewise.
2888         * nis/nss_nisplus/nisplus-proto.c: Likewise.
2889         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2890         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2891         * nis/nss_nisplus/nisplus-service.c: Likewise.
2892         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2893         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2894         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2895         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2896         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2898         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2899         declaring __restore and __restore_rt as hidden (if possible).
2901 2002-08-25  Roland McGrath  <roland@redhat.com>
2903         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2905         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2906         (getutent_r_file, internal_getut_r): Updated all callers.
2907         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2909 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2911         * locale/programs/locale.c: Don't print aliases for non-existing
2912         locales for 'locale -a'.
2913         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2915 2002-07-19  H.J. Lu  <hjl@gnu.org>
2917         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2919 2002-07-16  H.J. Lu  <hjl@gnu.org>
2921         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2922         sys/personality.h.
2923         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2925 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2927         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2928         not moved ahead of the fputs call.
2929         * elf/tst-tlsmod2.c (in_dso): Likewise.
2930         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2931         * elf/tst-tlsmod4.c (in_dso): Likewise.
2933 2002-08-25  Andreas Schwab  <schwab@suse.de>
2935         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2937 2002-08-25  Roland McGrath  <roland@redhat.com>
2939         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2940         resetting handler, to avoid the possibility of a spurious SIGALRM
2941         delivered to the user's handler.
2942         Reported by Amit D. Chaudhary <amitc@brocade.com>,
2944         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
2945         set -fkeep-inline-functions, which is not needed for the current file.
2947         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2948         (_dl_setup_hash): Add attribute_hidden.
2949         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2950         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2951         (_dl_new_object, _dl_map_object_deps): Likewise.
2952         (_dl_map_object_deps_internal): Remove decl.
2953         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2955         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2956         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2957         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2958         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2959         instead relying on the compiler to produce only GOTOFF variable refs.
2961 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2963         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
2965         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2966         inline to avoid defining it in every file which includes this header.
2968         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2969         defining DONT_USE_BOOTSTRAP_MAP.
2971         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2972         * libio/tst-mmap-setvbuf.c (main): Likewise.
2973         * libio/tst-widetext.c (main): Likewise.
2975         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2976         message.
2977         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2978         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2980         * sysdeps/i386/elf/configure.in: Unconditionally define
2981         PI_STATIC_AND_HIDDEN.
2982         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2983         PI_STATIC_AND_HIDDEN is defined as well.
2984         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2986 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
2988         * sysdeps/ia64/bzero.S: Define __bzero as well.
2990         * locale/programs/charmap.c (charmap_new_char): Don't use
2991         ULONG_MAX as maximum UCS4 value.
2993         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2995         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2997         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2998         * malloc/malloc.c (mALLINFo): Likewise.
3000         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
3002         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
3003         examining result of _IO_do_flush call.
3005         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
3006         Use prec not spec when sizing buffers.
3008         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
3009         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
3010         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
3011         * stdio-common/vfscanf.c (inchar): Likewise.
3012         * misc/efgcvt_r.c (fcvt_r): Likewise.
3013         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
3014         * elf/readlib.c (process_file): Likewise.
3015         * elf/sprof.c (load_profdata): Likewise.
3016         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
3017         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
3018         * locale/programs/charmap.c (charmap_read): Likewise.
3019         * libio/fileops.c: Likewise.
3020         * libio/fmemopen.c: Likewise.
3021         * stdlib/strtod.c: Likewise.
3022         * elf/dl-load.c: Likewise.
3023         * iconv/iconvconfig.c: Likewise.
3024         * iconv/iconv_prog.c (process_block): Likewise.
3025         * elf/rtld.c (dl_main): Likewise.
3027         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
3028         macro to calm down the compiler.
3030         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
3032         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
3034         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
3035         placement of errno definition.
3036         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
3037         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
3038         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
3039         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
3040         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
3042         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
3043         from 1024 to 65536, to avoid buffer overrun.
3045 2002-08-16  Paul Eggert  <eggert@twinsun.com>
3047         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
3048         from 1024 to 65536, to avoid buffer overrun.
3049         * resolv/res_query.c (MAXPACKET): Likewise.
3051 2002-08-24  Andreas Jaeger  <aj@suse.de>
3053         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
3055 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
3057         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
3058         two52 locally.
3059         (log2): Likewise.
3060         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
3061         Patch by Simon Gee <simong@agile.tv>.
3063         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
3064         Prefer reading /proc/stat since it is more uniform across
3065         architectures.
3067         * manual/texinfo.tex: Update to latest official version.
3069         * sysvipc/sys/shm.h: Remove SHMLBA definition.
3070         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
3071         * sysdeps/gnu/bits/shm.h: Likewise.
3072         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
3073         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3074         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
3075         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3076         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3077         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3078         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
3079         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
3080         since this is what the kernel says.
3082         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
3083         since ssize_t is needed as well.  Replace const with __const.
3085 2002-08-23  Roland McGrath  <roland@redhat.com>
3087         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
3088         __malloc_hook, __realloc_hook, __memalign_hook,
3089         __after_morecore_hook): Variable definitions moved to ...
3090         * malloc/malloc.c: ... here, so as to be before all references.
3092         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
3093         global variable reference in an unused asm parameter, to ensure the
3094         compiler has set up the GOT register before we use it.
3096         * malloc/hooks.c: Move variable definitions ahead of uses.
3097         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
3098         initializers that make reference to variables they define.
3100 2002-08-23  Andreas Jaeger  <aj@suse.de>
3102         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
3103         alloca, free, qsort.
3105         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
3107         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
3108         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
3110         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
3111         <hch@lst.de>.
3112         * sysdeps/generic/fgetxattr.c: New file.
3113         * sysdeps/generic/flistxattr.c: New file.
3114         * sysdeps/generic/fremovexattr.c: New file.
3115         * sysdeps/generic/fsetxattr.c: New file.
3116         * sysdeps/generic/getxattr.c: New file.
3117         * sysdeps/generic/listxattr.c: New file.
3118         * sysdeps/generic/lgetxattr.c: New file.
3119         * sysdeps/generic/llistxattr.c: New file.
3120         * sysdeps/generic/lremovexattr.c: New file.
3121         * sysdeps/generic/lsetxattr.c: New file.
3122         * sysdeps/generic/removexattr.c: New file.
3123         * sysdeps/generic/setxattr.c: New file.
3124         * misc/Makefile (headers): Add sys/xattr.h.
3125         (routines): Add *xattr calls.
3126         * misc/Versions: Add *xattr calls with version 2.3.
3127         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
3128         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3129         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3130         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
3131         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
3132         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
3133         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
3134         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3136 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
3138         * sysdeps/powerpc/elf/libc-start.c
3139         (__cache_line_size): Declare.
3140         (__aux_init_cache): New function.
3141         (__libc_start_main): Change type of `auxvec' parameter to
3142         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
3143         __aux_init_cache.
3144         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3145         (__cache_line_size): Declare.
3146         (__aux_init_cache): New function.
3147         (DL_PLATFORM_INIT): Define.
3148         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
3149         value to select the correct stride for dcbz.
3151 2002-08-22  Andreas Jaeger  <aj@suse.de>
3153         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
3154         shmat.
3156 2002-08-22  Roland McGrath  <roland@redhat.com>
3158         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
3159         position indicated by locrectab against file bounds before rounding to
3160         page size.  In mapping loop, always set TO before breaking out of
3161         contiguous range coalescing loop.
3163         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
3164         (or MAP_COPY if available) instead of MAP_SHARED.
3166         * scripts/firstversions.awk: When encountering a version newer than
3167         the specified earliest version, be sure to emit the specified earliest
3168         version first if any renaming of an older version to that has been.
3170 2002-08-21  Roland McGrath  <roland@redhat.com>
3172         * configure.in: Make GCC version check require 3.[2-9]* and no others.
3173         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
3174         (Configuring and compiling): Don't mention older GCC versions any more.
3175         * INSTALL: Regenerated.
3177         * manual/install.texi (Configuring and compiling, Installation,
3178         Running make install, Linux): Linux -> GNU/Linux where appropriate.
3180         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
3181         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
3182         and with noinline otherwise.  Remove hack alloca use to prevent
3183         inlining, we can ask for it explicitly nowadays.
3185         * dlfcn/bug-dlsym1.c: New file.
3186         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
3187         * dlfcn/Makefile (distribute): Add them.
3188         (tests): Add bug-dlsym1 here.
3189         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
3190         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
3191         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
3193 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
3195         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
3196         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
3197         before relocation.
3198         (_dl_start): Don't use local bootstrap_map variable if
3199         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
3200         pass bootstrap_map to _dl_start_final in this case either.  Don't
3201         pass start_time to _dl_start_final ever.
3202         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
3204         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
3205         This cripples the scope lists necessary to search for symbols in
3206         dependencies which are not in the global scope.
3208         * include/setjmp.h (__libc_longjmp): Add declaration.
3210 2002-08-21  Andreas Jaeger  <aj@suse.de>
3212         * sysdeps/x86_64/_mcount.S: Fix assembler.
3214         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
3215         with biarch support.
3217 2002-08-21  Andreas Jaeger  <aj@suse.de>
3219         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
3221         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
3223         * sysdeps/x86_64/machine-gmon.h: New file.
3224         * sysdeps/x86_64/_mcount.S: New file.
3226 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
3228         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
3229         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
3230         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
3231         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
3232         to TL_INIT_TP.  Otherwise pass 1.
3233         * include/link.h (struct link_map): Add l_tls_tp_initialized.
3234         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
3236 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
3238         * locale/programs/localedef.c (add_to_readlist): Error about
3239         circular dependencies only if the locale in question hasn't
3240         been finished.
3241         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
3242         CTYPE_LOCALE to load_locale.
3243         * locale/programs/locfile.c (locfile_read): Don't include
3244         unneeded but available locales in locale_mask.
3246         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
3247         print any messages about enlarging archive.
3249 2002-08-20  Brian Youmans  <3diff@gnu.org>
3251         * manual/contrib.texi: Removed licenses, added acknowledgements
3252         for contributions by Intel, IBM, Craig Metz.
3253         * LICENSES: New file, contains the text of all non-FSF licenses in the
3254         distribution that require putting the notice in the accompanying
3255         documentation.
3256         * README.template, README: Mention LICENSES.
3258         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
3259         new one modelled on the modern BSD license, per recent letter
3260         of permission from CMU.
3261         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
3263         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
3264         from IBM to FSF, per the recent Software Letter.  Changed the
3265         distribution terms from GPL to LGPL.
3267         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
3268         copying permission notice (Lesser GPL), per recent IBM Software Letter.
3269         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
3270         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
3271         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
3272         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
3273         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
3274         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
3275         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
3276         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
3278         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
3279         from IBM to FSF, per the recent Software Letter.  Corrected the
3280         text of the copying permission notice to say Lesser GPL instead
3281         of GPL in warranty disclaimer paragraph.
3282         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
3283         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
3284         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
3285         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
3286         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
3287         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
3288         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
3289         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
3290         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
3291         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
3292         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
3293         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
3294         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
3295         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
3296         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
3297         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
3298         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
3299         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
3300         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
3301         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
3302         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
3304         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
3305         permission notice to say Lesser GPL instead of GPL in warranty
3306         disclaimer paragraph.
3307         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
3308         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3309         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3310         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3311         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3312         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3313         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3314         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3315         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3316         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3317         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
3318         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
3319         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
3320         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
3321         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
3322         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
3323         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
3324         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3325         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3326         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3327         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
3328         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
3329         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
3331 2002-08-20  Roland McGrath  <roland@redhat.com>
3333         Fix ABI compatibility with libc compiled with old tools on powerpc.
3334         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3335         and Jack Howarth <howarth@bromo.med.uc.edu>.
3336         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
3337         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
3338         pass -DHAVE_DOT_HIDDEN for these files.
3339         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
3340         __floatdisf.
3341         * sysdeps/powerpc/divdi3.c: New file.
3342         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
3343         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
3345 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
3347         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
3348         partially overlapping mappings.  Remove unneeded (char *) casts.
3349         Never allow duplication of ranges in mapped areas.
3351 2002-08-20  Roland McGrath  <roland@redhat.com>
3353         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
3354         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
3356 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
3358         * include/unistd.h: Don't hide _exit.
3360         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
3361         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
3362         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
3363         argument 1 to TLS_INIT_TP.
3364         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
3366         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
3368         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
3369         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
3370         memory allocation to...
3371         (allocate_dtv): ...here.  New function.
3372         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
3373         call allocate_dtv instead of _dl_allocate_tls_storage.
3374         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
3375         (_dl_get_tls_static_info): New function.
3376         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
3377         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
3379 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
3381         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
3382         immediately if result == NULL.
3384 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
3386         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
3388 2002-08-18  Roland McGrath  <roland@frob.com>
3390         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
3391         instead of __file_name_split.
3392         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
3394         * sysdeps/mach/hurd/dl-sysdep.c
3395         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
3396         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
3398 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
3400         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
3401         in change before last: MAX -> MIN.
3403 2002-08-15  Roland McGrath  <roland@redhat.com>
3405         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
3406         if seek would go past it.
3407         (mmap_remap_check): If file position is at or past EOF after check,
3408         leave read pointers at EOF and don't seek.
3410         * libio/tst-mmap-offend.c: New file.
3411         * libio/Makefile (tests): Add it.
3413         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
3414         the name as passed, rather than the name in the archive dictionary.
3416 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
3418         * csu/Makefile: Define elide-routines.os not static-only-routines.
3420         * include/sched.h (__clone): Add varargs at the end.
3422         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
3423         case.
3424         (TLS_INIT_HELPER): If defined, use it.
3425         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
3427 2002-08-15  Roland McGrath  <roland@redhat.com>
3429         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
3430         on L->l_prev; it can happen under rtld --verify too.
3432         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
3433         header separately, just map an initial window of 2MB from the file
3434         and remap if that is not large enough to cover the whole header.
3436 2002-08-15  Andreas Jaeger  <aj@suse.de>
3438         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
3439         version 2.3.
3440         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3441         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
3442         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
3443         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
3444         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
3445         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3446         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3447         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
3448         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
3449         Patch by Andreas Gruenbacher <agruen@suse.de>.
3451         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
3453 2002-08-14  Roland McGrath  <roland@redhat.com>
3455         * locale/locarchive.h (struct locale_category_data): Give this name to
3456         the type of locale_data_t's elements.
3457         * locale/programs/locarchive.c (cmpcategorysize): New static function.
3458         (add_locale): Use that to sort the categories by size and put all
3459         those that fit into two pages into the LC_ALL block, instead of
3460         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
3461         (show_archive_content): Detect categories inside LC_ALL block
3462         directly, instead of hard-coding.
3463         (oldlocrecentcmp): Compare just on file locations used.
3465 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
3467         * locale/programs/locarchive.c (struct oldlocrecent): New type.
3468         (oldlocrecentcmp): New function.
3469         (enlarge_archive): Re-add locales in the order they were added
3470         to the archive.
3471         (add_locale): Put all the small locale files together, if the small
3472         locale file block would occupy less pages if page size aligned, align
3473         it.
3474         (show_archive_content): Adjust for locale archives optimized for speed.
3476 2002-08-14  Roland McGrath  <roland@frob.com>
3478         * configure.in: Use "MISSING" as not-found value for MIG.
3479         * sysdeps/mach/configure.in: Fatal if mig not found.
3480         * configure, sysdeps/mach/configure: Regenerated.
3482 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
3484         * locale/loadarchive.c (archfname): Add missing slash.
3486         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
3487         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
3489 2002-08-12  Roland McGrath  <roland@redhat.com>
3491         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
3492         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
3493         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
3494         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
3495         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
3496         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
3497         * sysdeps/generic/waitpid.c: Likewise.
3499         * include/net/if.h: New file.  Use libc_hidden_proto
3500         for if_nametoindex and if_indextoname.
3501         * sysdeps/generic/if_index.c: Add libc_hidden_def.
3502         * sysdeps/mach/hurd/if_index.c: Likewise.
3503         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
3505         * include/grp.h (setgroups): Add libc_hidden_proto.
3506         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
3507         * sysdeps/mach/hurd/setgroups.c: Likewise.
3508         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
3509         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3511 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
3513         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
3514         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
3515         * sysdeps/generic/setegid.c (setegid): Likewise.
3516         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
3517         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
3518         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
3519         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
3520         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
3521         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
3522         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
3523         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
3524         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
3525         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
3526         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
3527         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
3528         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
3530         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
3531         __lxstat_internal, __lxstat64_internal): Remove.
3532         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
3533         Add hidden_proto.
3534         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
3535         Remove INTDEF where present, remove #undef at the beginning.
3536         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
3537         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
3538         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
3539         * sysdeps/generic/xstat.c (__xstat): Likewise.
3540         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
3541         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
3542         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
3543         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
3544         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
3545         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
3546         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
3547         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
3548         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
3549         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
3550         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
3551         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
3552         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
3553         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
3554         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
3555         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
3556         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
3557         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
3558         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
3559         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
3560         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
3561         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
3562         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
3563         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3564         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3565         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3566         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
3567         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
3568         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
3569         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3570         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
3571         * sysdeps/unix/xstat.c (__xstat): Likewise.
3573         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
3574         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
3575         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
3576         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
3577         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
3578         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
3579         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
3581         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
3582         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
3583         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
3584         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
3585         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
3586         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
3587         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
3588         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
3589         Likewise.
3590         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
3591         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
3592         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
3593         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
3594         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
3595         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
3596         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
3597         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
3599         * include/string.h (strcoll): Add libc_hidden_proto.
3600         * string/strcoll.c (strcoll): Add libc_hidden_def.
3602         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
3604 2002-08-11  Philip Blundell  <philb@gnu.org>
3606         * sysdeps/arm/Makefile: New file.
3608 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3610         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
3611         by another '|', end of regex or enclosing ')', clear branch.
3612         * posix/bug-regex9.c: New test.
3613         * posix/Makefile (tests): Add bug-regex9.
3615 2002-08-12  Roland McGrath  <roland@redhat.com>
3617         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
3618         start count condition, use TOTAL instead of variable that was never
3619         set.  Fix outer loop termination condition to TOTAL >= after update.
3621         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
3622         dl_tls_static_align and dl_tls_static_nelem.
3624 2002-08-11  Roland McGrath  <roland@redhat.com>
3626         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
3627         of the TLS macros, otherwise the compiler might not have initialized
3628         the PIC register yet when we use the PLT via asm.
3629         * elf/tst-tlsmod3.c (in_dso2): Likewise.
3630         * elf/tst-tlsmod2.c (in_dso): Likewise.
3632         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
3634         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
3635         Evaluate argument exactly once.  Remove __volatile__ from asm's.
3637         * include/unistd.h: Use libc_hidden_proto for getdomainname
3638         and getlogin_r.
3639         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
3640         * sysdeps/mach/hurd/getdomain.c: Likewise.
3641         * sysdeps/unix/getlogin_r.c: Likewise.
3642         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
3643         * sysdeps/generic/getlogin_r.c: Likewise.
3645         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
3646         * sunrpc/rtime.c: Add libc_hidden_def.
3648         * include/string.h: Use libc_hidden_proto for basename.
3649         * string/basename.c [_LIBC]: Add libc_hidden_def.
3651         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
3653         * locale/loadarchive.c: munmap -> __munmap throughout.
3655         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
3656         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
3657         * sysdeps/generic/gai_strerror.c: Likewise.
3659         * include/sys/errno.h: New file.
3661         * include/signal.h: No libc_hidden_proto for raise,
3662         __libc_current_sigrtmin, __libc_current_sigrtmax.
3663         These need to be overridden by linuxthreads.
3664         * sysdeps/posix/raise.c: Reverted.
3665         * sysdeps/generic/raise.c: Reverted.
3666         * signal/allocrtsig.c: Reverted.
3668         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
3670 2002-08-10  Roland McGrath  <roland@redhat.com>
3672         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
3673         * locale/localeinfo.h: Declare it.
3674         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
3675         current locale if it's not in the file list.
3676         Call _nl_archive_subfreeres.
3678 2002-08-10  Andreas Jaeger  <aj@suse.de>
3680         * sysdeps/i386/strchr.S: Add comment.
3682 2002-08-10  Roland McGrath  <roland@redhat.com>
3684         * include/wchar.h (putwc): Use libc_hidden_proto.
3685         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
3686         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
3687         * stdio-common/dprintf.c: Add libc_hidden_def.
3688         * stdio-common/fprintf.c: Likewise.
3689         * stdio-common/sprintf.c: Likewise.
3690         * stdio-common/sscanf.c: Likewise.
3691         * libio/iofwrite.c: Likewise.
3692         * libio/memstream.c: Likewise.
3693         * libio/putwc.c: Likewise.
3694         * stdio-common/perror.c: Likewise.
3695         * sysdeps/posix/remove.c: Likewise.
3696         * sysdeps/generic/remove.c: Likewise.
3697         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
3698         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
3700 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
3702         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3703         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
3704         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3705         towlower, towupper): Add libc_hidden_weak.
3707         * include/bits/dlfcn.h: New file.
3708         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
3710         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
3711         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
3712         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
3713         * include/pwd.h (_nss_files_parse_pwent): Likewise.
3714         * include/shadow.h (_nss_files_parse_spent): Likewise.
3715         * include/netdb.h (_nss_files_parse_protoent,
3716         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
3717         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
3718         (LINE_PARSER): Use it.
3719         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
3720         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
3722         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
3723         #endif.
3725         * manual/debug.texi (%MENU%): Remove trailing dot.
3726         Reported by <hayastan132@hotmail.com>.
3728         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
3729         aliases.
3730         (lseek): Dummy.
3731         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
3732         Likewise.
3734 2002-08-09  Roland McGrath  <roland@redhat.com>
3736         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
3737         name to find codeset name (if any) and normalize it.  If the
3738         normalized name differs, look up only that in the archive.
3739         * locale/programs/locarchive.c (add_locale_to_archive): If the name
3740         contains a codeset, normalize the codeset store only the normalized
3741         name in the archive.  If not, add an alias containing the locale's
3742         normalized codeset name.  Apply codeset name normalization when
3743         matching entries in the alias file.
3745         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3746         decrement HEAD->namehash_used here.
3747         (add_locale): Only need to insert name string when name_offset != 0.
3749         * locale/programs/localedef.c (options): Add -A/--alias-file.
3750         (alias_file): New variable.
3751         (parse_opt): Grok -A, set that.
3752         * locale/programs/localedef.h: Declare it.
3754         * locale/locarchive.h (struct locrecent): Add `refs' member.
3755         * locale/programs/locarchive.c (insert_name): New function, broken out
3756         of ...
3757         (add_locale_to_archive): ... here.  Call that.
3758         (add_alias): New function.
3759         (add_locale): New static function, add_locale_to_archive renamed.
3760         (add_locale_to_archive): Call that and use add_alias to add an alias
3761         for the name with codeset if the given name lacks it.
3762         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3764         * locale/Makefile (routines): Add loadarchive.
3765         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3766         (_nl_load_locale_from_archive): New function.
3767         * locale/localeinfo.h: Declare it.
3768         * locale/findlocale.c (_nl_find_locale): If using default locale path,
3769         try _nl_load_locale_from_archive first.
3771         * locale/loadlocale.c (_nl_intern_locale_data): New function,
3772         broken out of _nl_load_locale.
3773         (_nl_load_locale): Call that.
3774         * locale/localeinfo.h: Declare it.
3775         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3776         (struct locale_data): Remove unused member `options'.
3777         * locale/findlocale.c (_nl_remove_locale): Update uses.
3778         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3779         * locale/C-collate.c: Update initializer.
3780         * locale/C-identification.c: Likewise.
3781         * locale/C-measurement.c: Likewise.
3782         * locale/C-telephone.c: Likewise.
3783         * locale/C-address.c: Likewise.
3784         * locale/C-name.c: Likewise.
3785         * locale/C-paper.c: Likewise.
3786         * locale/C-time.c: Likewise.
3787         * locale/C-numeric.c: Likewise.
3788         * locale/C-monetary.c: Likewise.
3789         * locale/C-messages.c : Likewise.
3790         * locale/C-ctype.c: Likewise.
3792         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3793         use CHAR_BIT instead of BITSPERBYTE.
3795         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3796         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3797         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3798         (_nl_remove_locale): Likewise.
3799         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3801         * locale/findlocale.c (_nl_default_locale_path): New variable.
3802         (_nl_find_locale): If LOCALE_PATH is null, default to that.
3803         * locale/localeinfo.h: Declare it.
3804         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3805         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
3806         * locale/newlocale.c (__newlocale): Likewise.
3808         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3809         * inet/rexec.c (rexec_af): Add libc_hidden_def.
3810         * sysdeps/generic/morecore.c: Likewise.
3811         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3812         (__libc_current_sigrtmax): Likewise.
3814 2002-08-08  Roland McGrath  <roland@redhat.com>
3816         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3817         * catgets/open_catalog.c (__open_catalog): Likewise.
3819         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3820         from typo INITIAL_NUM_NANES.
3821         (create_archive): Update use.
3823 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3825         * sysdeps/unix/sysv/linux/sigwait.c: New file.
3827 2002-08-08  Roland McGrath  <roland@frob.com>
3829         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3831 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3833         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3834         else and undefine after including wcstol_l.c.
3835         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3837 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3839         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3841 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
3843         * configure.in: Make the test for broken_alias_attribute stricter.
3845 2002-05-24  Robert Love  <rml@tech9.net>
3847         * posix/Makefile (routines): Add sched_getaffinity and
3848         sched_setaffinity.
3849         * posix/sched.h: Add declarations for sched_getaffinity and
3850         sched_setaffinity.
3851         * sysdeps/generic/sched_getaffinity.c: New file.
3852         * sysdeps/generic/sched_setaffinity.c: New file.
3853         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3854         sched_setaffinity.
3856 2002-08-06  Andreas Schwab  <schwab@suse.de>
3858         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3860 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3862         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3863         message.
3865         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3866         It is known to be defined.
3868         * include/string.h: Define index and rindex only if _ISOMAC is not
3869         defined.
3871         * elf/rtld.c: Include <errno.h>.
3872         * sysdeps/generic/libc-tls.c: Likewise.
3874 2002-08-07  Roland McGrath  <roland@redhat.com>
3876         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3877         it internally.
3878         (precsize_aton): Likewise.
3880         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3881         the static symbols added in the last change (doofus is me).
3883         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3884         loop to notice missing categories in a composite name.
3886         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3887         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3888         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3889         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3891 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3893         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3895 2002-08-07  Roland McGrath  <roland@redhat.com>
3897         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3898         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3899         Reported by Jakub Jelinek  <jakub@redhat.com>.
3901 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
3903         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3904         division.
3906 2002-08-06  Roland McGrath  <roland@redhat.com>
3908         * include/getopt.h: Put private decls inside [_GETOPT_H].
3909         Use libc_hidden_proto for getopt_long, getopt_long_only.
3910         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3911         Add libc_hidden_def.
3913         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3914         Define as a macro for __dl_iterate_phdr.
3916         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3917         made static.  Add __ name as a strong alias.
3918         (internal_endnetgrent): Likewise.
3919         (internal_getnetgrent_r): Likewise.
3921         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3922         with no __ prefix.
3923         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3924         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3925         all *_l functions with no __ prefix.
3926         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3927         * ctype/ctype_l.c: Likewise.
3928         * locale/nl_langinfo.c: Likewise.
3929         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3930         * stdlib/stdlib.h [__USE_GNU]: Likewise.
3931         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3932         * wctype/wctype.h [__USE_GNU]: Likewise.
3933         * string/strcoll_l.c (strcoll_l): Define as weak alias.
3934         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3935         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3936         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3937         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3938         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3939         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3940         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3941         (__wcscasecmp_l): Add libc_hidden_def.
3942         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3943         (__wcsncasecmp_l): Add libc_hidden_def.
3944         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3945         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3946         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3947         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3948         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3949         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3950         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3951         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3952         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3953         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3954         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3955         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3956         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3957         * wctype/wctype_l.c (wctype_l) Define as weak alias.
3959 2002-08-05  Roland McGrath  <roland@redhat.com>
3961         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3962         netname2user, host2netname, user2netname, key_gendes.
3963         * sunrpc/netname.c: Add libc_hidden_def.
3964         * sunrpc/key_call.c: Likewise.
3966         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3967         freeaddrinfo.
3968         * inet/getnameinfo.c: Add libc_hidden_def.
3969         * sysdeps/generic/getaddrinfo.c: Likewise.
3970         * sysdeps/posix/getaddrinfo.c: Likewise.
3972         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3973         * wcsmbs/wmemchr.c: Add libc_hidden_def.
3974         * wcsmbs/wmemset.c: Add libc_hidden_def.
3976         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3977         (index, rindex): Define as macros for strchr, strrchr.
3979         * string/envz.c (envz_strip): index -> strchr
3981         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3982         * sunrpc/rpc_prot.c: Add libc_hidden_def.
3984         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3985         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3987         * include/stdlib.h: Use libc_hidden_proto for wctomb.
3988         * stdlib/wctomb.c: Add libc_hidden_def.
3990         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3991         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3992         * resolv/herror.c: Likewise.
3993         * inet/rcmd.c: Add libc_hidden_def.
3994         * inet/ruserpass.c: Likewise.
3995         * inet/getnetgrent_r.c: Likewise.
3997         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3998         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
3999         for svcerr_auth, svcerr_noprog, svcerr_progvers.
4000         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
4001         libc_hidden_def.
4002         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
4003         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
4005         * sysdeps/posix/system.c (do_system): New function, guts broken out of
4006         __libc_system.
4007         (__libc_system): Call it, putting just the line == NULL test here.
4009         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
4010         variables work right.
4012         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
4013         * elf/dl-close.c (_dl_close): Likewise.
4015         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
4016         in6addr_any, in6addr_loopback.  Remove decls for
4017         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
4018         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
4019         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
4020         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
4021         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
4022         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
4023         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
4024         in6addr_loopback.
4025         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
4027         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
4028         ether_aton_r.
4029         * inet/ether_aton_r.c: Add libc_hidden_def.
4030         * inet/ether_ntoa_r.c: Likewise.
4032         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
4033         xprt_unregister.
4034         * sunrpc/svc.c: Add libc_hidden_def.
4035         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
4036         pmap_set, pmap_unset.
4037         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
4038         * sunrpc/pm_getport.c: Likewise.
4039         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
4040         * sunrpc/publickey.c: Add libc_hidden_def.
4042 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
4044         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
4045         the other memset call in this function.
4047         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
4048         at correct index.  Clear BSS region now that memalign is used.
4050 2002-08-05  Roland McGrath  <roland@redhat.com>
4052         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
4053         * sysdeps/generic/uname.c: Add libc_hidden_def.
4054         * sysdeps/mach/hurd/uname.c: Likewise.
4056 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
4058         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
4059         wcspbrk): Add libc_hidden_proto.
4060         * time/strftime.c (my_strftime): Add libc_hidden_def.
4061         (strftime): Remove libc_hidden_def.
4062         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
4063         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
4064         * wcsmbs/wcsspn.c (wcsspn): Likewise.
4065         * wcsmbs/wcscmp.c (wcscmp): Likewise.
4066         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
4067         * wcsmbs/wcscoll.c (wcscoll): Likewise.
4069         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
4070         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
4071         __rpc_thread_createerr): Add libc_hidden_proto.
4072         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
4073         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
4074         __rpc_thread_createerr): Add libc_hidden_def.
4076         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
4077         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
4078         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
4079         clnt_perror, clnt_sperror): Add libc_hidden_def.
4080         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
4082         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
4083         libc_hidden_proto.
4084         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
4085         * sunrpc/des_soft.c (des_setparity): Likewise.
4087         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
4088         Add libc_hidden_proto.
4089         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
4090         Add libc_hidden_def.
4092 2002-08-05  Roland McGrath  <roland@redhat.com>
4094         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
4095         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
4096         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
4097         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
4098         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
4099         old data, abandoning the original memory allocated by rtld at startup,
4100         instead of calling realloc normally.
4102 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
4104         * po/fr.po: Update from translation team.
4106 2002-08-04  Roland McGrath  <roland@redhat.com>
4108         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
4109         then generate a dummy module under the given name, obeying the
4110         normal rules for the "caller" field.
4112         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
4113         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
4115         * include/pthread.h: Don't declare __pthread_initialize_minimal as
4116         weak here; we declare it weak or strong in the one place we use it.
4117         * sysdeps/generic/libc-start.c: ... which is here.
4118         Don't make the decl weak if [USE_TLS], since static programs need TLS
4119         setup even when single-threaded.
4121         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
4123         * elf/Makefile (test-srcs): Add $(modules-names) to it.
4124         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
4125         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
4126         all these variables.
4128 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
4130         * include/stdio.h: Don't define macro magic to redirect function
4131         calls if _ISOMAC is defined.
4133         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
4134         ldouble asin tests.
4136 2002-08-04  Roland McGrath  <roland@redhat.com>
4138         * stdlib/lrand48_r.c: Add libc_hidden_def.
4140         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
4141         TCB with __libc_memalign instead of mmap.
4142         (_dl_deallocate_tls): Free it with free instead of munmap.
4144         * Makerules (cpp-srcs-left): When setting this to run
4145         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
4146         words.  Combine the two loops into one on the concatenated list,
4147         including those as well as $(test-srcs).
4149         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
4150         since we align here with optimally minimal waste anyway.
4151         (malloc): Just call that.
4153         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
4154         the right variable.
4156         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
4157         to compute memory location for l_tls_initimage.
4158         * elf/rtld.c (_dl_start): Likewise.
4159         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
4161         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
4162         because the .d file is generated in the non-shared case and
4163         so fails to catch them otherwise.
4165         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
4166         split out of _dl_allocate_tls.
4167         (_dl_allocate_tls_init): Likewise.
4168         (_dl_allocate_tls): Call those.
4169         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
4170         * elf/rtld.c (dl_main): Call them separately instead of calling
4171         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
4172         is finished, so that the initializer data has been relocated before we
4173         copy it into the main thread's TLS block.
4175         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
4176         loop conditions, prevented the last used module from being initialized.
4178 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
4180         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
4181         if glob resp. globfree are not macros.
4182         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
4183         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
4184         Add libc_hidden_ver.
4185         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
4186         libc_hidden_def.
4187         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
4188         instead of libc_hidden_weak.
4189         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
4190         libc_hidden_ver instead of libc_hidden_def.
4191         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
4192         libc_hidden_ver instead of libc_hidden_def.
4193         (wcstoll, wcstoq): Remove libc_hidden_weak.
4194         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
4195         libc_hidden_ver.
4196         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
4197         libc_hidden_ver.
4198         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
4199         libc_hidden_ver.
4200         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
4201         libc_hidden_ver.
4203 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
4205         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
4206         to access _sys_siglist.
4207         * string/strsignal.c: Likewise.
4208         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
4209         * sysdeps/gnu/siglist.c: Likewise.
4210         * sysdeps/unix/siglist.c: Likewise.
4211         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
4213         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
4215         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
4217         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
4218         alias and use it.
4219         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
4221         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
4222         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
4223         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
4225         * include/time.h: Add libc_hidden_proto for __gmtime_r.
4226         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
4228         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
4229         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
4230         and __gconv_get_cache respectively.
4231         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
4232         defined static.  Change all users.
4233         (__gconv_get_cache): New function.
4234         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
4235         (__gconv_get_alias_db): New function.
4236         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
4237         (__conv_modules_db): Likewise.
4238         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
4239         and __gconv_get_alias_db.
4240         * iconv/iconv_prog.c: Use the new functions instead of accessing the
4241         variables.
4243         * include/stdlib.h: Add prototype and libc_hidden_proto for
4244         __default_morecore.
4245         * sysdeps/generic/morecore.c: Include <stdlib.h>.
4247         * malloc/obstack.c: Remove fputs macro.
4249         * malloc/mtrace.c: Remove fopen macro.
4251 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
4253         * manual/debug.texi: Fix spelling to programmatically.
4254         Reported by <hayastan132@hotmail.com>.
4256 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
4258         * include/libio.h: Add libc_hidden_proto for __uflow.
4259         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
4260         fgetpos to _IO_* names.
4261         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
4262         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
4263         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
4264         putwc_unlocked, vswscanf.
4265         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
4266         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
4267         * libio/fseek.c: Likewise.
4268         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
4269         not fopencookie.
4270         * libio/genops.c (__uflow): Add libc_hidden_def.
4271         * libio/iofflush_u.c (fflush_unlocked): Likewise.
4272         * libio/iofgets_u.c (fgets_unlocked): Likewise.
4273         * libio/iofputs_u.c (fputs_unlocked): Likewise.
4274         * libio/iofputws_u.c (fputws_unlocked): Likewise.
4275         * libio/iofread_u.c (fread_unlocked): Likewise.
4276         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
4277         * libio/iovswscanf.c (vswscanf): Likewise.
4278         * libio/putwc_u.c (putwc_unlocked): Likewise.
4279         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
4280         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
4281         * malloc/mtrace.c: Likewise.
4283         * sunrpc/clnt_perr.c: Remove fputs macro.
4284         * sunrpc/svc_simple.c: Likewise.
4285         * sunrpc/svc_tcp.c: Likewise.
4286         * sunrpc/svc_udp.c: Likewise.
4287         * sunrpc/xdr_rec.c: Likewise.
4288         * sunrpc/xdr_ref.c: Likewise.
4290         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
4291         iconv_prog, linereader, and charmap-dir.
4292         * locale/Makefile: Likewise for locale and charmap-dir.
4293         * malloc/Makefile: Likewise for memusagestat.
4294         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
4295         * sunrpc/Makefile: Likewise for rpc_main.
4296         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
4297         * timezone/Makefile: Likewise for zic.
4299         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
4301         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
4302         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
4303         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
4304         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
4305         _dl_close.
4307         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
4308         __wunderflow.
4309         * libio/genops.c (__underflow): Add libc_hidden_def.
4310         * libio/wgenops.c (__wuflow): Likewise.
4311         (__wunderflow): Likewise.
4313         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
4314         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
4316         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
4317         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
4319         * include/string.h: Add libc_hidden_proto for __strverscmp.
4320         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
4322         * include/unistd.h: Add libc_hidden_proto for __sysconf.
4323         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
4324         * sysdeps/posix/sysconf.c: Likewise.
4325         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
4326         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
4328         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
4329         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
4330         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
4331         __iswxdigit_l, __towlower_l, __towupper_l.
4332         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
4333         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
4335         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
4336         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
4337         * sysdeps/mach/hurd/xmknod.c: Likewise.
4338         * sysdeps/unix/xmknod.c: Likewise.
4339         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4340         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
4341         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4343         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
4345 2002-08-03  Roland McGrath  <roland@redhat.com>
4347         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
4348         setpriority.
4349         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
4350         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
4351         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
4352         * sysdeps/mach/hurd/setpriority.c: Likewise.
4353         * sysdeps/mach/hurd/getpriority.c: Likewise.
4354         * sysdeps/generic/setpriority.c: Likewise.
4355         * sysdeps/generic/getpriority.c: Likewise.
4357         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
4358         * malloc/mcheck.c: Add libc_hidden_def.
4360         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
4361         * misc/hsearch_r.c: Add libc_hidden_def.
4363         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
4364         * posix/fnmatch.c: Add libc_hidden_weak.
4366         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
4367         execl, execle, execlp, execvp, getpid, getsid.
4368         * sysdeps/generic/alarm.c: Add libc_hidden_def.
4369         * sysdeps/unix/alarm.c: Likewise.
4370         * posix/confstr.c: Likewise.
4371         * posix/execvp.c: Likewise.
4372         * posix/execlp.c: Likewise.
4373         * posix/execle.c: Likewise.
4374         * posix/execl.c: Likewise.
4375         * sysdeps/generic/getsid.c: Likewise.
4376         * sysdeps/mach/hurd/getsid.c: Likewise.
4377         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
4378         * sysdeps/mach/hurd/getpid.c: Likewise.
4380         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
4381         qecvt_r, qfcvt_r, lrand48_r.
4382         * misc/efgcvt_r.c: Add libc_hidden_def.
4384         * include/wordexp.h: Use libc_hidden_proto for wordfree.
4385         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
4387         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
4388         * locale/nl_langinfo.c: Add libc_hidden_def.
4390         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
4391         * sysdeps/generic/glob.c: Add libc_hidden_def.
4392         * sysdeps/generic/glob64.c: Likewise.
4393         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
4395         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
4397         * elf/Makefile (CFLAGS-vismod2.c): New variable.
4399         * locale/setlocale.c (_nl_current_names): Variable moved ...
4400         * locale/localename.c (_nl_current_names): ... here, new file.
4401         Make it global, with attribute_hidden.
4402         * locale/localeinfo.h: Declare it.
4403         * locale/Makefile (aux): Add localename.
4404         * locale/localename.c (__current_locale_name): New function.
4405         * include/locale.h (__current_locale_name): Declare it.
4406         * intl/dcigettext.c (guess_category_value): Use that instead of
4407         calling setlocale.
4409         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
4410         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
4411         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
4412         * locale/newlocale.c: Add alias to __ name.
4413         * locale/duplocale.c: Likewise.
4414         * locale/freelocale.c: Likewise.
4415         * locale/uselocale.c: New file.
4416         * locale/Makefile (routines): Add it.
4417         * locale/Versions (libc: GLIBC_2.3): New set.
4418         Add newlocale, duplocale, freelocale, uselocale.
4419         (libc: GLIBC_PRIVATE): Add __uselocale.
4421         * locale/localeinfo.h [SHARED]
4422         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
4423         (_NL_CURRENT_DATA): Define using that.
4424         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
4425         (_NL_CURRENT_DEFINE): Define to empty.
4426         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
4427         conditionalized on this.
4428         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
4429         taking initializer of _nl_C_locobj.
4430         [SHARED] (_nl_global_locale): New variable, using that initializer.
4431         (_nl_C_locobj): Use new macro for initialzier.
4432         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
4433         [! SHARED] (CATEGORY_USED): New macro.
4434         [SHARED] (CATEGORY_USED, _nl_C): New macros.
4435         (setdata, setlocale): Use that macro instead of examining _nl_current.
4436         (setdata): Set the slot in _nl_global_locale.
4437         Conditionalize setting of _nl_current on [! SHARED].
4438         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
4439         declaration as an extern.
4440         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
4442         * include/locale.h: Use libc_hidden_proto for setlocale.
4443         * locale/setlocale.c: Add libc_hidden_def.
4445         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
4447         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
4448         * misc/hsearch_r.c: Add libc_hidden_def.
4449         * misc/lsearch.c: Likewise.
4451         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
4452         endttyent.
4453         * misc/getttyent.c: Add libc_hidden_def.
4455         * include/mcheck.h: Use libc_hidden_proto for mcheck.
4456         * malloc/mcheck.c: Add libc_hidden_def.
4458         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
4459         * include/argz.h: Use libc_hidden_proto for argz_delete.
4460         * string/argz-delete.c: Add libc_hidden_def.
4461         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
4463         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
4464         HIDDEN_JUMPTARGET for _exit.
4465         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
4466         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
4467         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
4468         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
4470         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
4471         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
4472         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
4473         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
4475         * include/stdlib.h: Use libc_hidden_proto for abort,
4476         __strtof_internal, __strtod_internal, __strtold_internal,
4477         __strtol_internal, __strtoll_internal, __strtoul_internal,
4478         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
4479         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
4480         __strtoul_l_internal, __strtoull_l_internal.
4481         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
4482         __wcstod_internal, __wcstold_internal, __wcstol_internal,
4483         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
4484         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
4485         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
4486         __wcsncasecmp_l.
4487         * sysdeps/generic/abort.c: Add libc_hidden_def.
4488         * stdlib/strtod.c: Likewise.
4489         * sysdeps/generic/strtol.c: Likewise.
4490         * sysdeps/wordsize-64/strtol.c: Likewise.
4491         * sysdeps/wordsize-64/wcstol.c: Likewise.
4492         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
4494         * include/stdlib.h: Use libc_hidden_proto for qsort.
4495         * stdlib/msort.c: Add libc_hidden_def.
4497         * include/utime.h: Use libc_hidden_proto for utime.
4498         * sysdeps/generic/utime.c: Add libc_hidden_def.
4499         * sysdeps/unix/utime.c: Likewise.
4501         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
4502         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
4503         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
4504         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
4505         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
4507         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
4508         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
4509         and __libc_current_sigrtmax.
4510         * signal/sigismem.c: Add libc_hidden_def.
4511         * signal/sigfillset.c: Likewise.
4512         * signal/sigempty.c: Likewise.
4513         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
4514         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
4515         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
4516         * sysdeps/posix/raise.c: Likewise.
4517         * sysdeps/generic/raise.c: Likewise.
4519 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
4521         * include/string.h: Use libc_hidden_proto for __stpcpy.
4522         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
4523         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
4524         * sysdeps/generic/stpcpy.c: Likewise.
4525         * sysdeps/i386/stpcpy.S: Likewise.
4526         * sysdeps/i386/i586/stpcpy.S: Likewise.
4527         * sysdeps/powerpc/stpcpy.S: Likewise.
4528         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
4529         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
4531         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
4532         __strncasecmp_l, __strdup, __strndup, __strerror_r.
4533         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
4534         libc_hidden_def.
4535         * string/strdup.c (__strdup): Likewise.
4536         * string/strndup.c (__strndup): Likewise.
4537         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
4538         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
4540 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4542         * include/libio.h: New file.
4543         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
4544         * libio/iolibio.h: #include <libio.h>, not "libio.h".
4545         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
4546         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
4547         * sysdeps/unix/common/syscalls.list: Likewise.
4548         * sysdeps/unix/inet/syscalls.list: Likewise.
4549         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
4550         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
4551         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4552         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4553         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4554         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4555         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4556         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4557         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4558         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
4559         * sysdeps/unix/syscalls.list: Likewise.
4561 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4562             Ulrich Drepper  <drepper@redhat.com>
4564         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
4565         the arguments is big enough to cause an overflow.
4567 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
4569         * assert/assert.c: Use hidden_def not INTDEF.
4571 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4573         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
4574         not defined.
4576 2002-08-03  Roland McGrath  <roland@redhat.com>
4578         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
4579         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
4580         verr, verrx.
4581         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
4582         * misc/syslog.c: Add libc_hidden_def.
4583         * misc/err.c: Likewise.
4584         * stdlib/exit.c: Likewise.
4585         * stdlib/bsearch.c: Likewise.
4586         * sysdeps/generic/getenv.c: Likewise.
4588         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
4590         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
4591         libc_hidden_weak for every system call symbol defined.
4593         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
4594         timelocal, localtime, strftime.
4595         * time/asctime.c: Add libc_hidden_def.
4596         * time/mktime.c: Likewise.
4597         * time/localtime.c: Likewise.
4598         * time/strftime.c: Likewise.
4599         * time/strptime.c: Likewise.
4600         * sysdeps/generic/time.c: Likewise.
4601         * sysdeps/unix/time.c: Likewise.
4602         * sysdeps/unix/sysv/i386/time.S: Likewise.
4603         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
4605         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
4606         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
4607         * resolv/inet_ntop.c: Likewise.
4608         * resolv/inet_pton.c: Likewise.
4609         * inet/inet_mkadr.c: Add libc_hidden_def.
4610         * inet/inet_netof.c: Likewise.
4611         * resolv/inet_addr.c: Likewise.
4613         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
4614         clauses from conditionals for now.  Will have to be fixed later
4615         for older compilers.
4617         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
4619 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4621         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
4622         broken alias attribute handling.
4623         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
4625 2002-08-02  Roland McGrath  <roland@frob.com>
4627         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
4628         since it sets the variables we use in a -D switch.
4630 2002-08-02  Roland McGrath  <roland@redhat.com>
4632         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
4633         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
4634         matches long int, not int.
4636         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
4637         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
4638         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4639         * wctype/wctrans.c (wctrans): Likewise.
4640         * wctype/wctype.c (__wctype): Likewise.
4641         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
4643 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4645         * assert/assert.c (__assert_fail): Fix typo in comment.
4647         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
4648         * sunrpc/rpc_thread.c: Define it without static.
4649         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
4651 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4653         * assert/assert.c (__assert_fail): Remove undef.
4654         Replace INTDEF with libc_hidden_def.
4655         * assert/__assert.c (__assert): Remove INTUSE.
4656         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
4657         libc_hidden_weak.
4658         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
4659         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
4660         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
4661         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
4662         libm_hiden_ver): Define.
4663         * include/assert.h (__assert_fail_internal): Remove.
4664         (__assert_fail): Add prototype.  Add hidden_proto.
4665         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
4666         libc_hidden_proto.
4667         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
4668         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
4669         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
4670         Add libc_hidden_proto.
4671         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
4672         __fcntl): Add libc_hidden_proto.  Remove macros.
4673         (__open_internal, __fcntl_internal): Remove.
4674         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
4675         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
4676         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
4677         libc_hiden_proto.
4678         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
4679         libc_hidden_def.
4680         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
4681         Add libc_hidden_def.
4682         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
4683         * sysdeps/generic/open.c (__open): Remove undef.
4684         Add libc_hidden_def.  Remove INTDEF.
4685         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
4686         Add libc_hidden_def.
4687         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
4688         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
4689         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
4690         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4691         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4692         (__libc_fcntl): Add libc_hidden_def.
4693         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
4694         (__open): Remove INTDEF2.  Add libc_hidden_weak.
4695         (__libc_open): Add libc_hidden_def.
4696         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
4697         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
4698         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4699         Add libc_hidden_def.
4700         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
4701         Add libc_hidden_def.
4702         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
4703         undef.
4704         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4705         (__libc_fcntl): Add libc_hidden_def.
4706         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
4707         __getpgid_internal, __chown_internal): Remove.
4708         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
4709         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
4710         __GI___chown): Add.
4711         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
4712         __getpid_internal, __open_internal, __write_internal): Remove.
4713         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
4714         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
4715         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
4716         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
4717         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
4718         Replace INTDEF with libc_hidden_def.
4719         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
4720         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
4721         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
4722         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
4723         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
4724         Add libc_hidden_proto.
4725         * include/sys/poll.h (__poll): Add libc_hidden_proto.
4726         * include/sys/select.h (__select): Likewise.
4727         * include/sys/socket.h (__send): Likewise.
4728         * include/sys/statfs.h (__statfs): Likewise.
4729         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
4730         __getpid, __getpgid, __setpgid, __close, __read, __write,
4731         __getpagesize, __sbrk): Likewise.
4732         (__chown_internal, __dup2_internal, __getpid_internal,
4733         __getpgid_internal, __close_internal, __write_internal,
4734         __getpagesize_internal): Remove.
4735         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
4736         Remove macros.
4737         * include/printf.h (__printf_fp): Add libc_hidden_proto.
4738         * include/sched.h (__sched_setscheduler): Likewise.
4739         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
4740         * include/stdlib.h (__secure_getenv): Likewise.
4741         * include/signal.h (__sigaction, __sigsuspend): Likewise.
4742         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4743         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4744         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4745         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4746         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4747         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4748         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4749         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4750         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4751         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4752         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4753         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4754         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4755         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4756         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4757         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4758         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4759         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4760         * libio/genops.c (__overflow): Add libc_hidden_def.
4761         * libio/iovdprintf.c: Remove libio.h include.
4762         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4763         libc_hidden_weak): Define to nothing if not defined.
4764         (__overflow, __woverflow): Add libc_hidden_proto.
4765         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4766         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4767         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4768         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4769         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4770         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4771         and libc_hidden_def.
4772         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4773         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4774         (__getpgid): Add libc_hidden_proto.
4775         (__bsd_getpgrp): Remove INTUSE.
4776         * resolv/res_init.c (__res_ninit, __res_randomid): Add
4777         libc_hidden_def.
4778         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4779         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4780         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4781         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4782         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4783         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4784         __rpc_thread_createerr): Add libc_hidden_def.
4785         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4786         libc_hidden_def.
4787         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4788         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4789         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4790         * sysdeps/generic/chown.c (__chown): Likewise.
4791         * sysdeps/generic/close.c (__close): Likewise.
4792         * sysdeps/generic/dup2.c (__dup2): Likewise.
4793         * sysdeps/generic/pipe.c (__pipe): Likewise.
4794         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4795         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4796         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4797         * sysdeps/generic/read.c (__libc_read): Likewise.
4798         (__read): Add libc_hidden_weak.
4799         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4800         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4801         * sysdeps/generic/select.c (__select): Likewise.
4802         * sysdeps/generic/send.c (__send): Likewise.
4803         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4804         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4805         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4806         * sysdeps/generic/statfs.c (__statfs): Likewise.
4807         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4808         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4809         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4810         Remove undef and INTDEF.
4811         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4812         * sysdeps/generic/getpid.c (__getpid): Likewise.
4813         * sysdeps/generic/write.c (__libc_write): Likewise.
4814         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4815         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4816         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4817         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4818         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
4819         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4820         Remove undef and INTDEF.
4821         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4822         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4823         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4824         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4825         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4826         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4827         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4828         (__pipe): Add libc_hidden_def.
4829         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4830         libc_hidden_weak.
4831         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4832         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4833         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4834         (__read): Add libc_hidden_weak.
4835         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4836         (__libc_pwrite64): Add libc_hidden_def.
4837         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4838         * sysdeps/mach/hurd/select.c (__select): Likewise.
4839         * sysdeps/mach/hurd/send.c (__send): Likewise.
4840         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4841         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4842         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4843         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4844         * sysdeps/posix/dup2.c: Likewise.
4845         Remove undef and INTDEF.
4846         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4847         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4848         (__pwrite64): Add libc_hidden_weak.
4849         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4850         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4851         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4852         * sysdeps/standalone/close.c (__close): Likewise.
4853         * sysdeps/standalone/write.c (__libc_write): Likewise.
4854         (__write): Add libc_hidden_weak.
4855         * sysdeps/standalone/read.c (__read): Likewise.
4856         (__libc_read): Add libc_hidden_def.
4857         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4858         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4859         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4860         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4861         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4862         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4863         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4864         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4865         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4866         __GI___sigaction): Add.
4867         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4868         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4869         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4870         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4871         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4872         __GI___setpgid): Add.
4873         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4874         Remove undef and INTDEF.
4875         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4876         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4877         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4878         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4879         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4880         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4881         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4882         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4883         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4884         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4885         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4886         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4887         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4888         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4889         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4890         __GI___statfs, __GI___send): Add.
4891         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4892         libc_hidden_ver resp. libc_hidden_def.
4893         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4894         libc_hidden_def.
4895         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4896         Likewise.  Remove undef and INTDEF.
4897         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4898         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4899         __GI___statfs, __GI___send): Add.
4900         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4901         libc_hidden_def.
4902         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4903         Likewise.
4904         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4905         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4906         libc_hidden_ver resp. libc_hidden_def.
4907         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4908         __GI___send): Add.
4909         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4910         Add libc_hidden_weak.
4911         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4912         Add libc_hidden_def.
4913         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4914         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4915         libc_hidden_weak.
4916         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4917         resp. libc_hidden_def.
4918         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4919         libc_hidden_weak.
4920         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
4921         INTDEF.
4922         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4923         Likewise.  Remove undef.
4924         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4925         libc_hidden_weak.
4926         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4927         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4928         libc_hidden_weak.
4929         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4930         libc_hidden_def.
4931         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4932         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4933         Likewise.  Remove undef and INTDEF.
4934         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4935         libc_hidden_def.
4936         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4937         libc_hidden_weak.
4938         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4939         libc_hidden_def.
4940         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4941         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4942         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4943         libc_hidden_weak.
4944         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4945         Add libc_hidden_def.
4946         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4947         __GI___statfs): Add.
4948         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4949         libc_hidden_weak.
4950         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4951         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4952         Remove undef and INTDEF.
4953         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4954         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4955         libc_hidden_def.
4956         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4957         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4958         libc_hidden_weak.
4959         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4960         libc_hidden_def.
4961         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4962         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4963         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4964         Add.
4965         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4966         libc_hidden_def.  Remove undef and INTDEF.
4967         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4968         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4969         libc_hidden_def.
4970         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4971         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4972         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4973         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4974         Remove undef and INTDEF.
4975         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4976         broken visibility attribute handling.
4977         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4979 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4981         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4982         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4984         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4985         previous patch.
4987 2002-06-29  Todd Fries  <todd@openbsd.org>
4989         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4991 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4993         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4995 2002-07-30  Roland McGrath  <roland@redhat.com>
4997         * resolv/resolv.h (_res): Define macro unconditionally.
4998         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4999         * include/resolv.h: ... here.
5000         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
5001         as a __thread variable.
5002         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
5003         a __thread variable instead of a global.
5004         * resolv/res_data.c [_LIBC]: Don't #undef _res.
5006         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
5007         time we test it.
5009         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
5011         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
5012         decls of memset and memcpy.
5014         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
5015         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
5017         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
5019         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
5020         (__libc_tsd_define): Define using __thread.
5022         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
5023         (__rpc_thread_variables): Use __libc_tsd_get.
5024         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
5025         __rpc_thread_variables, which might allocate what we're about to free.
5027         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
5028         thread-local variable.
5029         * resolv/netdb.h (h_errno): Define macro unconditionally.
5030         [_LIBC] (__set_h_errno): Macro moved to ...
5031         * include/netdb.h: ... here.
5032         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
5033         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
5034         [! _LIBC_REENTRANT]: #undef h_errno here.
5036         * include/errno.h: Protect from multiple inclusion.
5038         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
5039         before defining them, since Linux's <linux/posix_types.h> might have
5040         defined them.
5042 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
5044         * malloc/malloc.c (public_cALLOc): Check for overflow on
5045         multiplication.
5046         * sunrpc/xdr_array.c (xdr_array): Likewise.
5047         * sunrpc/rpc/types.h (mem_free): Add comment.
5048         Patch by Solar Designer <solar@openwall.com>.
5050 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
5052         * sysdeps/unix/sysv/linux/kernel-features.h
5053         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
5055 2002-08-01  Roland McGrath  <roland@redhat.com>
5057         * libio/fileops.c (_IO_file_sync_mmap): New function.
5058         (_IO_file_jumps_mmap): Use it.
5059         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
5060         repeat the stat check and resize the mapped buffer as necessary.
5062 2002-07-31  Roland McGrath  <roland@redhat.com>
5064         * libio/fileops.c (decide_maybe_mmap): New static function.
5065         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
5066         mmap the file contents.  Then switch the jump tables to the mmap
5067         tables if it worked, or the vanilla file tables if not.
5068         (_IO_file_underflow_maybe_mmap): New function.
5069         (_IO_file_seekoff_maybe_mmap): New function.
5070         (_IO_file_xsgetn_maybe_mmap): New function.
5071         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
5072         * libio/libioP.h: Declare those.
5073         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
5074         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
5075         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
5076         If the stream is read-only, set its jump tables to those new ones.
5077         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
5078         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
5079         We need the tables set before _IO_file_attach.
5081         * libio/tst-mmap-eofsync.c: New file.
5082         * libio/tst-mmap-fflushsync.c: New file.
5083         * libio/bug-mmap-fflush.c: New file.
5084         * libio/tst-mmap2-eofsync.c: New file.
5085         * libio/Makefile (tests): Add them.
5087         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
5088         _IO_file_underflow_mmap fails, it already set the appropriate bit.
5090 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
5092         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
5093         Declarations moved to <bits/sys_errlist.h>.  Include that file.
5094         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
5095         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
5096         declare sys_errlist and sys_nerr.
5097         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
5098         provide declarations.
5100 2002-07-31  Roland McGrath  <roland@redhat.com>
5102         * elf/rtld.c (dl_main): Fix typo in error message.
5104 2002-07-31  Roland McGrath  <roland@frob.com>
5106         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
5107         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
5108         sysdeps/mach/hurd/dl-sysdep.c change.
5110 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
5112         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
5113         -r`/build/include for kernel headers.
5115         * po/fi.po: New file.
5117 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
5119         * configure.in (static_nss): Set to `yes' if --disable-shared.
5121 2002-07-23  Bruno Haible  <bruno@clisp.org>
5123         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
5124         is set.
5126 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
5128         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
5129         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
5130         arguments.
5132 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
5134         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
5135         alias.
5137 2002-07-21  Bruno Haible  <bruno@clisp.org>
5139         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
5140         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
5141         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
5142         trans_sysdep_tab_offset.
5143         (struct sysdep_segment): New type.
5144         (struct sysdep_string): New type.
5145         (SEGMENTS_END): New macro.
5146         * intl/gettextP.h (struct sysdep_string_desc): New type.
5147         (struct loaded_domain): New fields malloced, n_sysdep_strings,
5148         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
5149         orig_tab, trans_tab, hash_tab to const pointers because they point
5150         into read-only memory.
5151         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
5152         (PRI*): Define fallback values.
5153         (get_sysdep_segment_value): New function.
5154         (_nl_load_domain): Distinguish major and minor revision parts. Add
5155         support for minor revision 1 with system dependent strings.
5156         (_nl_unload_domain): Also free the 'malloced' field.
5157         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
5158         now done in loadmsgcat.c. Add support for system dependent strings.
5160 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
5162         * posix/bug-regex7.c: New file.
5163         * posix/bug-regex8.c: New file.
5164         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
5166 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
5168         * posix/bug-regex4.c (main): Fix typos.
5169         * posix/bug-regex6.c (main): Likewise.
5171 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
5173         * posix/bug-regex6.c (main): Fix warnings.
5175         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
5177         * iconv/iconv_prog.c (main): Improve error message for the cases
5178         where -t and/or -f parameter are missing.
5180 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
5182         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
5183         (re_search): Likewise.
5184         (re_match_2): Likewise.
5185         (re_search_2): Likewise.
5186         (re_search_stub): New function.
5187         (re_search_2_stub): New function.
5188         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
5190 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
5192         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
5193         (re_string_eoi): Use STOP instead of LEN.
5194         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
5195         (re_string_construct): Likewise.
5196         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
5197         * posix/regexec.c (re_search_internal): Add a new argument STOP
5198         so that it can handle the argument STOP of re_search_2 and re_match_2
5199         correctly.
5200         (regexec): Adapt to new I/F of re_search_internal.
5201         (re_search_stub): Likewise.
5203 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
5205         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
5207         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
5209         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
5210         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
5211         of __divdi3.
5213         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
5214         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
5215         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
5216         alias for adjtimex syscall.
5218         * elf/dl-minimal.c: Define __assert_fail_internal.
5219         * assert/assert.c: Likewise.
5220         * include/assert.h: Define __assert_file macro if !SHARED and not
5221         NOT_IN_libc.
5223         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
5224         programs.
5225         * locale/Makefile: Likewise.
5226         * nscd/Makefile: Likewise.
5227         * catgets/Makefile: Likewise.
5229 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5231         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
5232         compute current position.
5234         * stdio-common/tst-fseek.c (main): Improve error messages.
5236         * libio/tst-freopen.c (main): Remove unused variable.
5238         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
5239         succesful seek call.  Simplify error checking.
5241 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
5243         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
5244         * sysdeps/ia64/fpu/libm_support.h: Likewise.
5246 2002-07-19  Roland McGrath  <roland@frob.com>
5248         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
5249         __libc_enable_secure is set.
5251 2002-07-24  Roland McGrath  <roland@frob.com>
5253         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
5254         This implementation supports only IPv4.
5255         * inet/ifaddrs.h: New file.
5256         * sysdeps/generic/ifaddrs.c: New file.
5257         * sysdeps/gnu/ifaddrs.c: New file.
5258         * inet/test-ifaddrs.c: New file.
5259         * inet/Makefile (routines): Add ifaddrs.
5260         (headers): Add ifaddrs.h here.
5261         (tests): Add test-ifaddrs.
5262         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
5264         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
5265         socket call to get an AF_INET socket, instead of using __opensock.
5266         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
5268         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
5269         if not -1 use it instead of calling __opensock.
5270         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
5271         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
5272         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
5274         * sysdeps/mach/hurd/ifreq.h: New file.
5275         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
5276         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
5277         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
5279         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
5280         which gets moved around.  Calculate size of mmap'd buffer instead.
5282 2002-07-24  Philip Blundell  <philb@gnu.org>
5284         * sysdeps/unix/arm/brk.S: Improve schedule.
5285         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
5286         efficient instruction.
5287         (__socket): Optimize return sequence.
5289 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5291         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
5292         sockets on old kernels.
5294 2002-07-22  Philip Blundell  <philb@gnu.org>
5296         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
5297         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
5298         alias.
5300 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5302         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
5303         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
5305         * locale/programs/locarchive.c (add_locale_to_archive): Correct
5306         test to detect duplicate locales.
5308         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
5309         position would be before beginning of file.
5310         (_IO_file_seekoff_mmap): Likewise.
5311         * libio/Makefile (tests): Add bug-fseek.
5312         * libio/bug-fseek.c: New file.
5314         * intl/explodename.c: Remove support for CEN-style locale variables.
5315         It was never used and shouldn't be since it's not portable.
5316         * intl/finddomain.c: Likewise.
5317         * intl/l10nflist.c: Likewise.
5318         * intl/loadinfo.h: Likewise.
5319         * locale/findlocale.c: Likewise.
5321 2002-07-24  Roland McGrath  <roland@frob.com>
5323         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
5324         position, calculate it to take into account an active pushback buffer.
5326         * libio/Makefile (tests): Add bug-ungetc.
5327         * libio/bug-ungetc.c: New file.
5329 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
5331         * sysdeps/generic/libc-tls.c: New file.
5332         * csu/Makefile (routines): Add libc-tls.
5333         (static-only-routines): Add libc-tls.
5334         * elf/dl-support.c (_dl_phdr): New variable.
5335         (_dl_phnum): New variable.
5336         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
5337         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
5338         for !SHARED.  First look through auxiliary vector.  If TLS always
5339         call __pthread_initialize_minimal.
5341         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
5342         in mmap call is never zero.
5344 2002-07-23  Andreas Jaeger  <aj@suse.de>
5346         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
5347         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
5349 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
5351         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
5352         creation and removal of the temp file.
5354         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
5355         file creation.
5356         * test-skeleton.c (create_temp_file): New function.
5358 2002-07-22  Andreas Jaeger  <aj@suse.de>
5360         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
5361         local label.
5363 2002-07-21  Roland McGrath  <roland@frob.com>
5365         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
5366         put -I../include before -I../stdlib so we get the right errno.h et al.
5367         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
5368         (CFLAGS-wcstof.c): Likewise.
5369         (CFLAGS-wcstold.c): Likewise.
5370         (CFLAGS-wcstod_l.c): Likewise.
5371         (CFLAGS-wcstof_l.c): Likewise.
5372         (CFLAGS-wcstold_l.c): Likewise.
5374 2002-07-19  Roland McGrath  <roland@frob.com>
5376         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
5378 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
5380         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
5381         __ASSUME_AT_XID is defined.
5382         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
5383         for 2.4.1 and up.
5384         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
5385         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
5387         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
5388         (CFLAGS-wcstof.c): Likewise.
5389         (CFLAGS-wcstold.c): Likewise.
5390         (CFLAGS-wcstod_l.c): Likewise.
5391         (CFLAGS-wcstof_l.c): Likewise.
5392         (CFLAGS-wcstold_l.c): Likewise.
5394 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
5396         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
5397         __priority_which_t): Always typedef to int for C++.
5399 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
5401         * configure.in: Add test for __thread support in compiler.
5402         * config.h.in: Add HAVE___THREAD.
5403         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
5404         * include/sys/errno.h: Moved to...
5405         * stdlib/sys/errno.h: ...here.  New file.
5406         * stdlib/errno.h: New file.  Moved from...
5407         * include/errno.h: ...here.  Changed into an internal header defining
5408         libc-local things like __set_errno.
5409         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
5410         bits/errno.h.
5411         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
5412         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
5413         either.
5414         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
5415         from...
5416         (_dl_start_final): ...here.  Add code to initialize tls elements from
5417         bootstrap_map.
5418         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
5419         if USE_TLS && HAVE___THREAD.
5420         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
5421         * sysdeps/mach/hurd/bits/errno.h: Likewise.
5422         * sysdeps/standalone/arm/bits/errno.h: Likewise.
5423         * sysdeps/standalone/bits/errno.h: Likewise.
5424         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
5425         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
5426         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
5427         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
5428         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
5429         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
5430         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
5431         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
5432         use GL(dl_rtld_map), use map parameter.
5433         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
5434         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
5435         USE_TLS && HAVE___THREAD.
5436         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
5437         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
5438         TLS code sequence.
5439         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5441         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
5442         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
5443         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
5444         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
5445         * sysdeps/unix/sysv/linux/readv.c: Likewise.
5446         * sysdeps/unix/sysv/linux/writev.c: Likewise.
5448 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
5450         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
5451         MS_INVALIDATE values.
5453 2002-07-17  Andreas Schwab  <schwab@suse.de>
5454             Ulrich Drepper  <drepper@redhat.com>
5456         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
5457         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5458         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5459         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5461 2002-07-01  H.J. Lu  <hjl@gnu.org>
5463         * elf/circleload1.c (load_dso): Call "circlemod1" and check
5464         return value.
5466         * elf/circlemod1.c (circlemod1): Return int.
5467         * elf/circlemod2.c (circlemod2): Likewise.
5468         * elf/circlemod2a.c (circlemod2): Likewise.
5469         * elf/circlemod3.c (circlemod3): Likewise.
5470         (circlemod3a): A new function.
5472 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
5474         * catgets/tst-catgets.c (main): Don't expect results for
5475         untranslated messages.
5477         * glibcbug.in: Fix little typo.  Remove STDIO.
5479         * config.h.in: Fail if __FAST_MATH__ is defined.
5480         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
5481         (CPPFLAGS-test-idouble.c): Likewise.
5482         (CPPFLAGS-test-ildouble.c): Likewise.
5484 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
5486         * intl/tst-gettext.sh: Pass -f option to msgfmt.
5487         * intl/tst-gettext.c: Correctly handle untranslated messages in
5488         positive tests.
5490         * po/de.po: Update from translation team.
5492 2002-07-02  H.J. Lu  <hjl@gnu.org>
5494         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
5495         use ll/sc.
5496         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
5498         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
5499         to 2.4.0 for mips.
5501 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
5503         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
5504         TLS fail if USE_TLS is not defined.
5506         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
5507         and adjust state for seek position.  [PR libc/4070]
5508         * libio/Makefile (tests): Add bug-rewind.
5509         * libio/bug-rewind.c: New file.
5511 2002-07-12  Philip Blundell  <philb@gnu.org>
5513         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
5514         (__backtrace): Use it.
5515         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
5517 2002-07-12  Philip Blundell  <philb@gnu.org>
5519         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
5520         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
5521         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
5522         (elf_machine_rela): Remove unused variable.
5524         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
5525         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
5526         define.
5528 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
5530         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
5532 2002-07-14  Andreas Jaeger  <aj@suse.de>
5534         * sysdeps/x86_64/bits/link.h: Add biarch support.
5536 2002-07-13  Andreas Jaeger  <aj@suse.de>
5538         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
5539         Use correct indices.
5540         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
5542 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5544         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
5545         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
5546         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
5547         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
5548         * sysdeps/s390/s390-32/bits/link.h: Remove.
5549         * sysdeps/s390/s390-64/bits/link.h: Remove.
5550         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
5551         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
5552         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
5553         * sysdeps/s390/bits/wordsize.h: New file.
5554         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
5555         elfclass.h.
5556         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
5557         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
5558         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
5559         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
5560         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
5561         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
5562         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
5563         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
5564         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
5565         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
5566         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
5567         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
5568         resource.h.
5569         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
5570         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
5571         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
5572         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
5573         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
5574         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
5575         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
5576         sigaction.h.
5577         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
5578         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
5579         siginfo.h.
5580         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
5581         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
5582         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
5583         socket.h.
5584         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
5585         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
5586         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
5587         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
5588         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
5589         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
5590         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
5591         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
5592         procfs.h.
5593         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
5594         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
5595         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
5596         ucontext.h.
5597         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
5598         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
5600 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
5602         * Versions.def (libc): Add GLIBC_2.3.
5603         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
5604         * stdlib/canonicalize.c: Add compatibility version for realpath
5605         and make new code available in GLIBC_2.3.
5607 2002-07-06  Bruno Haible  <bruno@clisp.org>
5609         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
5611 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
5613         * resolv/res_hconf.c (_res_hconf_init): Move code into new
5614         function do_init.  Use __libc_once.
5615         (do_init): New function.
5617         * iconvdata/iso8859-11.h: Removed.
5618         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
5619         (distribute): Remove iso8859-11.h.
5620         * iconvdata/tst-tables.sh: Add ISO-8859-11.
5622         * stdio-common/vfscanf.c (inchar): Restore errno from previous
5623         underflow operation if c == (W)EOF.
5625 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5627         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
5628         non-zero, adjust exponent.
5629         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
5630         Remove NO_LONG_DOUBLE aliases.
5631         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
5632         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
5633         (__log1pl): Raise divide by zero and invalid exceptions when needed.
5634         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
5635         1**y and -1**+-Inf.
5636         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
5637         Fix BITS_PER_MP_LIMB 32 extraction.
5638         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
5639         exceptions for qNaNs.
5640         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
5641         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
5642         Raise exceptions when needed.  Don't recurse unnecessarily.
5643         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
5644         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
5645         exceptions for qNaNs.
5646         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
5647         to fix *quo return value sign.
5648         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
5649         case -Inf argument.
5650         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
5652 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5654         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
5655         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
5656         -DNDEBUG.
5658 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5660         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
5661         the result.
5663         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
5664         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
5666         * Versions.def (libthread_db): Add GLIBC_2.3.
5668 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
5670         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
5671         new stream if possible.
5672         * libio/freopen64.c (freopen64): Likewise.
5673         * libio/Makefile (tests): Add tst-freopen.
5674         * libio/tst-freopen.c: New file.
5676 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5678         * libio/stdio.h (obstack_printf): Add format attribute.
5679         (obstack_vprintf): Likewise.
5681 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5683         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
5684         resp. 16 bytes on 32-bit resp. 64-bit platforms.
5685         (re_charset_t, re_string_t): Reorder structure members for 64-bit
5686         architectures.
5688 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5690         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
5691         (init_dfa): ...here.
5693 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5695         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
5696         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
5697         nodes in parse trees.
5698         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
5699         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
5700         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
5701         nodes which can epsilon transit.
5702         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
5703         to IS_EPSILON_NODE macro.
5704         * posix/regexec.c (update_regs): New function to update registers
5705         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
5706         (proceed_next_node): Use the entities of the nodes to determine
5707         whether the node can transit to.
5708         (set_regs): Use update_regs function to update registers.
5710 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5712         * posix/bug-regex4.c (main): Remove duplicate setlocale.
5713         * posix/bug-regex6.c: New file.
5714         * posix/Makefile (tests): Add bug-regex6.
5715         (bug-regex6-ENV): Set LOCPATH.
5717 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5719         * Versions.def [libpthread]: Add GLIBC_2.2.6.
5720         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
5722 2002-07-06  Bruno Haible  <bruno@clisp.org>
5724         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
5726 2002-07-06  Bruno Haible  <bruno@clisp.org>
5728         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
5729         declarations.
5731         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
5733         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
5735         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
5736         not _UTSNAME_H.
5737         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
5739         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
5740         * sysdeps/generic/bits/ustat.h: Likewise.
5742         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5744 2002-07-08  Andreas Jaeger  <aj@suse.de>
5746         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5748 2002-07-08  Andreas Jaeger  <aj@suse.de>
5750         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5752 2002-07-06  Andreas Jaeger  <aj@suse.de>
5754         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5755         * sysdeps/x86_64/fpu/s_copysign.S: New file.
5756         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5757         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5758         * sysdeps/x86_64/fpu/s_finitel.S: New file.
5759         * sysdeps/x86_64/fpu/s_fmax.S: New file.
5760         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5761         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5762         * sysdeps/x86_64/fpu/s_fmin.S: New file.
5763         * sysdeps/x86_64/fpu/s_fminf.S: New file.
5764         * sysdeps/x86_64/fpu/s_fminl.S: New file.
5766 2002-06-05  Brian Youmans <3diff@gnu.org>
5768         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5769         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5770         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5771         * sysdeps/ia64/fpu/e_asin.S: Likewise.
5772         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5773         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5774         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5775         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5776         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5777         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5778         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5779         * sysdeps/ia64/fpu/e_exp.S: Likewise.
5780         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5781         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5782         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5783         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5784         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5785         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5786         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5787         * sysdeps/ia64/fpu/e_log.S: Likewise.
5788         * sysdeps/ia64/fpu/e_logf.S: Likewise.
5789         * sysdeps/ia64/fpu/e_pow.S: Likewise.
5790         * sysdeps/ia64/fpu/e_powf.S: Likewise.
5791         * sysdeps/ia64/fpu/e_powl.S: Likewise.
5792         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5793         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5794         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5795         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5796         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5797         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5798         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5799         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5800         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5801         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5802         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5803         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5804         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5805         * sysdeps/ia64/fpu/libm_error.c: Likewise.
5806         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5807         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5808         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5809         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5810         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5811         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5812         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5813         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5814         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5815         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5816         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5817         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5818         * sysdeps/ia64/fpu/s_logb.S: Likewise.
5819         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5820         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5821         * sysdeps/ia64/fpu/s_modf.S: Likewise.
5822         * sysdeps/ia64/fpu/s_modff.S: Likewise.
5823         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5824         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5825         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5826         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5827         * sysdeps/ia64/fpu/s_rint.S: Likewise.
5828         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5829         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5830         * sysdeps/ia64/fpu/s_round.S: Likewise.
5831         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5832         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5833         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5834         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5835         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5836         * sysdeps/ia64/fpu/s_significand.S: Likewise.
5837         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5838         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5839         * sysdeps/ia64/fpu/s_tan.S: Likewise.
5840         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5841         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5842         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5843         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5844         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5845         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5846         reflect IBM donation of math library to FSF
5847         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5848         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5849         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5850         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5851         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5852         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5853         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5854         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5855         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5856         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5857         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5858         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5859         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5860         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5861         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5862         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5863         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5864         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5865         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5866         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5867         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5868         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5869         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5870         * sysdeps/vax/__longjmp.c: Likewise.
5871         * sysdeps/vax/setjmp.c: Likewise.
5872         * libio/filedoalloc.c: Fixed BSD copying permission notice to
5873         remove advertising clause
5874         * sysdeps/vax/htonl.s: Likewise.
5875         * sysdeps/vax/htons.s: Likewise.
5876         * libio/wfiledoalloc.c: Likewise.
5877         * stdlib/random.c: Likewise.
5878         * stdlib/random_r.c: Likewise.
5879         * sysdeps/mach/sys/reboot.h: Likewise.
5880         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5881         * sysdeps/posix/getaddrinfo.c: Likewise.
5882         * sunrpc/des_impl.c: Updated license permission notice to Lesser
5883         GPL and corrected pointer to point to the correct license.
5885 2002-07-04  Andreas Jaeger  <aj@suse.de>
5887         * scripts/config.guess: New upstream version.
5888         * scripts/config.sub: Likewise.
5890 2002-07-02  Andreas Schwab  <schwab@suse.de>
5892         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5893         in parallel to bumping up the buffer pointer.
5895 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5897         * math/libm-test.inc (acos_test): Add missing L suffix for
5898         expected result.
5899         (cpow_test): Likewise.
5900         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5901         error for acos (0.0625).
5903 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5905         * locale/iso-639.def: Add entry for Ganda.
5906         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5907         definition.
5908         (address_finish): Handle entries with two letter ISO 639 code.
5910         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5911         directory if it existed before.
5912         * iconv/iconvconfig.c: Implement --prefix option.
5914         * math/libm-test.inc (cexp_test): Add missing L suffix for
5915         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
5916         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5917         1.25 i).
5919 2002-05-29  H.J. Lu  <hjl@gnu.org>
5921         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5922         is turned on.
5924 2002-05-28  H.J. Lu  <hjl@gnu.org>
5926         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5927         are not dlopened on the dependency list of a dlopened object.
5929 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5931         * elf/dl-lookup.c (add_dependency): It is not necessary to add
5932         dependencies if they are created between objects which are created
5933         while processing RTLD_NOW for objects loaded as part of the same
5934         dlopen call.
5936 2002-06-14  H.J. Lu  <hjl@gnu.org>
5938         * elf/Makefile (tests): Add circleload1.
5939         (modules-names): Add circlemod1, circlemod2, circlemod3,
5940         circlemod1a, circlemod2a and circlemod3a.
5941         ($(objpfx)circleload1): New target.
5942         ($(objpfx)circleload1.out): Likewise.
5943         ($(objpfx)circlemod1.so): Likewise.
5944         ($(objpfx)circlemod2.so): Likewise.
5945         ($(objpfx)circlemod1a.so): Likewise.
5946         ($(objpfx)circlemod2a.so): Likewise.
5947         * elf/circleload1.c: New file.
5948         * elf/circlemod1.c: New file.
5949         * elf/circlemod1a.c: New file.
5950         * elf/circlemod2.c: New file.
5951         * elf/circlemod2a.c: New file.
5952         * elf/circlemod3.c: New file.
5953         * elf/circlemod3a.c: New file.
5955 2002-06-18  Amos Waterland  <apw@us.ibm.com>
5957         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5958         file descriptor.
5959         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5960         add check for fd not open for writing.
5962         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5963         completed element(s) and do not suspend thread if so.  Patch
5964         heavily modified by drepper.
5966         * rt/tst-aio7.c: New file.  Regression test for problems which the
5967         above three changes fix.
5968         * rt/Makefile (tests): Add tst-aio7.
5970 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
5972         * rt/tst-aio6.c: Fix comment.
5974         * catgets/gencat.c (read_input_file): Handle more than one slash
5975         at end of line correctly [PR libc/3926].
5976         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5978         * catgets/sample.SJIS: Add test case for above bug.
5979         * catgets/test-gencat.c: Adjust test code.
5980         * catgets/test-gencat.sh: Adjust expected results.
5982         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5983         to skip relative relocations.
5984         Patch by Geoff Keating <geoffk@redhat.com>.
5986 2002-05-26  Bruno Haible  <bruno@clisp.org>
5988         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5989         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5990         All callers changed.
5991         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5992         STANDARD_FROM_LOOP_ERR_HANDLER.
5993         (utf8_internal_loop): Likewise.
5994         (ucs2_internal_loop): Likewise.
5995         (internal_ucs2_loop): Perform error handling like in
5996         STANDARD_FROM_LOOP_ERR_HANDLER.
5997         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5998         in STANDARD_FROM_LOOP_ERR_HANDLER.
5999         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
6000         handling.
6001         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
6002         in STANDARD_FROM_LOOP_ERR_HANDLER.
6003         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
6004         handling.
6005         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
6006         in STANDARD_FROM_LOOP_ERR_HANDLER.
6007         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
6008         handling.
6009         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
6010         STANDARD_FROM_LOOP_ERR_HANDLER.
6011         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
6012         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
6013         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
6014         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
6015         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
6016         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
6017         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
6018         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
6019         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
6020         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
6021         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
6022         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
6023         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
6024         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
6025         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
6026         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
6027         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
6028         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
6029         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
6030         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
6031         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
6032         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
6033         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
6034         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
6035         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
6036         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
6037         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
6038         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
6039         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
6040         an error, still set result = __GCONV_ILLEGAL_INPUT.
6041         (BODY for TO_LOOP): Likewise.
6042         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
6043         STANDARD_FROM_LOOP_ERR_HANDLER.
6044         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6045         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
6046         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
6047         handling.
6048         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6049         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
6050         STANDARD_FROM_LOOP_ERR_HANDLER.
6051         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6052         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
6053         STANDARD_FROM_LOOP_ERR_HANDLER.
6054         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6055         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
6056         STANDARD_FROM_LOOP_ERR_HANDLER.
6057         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6058         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
6059         STANDARD_FROM_LOOP_ERR_HANDLER.
6060         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6061         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
6062         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
6063         handling.
6064         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6065         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
6066         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
6067         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
6069 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6071         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
6072         labels in assembler instructions.
6074 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
6076         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
6077         not enough content is available.
6078         * libio/tst-eof.c: New file.
6079         * libio/Makefile (tests): Add tst-eof.
6081         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
6082         update atime.
6083         * libio/tst-atime.c: New file.
6084         * libio/Makefile (tests): Add tst-atime.
6086         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
6087         handling of overly long words.
6089 2002-06-25  Andreas Jaeger  <aj@suse.de>
6091         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
6092         to not use 32-bit pc relative relocations.
6093         (elf_machine_dynamic): Likewise.
6095 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
6097         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
6098         (__GETDENTS): Check for failed getdents64 syscall.
6099         * dirent/Makefile (tests): Add bug-readdir1.
6100         * dirent/bug-readdir1.c: New file.
6102 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
6104         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
6105         lookups.
6106         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
6107         code.  Print TLS modid and offset for modules containing PT_TLS
6108         segments.
6110 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
6112         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
6113         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
6114         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
6115         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
6117 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
6119         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
6120         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
6121         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
6122         * nss/getXXent_r.c (NEW, NEW1): Define.
6123         (NEW (REENTRANT_GETNAME)): Strong alias to
6124         INTERNAL (REENTRANT_GETNAME).
6125         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
6127 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
6129         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
6130         (_IO_file_jumps_mmap): Use it.
6131         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
6132         * libio/libioP.h: Remove _IO_wdefault_setbuf and
6133         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
6134         prototype.
6135         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
6136         (_IO_wfile_jumps_mmap): Don't use it anymore.
6137         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
6138         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
6139         _IO_wdefault_setbuf.
6140         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
6141         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
6142         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
6144 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
6146         * libio/Makefile (tests): Add tst-mmap-setvbuf.
6147         * libio/tst-mmap-setvbuf.c: New test.
6149 2002-06-21  Andreas Jaeger  <aj@suse.de>
6151         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
6153 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
6155         * include/unistd.h (__fork_internal): Remove.
6156         (__fork): Don't define to __fork_internal.
6157         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
6158         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
6159         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
6160         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
6161         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
6163 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
6165         * po/hr.po: New file.
6167 2002-06-11  Wolfram Gloger  <wg@malloc.de>
6169         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
6170         Reported by Michael Meissner <meissner@redhat.com>.
6172 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
6174         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
6175         Patch by Hans Boehm <hans_boehm@hp.com>.
6177 2002-06-20  Andreas Jaeger  <aj@suse.de>
6179         * math/libm-test.inc: Use exact values as input parameters,
6180         compute output parameters with 36 digits for 128-bit long doubles.
6181         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
6182         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
6183         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
6185 2002-06-13  Stephen L Moshier  <steve@moshier.net>
6187         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
6188         argument or result is subnormal.
6190 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
6192         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
6193         quotient.
6194         * sysdeps/i386/fpu/s_remquof.S: Likewise.
6195         * sysdeps/i386/fpu/s_remquol.S: Likewise.
6197         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
6199 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
6201         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
6202         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
6203         Reported by Peter A. Buhr.
6205 2002-06-15  Roland McGrath  <roland@frob.com>
6207         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
6208         warning.
6210         * sysdeps/mach/hurd/getcwd.c
6211         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
6213         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
6214         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
6216         * sysdeps/alpha/divrem.h: Use local label instead of global one for
6217         jump to local subroutine.
6219 2002-06-14  Roland McGrath  <roland@frob.com>
6221         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
6222         * sysdeps/mach/hurd/Makeconfig: ... here.
6224 2002-06-13  Andreas Schwab  <schwab@suse.de>
6226         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
6227         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6228         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
6230 2002-06-13  Roland McGrath  <roland@frob.com>
6232         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
6233         * hurd/hurdstartup.c (_hurd_startup): Likewise.
6234         Use intptr_t instead of int for argc in stack layout.
6235         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
6236         (_dl_init_first): Likewise.
6237         (_hurd_stack_setup): Likewise.
6238         (init1): Add a cast.
6239         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
6241         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
6242         argument to pfinet_siocgifconf RPC.
6244 2002-06-13  Andreas Schwab  <schwab@suse.de>
6246         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
6247         expansion order.
6249 2002-06-12  Roland McGrath  <roland@frob.com>
6251         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
6252         if already defined.
6253         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
6254         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
6256 2002-06-11  Roland McGrath  <roland@frob.com>
6258         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
6259         file on [!RTLD_STAT64].
6260         * sysdeps/mach/hurd/fxstat64.c: Likewise.
6262         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
6263         (__fdopen): Use INTUSE.
6264         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
6266         * stdio-common/tmpfile64.c: File removed.
6267         * sysdeps/generic/tmpfile64.c: New file.
6268         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
6269         if not already defined.
6270         (tmpfile): Use it in place of __GT_FILE.
6272         * include/unistd.h: Declare __chown_internal.
6274         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
6275         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
6277 2002-06-09  Roland McGrath  <roland@frob.com>
6279         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
6280         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
6281         value of HURD_INTERFACE_VERSION >= 20020609.
6282         * sysdeps/mach/hurd/configure: Regenerated.
6283         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
6284         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
6285         convert a struct stat64 into a struct stat and return 0 or -1
6286         with errno set to EOVERFLOW.
6287         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
6288         for struct statfs64 to struct statfs.
6289         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
6290         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
6291         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
6292         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
6293         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
6294         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
6295         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
6296         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
6297         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
6298         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
6299         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
6300         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
6301         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
6302         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
6303         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
6304         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
6305         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
6306         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
6307         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
6308         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
6309         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
6310         Use struct stat64 for io_stat argument.
6311         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
6312         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
6313         to io_seek.
6314         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
6315         * hurd/fd-write.c (_hurd_fd_write): Likewise.
6316         * hurd/hurd/fd.h: Update decls.
6317         * sysdeps/mach/hurd/getcwd.c
6318         (_hurd_canonicalize_directory_name_internal): Use ino64_t
6319         and struct dirent64.
6320         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
6321         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
6322         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
6323         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
6325 2002-06-08  Roland McGrath  <roland@frob.com>
6327         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
6328         instead of unsigned long int for __allocation and __size members.
6330 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
6332         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
6333         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
6334         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
6335         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
6337 2002-06-07  Roland McGrath  <roland@frob.com>
6339         * sysdeps/mach/hurd/bits/environments.h: File removed.
6341 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
6343         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
6344         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
6345         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
6346         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
6347         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
6348         (sendfile64): Likewise.
6349         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
6350         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
6351         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
6352         Likewise.
6353         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
6355         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
6356         already defined.
6358 2002-06-04  Bruno Haible  <bruno@clisp.org>
6360         * sysdeps/cris/stackinfo.h: New file.
6362         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
6363         to an integer type before performing bit operations on it.
6365 2002-06-05  Roland McGrath  <roland@frob.com>
6367         * sysdeps/generic/sendfile.c: Include <errno.h>.
6368         * sysdeps/generic/sendfile64.c: Likewise.
6370         * io/Makefile (routines): Add sendfile and sendfile64.
6371         (headers): Add sys/sendfile.h to the list.
6372         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
6373         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
6374         * io/sys/sendfile.h: ... here.
6375         * sysdeps/generic/sendfile.c: New file.
6376         * sysdeps/generic/sendfile64.c: New file.
6378         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
6379         Move sendfile, sendfile64 to ...
6380         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
6381         * sysdeps/mach/hurd/sendfile.c: New file.
6382         * sysdeps/mach/hurd/sendfile64.c: New file.
6384         * sysdeps/mach/nanosleep.c: New file.
6386 2002-06-04  Roland McGrath  <roland@frob.com>
6388         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
6389         * sysdeps/alpha/elf/configure: New file (generated).
6391 2002-06-02  Roland McGrath  <roland@frob.com>
6393         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
6395 2002-06-01  Roland McGrath  <roland@frob.com>
6397         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
6398         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
6400 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
6402         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
6403         Add nsmap.
6404         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
6405         Remove nstimes setting.
6406         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
6407         * resolv/res_send.c (res_nsend): Don't close unconditionally if
6408         there is mix of IPv6 and IPv4 nameservers.
6409         Use nsmap array to find free slots and preserve nameserver ordering.
6410         Fix RES_ROTATE.
6412 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
6414         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
6415         use this header with LFS.
6417         * po/sk.po: Update from translation team.
6419 2002-05-28  Andreas Schwab  <schwab@suse.de>
6421         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
6422         message when finding object of wrong class.
6424 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
6426         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
6427         Patch by <radu@netsoft.ro>.
6429 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
6431         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
6432         Add readahead.
6433         * sysdeps/unix/sysv/linux/readahead.c: New file.
6434         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
6435         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
6436         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
6437         Add sendfile64 alias to sendfile syscall.
6438         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6439         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6440         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6441         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
6442         syscall.
6444         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
6445         special section for PIC register loading.
6446         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
6448         * config.h.in: Define HAVE_HIDDEN.
6449         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
6451         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
6453 2002-05-28  Roland McGrath  <roland@frob.com>
6455         * sysdeps/mach/alpha/setfpucw.c: New file.
6457 2002-05-26  Roland McGrath  <roland@frob.com>
6459         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
6460         Use integer_t instead of int for IOC_VOID case.
6462 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
6464         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
6466 2002-05-26  Bruno Haible  <bruno@clisp.org>
6468         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
6469         end of the ISO-8859-7 from idx table.
6471 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
6473         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
6475 2002-05-24  David S. Miller  <davem@redhat.com>
6477         * string/bits/string2.h (memset): Do not try to optimize when
6478         not _STRING_ARCH_unaligned if GCC will do the right thing.
6480 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
6482         * posix/regex.c: Define `inline' as a macro into nothing for the
6483         compilers which lack the keyword.
6484         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
6485         for the compatibility of gawk.
6486         * posix/regcomp.c: Add fake implementation of isblank() for the
6487         environments which lack the function.
6488         Don't use free_charset() in case of non-i18n envs.
6489         (build_range_exp): Don't use i18n related code in case of non-i18n
6490         envs.
6491         (build_collating_symbol): Likewise.
6492         (build_equiv_class): Likewise.
6493         (build_charclass): Likewise.
6494         (re_compile_fastmap_iter): Likewise.
6495         (parse_bracket_exp): Likewise.
6496         (build_word_op): Likewise.
6497         (regfree): Don't use free_charset() in case of non-i18n envs.
6498         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
6499         re_token_type_t in case of non-i18n envs.
6500         Don't define re_charset_t in case of non-i18n envs.
6501         Change the type of wcs of re_string_t from wchar_t to wint_t,
6502         since we store also WEOF.
6503         * posix/regex_internal.c: (re_string_realloc_buffers): Change
6504         the type of wcs of re_string_t from wchar_t to wint_t.
6505         (re_string_reconstruct): Likewise.
6506         (create_ci_newstate): Don't use i18n related code in case of
6507         non-i18n envs.
6508         (create_cd_newstate): Likewise.
6510 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
6512         * iconv/loop.c: Fix typo.
6514 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
6516         * inet/ether_line.c (ether_line): Fix a typo causing only
6517         lower 4 bits of each ethernet address byte being assigned.
6518         Don't modify what line points to.
6519         * inet/tst-ether_aton.c (main): Add ether_line tests.
6521 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
6523         * manual/filesys.texi: Don't make readlink example leak memory
6524         when readlink fails.
6526 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
6528         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
6529         some more security checks.
6531 2002-05-17  David S. Miller  <davem@redhat.com>
6533         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
6535 2002-05-16  David S. Miller  <davem@redhat.com>
6537         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
6538         (elf_machine_dynamic): Use it to force PIC register to be loaded.
6539         (elf_machine_load_address): Likewise.
6540         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
6542         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
6543         is unaligned, do not forget to fully initialize %g1 magic value.
6545         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
6546         register definitions and provide 32-bit variants of structures
6547         during 64-bit builds.
6549         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
6550         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
6551         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
6552         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
6553         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
6554         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
6555         Do not clear implicit one bit here, it must be done post-rounding.
6556         Only pad to the left using left shift if value uses less than the
6557         available fractional bits.
6559 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6561         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
6562         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
6563         (shared-only-routines): Likewise.
6564         * sysdeps/powerpc/libgcc-compat.c: New file.
6565         * sysdeps/wordsize-32/cmpdi2.c: Removed.
6566         * sysdeps/wordsize-32/fixdfdi.c: Removed.
6567         * sysdeps/wordsize-32/fixsfdi.c: Removed.
6568         * sysdeps/wordsize-32/shdi3.c: Removed.
6570 2002-05-16  Bruno Haible  <bruno@clisp.org>
6572         * MakeTAGS (libc.pot): Don't sort the output.
6573         * po/header.pot: Update to match xgettext 0.11 output.
6575 2002-05-16  Bruno Haible  <bruno@clisp.org>
6577         * MakeTAGS (subdirs): Remove duplicates.
6579 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
6581         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
6582         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
6583         alias.
6585 2002-05-19  Andreas Jaeger  <aj@suse.de>
6587         * sysdeps/unix/sysv/linux/configure.in: Warn against an
6588         installation in /usr/local.
6590 2002-05-16  Bruno Haible  <bruno@clisp.org>
6592         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
6593         string as argument of #error.
6595 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
6597         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
6598         don't define static.  Remove old __realpath function.  TC1 of
6599         POSIX 2001 will allow the second parameter to be NULL.
6600         * stdlib/test-canon.c: Comment out test for NULL as second
6601         parameter of realpath.
6603         * time/offtime.c (__offtime): Set errno if overflow is detected.
6605         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
6606         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
6607         dl-brk and dl-sbrk.
6609         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
6610         (fdimf): Likewise.
6612 2002-05-15  Roland McGrath  <roland@frob.com>
6614         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
6616 2002-05-12  Bruno Haible  <bruno@clisp.org>
6618         * iconvdata/testdata/EUC-JISX0213: New file.
6619         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
6620         * iconvdata/testdata/SHIFT_JISX0213: New file.
6621         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
6622         * iconvdata/testdata/ISO-2022-JP-3: New file.
6623         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
6624         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
6625         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
6626         contains comments indicating precomposed characters.
6628 2002-04-21  Bruno Haible  <bruno@clisp.org>
6630         * iconvdata/iso-2022-jp-3.c: New file.
6631         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
6632         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
6633         (LDFLAGS-ISO-2022-JP-3.so): New variable.
6634         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
6635         (distribute): Add iso-2022-jp-3.c.
6637 2002-05-12  Bruno Haible  <bruno@clisp.org>
6639         * iconvdata/tst-table-to.c (main): Restore handling of
6640         transliterations, broken by last patch.
6642 2002-05-12  Bruno Haible  <bruno@clisp.org>
6644         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
6646 2002-05-12  Bruno Haible  <bruno@clisp.org>
6648         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
6649         when there is not enough room in the output buffer.
6650         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
6652 2002-04-20  Bruno Haible  <bruno@clisp.org>
6654         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
6655         macros.
6656         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6657         Also make this macro work if FROM_DIRECTION evaluates to 0.
6658         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6659         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
6660         of consume_incomplete.
6661         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6662         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
6663         4, not 8.
6664         * iconvdata/cp1258.c: Likewise.
6665         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6666         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
6667         not 2.
6668         * iconvdata/ibm933.c: Likewise.
6669         * iconvdata/ibm935.c: Likewise.
6670         * iconvdata/ibm937.c: Likewise.
6671         * iconvdata/ibm939.c: Likewise.
6672         * iconvdata/iso-2022-cn.c: Define
6673         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6674         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
6675         * iconvdata/iso-2022-cn-ext.c: Likewise.
6676         * iconvdata/iso-2022-jp.c: Define
6677         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6678         {MIN,MAX}_NEEDED_{FROM,TO}.
6679         * iconvdata/tcvn5712-1.c: Define
6680         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6681         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
6682         * iconvdata/euc-jisx0213.c: Define
6683         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6684         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
6685         * iconvdata/shift_jisx0213.c: Likewise.
6687 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6689         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
6690         shdi3, fixdfdi, fixsfdi in csu dir.
6691         (shared-only-routines): Likewise.
6692         * sysdeps/wordsize-32/cmpdi2.c: New file.
6693         * sysdeps/wordsize-32/shdi3.c: New file.
6694         * sysdeps/wordsize-32/fixdfdi.c: New file.
6695         * sysdeps/wordsize-32/fixsfdi.c: New file.
6696         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
6697         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
6698         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
6700         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
6701         Only use va_arg if the argument will be used [PR libc/3259].
6703 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
6705         * catgets/catgets.c (catopen): Free buffer if internal catalog
6706         open fails.
6708 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6710         * debug/xtrace.sh: Make more robust.  For realtime tracking use
6711         non-buffering methods.
6712         * debug/pcprofiledump.c: Implement -u option.
6713         Patch by Roger Luethi <rl@hellgate.ch>.
6715 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
6717         * include/netinet/in.h (bindresvport_internal): Add prototype.
6718         * include/rpc/auth.h  (authunix_create_internal,
6719         authunix_create_default_internal, authnone_create_internal,
6720         authdes_pk_create_internal): Add prototypes.
6721         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
6722         clntudp_create_internal, clntudp_bufcreate_internal,
6723         clntunix_create_internal): Add prototypes.
6724         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
6725         svc_getreq_internal, svc_getreq_common_internal,
6726         svc_getreqset_internal, svc_getreq_poll_internal,
6727         svc_register_internal, svc_unregister_internal,
6728         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
6729         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
6730         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
6731         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
6732         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
6733         * inet/rcmd.c (rcmd_af): Use __listen.
6734         (rresvport_af): Use __bind.
6735         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
6736         authunix_create, authunix_create_default, authnone_create,
6737         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
6738         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
6739         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
6740         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
6741         _authenticate, add INTDEF after such function definitions.
6742         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6743         __setsockopt, __getsockname instead of non-__ variants.
6744         * sunrpc/pmap_rmt.c: Likewise.
6745         * sunrpc/rtime.c: Likewise.
6746         * sunrpc/svc_udp.c: Likewise.
6747         * sunrpc/clnt_unix.c: Likewise.
6748         * sunrpc/svc_unix.c: Likewise.
6749         * sunrpc/bindrsvprt.c: Likewise.
6750         * sunrpc/svc_tcp.c: Likewise.
6751         * sunrpc/auth_none.c: Likewise.
6752         * sunrpc/clnt_raw.c: Likewise.
6753         * sunrpc/clnt_tcp.c: Likewise.
6754         * sunrpc/auth_unix.c: Likewise.
6755         * sunrpc/key_call.c: Likewise.
6756         * sunrpc/clnt_gen.c: Likewise.
6757         * sunrpc/pm_getmaps.c: Likewise.
6758         * sunrpc/clnt_simp.c: Likewise.
6759         * sunrpc/pmap_clnt.c: Likewise.
6760         * sunrpc/svc_run.c: Likewise.
6761         * sunrpc/svc.c: Likewise.
6762         * sunrpc/svc_simple.c: Likewise.
6763         * sunrpc/pm_getport.c: Likewise.
6764         * sunrpc/auth_des.c: Likewise.
6765         * sunrpc/svc_auth.c: Likewise.
6766         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6767         __register_frame_info_table_bases, __deregister_frame_info_bases):
6768         Add INTDEF.
6769         (__register_frame_info_bases_internal,
6770         __register_frame_info_table_bases_internal,
6771         __deregister_frame_info_bases_internal): Add prototypes.
6772         (__register_frame_info, __register_frame): Use INTUSE in call to
6773         __register_frame_info_bases.
6774         (__register_frame_info_table): Similarly.
6775         (__deregister_frame_info, __deregister_frame): Similarly.
6776         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6777         sendto as weak alias.
6778         * sysdeps/mach/hurd/sendto.c: Likewise.
6779         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6780         recvfrom as weak alias.
6781         * sysdeps/mach/hurd/recvfrom.c: Likewise.
6782         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6783         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6784         recvmsg as weak alias.
6785         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6786         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6787         sendmsg as weak alias.
6788         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6789         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6790         setsockopt, add setsockopt as weak alias.
6791         * sysdeps/mach/hurd/setsockopt.c: Likewise.
6792         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6793         weak alias.
6794         * sysdeps/mach/hurd/bind.c: Likewise.
6795         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6796         as weak alias.
6797         * sysdeps/mach/hurd/listen.c: Likewise.
6798         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6799         getsockname, add getsockname as weak alias.
6800         * sysdeps/mach/hurd/getsockname.c: Likewise.
6801         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6802         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6803         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6804         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6805         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6806         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6807         Add aliases.
6808         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6809         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6810         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6811         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6812         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6813         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6814         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6815         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6816         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6817         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6818         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6819         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6821 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6823         * locale/programs/localedef.h (show_archive_content): Add verbose
6824         argument.
6825         * locale/programs/localedef.c (main): Adjust caller.
6826         * locale/programs/locarchive.c (struct nameent, struct dataent): New
6827         types.
6828         (nameentcmp, dataentcmp): New functions.
6829         (xstrcmp): Remove.
6830         (show_archive_content): Print verbose listing with --list-archive -v.
6832 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6834         * locale/programs/locarchive.c (open_archive): Take extra argument
6835         readonly.  If true open file with O_RDONLY and don't create the
6836         archive if it doesn't exist.
6837         Adapt all callers.
6838         (close_archive): Don't do anything if fd element is -1.
6839         * locale/programs/localedef.h (open_archive): Adjust prototype.
6840         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6841         call.
6843         * malloc/malloc.c (__posix_memalign): Correct check for size of
6844         alignment value [PR libc/3444].
6846         * include/stdio.h: Remove references to old stdio implementation.
6848         * libio/Makefile (bug-ungetwc2-ENV): Define.
6850 2002-05-13  Roland McGrath  <roland@frob.com>
6852         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6854         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6856 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
6858         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6859         Allocate three, not two, more than LEN when appending '/.'.
6860         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
6861         if NAME ends with '/.' if it is shorter than 2 chars.
6863 2002-05-12  Roland McGrath  <roland@frob.com>
6865         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6866         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6868         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6869         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6871 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6873         * sysdeps/ia64/Makefile: Remove extra endif.
6874         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6876 2002-05-10  Andreas Schwab  <schwab@suse.de>
6878         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6880 2002-05-09  Andreas Jaeger  <aj@suse.de>
6882         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6883         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6884         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6886         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6887         * sysdeps/wordsize-64/glob.c: ...here.
6888         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6889         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6890         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6892 2002-05-08  Roland McGrath  <roland@frob.com>
6894         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6895         O_NOTRANS flag in "." lookup.
6897 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
6899         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6901 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
6903         * locale/duplocale.c (__duplocale): Update special members only
6904         when allocation succeeded.
6906 2002-05-03  Roland McGrath  <roland@frob.com>
6908         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6909         we can only build libc.so.0.3(GLIBC_2.2.6) now.
6911 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
6913         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6914         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6915         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6916         * sysdeps/ia64/ia64libgcc.S: New file.
6918 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
6920         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6922         * malloc/memusage.c: Distinguish anonymous mmap.
6924 2002-05-01  Roland McGrath  <roland@frob.com>
6926         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6927         and use INTDEF on it.
6928         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6930         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6932         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6934 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
6936         * malloc/memusage.c: Add support for tracking mmap & friends.
6937         * malloc/memusage.sh: Implement -m/--mmap option.
6939 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6941         * locale/programs/locarchive.c (create_archive): Add archivefname
6942         argument, create fname from it.
6943         (enlarge_archive): Honour output_prefix.
6944         (open_archive): Likewise.
6946 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6948         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6949         too many stpcpy macros.
6951 2002-04-26  Bruno Haible  <bruno@clisp.org>
6953         * locale/programs/ld-collate.c (collate_read): Cast first argument
6954         for "%.*s" to int.
6956 2002-04-26  Bruno Haible  <bruno@clisp.org>
6958         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6959         __dcngettext_internal): New declarations.
6960         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6961         attribute declarations.
6963 2002-04-30  Roland McGrath  <roland@frob.com>
6965         Removed old GNU stdio implementation; GNU libio is now the only option.
6966         * configure.in: Removed --enable-libio option and @stdio@ subst var.
6967         Define USE_IN_LIBIO unconditionally.
6968         * configure: Regenerated.
6969         * Makeconfig (stdio): Set to libio by default.
6970         * config.make.in (stdio): Variable removed.
6971         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6972         * sysdeps/unix/sysv/linux/configure: Regenerated.
6973         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6974         * sysdeps/mach/hurd/configure: Regenerated.
6975         * stdio/.cvsignore: File removed.
6976         * stdio/Makefile: File removed.
6977         * stdio/Versions: File removed.
6978         * stdio/__fbufsize.c: File removed.
6979         * stdio/__flbf.c: File removed.
6980         * stdio/__fpending.c: File removed.
6981         * stdio/__fpurge.c: File removed.
6982         * stdio/__freadable.c: File removed.
6983         * stdio/__freading.c: File removed.
6984         * stdio/__fsetlocking.c: File removed.
6985         * stdio/__fwritable.c: File removed.
6986         * stdio/__fwriting.c: File removed.
6987         * stdio/clearerr.c: File removed.
6988         * stdio/fclose.c: File removed.
6989         * stdio/fcloseall.c: File removed.
6990         * stdio/feof.c: File removed.
6991         * stdio/ferror.c: File removed.
6992         * stdio/fflush.c: File removed.
6993         * stdio/fgetc.c: File removed.
6994         * stdio/fgetpos.c: File removed.
6995         * stdio/fgets.c: File removed.
6996         * stdio/fileno.c: File removed.
6997         * stdio/fmemopen.c: File removed.
6998         * stdio/fopen.c: File removed.
6999         * stdio/fopncook.c: File removed.
7000         * stdio/fputc.c: File removed.
7001         * stdio/fputs.c: File removed.
7002         * stdio/fread.c: File removed.
7003         * stdio/freopen.c: File removed.
7004         * stdio/fseek.c: File removed.
7005         * stdio/fsetpos.c: File removed.
7006         * stdio/ftell.c: File removed.
7007         * stdio/fwrite.c: File removed.
7008         * stdio/getc.c: File removed.
7009         * stdio/getchar.c: File removed.
7010         * stdio/getdelim.c: File removed.
7011         * stdio/gets.c: File removed.
7012         * stdio/glue.c: File removed.
7013         * stdio/internals.c: File removed.
7014         * stdio/linewrap.c: File removed.
7015         * stdio/linewrap.h: File removed.
7016         * stdio/memstream.c: File removed.
7017         * stdio/newstream.c: File removed.
7018         * stdio/obstream.c: File removed.
7019         * stdio/putc.c: File removed.
7020         * stdio/putchar.c: File removed.
7021         * stdio/puts.c: File removed.
7022         * stdio/rewind.c: File removed.
7023         * stdio/setbuf.c: File removed.
7024         * stdio/setbuffer.c: File removed.
7025         * stdio/setlinebuf.c: File removed.
7026         * stdio/setvbuf.c: File removed.
7027         * stdio/stdio.h: File removed.
7028         * stdio/ungetc.c: File removed.
7029         * stdio/vasprintf.c: File removed.
7030         * stdio/vscanf.c: File removed.
7031         * stdio/vsnprintf.c: File removed.
7032         * stdio/vsprintf.c: File removed.
7033         * stdio/vsscanf.c: File removed.
7034         * sysdeps/generic/defs.c: File removed.
7035         * sysdeps/generic/fdopen.c: File removed.
7036         * sysdeps/generic/pipestream.c: File removed.
7037         * sysdeps/generic/stdio_init.c: File removed.
7038         * sysdeps/generic/sysd-stdio.c: File removed.
7039         * sysdeps/generic/vdprintf.c: File removed.
7040         * sysdeps/mach/hurd/defs.c: File removed.
7041         * sysdeps/mach/hurd/fdopen.c: File removed.
7042         * sysdeps/mach/hurd/pipestream.c: File removed.
7043         * sysdeps/mach/hurd/stdio_init.c: File removed.
7044         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
7045         * sysdeps/mach/hurd/vdprintf.c: File removed.
7046         * sysdeps/posix/defs.c: File removed.
7047         * sysdeps/posix/fdopen.c: File removed.
7048         * sysdeps/posix/pipestream.c: File removed.
7049         * sysdeps/posix/stdio_init.c: File removed.
7050         * sysdeps/posix/vdprintf.c: File removed.
7051         * sysdeps/unix/pipestream.c: File removed.
7052         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
7053         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
7054         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
7056 2002-04-29  Roland McGrath  <roland@frob.com>
7058         * include/libc-symbols.h (link_warning): Use `unused' attribute.
7060 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
7062         * sysdeps/generic/tls.h: Describe what must be defined.
7064         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
7065         glob_in_dir [PR libc/3385].
7066         * posix/globtest.sh: Add test case.
7068         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
7069         //TRANSLIT twice.
7071 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
7073         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
7074         _internal symbol handling.
7075         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
7077 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
7079         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
7080         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
7082 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
7084         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
7085         not _LIBC and RE_ENABLE_I18N.
7086         (build_range_exp): Implement for not _LIBC.
7087         (build_collating_symbol): Likewise.
7088         (parse_bracket_exp): Unify redundant error handlings.
7089         Don't erase mbcset for non matching list in multibyte envs.
7090         (build_word_op): Add '_' to matching list for \w operator.
7091         * posix/regex_internal.c (re_string_construct): Invoke
7092         build_upper_buffer in case of not RE_ENABLE_I18N.
7093         (re_string_reconstruct): Don't touch cur_state in case of not
7094         RE_ENABLE_I18N.
7095         * posix/regex_internal.h (attribute_hidden): New macro in case of
7096         not _LIBC.
7097         (re_charset_t): Define range_starts/ends in case of not _LIBC.
7098         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
7099         RE_ENABLE_I18N.
7100         (transit_state_mb): Likewise.
7101         (check_node_accept_bytes): Implement the code evaluating range
7102         expression in case of not _LIBC.
7103         (find_collation_sequence_value): Hide in case of not _LIBC.
7105 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
7107         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
7108         i386/semctl.c.
7109         (__old_semctl, __new_semctl): Only use va_arg if the argument will
7110         be used.
7112 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
7114         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
7116         * sysdeps/ia64/strncpy.S: Fix recovery code.
7117         Patch by David Mosberger <davidm@hpl.hp.com>.
7119 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
7121         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
7122         GLIBC_2.2.6.
7124 2002-04-14  Bruno Haible  <bruno@clisp.org>
7126         * posix/regex.c (re_max_failures): Add back symbol for binary
7127         compatibility.
7129 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
7131         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
7132         of buffer building functions.
7133         * posix/regex_internal.c (re_string_allocate): New function.
7134         (re_string_realloc_buffers): New function.
7135         (re_string_skip_chars): New function.
7136         (re_string_reconstruct): New function.
7137         (re_string_construct): Adapt it to new interface of buffer building
7138         functions.
7139         (re_string_construct_common): Likewise.
7140         (build_wcs_buffer): Likewise.
7141         (build_wcs_upper_buffer): Likewise.
7142         (build_upper_buffer): Likewise.
7143         (re_string_translate_buffer): Likewise.
7144         (re_string_context_at): Adapt it to variable length buffers.
7145         * posix/regex_internal.h (re_string_t): Add new fields to handle
7146         variable length buffers.
7147         (re_match_context_t): Likewise.
7148         * posix/regexec.c (re_search_internal): Adapt it to new interface
7149         of re_string_t and re_match_context_t.
7150         (acquire_init_state_context): Likewise.
7151         (check_matching): Likewise.
7152         (check_halt_state_context): Likewise.
7153         (proceed_next_node): Likewise.
7154         (set_regs): Likewise.
7155         (sift_states_backward): Likewise.
7156         (clean_state_log_if_need): Likewise.
7157         (sift_states_iter_mb): Likewise.
7158         (sift_states_iter_bkref): Likewise.
7159         (add_epsilon_backreference): Likewise.
7160         (transit_state): Likewise.
7161         (transit_state_sb): Likewise.
7162         (transit_state_mb): Likewise.
7163         (transit_state_bkref): Likewise.
7164         (transit_state_bkref_loop): Likewise.
7165         (check_node_accept): Likewise.
7166         (match_ctx_init): Likewise.
7167         (extend_buffers): New function.
7169 2002-04-21  Bruno Haible  <bruno@clisp.org>
7171         * iconvdata/tst-table.sh: For the second check, use the truncated
7172         GB18030 charmap table, like for the first check.
7174 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
7176         * elf/dl-load.c (open_verify): Correct __lseek parameters.
7177         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
7179 2002-04-23  H.J. Lu  <hjl@gnu.org>
7181         * include/math.h (isfinite): Fix a typo.
7183 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
7185         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
7186         which is created by the test suite.
7188 2002-04-20  Bruno Haible  <bruno@clisp.org>
7190         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
7191         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
7193 2002-04-20  Bruno Haible  <bruno@clisp.org>
7195         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
7196         to avoid gcc warning.
7198 2002-04-20  Bruno Haible  <bruno@clisp.org>
7200         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
7201         of data->__statep->__count.
7203 2002-04-20  Bruno Haible  <bruno@clisp.org>
7205         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
7206         tag characters.
7207         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
7209 2002-04-24  Roland McGrath  <roland@frob.com>
7211         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
7212         use END macro instead of our own .end directive.
7213         Use `callsys' insn mnemonic instead of `call_pal'.
7215         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
7217         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
7218         macro; we need this for Hurd.
7220         Log entry was missing for 2002/03/24 commit of rev 1.8,
7221         goes with 2002-03-17 changes.
7222         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
7223         (sysdep_routines): Append ioperm here.
7224         (sysdep_headers): Append sys/io.h here.
7226 2002-04-23  Roland McGrath  <roland@frob.com>
7228         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
7229         * sysdeps/mach/hurd/sendto.c: Likewise.
7230         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
7231         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
7232         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
7234 2002-04-22  Roland McGrath  <roland@frob.com>
7236         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
7237         failure from i386_io_perm_* RPCs to ENOSYS.
7239 2002-04-22  Andreas Jaeger  <aj@suse.de>
7241         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
7243         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
7245         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
7246         register instead of destroying %rbx.
7248 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
7250         * string/string.h: Declare strerror_r also for XPG6.
7252 2002-04-19  Roland McGrath  <roland@frob.com>
7254         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
7256 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
7258         * Makefile: Add handling of xtests and xcheck targets.
7259         * MakeTAGS: Likewise.
7260         * Makeconfig: Likewise.
7261         * Makerules: Likewise.
7262         * Rules: Likewise.
7263         * manual/Makefile: Likewise.
7264         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
7265         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
7267 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
7269         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
7270         authnone_private_s.
7271         * sunrpc/auth_none.c: Include bits/libc-lock.h.
7272         Delete #ifdef _RPC_THREAD_SAFE_ block.
7273         (authnone_private): Make a struct, not a pointer to struct.
7274         (authnone_private_guard): New once-control variable.
7275         (authnone_create_once): New function, split out of
7276         authnone_create.  No need to allocate memory.
7277         (authnone_create): Just call authnone_create_once via
7278         __libc_once, then return &authnone_private->no_client.
7279         (authnone_marshal): Access private data via CLIENT argument,
7280         not authnone_private pointer.
7281         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
7282         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
7283         authnone_private_s.
7285 2002-04-12  H.J. Lu  <hjl@gnu.org>
7287         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
7289 2002-04-18  Bruno Haible  <bruno@clisp.org>
7291         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
7292         FROM_DIRECTION): Make the FROM direction stateless.
7293         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
7294         FROM_DIRECTION): Likewise.
7296 2002-04-15  Bruno Haible  <bruno@clisp.org>
7298         * iconvdata/JISX0213.TXT: New file.
7299         * iconvdata/jisx0213.h: New file.
7300         * iconvdata/jisx0213.c: New file.
7301         * iconvdata/euc-jisx0213.c: New file.
7302         * iconvdata/shift_jisx0213.c: New file.
7303         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
7304         * iconvdata/EUC-JISX0213.precomposed: New file.
7305         * iconvdata/SHIFT_JISX0213.precomposed: New file.
7306         * iconvdata/SHIFT_JISX0213.irreversible: New file.
7307         * iconvdata/tst-table-to.c (main): Make it work for encodings for
7308         which the "to" direction is stateful.
7309         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
7310         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
7311         SHIFT_JISX0213.
7312         (libJISX0213-routines): New variable.
7313         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
7314         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
7315         (LDFLAGS-libJISX0213.so): New variable.
7316         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
7317         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
7318         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
7320 2002-04-15  Bruno Haible  <bruno@clisp.org>
7322         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
7323         uint32_t.  Update to Unicode 3.2.
7324         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
7325         (BODY for TO_LOOP): Handle the ASCII range specially.
7326         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
7327         * iconvdata/testdata/BIG5HKSCS: Remove a character.
7328         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
7330 2002-04-15  Bruno Haible  <bruno@clisp.org>
7332         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
7333         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
7335 2002-04-15  Bruno Haible  <bruno@clisp.org>
7337         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
7338         (ucs4_to_cns11643): Update.
7339         * iconvdata/cns11643.c: Update to Unicode 3.2.
7340         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
7341         __cns11643_from_ucs4p2_tab): Regenerated.
7342         (__cns11643_from_ucs4p2c_tab): New array.
7343         * iconvdata/cvs11643l1.c: Update comments.
7344         * iconvdata/EUC-TW.irreversible: Remove two entries.
7346 2002-04-15  Bruno Haible  <bruno@clisp.org>
7348         * locale/C-translit.h.in: Update to Unicode 3.2.
7349         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
7350         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
7352 2002-04-15  Bruno Haible  <bruno@clisp.org>
7354         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
7355         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
7357 2002-04-15  Bruno Haible  <bruno@clisp.org>
7359         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
7360         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
7361         always one byte, not 0 bytes in some cases and 2 bytes in others.
7363         * iconvdata/tst-table-from.c (main): Correct the usage message.
7365 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
7367         * posix/regcomp.c (parse_expression): Fix incorrect error code.
7368         (parse_dup_op): Fix error handling like "a{}".
7369         (parse_bracket_exp): Add error handling.
7370         (fetch_number): Add error handling for "a{<very_large_number>}".
7372 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
7374         * posix/regcomp.c (parse_bracket_symbol): Add error handling
7375         in case that the symbol name is too long.
7376         (build_charclass): Handle [:lower:]/[:uppper:] correctly
7377         in case of REG_ICASE.
7379 2002-04-19  Andreas Jaeger  <aj@suse.de>
7381         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
7382         <hartvige@mips.com>.
7384 2002-04-15  H.J. Lu  <hjl@gnu.org>
7386         * include/math.h (__finitel_internal): Declare only if
7387         __NO_LONG_DOUBLE_MATH is not defined.
7388         (__isinfl_internal): Likewise.
7389         (__isnanl_internal): Likewise.
7391         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
7392         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
7393         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
7394         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
7395         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7396         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
7397         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7399         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
7400         __fcntl_internal.
7402         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
7403         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
7405 2002-04-15  Bruno Haible  <bruno@clisp.org>
7407         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
7408         (BODY for TO_LOOP): Likewise.
7409         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
7410         * iconvdata/tst-table.sh: Add support for encodings which contain
7411         precomposed Unicode characters, known to the iconv converter in both
7412         directions but not listed in the charmap.
7413         * iconvdata/IBM856.irreversible: New file.
7414         * iconvdata/IBM922.irreversible: New file.
7415         * iconvdata/IBM1132.irreversible: New file.
7416         * iconvdata/IBM1133.irreversible: New file.
7417         * iconvdata/IBM1160.irreversible: New file.
7418         * iconvdata/IBM1161.irreversible: New file.
7419         * iconvdata/IBM1163.irreversible: New file.
7420         * iconvdata/IBM1164.irreversible: New file.
7421         * iconvdata/ARMSCII-8.irreversible: New file.
7422         * iconvdata/TCVN5712-1.precomposed: New file.
7423         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
7424         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
7425         ARMSCII-8, TCVN5712-1.
7426         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
7427         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
7428         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
7429         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
7431 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
7433         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
7434         for EVENING69.  Include offsets in TZ environment variable.
7436 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
7438         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
7439         avoid compiler warnings.
7441         * locale/programs/localedef.c (main): Always call
7442         construct_output_path.
7444         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
7446         * locale/programs/locfile.c (to_archive): New variable.  To collect
7447         data which has to be added to the locale archive.
7448         (write_all_categories): Take new third parameter with locale name.
7449         Unless no_archive flag set add new locale data to the archive
7450         (write_locale_data): Unless no-archive flag set store generated data
7451         in to_archive data structure instead of generation output file.
7452         Add new parameter with locale category index.
7453         * locale/programs/locfile.h: Add new parameters in declaractions of
7454         write_all_categories and write_locale_data.
7455         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
7456         --add-to-archive, and --delete-from-archive options.  Pass extra
7457         parameter to write_all_categories.
7458         * locale/programs/localedef.h: Add prototypes for functions in
7459         locarchive.c.
7460         * locale/locarchive.h: New file.
7461         * locale/programs/locarchive.c: New file.
7462         * locale/Makefile (distribute): Add programs/locarchive.c and
7463         locarchive.h.
7464         (localedef-modules): Add md5 and locarchive.
7465         Add vpath to crypt subdir for md5.c.
7467         * locale/programs/ld-address.c: Pass locale category ID as new second
7468         parameter to write_locale_data.
7469         * locale/programs/ld-collate.c: Likewise.
7470         * locale/programs/ld-ctype.c: Likewise.
7471         * locale/programs/ld-identification.c: Likewise.
7472         * locale/programs/ld-measurement.c: Likewise.
7473         * locale/programs/ld-messages.c: Likewise.
7474         * locale/programs/ld-monetary.c: Likewise.
7475         * locale/programs/ld-name.c: Likewise.
7476         * locale/programs/ld-numeric.c: Likewise.
7477         * locale/programs/ld-paper.c: Likewise.
7478         * locale/programs/ld-telephone.c: Likewise.
7479         * locale/programs/ld-time.c: Likewise.
7481         * locale/simple-hash.c: Move compute_hashval function from here...
7482         * locale/hashval.h: ...to here.  New file.
7483         * locale/simple-hash.h: Add prototype for compute_hashval.
7485         * include/libintl.h: Minor cleanups.
7487 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
7489         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
7491 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
7493         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
7495 2002-04-14  Bruno Haible  <bruno@clisp.org>
7497         * locale/programs/charmap.c (charmap_read): Don't access result if
7498         result == NULL.
7500 2002-02-17  Andreas Schwab  <schwab@suse.de>
7502         * elf/reldep7.c: New file.
7503         * elf/reldep7mod1.c: New file.
7504         * elf/reldep7mod2.c: New file.
7505         * elf/Makefile: Add rules to build and run reldep7.
7507 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
7509         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
7510         the end of the function.  Pass original flags to recursive call if
7511         add_dependency failed.
7512         (_dl_lookup_versioned_symbol): Likewise.
7514 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
7516         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
7517         early, but check whether it overflowed afterwards.
7518         * time/tst-mktime.c (main): Add new tests.
7520 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
7522         * debug/xtrace.sh: Fix program name in help message.
7523         Patch by Roger Luethi <rl@hellgate.ch>.
7525         * include/sys/stat.h: Add prototypes for __lxstat_internal and
7526         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
7527         NOT_IN_libc.
7528         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
7529         * sysdeps/mach/hurd/lxstat.c: Likewise.
7530         * sysdeps/unix/common/lxstat.c: Likewise.
7531         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
7532         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
7533         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
7534         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
7535         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
7536         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
7537         * sysdeps/mach/hurd/lxstat64.c: Likewise.
7538         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
7539         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
7541         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
7542         prototypes.  Add __mbrlen and __mbrtowc macros.
7543         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
7544         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
7546         * include/unistd.h: Add prototype for __write_internal and add
7547         __libc_write macro is SHARED.
7548         * sysdeps/generic/write.c: Use INTDEF for __write.
7549         * sysdeps/mach/hurd/write.c: Likewise.
7550         * sysdeps/unix/sysv/aix/write.c: Likewise.
7551         * sysdeps/unix/syscalls.list: Add __libc_write alias.
7553         * assert/assert.c: Replace STR_N_SIZE with something usable in
7554         macro arguments.
7555         * assert/assert-perr.c: Likewise.
7557         * include/sys/socket.h: Declare __libc_sa_len_internal and define
7558         SA_LEN macro to use it if not NOT_IN_libc.
7559         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
7561         * include/fcntl.h: Declare __open_internal and define __open and
7562         __libc_open macros if not NOT_IN_libc.
7563         * sysdeps/generic/open.c: Use INTDEF for __open.
7564         * sysdeps/mach/hurd/open.c: Likewise.
7565         * sysdeps/unix/sysv/aix/open.c: Likewise.
7566         * sysdeps/unix/syscalls.list: Add __open_internal alias.
7568         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
7569         has correct number.
7571         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
7572         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
7573         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7574         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7576         * include/wctype.h: Declare __iswalpha_l_internal,
7577         __iswdigit_l_internal, __iswspace_l_internal,
7578         __iswxdigit_l_internal, and __iswctype_internal.  Define
7579         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
7580         __iswxdigit_l macros if not NOT_IN_libc.
7581         * wctype/iswctype.c: Use INTDEF for __iswctype.
7582         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
7584         * include/math.h: Declare __isinf_internal, __isinfl_internal,
7585         __isnan_internal, and __isnanl_internal.
7586         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
7587         __isnan, and __isnanl.
7588         * stdio-common/printf_size.c: Likewise.
7589         * sysdeps/generic/printf_fphex.c: Likewise.
7590         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
7591         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7592         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
7593         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
7594         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
7595         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7596         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
7597         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7598         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
7599         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7600         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
7601         * sysdeps/m68k/s_isinfl.c: Likewise.
7602         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
7603         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
7605         * include/sys/time.h: Declare __gettimeofday_internal and define
7606         __gettimeofday macro if not NOT_IN_libc.
7607         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
7608         * sysdeps/mach/gettimeofday.c: Likewise.
7609         * sysdeps/posix/gettimeofday.c: Likewise.
7610         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
7611         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
7612         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
7613         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
7615         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
7616         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
7617         Remove __lstat and __fstat inline functions.
7618         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
7619         * sysdeps/mach/hurd/fxstat.c: Likewise.
7620         * sysdeps/unix/fxstat.c: Likewise.
7621         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
7622         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
7623         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
7624         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
7625         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
7626         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
7627         * sysdeps/mach/hurd/fxstat64.c: Likewise.
7628         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
7629         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
7631         * include/unistd.h: Declare __getpid_internal and define
7632         __getpid macro if not NOT_IN_libc.
7633         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
7634         * sysdeps/generic/getpid.c: Likewise.
7635         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
7636         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
7638         * include/unistd.h: Declare __getpgid_internal and define
7639         __getpgid macro if not NOT_IN_libc.
7640         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
7641         * sysdeps/mach/hurd/getpgid.c: Likewise.
7642         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
7643         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
7644         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
7645         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
7647         * include/unistd.h: Declare __getpagesize_internal and define
7648         __getpagesize macro if not NOT_IN_libc.
7649         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
7650         __getpagesize.
7651         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
7652         * sysdeps/mach/getpagesize.c: Likewise.
7653         * sysdeps/posix/getpagesize.c: Likewise.
7654         * sysdeps/unix/getpagesize.c: Likewise.
7655         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
7656         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7657         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
7658         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
7660 2002-04-13  Andreas Jaeger  <aj@suse.de>
7662         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
7663         as clobber to reduce register pressure.
7664         (__strpbrk_cg): Likewise.
7665         (__mempcpy_by4): Likewise.
7666         (__strstr_cg): Likewise.
7667         Add prototype for __memrchr.
7669 2002-04-13  Andreas Schwab  <schwab@suse.de>
7671         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
7672         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
7673         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
7675 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
7677         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
7678         check whether the caller prefers getting the most recent version of
7679         a symbol of the earliest version.
7680         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
7681         _dl_do_lookup to also take the new parameter and pass it on.
7682         Change 'explicit' parameter of _dl_lookup_symbol and
7683         _dl_lookup_versioned_symbol to flags.  Adjust tests.
7684         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7685         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
7686         _dl_lookup_versioned_symbol.
7687         * elf/dl-reloc.c: Likewise.
7688         * elf/dl-runtime.c: Likewise.
7689         * elf/dl-sym.c: Likewise.
7690         * sysdeps/mips/dl-machine.h: Likewise.
7692 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7694         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
7695         in a token.
7696         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
7698 2002-04-10  Andreas Jaeger  <aj@suse.de>
7700         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
7702         * include/argz.h: Remove extra char from last patch.
7704 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
7706         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
7707         * sysdeps/unix/sysv/aix/chown.c: Likewise.
7708         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
7709         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
7710         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7711         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
7712         __chown_internal.
7713         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
7715         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
7716         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
7717         * intl/ngettext.c: Likewise.
7719         * include/sys/socket.h: Declare __connect_internal and define
7720         __connect macro if not NOT_IN_libc.
7721         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
7722         * sysdeps/unix/sysv/aix/connect.c: Likewise.
7723         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
7725         * include/unistd.h: Declare __close_internal and define __close macro
7726         if not NOT_IN_libc.
7727         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
7728         WJUMP3): Add extra parenthesis to avoid expanding element names with
7729         macors like __close.
7730         * sysdeps/unix/syscalls.list: Add __close_internal alias.
7732         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
7733         if not NOT_IN_libc.
7734         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
7735         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
7736         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
7738         * include/unistd.h: Declare __fork_internal and define __fork macro
7739         if not NOT_IN_libc.
7740         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
7741         * sysdeps/unix/sysv/aix/fork.c: Likewise.
7742         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7744         * include/stdio_ext.h: Declare __fsetlocking_internal and define
7745         __fsetlocking macro to use it if not NOT_IN_libc.
7746         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7748         * libio/__fbufsize.c: Correct copyright.
7749         * libio/__flbf.c: Likewise.
7750         * libio/__fpending.c: Likewise.
7751         * libio/__fpurge.c: Likewise.
7752         * libio/__freadable.c: Likewise.
7753         * libio/__freading.c: Likewise.
7754         * libio/__fsetlocking.c: Likewise.
7755         * libio/__fwritable.c: Likewise.
7756         * libio/__fwriting.c: Likewise.
7758         * include/stdio.h: Declare __asprintf_internal and define __asprintf
7759         macro to use it if not NOT_IN_libc.
7760         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7762         * include/mntent.h: Declare __setmntent_internal,
7763         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
7764         __getmntent_r, and __endmntent macros to use these functions if not
7765         NOT_IN_libc.
7766         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7767         __endmntent.
7769         * include/math.h: Declare __finite_internal, __finitef_internal, and
7770         __finitel_internal.  Redefine isfinite macro if in libc or libm using
7771         these functions.
7772         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7773         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7774         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7775         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7776         * sysdeps/i386/fpu/s_finitef.S: Likewise.
7777         * sysdeps/i386/fpu/s_finitel.S: Likewise.
7778         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7779         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7780         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7781         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7783         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
7784         to use this function if not NOT_IN_libc.
7785         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7786         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7787         * sysdeps/mach/hurd/fcntl.c: Likewise.
7788         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7789         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7791         * include/argz.h: Declare __argz_count_internal and
7792         __argz_stringify_internal.
7793         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7794         __argz_stringify.
7795         * string/argz-count.c: Use INTDEF for __argz_count.
7796         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7798         * include/stdlib.h: Declare __cxa_atexit_internal and define
7799         __cxa_atexit macro if not NOT_IN_libc.
7800         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7801         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7803         * assert/assert.c: Use INTDEF for __assert_fail.
7804         * assert/__assert.c: Use INTUSE for call to __assert_fail.
7805         * include/assert.h: Declare __assert_fail_internal.
7807         * extra-lib.mk: Mark assignment to lib with override.
7809 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7811         * Makerules: Use cppflags-iterator.mk to add defines for all test
7812         source files.
7814 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
7816         * elf/elf.h: Define R_SH_TLS_xxx macros.
7817         * elf/rtld.c: Remove an extra parenthesis.
7818         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7819         TLS_GD macros.
7820         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7821         * sysdeps/sh/dl-lookupcfg.h: New file.
7822         * sysdeps/sh/dl-tls.h: New file.
7823         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7824         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7825         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7826         R_SH_TLS_TPOFF32 relocations.
7828 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7830         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7831         of NOT_IN_LIBC.
7832         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7833         * include/stdlib.h: Likewise.
7835 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
7837         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7838         instead of _RTLD_LOCAL.
7839         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7840         * include/unistd.h: Likewise.
7841         * sysdeps/generic/ldsodefs.h: Likewise.
7843         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7844         if in libc or ld.so.
7846 2002-04-08  Andreas Jaeger  <aj@suse.de>
7848         * elf/cache.c (print_entry): Support x86-64.
7850 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7852         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7853         with one accessing the locale data structures directly.
7854         * stdio-common/printf-prs.c: Include localeinfo.h for new
7855         MB_CUR_MAX definition.
7857         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7858         is the name of the source file without extension.
7859         * Makefile (distribute): Add cppflags-iterator.mk.
7860         * cppflags-iterator.mk: New file.
7861         * extra-lib.mk: For the sources of the library run
7862         cppflags-iterator.mk.
7864         * include/libintl.h: Declare __dcgettext_internal and
7865         _libc_intl_domainname_internal.  Define __dcgettext using these
7866         two symbols if used in libc itself.
7867         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7868         _libc_intl_domainname_internal.
7869         * argp/argp-parse.c: Likewise.
7870         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7871         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7872         * intl/gettext.c: Likewise.
7873         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7874         alias.
7875         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7876         __dcgettext.
7877         * posix/regex_internal.c (gettext): Likewise.
7879 2002-04-08  Andreas Jaeger  <aj@suse.de>
7881         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7883         * sysdeps/x86_64/fpu/s_llrint.S: New file.
7884         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7885         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7886         * sysdeps/x86_64/fpu/s_lrint.S: New file.
7887         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7888         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7890 2002-04-08  Roland McGrath  <roland@frob.com>
7892         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7893         widening __hurd_fail value.
7895 2002-04-07  Roland McGrath  <roland@frob.com>
7897         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7898         <mach/machine/alpha_instruction.h>.
7899         (_hurd_setup_sighandler): Take proper arguments for current decls.
7900         Update code to use _hurdsig_catch_fault.
7901         Use `callsys' instruction instead of `call_pal'.
7902         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7904         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7905         (ALIGN, at, AT, fp): New macros.
7907 2002-04-06  Roland McGrath  <roland@frob.com>
7909         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7911         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7912         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7914         * sysdeps/mach/hurd/bind.c: Use prototype definition.
7915         * sysdeps/mach/hurd/connect.c: Likewise.
7916         * sysdeps/mach/hurd/getsockopt.c: Likewise.
7917         * sysdeps/mach/hurd/setsockopt.c: Likewise.
7919         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7920         __msg_sig_post RPC.
7922         * hurd/catch-exc.c: Use integer_t instead of int.
7923         * hurd/hurdfault.c: Likewise.
7925         * sysdeps/mach/hurd/alpha/exc2signal.c
7926         (_hurd_exception2signal): Rewritten.
7927         * sysdeps/mach/hurd/alpha/longjmp-ts.c
7928         (_hurd_longjmp_thread_state): Rewritten.
7930 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
7932         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7933         DB_LOOKUP_FCT prototype.
7934         * nss/getXXent_r.c: Likewise.
7935         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7936         * inet/getaliasname_r.c: Likewise.
7937         * inet/getnetbyad_r.c: Likewise.
7938         * inet/getnetbynm_r.c: Likewise.
7939         * inet/getnetent_r.c: Likewise.
7940         * inet/getproto_r.c: Likewise.
7941         * inet/getprtent_r.c: Likewise.
7942         * inet/getprtname_r.c: Likewise.
7943         * inet/getrpcbyname_r.c: Likewise.
7944         * inet/getrpcbynumber_r.c: Likewise.
7945         * inet/getrpcent_r.c: Likewise.
7946         * inet/getservent_r.c: Likewise.
7947         * inet/getsrvbynm_r.c: Likewise.
7948         * inet/getsrvbypt_r.c: Likewise.
7949         * shadow/getspent_r.c: Likewise.
7950         * shadow/getspnam_r.c: Likewise.
7952         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7954         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7955         Use i686-friendly PIC code.
7956         * sysdeps/i386/elf/setjmp.S: Likewise.
7958         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7960         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7961         list.
7962         * elf/Versions: Remove it here.
7964 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
7966         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7967         direction.  Reported by H . J . Lu <hjl@lucon.org>.
7969 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7971         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7972         test just before the test runs.
7973         * intl/tst-translit.sh: Likewise.
7974         * intl/tst-codeset.sh: Likewise.
7976         * timezone/zic.c: Update from tzcode2002c.
7977         * timezone/asia: Update from tzdata2002c.
7978         * timezone/backward: Likewise.
7979         * timezone/europe: Likewise.
7980         * timezone/northamerica: Likewise.
7981         * timezone/northamerica: Likewise.
7982         * timezone/northamerica: Likewise.
7983         * timezone/southamerica: Likewise.
7984         * timezone/zone.tab: Likewise.
7986 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
7988         * sysdeps/generic/brk.c (__curbrk): Declare.
7989         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7990         * sysdeps/generic/dl-sbrk.c: Likewise.
7991         * sysdeps/unix/arm/dl-brk.S: New file.
7992         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7993         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7994         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7995         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7996         * sysdeps/unix/i386/dl-brk.S: New file.
7997         * sysdeps/unix/mips/dl-brk.S: New file.
7998         * sysdeps/unix/sparc/dl-brk.S: New file.
7999         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
8000         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
8001         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
8002         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
8004 2002-04-03  Andreas Schwab  <schwab@suse.de>
8006         * Makefile (headers): Add gnu/lib-names.h here instead of
8007         install-others.
8008         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
8009         installation rule.
8010         (install-headers): Add dependency on install-headers-nosubdir.
8011         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
8012         instead of install-others.
8013         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
8014         installation rule.
8016 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
8018         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
8019         Reported by Sam Roberts <sroberts@uniserve.com>.
8021 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
8023         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
8024         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
8025         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
8026         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
8028 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
8030         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
8031         (RTLD_START): Ditto.
8032         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
8033         dependency violation.
8035 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
8037         * time/mktime.c (__mktime_internal): Move check for year < 70 below
8038         all variable declarations.
8040 2002-04-04  Andreas Schwab  <schwab@suse.de>
8042         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
8044 2002-04-04  Andreas Jaeger  <aj@suse.de>
8046         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
8047         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
8049         * sysdeps/x86_64/fpu/s_fabs.c: New file.
8050         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
8051         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
8053         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
8055         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
8057         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
8058         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
8060         * configure.in: Handle all mips entries the same.
8062         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
8063         * sysdeps/mips/mips3/*: Likewise.
8064         * sysdeps/mips/p40/bits/endian.h: Likewise.
8066 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
8068         * misc/dirname.c (dirname): Ignore trailing slashes at end of
8069         non-null result [PR libc/2600].
8071         * misc/tst-dirname.c: Add more tests.
8073 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
8075         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
8076         define a code_set_name provide one based on the filename.
8078         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
8080 2001-12-28  Andreas Jaeger  <aj@suse.de>
8082         * time/mktime.c (__mktime_internal): Check for year < 70
8083         [PR libc/2738].
8085 2002-04-03  Andreas Jaeger  <aj@suse.de>
8087         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
8088         shmat.
8089         Reported by Andi Kleen <ak@suse.de>.
8091 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
8093         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
8094         * sysdeps/generic/w_lgammaf.c: Likewise.
8095         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
8097         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
8098         Adjust for new output format of the backtrace functions.
8100         * misc/syslog.c (vsyslog): Only use cleanup handler if
8101         _LIBC_REENTRANT is defined [PR libc/2924].
8103         * libio/Makefile (tests): Add bug-ungetwc2.
8104         * libio/bug-ungetwc2.c: New file.
8106         * manual/install.texi: Typographical and grammatical cleanup.
8107         Patch by Dennis Grace <dgrace@us.ibm.com>.
8109         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
8110         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
8112         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
8113         always "&".  Adjust callers.
8114         Add "_" prefix to several generated definitions.
8115         Patch by paul@serice.net [PR libc/3158].
8117 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8119         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
8120         size of _dl_arm_cap_flags.
8121         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
8123         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
8124         Define as 8.
8126 2002-03-22  H.J. Lu  <hjl@gnu.org>
8128         * scripts/firstversions.awk: Check the first version.
8130 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8132         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
8133         dependencies must be stable to work correctly.
8134         Reported by martin.lubich@datacon.at.
8136         * libio/bug-ungetwc1.c: New file.
8137         * libio/Makefile (tests): Add bug-ungetwc1.
8139         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
8140         if stream was last used for writing.
8142         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
8143         number [PR libc/3111].
8145         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
8146         to ...
8147         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
8149 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
8151         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
8152         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
8153         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
8154         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
8155         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
8157 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
8159         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
8160         dynamic tags.
8162 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8164         * sysdeps/i386/fpu/s_fabs.S: New file.
8165         * sysdeps/i386/fpu/s_fabsf.S: New file.
8166         * sysdeps/i386/fpu/s_fabsl.S: New file.
8167         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
8168         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
8169         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
8171 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8173         * rt/tst-shm.c (do_test): Add one more test for size of shared
8174         memory object.
8176 2002-03-29  Wolfram Gloger  <wg@malloc.de>
8178         * malloc/malloc.c: Add short description and prototypes for
8179         malloc_get_state, malloc_set_state and posix_memalign, for
8180         consistency and to avoid warnings with -Wstrict-prototypes.
8181         Reported by Andreas Jaeger <aj@suse.de>.
8183 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8185         * po/gl.po: Update from translation team.
8187 2002-03-31  Roland McGrath  <roland@frob.com>
8189         * hurd/hurdselect.c (_hurd_select): Fix
8190         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
8191         Use a union rather than casts to compare mach_msg_type_t as int.
8193 2002-03-25  Roland McGrath  <roland@frob.com>
8195         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
8196         check off the end of NAME when it's shorter than 2 chars.
8197         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
8199 2002-03-17  Roland McGrath  <roland@frob.com>
8201         * sysdeps/mach/hurd/i386/sys/io.h: New file.
8202         * sysdeps/mach/hurd/i386/ioperm.c: New file.
8203         * sysdeps/mach/hurd/i386/Dist: Add them.
8204         * sysdeps/mach/hurd/i386/Versions
8205         (libc: GLIBC_2.2.6): New set, add ioperm.
8206         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
8207         (mach_interface_list): Check for mach_i386.defs.
8208         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
8209         * sysdeps/mach/configure: Regenerated.
8211 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
8213         * po/fr.po: Update from translation team.
8215 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8217         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
8218         getpriority from syscalls list.
8220 2002-03-28  Andreas Jaeger  <aj@suse.de>
8222         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
8223         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
8224         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
8225         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
8227 2002-03-27  Andreas Jaeger  <aj@suse.de>
8229         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8230         sigcontext): Follow further kernel change.
8232         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
8233         kernel change.
8235         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
8236         Change for struct sigcontext change.
8238         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
8239         Follow changes in struct sigcontext.
8241         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
8242         sysycall, use wrapper instead.
8244 2002-03-26  Andreas Jaeger  <aj@suse.de>
8246         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
8247         read and write accesses as detailed as possible.
8248         (__memcpy_by2): Likewise.
8249         (__memcpy_g): Likewise.
8250         (memmove): Likewise.
8251         (memcmp): Likewise.
8252         (__memset_ccn_by4): Likewise.
8253         (__memset_ccn_by2): Likewise.
8254         (__memset_gcn_by4): Likewise.
8255         (__memset_gcn_by2): Likewise.
8256         (memchr): Likewise.
8257         (__memrchr): Likewise.
8258         (rawmemchr): Likewise.
8259         (__strlen_g): Likewise.
8260         (__strcpy_g): Likewise.
8261         (__mempcpy_by4): Likewise.
8262         (__mempcpy_by2): Likewise.
8263         (__mempcpy_byn): Likewise.
8264         (__stpcpy_g): Likewise.
8265         (__strncpy_by4): Likewise.
8266         (__strncpy_by2): Likewise.
8267         (__strncpy_byn): Likewise.
8268         (__strncpy_gg): Likewise.
8269         (__strcat_c): Likewise.
8270         (__strcat_g): Likewise.
8271         (__strncat_g): Likewise.
8272         (__strcmp_gg): Likewise.
8273         (__strncmp_g): Likewise.
8274         (__strchr_c): Likewise.
8275         (__strchr_g): Likewise.
8276         (__strchrnul_c): Likewise.
8277         (__strchrnul_g): Likewise.
8278         (__strrchr_c): Likewise.
8279         (__strrchr_g): Likewise.
8280         (__strrchr_c): Likewise.
8281         (__strrchr_g): Likewise.
8282         (__strcspn_c1): Likewise.
8283         (__strcspn_cg): Likewise.
8284         (__strcspn_g): Likewise.
8285         (__strcspn_g): Likewise.
8286         (__strspn_c1): Likewise.
8287         (__strspn_cg): Likewise.
8288         (__strspn_g): Likewise.
8289         (__strspn_g): Likewise.
8290         (__strpbrk_cg): Likewise.
8291         (__strpbrk_g): Likewise.
8292         (__strstr_cg): Likewise.
8293         (__strstr_g): Likewise.
8295         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
8296         Michal Ludvig <mludvig@suse.cz>.
8298         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
8299         compatibilty, adjust for kernel changes.
8301         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8302         sigcontext): Adjust for kernel changes.
8304 2002-03-25  Andreas Jaeger  <aj@suse.de>
8306         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
8307         little endian.
8308         Reported by Artur Zaprzala <zybi@talex.com.pl>.
8310 2002-03-24  Andreas Jaeger  <aj@suse.de>
8312         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
8314         * stdio-common/tst-fdopen.c (main): Remove unused variable.
8316         * iconv/tst-iconv3.c (main): Use correct printf strings.
8318 2002-03-18  Roland McGrath  <roland@frob.com>
8320         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
8321         (CMGROUP_MAX): New macro.
8323 2002-03-23  Roland McGrath  <roland@frob.com>
8325         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
8326         * sysdeps/posix/shm_unlink.c: Likewise.
8328 2002-03-22  Roland McGrath  <roland@frob.com>
8330         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
8331         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
8332         under --enable-libio.
8333         * sysdeps/mach/hurd/configure: Regenerated.
8335 2002-03-23  Roland McGrath  <roland@frob.com>
8337         * sysdeps/mach/hurd/i386/Makefile
8338         (sysdep_routines, shared-only-routines): Don't add framestate,
8339         reverting 2001-10-02 change.
8340         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
8341         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
8342         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8343         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8344         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
8345         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
8346         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8347         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
8348         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
8349         Do it here instead, only if [$(unwind-find-fde) = yes].
8351 2002-03-23  Andreas Jaeger  <aj@suse.de>
8353         * signal/signal.h: Fix typo. Patch by Steve Kemp
8354         <skx@tardis.ed.ac.uk>.
8356 2002-03-22  Andreas Jaeger  <aj@suse.de>
8358         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
8359         getresuid.
8361         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8362         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
8363         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8364         user_fpregs_struct): Rename fwd.
8366         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
8367         Follow sigcontext changes.
8369 2002-03-22  Andreas Jaeger  <aj@suse.de>
8371         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
8372         changes for NaNs on MIPS.
8373         Patch by Hartvig Ekner <hartvige@mips.com>.
8375 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
8377         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
8378         Use realloc if too large.
8379         (addgrbyid): Likewise.
8380         * nscd/hstcache.c (addhstbyname): Likewise.
8381         (addhstbyaddr): Likewise.
8382         (addhstbynamev6): Likewise.
8383         (addhstbyaddrv6): Likewise.
8384         * nscd/pwdcache.c (addpwbyname): Likewise.
8385         (addpwbyuid): Likewise.
8387 2002-03-21  Andreas Jaeger  <aj@suse.de>
8389         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8390         _fpstate): Add separate struct for x86-64.
8392         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8393         user_fpregs_struct): Change member names to follow kernel.
8395 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
8397         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
8398         Correctly close the UDP connection right away [PR libc/3120].
8400 2002-03-20  Andreas Jaeger  <aj@suse.de>
8402         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8403         user_fpregs_struct): Fix for changed kernel struct.
8404         (struct user_regs_struct): Likewise.
8405         (struct user): Likewise.
8406         Add 32-bit x86 compatibility.
8408         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
8410 2002-03-19  Andreas Jaeger  <aj@suse.de>
8412         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
8414 2002-03-18  Andreas Jaeger  <aj@suse.de>
8416         * iconvdata/Makefile: Only run tests when shared libs are
8417         available.
8419 2002-03-17  Andreas Jaeger  <aj@suse.de>
8421         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
8423         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
8425         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
8426         bits.
8428         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
8429         (CAUSE_SHIFT): New macro.
8430         Patch by Hartvig Ekner <hartvige@mips.com>.
8432         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
8433         * sysdeps/generic/unwind-pe.h: Likewise.
8435         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
8436         type to _IO_setb.
8438         * libio/stdio.c (AL2): Define variant when visibility attribute is
8439         not supported.
8441         * include/libc-symbols.h (_INTVARDEF): Define variant when
8442         visibility attribute is not supported.
8444 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
8446         * po/fr.po: Update from translation team.
8448 2002-02-25  Bruno Haible  <bruno@clisp.org>
8450         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
8452 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
8454         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
8455         buffers if _IO_file_attach failed.
8457         * libio/fileops.c (_IO_file_open): Close file descriptor if
8458         _IO_SEEKOFF call failed.
8460 2002-03-15  H.J. Lu  <hjl@gnu.org>
8461             Ulrich Drepper  <drepper@redhat.com>
8463         * configure.in: Check for availability of
8464         init_array/fini_array/preinit_array handling in binutils.
8465         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
8466         * config.make.in (have-initfini-array): New variable.
8468 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
8470         * stdio-common/tst-printf.c (main): Comment out one test which
8471         checked the compiler's ability to fold floating-point constants
8472         but not really printf.
8473         (rfg3): Make s const.
8474         * stdio-common/tst-printf.sh: Adjust for removed test.
8476         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
8477         internal function.  Adjust for internal_function calling convention.
8478         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
8479         as internal_function.
8481         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
8482         hidden.
8484         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
8485         declaration and definition.
8486         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
8487         declaration.
8488         * nss/getXXent_r.c: Likewise.
8489         * nss/nsswitch.h (db_lookup_function): Add internal_function to
8490         definition.
8492         * include/time.h: Declare __localtime_r as hidden.
8494         * include/aliases.h: Declare __getaliasent_r as hidden.
8495         * include/grp.h: Declare __getgrent_r as hidden.
8496         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
8497         __getservent_r, and __getprotoent_r as hidden.
8498         * include/pwd.h: Declare __getpwent_r as hidden.
8499         * include/shadow.h: Declare __getspent_r as hidden.
8500         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
8502         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
8503         and __gconv_transliterate as hidden.
8504         Add internal_function to __gconv_get_path declaration.
8505         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
8506         definition.  Add attribute_hidden to __gconv_read_conf definition.
8508 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
8510         * elf/rtld.c: Declare _environ as hidden.
8511         * sysdeps/generic/dl-environ.c: Likewise.
8512         * sysdeps/generic/dl-sysdep.c: Likewise.
8514         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
8515         _dl_mcount_internal as hidden.
8517         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
8518         * sysdeps/generic/dl-brk.c: New file.
8519         * sysdeps/generic/dl-sbrk.c: New file.
8520         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
8521         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
8523         * elf/dl-minimal.c (malloc): Declare _end as hidden.
8524         (__errno_location): New function.  Declare errno as hidden.
8525         * elf/rtld.c (_dl_argc): Define as hidden.
8526         (_dl_skip_args): Define as hidden.
8527         (_begin, _end): Declare as hidden.
8528         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
8529         * sysdeps/generic/entry.h (_start): Declare as hidden.
8530         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
8531         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
8532         _dl_runtime_resolve and _dl_runtime_profile as hidden.
8533         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
8535 2002-03-14  Roland McGrath  <roland@frob.com>
8537         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
8539         * Makeconfig (%.v.i, %.v): New implicit rules.
8540         (preprocess-versions): Variable removed.
8541         ($(common-objpfx)shlib-versions.v.i): New target giving just the
8542         shlib-versions input files as dependencies.
8543         ($(common-objpfx)soversions.i): Depend on that instead of the input
8544         files.  Use it as input instead of using a pipeline.
8545         (postclean-generated): Append soversions.i, shlib-versions.v, and
8546         shlib-versions.v.i here.
8547         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
8548         the Versions.def input files as dependencies.
8549         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
8550         ($(common-objpfx)Versions.all): Depend on that instead of the input
8551         files.  Use it as input instead of using a pipeline.
8552         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
8553         (postclean-generated): Append those .v and .v.i files here.
8555 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
8557         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
8558         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
8559         Remove.
8561 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
8563         * sysdeps/generic/mp_clz_tab.c: New file.
8564         * sysdeps/i386/mp_clz_tab.c: New file.
8565         * sysdeps/hppa/mp_clz_tab.c: New file.
8566         * sysdeps/powerpc/mp_clz_tab.c: New file.
8567         * stdlib/Makefile (aux): Revert last patch.
8568         * math/Makefile (gmp-objs): Likewise.
8570 2002-03-13  Paul Eggert  <eggert@twinsun.com>
8572         * time/strftime.c: Comment fixes for references to obsolescent
8573         standards, In most cases the simplest fix is to remove the
8574         confusing comments.  Cross-referencing all the standards properly
8575         is a bit of a pain, and it should be enough to put that info in
8576         the documentation as I did in my recent time.texi patch.
8578 2002-03-13  Paul Eggert  <eggert@twinsun.com>
8580         * manual/time.texi (Formatting Calendar Time):
8581         ISO C99 also specifies the E and O modifiers.
8582         %P is a GNU extension, and is not in ISO C99.
8583         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
8584         %T is also in ISO C99.
8585         The RFC 822 example is not valid in arbitrary locales.
8586         Reword the POSIX.2 wording slightly, to make it a bit clearer
8587         that POSIX.2 formats are also supported by later POSIX versions.
8588         If a format was introduced in ISO C99 it is also required by
8589         POSIX.1-2001.
8591 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
8593         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
8594         _sys_nerr_internal with INTVARDEF2.
8595         * include/libc-symbols.h (INTVARDEF2): New macro.
8596         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
8597         (_sys_nerr_internal): Library.
8599         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
8600         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
8602         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
8604 2002-03-13  Wolfram Gloger  <wg@malloc.de>
8606         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
8608 2002-03-02  Andreas Schwab  <schwab@suse.de>
8610         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
8611         'h' flag and positional arg.
8612         * stdio-common/tst-printf.c (rfg3): New function to test
8613         positional arguments.
8614         (main): Fix some warnings.
8616 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
8618         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
8619         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8621 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
8623         * grp/initgroups.c (__nss_group_data): Declare as hidden.
8625         * include/locale.h (_nl_C_locobj): Declare as hidden.
8627         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
8628         * time/strptime.c (_nl_C_LC_TIME): Likewise.
8630         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
8632         * include/sys/gmon.h: Declare _gmonparam as hidden.
8634         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
8635         (__ctype32_wctrans): Likewise.
8636         (__ctype32_width): Likewise.
8638         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
8639         use of __ttyname.
8641         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
8642         Define as hidden.
8643         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
8644         hidden.  Change all users of these variables.
8646         * posix/regex_internal.h (__re_error_msgid): Renamed from
8647         re_error_msgid.  Declare as hidden.
8648         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
8649         hidden.
8651         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
8652         (__printf_function_table): Likewise.
8653         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
8654         hidden.
8655         (__printf_function_table): Likewise.
8657         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
8658         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
8660         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
8661         * nss/nsswitch.c: Declare _nss_*_database as hidden.
8663         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
8664         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
8666 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
8668         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
8669         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8670         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8671         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8672         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8673         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8674         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8675         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8676         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
8677         _nl_C_LC_CTYPE_width: Declare as hidden.
8678         * include/locale.h: Declare _nl_locale_file_list.
8679         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
8680         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
8681         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
8682         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
8683         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
8684         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
8685         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
8686         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
8687         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
8688         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
8689         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
8690         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
8691         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8692         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8693         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8694         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8695         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8696         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8697         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8698         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
8699         _nl_C_LC_CTYPE_width, and as hidden.
8700         * locale/findlocale.c: Declare _nl_C as hidden.
8701         * locale/newlocale.c: Likewise.
8702         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
8703         _nl_locale_file_list.
8704         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
8705         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
8706         Define _nl_C_locobj as hidden.
8708         * malloc/mtrace.c (_mtrace_file): Define as hidden.
8709         (_mtrace_line): Likewise.
8711         * include/time.h: Declare __mon_yday as hidden.
8712         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
8714         * libio/libioP.h: Declare __libio_codecvt as hidden.
8715         * libio/fileops.c: Declare __libio_translit as hidden.
8716         * libio/iofwide.c: Define __libio_translit as hidden.
8718         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
8719         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
8720         * login/getutline_r.c: Likewise.
8721         * login/utmpname.c: Likewise.
8723         * login/utmp-private.h: Declare __libc_utmp_file_functions,
8724         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
8725         __libc_utmp_file_name as hidden.
8727         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
8728         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
8729         * locale/freelocale.c: Likewise.
8730         * locale/lc-time.c: Likewise.
8732         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
8733         (__libc_ptyname2): Likewise.
8734         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
8735         hidden.
8736         (__libc_ptyname2): Likewise.
8738         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
8739         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
8740         * sysdeps/generic/init-first.c: Likewise.
8741         * sysdeps/i386/init-first.c: Likewise.
8742         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8743         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8744         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8745         * sysdeps/sh/init-first.c: Likewise.
8746         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8747         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8749         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8750         (_itowa_upper_digits): Likewise.
8752         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8753         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8754         as hidden.
8756         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8757         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8758         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8759         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8761         * gmon/gmon.c (__bb_head): Define as hidden.
8762         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8764         * argp/argp-parse.c (_argp_hang): Define as static.
8766         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8767         handling in latest compilers.
8769         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8770         define alias.
8771         * libio/fileops.c (_IO_file_jumps): Likewise.
8772         * libio/stdfiles.c (_IO_list_all): Likewise.
8773         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8775         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8776         include/malloc.h.
8777         * include/malloc.h: Add __libc_malloc_initialized declaration
8778         here.  Mark variable hidden.
8779         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8781         * elf/dl-open.c (__libc_argc): Declare as hidden.
8782         (__libc_argv): Likewise.
8783         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8784         (__libc_argv): Likewise.
8785         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8786         __libc_argv as hidden.
8787         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8788         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8789         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8790         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8792         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8793         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8794         * stdlib/erand48.c: Likewise.
8795         * stdlib/jrand48.c: Likewise.
8796         * stdlib/lcong48.c: Likewise.
8797         * stdlib/lrand48.c: Likewise.
8798         * stdlib/mrand48.c: Likewise.
8799         * stdlib/nrand48.c: Likewise.
8800         * stdlib/seed48.c: Likewise.
8801         * stdlib/srand48.c: Likewise.
8803         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8804         (_itoa_lower_digits_internal): New declaration.
8805         (_itoa_upper_digits_internal): New declaration.
8806         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8807         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8808         (_itoa_upper_digits_internal): New declaration.
8809         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8810         _itoa_lower_digits.
8811         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8812         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8814         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8815         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8817         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8818         (_itowa_lower_digits): Likewise.
8819         (_itowa_upper_digits): Likewise.
8820         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8821         (_itowa_upper_digits): Likewise.
8823         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8824         not already defined.
8825         (GERMANIC_PLURAL): Declare as hidden.
8827         * posix/getopt.c (__getopt_initialized): Declare as hidden.
8828         (attribute_hidden): Define as empty macro if not already defined.
8830         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8831         (__gconv_max_path_elem_len): Likewise.
8832         (__gconv_path_envvar): Likewise.
8834         * math/Makefile (gmp-objs): Remove mp_clz_tab.
8835         * stdlib/Makefile (aux): Remove mp_clz_tab.
8836         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
8838         * stdlib/exit.h (__exit_funcs): Declare as hidden.
8840         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8842         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8843         _nl_category_names, _nl_category_name_sizes, _nl_current,
8844         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8846         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8847         (_nl_current_default_domain): Likewise
8848         (_nl_state_lock): Likewise.
8849         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8850         (_nl_current_default_domain): Likewise
8851         (_nl_state_lock): Likewise.
8852         * intl/bindtextdom.c (_nl_state_lock): Likewise.
8854         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8855         (_fpioconst_pow10): Likewise.
8857         * include/time.h (_tmbuf): Add attribute_hidden.
8859         * time/tzset.c (tzstring_list): Define as static.
8861         * include/time.h: Add attribute_hidden to __tzname_cur_max and
8862         __use_tzfile declaration.
8864         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8865         and __wcsmbs_last_locale declaration.
8867 2002-02-25  Paul Eggert  <eggert@twinsun.com>
8869         * timezone/Makefile (tzbases): Move systemv from here...
8870         (tzlinks): to here, since the entries in systemv were all changed
8871         from Zone to Link lines in tz-2001a.  Bug reported (and patch
8872         tested) by Peter Breitenlohner.
8874 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
8876         * time/tst-posixtz.c (tests): Add new tests.
8877         (main): Test whether tzset() sets daylight properly.
8879 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8881         * time/tzset.c (tz_compute): Move __daylight, __tzname and
8882         __tzname_cur_max setting...
8883         (tzset_internal): ...here.
8885 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8887         * time/tzset.c (compute_change): Don't return any value.
8888         (tz_compute): Likewise.  Don't handle southern hemisphere here.
8889         (__tz_convert): But here.
8891 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8893         * manual/examples/mkfsock.c: Include <string.h> as well.
8894         Patch by Alain De Carolis <alaind@wseurope.com>.
8896 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
8898         * posix/regexec.c (re_match): Fix incorrect register sizes.
8899         (re_search): Likewise.
8901 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8903         * posix/regcomp.c (regfree): Remove a disused condition.
8904         * posix/regex_internal.c (re_acquire_state): Likewise.
8905         (re_acquire_state_context): Likewise.
8906         (register_state): Remove a redundant malloc invocation.
8907         * posix/regex_internal.h: (re_state_table_entry): Simplify
8908         the structure.
8910 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8912         * posix/regcomp.c (regcomp): Add __builtin_expect to error
8913         handling conditions.
8914         (regerror): Likewise.
8915         (regfree): Likewise.
8916         (re_compile_internal): Likewise.
8917         (init_dfa): Likewise.
8918         (init_word_char): Likewise.
8919         (create_initial_state): Likewise.
8920         (analyze): Likewise.
8921         (analyze_tree): Likewise.
8922         (duplicate_node): Likewise.
8923         (calc_eclosure): Likewise.
8924         (calc_eclosure_iter): Likewise.
8925         (parse): Likewise.
8926         (parse_reg_exp): Likewise.
8927         (parse_branch): Likewise.
8928         (parse_expression): Likewise.
8929         (parse_subexp): Likewise.
8930         (parse_dup_op): Likewise.
8931         (parse_bracket_exp): Likewise.
8932         (build_equiv_class): Likewise.
8933         (build_charclass): Likewise.
8934         (build_word_op): Likewise.
8935         (fetch_number): Likewise.
8936         (create_tree): Likewise.
8937         (duplicate_tree): Likewise.
8938         * posix/regex.c (BE): New macro.
8939         * posix/regexec.c (re_match): Add __builtin_expect to error
8940         handling conditions.
8941         (re_match_2): Likewise.
8942         (re_search): Likewise.
8943         (re_search_internal): Likewise.
8944         (check_matching): Likewise.
8945         (proceed_next_node): Likewise.
8946         (set_regs): Likewise.
8947         (sift_states_backward): Likewise.
8948         (add_epsilon_backreference): Likewise.
8949         (transit_state): Likewise.
8950         (transit_state_sb): Likewise.
8951         (transit_state_mb): Likewise.
8952         (transit_state_bkref): Likewise.
8953         (transit_state_bkref_loop): Likewise.
8954         (build_trtable): Likewise.
8955         (group_nodes_into_DFAstates): Likewise.
8956         (match_ctx_init): Likewise.
8957         (match_ctx_add_entry): Likewise.
8958         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8959         to error handling conditions.
8960         (re_string_construct_toupper): Likewise.
8961         (build_wcs_buffer): Likewise.
8962         (build_wcs_upper_buffer): Likewise.
8963         (build_upper_buffer): Likewise.
8964         (re_string_translate_buffer): Likewise.
8965         (re_node_set_alloc): Likewise.
8966         (re_node_set_init_1): Likewise.
8967         (re_node_set_init_2): Likewise.
8968         (re_node_set_init_copy): Likewise.
8969         (re_node_set_intersect): Likewise.
8970         (re_node_set_init_union): Likewise.
8971         (re_node_set_merge): Likewise.
8972         (re_node_set_insert): Likewise.
8973         (re_dfa_add_node): Likewise.
8974         (re_acquire_state): Likewise.
8975         (re_acquire_state_context): Likewise.
8976         (create_new_state_common): Likewise.
8977         (register_state): Likewise.
8978         (create_ci_new_state): Likewise.
8979         (create_cd_new_state): Likewise.
8980         (re_string_context_at): Remove redundant condition.
8982 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8984         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8986         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8988 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
8990         * sysdeps/i386/elf/configure.in: Fix comment.
8992         * sysdeps/sparc/sparc64/configure.in: New file.
8993         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8994         if .dynamic comes before .got.
8995         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8997         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8998         HP_TIMING_ACCUM): Fix typos.
9000 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
9002         * string/strfry.c: Add some more randomness to the seed.
9003         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
9005         * po/es.po: Update from translation team.
9006         * po/fr.po: Likewise.
9008         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
9010         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
9011         when determining type of format.
9012         Patch by James Antill <james@anqd.org> [PR libc/2787].
9014 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
9016         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
9018 2002-03-11  Roland McGrath  <roland@frob.com>
9020         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
9022         * Versions.def (libc): Add GLIBC_2.2.6.
9023         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
9024         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
9025         __errno_location instead of __hurd_errno_location, and don't inline it.
9026         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
9027         * hurd/errno.c: New file.
9028         * hurd/Makefile (routines): Add errno.
9030 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
9032         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
9033         ridiculously large widths and precisions [PR libc/3026].
9035 2002-03-11  Andreas Jaeger  <aj@suse.de>
9037         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
9038         support.
9039         Patch by Susanne Oberhauser <froh@SuSE.de>.
9041 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
9043         * inet/rexec.c (ahostbuf): Define as static.
9045         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
9046         (__ctype32_wctrans): Likewise.
9047         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
9048         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
9049         (__ctype32_wctrans): Likewise.
9050         (__ctype32_width): Likewise.
9052         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
9053         They were never exported anyway.
9055         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
9056         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
9057         exported.
9058         * include/sys/gmon.h: Declare _gmonparam.
9060         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
9061         symbols for getdents64.  They were never exported.
9063 2002-03-09  Roland McGrath  <roland@frob.com>
9065         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
9066         Reported by Jon Arney <jarney1@cox.net>.
9068 2002-02-23  Roland McGrath  <roland@frob.com>
9070         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
9071         declaration.
9072         (__hurd_errno_location): Function removed.
9074 2002-03-06  Andreas Jaeger  <aj@suse.de>
9076         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
9077         32-bit.
9079 2002-03-04  Andreas Jaeger  <aj@suse.de>
9081         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
9083         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
9084         x86-64.
9086         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
9088         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
9090         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
9092         * sysdeps/x86_64/bits/setjmp.h: New file.
9094         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
9096         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
9098         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
9099         for x86.
9100         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
9101         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
9103 2002-02-28  Bo Thorsen  <bo@suse.de>
9105         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
9106         version.
9108 2002-03-03  Andreas Jaeger  <aj@suse.de>
9110         * sysdeps/x86_64/bits/wordsize.h: New file.
9112         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
9113         * elf/tst-tlsmod1.c: Likewise.
9115         * posix/regcomp.c: Get regex.h from include dir for internal
9116         prototypes.
9118         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
9119         to libc-internal.h and include it.
9120         * include/libc-internal.h: Add __init_misc.
9122         * misc/init-misc.c: Include libc-internal.h for prototypes.
9124         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
9126         * misc/error.c [_LIBC]: Include libioP.h for prototype of
9127         _IO_putc_internal.
9129 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
9131         * posix/regcomp.c: Compatibility changes to allow using the code
9132         outside glibc.
9134 2002-02-28  Hartvig Ekner <hartvige@mips.com>
9136         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
9137         compiled non-PIC.
9139 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
9141         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
9142         of .str elements in the returned data structure.
9144         * elf/elf.h: Add Alpha TLS bits.
9146 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
9148         * sysdeps/unix/sysv/linux/nice.c: New file.
9150 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
9152         * elf/Makefile (dl-routines): Add dl-origin.
9153         (elide-routines.os): Add dl-origin.
9154         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
9155         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
9156         _dl_debug_state.
9157         * include/libc-symbols.c: Define attribute_hidden depending on
9158         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
9160         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
9161         * elf/dl-load.c: Likewise.
9162         * elf/rtld.c: Likewise.
9163         * include/unistd.h: Declare __libc_enable_secure_internal.
9164         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
9165         Use INTUSE with __libc_enable_secure.
9166         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
9168         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
9169         * elf/dl-error.c: Likewise,
9170         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
9172         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
9173         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
9174         function definition.  Use INTDEF with _dl_get_origin.
9175         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9177         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
9178         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
9180         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
9181         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
9182         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
9184         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
9185         * elf/dl-deps.c: Likewise.
9186         * elf/dl-error.c: Likewise.
9187         * elf/dl-fini.c: Likewise.
9188         * elf/dl-init.c: Likewise.
9189         * elf/dl-load.c: Likewise.
9190         * elf/dl-lookup.c: Likewise.
9191         * elf/dl-reloc.c: Likewise.
9192         * elf/dl-version.c: Likewise.
9193         * elf/do-lookup.h: Likewise.
9194         * sysdeps/arm/dl-machine.h: Likewise.
9195         * sysdeps/cris/dl-machine.h: Likewise.
9196         * sysdeps/hppa/dl-machine.h: Likewise.
9197         * sysdeps/i386/dl-machine.h: Likewise.
9198         * sysdeps/m68k/dl-machine.h: Likewise.
9199         * sysdeps/powerpc/dl-machine.h: Likewise.
9200         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9201         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9202         * sysdeps/sh/dl-machine.h: Likewise.
9203         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
9204         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
9205         * sysdeps/x86_64/dl-machine.h: Likewise.
9206         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
9207         _dl_argv[0].  Use INTUSE with _dl_argv.
9208         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
9209         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
9211 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
9213         * elf/rtld.c (_rtld_global): Remove .protected.
9214         (_rtld_local): Strong alias to _rtld_global.
9215         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
9216         only .os object.
9217         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
9218         _rtld_local instead of _rtld_global.
9219         (_rtld_local): Add hidden extern, possibly in .sdata section.
9220         * configure.in: Add tests for visibility attribute and .sdata.
9221         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
9222         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
9223         * sysdeps/arm/dl-machine.h: Likewise.
9224         * sysdeps/generic/ldsodefs.h: Likewise.
9225         * sysdeps/hppa/dl-machine.h: Likewise.
9226         * sysdeps/cris/dl-machine.h: Likewise.
9227         * sysdeps/i386/dl-machine.h: Likewise.
9228         * sysdeps/ia64/dl-machine.h: Likewise.
9229         * sysdeps/m68k/dl-machine.h: Likewise.
9230         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9231         * sysdeps/mips/dl-machine.h: Likewise.
9232         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9233         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9234         * sysdeps/sh/dl-machine.h: Likewise.
9235         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9236         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9237         * sysdeps/x86_64/dl-machine.h: Likewise.
9239 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
9241         * login/login.c (login): Always initialize ut_line field
9242         [PR libc/2991].
9244 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
9246         * sysdeps/i386/Makefile (sysdep_routines): Add
9247         divdi3 in csu dir.
9248         (shared-only-routines): Likewise.
9249         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
9250         (shared-only-routines): Likewise.
9251         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
9252         (shared-only-routines): Likewise.
9253         * sysdeps/wordsize-32/divdi3.c: New file.
9255 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
9257         * locale/iso-4217.def: Remove obsolete currencies for countries
9258         with Euro.
9260 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
9262         * posix/regcomp.c (regcomp): Remove a redundant condition.
9263         (init_word_char): Add a check on malloc failure.
9264         (create_initial_state): Likewise.
9265         (duplicate_node): Likewise.
9266         (calc_eclosure): Likewise.
9267         (calc_eclosure_iter): Likewise.
9268         (parse_expression): Likewise.
9269         (parse_bracket_exp): Remove unnecessary malloc invocations.
9270         (build_equiv_class): Likewise.
9271         (build_charclass): Likewise.
9272         * posix/regex_internal.c (re_node_set_intersect): Add a check
9273         on malloc failure.
9274         (re_node_set_add_intersect): Likewise.
9275         (re_node_set_merge): Likewise.
9276         (re_acquire_state): Likewise.
9277         (re_acquire_state_context): Likewise.
9278         (create_newstate_common): Likewise.
9279         (register_state): Likewise.
9280         (create_ci_newstate): Likewise.
9281         (create_cd_newstate): Likewise.
9282         * posix/regex_internal.h: Fix prototypes of re_acquire_state
9283         and re_acquire_state_context.
9284         * posix/regexec.c (regexec): Suit it to the error handling of
9285         re_search_internal.
9286         (re_match): Likewise.
9287         (re_search): Likewise.
9288         (re_search_internal): Add a check on malloc failure.
9289         (acquire_init_state_context): Likewise.
9290         (check_matching): Likewise.
9291         (proceed_next_node): Likewise.
9292         (set_regs): Likewise.
9293         (sift_states_backward): Likewise.
9294         (sift_states_iter_bkref): Likewise.
9295         (add_epsilon_backreference): Likewise.
9296         (transit_state): Likewise.
9297         (transit_state_sb): Likewise.
9298         (transit_state_mb): Likewise.
9299         (transit_state_bkref_loop): Likewise.
9300         (build_trtable): Likewise.
9301         (group_nodes_into_DFAstates): Likewise.
9302         (match_ctx_init): Likewise.
9303         (match_ctx_add_entry): Likewise.
9305 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
9307         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
9308         l_libname if profiling is enabled [PR libc/2916].
9310         * sysdeps/ia64/dl-tls.h: New file.
9312 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
9314         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
9315         Work around an Alpha gas bug.
9317 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
9319         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
9320         uses read to load the catalog.
9321         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
9323 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
9325         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
9326         regex_internal.c, and regex_internal.h.
9327         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
9328         * posix/regex.c: Complete rewrite.
9329         * posix/regexec.c: New file.
9330         * posix/regcomp.c: New file.
9331         * posix/regex_internal.c: New file.
9332         * posix/regex_internal.h: New file.
9333         * posix/regex.h (RE_ICASE): New macro.
9334         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
9336         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
9337         ungetwc.  It's a macro.
9338         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
9339         implementation.
9340         Reported by Jason Merrill <jason@redhat.com>.
9342 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
9344         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
9345         position to fp->_offset if it is set.
9346         * stdio-common/Makefile (tests): Add tst-fdopen.
9347         * stdio-common/tst-fdopen.c: New test.
9349 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
9351         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
9352         * stdio-common/tst-ungetc.c (main): Add another test.
9354 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
9356         * assert/assert-perr.c: Use INTUSE to reference functions and variables
9357         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
9358         aliases.  Add prototypes for the new aliases.
9359         * assert/assert.c: Likewise.
9360         * include/libc-symbols.h: Likewise.
9361         * include/stdio.h: Likewise.
9362         * include/netinet/in.h: Likewise.
9363         * include/rpc/auth.h: Likewise.
9364         * include/rpc/auth_unix.h: Likewise.
9365         * include/rpc/key_prot.h: Likewise.
9366         * include/rpc/pmap_prot.h: Likewise.
9367         * include/rpc/pmap_rmt.h: Likewise.
9368         * include/rpc/rpc_msg.h: Likewise.
9369         * include/rpc/xdr.h: Likewise.
9370         * inet/gethstbyad_r.c: Likewise.
9371         * inet/gethstbynm2_r.c: Likewise.
9372         * inet/gethstbynm_r.c: Likewise.
9373         * inet/gethstent_r.c: Likewise.
9374         * inet/in6_addr.c: Likewise.
9375         * libio/__fpurge.c: Likewise.
9376         * libio/filedoalloc.c: Likewise.
9377         * libio/fileops.c: Likewise.
9378         * libio/ftello.c: Likewise.
9379         * libio/ftello64.c: Likewise.
9380         * libio/genops.c: Likewise.
9381         * libio/iofclose.c: Likewise.
9382         * libio/iofdopen.c: Likewise.
9383         * libio/iofflush.c: Likewise.
9384         * libio/iofflush_u.c: Likewise.
9385         * libio/iofgetpos.c: Likewise.
9386         * libio/iofgetpos64.c: Likewise.
9387         * libio/iofgets.c: Likewise.
9388         * libio/iofgets_u.c: Likewise.
9389         * libio/iofopen.c: Likewise.
9390         * libio/iofopncook.c: Likewise.
9391         * libio/iofputs.c: Likewise.
9392         * libio/iofread.c: Likewise.
9393         * libio/iofread_u.c: Likewise.
9394         * libio/iofsetpos.c: Likewise.
9395         * libio/iofsetpos64.c: Likewise.
9396         * libio/ioftell.c: Likewise.
9397         * libio/iofwrite.c: Likewise.
9398         * libio/iogetline.c: Likewise.
9399         * libio/iogets.c: Likewise.
9400         * libio/iogetwline.c: Likewise.
9401         * libio/iolibio.h: Likewise.
9402         * libio/iopadn.c: Likewise.
9403         * libio/iopopen.c: Likewise.
9404         * libio/ioseekoff.c: Likewise.
9405         * libio/ioseekpos.c: Likewise.
9406         * libio/iosetbuffer.c: Likewise.
9407         * libio/iosetvbuf.c: Likewise.
9408         * libio/ioungetc.c: Likewise.
9409         * libio/ioungetwc.c: Likewise.
9410         * libio/iovdprintf.c: Likewise.
9411         * libio/iovsprintf.c: Likewise.
9412         * libio/iovsscanf.c: Likewise.
9413         * libio/libioP.h: Likewise.
9414         * libio/memstream.c: Likewise.
9415         * libio/obprintf.c: Likewise.
9416         * libio/oldfileops.c: Likewise.
9417         * libio/oldiofclose.c: Likewise.
9418         * libio/oldiofdopen.c: Likewise.
9419         * libio/oldiofgetpos.c: Likewise.
9420         * libio/oldiofgetpos64.c: Likewise.
9421         * libio/oldiofopen.c: Likewise.
9422         * libio/oldiofsetpos.c: Likewise.
9423         * libio/oldiofsetpos64.c: Likewise.
9424         * libio/oldiopopen.c: Likewise.
9425         * libio/oldstdfiles.c: Likewise.
9426         * libio/putc.c: Likewise.
9427         * libio/setbuf.c: Likewise.
9428         * libio/setlinebuf.c: Likewise.
9429         * libio/stdfiles.c: Likewise.
9430         * libio/stdio.c: Likewise.
9431         * libio/strops.c: Likewise.
9432         * libio/vasprintf.c: Likewise.
9433         * libio/vscanf.c: Likewise.
9434         * libio/vsnprintf.c: Likewise.
9435         * libio/vswprintf.c: Likewise.
9436         * libio/wfiledoalloc.c: Likewise.
9437         * libio/wfileops.c: Likewise.
9438         * libio/wgenops.c: Likewise.
9439         * libio/wstrops.c: Likewise.
9440         * malloc/mtrace.c: Likewise.
9441         * misc/error.c: Likewise.
9442         * misc/syslog.c: Likewise.
9443         * nss/getXXbyYY_r.c: Likewise.
9444         * nss/getXXent_r.c: Likewise.
9445         * nss/hosts-lookup.c: Likewise.
9446         * stdio-common/getw.c
9447         * stdio-common/printf-prs.c: Likewise.
9448         * stdio-common/printf_fp.c: Likewise.
9449         * stdio-common/printf_size.c: Likewise.
9450         * stdio-common/putw.c: Likewise.
9451         * stdio-common/scanf.c: Likewise.
9452         * stdio-common/sprintf.c: Likewise.
9453         * stdio-common/tmpfile64.c: Likewise.
9454         * stdio-common/vfprintf.c: Likewise.
9455         * stdio-common/vfscanf.c: Likewise.
9456         * stdlib/strfmon.c: Likewise.
9457         * sunrpc/auth_des.c: Likewise.
9458         * sunrpc/auth_none.c: Likewise.
9459         * sunrpc/auth_unix.c: Likewise.
9460         * sunrpc/authdes_prot.c: Likewise.
9461         * sunrpc/authuxprot.c: Likewise.
9462         * sunrpc/clnt_perr.c: Likewise.
9463         * sunrpc/clnt_raw.c: Likewise.
9464         * sunrpc/clnt_tcp.c: Likewise.
9465         * sunrpc/clnt_udp.c: Likewise.
9466         * sunrpc/clnt_unix.c: Likewise.
9467         * sunrpc/key_call.c: Likewise.
9468         * sunrpc/key_prot.c: Likewise.
9469         * sunrpc/openchild.c: Likewise.
9470         * sunrpc/pm_getmaps.c: Likewise.
9471         * sunrpc/pm_getport.c: Likewise.
9472         * sunrpc/pmap_clnt.c: Likewise.
9473         * sunrpc/pmap_prot.c: Likewise.
9474         * sunrpc/pmap_prot2.c: Likewise.
9475         * sunrpc/pmap_rmt.c: Likewise.
9476         * sunrpc/rpc_cmsg.c: Likewise.
9477         * sunrpc/rpc_prot.c: Likewise.
9478         * sunrpc/svc_authux.c: Likewise.
9479         * sunrpc/svc_raw.c: Likewise.
9480         * sunrpc/svc_simple.c: Likewise.
9481         * sunrpc/svc_tcp.c: Likewise.
9482         * sunrpc/svc_udp.c: Likewise.
9483         * sunrpc/svc_unix.c: Likewise.
9484         * sunrpc/xdr.c: Likewise.
9485         * sunrpc/xdr_array.c: Likewise.
9486         * sunrpc/xdr_mem.c: Likewise.
9487         * sunrpc/xdr_rec.c: Likewise.
9488         * sunrpc/xdr_ref.c: Likewise.
9489         * sunrpc/xdr_stdio.c: Likewise.
9490         * sysdeps/generic/_strerror.c: Likewise.
9491         * sysdeps/generic/printf_fphex.c: Likewise.
9492         * sysdeps/generic/tmpfile.c: Likewise.
9493         * sysdeps/gnu/errlist.awk: Likewise.
9494         * sysdeps/gnu/errlist.c: Likewise.
9496         * libio/Makefile (routines): Remove iosprint.
9497         * libio/iosprintf.c: Removed
9500 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
9502         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
9503         non_dynamic_init and exported now.
9504         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
9505         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
9506         !SHARED.
9507         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
9508         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
9509         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
9511 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
9513         * elf/dl-close.c (free_slotinfo): Check for end of list and return
9514         true in this case.
9516         * locale/iso-639.def: Add language codes for Walloon.
9518         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
9519         total number of relocations performed.
9521         * elf/sprof.c (load_profdata): If do_test provide information as
9522         to why loading failed.
9523         * elf/dl-profile.c (_dl_start_profile): Initialize all of
9524         hist_hdr.dimen.
9526         * csu/set-init.c: Moved to...
9527         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
9528         * csu/Makefile: Don't compile set-init.
9529         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
9530         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
9531         to __libc_init.
9532         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
9533         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
9534         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
9535         __libc_init.
9536         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
9537         __libc_subinit.
9539 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
9541         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
9542         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
9543         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
9544         (_dl_deallocate_tls): New function.
9545         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
9546         _dl_deallocate_tls.
9548 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
9550         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
9551         * stdio-common/tst-fseek.c (main): Add test for this.
9553 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
9555         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
9557 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
9559         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
9560         pointer before dereferencing.
9562 2002-02-18  Roland McGrath  <roland@frob.com>
9564         * sysdeps/mach/hurd/times.c: Fix typo in last change.
9566         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
9567         Use task_policy in place of task_priority.
9569         * sysdeps/generic/bits/mman.h
9570         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
9571         * sysdeps/mach/msync.c: New file.
9573         * sysdeps/mach/powerpc/syscall.S: New file.
9575         * mach/msg.c [MACH_MSG_OVERWRITE]
9576         (__mach_msg_trap, __mach_msg_overwrite): New functions.
9577         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
9579         * sysdeps/mach/configure.in: Check for clock.defs to put into
9580         mach_interface_list.
9581         * sysdeps/mach/configure: Regenerated.
9583         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
9584         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
9585         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
9586         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
9587         (mach-shortcuts): Add device_read_overwrite_request,
9588         device_read_overwrite, vm_read_overwrite, thread_switch.
9590         * configure.in (base_machine): Set to $machine by default.
9591         * configure: Regenerated.
9593         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
9594         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
9595         * sysdeps/mach/configure: Regenerated.
9596         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
9598         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
9600         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
9602         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
9603         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
9605 2002-02-17  Roland McGrath  <roland@frob.com>
9607         * sysdeps/mach/hurd/times.c
9608         [NO_CREATION_TIME] (startup_time): New static variable.
9609         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
9610         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
9611         creation_time from task_basic_info.
9612         (__times): Use __gettimeofday instead of __host_get_time.
9614         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
9615         Use untyped Mach IPC message format.
9617         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
9619         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
9620         _S_catch_exception_raise_state_identity,
9621         _hurdsig_fault_catch_exception_raise_state,
9622         _hurdsig_fault_catch_exception_raise_state_identity.
9624         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
9626         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
9627         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
9629         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
9630         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
9632         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
9633         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
9634         them as no-op macros.
9635         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
9636         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
9638         * sysdeps/powerpc/dl-machine.h
9639         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
9641         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
9642         Use untyped Mach IPC message format.
9644         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
9645         Handle untyped Mach IPC message formats.
9647         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
9648         Expect different argument conventions when this is defined.
9649         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
9650         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
9651         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
9652         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
9653         for OSF Mach variant.
9654         (faulted): Use mig_reply_error_t for REPLY.
9655         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
9656         in __thread_set_exception_ports call.
9657         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
9658         __mach_port_set_attributes in place of __mach_port_set_qlimit.
9660         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
9661         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
9662         on Darwin, which includes bogons.
9664         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
9665         variable LOADBASE so it's not declared when it's not used.
9667 2002-02-16  Roland McGrath  <roland@frob.com>
9669         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
9670         to use BI.creation_time.
9672         * mach/Machrules (MIG): Add -x c to CPP value passed down.
9674         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
9675         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
9676         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
9677         host_page_size instead of vm_statistics.
9679         * sysdeps/mach/Makefile (mach-before-compile): Don't include
9680         mach_interface.h here, since not all variants use that name.
9682         * sysdeps/mach/configure.in: Add some checks for Mach headers
9683         to ensure a sane installation.
9684         (mach_interface_list): Define this variable by checking for .defs
9685         files found in various variants.
9686         * configure.in (mach_interface_list): AC_SUBST this.
9687         * config.make.in (mach-interface-list): New substituted variable.
9688         * mach/Makefile (user-interfaces): Define this using the value
9689         of $(mach-interface-list) instead of mach, mach4.
9690         Updated other references to mach_interface to use it as well.
9692         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
9694         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
9695         mig_reply_error_t for OSF Mach variant.
9697         * mach/Makefile (routines): Remove bootprivport.
9698         * mach/bootprivport.c: File removed.  It has never been used.
9700         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
9701         Grok the OSF flavor of message format.
9702         (mach_msg_destroy_port): For MAKE_SEND and
9703         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
9704         no-senders notification.
9706 2002-02-06  Roland McGrath  <roland@frob.com>
9708         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
9709         to here if 2.0 compatibility enabled ...
9710         (libc: GLIBC_2.1.3): ... from here.
9712 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
9714         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
9715         generation counter.
9716         * elf/dl-close.c (_dl_close): Likewise.
9718 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
9720         * elf/Makefile: Add rules to build and run tst-tls8.
9721         * elf/tst-tls8.c: New file.
9722         * elf/tst-tlsmod4.c: New file.
9724         * stdlib/test-a64l.c (tests): Add more test cases.
9726         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
9727         Reported by Walter Harms <WHarms@bfs.de>.
9729 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
9731         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
9732         definitions for struct sigcontext.
9733         Suggested by David Mosberger-Tang.
9735 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9737         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
9738         for removing reference of module in slotinfo list.
9739         (_dl_close): Use remove_slotinfo.
9740         * sysdeps/generic/dl-tls.c: General pretty printing.
9741         (oom): Define only if SHARED.
9742         (_dl_next_tls_modid): Correct starting point for the case we assume
9743         there is a gap.  Add missing instruction grouping (doh!).  Correct
9744         tests for reaching maximum index.
9745         * elf/Makefile: Add rules to build and run tst-tls7.
9746         * elf/tst-tls7.c: New file.
9747         * elf/tst-tlsmod3.c: New file.
9749         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9750         USE_TLS.
9751         * elf/tst-tlsmod2.c: Likewise.
9753         * elf/dl-close.c (_dl_close): When closing an object using TLS
9754         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9755         true.  Increment dl_tls_generation only if we closed any TLS-using
9756         object.
9757         * elf/tst-tls6.c: New file.
9758         * elf/Makefile: Add rules to build and run tst-tls6.
9760         * po/da.po: Update from translation team.
9762         * locale/categories.def: Fix typo [PR libc/2948].
9763         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9764         [PR libc/2949].
9765         * locale/iso-4217.def: Update from official version [PR libc/2950].
9766         * glibcbug.in: Honor TMPDIR [PR libc/2951].
9767         * locale/programs/ld-collate.c (collate_finish): Bail out with a
9768         message if input is too confusion instead of using assert.
9769         (collate_read): Don't crash on unknown symbol [PR libc/2952].
9770         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9772         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9773         * elf/tst-tls2.c: Likewise.
9774         * elf/tst-tls3.c: Likewise.
9776 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
9778         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9780 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9782         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9783         if this is really necessary.
9785         * elf/dl-close.c (_dl_close): Implement freeing entries in the
9786         slotinfo array.
9787         (free_mem): Free memory for the slotinfo array if possible.
9789 2002-02-12  Andreas Schwab  <schwab@suse.de>
9791         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9793 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
9795         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9796         TLS_DTV_UNALLOCATE.
9797         (oom): New function.
9798         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9799         (_dl_determine_tlsoffset): Likewise.
9800         (_dl_allocate_tls): Likewise.
9801         (__TLS_GET_ADDR): Define if not already defined.
9802         (_dl_tls_symaddr): New function.
9803         (allocate_and_init): New function.
9804         (__tls_get_addr): Actually implement handling of generation counter
9805         and deferred allocation.
9806         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9807         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9808         _dl_tls_generation.
9809         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9810         Declare _dl_tls_symaddr.
9811         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9812         SHARED.
9813         * include/link.h (struct link_map):  Remove l_tls_nextimage and
9814         l_tls_previmage.
9815         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9816         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9817         (_dl_vsym): Likewise.
9818         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9819         layout.
9820         (dl_main): Allow PT_TLS be present for empty segment.  Remove
9821         nextimage list handling.  Instead add all modules using TLS to
9822         dl_tls_dtv_slotinfo_list.
9823         * elf/dl-open.c (dl_open_worker): After successfully loading all
9824         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9825         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9826         empty segment don't do anything.  Remove handling of initimage list.
9827         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9828         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9829         * elf/dl-minimal.c: Define __libc_memalign.
9830         * elf/dl-support.c: Remove _dl_initimage_list.  Add
9831         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9832         _dl_tls_generation.
9833         * include/stdlib.h: Declare __libc_memalign.
9835         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9836         * elf/tst-tls4.c: New file.
9837         * elf/tst-tls5.c: New file.
9838         * elf/tst-tlsmod2.c: New file.
9840         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9842         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9844         * elf/tst-tls1.c: Use test-skeleton.c.
9845         * elf/tst-tls2.c: Likewise.
9846         * elf/tst-tls3.c: Likewise.
9848         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9850 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
9852         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9854 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
9856         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9858         * elf/tst-tls3.c: New file.
9859         * elf/tst-tlsmod1.c: New file.
9860         * elf/Makefile: Add rules to build and run tst-tls3.
9862         * sysdeps/i386/dl-machine.h: Include <tls.h>.
9863         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9864         TLS relocations.
9866         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9868         * po/fr.po: Update from translation team.
9870         * elf/tls-macros.h: Add alternative macros for use in PIC.
9872         * elf/dl-lookup.c: Include <tls.h>.
9873         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9875         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9876         required by passing pointer to last element of the list.
9878         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9879         l_tls_initimage to a place where it actually is performed.
9881         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9882         after globfree() calls.
9884         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9885         (openaux): Pass open_mode as new last argument to _dl_map_object.
9886         (_dl_map_object_deps): Add new argument open_mode.  Initialize
9887         open_mode element of args variable with it.
9888         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9889         _dl_map_object_deps.
9890         * elf/rtld.c (dl_main): Add zero as last parameter to
9891         _dl_map_object_deps call.
9892         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9893         * elf/nodlopen2.c: New file.
9894         * elf/nodlopenmod2.c: New file.
9895         * elf/Makefile: Add rules to build and run nodlopen2.
9897         * elf/tst-tls1.c: Move TLS helper macros to...
9898         * elf/tls-macros.h: ...here.  New file.
9899         * elf/tst-tls2.c: New file.
9900         * elf/Makefile (tests): Add tst-tls2.
9901         (distribute): Add tls-macros.h.
9903         * po/sv.po: Update from translation team.
9905         * elf/tst-tls1.c (main): Add complete set of tests.  Split
9906         architecture specific definitions from the actual test code.
9908         * po/tr.po: Update from translation team.
9910 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
9912         * elf/Makefile (tests): Add tst-tls1.
9913         * elf/tst-tls1.c: New file.
9915         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9916         alignment of TCB for now.
9918         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9919         initialization image for the application itself.
9921         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9922         loop to initialize TLS block.
9924 2002-02-08  Richard Henderson  <rth@redhat.com>
9926         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9927         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9929         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9931 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
9933         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9935 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
9937         * po/ca.po: Update from translation team.
9938         * po/sk.po: Likewise.
9940         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9941         (dl_main): Move dtv/static TLS handling before relocation.
9942         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
9943         TLS_INIT_TP to allocate and install the dtv/static TLS block.
9944         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9945         so far uses TLS initialize GL(dl_tls_static_size) and
9946         GL(dl_tls_static_align) to account for the TCB.
9947         (_dl_allocate_tls): New function.
9948         * sysdeps/generic/ldsodefs.h (rtld_global): Add
9949         _dl_initial_dtv_malloced.
9951         * configure.in: Test for __builtin_memset more realistically.
9953         * csu/version.c (banner): If TLS support is available say so.
9955 2002-02-04  H.J. Lu  <hjl@gnu.org>
9957         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9958         __attribute_used__.
9959         (__dl_runtime_resolve): Likewise.
9961         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9962         declaration.
9964 2001-11-15  H.J. Lu  <hjl@gnu.org>
9966         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9967         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9969         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9971 2002-02-07  H.J. Lu  <hjl@gnu.org>
9973         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9974         ".set noreorder".
9975         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9976         Likewise.
9978 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9980         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9982         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9983         ___tls_get_addr_internal.
9984         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9986         * po/ko.po: Update from translation team.
9988 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
9990         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9991         attribute, change __pad{1,2} type to unsigned int.
9992         (struct stat64): Remove packed attribute.
9994 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9996         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9998 2002-02-07  Andreas Schwab  <schwab@suse.de>
10000         * configure.in: Fix check for -zcombreloc.
10002 2002-02-06  H.J. Lu  <hjl@gnu.org>
10004         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
10005         * configure.in: Check if __builtin_memset really works.
10006         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
10007         __GNUC_PREREQ (2, 96) before using __builtin_memset.
10009 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
10011         * io/bug-ftw3.c (main): Don't try the test if root.
10013 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10015         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
10016         constraints.
10017         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
10018         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
10019         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
10020         Likewise.
10021         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
10022         a weak alias for __clone.
10023         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
10024         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
10025         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
10026         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
10027         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
10028         a weak alias for __mmap64.
10030 2002-02-05  H.J. Lu  <hjl@gnu.org>
10032         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
10033         (atomic_add): Likewise.
10034         (compare_and_swap): Likewise.
10035         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
10037 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
10039         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
10041         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
10042         alignment of the TCB and store total size and alignment of static
10043         TLS block in _dl_tls_static_size and _dl_tls_static_align.
10044         tls_index is a typedef.
10045         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
10046         _dl_tls_static_align.
10047         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
10048         * elf/dl-support.c: Define _dl_tls_static_size and
10049         _dl_tls_static_align.
10051 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
10053         * configure.in: Add --without-tls option.
10054         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
10055         --without-tls is given.
10057         * sysdeps/generic/dl-tls.c: Include <tls.h>.
10059         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
10061 2002-02-06  Roland McGrath  <roland@frob.com>
10063         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
10064         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
10066         * scripts/versions.awk: Improve error message for missing version.
10067         Each version inherits from the last one only if they have the same
10068         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
10069         but not GLIBC_x and FOO_y.
10071         * scripts/firstversions.awk: Handle libraries that don't have each
10072         particular version named in the third column of shlib-versions.
10074         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
10076 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
10078         * Versions.def [ld]: Add GLIBC_2.3.
10079         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
10080         * elf/Makefile (dl-routines): Add dl-tls.
10081         (distribute): Add dl-tls.h.
10082         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
10083         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
10084         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
10085         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
10086         along with the other info in the link map.  Change queueing of init
10087         images for double linked list.  Use _dl_next_tls_modid to compute
10088         l_tls_modid.
10089         * elf/rtld.c (_dl_start_final): Store alignment requirement
10090         along with the other info in rtld map and executable map.
10091         (dl_main): Add ld.so to the init image list if necessary.  Compute
10092         final module ID with _dl_next_tls_modid.
10093         * include/link.h (struct link_map): Add l_tls_previmage and
10094         l_tls_align.
10095         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
10096         * sysdeps/i386/elf/Versions: New file.
10097         * sysdeps/generic/dl-tls.c: New file.
10098         * sysdeps/generic/dl-tls.h: New file.
10099         * sysdeps/i386/dl-tls.h: New file.
10101 2002-02-06  Roland McGrath  <roland@frob.com>
10103         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
10104         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
10106 2002-01-05  Roland McGrath  <roland@frob.com>
10108         * sysdeps/mach/configure.in: New file.
10109         * sysdeps/mach/configure: New generated file.
10111         * mach/Makefile (user-interfaces): Remove default_pager_helper.
10112         It has never been used by anything.
10114 2002-02-06  H.J. Lu  <hjl@gnu.org>
10116         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
10117         is included.
10119 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
10121         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
10122         attribute((packed)) to counter stupid people misusing gcc options.
10123         (struct stat64): Likewise.
10125 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
10127         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
10128         the variables which are used as booleans.
10130 2002-02-06  Andreas Jaeger  <aj@suse.de>
10132         * include/libc-symbols.h (INTUSE): Renamed from INT.
10133         * elf/dl-deps.c: Change users.
10134         * sysdeps/generic/dl-sysdep.c: Likewise.
10135         * sysdeps/generic/dl-cache.c: Likewise.
10136         * elf/dl-reloc.c: Likewise.
10137         * elf/rtld.c: Likewise.
10138         * elf/dl-version.c: Likewise.
10139         * elf/dl-load.c: Likewise.
10140         * elf/dl-dst.h: Likewise.
10141         * elf/dl-init.c: Likewise.
10142         * elf/dl-error.c: Likewise.
10143         * elf/dl-fini.c: Likewise.
10144         * elf/dl-runtime.c: Likewise.
10145         * elf/do-lookup.h: Likewise.
10147         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
10148         definition.
10149         * stdio-common/_itowa.h: Likewise.
10151 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
10153         * elf/dl-minimal.c: Define _itoa_lower_digits.
10155         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
10156         DT_FLAGS set.
10158         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
10159         loading modules with the DF_STATIC_TLS flag set.
10160         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
10161         element.
10162         * include/link.h (struct link_map): Add l_flags field.
10163         * elf/elf.h (DF_STATIC_TLS): New definition.
10165         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
10166         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
10168         * elf/rtld.c (process_dl_debug): Correct printing help message.
10169         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
10170         for %s.
10172         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
10173         definition and pass &errno in use of this variable.
10174         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
10176 2002-02-04  Andreas Schwab  <schwab@suse.de>
10178         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
10179         * locale/programs/charmap-dir.c: Wrap calls that output messages
10180         with WITH_CUR_LOCALE.  Include "localedef.h" first.
10181         * locale/programs/charmap.c: Likewise.
10182         * locale/programs/ld-address.c: Likewise.
10183         * locale/programs/ld-collate.c: Likewise.
10184         * locale/programs/ld-ctype.c: Likewise.
10185         * locale/programs/ld-identification.c: Likewise.
10186         * locale/programs/ld-measurement.c: Likewise.
10187         * locale/programs/ld-messages.c: Likewise.
10188         * locale/programs/ld-monetary.c: Likewise.
10189         * locale/programs/ld-name.c: Likewise.
10190         * locale/programs/ld-numeric.c: Likewise.
10191         * locale/programs/ld-paper.c: Likewise.
10192         * locale/programs/ld-telephone.c: Likewise.
10193         * locale/programs/ld-time.c: Likewise.
10194         * locale/programs/linereader.c: Likewise.
10195         * locale/programs/linereader.h: Likewise.
10196         * locale/programs/localedef.c: Likewise.
10197         * locale/programs/locfile.c: Likewise.
10198         * locale/programs/repertoire.c: Likewise.
10200 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
10202         * elf/rtld.c (_dl_start_final): Determine load address to locate
10203         ehdr with GL(dl_rtld_map).l_map_start.
10205         * po/ca.po: Update from translation team.
10207         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
10208         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
10209         header entry.
10210         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10211         _dl_tls_module_cnt.
10212         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
10214 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
10216         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
10217         * include/link.h (struct link_map): Add various members for TLS
10218         information.
10219         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
10220         _rtld_tlsoffset, add _dl_initimage_list.
10221         * sysdeps/i386/dl-lookupcfg.h: New file.
10222         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
10223         TLS relocation.  When using TLS we now use RESOLVE_MAP.
10224         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
10225         is used.
10227         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
10228         unused.
10230         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
10231         thread-pointer as soon as possible.
10232         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
10233         elements in rtld_global.
10234         * sysdeps/generic/tls.h: New file.
10235         * elf/Makefile (distribute): Add tls.h.
10236         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
10237         relocations.  Not complete yet.
10239         * resolv/resolv.h: Allow user to define __need_res_state and only
10240         define __res_start structure then.
10241         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
10243         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
10244         dl_cpuclock_offset initialization to _dl_start_final.
10245         (_dl_show_auxv): Avoid unnecessary sign extension.
10246         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
10248 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
10250         * config.h.in: Add HAVE_TLS_SUPPORT.
10251         * sysdeps/i386/elf/configure.in: New file.
10253 2002-02-03  Andreas Schwab  <schwab@suse.de>
10255         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
10256         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
10258 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
10260         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
10261         alloca if the memory reqirements are too high.
10263 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
10265         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
10266         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
10267         the former is available anyway and speed isn't important here.
10268         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
10269         * elf/dl-version.c (match_symbol): Likewise.
10270         (_dl_check_map_versions): Likewise.
10271         * elf/rtld.c (process_envvars): Likewise.
10272         (print_statistics): Likewise.
10273         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
10274         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
10275         bases.  Add assert to catch uses of unimplemented features.
10276         (__strsep): Add assert to catch uses of unimplemented features.
10277         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
10278         and avoid inline optimization.
10279         * elf/rtld.c (process_envvars): Likewise.
10280         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
10281         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
10282         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
10284 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10286         * stdio-common/_itoa.h: Minor simplifications of the code.
10287         * stdio-common/_itoa.c: Likewise.
10289         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
10290         instead of _dl_printf for debugging info output.
10292         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
10293         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
10295 2002-02-01  H.J. Lu  <hjl@gnu.org>
10297         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
10298         (atomic_add): Likewise.
10299         (compare_and_swap): Return 0 only when failed to compare. Use
10300         branch likely.
10302         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
10303         branch likely.
10305 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
10307         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
10309 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10311         * elf/dl-minimal.c (__strsep): New minimal implementation.
10313 2002-02-02  Paul Eggert  <eggert@twinsun.com>
10315         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
10316         (__mktime_internal): If no tm_isdst is requested, prefer solutions
10317         with tm_isdst > 0 when the requested time falls within a
10318         spring-forward gap [PR libc/2894].
10320 2002-02-03  Andreas Schwab  <schwab@suse.de>
10322         * stdio-common/tst-rndseek.c: Increase timeout.
10324 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10326         Change ld.so to not use functions which are exported.  One cannot
10327         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
10328         definitions.
10329         * include/libc-symbols.h: Define INT and INTDEF.
10330         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
10331         _dl_signal_error_internal, _dl_map_object_internal,
10332         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
10333         _dl_lookup_versioned_symbol_internal,
10334         _dl_relocate_object_internal, _dl_debug_state_internal,
10335         _dl_start_profile_internal, and _dl_unload_cache_internal.
10336         * include/dlfcn.h: Declare _dl_catch_error_internal.
10337         * elf/rtld.c: Use INT for calls to any of the *_internal functions
10338         above.  Add INTDEF to function definitions.
10339         * elf/dl-debug.c: Likewise.
10340         * elf/dl-deps.c: Likewise.
10341         * elf/dl-dst.h: Likewise.
10342         * elf/dl-error.c: Likewise.
10343         * elf/dl-fini.c: Likewise.
10344         * elf/dl-init.c: Likewise.
10345         * elf/dl-load.c: Likewise.
10346         * elf/dl-lookup.c: Likewise.
10347         * elf/dl-misc.c: Likewise.
10348         * elf/dl-open.c: Likewise.
10349         * elf/dl-profile.c: Likewise.
10350         * elf/dl-reloc.c: Likewise.
10351         * elf/dl-runtime.c: Likewise.
10352         * elf/dl-version.c: Likewise.
10353         * elf/do-lookup.h: Likewise.
10354         * sysdeps/generic/dl-cache.c: Likewise.
10355         * sysdeps/generic/dl-sysdep.c: Likewise.
10356         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
10357         instead of _dl_init.
10358         * sysdeps/arm/dl-machine.h: Likewise.
10359         * sysdeps/cris/dl-machine.h: Likewise.
10360         * sysdeps/hppa/dl-machine.h: Likewise.
10361         * sysdeps/i386/dl-machine.h: Likewise.
10362         * sysdeps/ia64/dl-machine.h: Likewise.
10363         * sysdeps/m68k/dl-machine.h: Likewise.
10364         * sysdeps/mips/dl-machine.h: Likewise.
10365         * sysdeps/mips/mips64/dl-machine.h: Likewise.
10366         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10367         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10368         * sysdeps/sh/dl-machine.h: Likewise.
10369         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10370         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10371         * sysdeps/x86_64/dl-machine.h: Likewise.
10372         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
10374         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
10375         and _dl_debug_initialize.
10377         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
10378         more information.
10379         * elf/rtld.c (dl_main): Avoid strrchr.
10380         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
10381         result of readlink.  Search from the back for '/'.
10383         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
10384         strncpy if possible.
10386         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
10387         strncmp.
10388         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
10389         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
10390         strspn, and strcspn.
10391         (process_envvars): Don't use strcspn.
10393         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
10394         (_dl_dst_substitute): Likewise.
10396 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10398         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
10399         code which is never used when relocating ld.so itself.
10401         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
10402         starting ld.so itself.  Move l_addr variable initialization closer
10403         to use.
10404         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
10406 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
10408         * Versions.def (libc): Add GLIBC_PRIVATE.
10409         (libdb, libnss_db, libdb1): Remove.
10410         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
10411         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
10412         (libpthread): Add GLIBC_PRIVATE.
10413         (libresolv): Likewise, remove GLIBC_2.1.
10414         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
10415         GLIBC_2.2.3, GLIBC_2.3.
10416         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
10417         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
10418         _dl_sym, _dl_vsym): Likewise.
10419         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
10420         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
10421         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
10422         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
10423         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
10424         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
10425         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
10426         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
10427         Likewise.
10428         (_dl_object_relocation_scope): Remove.
10429         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
10430         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
10431         __gconv_cache): Move to GLIBC_PRIVATE.
10432         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
10433         __internal_setnetgrent): Likewise.
10434         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
10435         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
10436         * locale/Versions (__collate_element_hash, __collate_element_strings,
10437         __collate_symbol_classes, __collate_symbol_hash,
10438         __collate_symbol_strings, _nl_current_LC_COLLATE,
10439         _nl_current_LC_CTYPE): Likewise.
10440         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
10441         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
10442         (libnss_nis, libnss_nisplus): Likewise.
10443         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
10444         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
10445         (libnss_files): Move all symbols to GLIBC_PRIVATE.
10446         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
10447         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
10448         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
10449         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
10450         __ns_get16, __ns_samename): Likewise.
10451         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
10452         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
10453         GLIBC_PRIVATE.
10454         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
10455         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
10456         __libc_connect): Likewise.
10457         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
10458         Likewise.
10459         * stdlib/Versions (__libc_system): Likewise.
10460         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
10461         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
10462         * sysdeps/ia64/fpu/Versions: Likewise.
10463         * sysdeps/ia64/Versions: Likewise.
10464         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
10465         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
10466         to GLIBC_PRIVATE.
10467         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
10468         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
10469         __libc_sigaction): Likewise.
10470         * termios/Versions (__libc_tcdrain): Likewise.
10472         * misc/sys/cdefs (__attribute_noinline__): Define.
10473         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
10474         __attribute_noinline__.
10476         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
10477         * elf/dl-xstat64.c: New file.
10478         * elf/dl-fxstat64.c: New file.
10479         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
10480         don't export __fxstat64 at multiple versions.
10481         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
10482         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
10484 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
10486         * locale/program/ld-collate.c (collate_finish): Assign a wide
10487         char collation sequence value to multi character collating
10488         elements, and avoid over writing by non-character elements.
10490 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10492         * elf/Makefile (distribute): Add dl-procinfo.c.
10493         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
10494         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
10496 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
10498         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
10499         definition.
10500         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
10501         _rtld_global struct.
10502         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10503         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
10504         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10505         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
10506         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
10507         _dl_fpu_control_set): Remove unused externs.
10508         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
10509         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
10510         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
10511         related variables in _rtld_global struct.
10512         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
10513         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
10514         unused extern.
10516 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10518         * sysdeps/generic/dl-procinfo.c: New file.
10520 2002-02-01  Andreas Schwab  <schwab@suse.de>
10522         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
10524 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10526         * elf/rtld.c (_dl_start): Mark as internal_function.
10527         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
10528         in register.
10529         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
10530         General pretty printing.
10532 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
10534         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
10535         * elf/dl-reloc.c: Pretty printing.
10536         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
10537         procinfo-related variables in rtld_global struct.
10538         * elf/dl-support.c: Likewise.
10539         * elf/rtld.c: Likewise.
10540         * sysdeps/i386/i686/Makefile: Likewise.
10541         * sysdeps/i386/i686/hp-timing.c: Likewise.
10542         * sysdeps/i386/i686/hp-timing.h: Likewise.
10543         * sysdeps/ia64/Makefile: Likewise.
10544         * sysdeps/ia64/hp-timing.c: Likewise.
10545         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
10546         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
10547         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
10548         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
10549         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10550         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
10551         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
10552         * sysdeps/x86_64/Makefile: Likewise.
10554         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
10555         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
10556         _dl_debug_fd to rtld_global.
10557         * elf/Versions: Likewise.
10558         * elf/dl-close.c: Likewise.
10559         * elf/dl-iteratephdr.c: Likewise.
10560         * elf/dl-lookup.c: Likewise.
10561         * elf/dl-misc.c: Likewise.
10562         * elf/dl-open.c: Likewise.
10563         * elf/dl-support.c: Likewise.
10564         * elf/do-lookup.h: Likewise.
10565         * elf/rtld.c: Likewise.
10566         * sysdeps/generic/dl-cache.c: Likewise.
10567         * sysdeps/generic/dl-sysdep.c: Likewise.
10568         * sysdeps/ia64/Versions: Likewise.
10569         * sysdeps/unix/clock_gettime.c: Likewise.
10570         * sysdeps/unix/clock_settime.c: Likewise.
10571         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10572         * sysdeps/sparc/Versions: Removed.
10573         * sysdeps/i386/i686/Versions : Removed.
10574         * sysdeps/x86_64/Versions: Removed.
10575         * configure.in: Define HAVE_PROTECTED if .protected is available.
10576         * config.h.in: Add entry for HAVE_PROTECTED.
10578 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
10580         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
10581         code in struct _rtld_global.  Export this struct, remove all
10582         exports for the signal variables.
10583         * sysdeps/arm/dl-machine: Likewise.
10584         * sysdeps/generic/dl-origin: Likewise.
10585         * sysdeps/generic/dl-sysdep: Likewise.
10586         * sysdeps/generic/dl-cache: Likewise.
10587         * sysdeps/hppa/dl-fptr: Likewise.
10588         * sysdeps/hppa/dl-machine: Likewise.
10589         * sysdeps/cris/dl-machine: Likewise.
10590         * sysdeps/i386/dl-machine: Likewise.
10591         * sysdeps/ia64/dl-machine: Likewise.
10592         * sysdeps/m68k/dl-machine: Likewise.
10593         * sysdeps/mach/hurd/dl-sysdep: Likewise.
10594         * sysdeps/mips/mips64/dl-machine: Likewise.
10595         * sysdeps/mips/dl-machine: Likewise.
10596         * sysdeps/powerpc/elf/libc-start: Likewise.
10597         * sysdeps/powerpc/dl-machine: Likewise.
10598         * sysdeps/powerpc/dl-start: Likewise.
10599         * sysdeps/sparc/sparc32/dl-machine: Likewise.
10600         * sysdeps/sparc/sparc64/dl-machine: Likewise.
10601         * sysdeps/sh/dl-machine: Likewise.
10602         * sysdeps/s390/s390-32/dl-machine: Likewise.
10603         * sysdeps/s390/s390-64/dl-machine: Likewise.
10604         * sysdeps/unix/sysv/aix/libc-start: Likewise.
10605         * sysdeps/unix/sysv/aix/start-libc: Likewise.
10606         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
10607         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
10608         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
10609         * sysdeps/x86_64/dl-machine: Likewise.
10611 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
10613         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
10614         are too high.
10616 2002-01-31  Andreas Schwab  <schwab@suse.de>
10618         * sysdeps/posix/readv.c: Check for ssize_t overflow.
10620 2002-01-31  Andreas Schwab  <schwab@suse.de>
10622         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
10623         reference to _dl_pagesize.
10625 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
10627         * Versions.def [ld]: Add GLIBC_2.3.
10628         * elf/dl-addr.c: Move global variables for SHARED code in struct
10629         _rtld_global.  Export this struct, remove all exports for the
10630         signal variables.
10631         * elf/dl-close.c: Likewise.
10632         * elf/dl-conflict.c: Likewise.
10633         * elf/dl-debug.c: Likewise.
10634         * elf/dl-deps.c: Likewise.
10635         * elf/dl-dst.h: Likewise.
10636         * elf/dl-error.c: Likewise.
10637         * elf/dl-fini.c: Likewise.
10638         * elf/dl-init.c: Likewise.
10639         * elf/dl-iteratephdr.c: Likewise.
10640         * elf/dl-libc.c: Likewise.
10641         * elf/dl-load.c: Likewise.
10642         * elf/dl-lookup.c: Likewise.
10643         * elf/dl-minimal.c: Likewise.
10644         * elf/dl-object.c: Likewise.
10645         * elf/dl-open.c: Likewise.
10646         * elf/dl-profile.c: Likewise.
10647         * elf/dl-profstub.c: Likewise.
10648         * elf/dl-reloc.c: Likewise.
10649         * elf/dl-runtime.c: Likewise.
10650         * elf/dl-support.c: Likewise.
10651         * elf/dl-sym.c: Likewise.
10652         * elf/dl-version.c: Likewise.
10653         * elf/do-lookup.h: Likewise.
10654         * elf/do-rel.h: Likewise.
10655         * elf/dynamic-link.h: Likewise.
10656         * elf/rtld.c: Likewise.
10657         * sysdeps/generic/dl-cache.c: Likewise.
10658         * sysdeps/generic/dl-sysdep.c: Likewise.
10659         * sysdeps/generic/ldsodefs.h: Likewise.
10660         * sysdeps/generic/libc-start.c: Likewise.
10661         * sysdeps/i386/dl-machine.h: Likewise.
10662         * sysdeps/ia64/dl-fptr.c: Likewise.
10663         * sysdeps/ia64/dl-machine.h: Likewise.
10664         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
10665         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10666         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
10667         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
10668         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
10669         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
10670         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
10671         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
10673 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10675         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
10676         to avoid warning
10677         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
10679         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
10680         SHARED version.
10681         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
10683         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
10685 2002-01-29  Ben Collins  <bcollins@debian.org>
10687         * string/bits/string2.h (__mempcpy): Protect size arg for
10688         addition when using __builtin_memcpy.
10690 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10692         * stdlib/Makefile (tests): Add tst-qsort.
10693         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
10695         * manual/signal.texi (Process Signal Mask): Document that
10696         pthread_sigmask, not sigprocmask, must be used in MT programs.
10697         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
10699         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
10700         found.
10701         * misc/Makefile (tests): Add tst-hsearch.
10702         * misc/tst-hsearch.c: New file.
10704 2002-01-18  Wolfram Gloger  <wg@malloc.de>
10706         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
10707         * malloc/malloc.h: Likewise.
10708         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
10709         * malloc/arena.c: New file.
10710         * malloc/hooks.c: New file.
10711         * malloc/tst-mallocstate.c: New file.
10712         * malloc/Makefile: Add new testcase tst-mallocstate.
10713         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
10715 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10717         * stdlib/msort.c: Remove last patch.  The optimization violates the
10718         same rule which qsort.c had problems with.
10720 2002-01-27  Paul Eggert  <eggert@twinsun.com>
10722         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
10723         to a pivot element that lies outside the array to be sorted, as
10724         ISO C99 requires that the comparison function be called only with
10725         addresses of array elements [PR libc/2880].
10727 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10729         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
10730         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
10732         * timezone/asia: Update from tzdata2002b.
10733         * timezone/australasia: Likewise.
10734         * timezone/backward: Likewise.
10735         * timezone/europe: Likewise.
10736         * timezone/leapseconds: Likewise.
10737         * timezone/iso3166.tab: Likewise.
10738         * timezone/zone.tab: Likewise.
10740 2002-01-23  Richard Henderson  <rth@redhat.com>
10742         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10744 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10746         * string/strxfrm.c: Allocate one more byte for rulearr and clear
10747         this element [PR libc/2855].
10749         * string/strcoll.c: Handle zero-length arguments specially
10750         [PR libc/2856].
10752 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
10754         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10755         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10756         short lengths and constant src.
10757         (strcpy): Don't optimize for gcc 3.0+.
10758         (__stpcpy): For gcc 3.0+, don't use
10759         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10760         for short string literal src.
10762 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10764         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10765         Set for arm, too.
10767 2001-01-22  Paul Eggert  <eggert@twinsun.com>
10769         * manual/llio.texi (Linked Channels, Cleaning Streams):
10770         Make it clearer that a just-opened input stream might need cleaning.
10772 2002-01-21  H.J. Lu  <hjl@gnu.org>
10774         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10775         Don't use label at end of compound statement.
10777 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
10779         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10780         Remove test for negative integer arg; sin_pi does it correctly.
10782 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
10784         * nscd/Makefile (distribute): Filter out xmalloc.c.
10786 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
10788         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10789         Set offset if read end wasn't the buffer end.
10790         (_IO_file_seekoff_mmap): New function.
10791         (_IO_file_xsgetn_mmap): New function.
10792         (_IO_file_jumps_mmap): Use the two new functions.
10793         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10794         != end buffer.
10795         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10796         _IO_file_underflow_mmap.
10797         * libio/iofopen.c: Don't position file descriptor at end of file.
10798         * libio/tst-widetext.c: Improve error messages.
10799         * stdio-common/tst-rndseek.c: Likewise.
10801 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
10803         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10804         end of enum for !_GNU_SOURCE.
10805         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10806         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10807         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10808         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10809         values unless _GNU_SOURCE.
10811         * iconvdata/tcvn5712-1.c: Minor cleanups.
10813 2002-01-18  Andreas Schwab  <schwab@suse.de>
10815         * sysdeps/unix/sysv/linux/configure.in
10816         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10818 2002-01-16  Roger Sayle  <roger@eyesopen.com>
10820         * stdlib/msort.c (msort_with_tmp): Replace implementation with
10821         more efficient "Towers of Hanoi" mergesort.
10822         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10823         for generic, sizeof(int) and sizeof(long) variants respectively.
10825 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
10827         * manual/syslog.texi (openlog): Describe possible problems with
10828         first parameter.
10829         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10831         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
10832         * nscd/connections.c (begin_drop_privileges): New function.
10833         (finish_drop_privileges): New function.
10834         (nscd_init): Call the new functions which also install all groups
10835         for the server user.
10836         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10837         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10839 2002-01-17  H.J. Lu  <hjl@gnu.org>
10841         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10842         `const' from `got'.
10844 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10846         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10847         instructions for pointer operations.
10848         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10850 2002-01-17  Andreas Jaeger  <aj@suse.de>
10852         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10853         __uint128_t build-in.
10855         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10856         PowerPC, sync with 2.2 branch.
10858 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10860         * posix/getconf.c: Update copyright year.
10861         * nss/getent.c: Likewise.
10862         * nscd/nscd_nischeck.c: Likewise.
10863         * iconv/iconvconfig.c: Likewise.
10864         * iconv/iconv_prog.c: Likewise.
10865         * elf/ldconfig.c: Likewise.
10866         * catgets/gencat.c: Likewise.
10867         * csu/version.c: Likewise.
10868         * elf/ldd.bash.in: Likewise.
10869         * elf/sprof.c (print_version): Likewise.
10870         * locale/programs/locale.c: Likewise.
10871         * locale/programs/localedef.c: Likewise.
10872         * nscd/nscd.c (print_version): Likewise.
10873         * debug/xtrace.sh: Likewise.
10874         * malloc/memusage.sh: Likewise.
10875         * malloc/mtrace.pl: Likewise.
10877 2002-01-16  Andreas Schwab  <schwab@suse.de>
10879         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10880         reliably remove "-ia64" from rtld name.
10882 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10884         * iconvdata/gb18030.c: Bug fixes and support for more characters.
10885         Patch by Yu Shao <yshao@redhat.com>.
10887 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10889         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10890         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10891         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10893 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10895         * sysdeps/s390/fpu/libm-test-ulps: Update.
10897 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
10899         * elf/elf.h: Update x86 relocations.
10901 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10903         * locale/programs/charmap.c (new_width): Check whether byte
10904         sequences for both ends of range have the same length.
10906 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10908         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10910 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10912         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10913         string literals.
10914         (__full_ieee754_sqrt): Add __attribute_used__.
10916 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10918         * sysdeps/generic/group_member.c (__group_member): Also check
10919         groups[0] [PR libc/2781].
10921 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
10923         * Makefile (distribute): Add scripts/cpp.
10924         * elf/Makefile (distribute): Add reldep6mod[01234].c,
10925         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10926         unwind-dw2-fde.h, and dwarf2.h.
10927         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10928         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10929         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10930         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10932 2002-01-07  Roland McGrath  <roland@frob.com>
10934         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10935         volatile on type of ARGC so the compiler doesn't get clever.
10937 2002-01-07  Andreas Jaeger  <aj@suse.de>
10939         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10940         * sysdeps/i386/bits/byteswap.h: Likewise.
10941         * sysdeps/ia64/bits/byteswap.h: Likewise.
10942         * sysdeps/m68k/bits/byteswap.h: Likewise.
10943         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10944         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10946 2002-01-02  Bruno Haible  <bruno@clisp.org>
10948         * intl/plural.y: Fix %expect count.
10950 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10952         * elf/Makefile (routines, shared-only-routines): Add
10953         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10954         * elf/elf.h (PT_GNU_EH_FRAME): Define.
10955         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10956         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10957         Optimize if .eh_frame section contains no FDEs.
10958         (__register_frame, __deregister_frame_info_bases,
10959         __deregister_frame): Likewise.
10960         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10961         DW_CFA_restore handling.
10963 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
10965         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10967         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10968         for x < 0.25 and restore original range reduction method.
10969         (__ieee754_lgammal_r): Make sure signgam is set before returning.
10971 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
10973         * libio/fileops.c (_IO_file_underflow_mmap): New function.
10974         (_IO_file_close_mmap): New function.
10975         (_IO_file_jumps_mmap): New variable.
10976         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10977         trying to convert rest of byte buffer.
10978         (_IO_wfile_underflow_mmap): New function.
10979         (_IO_wfile_jumps_mmap): New variable.
10980         * libio/iofopen.c (__fopen_maybe_mmap): New function.
10981         (__fopen_internal): New function.  Split out from _IO_new_fopen.
10982         (_IO_new_fopen): Call __fopen_internal.
10983         * libio/iofopen64.c: Just call __fopen_internal.
10984         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10985         successfully.
10986         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10987         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10988         _IO_file_close_mmap.
10990         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10991         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10993         * stdio-common/Makefile (tests): Add tst-rndseek.
10994         * stdio-common/tst-rndseek.c: New file.
10996 2002-01-05  Roland McGrath  <roland@frob.com>
10998         * config.h.in (HAVE_MIG_RETCODE): New #undef.
10999         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
11000         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
11001         * sysdeps/mach/hurd/configure: Regenerated.
11003 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
11005         * elf/elf.h: Add more TLS definitions.
11007 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
11009         * include/features.h (__GLIBC_MINOR__): Bump to 3.
11011 2002-01-02  Roland McGrath  <roland@frob.com>
11013         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
11014         __sigisemptyset.  Don't use MASK uninitialized.
11016         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
11017         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
11018         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
11019         __sigdelset, __sigaddset, __sigorset.
11021         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
11022         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
11024         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
11025         _hurd_ports is null.
11027         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
11028         for old CMU and new OSF Mach interface flavors.
11029         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
11030         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
11032         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
11034         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
11035         Pass extra arguments to task_create for OSF variant.
11036         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
11038         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
11039         conditional on [HAVE_AUX_VECTOR].
11041         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
11042         mach_msg_timeout_t as type of final argument.
11044         * hurd/privports.c (__get_privileged_ports):
11045         Change host_priv_t to mach_port_t in argument type.
11046         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
11047         Update decls.
11049         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
11050         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
11051         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
11052         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
11053         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
11054         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
11056 2002-01-01  Roland McGrath  <roland@frob.com>
11058         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
11060 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
11062         * include/stdlib.h: Define inlines for the _l variants of the strto*
11063         functions.
11065 2002-01-01  Roland McGrath  <roland@frob.com>
11067         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
11069         * mach/Machrules (MIG): Set CPP as well as CC.
11071 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
11073         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
11074         locale to parse /proc/loadavg [PR libc/2760].
11076 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
11078         * elf/dl-conflict.c: Include sys/param.h.
11079         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
11080         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
11081         warning.
11082         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
11083         literals to avoid warnings.
11085 2001-12-31  Andreas Jaeger  <aj@suse.de>
11087         * configure.in: Don't check for gsed since we do not use it anywhere.
11089 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
11091         * io/fts.c: Update from BSD to fix memory leaks.
11093 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
11095         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
11096         * elf/chroot_canon.c: Likewise.
11097         * elf/dl-object.c: Likewise.
11098         * iconv/iconv_charmap.c: Likewise.
11099         * iconv/iconv_prog.c: Likewise.
11100         * libio/iogetdelim.c: Likewise.
11101         * locale/lc-time.c: Likewise.
11102         * stdlib/canonicalize.c: Likewise.
11103         * sunrpc/svc.c: Likewise.
11104         * sysdeps/generic/glob.c: Likewise.
11106 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11108         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
11109         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
11110         remove high order bit from the program counter.
11111         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
11113 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11115         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
11116         unnecessary code and add missing reloc types.
11117         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
11118         case for reloc type R_390_NONE.
11120 2001-12-28  Andreas Jaeger  <aj@suse.de>
11122         * io/bug-ftw3.c: Include string.h for prototypes.
11124         * crypt/md5test.c (main): Remove unused variable.
11126         * dlfcn/modstatic.c: Add prototype to avoid warning.
11128 2001-12-26  Roland McGrath  <roland@frob.com>
11130         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
11131         check only (SS->pending & MASK) for the signal to return.
11132         From Jeroen Dekkers <jeroen@dekkers.cx>.
11134 2001-12-22  Roland McGrath  <roland@frob.com>
11136         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
11137         Use preprocessor #if conditionals instead of `if' to avoid
11138         warnings about divide by zero in dead code.
11140         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
11141         _hurd_port_init, and __hurd_self_sigstate.
11143         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
11145 2001-12-21  Andreas Jaeger  <aj@suse.de>
11147         * elf/dblloadmod1.c: Add prototype to avoid warning.
11148         * elf/dblloadmod2.c: Likewise.
11149         * elf/dblloadmod3.c: Likewise.
11150         * elf/reldepmod5.c: Likewise.
11151         * elf/reldepmod6.c: Likewise.
11153         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
11154         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
11155         used on all architectures.
11157         * sunrpc/svc_tcp.c: Add noreturn attribute for
11158         svctcp_rendezvous_abort.
11159         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
11161         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
11162         to avoid warning.
11164 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
11166         * manual/llio.texi (aio_fsync): Fix a typo.
11167         Patch by Tammy Fox <tfox@redhat.com>.
11169 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
11171         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
11172         stack bias from child stack pointer before passing it to clone syscall.
11174 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
11176         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
11177         _SC_TZNAME_MAX.
11178         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
11179         Reported by Thorsten Kukuk <kukuk@suse.de>.
11181         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
11182         add some casts.
11184         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
11186 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
11188         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
11189         conforming: return EBADF if file descriptor is invalid and EINVAL
11190         if file descriptor is no valid tty.
11191         * login/tst-grantpt.c: New file.
11192         * login/Makefile (tests): Add tst-grantpt.
11194 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
11196         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
11197         different than implemented in last patch.
11198         * io/bug-ftw3.c: Adjust test for changed handling of
11199         inaccessibility of toplevel dir.
11201 2001-12-16  Roland McGrath  <roland@frob.com>
11203         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
11204         * grp/initgroups.c (internal_getgrouplist): Likewise.
11206         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
11207         `default:' to silence new GCC warning.
11208         Rewrite cast of lvalue to silence new GCC warning.
11210         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
11212         * sysdeps/mach/hurd/spawni.c: New file, by me with a
11213         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
11215 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
11217         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
11218         Patch by Stephen R. van den Berg.
11220         * crypt/md5.h: Define md5_uintptr.
11222 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
11224         * libio/tst_swprintf.c (main): Add test for string argument with
11225         zero precision.
11226         * stdio-common/Makefile (tests): Add tst-sprintf.
11227         * stdio-common/tst-sprintf.c: New file.
11229 2001-12-13  Andreas Schwab  <schwab@suse.de>
11231         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
11232         zero precision with wide character string format.
11234 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
11236         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
11237         but have a user supplied buffer, return the empty buffer, not NULL.
11239 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
11241         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
11242         Patch by Eric Sharkey <sharkey@netrics.com>.
11244         * crypt/md5test.c (main): Add test for multiple calls to
11245         __md5_process_bytes to itererate over input string.
11247 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
11249         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
11250         from __nis_findfastest.  Take timeout value from parameter.
11251         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
11252         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
11253         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
11255 2001-12-12  Andreas Jaeger  <aj@suse.de>
11257         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
11258         combreloc test so that it works in this case.
11260         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
11262 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
11264         * sysdeps/sh/Makefile: New file.
11265         * sysdeps/sh/_mcount.S: New file.
11266         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
11267         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
11269 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
11271         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
11272         limitation [PR libc/2564].
11274 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
11276         * elf/Makefile (dl-routines): Add conflict.
11277         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
11278         (ld.so): Add _begin local symbol.
11279         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
11280         Define.
11281         * elf/dl-deps.c (_dl_build_local_scope): New function.
11282         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
11283         of all libraries.
11284         * elf/do-rel.h (VALIDX): Define.
11285         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
11286         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
11287         can be skipped.
11288         * elf/dl-conflict.c: New file.
11289         * elf/dl-lookup.c (_dl_debug_bindings): New function.
11290         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
11291         non-NULL.
11292         (_dl_lookup_symbol_skip): Likewise.
11293         (_dl_lookup_versioned_symbol): Likewise.
11294         (_dl_lookup_versioned_symbol_skip): Likewise.
11295         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
11296         define to ElfW(Rel).
11297         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
11298         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
11299         ranges.
11300         Don't adjust address dynamic tags if l_addr is 0.
11301         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
11302         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
11303         (VALIDX, ADDRIDX): Define.
11304         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
11305         (dl_main): Print library list for LD_TRACE_PRELINKING.
11306         If prelinking information can be used, skip relocating libraries and
11307         call _dl_resolve_conflicts instead.
11308         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
11309         * elf/dl-load.c (_dl_map_object): Don't create fake libs
11310         if LD_TRACE_PRELINKING.
11311         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
11312         + DT_ADDRNUM.
11313         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
11314         (DL_DEBUG_PRELINK): Define.
11315         (_dl_resolve_conflicts): Add prototype.
11317         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
11318         .plt for prelinked libraries where prelinking info cannot be used.
11319         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
11320         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
11321         * sysdeps/arm/bits/link.h: New file.
11322         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
11323         content of .got[1].
11324         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
11325         (ELF_MACHINE_PLT_REL): Define.
11326         (elf_machine_rela, elf_machine_rela_relative): New functions.
11327         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
11328         of adjusting it if prelinked and prelinking cannot be used.
11329         * sysdeps/i386/bits/link.h: New file.
11330         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
11331         content of .got[1].
11332         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
11333         (ELF_MACHINE_PLT_REL): Define.
11334         (elf_machine_rela, elf_machine_rela_relative): New functions.
11335         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
11336         of adjusting it if prelinked and prelinking cannot be used.
11337         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
11338         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
11339         to find out map for R_PPC_JMP_SLOT relocs.
11340         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
11341         (OPCODE_BA): Define.
11342         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
11343         libraries where prelinking info cannot be used.
11344         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
11345         (elf_machine_fixup_plt): Call sparc_fixup_plt.
11346         (elf_machine_rela): Set value to 0 if relocating conflicts.
11347         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
11348         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
11349         (sparc64_fixup_plt): Fix a typo.
11350         (elf_machine_rela): Set value to 0 if relocating conflicts.
11351         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
11352         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
11353         libraries where prelinking info cannot be used.
11354         * sysdeps/sh/bits/link.h: New file.
11355         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
11356         content of .got[1].
11357         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
11358         of adjusting it if prelinked and prelinking cannot be used.
11359         * sysdeps/s390/s390-32/bits/link.h: New file.
11360         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
11361         Save original content of .got[1].
11362         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
11363         of adjusting it if prelinked and prelinking cannot be used.
11364         * sysdeps/s390/s390-64/bits/link.h: New file.
11365         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
11366         Save original content of .got[1].
11367         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
11368         of adjusting it if prelinked and prelinking cannot be used.
11369         * sysdeps/x86_64/bits/link.h: New file.
11370         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
11371         Save original content of .got[1].
11372         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
11373         of adjusting it if prelinked and prelinking cannot be used.
11375 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
11377         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
11378         where appropriate instead of numbers.  Little optimizations.
11380 2001-12-10  Roland McGrath  <roland@frob.com>
11382         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
11383         set it.
11385         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
11386         set to GLIBC_2.2.5, not GLIBC_2.2.4.
11388         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
11389         Fix conditionals so this is set by default for stdio and not for libio.
11390         * sysdeps/mach/hurd/configure: Regenerated.
11392 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
11394         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
11396 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
11398         * io/Makefile (tests): Add bug-ftw3.
11399         * io/bug-ftw3.c: New file.
11401         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
11402         matches and GLOB_NOCHECK is set.
11403         * posix/globtest.sh: Correct expected result for NOCHECK test.
11405         * po/ca.po: Update from translation team.
11407 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
11409         Implement transliteration of characters in strings of the locale
11410         definitions.
11411         * locale/programs/linereader.c: Adjust for additional parameter to
11412         lr_token.
11413         (get_string): If character <Uxxxx> is not found try to transliterate
11414         it.
11415         * locale/programs/ld-ctype.c: Adjust for additional parameter to
11416         lr_token.  Add const to charmap parameter of all functions.
11417         (find_translit, find_translit2): New functions.
11418         * locale/programs/charmap.c: Adjust for additional parameter to
11419         lr_token.
11420         * locale/programs/repertoire.c: Likewise.
11421         * locale/programs/linereader.h: Likewise.
11422         * locale/programs/ld-address.c: Likewise.  Add const to charmap
11423         parameter of all functions.
11424         * locale/programs/ld-collate.c: Likewise.
11425         * locale/programs/ld-identification.c: Likewise.
11426         * locale/programs/ld-measurement.c: Likewise.
11427         * locale/programs/ld-messages.c: Likewise.
11428         * locale/programs/ld-monetary.c: Likewise.
11429         * locale/programs/ld-name.c: Likewise.
11430         * locale/programs/ld-numeric.c: Likewise.
11431         * locale/programs/ld-paper.c: Likewise.
11432         * locale/programs/ld-paper.c: Likewise.
11433         * locale/programs/ld-telephone.c: Likewise.
11434         * locale/programs/ld-time.c: Likewise.
11435         * locale/programs/locfile.c: Likewise.
11436         * locale/programs/localedef.c: Likewise.
11437         * locale/programs/localedef.h: Likewise.
11438         * locale/programs/locfile.h: Likewise.  Add declaration for
11439         find_translit.
11440         * locale/programs/simple-hash.c: Add const to first parameter of
11441         find_entry, iterate_table, and lookup.
11442         * locale/programs/simple-hash.h: Likewise.
11443         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
11444         instead.
11445         * include/locale.h: Define __LC_LAST.
11446         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
11448 2001-12-07  Geoff Keating  <geoffk@redhat.com>
11450         * sysdeps/powerpc/Dist: Update for recent FP changes.
11451         * sysdeps/powerpc/fpu/Dist: Likewise.
11453 2001-12-07  Andreas Schwab  <schwab@suse.de>
11455         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
11457 2001-12-06  Geoff Keating  <geoffk@redhat.com>
11459         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
11460         save/restore functions here.
11461         (libm-support): Don't define these functions here.
11462         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
11463         functions here.
11464         * sysdeps/powerpc/fe_nomask.c: Move to...
11465         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
11466         * sysdeps/powerpc/fprrest.S: Move to...
11467         * sysdeps/powerpc/fpu/fprrest.S: ... here.
11468         * sysdeps/powerpc/fprsave.S: Move to...
11469         * sysdeps/powerpc/fpu/fprsave.S: ... here.
11471 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
11473         * sysdeps/unix/sysv/linux/opensock.c: New file.
11475 2001-12-06  Geoff Keating  <geoffk@redhat.com>
11477         * config.make.in (with-fp): Define from configure.
11478         * configure.in: Substitute with_fp.
11479         * configure: Regenerate.
11480         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
11481         specified, and don't change FPU environment.
11483 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
11485         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
11486         * assert/assert.c: Check result of __asprintf call and don't use
11487         string if it failed.
11488         * assert/assert-perr.c: Likewise.
11489         * inet/rcmd.c: Likewise.
11490         * locale/programs/localedef.c (main): Check result of
11491         construct_output_path and exit if it failed.
11492         (construct_output_path): Check result of asprintf and mkdir calls and
11493         fail if they failed.
11494         * posix/getopt.c: Check result of __asprintf calls and fail if
11495         they failed.
11496         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
11498 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11500         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
11501         patch.
11502         * sysdeps/generic/strncase.c: Likewise.
11503         * string/tester.c: Add tests for strcasecmp and strncasecmp.
11505 2001-12-05  Geoff Keating  <geoffk@redhat.com>
11507         * scripts/cpp: Test the exit status from 'type', not 'awk'.
11509         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
11510         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
11511         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
11512         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
11513         * sysdeps/powerpc/fclrexcpt.c: Move to...
11514         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
11515         * sysdeps/powerpc/fpu_control.h: Move to...
11516         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
11518 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11520         * iconvdata/ibm1129.h: Remove duplicate mappings.
11521         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
11522         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
11523         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11525         * timezone/zic.c: Fix handling of turnaround times.
11526         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
11528 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
11530         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
11531         overflow problem.
11533 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11535         * posix/regex.c: For use outside glibc defined bounded pointer
11536         macros here.  Patch by Jim Meyering <jim@meyering.net>.
11538         * iconvdata/Makefile (modules): Add TCVN5712-1.
11539         * iconvdata/TESTS: Add TCVN5712-1.
11540         * iconvdata/gconv-modules: Likewise.
11541         * iconvdata/tcvn5712-1.c: New file.
11542         * iconvdata/testdata/TCVN-5712: New file.
11543         * iconvdata/testdata/TCVN-5712..UTF8: New file.
11545 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
11547         * iconvdata/cp1258.c: Optimize conversion from UCS4.
11549 2001-12-02  Roland McGrath  <roland@frob.com>
11551         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
11553         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
11554         Reported by Jeff Bailey <jbailey@nisa.net>.
11556         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
11557         Reported by Jeff Bailey <jbailey@nisa.net>.
11559         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
11560         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
11561         Reported by Jeff Bailey <jbailey@nisa.net>.
11563 2001-12-01  Roland McGrath  <roland@frob.com>
11565         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
11566         missing backslash in test arguments.
11567         * sysdeps/mach/hurd/configure: Regenerated.
11569 2001-11-26  Roland McGrath  <roland@frob.com>
11571         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
11572         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
11574 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
11576         * iconvdata/Makefile (modules): Add ARMSCII-8.
11577         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
11578         * iconvdata/armscii-8.c: New file.
11580 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
11582         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
11583         don't match, fix {{a,b},c} globbing, clean up.
11584         Patch by Flavio Veloso <flaviovs@magnux.com>.
11585         * posix/globtest.sh: Add new tests.
11587 2001-11-29  Andreas Jaeger  <aj@suse.de>
11589         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
11590         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
11592         * sysdeps/generic/abort.c: Include libioP.h for
11593         _IO_flush_all_lockp prototype.
11595 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
11597         * posix/regex.h: Define __restrict_arr correctly.
11599 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11601         * iconvdata/ibm1163.c: New file.
11602         * iconvdata/ibm1163.h: New file.
11603         * iconvdata/ibm1164.c: New file.
11604         * iconvdata/ibm1164.h: New file.
11605         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
11606         * iconvdata/Makefile: Likewise.
11607         * iconvdata/testdata/IBM1163: New file.
11608         * iconvdata/testdata/IBM1163..UTF8: New file.
11609         * iconvdata/testdata/IBM1164: New file.
11610         * iconvdata/testdata/IBM1164..UTF8: New file.
11611         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11613         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
11614         * iconvdata/ibm1124.h: Likewise.
11615         * iconvdata/ibm1132.h: Likewise.
11616         * iconvdata/ibm1133.h: Likewise.
11617         * iconvdata/ibm1160.h: Likewise.
11618         * iconvdata/ibm1161.h: Likewise.
11619         * iconvdata/ibm1162.h: Likewise.
11620         * iconvdata/ibm856.h: Likewise.
11621         * iconvdata/ibm922.h: Likewise.
11622         * iconvdata/ibm930.h: Likewise.
11623         * iconvdata/ibm932.h: Likewise.
11624         * iconvdata/ibm933.h: Likewise.
11625         * iconvdata/ibm935.h: Likewise.
11626         * iconvdata/ibm937.h: Likewise.
11627         * iconvdata/ibm939.h: Likewise.
11628         * iconvdata/ibm943.h: Likewise.
11629         * iconvdata/ibm930.c: Pretty printing.
11630         * iconvdata/ibm937.c: Avoid access accross array boundary.
11632         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
11633         the current locale's codeset.
11634         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
11635         empty input string.
11636         * iconv/iconv_prog.c: Pass empty strings as default value for to-
11637         and from-charset.  Don't determine locale's charset here.
11639         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
11640         as the old _IO_flush_all but lock only if parameter is nonzero.
11641         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
11642         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
11643         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
11644         if libio is used [PR libc/2575].
11646 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
11648         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
11649         __signbitl): Only define for ISO C99.
11651 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11653         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
11654         herrnop to NETDB_INTERNAL if we run out of buffer space.
11656 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11658         * nss/nss_files/files-XXX.c (internal_getent): Correct input
11659         overflow test for platforms with signed char.
11660         Reported by Andrew Haley <aph@cambridge.redhat.com>.
11662 2001-11-28  Bruno Haible  <bruno@clisp.org>
11664         * locale/programs/simple-hash.c (lookup_2): Remove function.
11665         (insert_entry_2): Call lookup instead of lookup_2.
11667 2001-03-04  Bruno Haible  <bruno@clisp.org>
11669         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
11671 2001-10-31  Bruno Haible  <bruno@clisp.org>
11673         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
11675 2001-03-21  Bruno Haible  <bruno@clisp.org>
11677         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
11678         chokes on empty macro arguments.
11679         * intl/plural.y: Add #pragma for alloca on AIX 3.
11681 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11683         * intl/dcigettext.c (guess_category_value): Only implement for
11684         glibc.  Otherwise rely on function _nl_locale_name which isn't
11685         present in the glibc sources.
11687 2001-09-24  Bruno Haible  <bruno@clisp.org>
11689         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
11690         transliteration when building on a glibc system but outside glibc.
11692 2001-09-22  Bruno Haible  <bruno@clisp.org>
11694         * intl/plural-eval.c: New file, extracted from dcigettext.c.
11695         * intl/dcigettext.c (plural_eval): Remove function, moved to
11696         intl/plural-eval.c.
11697         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
11698         Include plural-eval.c.
11700 2001-09-22  Bruno Haible  <bruno@clisp.org>
11702         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
11703         don't start with a digit; nplurals must be positive.
11705 2001-09-02  Bruno Haible  <bruno@clisp.org>
11707         * intl/plural-exp.h: New file, extracted from gettextP.h.
11708         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
11709         * intl/gettextP.h (struct expression, struct parse_args,
11710         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
11711         * intl/loadmsgcat.c: Include plural-exp.h.
11712         (PLURAL_PARSE): Move macro to plural-exp.h.
11713         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
11714         plural-exp.c.
11715         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
11716         EXTRACT_PLURAL_EXPRESSION.
11717         (_nl_unload_domain): Update.
11718         * intl/dcigettext.c: Include plural-exp.h.
11719         * intl/plural.y: Include plural-exp.h, not gettextP.h.
11720         (FREE_EXPRESSION): Move macro to plural-exp.h.
11721         * intl/Makefile (routines): Add plural-exp.
11722         (distribute): Add plural-exp.h.
11724 2001-07-28  Bruno Haible  <bruno@clisp.org>
11726         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
11727         isdigit, tolower argument to 'unsigned char'.
11728         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
11729         'unsigned char'.
11730         * intl/localealias.c (read_alias_file): Cast isspace argument to
11731         'unsigned char'.
11733 2001-10-20  Bruno Haible  <bruno@clisp.org>
11735         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
11736         anyway.)
11737         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
11738         with the variable 'index' in plural_lookup.
11739         * intl/l10nflist.c (strchr): Likewise.
11740         * intl/localealias.c (strchr): Likewise.
11742         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11743         * intl/bindtextdom.c: Likewise.
11744         * intl/dcigettext.c: Likewise.
11745         * intl/dgettext.c: Likewise.
11746         * intl/dngettext.c: Likewise.
11747         * intl/explodename.c: Likewise.
11748         * intl/finddomain.c: Likewise.
11749         * intl/gettext.c: Likewise.
11750         * intl/l10nflist.c: Likewise.
11751         * intl/loadmsgcat.c: Likewise.
11752         * intl/localealias.c: Likewise.
11753         * intl/ngettext.c: Likewise.
11754         * intl/textdomain.c: Likewise.
11755         * intl/gettext.h: Assume <limits.h> exists.
11757 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11759         * stdio-common/Makefile (tests): Add scanf11.
11760         * stdio-common/scanf11.c: New file.
11762 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11764         * version.h (RELEASE): Define as development.
11765         (VERSION): Set to 2.2.90.
11767 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11769         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11770         * nis/nss_nis/nis-grp.c: Likewise.
11771         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11773         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11774         * nis/nss_nis/nis-pwd.c: Likewise.
11775         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11777         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11778         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11779         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11781         * nscd/grpcache.c: Use strtoul instead of atol.
11782         * nscd/pwdcache.c: Likewise.
11783         * nss/getent.c: Likewise.
11785 2001-11-27  Paul Eggert  <eggert@twinsun.com>
11787         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11788         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11790 2001-11-19  Bruno Haible  <bruno@clisp.org>
11792         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11793         90%.
11794         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11795         improves the quality of the hash function, especially for short
11796         strings.
11798 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11800         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11801         are found call conv_error and not input_error [PR libc/2669].
11803         * math/bits/mathcalls.h: Mark ceil and floor as const.
11804         Reported by David Mosberger.
11806 2001-11-21  Jim Meyering  <meyering@lucent.com>
11808         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11809         Define to be __-prefixed.
11810         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11812 2001-11-26  Andreas Jaeger  <aj@suse.de>
11814         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11815         avoid warning.
11817 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
11819         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11820         initialization.
11822         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11823         unused variables.  Fix threshold for returning 1.0.
11825         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11826         argument.
11828         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11829         remove unused variables.
11831         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11833         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11834         include local math header files.
11836 2001-11-22  Andreas Jaeger  <aj@suse.de>
11838         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11839         avoid warning.
11841 2001-11-21  Andreas Jaeger  <aj@suse.de>
11843         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11845         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11846         sys/debugreg.h
11848 2001-11-15  Andreas Jaeger  <aj@suse.de>
11850         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11851         compilers that support it.
11853         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11854         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11855         * stdlib/stdlib.h: Likewise.
11857 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
11859         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11860         statement with gotos.
11861         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11863 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
11865         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11867 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
11869         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11871 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
11872             H.J. Lu  <hjl@gnu.org>
11874         * Versions.def (libc): Add GCC_3.0.
11875         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11876         if gcc supports this flag.
11877         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11878         (gcc3): Allow glibc to be compiled with gcc 3.x.
11879         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11880         * config.make.in (static-libgcc, unwind-find-fde): Add.
11881         * Makerules (build-shlib-helper, build-module-helper): Use it.
11882         * scripts/versions.awk: Make sure GLIBC_ versions come first.
11883         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11884         necessary.
11885         (_fini): Call __deregister_frame_info_bases if
11886         __register_frame_info_bases was used to register.
11887         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11888         for GLIBC_2.0.
11889         (__register_frame_info_bases, __register_frame_info_table_bases,
11890         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11891         * elf/Makefile (routines): Add unwind-dw2-fde.
11892         (shared-only-routines): Add unwind-dw2-fde.
11893         * sysdeps/alpha/gccframe.h: New file.
11894         * sysdeps/arm/gccframe.h: New file.
11895         * sysdeps/generic/framestate.c: New file.
11896         * sysdeps/generic/dwarf2.h: New file.
11897         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11898         * sysdeps/generic/unwind-dw2-fde.c: New file.
11899         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11900         * sysdeps/generic/unwind-dw2-fde.h: New file.
11901         * sysdeps/generic/unwind-dw2.c: New file.
11902         * sysdeps/generic/unwind-pe.h: New file.
11903         * sysdeps/generic/unwind.h: New file.
11904         * sysdeps/hppa/gccframe.h: New file.
11905         * sysdeps/i386/gccframe.h: New file.
11906         * sysdeps/m68k/gccframe.h: New file.
11907         * sysdeps/mips/gccframe.h: New file.
11908         * sysdeps/powerpc/gccframe.h: New file.
11909         * sysdeps/s390/gccframe.h: New file.
11910         * sysdeps/sh/gccframe.h: New file.
11911         * sysdeps/sparc/gccframe.h: New file.
11912         * sysdeps/vax/gccframe.h: New file.
11913         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11914         Set on all architectures except ia64.
11915         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11916         for i386.
11917         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11918         __deregister_frame_info): Move to elf/Versions.
11919         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11920         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11921         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11922         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11923         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11924         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11925         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11926         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11927         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11928         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11929         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11930         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11931         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11932         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11933         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11934         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11935         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11936         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11938 2001-11-15  Jeff Law  <law@redhat.com>
11940         * posix/regex.c (uintptr_t): Do not provide a definition if the
11941         system provided one.
11943 2001-11-13  Roland McGrath  <roland@frob.com>
11945         * stdio-common/tmpfile.c: Moved to ...
11946         * sysdeps/generic/tmpfile.c: ... here.
11947         * sysdeps/mach/hurd/tmpfile.c: New file.
11949         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11950         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11951         (fopenport): Define as weak alias.
11953         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11954         * libio/libioP.h: ... to here.
11956 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
11958         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11959         program header twice.  Construct list with the needed information.
11961 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
11963         * po/ca.po: Update from translation team.
11965         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11966         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
11967         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11968         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11970 2001-11-10  Andreas Jaeger  <aj@suse.de>
11972         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11973         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11974         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11976 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11978         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11979         correctly.
11980         * elf/dl-load.c (is_dst): New function.
11981         (_dl_dst_count): Use is_dst to check for DST variable.
11982         (_dl_dst_substitute): Likewise.
11984 2001-11-09  Roland McGrath  <roland@frob.com>
11986         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11987         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11988         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11989         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11990         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11991         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11992         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11993         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11994         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11995         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11996         * sysdeps/mach/hurd/powerpc/Dist: New file.
11998         * hurd/privports.c (__get_privileged_ports):
11999         Only contact the proc server if necessary for this call.
12000         Suggested by Neal H Walfield <neal@cs.uml.edu>.
12001         Check error return for mach_port_mod_refs.
12003 2001-11-09  Andreas Schwab  <schwab@suse.de>
12005         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
12007 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
12009         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
12010         object is always the last in the list.
12011         (_dl_map_object_from_fd): Delete code to remove from object list
12012         when DF_1_NOOPEN is seen.  This is done in lose.
12014 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
12016         * elf/dl-object.c (_dl_new_object): Various small optimizations.
12018 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
12020         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
12021         HWCAP_CHECK macro code.
12023         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
12024         Now returns MAP_FAILED on error.
12025         * elf/rtld.c: Adjust caller.
12026         * sysdeps/generic/dl-cache.c: Likewise.
12027         * sysdeps/generic/ldsodefs.h: Adjust description.
12029         * elf/dl-version.c (match_symbol): Optimize error handling for size.
12030         (_dl_check_map_versions): Likewise.
12032 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
12034         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
12035         _dl_signal_error directly, always use lose.  Set fd to -1 after
12036         file is closed.
12037         (lose): Don't call close if fd == -1.
12039 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
12041         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
12042          Also fix typo @code {mbsinit} to @code{mbsinit}.
12044 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
12046         * elf/dl-profile.c: Replace state variable with simple flag named
12047         running.  Remove commented-out code.
12049         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
12050         (_dl_init_paths): Likewise.
12051         (_dl_map_object_from_fd): Likewise.
12052         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
12054 2001-11-06  Roland McGrath  <roland@frob.com>
12056         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
12057         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
12059         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
12060         sysdeps/powerpc/elf/sysdep.h.
12061         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
12063 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
12065         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
12066         speed.
12067         (process_envvars): Some more optimizations.
12068         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
12070         * elf/elf.h: Add dynamic tag definitions for prelinking.
12072         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
12073         Rewrite code to remove environment varables for SUID binaries.
12074         Small optimization in LD_PROFILE handling.
12075         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
12076         changes.
12077         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
12079         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
12081         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
12082         strings.  Change type of second parameter.
12083         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
12084         for last change.
12086         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
12088 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
12090         * manual/string.texi: Fix typos.
12091         * manual/examples/argp-ex2.c: Likewise.
12093 2001-11-05  Roland McGrath  <roland@frob.com>
12095         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
12096         the more-specific unix/sysv/linux/powerpc file and breaks everything.
12097         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
12098         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
12099         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
12100         here, put under [__ELF__].
12102 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
12104         * manual/charset.texi: Extensive editing work.
12105         * manual/nss.texi: Likewise.
12106         Changes by Dennis Grace <dgrace@us.ibm.com>.
12108 2001-11-04  Roland McGrath  <roland@frob.com>
12110         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
12111         parameter to dir_mkfile.
12113 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
12115         * string/bits/string2.h (__strndup): If n is smaller than len, set
12116         len to n + 1.
12117         * string/tester.c (test_strndup): New function.
12118         (main): Call it.
12120 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
12122         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
12124         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
12125         * scripts/cpp: New file.
12127         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
12128         for rtld_search_dirs content.  Minor optimizations.
12130 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
12132         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
12133         avoiding unnecessary duplication.
12135 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
12137         * elf/dl-load.c (_dl_map_object): If library was found using
12138         LD_LIBRARY_PATH, don't try RUNPATH list.
12140 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12142         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
12143         Correct second argument of register_dump call.
12144         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
12145         Likewise.
12147 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
12149         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
12150         modules.
12151         * iconvdata/TESTS: Likewise.
12152         * iconvdata/gconv-modules: Likewise.
12153         * iconvdata/ibm1132.c: New file.
12154         * iconvdata/ibm1132.h: New file.
12155         * iconvdata/ibm1133.c: New file.
12156         * iconvdata/ibm1133.h: New file.
12157         * iconvdata/ibm1162.c: New file.
12158         * iconvdata/ibm1162.h: New file.
12159         * iconvdata/testdata/IBM1132: New file.
12160         * iconvdata/testdata/IBM1132..UTF8: New file.
12161         * iconvdata/testdata/IBM1133: New file.
12162         * iconvdata/testdata/IBM1133..UTF8: New file.
12163         * iconvdata/testdata/IBM1162: New file.
12164         * iconvdata/testdata/IBM1162..UTF8: New file.
12165         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
12167         * string/string.h: Fix typo in comment.
12168         * wcsmbs/wchar.h: Likewise.
12170 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
12172         * manual/getopt.texi (getopt_long, getopt_long_only): Include
12173         const in type of longopts parameter.
12175 2001-10-29  Andreas Jaeger  <aj@suse.de>
12177         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
12179 2001-10-29  Kevin Ryde  <user42@zip.com.au>
12181         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
12182         output, clarify `#' behaviour on 0.
12183         (Floating-Point Conversions): Clarify that %g only uses %e when
12184         the exponent would be greater than 1.
12186 2001-10-28  Roland McGrath  <roland@frob.com>
12188         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
12189         * sysdeps/mach/powerpc/machine-sp.h: New file.
12190         * sysdeps/mach/powerpc/sysdep.h: New file.
12191         * sysdeps/mach/powerpc/thread_state.h: New file.
12193         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
12194         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
12195         expect to need the same thing on every platform.
12197         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
12198         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
12200         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
12201         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
12202         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
12203         Move all these assembly-related definitions to ...
12204         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
12206         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
12207         by Peter Bruin <pjbruin@dds.nl>.
12209         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
12210         packing results for a `poll' call.
12212 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
12214         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
12215         correctly.
12216         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
12217         bracket expression.
12219         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12220         nrules value.
12221         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
12223 2001-10-24  H.J. Lu  <hjl@gnu.org>
12225         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
12226         Use __BEGIN_DECLS/__END_DECLS around prototypes.
12227         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
12229 2001-10-21  Jim Meyering  <meyering@lucent.com>
12231         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
12232         this code would end up calling gettext even in packages built
12233         with --disable-nls.
12234         * posix/getopt.c (_): Likewise.
12235         * posix/regex.c (_): Likewise.
12237 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
12239         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
12240         lookup not ip6.int.
12241         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
12242         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
12244 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
12246         * misc/sys/cdefs.h (__attribute_used__): Define.
12247         * elf/rtld.c (_dl_start): Add __attribute_used__.
12248         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
12250 2001-10-25  Andreas Schwab  <schwab@suse.de>
12252         * stdlib/a64l.c: Expect least significant digit first.
12253         * stdlib/l64a.c: Produce least significant digit first.
12254         * stdlib/Makefile (tests): Add test-a64l.
12255         * stdlib/test-a64l.c: New file.
12256         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
12258 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
12260         * po/sk.po: Update from translation team.
12262 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
12264         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
12266 2001-10-18  Andreas Schwab  <schwab@suse.de>
12268         * math/libm-test.inc (print_ulps): Print ulp values rounded to
12269         next whole number.
12270         (print_function_ulps): Likewise.
12271         (print_complex_function_ulps): Likewise.
12272         (print_max_error): Likewise.
12273         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
12275 2001-10-16  Andreas Schwab  <schwab@suse.de>
12277         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
12278         implementation.
12280         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
12281         BSD_SETJMP or BSD__SETJMP is defined, resp.
12282         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
12283         a tail call to __sigsetjmp that would require extending the
12284         caller's frame.
12285         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
12286         * sysdeps/m68k/bsd-setjmp.S: Deleted.
12287         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
12288         Reported by Jes Sorensen <jes@trained-monkey.org>.
12290 2001-10-16  Andreas Jaeger  <aj@suse.de>
12292         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
12293         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
12294         close PR libc/2589.
12296 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
12298         * po/ca.po: New file.  Contributed by the translation team.
12300 2001-10-15  Ralf Baechle  <ralf@gnu.org>
12302         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
12303         a varargs prototype.  Remove dependency from kernel header files.
12305         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
12306         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
12308 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
12310         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
12311         to generate hexadecimal identifier.
12312         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
12314 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
12316         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
12318 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
12320         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
12321         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
12322         Contributed by Stephen L Moshier <moshier@mediaone.net>.
12324         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
12325         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12326         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
12327         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
12328         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
12329         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
12331         * timezone/africa: Update from tzdata2001d.
12332         * timezone/asia: Likewise.
12333         * timezone/australasia: Likewise.
12334         * timezone/backward: Likewise.
12335         * timezone/europe: Likewise.
12336         * timezone/leapseconds: Likewise.
12337         * timezone/northamerica: Likewise.
12338         * timezone/southamerica: Likewise.
12339         * timezone/zone.tab: Likewise.
12341 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12343         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
12344         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
12346 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
12348         * elf/elf.h (PT_TLS): New definition.
12350 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
12352         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
12353         bits/errno.h
12355 2001-10-07  Roland McGrath  <roland@frob.com>
12357         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
12359 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
12361         * elf/elf.h: Add more ELFOSABI_* constants.
12363 2001-10-04  Ben Collins  <bcollins@debian.org>
12365         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
12366         decleration of __need_wchar_t.
12368 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
12370         * string/bits/string2.h (__strsep_g): Add prototype.
12371         (__strsep): Use it.
12372         * string/Versions (__strsep): Remove.
12373         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
12375 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
12377         * manua/llio.texi: Clarify file references added by mmap.
12378         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
12380 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
12382         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
12383         Add sc_loadrs and sc_rbs_bas to match current kernel.
12385 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
12387         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
12389         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
12391 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
12393         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
12394         object has been bumped because of relocation dependency, avoid
12395         duplicates in l_scope.
12396         (show_scope): Fix typos.
12397         * elf/Makefile: Add rules to build and run reldep6.
12398         * elf/reldep6.c: New file.
12399         * elf/reldep6mod0.c: New file.
12400         * elf/reldep6mod1.c: New file.
12401         * elf/reldep6mod2.c: New file.
12402         * elf/reldep6mod3.c: New file.
12403         * elf/reldep6mod4.c: New file.
12405 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
12407         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
12408         sparc64_fixup_plt.
12409         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
12410         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
12411         for non-lazy binding. Fix .plt[32768+] handling.
12412         (elf_machine_plt_value): Don't add addend.
12413         (elf_machine_rela): Call sparc64_fixup_plt instead of
12414         elf_machine_fixup_plt.
12415         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
12416         dynamic linker at 0xfffff800XXXXXXXX.
12418         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
12420 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
12422         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
12424 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
12426         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
12427         declare __cmsg_data field if its size would be bigger than 0.
12428         (CMSG_DATA): Adjust accordingly.
12429         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
12430         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
12431         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
12432         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
12433         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12434         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
12435         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12437 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
12439         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
12440         * iconvdata/testdata/IBM1160: New file.
12441         * iconvdata/testdata/IBM1160..UTF8: New file.
12442         * iconvdata/testdata/IBM1161: New file.
12443         * iconvdata/testdata/IBM1161..UTF8: New file.
12444         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
12446 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
12448         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
12449         UL_SETFSIZE computations better.
12451         * rt/Makefile: Remove use of filter for librt again.
12453         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
12454         UL_SETFSIZE computations better.
12456         * string/Versions: Export __strsep for GLIBC_2.2.5.
12457         * string/bits/string2.h: Define all __STRING_INLINE functions if
12458         _FORCE_INLINES is defined.
12459         Use int instead of char of parameter types.
12460         (__strsep): Don't use __strsep_g.  Don't define it.
12461         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
12462         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
12463         __strcpy_small.
12464         (__stpcpy_a_small): Renamed from __stpcpy_small.
12465         (__strcspn_c1): Don't define if _FORCE_INLINES.
12466         (__strspn_c1): Likewise.
12468 2001-09-22  Ben Collins  <bcollins@debian.org>
12470         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
12471         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
12472         * sysdeps/ia64/bits/sigaction.h: Likewise.
12473         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
12475 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
12477         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
12479 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
12481         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
12483 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
12485         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
12487 2001-09-20  H.J. Lu  <hjl@gnu.org>
12489         * include/dlfcn.h (__RTLD_SPROF): New definiton.
12490         * elf/dl-open.c (dl_open_worker): Return immediately after loading
12491         for __RTLD_SPROF.
12492         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
12493         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
12495 2001-09-20  H.J. Lu  <hjl@gnu.org>
12497         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
12498         don't add 1.
12500 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
12502         * nss/getent.c: Accept -s parameter to overwrite rules in
12503         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
12505         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
12506         with as many ".0" as necessary to form a complete address
12507         inet_network understands.
12509         * nss/getent.c: Various cleanups.  Use simpler and fewer function
12510         calls.
12512 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12514         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
12515         _JMPBUF_UNWINDS.
12516         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
12518 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
12520         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
12521         IBM1161.
12522         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
12523         * iconvdata/ibm1160.c: New file.
12524         * iconvdata/ibm1160.h: New file.
12525         * iconvdata/ibm1161.c: New file.
12526         * iconvdata/ibm1161.h: New file.
12527         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
12529 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
12531         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
12532         difference between base address and first PT_LOAD's virtual address,
12533         not the base address.
12535 2001-09-11  Tom Rix  <trix@redhat.com>
12537         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
12538         ifdef for __getopt_clean_environment.
12539         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
12541 2001-09-22  Andreas Jaeger  <aj@suse.de>
12543         * elf/reldep4.c (main): Add proper prototype to fix warning.
12545         * elf/reldep5.c (main): Remove unused variable.
12547         * math/math_private.h: Add prototypes.
12549 2001-09-21  Andreas Jaeger  <aj@suse.de>
12551         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
12552         * sysdeps/x86_64/Dist: New file.
12553         * sysdeps/x86_64/soft-fp/Dist: New file.
12555         * sysdeps/gnu/Dist: Remove eval.c.
12557 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
12559         * malloc/memusage.c (realloc): Don't count already allocated
12560         memory in the sums.
12561         (me): Always use dlsym() to find the real implementations.
12563         * malloc/memusage.sh: Make -n option actually do something.
12565 2001-09-20  Andreas Jaeger  <aj@suse.de>
12567         * elf/elf.h (R_390_NUM): Correct value.
12569         * Versions.def: Add missing versions 2.2.3 for libthread_db and
12570         libpthread.
12572         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
12573         for x86-64, install x86-64 into */lib64.
12575         * shlib-versions: Add x86-64.
12577         * elf/elf.h: Add x86-64 relocations.
12579 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
12581         * po/fr.po: Update from translation team.
12583 2001-09-19  Andreas Jaeger  <aj@suse.de>
12585         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
12586         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
12587         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
12588         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
12589         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
12590         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
12591         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
12592         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
12593         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
12594         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
12595         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
12596         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
12597         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
12598         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
12599         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
12600         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
12601         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
12602         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
12603         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
12604         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
12605         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
12606         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
12607         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
12608         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
12609         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
12610         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
12611         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
12612         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
12613         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
12614         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
12615         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
12616         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
12617         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
12618         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
12619         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
12620         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
12621         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
12622         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
12623         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
12624         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
12625         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
12626         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
12627         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
12628         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
12629         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
12630         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
12631         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
12632         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
12633         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
12634         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
12635         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
12636         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
12637         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
12638         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
12639         * sysdeps/unix/x86_64/sysdep.S: New file.
12640         * sysdeps/unix/x86_64/sysdep.h: New file.
12641         * sysdeps/x86_64/Implies: New file.
12642         * sysdeps/x86_64/Makefile: New file.
12643         * sysdeps/x86_64/Versions: New file.
12644         * sysdeps/x86_64/__longjmp.S: New file.
12645         * sysdeps/x86_64/abort-instr.h: New file.
12646         * sysdeps/x86_64/atomicity.h: New file.
12647         * sysdeps/x86_64/bits/endian.h: New file.
12648         * sysdeps/x86_64/bits/setjmp.h: New file.
12649         * sysdeps/x86_64/bits/string.h: New file.
12650         * sysdeps/x86_64/bp-asm.h: New file.
12651         * sysdeps/x86_64/bsd-_setjmp.S: New file.
12652         * sysdeps/x86_64/bsd-setjmp.S: New file.
12653         * sysdeps/x86_64/dl-machine.h: New file.
12654         * sysdeps/x86_64/elf/initfini.c: New file.
12655         * sysdeps/x86_64/elf/start.S: New file.
12656         * sysdeps/x86_64/ffs.c: New file.
12657         * sysdeps/x86_64/ffsll.c: New file.
12658         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
12659         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
12660         * sysdeps/x86_64/fpu/e_acosl.c: New file.
12661         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
12662         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
12663         * sysdeps/x86_64/fpu/e_expl.c: New file.
12664         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
12665         * sysdeps/x86_64/fpu/e_log10l.S: New file.
12666         * sysdeps/x86_64/fpu/e_log2l.S: New file.
12667         * sysdeps/x86_64/fpu/e_logl.S: New file.
12668         * sysdeps/x86_64/fpu/e_powl.S: New file.
12669         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
12670         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
12671         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
12672         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
12673         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
12674         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
12675         * sysdeps/x86_64/fpu/fegetenv.c: New file.
12676         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
12677         * sysdeps/x86_64/fpu/fegetround.c: New file.
12678         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
12679         * sysdeps/x86_64/fpu/fesetenv.c: New file.
12680         * sysdeps/x86_64/fpu/fesetround.c: New file.
12681         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
12682         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
12683         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
12684         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
12685         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
12686         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
12687         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
12688         * sysdeps/x86_64/fpu/s_atanl.c: New file.
12689         * sysdeps/x86_64/fpu/s_cosl.S: New file.
12690         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
12691         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
12692         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
12693         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
12694         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
12695         * sysdeps/x86_64/fpu/s_logbl.c: New file.
12696         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
12697         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
12698         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
12699         * sysdeps/x86_64/fpu/s_rintl.c: New file.
12700         * sysdeps/x86_64/fpu/s_significandl.c: New file.
12701         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
12702         * sysdeps/x86_64/fpu/s_sinl.S: New file.
12703         * sysdeps/x86_64/fpu/s_tanl.S: New file.
12704         * sysdeps/x86_64/gmp-mparam.h: New file.
12705         * sysdeps/x86_64/hp-timing.c: New file.
12706         * sysdeps/x86_64/hp-timing.h: New file.
12707         * sysdeps/x86_64/htonl.S: New file.
12708         * sysdeps/x86_64/memusage.h: New file.
12709         * sysdeps/x86_64/setjmp.S: New file.
12710         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
12711         * sysdeps/x86_64/stackinfo.h: New file.
12712         * sysdeps/x86_64/sysdep.h: New file.
12713         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
12715         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
12716         L Moshier.
12718 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12720         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
12721         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
12723 2001-09-18  Andreas Schwab  <schwab@suse.de>
12725         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
12726         list, now that l_scope is a pointer.
12728         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
12729         scope list.
12731 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12733         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
12734         (elf_machine_rela_relative): Add a missing declaration.
12736 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
12738         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
12739         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
12740         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
12741         ldd-rewrite scripts.
12743 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12745         * elf/ldd.bash.in: Update copyright message.
12747 2001-09-17  H.J. Lu  <hjl@gnu.org>
12749         * hurd/hurdmalloc.c (bcopy): Removed.
12750         (realloc): Replace bcopy with memcpy.
12751         * hurd/path-lookup.c (file_name_path_scan): Likewise.
12752         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12753         * sunrpc/rpcinfo.c (pmapdump): Likewise.
12755         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12756         (gethostbyaddr): Likewise.
12757         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12759 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12761         * sysdeps/gnu/eval.c: Removed.
12763 2001-09-18  Andreas Jaeger  <aj@suse.de>
12765         * sysdeps/i386/fpu/s_logbl.S: Move to ...
12766         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12768         * sysdeps/i386/fpu/s_rintl.S: Move to ...
12769         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12771         * sysdeps/i386/fpu/s_significandl.S: Move to ...
12772         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12774 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
12776         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12777         nrules value.
12779 2001-09-14  H.J. Lu  <hjl@gnu.org>
12781         * sysdeps/mips/fpu/libm-test-ulps: Updated.
12783 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
12785         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12786         Patch by Florian La Roche <laroche@redhat.com>.
12788         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12790         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12791         ETHER_CRC_LEN.
12793 2001-09-14  Andreas Schwab  <schwab@suse.de>
12795         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
12796         Sumner <bls@sgi.com>.
12797         * posix/execlp.c: Likewise.
12799 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
12801         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12802         is already found earlier in the search scope.
12804 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
12806         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12807         filter.
12809 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
12811         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12813 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
12815         * config.h.in: Enforce optimization to be used.
12816         * Makeconfig (preprocess-versions): Define ASSEMBLER.
12817         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12818         * posix/Makefile (annexc-CFLAGS): Define to -O.
12819         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12821 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
12823         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12824         Patch by Stephan Kulow.
12826 2001-09-08  Ben Collins  <bcollins@debian.org>
12828         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12829         usage of RESOLVE() (r_type, not reloc->r_type).
12831 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12833         * elf/dl-object.c: Avoid allocating extra memory block for name.
12834         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12835         allocated separately.
12836         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12838 2001-09-08  H.J. Lu  <hjl@gnu.org>
12840         * po/zh_TW.po: Fix a typo.
12842 2001-09-07  Tom Rix  <trix@redhat.com>
12844         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12846 2001-08-26  Tom Rix  <trix@redhat.com>
12848         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12849         command line options.
12850         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12851         * sysdeps/unix/sysv/aix/start.c: Removed.
12852         * sysdeps/unix/sysv/aix/start-libc.c: New file.
12853         * sysdeps/unix/sysv/aix/init-first.c: New file.
12854         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12856 2001-09-08  Ben Collins  <bcollins@debian.org>
12858         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12859         * sysdeps/generic/dl-machine.h: Likewise.
12860         * sysdeps/hppa/dl-fptr.c: Likewise.
12861         * sysdeps/ia64/dl-fptr.c: Likewise.
12862         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12863         * sysdeps/mips/dl-machine.h: Likewise.
12864         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12865         * sysdeps/powerpc/dl-machine.c: Likewise.
12867 2001-09-07  Ben Collins  <bcollins@debian.org>
12869         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12871         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12873 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12875         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12876         dependencies if necessary.
12878         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12879         loaded directly) determine length if l_initfini list by iterating
12880         over its elements.  Minor optimizations.
12881         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12882         for dependency objects.
12883         If object was already loaded check whether any of the dependencies
12884         is already on the relocation dependency list.  If yes, remove the
12885         latter.  Minor optimizations.
12886         * elf/dl-lookup.c (add_dependency): Add check for self reference of
12887         maps here.  Search l_initfini list only if the object was loaded
12888         directly and not only as a dependency.
12889         (_dl_lookup_symbol): Add relocation dependency also if object
12890         is not in global scope.  Remove test for self-reference here.
12891         (_dl_lookup_versioned_symbol): Likewise.
12892         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
12893         element of first name record.
12894         * elf/loadtest.c: Add some more test to recognize early if an object
12895         wasn't unloaded.
12896         * elf/Makefile: Add rules to build and run reldep5.
12897         * elf/reldep5.c: New file.
12898         * elf/reldepmod5.c: New file.
12899         * elf/reldepmod6.c: New file.
12901         * elf/reldep2.c: Fix typo.
12903 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
12905         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12906         elements.  Change l_scope to be a pointer only.
12907         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12908         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12909         here add searchlist of newly open file to the dependency's scope.
12910         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12911         only searchlist from its scope.  Free own scope array if necessary.
12912         * elf/Makefile (tests): Add dblload and dblunload now.
12914 2001-09-06  Andreas Jaeger  <aj@suse.de>
12916         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12917         Stephen L Moshier.
12919 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
12921         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
12922         they both fail.
12923         * elf/dblload.c: New file.
12924         * elf/dblloadmod1.c: New file.
12925         * elf/dblloadmod2.c: New file.
12926         * elf/dblloadmod3.c: New file.
12927         * elf/dblunload.c: New file.
12929 2001-09-04  Richard Henderson  <rth@redhat.com>
12931         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12932         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12934 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12936         Correct very misleading message for error in failed runtime relocation.
12937         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12938         place of the error.
12939         (_dl_signal_cerror): Likewise.
12940         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12941         * elf/dl-close.c: Likewise.
12942         * elf/dl-deps.c: Likewise.
12943         * elf/dl-load.c: Likewise.
12944         * elf/dl-lookup.c: Likewise.
12945         * elf/dl-open.c: Likewise.
12946         * elf/dl-reloc.c: Likewise.
12947         * elf/dl-sym.c: Likewise.
12948         * elf/dl-version.c: Likewise.
12949         * sysdeps/generic/dl-sysdep.c: Likewise.
12951 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12953         * iconv/strtab.c (strtabinit): Initialize null Strent.
12954         (newstring): Move len == 0 handling...
12955         (strtabadd): ...here.
12956         If len == 1, return null Strent.
12957         When inserting a suffix of an existing string, check if
12958         it is not equal to some suffix already recorded.
12959         Copy left and right members over if adding longer string.
12961 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12963         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12965         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12966         (__syscall_gethostname): Add prototype.
12968 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12970         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12972 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
12974         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12976 2001-08-27  Roland McGrath  <roland@frob.com>
12978         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12979         short, copy that much into NAME anyway before returning error.
12981 2001-09-01  Richard Henderson  <rth@redhat.com>
12983         * sysdeps/alpha/elf/Dist: Remove file.
12984         * sysdeps/alpha/elf/Makefile: Remove file.
12985         * sysdeps/alpha/elf/crtbegin.S: Remove file.
12986         * sysdeps/alpha/elf/crtend.S: Remove file.
12987         * sysdeps/alpha/elf/initfini.c: New file.
12989 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
12991         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12992         * iconv/tst-iconv3.c: Likewise.
12994 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
12996         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12998 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
13000         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
13001         export it.
13002         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
13003         * iconv/iconv_prog.c (insert_cache): New function.
13004         (print_known_names): If cache is used call insert_cache to use the
13005         information from the cache [PR libc/2509].
13007 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
13009         * time/strptime.c (strptime_internal): Recognize 'l' format and
13010         handle it like 'I' for symmetry with strftime.
13012 2001-08-31  Richard Henderson  <rth@redhat.com>
13014         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
13015         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
13016         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
13017         (print_statistics): Make scalar unsigned long long.
13018         * sysdeps/alpha/hp-timing.h: New file.
13020 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
13022         * stdio-common/perror.c (perror): Save errno early, pass it
13023         down to perror_internal.
13024         (perror_internal): Add errnum argument.
13026 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
13028         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
13029         Don't add old memory content for R_ALPHA_REFQUAD.
13031 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
13033         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
13034         memory correctly.
13036         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
13037         instead of open, __close instead of close, __getpagesize instead
13038         of getpagesize.
13040         * string/argz-stringify.c (__argz_stringify): Use __strnlen
13041         instead of strnlen.
13042         * include/string.h (strndupa): Redefine here to use __strnlen
13043         instead of strnlen.
13044         * string/strndup.c (__strndup): Use __strnlen not strnlen.
13046         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
13047         connected).
13049 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
13051         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
13052         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
13053         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
13054         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
13055         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
13056         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
13057         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
13059 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
13061         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
13063 2001-08-30  Andreas Jaeger  <aj@suse.de>
13065         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
13066         contributed Stephen L Moshier.
13068 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
13070         * sunrpc/etc.rpc (sgi_fam): Add.
13072 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
13074         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
13076 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
13078         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
13079         first is from a previous call.
13080         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
13082 2001-08-29  Andreas Schwab  <schwab@suse.de>
13084         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
13086 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
13088         * config.make.in (INSTALL_SCRIPT): Define.
13089         * Makeconfig (INSTALL_SCRIPT): Define.
13090         * Makerules (do-install-script): New macro to install scripts using
13091         INSTALL_SCRIPT.
13092         (install-bin-script): New rule to install scripts with
13093         do-install-script.
13094         (install-bin-script-nosubdir): New rule.
13095         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
13096         (distinfo-vars): Add $(install-bin-script).
13097         * Rules (others): Likewise.
13098         * Makefile (glibcbug): Install with install-bin-script.
13099         * debug/Makefile (xtrace): Likewise.
13100         (catchsegv): Likewise.
13101         * elf/Makefile (ldd): Likewise.
13102         * malloc/Makefile (mtrace): Likewise.
13103         * timezone/Makefile (tzselect): Likewise.
13105 2001-08-29  H.J. Lu  <hjl@gnu.org>
13107         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
13108         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
13109         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
13111 2001-08-29  Andreas Schwab  <schwab@suse.de>
13113         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
13115 2001-08-28  H.J. Lu  <hjl@gnu.org>
13117         * Makeconfig (combreloc-LDFLAGS): New variable.
13118         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
13119         * config.make.in (have-z-combreloc): New variable.
13120         * configure.in: Substitute libc_cv_z_combreloc.
13122 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
13124         * po/sv.po: Update from translation team.
13125         * po/fr.po: Likewise.
13126         * po/da.po: Likewise.
13128 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
13130         * Makerules: Fix a typo: MD% -> MD5.
13132 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
13134         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
13135         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
13137 2001-08-28  Andreas Jaeger  <aj@suse.de>
13139         * manual/libc-texinfo.sh: Add entry about free manuals.
13141         * manual/contrib.texi (Contributors): Fix cross reference.
13143         * manual/libc.texinfo (Copying): Include freemanuals.
13145         * manual/Makefile (appendices): Add freemanuals.
13147         * manual/freemanuals.texi: New file.
13148         Patch by Brian Youmans <3diff@gnu.org>.
13150         * manual/libm-err-tab.pl: Pretty print more platforms, print a
13151         smaller table.
13153         * manual/math.texi (Errors in Math Functions): Fix grammar, start
13154         table on separate page.
13155         Patch by Brian Youmans <3diff@gnu.org>.
13157 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
13159         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
13160         the connection went down after we first used it try to connect
13161         again and resend the message before printing to the console.
13162         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
13164 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
13166         * string/tst-strlen.c (main): Test strnlen (, -1) too.
13167         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
13168         bit set.
13170 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
13172         * iconv/strtab.c (searchstring): Use correct length for comparison.
13173         (strtabadd): Account total size correct if new string has old string as
13174         substring.
13176 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
13178         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
13180 2001-08-27  Andreas Jaeger  <aj@suse.de>
13182         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
13184         * math/libm-test.inc (j0_test): Add extra tests.
13185         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
13186         not x, in Hankel approximation.
13187         Patches by Stephen L Moshier.
13189 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
13191         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
13192         link_map.
13194         * configure.in: Fix test for .rela.dyn section.
13196         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
13198 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
13200         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
13201         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
13202         Pass type_class to _dl_lookup_*.
13203         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
13204         Pass around just type_class instead of noexec, noplt pair.
13205         (_dl_lookup_versioned_symbol): Likewise.
13206         (_dl_lookup_symbol_skip): Pass around just type_class instead of
13207         noexec, noplt pair.
13208         (_dl_lookup_versioned_symbol_skip): Likewise.
13209         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
13210         * elf/do-lookup.h (do_lookup): Likewise.
13211         * include/link.h (struct link_map): Replace noexec and noplt fields
13212         in l_lookup_cache with type_class field.
13213         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
13214         ELF_RTYPE_CLASS_COPY): Define.
13215         Adjust prototypes for _dl_lookup_symbol and
13216         _dl_lookup_versioned_symbol.
13217         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
13218         elf_machine_lookup_noexec_p): Remove.
13219         (elf_machine_type_class): Define.
13220         * sysdeps/arm/dl-machine.h: Likewise.
13221         * sysdeps/hppa/dl-machine.h: Likewise.
13222         * sysdeps/cris/dl-machine.h: Likewise.
13223         * sysdeps/i386/dl-machine.h: Likewise.
13224         * sysdeps/ia64/dl-machine.h: Likewise.
13225         * sysdeps/m68k/dl-machine.h: Likewise.
13226         * sysdeps/mips/mips64/dl-machine.h: Likewise.
13227         * sysdeps/mips/dl-machine.h: Likewise.
13228         * sysdeps/powerpc/dl-machine.h: Likewise.
13229         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13230         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13231         * sysdeps/sh/dl-machine.h: Likewise.
13232         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13233         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13235 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
13237         * manual/message.texi (Advanced gettext functions): Change
13238         description of plural forms for Slovak.
13239         Reported by Marcel Telka <marcel@telka.sk>.
13241         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
13242         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
13244 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
13246         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
13247         typo.  Patch by Florian La Roche <laroche@redhat.com>.
13249 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
13251         * include/link.h (struct link_map): Add l_lookup_cache element.
13252         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
13253         (RESOLVE_MAP): Likewise.
13254         (_dl_relocate_object): Remove cache initialization.
13255         * elf/dl-lookup.c: Rip out cache handling code.
13256         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
13257         declarations.
13259         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
13260         remove some __builtin_expect.
13261         (_dl_lookup_versioned_symbol): Likewise.
13263         * config.h.in: Add HAVE_Z_COMBRELOC.
13264         * configure.in: Add test for -z combreloc.
13266         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
13267         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
13268         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
13269         case to almost no code.
13271 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
13273         * po/tr.po: Update from translation team.
13275 2001-08-24  Andreas Jaeger  <aj@suse.de>
13277         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
13278         make clean works.
13280 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13282         * elf/rtld.c (print_statistics): Printf % after percent values.
13283         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
13285         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
13286         don't have to compute the hash value and initialize current_value.
13287         Move reference_name variable to where it is needed.
13288         (_dl_lookup_versioned_symbol): Likewise.
13290 2001-08-24  Roland McGrath  <roland@frob.com>
13292         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
13293         Just test that strerror returns non-null for a few errno codes.
13295 2001-08-23  Roland McGrath  <roland@frob.com>
13297         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
13298         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
13300         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
13302         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
13303         __mach_reply_port.
13305 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13307         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
13308         returns NULL.
13310         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
13311         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
13312         doesn't do it.
13313         * elf/rtld.c: Include <sys/param.h>.
13314         * elf/dl-reloc.c: Likewise.
13316 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
13318         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
13319         empty to prevent junk from being generated.
13320         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
13322 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
13324         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
13325         records.  Rename endrel to relative, initialize it to r, and use it
13326         in elf_machine_rel_relative calls.  Point r after relative relocs.
13328 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13330         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
13331         of R_386_NONE.
13333 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
13335         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
13336         necessary.  Undefine newly defined macros at the end.
13337         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
13338         Rename from elf_machine_rel_relative.
13339         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
13340         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
13341         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
13342         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
13343         Likewise.
13344         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
13345         Likewise.
13346         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
13347         Fix argument types.
13348         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
13349         Fix argument types.
13350         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
13351         Likewise.  Fix argument types.
13352         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
13353         Likewise.  Fix argument types.
13354         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
13355         Fix argument types.
13356         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
13357         ElfW(Rel) in argument.
13358         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
13359         function.
13361 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
13363         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
13365 2001-08-24  Andreas Jaeger  <aj@suse.de>
13367         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
13368         Stephen L Moshier <moshier@mediaone.net>.
13370 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13372         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
13373         first if RELCOUNT is set.
13375         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
13376         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
13377         elf_machine_rel_relative.
13378         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
13379         Minor optimizations.
13380         * sysdeps/arm/dl-machine.h: Likewise.
13381         * sysdeps/cris/dl-machine.h: Likewise.
13382         * sysdeps/hppa/dl-machine.h: Likewise.
13383         * sysdeps/i386/dl-machine.h: Likewise.
13384         * sysdeps/ia64/dl-machine.h: Likewise.
13385         * sysdeps/m68k/dl-machine.h: Likewise.
13386         * sysdeps/mips/dl-machine.h: Likewise.
13387         * sysdeps/powerpc/dl-machine.h: Likewise.
13388         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13389         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13390         * sysdeps/sh/dl-machine.h: Likewise.
13391         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13392         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13394 2001-08-23  Roland McGrath  <roland@frob.com>
13396         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
13398         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
13399         sysdeps/mach version.  Implement counting ("recursive") mutexes
13400         on top of cthreads mutexes.
13401         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
13403         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
13404         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
13405         (__libc_cleanup_region_start, __libc_cleanup_region_end,
13406         __libc_clean_end): Define these to call the cleanup function after
13407         normal exit when they're supposed to.
13409         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
13410         Take new first arg DOIT, a boolean saying whether to really install
13411         any cleanup handler.
13412         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
13413         (__libc_cleanup_end): Likewise.
13414         * sysdeps/generic/bits/libc-lock.h: Same changes.
13415         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
13416         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
13417         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
13418         Likewise.
13419         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
13420         * sysdeps/generic/bits/stdio-lock.h
13421         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
13423 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13425         * elf/ldconfig.c (search_dir): Remove stale symlinks.
13427 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13429         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
13430         functions.
13431         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
13432         lookups in cache.
13433         (_dl_lookup_versioned_symbol): Likewise.
13434         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
13435         relocation lookup.
13436         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
13437         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
13438         (lookup_cache, lookup_cache_versioned): Add declarations.
13440 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
13442         * stdlib/tst-random.c (main): Swap parameters in fail call.
13443         Patch by Pete Bevin <pete@petebevin.com>.
13445 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13447         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
13449 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
13451         * malloc/obstack.c: Indent preprocessor directives.
13452         Patch by Jim Meyering <meyering@ascend.com>.
13454         * po/ja.po: Update from translation team.
13456 2001-08-23  Roland McGrath  <roland@frob.com>
13458         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
13460         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
13461         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
13463 2001-08-22  Roland McGrath  <roland@frob.com>
13465         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
13466         __libc_lock_define_recursive.
13467         * elf/dl-open.c: Don't declare it here any more.
13468         * elf/dl-close.c: Likewise.
13469         * elf/dl-lookup.c: Likewise.
13470         * elf/dl-iteratephdr.c: Likewise.
13471         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
13472         __libc_lock_unlock_recursive.
13473         * elf/dl-close.c (_dl_close): Likewise
13474         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
13475         * elf/dl-open.c (_dl_open): Likewise
13477         * sysdeps/generic/bits/libc-lock.h
13478         (__libc_lock_define_recursive): New macro.
13479         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
13480         (_IO_lock_lock): Use __libc_lock_lock_recursive.
13481         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
13483         * conform/conformtest.pl (checknamespace): Sort the output list.
13485         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
13486         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
13487         definitions conditional on [__USE_XOPEN].
13489         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
13490         these unconditionally, not only use [__USE_BSD], so as to match
13491         the sysdeps/unix/sysv/linux files.
13493 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13495         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
13496         avoid warnings.
13498         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
13499         DL_LOOKUP_ADDRESS.
13501 2001-08-22  Roland McGrath  <roland@frob.com>
13503         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
13504         conditionalization of sa_handler/sa_sigaction member types to
13505         match the sysdeps/unix/sysv/linux file.
13507 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13509         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
13510         symbol sizes a bit better.
13512         * sysdeps/ia64/strncpy.S: Complete rewrite.
13513         Contributed by Jakub Jelinek <jakub@redhat.com>.
13515         * string/stratcliff.c (main): Add strncpy test.
13517 2001-08-22  Roland McGrath  <roland@frob.com>
13519         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
13520         and don't declare unsetenv or _environ directly.
13521         (unsetenv): Return int, not void.  Use __environ instead of _environ.
13523 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
13525         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
13526         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
13527         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
13528         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
13529         test for cmsg struct size.
13531 2001-04-23  Paul Eggert  <eggert@twinsun.com>
13533         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
13534         Rename __argc to ___argc in prototypes to avoid compatibility
13535         problems with systems that reserve the identifier "__argc".
13536         Similarly for __argv.
13538 2001-08-21  Roland McGrath  <roland@frob.com>
13540         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
13542         * mach/Makefile (tests): Removed.
13543         * mach/hello.c: File removed.
13545 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13547         * po/sv.po: Update from translation team.
13549         * stdio-common/vfscanf.c: Fix handling of %l[].
13550         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
13552         * libio/Makefile (tests): Add tst-sscanf.
13553         * libio/tst-sscanf.c: New file.
13555         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
13556         * malloc/mtrace.c (tr_where): dli_sname always points to a
13557         non-empty string if != NULL.
13558         Reported by Tim Janik <timj@gtk.org>.
13560 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
13562         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
13563         buf.  Free resources on failure.
13564         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
13565         (makefd_xprt): Likewise.
13566         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
13567         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
13568         * sunrpc/auth_unix.c (authunix_create): Likewise.
13570 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
13572         * string/strnlen.c: Remove.
13573         * sysdeps/generic/strnlen.c: New file.
13574         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
13576 2001-08-21  Roland McGrath  <roland@frob.com>
13578         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
13579         as a macro, not an extern inline function.
13581         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
13582         * Versions.def (libc): Add GLIBC_2.2.5 set.
13583         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
13584         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
13586 2001-08-20  Roland McGrath  <roland@frob.com>
13588         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
13589         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
13591 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
13593         * string/bits/string2.h: Remove strnlen optimization here.
13594         * sysdeps/i386/i486/bits/string.h: Add it here.
13596 2001-08-21  Wolfram Gloger  <wg@malloc.de>
13598         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
13600 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
13602         * po/gl.po: Update from translation team.
13604 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13606         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
13607         * misc/err.c (convert_and_print): Likewise.
13609         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
13610         function calls.
13612 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13614         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
13615         change of the gregset_t type.
13616         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13618 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
13620         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
13622 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13624         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
13626         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
13628 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
13630         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
13631         before calling the cthreads initialization code.
13633 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13635         * argp/argp-help.c: Fix two problems introduced in last change.
13637         * include/dirent.h: Include <dirstream.h> first.
13639 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
13641         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
13643         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
13644         * sunrpc/xdr_rec.c: Likewise.
13645         * sunrpc/xdr_mem.c: Likewise.
13646         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
13647         * sunrpc/rpc_cmsg.c: Likewise.
13648         * sunrpc/getrpcport.c (getrpcport): Likewise.
13649         * sunrpc/clnt_simp.c (callrpc): Likewise.
13650         * sunrpc/clnt_gen.c (clnt_create): Likewise.
13651         * string/envz.c: Likewise.
13653         * po/ko.po: Update from translation team.
13655         * argp/argp-help.c: Handle wide oriented stderr stream.
13657 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
13659         * sysdeps/generic/strtol.c: Little optimizations.  Add some
13660         __builtin_expect.
13662         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
13664         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
13665         * wcsmbs/wcwidth.c (wcwdith): Likewise.
13666         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
13668         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
13670         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
13672         * time/time.h (struct timespec): Use __time_t for tv_sec element.
13674         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
13675         wchar_t for function declarations and defintions.
13677         * misc/sys/select.h: Define __need_time_t before including <time.h>.
13678         Define suseconds_t if it hasn't happened yet.
13680         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
13682         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
13684         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
13685         <stddef.h>.
13687         * conform/data/stddef.h-data: Remove wint_t.
13689         * conform/conformtest.pl: Change namespace test to take #undef
13690         lines into account.
13692         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
13694         * conform/data/sys/socket.h-data: Add sockatmark.
13696 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13698         * io/fts.c: Update from recent BSD source.
13700 2001-08-17  Roland McGrath  <roland@frob.com>
13702         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
13703         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
13704         Likewise.
13706 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13708         * locale/duplocale.c (__duplocale): Also initialize the special
13709         __ctype_* elements.
13711         * conform/data/netdb.h-data: Adjust gai_strerror return type.
13713 2001-08-17  Andreas Jaeger  <aj@suse.de>
13715         * misc/getpass.c: Include wchar.h for prototypes.
13716         * malloc/obstack.c: Likewise.
13718 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13720         * sunrpc/svc_simple.c (universal): Use __write instead of write.
13722         * wcsmbs/wcscoll.c: Also define __wcscoll.
13723         * include/wchar.h: Declare __wcscoll.
13725         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
13726         * libio/vwprintf.c: Likewise.
13727         * libio/wprintf.c: Likewise.
13729         * iconv/gconv_cache.c: Use __munmap instead of munmap.
13731 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
13733         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
13734         instead of mbrtowc.
13735         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
13736         wcslen, and __wcscoll instead of wcscoll.
13738         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
13740         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
13741         __getuid instead of getuid.
13743         * stdio-common/perror.c (perror): Use __close instead of close.
13744         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13745         * libio/freopen.c (freopen): Likewise.
13746         * libio/freopen64.c (freopen64): Likewise.
13748         * libio/tst-ungetwc2.c (main): Define str const.
13750         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13751         * libio/fwprintf.c: Also define __fwprintf.
13752         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13753         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13754         * assert/assert-perr.c: Likewise.
13755         * assert/assert.c: Likewise.
13756         * gmon/gmon.c: Likewise.
13757         * inet/rcmd.c: Likewise.
13758         * malloc/obstack.c: Likewise.
13759         * misc/err.c: Likewise.
13760         * misc/error.c: Likewise.
13761         * misc/getpass.c: Likewise.
13762         * posix/getopt.c: Likewise.
13763         * resolv/res_hconf.c: Likewise.
13764         * stdio-common/perror.c: Likewise.
13765         * stdio-common/psignal.c: Likewise.
13766         * stdlib/fmtmsg.c: Likewise.
13767         * sunrpc/auth_unix.c: Likewise.
13768         * sunrpc/clnt_perr.c: Likewise.
13769         * sunrpc/clnt_tcp.c: Likewise.
13770         * sunrpc/clnt_udp.c: Likewise.
13771         * sunrpc/clnt_unix.c: Likewise.
13772         * sunrpc/svc_simple.c: Likewise.
13773         * sunrpc/svc_tcp.c: Likewise.
13774         * sunrpc/svc_udp.c: Likewise.
13775         * sunrpc/svc_unix.c: Likewise.
13776         * sunrpc/xdr.c: Likewise.
13777         * sunrpc/xdr_array.c: Likewise.
13778         * sunrpc/xdr_rec.c: Likewise.
13779         * sunrpc/xdr_ref.c: Likewise.
13780         * sysdeps/generic/wordexp.c: Likewise.
13782         * po/it.po: Update from translation team.
13784         * misc/err.c: Handle wide oriented stderr stream.
13786 2001-08-14  Tom Rix  <trix@redhat.com>
13788         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13789         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13791 2001-08-13  Tom Rix  <trix@redhat.com>
13793         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13794         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13795         and __intptr_t.
13797 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13799         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13800         Store the access registers to the ucontext structure.
13801         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13802         Likewise.
13804         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13805         Load the access registers from the ucontext structure.
13806         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13807         Likewise.
13809         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13810         offsets to the new ucontext layout.
13811         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13813         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13814         of the ucontext structure.
13815         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13817 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
13819         * misc/error.c (error): Handle wide oriented stderr stream correctly.
13820         (error_at_line): Likewise.
13822         * stdio-common/perror.c (perror): Implement according to standard.
13823         The stream orientation must not be changed if the stream was not
13824         oriented before the call.
13825         * stdio-common/Makefile (tests): Add tst-perror.
13826         * stdio-common/tst-perror.c: New file.
13829 See ChangeLog.12 for earlier changes.