Update.
[glibc.git] / ChangeLog
blobbfbebf5c771ca603f4229b1dcdf9deba191ffcec
1 2002-10-03  Ulrich Drepper  <drepper@redhat.com>
3         * libio/freopen.c: Don't re-set _wide_data element if the stream
4         is of old style which didn't have the element.
5         * libio/freopen64.c: Likewise.
7 2002-10-02  Ulrich Drepper  <drepper@redhat.com>
9         * sysdeps/unix/sysv/linux/x86_64/Dist: Add bits/utmpx.h.
10         * sysdeps/unix/sysv/linux/sparc/Dist: Likewise.
11         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
13         * sysdeps/s390/s390-32/initfini.c: Avoid unterminated string literals.
14         * sysdeps/sh/elf/initfini.c: Likewise.
15         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
16         * sysdeps/hppa/elf/initfini.c: Likewise.
17         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Likewise.
19 2002-10-02  Steven Munroe  <sjmunroe@us.ibm.com>
20             Jakub Jelinek  <jakub@redhat.com>
22         * login/programs/utmpdump.c (print_entry): Copy up->ut_tv fields
23         to struct timeval temp_tv before printing to be 32-/64-bit agnostic.
24         * sysdeps/powerpc/bits/wordsize.h: Move to...
25         * sysdeps/powerpc/powerpc32/bits/wordsize.h: ...here.
26         (__WORDSIZE_COMPAT32): Define.
27         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
28         * sysdeps/sparc/sparc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
29         Define.
30         * sysdeps/sparc/sparc64/bits/wordsize.h (__WORDSIZE_COMPAT32):
31         Define.
32         * sysdeps/s390/bits/wordsize.h: Move to...
33         * sysdeps/s390/s390-32/bits/wordsize.h: ...here.
34         * sysdeps/s390/s390-64/bits/wordsize.h: Likewise.
35         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Define.
36         * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: New file.
37         * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: New file.
38         * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: New file.
39         * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: New file.
40         * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: New file.
41         * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: New file.
43 2002-10-02  Jakub Jelinek  <jakub@redhat.com>
45         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix comment typo.
46         Temporarily enable R_ALPHA_NONE relocs in ld.so.
47         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Temporarily enable
48         R_IA64_NONE relocs in ld.so.
50 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
52         * README.template: Minimum Linux kernel for powerpc64 is 2.4.19.
54         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (struct ipc_perm):
55         Use __uint32_t and __uint64_t for __seq, __pad1, __unused[12] fields
56         so they are consistent between PPC32 and PPC64.
58         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__WORDSIZE != 32]:
59         (_STAT_VER): Define to _STAT_VER_KERNEL.
60         (stru stat, struct stat64): Define to match the PPC64 kernel.
61         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
62         (libc: GLIBC_2.2): Remove __xstat64, __fxstat64, and __lxstat64.
63         * sysdeps/unix/sysv/linux/powerpc/powerpc64/kernel_stat.h: New file.
64         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fxstat64.c: New file.
65         * sysdeps/unix/sysv/linux/powerpc/powerpc64/lxstat64.c: New file.
66         * sysdeps/unix/sysv/linux/powerpc/powerpc64/xstat64.c: New file.
67         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add kernel_stat.h.
69 2002-10-02  Roland McGrath  <roland@redhat.com>
71         * sysdeps/unix/sysv/linux/xstatconv.c [STAT_IS_KERNEL_STAT]:
72         Conditionalize the function definitions on this.
73         * sysdeps/unix/sysv/linux/xstat.c (__xstat) [STAT_IS_KERNEL_STAT]:
74         Don't use xstat_conv, just fail if VERS != _STAT_VER_KERNEL.
75         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat) [STAT_IS_KERNEL_STAT]:
76         Likewise.
77         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat) [STAT_IS_KERNEL_STAT]:
78         Likewise.
80 2002-10-02  Ulrich Drepper  <drepper@redhat.com>
82         * version.h (VERSION): Bump to 2.3.
84         * elf/Makefile (distribute): Add tst-tlsmod1.c, tst-tlsmod2.c,
85         tst-tlsmod3.c, tst-tlsmod4.c, circlemod1.c, circlemod1a.c,
86         circlemod2.c, circlemod2a.c, circlemod3.c, circlemod3a.c,
87         and nodlopenmod2.c.
89         * login/Makefile (distribute): Add utmp-equal.h.
91         * iconvdata/Makefile (distribute): Add TSCII.precomposed and
92         TSCII.irreversible.
94         * Make-dist (dist): Create .bz2 file.  Add rule to create .bz2 files.
95         Also distribute xtests sources.
97 2002-10-02  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
99         * elf/elf.h: Change TLS ELF relocation numbers.
100         * elf/tls-macros.h: Fix code sequences for SH TLS_LD and TLS_GD
101         macros.
102         * sysdeps/sh/dl-machine.h (dl_machine_rela) [case R_SH_TLS_TPOFF32]:
103         Use addend.
104         * sysdeps/sh/elf/initfini.c: Move __fpscr_values to...
105         * sysdeps/sh/elf/start.S: ...here.
107 2002-10-01  Jakub Jelinek  <jakub@redhat.com>
109         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ,
110         SIGSTKSZ): Changed to match kernel.
111         * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h: New file.
113 2002-10-01  Carlos O'Donell  <carlos@baldric.uwo.ca>
115         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
116         [__USE_GNU] (F_SETLEASE, F_GETLEASE, F_NOTIFY): New macros.
117         [__USE_GNU] (DN_ACCESS, DN_MODIFY, DN_CREATE, DN_DELETE, DN_RENAME,
118         DN_ATTRIB, DN_MULTISHOT): New macros.
120 2002-02-08  Randolph Chung  <tausq@debian.org>
122         * sysdeps/hppa/elf/start.S: Define __data_start.
124 2002-10-01  Isamu Hasegawa  <isamu@yamato.ibm.com>
126         * posix/regex_internal.c (re_string_reconstruct): Reset the member
127         LEN and STOP.
128         * posix/regexec.c (re_search_stub): Remove incorrect condition of
129         "range < 0".
130         Round RANGE in case that it is too small.
132 2002-10-01  Roland McGrath  <roland@frob.com>
134         * config.h.in (NO_HIDDEN): New #undef.
135         * include/libc-symbols.h [! NO_HIDDEN]: Add this condition to
136         nonempty definitions of hidden_proto et al.
137         * configure.in: Grok --disable-hidden-plt to define NO_HIDDEN.
138         * configure: Regenerated.
139         * sysdeps/mach/hurd/configure.in: Always define NO_HIDDEN.
140         * sysdeps/mach/hurd/configure: Regenerated.
142 2002-09-19  David Mosberger  <davidm@hpl.hp.com>
144         * sysdeps/ia64/dl-fptr.c (make_fdesc): Load address of "local" via
145         a 64-bit gp-relative address to enable binaries with large data
146         sections.
148 2002-09-30  Ulrich Drepper  <drepper@redhat.com>
150         * stdlib/cxa_finalize.c (__cxa_finalize): Call UNREGISTER_ATFORK
151         if it is defined.
152         * posix/Makefile (distribute): Add fork.h.
153         * sysdeps/generic/fork.h: New file.
155 2002-09-29  Bruno Haible  <bruno@clisp.org>
157         * sysdeps/generic/utmp_file.c (LOCKING_FAILED): New macro.
158         (UNLOCK_FILE): Add a label.
159         (getutent_r_file, internal_getut_r, getutline_r_file, pututline_file,
160         updwtmp_file): Shut off the alarm clock when locking failed.
162 2002-09-30  Isamu Hasegawa  <isamu@yamato.ibm.com>
164         * posix/regex_internal.h (re_match_context_t): Add a new member.
165         (re_fail_stack_ent_t): New structure.
166         (re_fail_stack_t): Likewise.
167         * posix/regexec.c (re_search_internal): Use the new member of
168         re_match_context_t.
169         Use fail stack only if it has back references and there are plural
170         matching candidates.
171         (proceed_next_node): Use fail stack if it is indicated.
172         (set_regs): Likewise.
173         (push_fail_stack): New function.
174         (pop_fail_stack): New function.
175         (check_dst_limits): Likewise.
176         (check_dst_limits_calc_pos): Likewise.
177         (search_subexp): Check the limitations on the top of subexpressions.
178         (sift_states_bkref): Check the limitations of the destination node.
179         Reuse the array sctx->sifted_states.
181 2002-09-30  Ulrich Drepper  <drepper@redhat.com>
183         * stdio-common/printf_fp.c: Shuffle a few lines around to help the
184         compiler optimizing.  No semantical changes intended.
186 2002-09-30  Jakub Jelinek  <jakub@redhat.com>
188         * sysdeps/ia64/strncpy.S: Only segfault in .recovery2 if some bits
189         from the next quad are needed.
191 2002-09-30  Roland McGrath  <roland@redhat.com>
193         * elf/tls-macros.h (TLS_LD, TLS_GD): Use call insn, not callq.
195         * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD] [! PIC]:
196         Use direct-%fs form of TLS access for errno.
198         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: File removed, since
199         the i386 version has all the same asm now.
201         * sysdeps/i386/elf/configure.in: Add @GOTNTPOFF and @NTPOFF uses to
202         the TLS support check.
203         * sysdeps/i386/elf/configure: Regenerated.
205         * sysdeps/unix/sysv/linux/i386/sysdep.h [USE_TLS && HAVE___THREAD]
206         (SYSCALL_ERROR_HANDLER): Use direct-%gs form of TLS access for errno.
208         * sysdeps/unix/i386/sysdep.S (syscall_error)
209         [USE_TLS && HAVE___THREAD]: Use TLS access for errno.
211         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
212         [USE_TLS && HAVE___THREAD] (SYSCALL_ERROR_HANDLER): Use TLS access.
214         * rt/tst-aio7.c (do_test): Don't read from stdin, which could be the
215         terminal when the test is running in a background job.  Instead, make
216         a pipe and read from its read half while never writing anything to it.
218 2002-09-30  Andreas Jaeger  <aj@suse.de>
220         * stdlib/tst-bsearch.c (main): Fix format strings.
221         * stdio-common/tst-rndseek.c (do_test): Likewise.
222         * libio/tst_swprintf.c (main): Likewise.
223         * catgets/tst-catgets.c (main): Likewise.
224         * libio/tst-fgetws.c (main): Likewise.
225         * posix/tst-mmap.c (main): Likewise.
226         * posix/bug-regex12.c (main): Likewise.
227         * posix/bug-regex11.c (main): Likewise.
228         * io/tst-getcwd.c (do_test): Likewise.
230         * iconvdata/tst-e2big.c (test): Use %td in printf for ptrdiff_t.
232         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
233         Store 4 bytes into errno, not 8 bytes.
235 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
237         * posix/regexec.c (sift_states_bkref): Remove ret variable.  Use
238         err instead.
240 2002-09-29  Roland McGrath  <roland@redhat.com>
242         * test-skeleton.c (timeout_handler): Use WUNTRACED flag in waitpid.
243         Examine the child's status and print something different if it wasn't
244         just killed by our SIGKILL.
245         (main): In the child process call setpgid to put it in its own pgrp.
247 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
249         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): The return value
250         semantics for sigtimedwait is different.  Rework the return value
251         handling and don't pass in a siginfo variable.
253 2002-09-29  Roland McGrath  <roland@redhat.com>
255         * malloc/malloc.c [! MALLOC_DEBUG] (assert): #undef before defining.
257         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.2.6): Add __errno_location.
259         * sysdeps/unix/sysv/linux/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]:
260         Define errno in .tbss.
261         * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]: Use TLS
262         access for setting errno.
264         * sysdeps/unix/x86_64/sysdep.S: Store 32 bits at errno, not 64 bits.
265         AFAICT, it was just blind luck that the word following errno in .bss
266         was just alignment padding and not some other variable to be clobbered.
268 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
270         * sysdeps/unix/sysv/linux/kernel-features.h
271         (__ASSUME_SETRESUID_SYSCALL): On the sparc, define to 1, not empty.
273 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
275         * nss/bug-erange.c (main): Don't fail if /etc/resolv.conf doesn't
276         exist.
278 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
280         * nss/Makefile: Move bug-erange from tests to xtests.
282 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
284         * stdlib/longlong.h (__udiv_qrnnd): Remove PARAMS from prototype.
286 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
288         * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall0): Make asm
289         volatile.
290         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
291         inline_syscall5, inline_syscall6): Likewise.
292         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
293         Likewise.
294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (INLINE_SYSCALL):
295         Likewise.
297 2002-09-29  Roland McGrath  <roland@redhat.com>
299         * configure.in (libc_cv_ranlib_necessary check): Put the .o file in
300         the archive, not the .c file.
301         * configure: Regenerated.
303 2002-09-29  Roland McGrath  <roland@redhat.com>
305         * configure: Regenerated after aclocal.m4 change.
307         * sysdeps/x86_64/sysdep.h [HAVE_ELF] (L): Define with .L##name form.
308         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (L): Don't define it here.
310         * sysdeps/generic/dl-lookupcfg.h [USE_TLS] (DL_LOOKUP_RETURNS_MAP):
311         Define it, because _dl_sym presumes it (for any platform).
313         * sysdeps/x86_64/dl-tls.h: New file.
315         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add a cast.
317         * sysdeps/x86_64/elf/configure.in: New file.
318         * sysdeps/x86_64/elf/configure: New generated file.
320 2002-09-28  Roland McGrath  <roland@redhat.com>
322         * elf/rtld.c (_dl_start): Fix conditional for declaring CNT.
324         * aclocal.m4 (LIBC_PROG_BINUTILS): Don't clobber $RANLIB with ranlib
325         before we check it.
327 2002-09-28  Ulrich Drepper  <drepper@redhat.com>
329         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __syscall_exit
330         entry point.
332 2002-09-28  Jakub Jelinek  <jakub@redhat.com>
334         * posix/bug-regex11.c (tests): Add flags field.
335         (main): Avoid warnings.  Use test[i].flags.  Return nonzero
336         if any of the tests failed.
337         * posix/bug-regex12.c: New file.
338         * posix/Makefile (tests): Add bug-regex12.
340 2002-03-02  Thorsten Kukuk  <kukuk@suse.de>
342         * sysdeps/unix/nice.c (nice): Use getpriority() for the return value.
344 2002-09-28  Jeff Bailey  <jbailey@gnu.org>
346         * sysdeps/unix/sysv/sysv4/solaris2/configure.in: Delete.
347         * sysdeps/unix/sysv/aix/configure.in: Update comment and remove
348         stdio=libio setting.
350 2002-09-28  Roland McGrath  <roland@redhat.com>
352         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Use INTUSE for
353         _dl_signal_error.
354         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Likewise.
355         * sysdeps/powerpc/powerpc64/dl-machine.c
356         (_dl_reloc_overflow): Likewise.
357         * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
358         (elf_machine_rela): Likewise.
360 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
362         * include/libc-symbols.h (__hidden_dot_weak1): Fix typo.  Replace
363         ASM_GLOBAL_DIRECTIVE with .weak.
365 2002-09-28  Andreas Jaeger  <aj@suse.de>
367         * sysdeps/unix/sysv/linux/mips/truncate64.c (truncate64): Fix
368         number of args to syscall.
369         * sysdeps/unix/sysv/linux/mips/ftruncate64.c (__ftruncate64): Likewise.
370         Patch by Guido Guenther <agx@sigxcpu.org>.
372 2002-09-27  Roland McGrath  <roland@redhat.com>
374         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_pread, __NR_pwrite):
375         Define these to __NR_pread64, __NR_pwrite64 if not defined.
377         * sysdeps/unix/sysv/linux/powerpc/lchown.S
378         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Use this condition
379         on chown compatibility symbol; use compat_symbol, not symbol_version.
381 2002-09-27  Isamu Hasegawa  <isamu@yamato.ibm.com>
383         * posix/regcomp.c (reg_free): Free the debug area.
384         (re_compile_internal): Allocate debug area for the input string.
385         (create_initial_state): Check the back references in initial states
386         if they are really match null string in the initial state.
387         (parse_reg_exp): Mark the dfa that the dfa can have plural matchings.
388         (parse_expression): Likewise.
389         (parse_bracket_exp): Likewise.
390         * posix/regex_internal.c (re_node_set_intersect): Remove unused
391         function.
392         (re_node_set_contains): Change to return the index of node.
393         * posix/regex_internal.h (re_backref_cache_entry): Change the members.
394         (re_match_context_t): Likewise.
395         (struct re_dfa_t): Likewise.
396         (re_sift_context_t): New structure.
397         * posix/regexec.c (match_ctx_clear_flag): New function.
398         (sift_ctx_init): Likewise.
399         (update_cur_sifted_state): Likewise.
400         (add_epsilon_src_nodes): Likewise.
401         (sub_epsilon_src_nodes): Likewise.
402         (check_subexp_limits): Likewise.
403         (search_subexp): Likewise.
404         (sift_states_bkref): Likewise.
405         (merge_state_array): Likewise.
406         (sift_states_iter_bkref): Remove unused function.
407         (add_epsilon_backreference): Remove unused function.
408         (re_search_internal): Adapt new members and interfaces.
409         (check_matching): Check the back references in initial states
410         if they are really match null string in the initial state.
411         (proceed_next_node): Change the evaluation of back references,
412         since we have real registers here.
413         (set_regs): Adapt new interface of proceed_next_node.
414         (sift_states_backward): Add invocation of update_cur_sifted_state
415         instead of add_epsilon_backreference.
416         Add a sentinel to the outermost while loop.
417         Move the handling of back references to sift_states_bkref function,
418         since we can't handle some back references (e.g. a back reference
419         which match NULL string) here.
420         (transit_state_mb): Handle the new member max_mb_elem_len.
421         (transit_state_bkref_loop): Move the evaluation of back references to
422         search_subexp function, since we can't evaluate some back references
423         (e.g. a back reference which can have plural matchings) here.
424         (match_ctx_init): Adapt the new member.
425         (match_ctx_add_entry): Adapt the new members.
427 2002-09-25  Alan Modra  <amodra@bigpond.net.au>
429         * elf/do-rel.h: Define macro DO_ELF_MACHINE_REL_RELATIVE for
430         'elf_machine_rel_relative'
431         (elf_dynamic_do_rel): Call DO_ELF_MACHINE_REL_RELATIVE macro
432         instead of 'elf_machine_rel_relative'.
433         * sysdeps/hppa/dl-machine.h:
434         Define macro DO_ELF_MACHINE_REL_RELATIVE for
435         'elf_machine_rel_relative' with extra map parameter
436         required by HPPA.
437         (elf_machine_rela_relative): Add plt relocation changes.
439 2001-11-14  Matthew Wilcox  <willy@debian.org>
441         * sysdeps/unix/sysv/linux/hppa/bits/ipc.h: New file.
442         * sysdeps/unix/sysv/linux/hppa/bits/msq.h: New file.
443         * sysdeps/unix/sysv/linux/hppa/bits/sem.h: New file.
444         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: New file.
446 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
448         * sysdeps/powerpc/powerpc32/Makefile: Fix typo in comment.
450         * sysdeps/powerpc/powerpc64/Makefile
451         [$(build-shared) = yes] (pic-ccflag): Define it.
452         [$(subdir) = csu] (CFLAGS-initfini.s): Add -fpic here too.
454 2002-09-27  Roland McGrath  <roland@redhat.com>
456         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Remove
457         unneeded TLS cases.
459 2002-09-27  Jakub Jelinek  <jakub@redhat.com>
461         * elf/dl-addr.c (_dl_addr): Set dli_fbase to l_map_start
462         unconditionally.  Set dli_fname to _dl_argv[0] only for main program.
464 2002-09-27  Roland McGrath  <roland@redhat.com>
466         * elf/dl-addr.c (_dl_addr): Add a cast.
468         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [USE_TLS]: Handle new
469         TLS relocs R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, and R_X86_64_TPOFF64.
471         * elf/elf.h (R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, R_X86_64_TPOFF64,
472         R_X86_64_TLSGD, R_X86_64_TLSLD, R_X86_64_DTPOFF32,
473         R_x86_64_GOTTPOFF, R_X86_64_TPOFF32): New macros.
474         (R_X86_64_NUM): Update the value.
476 2002-09-24  Jakub Jelinek  <jakub@redhat.com>
478         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_load_address): Don't
479         rely on *r_offset of R_SPARC_RELATIVE reloc in .got to contain the
480         addend.
481         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Use
482         the same l_addr computation.
483         * sysdeps/sparc/sparc64/configure.in: Removed.
484         * sysdeps/sparc/sparc64/configure: Removed.
485         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Remove.
487 2002-09-26  Ulrich Drepper  <drepper@redhat.com>
489         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_HASH entry
490         if necessary.
491         * elf/dl-lookup.c (_dl_setup_hash): DT_HASH entry is already relocated.
492         * elf/dl-addr.c (_dl_addr): Use .hash[1] entry to determine end of the
493         symbol table if necessary.
495 2002-09-26  Roland McGrath  <roland@redhat.com>
497         * stdlib/longlong.h: Replaced with current version from GCC mainline,
498         last modified 2002-09-22  Kazu Hirata  <kazu@cs.umass.edu>.
500 2002-09-25  Andreas Jaeger  <aj@suse.de>
502         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add syscall_exit.
503         Patch by Guido Guenther <agx@sigxcpu.org>.
505 2002-09-25  Roland McGrath  <roland@redhat.com>
507         * Makeconfig (%.v.i pattern rule): Use $(CPPFLAGS).
509 2002-09-24  Ulrich Drepper  <drepper@redhat.com>
511         * sysdeps/unix/sysv/linux/configure.in: Recognize nptl add-on name.
513 2002-09-24  Roland McGrath  <roland@redhat.com>
515         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Move __libc_read,
516         __libc_write, __libc_lseek64, to ...
517         (ld: GLIBC_PRIVATE): ... here.
519         * csu/Versions: Use %include <tls.h> to get USE_TLS defined.
520         (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _errno, errno.
521         (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put errno here instead.
522         * resolv/Versions: Use %include <tls.h> to get USE_TLS defined.
523         (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _h_errno, h_errno,
524         and _res.
525         (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put h_errno, _res here.
527         * elf/tls-macros.h [__x86_64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
528         New macros for x86-64.
530         * sysdeps/unix/sysv/linux/alpha/bits/time.h: File removed.
531         It was indentical to the linux/bits/time.h file.
533         * nscd/nscd_gethst_r.c (nscd_gethst_r): Add a cast to silence warning.
535         * resolv/gethnamaddr.c (gethostbyaddr): Use socklen_t for SIZE.
537 2002-09-23  Ulrich Drepper  <drepper@redhat.com>
539         * po/zh_CN.po: New file.
541 2002-09-23  Roland McGrath  <roland@redhat.com>
543         * posix/unistd.h: Test [__USE_UNIX98] instead of [__USE_OPEN2K]
544         for gethostname declaration.
546         * catgets/open_catalog.c (__open_catalog): Don't use a value type
547         as the __builtin_expect expression, just the Boolean value.
549         * sysdeps/generic/wordexp.c (parse_glob): int -> size_t for counter.
550         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
551         * resolv/res_hconf.c (arg_service_list, parse_line): Likewise.
552         * iconvdata/tst-loading.c (main): Likewise.
553         * catgets/tst-catgets.c (main): Likewise.
554         * stdlib/tst-xpg-basename.c (main): Likewise.
555         * stdlib/tst-bsearch.c (main): Likewise.
556         * stdio-common/test-vfprintf.c (main): Likewise.
557         * stdio-common/tst-rndseek.c (do_test): Likewise.
558         * libio/tst_swprintf.c (main): Likewise.
559         * libio/tst-fgetws.c (main): Likewise.
560         * wcsmbs/tst-mbrtowc.c (check_ascii): Likewise.
561         * time/tst-posixtz.c (main): Likewise.
562         * time/tst-strptime.c (test_tm): Likewise.
563         * time/tst-strptime.c (main): Likewise.
564         * time/tst-getdate.c (main): Likewise.
565         * posix/tst-mmap.c (main): Likewise.
566         * posix/tst-getaddrinfo.c (do_test): Likewise.
567         * io/tst-getcwd.c (do_test): Likewise.
568         * resolv/tst-aton.c (main): Likewise.
569         * inet/tst-network.c (main): Likewise.
570         * libio/tst-fgetws.c (main): Likewise.
571         * sysdeps/posix/sprofil.c (add_region): int -> unsigned int for I.
572         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): int -> unsigned int
573         for PTYNO.
575         * stdlib/msort.c (qsort): Add a cast to silence warning.
576         * stdio-common/vfprintf.c (process_string_arg): Likewise.
577         * libio/oldfileops.c (_IO_old_do_write): Likewise.
578         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Likewise.
579         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
580         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
581         * argp/argp-fmtstream.c (__argp_fmtstream_printf): Likewise.
582         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
583         * sysdeps/unix/grantpt.c (grantpt): Likewise.
584         * libio/tst-widetext.c (main): Likewise.
585         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
586         * rt/tst-aio.c (test_file): Likewise.
587         * rt/tst-aio64.c (test_file): Likewise.
588         * resolv/tst-aton.c (main): Likewise.
590         * catgets/catgetsinfo.h (CATGETS_MAGIC): Use U suffix on the constant.
592         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Cast to int32_t
593         instead of uint32_t in these macros.
595 2002-09-22  Bruno Haible  <bruno@clisp.org>
597         * iconv/iconv_prog.c (main): Provide an error message that identifies
598         the wrong encoding.
600         * iconvdata/tscii.c: New file.
601         * iconvdata/testdata/TSCII: New file.
602         * iconvdata/testdata/TSCII..UTF8: New file.
603         * iconvdata/TSCII.precomposed: New file.
604         * iconvdata/TSCII.irreversible: New file.
605         * iconvdata/gconv-modules (TSCII): New module.
606         * iconvdata/Makefile (modules): Add TSCII.
607         (distribute): Add tscii.c.
608         * iconvdata/tst-table-from.c (try, utf8_decode, main): Double output
609         buffer size.
610         * iconvdata/tst-tables.sh: Add TSCII.
611         * iconvdata/TESTS: Add TSCII.
613         Revert 2002-04-18 patch.
614         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
615         FROM_DIRECTION): Make the FROM direction stateful again.
616         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
617         FROM_DIRECTION): Likewise.
619         * iconvdata/tst-e2big.c: New file.
620         * iconvdata/Makefile (tests): Add tst-e2big.
622 2002-09-23  Roland McGrath  <roland@redhat.com>
624         * elf/Makefile (test-extras): Define this instead of test-srcs.
625         * Makerules (all-nonlib): Include $(test-extras) too.
627 2002-09-21  Carlos O'Donell  <carlos@baldric.uwo.ca>
629         * sysdeps/hppa/abort-instr.h: New file.
631 2002-09-22  Roland McGrath  <roland@frob.com>
633         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Remove duplicate entry.
635         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Add alias __GI__exit.
637 2002-09-22  Andreas Schwab  <schwab@suse.de>
639         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Append, not overwrite.
641         * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal)
642         (isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]:
643         Use GCC builtins.
645 2002-09-21  Roland McGrath  <roland@redhat.com>
647         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM):
648         Correct the value so it covers all platforms, and is computed
649         from _DL_PLATFORMS_COUNT rather than hard-wired.
650         From Andrew Suffield <asuffield@debian.org>.
652 2002-09-20  Ulrich Drepper  <drepper@redhat.com>
654         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
655         locking when using mount tab file.
656         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
657         * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
658         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
660         * elf/dl-init.c (_dl_init): Fix test of the size of the
661         preinit_array section.
662         (call_init): Optimize access to DT_INIT_ARRAY entry a bit.
663         Reported by Brian Cabral <cabral@ikuni.com>.
665 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
667         * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros.
668         * sysdeps/powerpc/powerpc32/sysdep.h: New file.  Define powerpc32
669         specific macros copied from sysdeps/powerpc/sysdep.h.
670         * sysdeps/powerpc/powerpc64/sysdep.h: New file.  Define powerpc64
671         specific macros.
672         * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>.
673         [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h.
674         [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h.
676 2002-09-19  Bruno Haible  <bruno@clisp.org>
678         * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
679         returning.
681 2002-09-17  Bruno Haible  <bruno@clisp.org>
683         * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
684         * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
685         also on platforms with !HAVE_UT_TYPE.
686         (proc_utmp_eq): Remove function.
687         (internal_getut_r, pututline_file): Call __utmp_equal instead.
689 2002-09-20  Bruno Haible  <bruno@clisp.org>
691         * abi-tags: Add support for FreeBSD with ABI OS value 3.
692         * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
694 2002-09-20  Roland McGrath  <roland@redhat.com>
696         * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
697         (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
698         terms of __WORDSIZE.
699         * sysdeps/x86_64/gmp-mparam.h: File removed.
700         * sysdeps/sparc/gmp-mparam.h: File removed.
701         * sysdeps/mips/mips64/gmp-mparam.h: File removed.
702         * sysdeps/ia64/gmp-mparam.h: File removed.
703         * sysdeps/alpha/gmp-mparam.h: File removed.
705 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
707         * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
708         load, so as to work on both 32-bit and 64-bit.  Remove unnecessary
709         casts.  Align __libc_stack_end to 8 bytes.
711 2002-09-20  Roland McGrath  <roland@redhat.com>
713         * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
714         instead of asm for lrintf, __lrintf aliases.
716         * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
717         int array for 32-/64-bit compatibility.
718         From Steven Munroe  <sjmunroe@us.ibm.com>.
720 2002-09-17  Bruno Haible  <bruno@clisp.org>
722         * sysdeps/generic/ifreq.h (__if_nextreq): New function.
723         * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
724         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
725         * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
726         for iterating through the list of interfaces.
727         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
729 2002-09-20  Roland McGrath  <roland@redhat.com>
731         * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
732         Reported by Bruno Haible <bruno@clisp.org>.
734         * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
736         * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
737         * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
738         isatty unmodified.  Reported by Bruno Haible <bruno@clisp.org>.
740 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
742         * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
743         * sysdeps/powerpc/bits/wordsize.h: New file.
744         * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
745         array to int array for 32-/64-bit compatibility.
747 2002-09-20  Roland McGrath  <roland@redhat.com>
749         * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
751         * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
752         Reported by Bruno Haible <bruno@clisp.org>.
754         * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
755         before doubling RQ_LEN.
756         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
757         Reported by Bruno Haible <bruno@clisp.org>.
759 2002-09-18  Bruno Haible  <bruno@clisp.org>
761         * login/logout.c (logout): Don't assume ut_time has the same size as
762         a time_t.
763         * login/logwtmp.c (logwtmp): Likewise.
765         * sysdeps/pthread/configure: New file, moved here from
766         linuxthreads/sysdeps/unix/sysv/linux/configure.
768 2002-09-19  Ulrich Drepper  <drepper@redhat.com>
770         * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
771         (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
772         Reported by Glen Nakamura <glen@imodulo.com>.
774 2002-09-19  Neal H. Walfield  <neal@cs.uml.edu>
776         * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
777         thread's sigstate data structure if it has been allocated.
779 2002-09-19  Roland McGrath  <roland@redhat.com>
781         * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
782         [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
784 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
786         * version.h (VERSION): Bump to 2.2.94.
788         * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
789         * sysdeps/powerpc/powerpc32/fpu/Dist: ...here.  New file.
790         * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
791         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
793         * sysdeps/i386/Makefile: Remove obsolete db2 rules.
795         * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
797         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
801 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
803         * sysdeps/wordsize-32/Makefile: New file.
804         * sysdeps/arm/Makefile: Removed.
805         * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
806         Don't add divdi3 here.
807         * sysdeps/m68k/Makefile: Likewise.
808         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
809         * sysdeps/sh/Makefile: Likewise.
810         * sysdeps/s390/s390-32/Makefile: Likewise.
812 2002-09-18  Roland McGrath  <roland@redhat.com>
814         * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
815         the __ctype_* compat symbols, so the relocs generated bind to the
816         right versioned global symbol in the shared object.
818         * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
819         from the value taken from the DT_VERSYM table.
820         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
821         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
822         (RESOLVE_GOTSYM): Likewise.
824         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
825         Add libc_hidden_def.
826         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
827         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
828         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
829         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
830         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
831         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
832         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
833         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
835 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
837         * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
839         * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
840         define sigaction and __sigaction as wrappers around
841         __libc_sigaction which rejects changing SIGCANCEL.
842         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
844         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
845         SETTID/CLEARTID.
847         * signal/allocrtsig.c: Move to...
848         * sysdeps/generic/allocrtsig.c: ...here.  New file.
850 2002-09-17  Jakub Jelinek  <jakub@redhat.com>
852         * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
854         * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
855         R_386_TLS_LE): Define.
856         (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
857         comments.
858         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
859         ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
860         (elf_machine_rel): Handle R_386_TLS_TPOFF.
861         (elf_machine_rela): Likewise.
862         Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
864 2002-09-17  Roland McGrath  <roland@redhat.com>
866         * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
867         file-specific variable override so it compiles properly when using
868         --with-headers.
870 2002-09-17  Steven Munroe  <sjmunroe@us.ibm.com>
872         Ported to PowerPC64 running Linux.
873         * sysdeps/powerpc/powerpc64/Dist: New file.
874         * sysdeps/powerpc/powerpc64/Implies: New file.
875         * sysdeps/powerpc/powerpc64/Makefile: New file.
876         * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
877         * sysdeps/powerpc/powerpc64/atomicity.h: New file.
878         * sysdeps/powerpc/powerpc64/backtrace.c: New file.
879         * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
880         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
881         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
882         * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
883         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
884         * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
885         * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
886         * sysdeps/powerpc/powerpc64/memset.S: New file.
887         * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
888         * sysdeps/powerpc/powerpc64/register-dump.h: New file.
889         * sysdeps/powerpc/powerpc64/setjmp.S: New file.
890         * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
891         * sysdeps/powerpc/powerpc64/strchr.S: New file.
892         * sysdeps/powerpc/powerpc64/strcmp.S: New file.
893         * sysdeps/powerpc/powerpc64/strcpy.S: New file.
894         * sysdeps/powerpc/powerpc64/strlen.S: New file.
895         * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
896         * sysdeps/powerpc/powerpc64/elf/start.S: New file.
897         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
898         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
901         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
903         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
907         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
908         (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
909         various gcc versions.  Dot names required for powerpc64.
910         [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
911         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
912         C_SYMBOL_DOT_NAME(alias).
913         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
914         original strong_alias macro.
915         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
916         C_SYMBOL_DOT_NAME(alias).
917         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
918         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
919         '.'ed name.
920         Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
921         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro.  Generate
922         .global C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
923         (hidden_def): Append hidden_dot_def1 macro to definition.
924         (hidden_ver): Append hidden_dot_def1 macro to definition.
925         (hidden_data_def): New macro.  Same as original hidden_def macro.
926         (hidden_data_ver): New macro.  Same as original hidden_ver macro.
927         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro.  Generate
928         .weakext C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
929         (hidden_weak): Append hidden_dot_weak1 macro to definition.
930         (hidden_data_weak): New macro.  Same as original hidden_weak macro.
931         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
932         Otherwise defined as __GI_name.
933         (libc_hidden_data_def): New macro.  Use hidden_data_def.
934         (libc_hidden_data_weak): New macro.  Use hidden_data_weak.
935         (libc_hidden_data_ver): New macro.  Use hidden_data_ver.
936         (rtld_hidden_data_def): New macro.  Use hidden_data_def.
937         (rtld_hidden_data_weak): New macro.  Use hidden_data_weak.
938         (rtld_hidden_data_ver): New macro.  Use hidden_data_ver.
939         (libm_hidden_data_def): New macro.  Use hidden_data_def.
940         (libm_hidden_data_weak): New macro.  Use hidden_data_weak.
941         (libm_hidden_data_ver): New macro.  Use hidden_data_ver.
942         * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
944 2002-09-17  Ulrich Drepper  <drepper@redhat.com>
946         * include/libc-symbols.h: Change *hidden_proto macros to accept
947         option parameters and pass those to the attribute definition.
948         * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
950         * include/unistd.h: Declare __libc_pause.
952         * include/sys/socket.h: Declare __libc_send, __libc_recv,
953         __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
955         * include/unistd.h: Declare __libc_fork.
957 2002-09-17  Roland McGrath  <roland@redhat.com>
959         * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
960         (passwd2des): Define it as an alias.
961         (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
963 2002-09-12  Bruno Haible  <bruno@clisp.org>
965         * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
966         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
968         * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
969         * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
971 2002-09-05  Steven Munroe  <sjmunroe@us.ibm.com>
973         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
974         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
975         __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
976         PowerPC64 does not have separate 64-bit syscalls.
978 2002-09-16  Roland McGrath  <roland@redhat.com>
980         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
982         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
983         New macro.
985         * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
987         * include/unistd.h: Uncomment libc_hidden_proto for _exit.
988         * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
989         * sysdeps/generic/_exit.c: Likewise.
991 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
993         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
995         * elf/rtld.c (struct dl_start_final_info): New.
996         (_dl_start_final): Change second argument to struct
997         dl_start_final_info *.  Set start_time from info.
998         (_dl_start): Remove bootstrap_map variable, add info.
999         Define bootstrap_map as macro.  If not DONT_USE_BOOTSTRAP_MAP,
1000         store HP_TIMING_NOW result into info.start_time.
1002 2002-09-16  Andreas Jaeger  <aj@suse.de>
1004         * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
1005         to _Exit.
1006         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
1008 2002-09-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1010         * sysdeps/powerpc/abort-instr.h: New file.
1012 2002-09-14  Ulrich Drepper  <drepper@redhat.com>
1014         * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
1015         comment.
1017         * test-skeleton.c (main): Provide more information in case waitpid
1018         fails.
1020         * include/unistd.h: Declare __exit_thread.
1021         * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
1022         Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
1023         * sysdeps/unix/sysv/linux/exit-thread.S: New file.
1024         * sysdeps/unix/sysv/linux/_exit.c: New file.
1025         * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
1026         * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
1027         Add exit-thread.
1029         * configure.in: Add dl_iterate_phdr to test using -nostdlib.
1031 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
1033         * sysdeps/i386/dl-machine.h (elf_machine_rel)
1034         (case R_386_TLS_DTPMOD32): Don't use addend.
1035         [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
1036         (elf_machine_rela): Add support for TLS relocs.
1038 2002-09-14  Roland McGrath  <roland@redhat.com>
1040         * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
1042 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
1044         * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
1045         specific asm macros for multiple percision integer math.
1047 2002-06-04  Steven Munroe  <sjmunroe@us.ibm.com>
1049         * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
1050         * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
1051         Remove per-machine conditionals for FLAG_* cases.
1052         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
1053         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
1054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
1056 2002-09-10  Alan Modra <amodra@bigpond.net.au>
1058         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
1059         defined in entry.h.
1060         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
1061         lowest address for profiling in  __monstartup call.
1062         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
1064 2002-09-14  Roland McGrath  <roland@redhat.com>
1066         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
1067         instead of __NR_pread.
1068         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
1069         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
1070         instead of __NR_pwrite.
1071         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
1073 2002-09-13  Roland McGrath  <roland@redhat.com>
1075         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
1077 2002-09-13  Andreas Jaeger  <aj@suse.de>
1079         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
1080         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
1082 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
1084         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
1086 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
1088         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
1089         reading the headers.
1091 2002-09-12  Roland McGrath  <roland@redhat.com>
1093         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
1094         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
1095         find the ELF header.
1097         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
1098         executable if needed, in case it's actually a shared object.
1100 2002-09-11  Roland McGrath  <roland@redhat.com>
1102         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
1103         l_map_start to adjust l_tls_initimage.
1105         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
1106         when using h_errno and it's not set to NETDB_INTERNAL.
1107         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
1109         * Makefile ($(common-objpfx)testrun.sh): New target.
1110         (others): Depend on it.
1111         (postclean-generated): Append it.
1113         * nss/bug-erange.c: New file.
1114         * nss/Makefile (tests): Add it.
1116         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
1117         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
1119         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
1120         strncmp, keeps the code smaller for a non-performance-critical case.
1122         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
1123         no longer wrongly matches arbitrary prefixes of NAME.
1124         Reported by Jakub Jelinek <jakub@redhat.com>.
1126 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
1128         * posix/bug-regex11.c (tests): New array.
1129         (main): Rewritten to run more different tests.
1131 2002-09-10  Roland McGrath  <roland@redhat.com>
1133         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
1134         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
1135         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
1137         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
1138         well so we don't get it declared by include/math.h's hidden_proto.
1139         Then do hidden_proto for __isnanf locally so hidden_def works right.
1141         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
1142         a cast to turn nl_langinfo return value into an integer.
1144 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
1146         * posix/regexec.c (build_trtable): Fix the destination of
1147         newline to prevent wrong states from overwriting.
1148         Append break statements to optimization.
1150 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
1152         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
1153         (build_range_exp): Add castings to strlen invocations.
1154         (build_collating_symbol): Restore the type of characters from "char"
1155         to "unsigned char", and supplement castings.
1156         (build_collating_symbol): Likewise.
1157         (build_equiv_class): Likewise.
1158         (build_charclass): Likewise.
1159         (seek_collating_symbol_entry): Likewise.
1160         (parse_bracket_exp): Likewise.
1161         (build_word_op): Supplement a casting.
1162         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
1163         (re_string_allocate): Fix castings.
1164         (re_string_construct): Likewise.
1165         (re_string_construct_common): Likewise.
1166         (re_string_realloc_buffers): Likewise.
1167         (build_wcs_buffer): Likewise.
1168         (build_wcs_upper_buffer): Likewise.
1169         (re_string_skip_chars): Likewise.
1170         (re_string_reconstruct): Likewise.
1171         * posix/regex_internal.h: Restore the type of characters in
1172         re_string_t and bracket_elem_t from "char" to "unsigned char".
1173         (re_string_elem_size_at): Fix castings.
1174         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
1175         (transit_state_bkref_loop): Restore the type of characters from
1176         "char" to "unsigned char", and append a cast to "char*" pointer in
1177         array subscript.
1178         (check_node_accept_bytes): Likewise.
1179         (find_collation_sequence_value): Likewise.
1181 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
1183         * sysdeps/mips/memcpy.S: New file.
1184         * sysdeps/mips/memset.S: New file.
1185         * sysdeps/mips/fpu/e_sqrt.c:  New file.
1186         * sysdeps/mips/fpu/e_sqrtf.c: New file.
1188         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
1189         functional before. Also removed all SHLIB_COMPAT stuff.
1190         * fpu/fegetenv.c: Likewise.
1191         * fpu/fesetenv.c:: Likewise.
1192         * fpu/feupdateenv.c: Likewise.
1193         * fpu/fgetexcptflg.c: Likewise.
1194         * fpu/fraiseexcpt.c: Likewise.
1196         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
1198 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
1200         * include/math.h (__finite_internal, __finitef_internal,
1201         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
1202         (isfinite): Remove.
1203         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
1204         __isinfl, __isnanl): Add hidden_proto.
1205         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
1206         libm_hidden_proto.
1207         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
1208         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
1209         __is{inf,nan} calls.
1210         * stdio-common/printf_size.c (printf_size): Likewise.
1211         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
1212         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
1213         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
1214         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
1215         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
1216         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
1217         (__finite): Add hidden_def.
1218         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
1219         (__finitef): Add hidden_def.
1220         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
1221         (__finitel): Add hidden_def.
1222         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
1223         hidden_def.
1224         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
1225         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
1226         libm_hidden_def.
1227         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
1228         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
1229         hidden_def.
1230         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
1231         (__isinfl): Remove INTDEF.
1232         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
1233         hidden_def.
1234         (__isnanl): Remove INTDEF.
1235         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
1236         libm_hidden_def.
1237         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
1238         instead of sin and cos.
1239         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
1240         Add hidden_def.
1241         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
1242         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
1243         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
1244         libm_hidden_def.
1245         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
1246         Add hidden_def.
1247         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
1248         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
1249         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
1250         libm_hidden_def.
1251         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
1252         libm_hidden_def.
1253         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
1254         Add hidden_def.
1255         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
1256         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
1257         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
1258         libm_hidden_def.
1259         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
1260         __finitel_internal): Remove aliases.
1261         (__finite, __finitef, __finitel): Add hidden_def.
1262         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
1263         __isnanl_internal): Remove aliases.
1264         (__isnan, __isnanf, __isnanl): Add hidden_def.
1265         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
1266         __isinfl_internal): Remove aliases.
1267         (__isinf, __isinff, __isinfl): Add hidden_def.
1268         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
1269         __fpclassifyl): Add libm_hidden_def.
1270         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
1271         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
1272         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
1273         (hidden_defx): Define and use.
1274         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
1275         libm_hidden_def.
1276         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
1277         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
1278         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
1279         Remove INTDEF.
1280         (__isnan, __isnanf): Add hidden_def.
1281         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
1282         (__finitel): Add libm_hidden_def.
1283         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
1285         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
1286         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
1287         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1288         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
1289         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1290         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
1291         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
1292         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
1293         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1294         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
1295         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1296         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
1297         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1298         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
1299         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1300         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
1301         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1302         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
1303         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1304         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
1305         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1306         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
1307         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1308         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
1309         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1310         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
1311         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1313 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
1315         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
1317 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
1319         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
1320         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
1322 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
1324         * string/stratcliff.c: Some more strncpy tests.
1325         Patch by Daniel Jacobowitz <drow@mvista.com>.
1327 2002-09-08  Roland McGrath  <roland@redhat.com>
1329         * resolv/resolv.h: Include <sys/types.h> for u_long even in
1330         the [__need_res_state] case.
1331         Reported by Bruno Haible <bruno@clisp.org>.
1333 2002-09-04  Bruno Haible  <bruno@clisp.org>
1335         * sysdeps/generic/bits/ustat.h: Comment fix.
1336         * io/sys/sendfile.h: Comment fix.
1337         * sysdeps/posix/pread.c: Comment fix.
1338         * sysdeps/posix/pread64.c: Comment fix.
1339         * sysdeps/posix/pwrite.c: Comment fix.
1340         * sysdeps/posix/pwrite64.c: Comment fix.
1342 2002-09-06  Roland McGrath  <roland@redhat.com>
1344         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
1345         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
1346         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
1347         (_UTSNAME_MACHINE_LENGTH): Likewise.
1348         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
1350 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
1352         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
1353         test for filesystem type name of mount points.
1355         * include/errno.h: Use errno definition with __thread for now only
1356         in libc and ld.so.
1358         * test-skeleton.c (main): Improve error message for unexpected
1359         signal case.
1361 2002-09-05  Roland McGrath  <roland@redhat.com>
1363         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
1364         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1366 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
1368         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
1369         case of failure.
1371 2002-09-04  Bruno Haible  <bruno@clisp.org>
1373         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
1374         sigset_get_old_mask): Turn into inline functions.
1375         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
1376         sigset_get_old_mask): Likewise.
1377         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
1378         sigset_get_old_mask): Likewise.
1379         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
1380         syntax.
1382         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
1384         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
1385         default definitions.
1386         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
1387         _sys_nerr_internal instead of _sys_nerr.
1389         * nscd/connections.c (handle_request): Declare CALLER inside #if.
1391 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
1393         * sysdeps/powerpc/__longjmp.S: Moved to...
1394         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
1395         * sysdeps/powerpc/add_n.S: Moved to...
1396         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
1397         * sysdeps/powerpc/addmul_1.S: Moved to...
1398         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
1399         * sysdeps/powerpc/atomicity.h: Moved to...
1400         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
1401         * sysdeps/powerpc/backtrace.c: Moved to...
1402         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
1403         * sysdeps/powerpc/bp-asm.h: Moved to...
1404         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
1405         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
1406         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
1407         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
1408         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
1409         * sysdeps/powerpc/dl-machine.c: Moved to...
1410         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
1411         * sysdeps/powerpc/dl-machine.h: Moved to...
1412         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
1413         * sysdeps/powerpc/dl-start.S: Moved to...
1414         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
1415         * sysdeps/powerpc/gprrest0.S: Moved to...
1416         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
1417         * sysdeps/powerpc/gprrest1.S: Moved to...
1418         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
1419         * sysdeps/powerpc/gprsave0.S: Moved to...
1420         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
1421         * sysdeps/powerpc/gprsave1.S: Moved to...
1422         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
1423         * sysdeps/powerpc/lshift.S: Moved to...
1424         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
1425         * sysdeps/powerpc/memset.S: Moved to...
1426         * sysdeps/powerpc/powerpc32/memset.S: ...here.
1427         * sysdeps/powerpc/mul_1.S: Moved to...
1428         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
1429         * sysdeps/powerpc/ppc-mcount.S: Moved to...
1430         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
1431         * sysdeps/powerpc/register-dump.h: Moved to...
1432         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
1433         * sysdeps/powerpc/rshift.S: Moved to...
1434         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
1435         * sysdeps/powerpc/setjmp.S: Moved to...
1436         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
1437         * sysdeps/powerpc/stpcpy.S: Moved to...
1438         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
1439         * sysdeps/powerpc/strchr.S: Moved to...
1440         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
1441         * sysdeps/powerpc/strcmp.S: Moved to...
1442         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
1443         * sysdeps/powerpc/strcpy.S: Moved to...
1444         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
1445         * sysdeps/powerpc/strlen.S: Moved to...
1446         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
1447         * sysdeps/powerpc/sub_n.S: Moved to...
1448         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
1449         * sysdeps/powerpc/submul_1.S: Moved to...
1450         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
1451         * sysdeps/powerpc/elf/bzero.S: Moved to...
1452         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
1453         * sysdeps/powerpc/elf/start.S: Moved to...
1454         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
1455         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
1456         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
1457         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
1458         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
1459         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
1460         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
1461         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
1462         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
1463         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
1464         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
1465         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
1466         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
1467         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
1468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
1469         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
1470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
1471         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
1472         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
1473         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
1474         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
1475         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
1476         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
1477         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
1478         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
1479         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
1480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
1481         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
1482         powerpc/powerpc64.
1484 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
1486         * FAQ.in: Add powerpc64 to supported targets list. Also state the
1487         minimum gcc version is 3.2
1488         * README: Add powerpc64 to supported targets list.
1489         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
1490         Add powerpc64 and machine=powerpc/powerpc64.
1491         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
1492         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
1493         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
1494         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
1495         * sysdeps/powerpc/powerpc32/Dist: New file.
1496         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
1497         * sysdeps/powerpc/powerpc32/Implies: New file.
1498         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
1499         ($(with-fp) = no): Move test to powerpc32/Makefile.
1500         ($(subdir) = misc): Move to powerpc32/Makefile.
1501         ($(build-shared) = yes): Move to powerpc32/Makefile.
1502         ($(subdir) = csu): Move to powerpc32/Makefile.
1503         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
1504         * sysdeps/powerpc/powerpc32/Makefile: New file.
1505         * sysdeps/powerpc/Versions: Remove libgcc functions.
1506         * sysdeps/powerpc/powerpc32/Versions: New file.
1507         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
1508         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
1509         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
1510         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
1511         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
1512         ($machine): Add powerpc/powerpc64 to if ... | for
1513         libc_cv_slibdir=/libc64.
1514         (powerpc*): Set ldd_rewrite_script.
1515         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
1516         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
1517         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
1518         Add clone.S.
1519         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
1520         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
1521         functions.  Remove GLIBC_2.2 functions except getrlimit and
1522         setrlimit.  Moved them to ...
1523         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
1525 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
1527         * libio/tst-atime.c: Include <errno.h>.
1528         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
1530 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
1532         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
1533         warnings of some compilers.
1534         (build_collating_symbol): Change the type of characters from
1535         "unsigned char" to "char", and append a cast to "char*" pointer in
1536         array subscript.
1537         (build_collating_symbol): Likewise.
1538         (build_equiv_class): Likewise.
1539         (build_charclass): Likewise.
1540         (re_compile_pattern): Remove incorrect cast.
1541         (re_compile_fastmap_iter): Change the type of characters from
1542         "unsigned char" to "char", and append a cast to "char*" pointer
1543         in array subscript.
1544         (parse_bracket_exp): Likewise.
1545         * posix/regex_internal.c (re_string_construct_common): Likewise.
1546         (re_string_allocate): Likewise.
1547         (re_string_construct): Likewise.
1548         (re_string_realloc_buffers): Likewise.
1549         (build_wcs_buffer): Likewise.
1550         (re_string_reconstruct): Likewise.
1551         * posix/regex_internal.h: Change the type of characters in
1552         re_string_t and bracket_elem_t from "unsigned char" to "char".
1553         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
1554         warnings of some compilers.
1555         (transit_state_bkref_loop): Change the type of characters from
1556         "unsigned char" to "char", and append a cast to "char*" pointer in
1557         array subscript.
1558         (check_node_accept_bytes): Likewise.
1559         (find_collation_sequence_value): Likewise.
1561 2002-09-04  Roland McGrath  <roland@redhat.com>
1563         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
1564         from 1024 to 65536, to avoid buffer overrun.
1566 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
1568         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
1570 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
1572         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
1573         for filesystem.
1575 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
1577         * posix/bug-regex11.c: New test.
1578         * posix/Makefile (tests): Add bug-regex11.
1580 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
1582         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
1583         newlocale.
1585 2002-09-02  Roland McGrath  <roland@redhat.com>
1587         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
1588         __pthread_initialize_minimal and __libc_check_standard_fds to
1589         match the generic version.
1591         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
1592         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
1594         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
1595         warnings on platorms where char is unsigned.
1597 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
1599         * version.h (VERSION): Bump to 2.2.93.
1601         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
1603 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
1605         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
1606         as relocated.
1608 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
1610         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
1612 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
1614         * locale/localeinfo.h (struct locale_data): Add private.ctype.
1615         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
1616         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
1617         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
1618         (__wcsmbs_load_conv): Remove const from argument.
1619         (_nl_cleanup_ctype): New proto.
1620         (get_gconv_fcts): New function.
1621         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
1622         (__wcsmbs_to_wc): Rename back to...
1623         (to_wc): ... this.
1624         (__wcsmbs_gconv_fcts): Rename to...
1625         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
1626         (lock): Removed.
1627         (__libc_setlocale_lock): New extern.
1628         (__wcsmbs_load_conv): Remove const from argument.
1629         Initialize new_category->private.ctype instead of a global
1630         variable.
1631         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
1632         update_function_ptrs.  No locking is necessary.
1633         (_nl_cleanup_ctype): New function.
1634         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
1635         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
1636         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1637         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
1638         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
1639         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
1640         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
1641         * wcsmbs/wctob.c (wctob): Likewise.
1642         * stdlib/mblen.c (mblen): Likewise.
1643         * stdlib/mbtowc.c (mbtowc): Likewise.
1644         * stdlib/wctomb.c (wctomb): Likewise.
1645         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
1646         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
1647         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
1648         Removed.
1650 2002-09-02  Roland McGrath  <roland@frob.com>
1652         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
1654 2002-09-01  Roland McGrath  <roland@redhat.com>
1656         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
1657         Variable declarations removed.
1658         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
1659         these functions to replace them.
1660         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
1661         functions plus an indirection rather than the old global variables.
1662         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
1663         Macros removed.
1664         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
1665         inline functions.
1666         * ctype/ctype-info.c: Revert last reversion back the other way.
1667         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
1668         Define real function versions of include/ctype.h inlines here.
1669         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
1670         __ctype_tolower_loc, __ctype_toupper_loc.
1671         * locale/lc-ctype.c: Revert last reversion back the other way.
1672         (_nl_postload_ctype): If current thread uses the global locale,
1673         update its tsd vars.
1674         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
1675         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
1676         CTYPE_TOLOWER, CTYPE_TOUPPER.
1678         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
1679         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
1680         from __libc_tsd_threadvar_location.
1681         (__libc_tsd_set, __libc_tsd_get): Update uses.
1683 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
1685         * ctype/ctype.h: Undo the patch before the last one.  Put back the
1686         macro definitions for the standard functions to access the
1687         classification and mapping arrays.
1688         * include/ctype.h: Partly revert last patch.  Move the macro
1689         definitions for the exported functions back to the public header.
1690         #undef all the macros defined here before redefining.
1691         * ctype/ctype-info.c: Revert last patch.
1692         * locale/lc-ctype.c: Revert last patch.
1694         * ctype/Makefile (routines): Add isctype.
1695         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
1696         * ctype/ctype.h: Add declaration of isctype.
1697         * include/ctype.h: Declare __isctype.
1698         * ctype/isctype.c: New file.
1700 2002-09-01  Roland McGrath  <roland@redhat.com>
1702         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
1703         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1705         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1707         * locale/findlocale.c (_nl_remove_locale): Don't search in
1708         _nl_locale_file_list if DATA->alloc is ld_archive.
1709         Use _nl_unload_locale to do the rest of the work.
1711         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1712         of new structure to UNDELETABLE.
1714         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1715         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1716         towlower, towupper): Macros removed.
1717         * ctype/ctype.h (__tobody): Put parens around macro argument.
1718         (__isctype): Macro removed.
1719         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1720         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1721         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1722         tolower, toupper): Macros and inlines removed.
1723         * include/ctype.h [! NOT_IN_libc]
1724         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1725         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1726         tolower, toupper): Define here instead, using _NL_CURRENT.
1727         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1728         using _NL_CURRENT.
1729         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1730         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1731         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1732         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1733         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1734         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1735         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
1736         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1737         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1738         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1739         (ISSORTMASK): Update use.
1740         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1741         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1742         (_nss_files_getENTNAME_r): Likewise.
1743         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1744         Likewise.
1746         * Makerules (all-nonlib): Renamed from all-tests.
1747         Include $(others) here too.
1748         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1749         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1750         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1751         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1752         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
1753         the program modules via cppflags-iterator.mk.
1754         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1755         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1757 2002-08-31  Roland McGrath  <roland@redhat.com>
1759         * posix/tst-getconf.sh: If no third arg, work with static linking.
1761         * locale/categories.def (LC_TIME): No more _nl_postload_time.
1763         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1764         [_NL_CURRENT_INDIRECT].
1766 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1768         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1770 2002-08-31  Roland McGrath  <roland@redhat.com>
1772         * locale/newlocale.c (__newlocale): Don't use strdup for names.
1773         Instead, make the single allocation of the structure larger to hold
1774         the name strings.
1775         * locale/duplocale.c (__duplocale): Don't strdup names individually.
1776         Instead, calculate size for a single allocation and copy into it.
1777         * locale/freelocale.c (__freelocale): Don't free names individually.
1779         * locale/newlocale.c (__newlocale): Don't leak old data or names.
1781         * locale/xlocale.h (__locale_struct): Move __names member last,
1782         for binary compatibility.
1784         * locale/duplocale.c (__duplocale): Free names from the right array.
1786         * locale/uselocale.c (__uselocale): Return previous locale when
1787         setting a new one.
1789         * locale/newlocale.c: Commit changes from 2002-08-30
1790         batch where I failed to commit this file:
1791         (__newlocale): Fill in __names array.
1793 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1795         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1796         errlist-compat.c if versioning==yes.
1798 2002-08-31  Andreas Jaeger  <aj@suse.de>
1800         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1801         external functions with hidden attribute.
1802         (elf_machine_rela): Optimize.
1804         * sysdeps/x86_64/memset.S: New file.
1805         * sysdeps/x86_64/bzero.S: New file.
1806         * sysdeps/x86_64/stpcpy.S: New file.
1807         * sysdeps/x86_64/strcat.S: New file.
1808         * sysdeps/x86_64/strchr.S: New file.
1809         * sysdeps/x86_64/strcpy.S: New file.
1810         * sysdeps/x86_64/strcspn.S: New file.
1811         * sysdeps/x86_64/strlen.S: New file.
1812         * sysdeps/x86_64/strpbrk.S: New file.
1813         * sysdeps/x86_64/strspn.S: New file.
1814         * sysdeps/x86_64/strcmp.S: New file.
1815         * sysdeps/x86_64/strtok_r.S: New file.
1816         * sysdeps/x86_64/strtok.S: New file.
1817         * sysdeps/x86_64/memcpy.S: New file.
1818         * sysdeps/x86_64/mempcpy.S: New file.
1820         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1822         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1824 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1826         * stdio-common/Makefile (generated): Add errlist-compat.c.
1828         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1830         * locale/localeinfo.h: Pretty printing.
1832         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1833         form_number handling.
1835 2002-08-31  Andreas Jaeger  <aj@suse.de>
1837         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1838         double tests.
1840         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1841         __start_context.
1843         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1845         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1847         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1848         registers used for passing args.
1850         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1851         all needed registers.
1853         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1854         registers.
1856         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1857         registers.
1859 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
1861         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1862         always_inline attribute.
1864 2002-08-30  Roland McGrath  <roland@redhat.com>
1866         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1867         presume it's the stub and bail without error.
1869         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1870         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1872         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1874         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1875         macros replace the i686 versions for 64-bit mode.
1877         * locale/duplocale.c: Include <string.h>.
1879         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1880         [_LIBC] (category_to_name): Don't define the function.  Instead
1881         define a macro using _nl_category_names.
1883         * locale/xlocale.h (struct __locale_struct): New member `__names'.
1884         * locale/xlocale.c (_nl_C_locobj): Update initializer.
1885         * locale/global-locale.c (_nl_global_locale): Likewise.
1886         * locale/duplocale.c (__duplocale): strdup __names elements.
1887         * locale/freelocale.c (__freelocale): Free __names elements.
1888         * locale/localename.c (_nl_current_names): Variable removed.
1889         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1890         * locale/localeinfo.h (_nl_current_names): Removed decl.
1891         * locale/setlocale.c: Use _nl_global_locale->__names in place of
1892         _nl_current_names throughout.
1894         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1896         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1897         and sys_nerr in the output file.
1899         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1900         * scripts/cpp: Just use the environment variable.
1902         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1903         * libio/tst-mmap-offend.c (do_test): Likewise.
1904         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1905         * libio/tst-mmap-eofsync.c (do_test): Likewise.
1906         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1908         * locale/localename.c: If the current locale is the global locale, use
1909         _nl_current_names; otherwise use the locale object.
1911 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1913         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1914         'm' to enable mmap I/O.
1915         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
1916         former wasn't used (anymore?).
1917         (_IO_FLAGS2_MMAP): New define.
1918         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1919         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1920         _IO_FLAGS2_MMAP bit is set.
1921         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1922         Enable mmap-using mode only if 'm' was set.
1924 2002-08-29  Roland McGrath  <roland@frob.com>
1926         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1928         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1929         Change argument type from int to intptr_t.
1931         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1932         initializer on [! _HURD_THREADVAR_H] (bad kludge).
1933         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1934         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1935         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
1937         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1939         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1941         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1943         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1944         * assert/assert-perr.c: Add libc_hidden_def.
1945         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1947         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1948         found at all.
1949         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
1950         sys_errlist stuff to ...
1951         * sysdeps/unix/sysv/linux/Versions: ... here.
1953         * mach/mach.h: Include <features.h>.
1955 2002-08-29  Roland McGrath  <roland@redhat.com>
1957         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1958         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1959         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1961         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1963         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1964         (norm_add_slashes): alloca -> __alloca
1966 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
1968         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1969         string_malloced, it is unlikely to be set.
1970         Only call free with non-NULL workspace.
1971         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1972         -mcpu=ultrasparc, not only tune for it.
1973         (ASFLAGS*): Set unconditionally.
1975         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1976         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
1977         p_vaddr/p_offset when computing LOADADDR.
1979 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1981         * version.h (VERSION): Bump to 2.2.92.
1983         * time/Makefile (tst-ftime_l-ENV): New variable.
1985         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1987         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1988         <U017A>, <U017D> and <U0179>. Add missing mappings.
1989         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1991         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1992         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
1993         (struct tostruct): Use ACRINDEX as type for link field.
1994         (statuc gmonparam): Likewise for froms.
1995         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1996         kcount and froms.
1997         (write_call_graph): Use correct type for from_index and to_index.
1998         * gmon/mcount.c: Use correct types for frompcindex and toindex
1999         variables.
2000         Patches by Dan Kegel <dank@kegel.com>.
2002         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
2003         canonical name.
2005         * time/strptime.c (ISSPACE): New #define.  Use isspace or
2006         __isspace_l.  Replace calls to isspace.
2007         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
2009 2002-08-29  Roland McGrath  <roland@redhat.com>
2011         * string/tst-strxfrm.c: Remove __ from function names.
2013 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2015         * include/wchar.h: Declare __mbsrtowcs_l.
2016         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
2017         * wcsmbs/mbsrtowcs.c: Add support for compilation with
2018         USE_IN_EXTENDED_LOCALE_MODEL.
2019         * wcsmbs/mbsrtowcs_l: New file.
2020         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
2021         define as static.  Change all uses.
2022         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
2023         Change all callers.
2024         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
2025         * time/strftime.c: When translating for the extended locale model
2026         use the _l functions.
2027         * time/Makefile (tests): Add tst-ftime_l.
2028         * time/tst-ftime_l.c: New file.
2030 2002-08-28  Roland McGrath  <roland@redhat.com>
2032         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
2033         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
2034         from _nl_find_locale ok if for _nl_C_name.
2036         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
2037         iterator to refer to each category's _nl_current_LC_FOO symbol, so
2038         we know they are all linked in.
2040         * NEWS: Added 2.2.6 text from 2.2 branch version.
2042         * time/strptime.c (strptime_internal): Remove spurious const.
2044         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
2045         _nl_select_era_entry): Moved to ...
2046         * time/era.c: ... here, new file.
2047         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
2048         Add internal_function to definitions.  Take an additional argument
2049         giving the `struct locale_data *' to use.
2050         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
2051         _nl_parse_alt_digit): Moved to ...
2052         * time/alt_digit.c: ... here, new file.
2053         * time/lc-time-cleanup.c: New file.
2054         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
2055         * locale/localeinfo.h (_nl_postload_time): Remove decl.
2056         (_nl_cleanup_time): Declare it.
2057         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
2058         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
2059         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
2060         * time/strftime.c: Pass locale data to helper functions.
2061         * time/strptime.c: Likewise.
2063         * locale/localeinfo.h (struct locale_data): New member `private'
2064         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
2065         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
2066         * locale/C-collate.c: Update initializer.
2067         * locale/C-identification.c: Likewise.
2068         * locale/C-measurement.c: Likewise.
2069         * locale/C-telephone.c: Likewise.
2070         * locale/C-address.c: Likewise.
2071         * locale/C-name.c: Likewise.
2072         * locale/C-paper.c: Likewise.
2073         * locale/C-time.c: Likewise.
2074         * locale/C-numeric.c: Likewise.
2075         * locale/C-monetary.c: Likewise.
2076         * locale/C-messages.c : Likewise.
2077         * locale/C-ctype.c: Likewise.
2079         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
2080         Redefine this too.
2082 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2084         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
2085         (_rtld_global): Use it.
2087         * sysdeps/gnu/Dist: Remove errlist-compat.c.
2088         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
2089         object directory.  Pass all Versions files to the awk script.
2090         * sysdeps/gnu/errlist-compat.c: Removed.
2091         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
2092         first Versions file in the search path which has them.
2093         Allow multiple errlist symbol versions to have the same count of
2094         errors.
2095         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
2096         of "errlist-compat.c".
2097         * sysdeps/gnu/errlist.c: Regenerated.
2098         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
2099         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
2100         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2101         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
2102         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
2103         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
2104         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
2105         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
2106         ECANCELLED if not defined by kernel headers.
2107         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
2108         already defined by kernel headers.
2109         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
2110         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
2111         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
2112         is a macro.
2113         * Versions.def (GLIBC_2.3) [librt]: Add.
2115         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
2117 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2119         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
2120         missing comma to .type directive.
2122 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2124         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
2125         unconditionally.
2126         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
2127         check.
2128         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
2130 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2132         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
2133         check to close_and_out close.  Replace return NULL statements where
2134         fd might be >= 0 with goto close_and_out.  Close the file descriptor
2135         when it is no longer needed.
2137 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2139         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
2140         string constants.
2141         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2142         * sysdeps/arm/dl-machine.h: Likewise.
2143         * sysdeps/cris/dl-machine.h: Likewise.
2144         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
2145         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
2147 2002-08-28  Roland McGrath  <roland@redhat.com>
2149         * Makeconfig (default_cflags): Revert unintended change.
2151 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2153         * version.h (VERSION): Bump to 2.2.91.
2155         * configure.in: Disable TLS support by default for now.
2157         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
2159         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
2160         warnings.
2162         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
2164         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
2165         fprintf/fwprintf calls.
2167 2002-08-28  Roland McGrath  <roland@redhat.com>
2169         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
2170         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
2172         * locale/setlocale.c: Declare postload functions weak.
2174         * elf/tst-tls1-static.c: New file.
2175         * elf/tst-tls2-static.c: New file.
2176         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
2178         Make uselocale support static linking.
2179         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
2180         This file again just defines _nl_C_locobj.
2181         (_nl_C_locobj): Use a categories.def iterator in the initializer.
2182         * locale/global-locale.c: New file.  Define _nl_global_locale here,
2183         using all weak references in the initializer.
2184         * locale/Makefile (aux): Add global-locale.
2185         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
2186         these unconditional, along with the tsd decl.
2187         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
2188         Define it under these conditions.
2189         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
2190         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
2191         `extern __thread struct locale_data *const *'.
2192         [NL_CURRENT_INDIRECT]
2193         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
2194         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
2195         the thread variable _nl_current_LC_FOO and also a special absolute
2196         symbol _nl_current_LC_FOO_used.
2197         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
2198         Set each _nl_current_LC_FOO symbol to point into the new locale,
2199         using weak references to test if _nl_current_LC_FOO_used was linked in.
2200         * locale/setlocale.c [! SHARED]: Replace this conditional ...
2201         [NL_CURRENT_INDIRECT]: ... with this one.
2202         (_nl_current, _nl_C): Variables removed.
2203         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
2204         weak references to _nl_current_LC_FOO_used.
2205         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
2206         (free_category): New function, broken out of ...
2207         (free_mem): ... here.  Call that.
2208         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
2209         instead of a loop.
2211         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
2212         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
2213         it is already absolute.
2215         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
2216         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
2217         [$(build-static) = yes] (tests-static): New variable.
2218         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
2220 2002-08-26  Christoph Hellwig  <hch@lst.de>
2222         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
2223         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
2225 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2227         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
2229         * sysdeps/s390/Dist: Add bits/link.h.
2231         * sysdeps/sh/Dist: New file.
2233         * sysdeps/ia64/Dist: Add ia64libgcc.S.
2235         * sysdeps/wordsize-32/Dist: New file.
2237         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
2238         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
2239         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
2241         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
2242         sys/personality.h.
2244         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
2245         sparc/dl-brk.S.
2247         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
2249         * sysdeps/unix/bsd/sun/Dist: New file.
2251         * sysdeps/unix/bsd/osf/Dist: New file.
2253         * sysdeps/unix/bsd/hp/Dist: New file.
2255         * sysdeps/unix/arm/Dist: New file.
2257         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
2259         * sysdeps/mach/hurd/Dist: Add set-init.c.
2261         * sysdeps/i386/Dist: Add bits/link.h.
2263         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
2265         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
2267         * locale/Makefile (distribute): Add hashval.h.
2269         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
2271         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
2273         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
2274         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
2275         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
2276         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
2277         implementations.
2278         * libio/stdio.h: Likewise.
2279         * locale/locale.h: Likewise.
2280         * math/math.h: Likewise.
2281         * math/bits/mathcalls.h: Likewise.
2282         * setjmp/setjmp.h: Likewise.
2283         * signal/signal.h: Likewise.
2284         * stdlib/stdlib.h: Likewise.
2285         * string/string.h: Likewise.
2286         * time/time.h: Likewise.
2287         * wcsmbs/wchar.h: Likewise.
2288         * wctype/wctype.h: Likewise.
2290 2002-08-28  Roland McGrath  <roland@redhat.com>
2292         * locale/tst-C-locale.c (run_test): Remove __ from function names.
2294 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2295             Roland McGrath <roland@redhat.com>
2297         * locale/hashval.h (compute_hashval): Use prototype defn.
2298         (hashval_t): New macro, defined to unsigned long int
2299         if not already defined.
2300         (compute_hashval): Return hashval_t instead of unsigned long int.
2301         * locale/loadarchive.c (hashval_t): New macro.
2302         * locale/programs/locarchive.c: Include hashval.h directly instead
2303         of simple-hash.h.
2304         (compute_hashval, hashval_t): Define these macros first.
2305         (insert_name): Use archive_hashval instead of compute_hashval.
2306         (add_locale, delete_locales_from_archive): Likewise.
2308 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2310         * locale/programs/locarchive.c (insert_name): Suppress warnings about
2311         hash collisions if be_quiet.
2313 2002-08-27  Roland McGrath  <roland@redhat.com>
2315         * locale/locale.h (__newlocale, __duplocale, __freelocale,
2316         __uselocale): Don't declare these any more.
2317         * include/locale.h (__uselocale): Declare here instead, using __typeof.
2319         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
2320         and treat it as an EOF return.
2321         * sysdeps/unix/readdir_r.c: Likewise.
2323         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
2324         From Alexandre Oliva <aoliva@redhat.com>.
2325         * sysdeps/gnu/errlist-compat.c: Regenerated.
2327 2002-08-27  Brian Youmans  <3diff@gnu.org>
2329         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
2330         wording at request of copyright holder Stephen Moshier.
2331         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2332         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2333         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2334         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2335         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2336         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2337         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2338         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2339         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2340         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2341         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2342         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2343         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2344         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2346 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2348         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
2349         * ctype/ctype-extn.c (isblank_l): Add weak alias.
2350         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
2351         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
2352         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
2353         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
2354         * wctype/iswctype_l.c (iswctype_l): Likewise.
2356 2002-08-27  Roland McGrath  <roland@redhat.com>
2358         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
2360         * ctype/ctype.h (__exctype_l): Don't declare __ name.
2361         * stdlib/stdlib.h: Don't declare __*_l names.
2362         * include/stdlib.h: Declare them here instead.
2363         * include/string.h: Don't declare __*_l names.
2364         * string/string.h: Declare them here instead.
2365         * time/time.h: Don't declare __*_l names.
2366         * include/time.h: Declare them here instead.
2367         * wcsmbs/wchar.h: Don't declare __*_l names.
2368         * include/wchar.h: Declare them here instead.
2369         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
2370         Don't declare __*_l names.
2371         * include/wctype.h: Declare them here instead.
2372         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
2373         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
2374         * locale/langinfo.h: Don't declare __nl_langinfo_l.
2375         * include/langinfo.h: Declare it here with __typeof.
2377         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
2378         instead, taking an extra __locale_t argument.
2379         * time/Makefile (routines): Add strptime_l.
2380         * time/time.h (__strptime_l, strptime_l): Declare them.
2381         * time/strptime_l.c: New file.
2383         * time/time.h (__strftime_l, strftime_l): Declare them.
2384         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
2385         * time/strftime_l.c: New file.
2386         * time/wcsftime_l.c: New file.
2387         * time/Makefile (routines): Add strftime_l, wcsftime_l.
2388         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
2389         strftime_l, wcsftime_l.
2390         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
2391         or __wcsftime_l instead, taking an extra __locale_t argument.
2393         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
2394         (libc: GLIBC_2.3): ... here.
2396 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
2398         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
2400         * Makefile (distribute): Add LICENSES.
2402         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
2403         sys/debugreg.h.
2405         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
2407         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
2409         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
2411         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
2413         * sysdeps/mach/hurd/alpha/Dist: New file.
2415         * sysdeps/arm/Dist: Add bits/link.h.
2417         * sunrpc/Makefile: Distribute thrsvc.
2419         * stdio-common/Makefile: Remove more left-overs from old stdio.
2421         * include/linewrap.h: Removed.
2423         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
2425         * intl/Makefile (distribute): Add plural-eval.c.
2427 2002-08-27  Roland McGrath  <roland@redhat.com>
2429         * manual/sysinfo.texi (Mount Information): Correct file name to macro
2430         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
2431         Say mtab is in either /var/run or /etc.
2433 2002-08-26  Roland McGrath  <roland@redhat.com>
2435         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
2436         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
2438         * sysdeps/gnu/Versions: New file.
2439         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
2440         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
2441         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
2442         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
2443         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
2444         and _sys_nerr_internal instead of anything else.  Make it include
2445         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
2446         Make it emit some asm magic if [EMIT_ERR_MAX].
2447         * sysdeps/gnu/errlist.c: Regenerated.
2448         * sysdeps/gnu/errlist-compat.awk: New file.
2449         * sysdeps/gnu/errlist-compat.c: New file (generated).
2450         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
2451         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
2452         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
2453         (SYS_ERRLIST, SYS_NERR): Macros removed.
2454         (sys_nerr, _sys_nerr): Remove these weak aliases.
2455         * sysdeps/unix/sysv/linux/errlist.c: File removed.
2456         * sysdeps/unix/sysv/linux/errlist.h: File removed.
2457         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
2459         * include/libc-symbols.h (declare_symbol): New macro.
2460         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
2461         * configure.in: New check to define it.
2462         * configure: Regenerated.
2464 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
2466         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
2467         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
2469         * Make-dist: Remove traces of old stdio.
2470         * Makeconfig: Likewise.
2472         * locale/Makefile (localedef-aux): New variable.  Only md5
2473         assigned to it.  These files are not ddistributed in this directory.
2475         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
2476         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
2477         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
2479         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
2481         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
2482         set h_errno to NO_RECOVERY [PR libc/4360].
2484 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2486         * libio/Makefile (tests): Add bug-fopena+.
2487         * libio/bug-fopena+.c: New file.
2488         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
2489         file for _IO_IS_APPENDING if file isn't opened for reading, too.
2491         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
2493         * locale/xlocale.c: Fix the last change.  The variable still has
2494         to end in _data.
2495         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
2496         (__libc_tsd_set): Add _data prefix to variable name.
2498 2002-08-26  Roland McGrath  <roland@redhat.com>
2500         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
2501         macro with inline function.
2502         (sigset_get_old_mask): Likewise.
2503         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
2504         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2505         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2506         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
2507         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
2508         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
2509         values.
2510         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
2511         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
2513 2002-07-06  Bruno Haible  <bruno@clisp.org>
2515         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
2516         sigset_get_old_mask): Make it work with larger sigset_t.
2517         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
2518         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2519         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2521 2002-08-26  Roland McGrath  <roland@redhat.com>
2523         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
2524         * manual/filesys.texi (File Times): Document lutimes and futimes.
2525         * misc/Makefile (routines): Add them.
2526         * misc/Versions (libc: GLIBC_2.3): Likewise.
2527         * sysdeps/generic/lutimes.c: New file.
2528         * sysdeps/generic/futimes.c: New file.
2529         * sysdeps/mach/hurd/lutimes.c: New file.
2530         * sysdeps/mach/hurd/futimes.c: New file.
2532         * manual/filesys.texi (File Times): Add explicit note about null
2533         pointer argument to utimes.
2535 2002-08-26  Roland McGrath  <roland@frob.com>
2537         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
2538         (__ifreq): Add a cast.  Remove an unused variable.
2540         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
2541         _HURD_THREADVAR_LOCALE.
2543 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
2545         * posix/regexec.c (re_search_stub): Return correct match length
2546         if start != 0.
2547         * posix/bug-regex10.c: New test.
2548         * posix/Makefile (tests): Add bug-regex10.
2550 2002-08-26  Brian Youmans  <3diff@gnu.org>
2552         * COPYING.LIB: Replaced with fresh copy from
2553         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
2554         suggested copying permission notice now says version 2.1 instead
2555         of version 2.
2557         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
2558         from Library GPL.
2559         * crypt/crypt_util.c: Likewise.
2560         * crypt/ufc.c: Likewise.
2561         * elf/dl-conflict.c: Likewise.
2562         * elf/dl-iteratephdr.c: Likewise.
2563         * iconv/iconvconfig.h: Likewise.
2564         * malloc/arena.c: Likewise.
2565         * malloc/hooks.c: Likewise.
2566         * malloc/malloc.c: Likewise.
2567         * posix/glob/Makefile.ami: Likewise.
2568         * posix/glob/Makefile.in: Likewise.
2569         * stdlib/gmp-impl.h: Likewise.
2570         * stdlib/gmp.h: Likewise.
2571         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
2572         * sysdeps/generic/strnlen.c: Likewise.
2573         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
2574         * sysdeps/mach/hurd/recvmsg.c: Likewise.
2575         * sysdeps/mach/hurd/sendmsg.c: Likewise.
2576         * sysdeps/mach/hurd/spawni.c: Likewise.
2577         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
2578         * sysdeps/mach/powerpc/sysdep.h: Likewise.
2579         * sysdeps/mach/powerpc/thread_state.h: Likewise.
2580         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
2581         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
2582         * sysdeps/x86_64/gmp-mparam.h: Likewise.
2584         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
2585         Lesser GPL copying permission notice from 2 to 2.1.
2586         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
2587         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
2588         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2589         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
2590         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2591         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2592         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2593         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2594         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2595         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2596         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2597         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2598         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2599         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2600         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2601         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2602         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2603         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2604         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2605         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2606         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2607         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2608         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2609         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2610         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2611         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2612         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2613         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2614         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2615         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2616         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2617         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2618         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2619         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2620         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2621         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2622         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2623         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2624         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2625         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2626         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2627         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2628         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2629         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2630         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2631         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2632         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2633         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2634         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2635         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2636         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2637         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2638         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2639         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2640         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2642         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
2643         Moshier and Lesser GPL copying permission notice, per license from
2644         Moshier.
2645         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2646         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2647         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2648         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2649         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2650         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2651         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2652         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2653         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2654         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2655         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2656         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2657         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2658         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2660         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
2661         notice, per license from copyright holder Stephen Moshier.
2662         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2663         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2664         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2665         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2666         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2667         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2668         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2669         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2670         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2672 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2674         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
2675         (shared-only-routines): Likewise.
2677 2002-08-26  Roland McGrath  <roland@redhat.com>
2679         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
2680         name of "", store a null pointer instead.
2682         * configure.in (elf): Set to yes for freebsd*, netbsd*.
2683         * configure: Regenerated.
2685         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
2686         Initialize this instead of __libc_tsd_LOCALE_data.
2688         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
2689         ptsname_r to EINVAL.
2691         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
2693         * rt/Makefile: Revert last change, it was inappropriate to presume aio
2694         implementations depend on pthreads.
2695         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
2696         * rt/tst-aio64.c (do_test): Likewise.
2697         * rt/tst-aio2.c (do_test): Likewise.
2698         * rt/tst-aio3.c (do_test): Likewise.
2699         * rt/tst-aio4.c (do_test): Likewise.
2700         * rt/tst-aio5.c (do_test): Likewise.
2701         * rt/tst-aio6.c (do_test): Likewise.
2702         * rt/tst-aio7.c (do_test): Likewise.
2704         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2705         void so as to avoid compiler warnings.
2707         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2708         _IO_wide_data_FD, which is never used here.
2710         * libio/iofread.c
2711         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2712         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2713         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2715         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2716         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2718         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2719         (closelog): Likewise.
2721 2002-07-06  Bruno Haible  <bruno@clisp.org>
2723         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2725         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2726         * sysdeps/unix/alpha/pipe.S: ... here.
2727         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2729         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2731         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2732         * sysdeps/unix/i386/fork.S: Likewise.
2733         * sysdeps/unix/i386/pipe.S: Likewise.
2734         * sysdeps/unix/i386/wait.S: Likewise.
2736         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2737         * sysdeps/unix/arm/fork.S: Likewise.
2739         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2740         arguments.
2741         (DO_CALL): Swap argument order.
2742         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2743         arguments.
2744         (DO_CALL): Swap argument order.
2745         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2746         arguments.
2747         (DO_CALL): Swap argument order.
2748         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2749         arguments.
2750         (DO_CALL): Swap argument order.
2751         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2752         arguments.
2753         (DO_CALL): Swap argument order.
2754         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2755         arguments.
2756         (DO_CALL): Swap argument order.
2757         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2758         arguments.
2759         (DO_CALL): Swap argument order.
2761         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2762         (L): Define right for ELF.
2763         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2764         Now defined in sysdeps/i386/sysdep.h.
2766         * sysdeps/posix/readv.c: Ansify function definition.
2767         * sysdeps/posix/writev.c: Likewise.
2769         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2770         have the same size. Avoid direct cast from size_t to off_t.
2772         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2773         nul byte in entry[n].ut_user.
2774         (simulate_logout): Likewise.
2776         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2777         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2778         existence of corresponding members of 'struct utmp'.
2779         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2780         !_HAVE_UT_TYPE.
2782         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2783         allocate a buffer of at least BUFSIZ bytes, not just of
2784         sizeof (struct dirent).
2786         * sysdeps/generic/glob.c: Include <limits.h>.
2787         (NAME_MAX): Define a fallback.
2788         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2789         stack.
2790         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2791         (main): Allocate enough room for a 'struct dirent64' on the stack.
2792         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2793         'struct dirent'.
2795         * sysdeps/unix/sysv/linux/init-first.c: Don't include
2796         kernel-features.h.
2798         * inet/htontest.c: Include <sys/types.h>.
2800         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2802         * include/sys/sysctl.h: Comment fix.
2804         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2805         _dl_load_lock.
2806         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2808         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2810         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2811         (__getpeername): New alias.
2812         (__getsockname): New alias.
2813         (__socket): New alias.
2815         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2817         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2818         (__fcntl_internal): New alias.
2819         (__profil): New alias.
2821 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2823         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2824         entry was for getaddr* lookup or not.  Add only matching cache
2825         entry.  Change all callers [PR libc/4317].
2827         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2828         finding the read position [PR libc/4265].
2829         * libio/Makefile (tests): Add bug-rewind2.
2830         * libio/bug-rewind2.c: New file.
2832         * libio/bug-rewind.c: Fix creation of temp file.
2834 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2836         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2837         neither SUCCESS nor TRYAGAIN [PR libc/4259].
2838         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2839         to ENOENT if no entry is found.
2840         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2841         failure.
2842         * nis/nss_compat/compat-initgroups.c: Likewise.
2843         * nis/nss_compat/compat-pwd.c: Likewise.
2844         * nis/nss_compat/compat-spwd.c: Likewise.
2845         * nis/nss_nis/nis-alias.c: Likewise.
2846         * nis/nss_nis/nis-ethers.c: Likewise.
2847         * nis/nss_nis/nis-grp.c: Likewise.
2848         * nis/nss_nis/nis-hosts.c: Likewise.
2849         * nis/nss_nis/nis-initgroups.c: Likewise.
2850         * nis/nss_nis/nis-netgrp.c: Likewise.
2851         * nis/nss_nis/nis-network.c: Likewise.
2852         * nis/nss_nis/nis-proto.c: Likewise.
2853         * nis/nss_nis/nis-publickey.c: Likewise.
2854         * nis/nss_nis/nis-pwd.c: Likewise.
2855         * nis/nss_nis/nis-rpc.c: Likewise.
2856         * nis/nss_nis/nis-service.c: Likewise.
2857         * nis/nss_nis/nis-spwd.c: Likewise.
2858         * resolv/nss_dns/dns-host.c: Likewise.
2859         * resolv/nss_dns/dns-network.c: Likewise.
2860         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2861         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2862         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2863         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2864         * nis/nss_nisplus/nisplus-network.c: Likewise.
2865         * nis/nss_nisplus/nisplus-proto.c: Likewise.
2866         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2867         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2868         * nis/nss_nisplus/nisplus-service.c: Likewise.
2869         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2870         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2871         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2872         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2873         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2875         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2876         declaring __restore and __restore_rt as hidden (if possible).
2878 2002-08-25  Roland McGrath  <roland@redhat.com>
2880         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2882         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2883         (getutent_r_file, internal_getut_r): Updated all callers.
2884         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2886 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2888         * locale/programs/locale.c: Don't print aliases for non-existing
2889         locales for 'locale -a'.
2890         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2892 2002-07-19  H.J. Lu  <hjl@gnu.org>
2894         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2896 2002-07-16  H.J. Lu  <hjl@gnu.org>
2898         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2899         sys/personality.h.
2900         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2902 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2904         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2905         not moved ahead of the fputs call.
2906         * elf/tst-tlsmod2.c (in_dso): Likewise.
2907         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2908         * elf/tst-tlsmod4.c (in_dso): Likewise.
2910 2002-08-25  Andreas Schwab  <schwab@suse.de>
2912         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2914 2002-08-25  Roland McGrath  <roland@redhat.com>
2916         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2917         resetting handler, to avoid the possibility of a spurious SIGALRM
2918         delivered to the user's handler.
2919         Reported by Amit D. Chaudhary <amitc@brocade.com>,
2921         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
2922         set -fkeep-inline-functions, which is not needed for the current file.
2924         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2925         (_dl_setup_hash): Add attribute_hidden.
2926         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2927         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2928         (_dl_new_object, _dl_map_object_deps): Likewise.
2929         (_dl_map_object_deps_internal): Remove decl.
2930         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2932         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2933         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2934         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2935         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2936         instead relying on the compiler to produce only GOTOFF variable refs.
2938 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2940         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
2942         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2943         inline to avoid defining it in every file which includes this header.
2945         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2946         defining DONT_USE_BOOTSTRAP_MAP.
2948         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2949         * libio/tst-mmap-setvbuf.c (main): Likewise.
2950         * libio/tst-widetext.c (main): Likewise.
2952         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2953         message.
2954         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2955         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2957         * sysdeps/i386/elf/configure.in: Unconditionally define
2958         PI_STATIC_AND_HIDDEN.
2959         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2960         PI_STATIC_AND_HIDDEN is defined as well.
2961         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2963 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
2965         * sysdeps/ia64/bzero.S: Define __bzero as well.
2967         * locale/programs/charmap.c (charmap_new_char): Don't use
2968         ULONG_MAX as maximum UCS4 value.
2970         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2972         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2974         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2975         * malloc/malloc.c (mALLINFo): Likewise.
2977         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2979         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2980         examining result of _IO_do_flush call.
2982         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2983         Use prec not spec when sizing buffers.
2985         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2986         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2987         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2988         * stdio-common/vfscanf.c (inchar): Likewise.
2989         * misc/efgcvt_r.c (fcvt_r): Likewise.
2990         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2991         * elf/readlib.c (process_file): Likewise.
2992         * elf/sprof.c (load_profdata): Likewise.
2993         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2994         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2995         * locale/programs/charmap.c (charmap_read): Likewise.
2996         * libio/fileops.c: Likewise.
2997         * libio/fmemopen.c: Likewise.
2998         * stdlib/strtod.c: Likewise.
2999         * elf/dl-load.c: Likewise.
3000         * iconv/iconvconfig.c: Likewise.
3001         * iconv/iconv_prog.c (process_block): Likewise.
3002         * elf/rtld.c (dl_main): Likewise.
3004         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
3005         macro to calm down the compiler.
3007         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
3009         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
3011         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
3012         placement of errno definition.
3013         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
3014         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
3015         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
3016         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
3017         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
3019         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
3020         from 1024 to 65536, to avoid buffer overrun.
3022 2002-08-16  Paul Eggert  <eggert@twinsun.com>
3024         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
3025         from 1024 to 65536, to avoid buffer overrun.
3026         * resolv/res_query.c (MAXPACKET): Likewise.
3028 2002-08-24  Andreas Jaeger  <aj@suse.de>
3030         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
3032 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
3034         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
3035         two52 locally.
3036         (log2): Likewise.
3037         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
3038         Patch by Simon Gee <simong@agile.tv>.
3040         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
3041         Prefer reading /proc/stat since it is more uniform across
3042         architectures.
3044         * manual/texinfo.tex: Update to latest official version.
3046         * sysvipc/sys/shm.h: Remove SHMLBA definition.
3047         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
3048         * sysdeps/gnu/bits/shm.h: Likewise.
3049         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
3050         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3051         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
3052         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3053         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3054         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3055         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
3056         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
3057         since this is what the kernel says.
3059         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
3060         since ssize_t is needed as well.  Replace const with __const.
3062 2002-08-23  Roland McGrath  <roland@redhat.com>
3064         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
3065         __malloc_hook, __realloc_hook, __memalign_hook,
3066         __after_morecore_hook): Variable definitions moved to ...
3067         * malloc/malloc.c: ... here, so as to be before all references.
3069         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
3070         global variable reference in an unused asm parameter, to ensure the
3071         compiler has set up the GOT register before we use it.
3073         * malloc/hooks.c: Move variable definitions ahead of uses.
3074         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
3075         initializers that make reference to variables they define.
3077 2002-08-23  Andreas Jaeger  <aj@suse.de>
3079         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
3080         alloca, free, qsort.
3082         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
3084         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
3085         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
3087         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
3088         <hch@lst.de>.
3089         * sysdeps/generic/fgetxattr.c: New file.
3090         * sysdeps/generic/flistxattr.c: New file.
3091         * sysdeps/generic/fremovexattr.c: New file.
3092         * sysdeps/generic/fsetxattr.c: New file.
3093         * sysdeps/generic/getxattr.c: New file.
3094         * sysdeps/generic/listxattr.c: New file.
3095         * sysdeps/generic/lgetxattr.c: New file.
3096         * sysdeps/generic/llistxattr.c: New file.
3097         * sysdeps/generic/lremovexattr.c: New file.
3098         * sysdeps/generic/lsetxattr.c: New file.
3099         * sysdeps/generic/removexattr.c: New file.
3100         * sysdeps/generic/setxattr.c: New file.
3101         * misc/Makefile (headers): Add sys/xattr.h.
3102         (routines): Add *xattr calls.
3103         * misc/Versions: Add *xattr calls with version 2.3.
3104         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
3105         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3106         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3107         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
3108         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
3109         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
3110         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
3111         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3113 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
3115         * sysdeps/powerpc/elf/libc-start.c
3116         (__cache_line_size): Declare.
3117         (__aux_init_cache): New function.
3118         (__libc_start_main): Change type of `auxvec' parameter to
3119         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
3120         __aux_init_cache.
3121         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3122         (__cache_line_size): Declare.
3123         (__aux_init_cache): New function.
3124         (DL_PLATFORM_INIT): Define.
3125         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
3126         value to select the correct stride for dcbz.
3128 2002-08-22  Andreas Jaeger  <aj@suse.de>
3130         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
3131         shmat.
3133 2002-08-22  Roland McGrath  <roland@redhat.com>
3135         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
3136         position indicated by locrectab against file bounds before rounding to
3137         page size.  In mapping loop, always set TO before breaking out of
3138         contiguous range coalescing loop.
3140         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
3141         (or MAP_COPY if available) instead of MAP_SHARED.
3143         * scripts/firstversions.awk: When encountering a version newer than
3144         the specified earliest version, be sure to emit the specified earliest
3145         version first if any renaming of an older version to that has been.
3147 2002-08-21  Roland McGrath  <roland@redhat.com>
3149         * configure.in: Make GCC version check require 3.[2-9]* and no others.
3150         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
3151         (Configuring and compiling): Don't mention older GCC versions any more.
3152         * INSTALL: Regenerated.
3154         * manual/install.texi (Configuring and compiling, Installation,
3155         Running make install, Linux): Linux -> GNU/Linux where appropriate.
3157         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
3158         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
3159         and with noinline otherwise.  Remove hack alloca use to prevent
3160         inlining, we can ask for it explicitly nowadays.
3162         * dlfcn/bug-dlsym1.c: New file.
3163         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
3164         * dlfcn/Makefile (distribute): Add them.
3165         (tests): Add bug-dlsym1 here.
3166         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
3167         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
3168         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
3170 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
3172         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
3173         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
3174         before relocation.
3175         (_dl_start): Don't use local bootstrap_map variable if
3176         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
3177         pass bootstrap_map to _dl_start_final in this case either.  Don't
3178         pass start_time to _dl_start_final ever.
3179         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
3181         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
3182         This cripples the scope lists necessary to search for symbols in
3183         dependencies which are not in the global scope.
3185         * include/setjmp.h (__libc_longjmp): Add declaration.
3187 2002-08-21  Andreas Jaeger  <aj@suse.de>
3189         * sysdeps/x86_64/_mcount.S: Fix assembler.
3191         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
3192         with biarch support.
3194 2002-08-21  Andreas Jaeger  <aj@suse.de>
3196         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
3198         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
3200         * sysdeps/x86_64/machine-gmon.h: New file.
3201         * sysdeps/x86_64/_mcount.S: New file.
3203 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
3205         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
3206         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
3207         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
3208         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
3209         to TL_INIT_TP.  Otherwise pass 1.
3210         * include/link.h (struct link_map): Add l_tls_tp_initialized.
3211         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
3213 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
3215         * locale/programs/localedef.c (add_to_readlist): Error about
3216         circular dependencies only if the locale in question hasn't
3217         been finished.
3218         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
3219         CTYPE_LOCALE to load_locale.
3220         * locale/programs/locfile.c (locfile_read): Don't include
3221         unneeded but available locales in locale_mask.
3223         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
3224         print any messages about enlarging archive.
3226 2002-08-20  Brian Youmans  <3diff@gnu.org>
3228         * manual/contrib.texi: Removed licenses, added acknowledgements
3229         for contributions by Intel, IBM, Craig Metz.
3230         * LICENSES: New file, contains the text of all non-FSF licenses in the
3231         distribution that require putting the notice in the accompanying
3232         documentation.
3233         * README.template, README: Mention LICENSES.
3235         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
3236         new one modelled on the modern BSD license, per recent letter
3237         of permission from CMU.
3238         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
3240         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
3241         from IBM to FSF, per the recent Software Letter.  Changed the
3242         distribution terms from GPL to LGPL.
3244         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
3245         copying permission notice (Lesser GPL), per recent IBM Software Letter.
3246         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
3247         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
3248         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
3249         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
3250         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
3251         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
3252         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
3253         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
3255         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
3256         from IBM to FSF, per the recent Software Letter.  Corrected the
3257         text of the copying permission notice to say Lesser GPL instead
3258         of GPL in warranty disclaimer paragraph.
3259         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
3260         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
3261         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
3262         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
3263         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
3264         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
3265         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
3266         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
3267         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
3268         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
3269         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
3270         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
3271         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
3272         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
3273         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
3274         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
3275         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
3276         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
3277         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
3278         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
3279         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
3281         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
3282         permission notice to say Lesser GPL instead of GPL in warranty
3283         disclaimer paragraph.
3284         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
3285         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3286         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3287         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3288         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3289         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3290         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3291         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3292         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3293         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3294         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
3295         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
3296         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
3297         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
3298         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
3299         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
3300         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
3301         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3302         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3303         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3304         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
3305         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
3306         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
3308 2002-08-20  Roland McGrath  <roland@redhat.com>
3310         Fix ABI compatibility with libc compiled with old tools on powerpc.
3311         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3312         and Jack Howarth <howarth@bromo.med.uc.edu>.
3313         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
3314         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
3315         pass -DHAVE_DOT_HIDDEN for these files.
3316         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
3317         __floatdisf.
3318         * sysdeps/powerpc/divdi3.c: New file.
3319         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
3320         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
3322 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
3324         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
3325         partially overlapping mappings.  Remove unneeded (char *) casts.
3326         Never allow duplication of ranges in mapped areas.
3328 2002-08-20  Roland McGrath  <roland@redhat.com>
3330         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
3331         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
3333 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
3335         * include/unistd.h: Don't hide _exit.
3337         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
3338         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
3339         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
3340         argument 1 to TLS_INIT_TP.
3341         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
3343         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
3345         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
3346         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
3347         memory allocation to...
3348         (allocate_dtv): ...here.  New function.
3349         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
3350         call allocate_dtv instead of _dl_allocate_tls_storage.
3351         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
3352         (_dl_get_tls_static_info): New function.
3353         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
3354         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
3356 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
3358         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
3359         immediately if result == NULL.
3361 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
3363         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
3365 2002-08-18  Roland McGrath  <roland@frob.com>
3367         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
3368         instead of __file_name_split.
3369         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
3371         * sysdeps/mach/hurd/dl-sysdep.c
3372         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
3373         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
3375 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
3377         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
3378         in change before last: MAX -> MIN.
3380 2002-08-15  Roland McGrath  <roland@redhat.com>
3382         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
3383         if seek would go past it.
3384         (mmap_remap_check): If file position is at or past EOF after check,
3385         leave read pointers at EOF and don't seek.
3387         * libio/tst-mmap-offend.c: New file.
3388         * libio/Makefile (tests): Add it.
3390         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
3391         the name as passed, rather than the name in the archive dictionary.
3393 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
3395         * csu/Makefile: Define elide-routines.os not static-only-routines.
3397         * include/sched.h (__clone): Add varargs at the end.
3399         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
3400         case.
3401         (TLS_INIT_HELPER): If defined, use it.
3402         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
3404 2002-08-15  Roland McGrath  <roland@redhat.com>
3406         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
3407         on L->l_prev; it can happen under rtld --verify too.
3409         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
3410         header separately, just map an initial window of 2MB from the file
3411         and remap if that is not large enough to cover the whole header.
3413 2002-08-15  Andreas Jaeger  <aj@suse.de>
3415         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
3416         version 2.3.
3417         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3418         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
3419         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
3420         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
3421         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
3422         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3423         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3424         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
3425         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
3426         Patch by Andreas Gruenbacher <agruen@suse.de>.
3428         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
3430 2002-08-14  Roland McGrath  <roland@redhat.com>
3432         * locale/locarchive.h (struct locale_category_data): Give this name to
3433         the type of locale_data_t's elements.
3434         * locale/programs/locarchive.c (cmpcategorysize): New static function.
3435         (add_locale): Use that to sort the categories by size and put all
3436         those that fit into two pages into the LC_ALL block, instead of
3437         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
3438         (show_archive_content): Detect categories inside LC_ALL block
3439         directly, instead of hard-coding.
3440         (oldlocrecentcmp): Compare just on file locations used.
3442 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
3444         * locale/programs/locarchive.c (struct oldlocrecent): New type.
3445         (oldlocrecentcmp): New function.
3446         (enlarge_archive): Re-add locales in the order they were added
3447         to the archive.
3448         (add_locale): Put all the small locale files together, if the small
3449         locale file block would occupy less pages if page size aligned, align
3450         it.
3451         (show_archive_content): Adjust for locale archives optimized for speed.
3453 2002-08-14  Roland McGrath  <roland@frob.com>
3455         * configure.in: Use "MISSING" as not-found value for MIG.
3456         * sysdeps/mach/configure.in: Fatal if mig not found.
3457         * configure, sysdeps/mach/configure: Regenerated.
3459 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
3461         * locale/loadarchive.c (archfname): Add missing slash.
3463         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
3464         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
3466 2002-08-12  Roland McGrath  <roland@redhat.com>
3468         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
3469         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
3470         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
3471         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
3472         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
3473         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
3474         * sysdeps/generic/waitpid.c: Likewise.
3476         * include/net/if.h: New file.  Use libc_hidden_proto
3477         for if_nametoindex and if_indextoname.
3478         * sysdeps/generic/if_index.c: Add libc_hidden_def.
3479         * sysdeps/mach/hurd/if_index.c: Likewise.
3480         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
3482         * include/grp.h (setgroups): Add libc_hidden_proto.
3483         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
3484         * sysdeps/mach/hurd/setgroups.c: Likewise.
3485         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
3486         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3488 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
3490         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
3491         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
3492         * sysdeps/generic/setegid.c (setegid): Likewise.
3493         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
3494         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
3495         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
3496         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
3497         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
3498         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
3499         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
3500         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
3501         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
3502         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
3503         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
3504         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
3505         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
3507         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
3508         __lxstat_internal, __lxstat64_internal): Remove.
3509         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
3510         Add hidden_proto.
3511         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
3512         Remove INTDEF where present, remove #undef at the beginning.
3513         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
3514         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
3515         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
3516         * sysdeps/generic/xstat.c (__xstat): Likewise.
3517         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
3518         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
3519         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
3520         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
3521         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
3522         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
3523         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
3524         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
3525         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
3526         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
3527         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
3528         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
3529         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
3530         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
3531         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
3532         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
3533         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
3534         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
3535         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
3536         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
3537         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
3538         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
3539         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
3540         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3541         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3542         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3543         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
3544         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
3545         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
3546         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3547         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
3548         * sysdeps/unix/xstat.c (__xstat): Likewise.
3550         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
3551         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
3552         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
3553         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
3554         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
3555         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
3556         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
3558         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
3559         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
3560         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
3561         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
3562         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
3563         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
3564         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
3565         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
3566         Likewise.
3567         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
3568         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
3569         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
3570         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
3571         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
3572         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
3573         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
3574         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
3576         * include/string.h (strcoll): Add libc_hidden_proto.
3577         * string/strcoll.c (strcoll): Add libc_hidden_def.
3579         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
3581 2002-08-11  Philip Blundell  <philb@gnu.org>
3583         * sysdeps/arm/Makefile: New file.
3585 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3587         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
3588         by another '|', end of regex or enclosing ')', clear branch.
3589         * posix/bug-regex9.c: New test.
3590         * posix/Makefile (tests): Add bug-regex9.
3592 2002-08-12  Roland McGrath  <roland@redhat.com>
3594         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
3595         start count condition, use TOTAL instead of variable that was never
3596         set.  Fix outer loop termination condition to TOTAL >= after update.
3598         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
3599         dl_tls_static_align and dl_tls_static_nelem.
3601 2002-08-11  Roland McGrath  <roland@redhat.com>
3603         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
3604         of the TLS macros, otherwise the compiler might not have initialized
3605         the PIC register yet when we use the PLT via asm.
3606         * elf/tst-tlsmod3.c (in_dso2): Likewise.
3607         * elf/tst-tlsmod2.c (in_dso): Likewise.
3609         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
3611         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
3612         Evaluate argument exactly once.  Remove __volatile__ from asm's.
3614         * include/unistd.h: Use libc_hidden_proto for getdomainname
3615         and getlogin_r.
3616         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
3617         * sysdeps/mach/hurd/getdomain.c: Likewise.
3618         * sysdeps/unix/getlogin_r.c: Likewise.
3619         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
3620         * sysdeps/generic/getlogin_r.c: Likewise.
3622         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
3623         * sunrpc/rtime.c: Add libc_hidden_def.
3625         * include/string.h: Use libc_hidden_proto for basename.
3626         * string/basename.c [_LIBC]: Add libc_hidden_def.
3628         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
3630         * locale/loadarchive.c: munmap -> __munmap throughout.
3632         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
3633         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
3634         * sysdeps/generic/gai_strerror.c: Likewise.
3636         * include/sys/errno.h: New file.
3638         * include/signal.h: No libc_hidden_proto for raise,
3639         __libc_current_sigrtmin, __libc_current_sigrtmax.
3640         These need to be overridden by linuxthreads.
3641         * sysdeps/posix/raise.c: Reverted.
3642         * sysdeps/generic/raise.c: Reverted.
3643         * signal/allocrtsig.c: Reverted.
3645         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
3647 2002-08-10  Roland McGrath  <roland@redhat.com>
3649         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
3650         * locale/localeinfo.h: Declare it.
3651         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
3652         current locale if it's not in the file list.
3653         Call _nl_archive_subfreeres.
3655 2002-08-10  Andreas Jaeger  <aj@suse.de>
3657         * sysdeps/i386/strchr.S: Add comment.
3659 2002-08-10  Roland McGrath  <roland@redhat.com>
3661         * include/wchar.h (putwc): Use libc_hidden_proto.
3662         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
3663         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
3664         * stdio-common/dprintf.c: Add libc_hidden_def.
3665         * stdio-common/fprintf.c: Likewise.
3666         * stdio-common/sprintf.c: Likewise.
3667         * stdio-common/sscanf.c: Likewise.
3668         * libio/iofwrite.c: Likewise.
3669         * libio/memstream.c: Likewise.
3670         * libio/putwc.c: Likewise.
3671         * stdio-common/perror.c: Likewise.
3672         * sysdeps/posix/remove.c: Likewise.
3673         * sysdeps/generic/remove.c: Likewise.
3674         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
3675         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
3677 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
3679         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3680         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
3681         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3682         towlower, towupper): Add libc_hidden_weak.
3684         * include/bits/dlfcn.h: New file.
3685         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
3687         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
3688         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
3689         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
3690         * include/pwd.h (_nss_files_parse_pwent): Likewise.
3691         * include/shadow.h (_nss_files_parse_spent): Likewise.
3692         * include/netdb.h (_nss_files_parse_protoent,
3693         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
3694         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
3695         (LINE_PARSER): Use it.
3696         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
3697         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
3699         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
3700         #endif.
3702         * manual/debug.texi (%MENU%): Remove trailing dot.
3703         Reported by <hayastan132@hotmail.com>.
3705         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
3706         aliases.
3707         (lseek): Dummy.
3708         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
3709         Likewise.
3711 2002-08-09  Roland McGrath  <roland@redhat.com>
3713         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
3714         name to find codeset name (if any) and normalize it.  If the
3715         normalized name differs, look up only that in the archive.
3716         * locale/programs/locarchive.c (add_locale_to_archive): If the name
3717         contains a codeset, normalize the codeset store only the normalized
3718         name in the archive.  If not, add an alias containing the locale's
3719         normalized codeset name.  Apply codeset name normalization when
3720         matching entries in the alias file.
3722         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3723         decrement HEAD->namehash_used here.
3724         (add_locale): Only need to insert name string when name_offset != 0.
3726         * locale/programs/localedef.c (options): Add -A/--alias-file.
3727         (alias_file): New variable.
3728         (parse_opt): Grok -A, set that.
3729         * locale/programs/localedef.h: Declare it.
3731         * locale/locarchive.h (struct locrecent): Add `refs' member.
3732         * locale/programs/locarchive.c (insert_name): New function, broken out
3733         of ...
3734         (add_locale_to_archive): ... here.  Call that.
3735         (add_alias): New function.
3736         (add_locale): New static function, add_locale_to_archive renamed.
3737         (add_locale_to_archive): Call that and use add_alias to add an alias
3738         for the name with codeset if the given name lacks it.
3739         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3741         * locale/Makefile (routines): Add loadarchive.
3742         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3743         (_nl_load_locale_from_archive): New function.
3744         * locale/localeinfo.h: Declare it.
3745         * locale/findlocale.c (_nl_find_locale): If using default locale path,
3746         try _nl_load_locale_from_archive first.
3748         * locale/loadlocale.c (_nl_intern_locale_data): New function,
3749         broken out of _nl_load_locale.
3750         (_nl_load_locale): Call that.
3751         * locale/localeinfo.h: Declare it.
3752         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3753         (struct locale_data): Remove unused member `options'.
3754         * locale/findlocale.c (_nl_remove_locale): Update uses.
3755         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3756         * locale/C-collate.c: Update initializer.
3757         * locale/C-identification.c: Likewise.
3758         * locale/C-measurement.c: Likewise.
3759         * locale/C-telephone.c: Likewise.
3760         * locale/C-address.c: Likewise.
3761         * locale/C-name.c: Likewise.
3762         * locale/C-paper.c: Likewise.
3763         * locale/C-time.c: Likewise.
3764         * locale/C-numeric.c: Likewise.
3765         * locale/C-monetary.c: Likewise.
3766         * locale/C-messages.c : Likewise.
3767         * locale/C-ctype.c: Likewise.
3769         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3770         use CHAR_BIT instead of BITSPERBYTE.
3772         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3773         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3774         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3775         (_nl_remove_locale): Likewise.
3776         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3778         * locale/findlocale.c (_nl_default_locale_path): New variable.
3779         (_nl_find_locale): If LOCALE_PATH is null, default to that.
3780         * locale/localeinfo.h: Declare it.
3781         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3782         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
3783         * locale/newlocale.c (__newlocale): Likewise.
3785         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3786         * inet/rexec.c (rexec_af): Add libc_hidden_def.
3787         * sysdeps/generic/morecore.c: Likewise.
3788         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3789         (__libc_current_sigrtmax): Likewise.
3791 2002-08-08  Roland McGrath  <roland@redhat.com>
3793         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3794         * catgets/open_catalog.c (__open_catalog): Likewise.
3796         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3797         from typo INITIAL_NUM_NANES.
3798         (create_archive): Update use.
3800 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3802         * sysdeps/unix/sysv/linux/sigwait.c: New file.
3804 2002-08-08  Roland McGrath  <roland@frob.com>
3806         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3808 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3810         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3811         else and undefine after including wcstol_l.c.
3812         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3814 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3816         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3818 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
3820         * configure.in: Make the test for broken_alias_attribute stricter.
3822 2002-05-24  Robert Love  <rml@tech9.net>
3824         * posix/Makefile (routines): Add sched_getaffinity and
3825         sched_setaffinity.
3826         * posix/sched.h: Add declarations for sched_getaffinity and
3827         sched_setaffinity.
3828         * sysdeps/generic/sched_getaffinity.c: New file.
3829         * sysdeps/generic/sched_setaffinity.c: New file.
3830         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3831         sched_setaffinity.
3833 2002-08-06  Andreas Schwab  <schwab@suse.de>
3835         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3837 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3839         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3840         message.
3842         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3843         It is known to be defined.
3845         * include/string.h: Define index and rindex only if _ISOMAC is not
3846         defined.
3848         * elf/rtld.c: Include <errno.h>.
3849         * sysdeps/generic/libc-tls.c: Likewise.
3851 2002-08-07  Roland McGrath  <roland@redhat.com>
3853         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3854         it internally.
3855         (precsize_aton): Likewise.
3857         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3858         the static symbols added in the last change (doofus is me).
3860         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3861         loop to notice missing categories in a composite name.
3863         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3864         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3865         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3866         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3868 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3870         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3872 2002-08-07  Roland McGrath  <roland@redhat.com>
3874         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3875         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3876         Reported by Jakub Jelinek  <jakub@redhat.com>.
3878 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
3880         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3881         division.
3883 2002-08-06  Roland McGrath  <roland@redhat.com>
3885         * include/getopt.h: Put private decls inside [_GETOPT_H].
3886         Use libc_hidden_proto for getopt_long, getopt_long_only.
3887         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3888         Add libc_hidden_def.
3890         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3891         Define as a macro for __dl_iterate_phdr.
3893         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3894         made static.  Add __ name as a strong alias.
3895         (internal_endnetgrent): Likewise.
3896         (internal_getnetgrent_r): Likewise.
3898         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3899         with no __ prefix.
3900         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3901         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3902         all *_l functions with no __ prefix.
3903         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3904         * ctype/ctype_l.c: Likewise.
3905         * locale/nl_langinfo.c: Likewise.
3906         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3907         * stdlib/stdlib.h [__USE_GNU]: Likewise.
3908         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3909         * wctype/wctype.h [__USE_GNU]: Likewise.
3910         * string/strcoll_l.c (strcoll_l): Define as weak alias.
3911         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3912         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3913         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3914         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3915         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3916         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3917         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3918         (__wcscasecmp_l): Add libc_hidden_def.
3919         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3920         (__wcsncasecmp_l): Add libc_hidden_def.
3921         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3922         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3923         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3924         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3925         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3926         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3927         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3928         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3929         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3930         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3931         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3932         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3933         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3934         * wctype/wctype_l.c (wctype_l) Define as weak alias.
3936 2002-08-05  Roland McGrath  <roland@redhat.com>
3938         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3939         netname2user, host2netname, user2netname, key_gendes.
3940         * sunrpc/netname.c: Add libc_hidden_def.
3941         * sunrpc/key_call.c: Likewise.
3943         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3944         freeaddrinfo.
3945         * inet/getnameinfo.c: Add libc_hidden_def.
3946         * sysdeps/generic/getaddrinfo.c: Likewise.
3947         * sysdeps/posix/getaddrinfo.c: Likewise.
3949         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3950         * wcsmbs/wmemchr.c: Add libc_hidden_def.
3951         * wcsmbs/wmemset.c: Add libc_hidden_def.
3953         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3954         (index, rindex): Define as macros for strchr, strrchr.
3956         * string/envz.c (envz_strip): index -> strchr
3958         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3959         * sunrpc/rpc_prot.c: Add libc_hidden_def.
3961         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3962         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3964         * include/stdlib.h: Use libc_hidden_proto for wctomb.
3965         * stdlib/wctomb.c: Add libc_hidden_def.
3967         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3968         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3969         * resolv/herror.c: Likewise.
3970         * inet/rcmd.c: Add libc_hidden_def.
3971         * inet/ruserpass.c: Likewise.
3972         * inet/getnetgrent_r.c: Likewise.
3974         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3975         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
3976         for svcerr_auth, svcerr_noprog, svcerr_progvers.
3977         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3978         libc_hidden_def.
3979         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3980         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3982         * sysdeps/posix/system.c (do_system): New function, guts broken out of
3983         __libc_system.
3984         (__libc_system): Call it, putting just the line == NULL test here.
3986         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3987         variables work right.
3989         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3990         * elf/dl-close.c (_dl_close): Likewise.
3992         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3993         in6addr_any, in6addr_loopback.  Remove decls for
3994         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3995         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3996         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3997         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3998         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3999         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
4000         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
4001         in6addr_loopback.
4002         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
4004         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
4005         ether_aton_r.
4006         * inet/ether_aton_r.c: Add libc_hidden_def.
4007         * inet/ether_ntoa_r.c: Likewise.
4009         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
4010         xprt_unregister.
4011         * sunrpc/svc.c: Add libc_hidden_def.
4012         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
4013         pmap_set, pmap_unset.
4014         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
4015         * sunrpc/pm_getport.c: Likewise.
4016         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
4017         * sunrpc/publickey.c: Add libc_hidden_def.
4019 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
4021         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
4022         the other memset call in this function.
4024         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
4025         at correct index.  Clear BSS region now that memalign is used.
4027 2002-08-05  Roland McGrath  <roland@redhat.com>
4029         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
4030         * sysdeps/generic/uname.c: Add libc_hidden_def.
4031         * sysdeps/mach/hurd/uname.c: Likewise.
4033 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
4035         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
4036         wcspbrk): Add libc_hidden_proto.
4037         * time/strftime.c (my_strftime): Add libc_hidden_def.
4038         (strftime): Remove libc_hidden_def.
4039         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
4040         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
4041         * wcsmbs/wcsspn.c (wcsspn): Likewise.
4042         * wcsmbs/wcscmp.c (wcscmp): Likewise.
4043         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
4044         * wcsmbs/wcscoll.c (wcscoll): Likewise.
4046         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
4047         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
4048         __rpc_thread_createerr): Add libc_hidden_proto.
4049         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
4050         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
4051         __rpc_thread_createerr): Add libc_hidden_def.
4053         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
4054         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
4055         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
4056         clnt_perror, clnt_sperror): Add libc_hidden_def.
4057         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
4059         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
4060         libc_hidden_proto.
4061         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
4062         * sunrpc/des_soft.c (des_setparity): Likewise.
4064         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
4065         Add libc_hidden_proto.
4066         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
4067         Add libc_hidden_def.
4069 2002-08-05  Roland McGrath  <roland@redhat.com>
4071         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
4072         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
4073         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
4074         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
4075         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
4076         old data, abandoning the original memory allocated by rtld at startup,
4077         instead of calling realloc normally.
4079 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
4081         * po/fr.po: Update from translation team.
4083 2002-08-04  Roland McGrath  <roland@redhat.com>
4085         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
4086         then generate a dummy module under the given name, obeying the
4087         normal rules for the "caller" field.
4089         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
4090         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
4092         * include/pthread.h: Don't declare __pthread_initialize_minimal as
4093         weak here; we declare it weak or strong in the one place we use it.
4094         * sysdeps/generic/libc-start.c: ... which is here.
4095         Don't make the decl weak if [USE_TLS], since static programs need TLS
4096         setup even when single-threaded.
4098         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
4100         * elf/Makefile (test-srcs): Add $(modules-names) to it.
4101         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
4102         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
4103         all these variables.
4105 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
4107         * include/stdio.h: Don't define macro magic to redirect function
4108         calls if _ISOMAC is defined.
4110         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
4111         ldouble asin tests.
4113 2002-08-04  Roland McGrath  <roland@redhat.com>
4115         * stdlib/lrand48_r.c: Add libc_hidden_def.
4117         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
4118         TCB with __libc_memalign instead of mmap.
4119         (_dl_deallocate_tls): Free it with free instead of munmap.
4121         * Makerules (cpp-srcs-left): When setting this to run
4122         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
4123         words.  Combine the two loops into one on the concatenated list,
4124         including those as well as $(test-srcs).
4126         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
4127         since we align here with optimally minimal waste anyway.
4128         (malloc): Just call that.
4130         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
4131         the right variable.
4133         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
4134         to compute memory location for l_tls_initimage.
4135         * elf/rtld.c (_dl_start): Likewise.
4136         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
4138         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
4139         because the .d file is generated in the non-shared case and
4140         so fails to catch them otherwise.
4142         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
4143         split out of _dl_allocate_tls.
4144         (_dl_allocate_tls_init): Likewise.
4145         (_dl_allocate_tls): Call those.
4146         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
4147         * elf/rtld.c (dl_main): Call them separately instead of calling
4148         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
4149         is finished, so that the initializer data has been relocated before we
4150         copy it into the main thread's TLS block.
4152         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
4153         loop conditions, prevented the last used module from being initialized.
4155 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
4157         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
4158         if glob resp. globfree are not macros.
4159         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
4160         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
4161         Add libc_hidden_ver.
4162         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
4163         libc_hidden_def.
4164         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
4165         instead of libc_hidden_weak.
4166         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
4167         libc_hidden_ver instead of libc_hidden_def.
4168         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
4169         libc_hidden_ver instead of libc_hidden_def.
4170         (wcstoll, wcstoq): Remove libc_hidden_weak.
4171         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
4172         libc_hidden_ver.
4173         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
4174         libc_hidden_ver.
4175         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
4176         libc_hidden_ver.
4177         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
4178         libc_hidden_ver.
4180 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
4182         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
4183         to access _sys_siglist.
4184         * string/strsignal.c: Likewise.
4185         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
4186         * sysdeps/gnu/siglist.c: Likewise.
4187         * sysdeps/unix/siglist.c: Likewise.
4188         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
4190         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
4192         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
4194         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
4195         alias and use it.
4196         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
4198         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
4199         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
4200         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
4202         * include/time.h: Add libc_hidden_proto for __gmtime_r.
4203         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
4205         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
4206         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
4207         and __gconv_get_cache respectively.
4208         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
4209         defined static.  Change all users.
4210         (__gconv_get_cache): New function.
4211         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
4212         (__gconv_get_alias_db): New function.
4213         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
4214         (__conv_modules_db): Likewise.
4215         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
4216         and __gconv_get_alias_db.
4217         * iconv/iconv_prog.c: Use the new functions instead of accessing the
4218         variables.
4220         * include/stdlib.h: Add prototype and libc_hidden_proto for
4221         __default_morecore.
4222         * sysdeps/generic/morecore.c: Include <stdlib.h>.
4224         * malloc/obstack.c: Remove fputs macro.
4226         * malloc/mtrace.c: Remove fopen macro.
4228 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
4230         * manual/debug.texi: Fix spelling to programmatically.
4231         Reported by <hayastan132@hotmail.com>.
4233 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
4235         * include/libio.h: Add libc_hidden_proto for __uflow.
4236         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
4237         fgetpos to _IO_* names.
4238         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
4239         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
4240         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
4241         putwc_unlocked, vswscanf.
4242         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
4243         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
4244         * libio/fseek.c: Likewise.
4245         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
4246         not fopencookie.
4247         * libio/genops.c (__uflow): Add libc_hidden_def.
4248         * libio/iofflush_u.c (fflush_unlocked): Likewise.
4249         * libio/iofgets_u.c (fgets_unlocked): Likewise.
4250         * libio/iofputs_u.c (fputs_unlocked): Likewise.
4251         * libio/iofputws_u.c (fputws_unlocked): Likewise.
4252         * libio/iofread_u.c (fread_unlocked): Likewise.
4253         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
4254         * libio/iovswscanf.c (vswscanf): Likewise.
4255         * libio/putwc_u.c (putwc_unlocked): Likewise.
4256         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
4257         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
4258         * malloc/mtrace.c: Likewise.
4260         * sunrpc/clnt_perr.c: Remove fputs macro.
4261         * sunrpc/svc_simple.c: Likewise.
4262         * sunrpc/svc_tcp.c: Likewise.
4263         * sunrpc/svc_udp.c: Likewise.
4264         * sunrpc/xdr_rec.c: Likewise.
4265         * sunrpc/xdr_ref.c: Likewise.
4267         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
4268         iconv_prog, linereader, and charmap-dir.
4269         * locale/Makefile: Likewise for locale and charmap-dir.
4270         * malloc/Makefile: Likewise for memusagestat.
4271         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
4272         * sunrpc/Makefile: Likewise for rpc_main.
4273         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
4274         * timezone/Makefile: Likewise for zic.
4276         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
4278         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
4279         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
4280         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
4281         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
4282         _dl_close.
4284         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
4285         __wunderflow.
4286         * libio/genops.c (__underflow): Add libc_hidden_def.
4287         * libio/wgenops.c (__wuflow): Likewise.
4288         (__wunderflow): Likewise.
4290         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
4291         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
4293         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
4294         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
4296         * include/string.h: Add libc_hidden_proto for __strverscmp.
4297         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
4299         * include/unistd.h: Add libc_hidden_proto for __sysconf.
4300         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
4301         * sysdeps/posix/sysconf.c: Likewise.
4302         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
4303         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
4305         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
4306         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
4307         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
4308         __iswxdigit_l, __towlower_l, __towupper_l.
4309         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
4310         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
4312         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
4313         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
4314         * sysdeps/mach/hurd/xmknod.c: Likewise.
4315         * sysdeps/unix/xmknod.c: Likewise.
4316         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4317         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
4318         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4320         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
4322 2002-08-03  Roland McGrath  <roland@redhat.com>
4324         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
4325         setpriority.
4326         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
4327         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
4328         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
4329         * sysdeps/mach/hurd/setpriority.c: Likewise.
4330         * sysdeps/mach/hurd/getpriority.c: Likewise.
4331         * sysdeps/generic/setpriority.c: Likewise.
4332         * sysdeps/generic/getpriority.c: Likewise.
4334         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
4335         * malloc/mcheck.c: Add libc_hidden_def.
4337         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
4338         * misc/hsearch_r.c: Add libc_hidden_def.
4340         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
4341         * posix/fnmatch.c: Add libc_hidden_weak.
4343         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
4344         execl, execle, execlp, execvp, getpid, getsid.
4345         * sysdeps/generic/alarm.c: Add libc_hidden_def.
4346         * sysdeps/unix/alarm.c: Likewise.
4347         * posix/confstr.c: Likewise.
4348         * posix/execvp.c: Likewise.
4349         * posix/execlp.c: Likewise.
4350         * posix/execle.c: Likewise.
4351         * posix/execl.c: Likewise.
4352         * sysdeps/generic/getsid.c: Likewise.
4353         * sysdeps/mach/hurd/getsid.c: Likewise.
4354         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
4355         * sysdeps/mach/hurd/getpid.c: Likewise.
4357         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
4358         qecvt_r, qfcvt_r, lrand48_r.
4359         * misc/efgcvt_r.c: Add libc_hidden_def.
4361         * include/wordexp.h: Use libc_hidden_proto for wordfree.
4362         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
4364         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
4365         * locale/nl_langinfo.c: Add libc_hidden_def.
4367         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
4368         * sysdeps/generic/glob.c: Add libc_hidden_def.
4369         * sysdeps/generic/glob64.c: Likewise.
4370         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
4372         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
4374         * elf/Makefile (CFLAGS-vismod2.c): New variable.
4376         * locale/setlocale.c (_nl_current_names): Variable moved ...
4377         * locale/localename.c (_nl_current_names): ... here, new file.
4378         Make it global, with attribute_hidden.
4379         * locale/localeinfo.h: Declare it.
4380         * locale/Makefile (aux): Add localename.
4381         * locale/localename.c (__current_locale_name): New function.
4382         * include/locale.h (__current_locale_name): Declare it.
4383         * intl/dcigettext.c (guess_category_value): Use that instead of
4384         calling setlocale.
4386         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
4387         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
4388         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
4389         * locale/newlocale.c: Add alias to __ name.
4390         * locale/duplocale.c: Likewise.
4391         * locale/freelocale.c: Likewise.
4392         * locale/uselocale.c: New file.
4393         * locale/Makefile (routines): Add it.
4394         * locale/Versions (libc: GLIBC_2.3): New set.
4395         Add newlocale, duplocale, freelocale, uselocale.
4396         (libc: GLIBC_PRIVATE): Add __uselocale.
4398         * locale/localeinfo.h [SHARED]
4399         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
4400         (_NL_CURRENT_DATA): Define using that.
4401         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
4402         (_NL_CURRENT_DEFINE): Define to empty.
4403         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
4404         conditionalized on this.
4405         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
4406         taking initializer of _nl_C_locobj.
4407         [SHARED] (_nl_global_locale): New variable, using that initializer.
4408         (_nl_C_locobj): Use new macro for initialzier.
4409         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
4410         [! SHARED] (CATEGORY_USED): New macro.
4411         [SHARED] (CATEGORY_USED, _nl_C): New macros.
4412         (setdata, setlocale): Use that macro instead of examining _nl_current.
4413         (setdata): Set the slot in _nl_global_locale.
4414         Conditionalize setting of _nl_current on [! SHARED].
4415         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
4416         declaration as an extern.
4417         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
4419         * include/locale.h: Use libc_hidden_proto for setlocale.
4420         * locale/setlocale.c: Add libc_hidden_def.
4422         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
4424         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
4425         * misc/hsearch_r.c: Add libc_hidden_def.
4426         * misc/lsearch.c: Likewise.
4428         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
4429         endttyent.
4430         * misc/getttyent.c: Add libc_hidden_def.
4432         * include/mcheck.h: Use libc_hidden_proto for mcheck.
4433         * malloc/mcheck.c: Add libc_hidden_def.
4435         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
4436         * include/argz.h: Use libc_hidden_proto for argz_delete.
4437         * string/argz-delete.c: Add libc_hidden_def.
4438         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
4440         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
4441         HIDDEN_JUMPTARGET for _exit.
4442         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
4443         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
4444         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
4445         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
4447         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
4448         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
4449         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
4450         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
4452         * include/stdlib.h: Use libc_hidden_proto for abort,
4453         __strtof_internal, __strtod_internal, __strtold_internal,
4454         __strtol_internal, __strtoll_internal, __strtoul_internal,
4455         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
4456         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
4457         __strtoul_l_internal, __strtoull_l_internal.
4458         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
4459         __wcstod_internal, __wcstold_internal, __wcstol_internal,
4460         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
4461         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
4462         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
4463         __wcsncasecmp_l.
4464         * sysdeps/generic/abort.c: Add libc_hidden_def.
4465         * stdlib/strtod.c: Likewise.
4466         * sysdeps/generic/strtol.c: Likewise.
4467         * sysdeps/wordsize-64/strtol.c: Likewise.
4468         * sysdeps/wordsize-64/wcstol.c: Likewise.
4469         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
4471         * include/stdlib.h: Use libc_hidden_proto for qsort.
4472         * stdlib/msort.c: Add libc_hidden_def.
4474         * include/utime.h: Use libc_hidden_proto for utime.
4475         * sysdeps/generic/utime.c: Add libc_hidden_def.
4476         * sysdeps/unix/utime.c: Likewise.
4478         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
4479         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
4480         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
4481         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
4482         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
4484         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
4485         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
4486         and __libc_current_sigrtmax.
4487         * signal/sigismem.c: Add libc_hidden_def.
4488         * signal/sigfillset.c: Likewise.
4489         * signal/sigempty.c: Likewise.
4490         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
4491         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
4492         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
4493         * sysdeps/posix/raise.c: Likewise.
4494         * sysdeps/generic/raise.c: Likewise.
4496 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
4498         * include/string.h: Use libc_hidden_proto for __stpcpy.
4499         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
4500         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
4501         * sysdeps/generic/stpcpy.c: Likewise.
4502         * sysdeps/i386/stpcpy.S: Likewise.
4503         * sysdeps/i386/i586/stpcpy.S: Likewise.
4504         * sysdeps/powerpc/stpcpy.S: Likewise.
4505         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
4506         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
4508         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
4509         __strncasecmp_l, __strdup, __strndup, __strerror_r.
4510         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
4511         libc_hidden_def.
4512         * string/strdup.c (__strdup): Likewise.
4513         * string/strndup.c (__strndup): Likewise.
4514         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
4515         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
4517 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4519         * include/libio.h: New file.
4520         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
4521         * libio/iolibio.h: #include <libio.h>, not "libio.h".
4522         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
4523         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
4524         * sysdeps/unix/common/syscalls.list: Likewise.
4525         * sysdeps/unix/inet/syscalls.list: Likewise.
4526         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
4527         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
4528         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4529         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4530         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4531         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4532         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4533         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4534         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4535         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
4536         * sysdeps/unix/syscalls.list: Likewise.
4538 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4539             Ulrich Drepper  <drepper@redhat.com>
4541         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
4542         the arguments is big enough to cause an overflow.
4544 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
4546         * assert/assert.c: Use hidden_def not INTDEF.
4548 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4550         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
4551         not defined.
4553 2002-08-03  Roland McGrath  <roland@redhat.com>
4555         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
4556         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
4557         verr, verrx.
4558         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
4559         * misc/syslog.c: Add libc_hidden_def.
4560         * misc/err.c: Likewise.
4561         * stdlib/exit.c: Likewise.
4562         * stdlib/bsearch.c: Likewise.
4563         * sysdeps/generic/getenv.c: Likewise.
4565         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
4567         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
4568         libc_hidden_weak for every system call symbol defined.
4570         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
4571         timelocal, localtime, strftime.
4572         * time/asctime.c: Add libc_hidden_def.
4573         * time/mktime.c: Likewise.
4574         * time/localtime.c: Likewise.
4575         * time/strftime.c: Likewise.
4576         * time/strptime.c: Likewise.
4577         * sysdeps/generic/time.c: Likewise.
4578         * sysdeps/unix/time.c: Likewise.
4579         * sysdeps/unix/sysv/i386/time.S: Likewise.
4580         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
4582         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
4583         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
4584         * resolv/inet_ntop.c: Likewise.
4585         * resolv/inet_pton.c: Likewise.
4586         * inet/inet_mkadr.c: Add libc_hidden_def.
4587         * inet/inet_netof.c: Likewise.
4588         * resolv/inet_addr.c: Likewise.
4590         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
4591         clauses from conditionals for now.  Will have to be fixed later
4592         for older compilers.
4594         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
4596 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4598         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
4599         broken alias attribute handling.
4600         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
4602 2002-08-02  Roland McGrath  <roland@frob.com>
4604         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
4605         since it sets the variables we use in a -D switch.
4607 2002-08-02  Roland McGrath  <roland@redhat.com>
4609         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
4610         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
4611         matches long int, not int.
4613         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
4614         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
4615         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4616         * wctype/wctrans.c (wctrans): Likewise.
4617         * wctype/wctype.c (__wctype): Likewise.
4618         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
4620 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4622         * assert/assert.c (__assert_fail): Fix typo in comment.
4624         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
4625         * sunrpc/rpc_thread.c: Define it without static.
4626         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
4628 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4630         * assert/assert.c (__assert_fail): Remove undef.
4631         Replace INTDEF with libc_hidden_def.
4632         * assert/__assert.c (__assert): Remove INTUSE.
4633         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
4634         libc_hidden_weak.
4635         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
4636         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
4637         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
4638         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
4639         libm_hiden_ver): Define.
4640         * include/assert.h (__assert_fail_internal): Remove.
4641         (__assert_fail): Add prototype.  Add hidden_proto.
4642         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
4643         libc_hidden_proto.
4644         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
4645         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
4646         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
4647         Add libc_hidden_proto.
4648         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
4649         __fcntl): Add libc_hidden_proto.  Remove macros.
4650         (__open_internal, __fcntl_internal): Remove.
4651         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
4652         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
4653         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
4654         libc_hiden_proto.
4655         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
4656         libc_hidden_def.
4657         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
4658         Add libc_hidden_def.
4659         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
4660         * sysdeps/generic/open.c (__open): Remove undef.
4661         Add libc_hidden_def.  Remove INTDEF.
4662         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
4663         Add libc_hidden_def.
4664         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
4665         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
4666         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
4667         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4668         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4669         (__libc_fcntl): Add libc_hidden_def.
4670         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
4671         (__open): Remove INTDEF2.  Add libc_hidden_weak.
4672         (__libc_open): Add libc_hidden_def.
4673         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
4674         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
4675         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4676         Add libc_hidden_def.
4677         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
4678         Add libc_hidden_def.
4679         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
4680         undef.
4681         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4682         (__libc_fcntl): Add libc_hidden_def.
4683         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
4684         __getpgid_internal, __chown_internal): Remove.
4685         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
4686         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
4687         __GI___chown): Add.
4688         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
4689         __getpid_internal, __open_internal, __write_internal): Remove.
4690         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
4691         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
4692         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
4693         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
4694         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
4695         Replace INTDEF with libc_hidden_def.
4696         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
4697         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
4698         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
4699         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
4700         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
4701         Add libc_hidden_proto.
4702         * include/sys/poll.h (__poll): Add libc_hidden_proto.
4703         * include/sys/select.h (__select): Likewise.
4704         * include/sys/socket.h (__send): Likewise.
4705         * include/sys/statfs.h (__statfs): Likewise.
4706         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
4707         __getpid, __getpgid, __setpgid, __close, __read, __write,
4708         __getpagesize, __sbrk): Likewise.
4709         (__chown_internal, __dup2_internal, __getpid_internal,
4710         __getpgid_internal, __close_internal, __write_internal,
4711         __getpagesize_internal): Remove.
4712         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
4713         Remove macros.
4714         * include/printf.h (__printf_fp): Add libc_hidden_proto.
4715         * include/sched.h (__sched_setscheduler): Likewise.
4716         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
4717         * include/stdlib.h (__secure_getenv): Likewise.
4718         * include/signal.h (__sigaction, __sigsuspend): Likewise.
4719         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4720         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4721         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4722         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4723         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4724         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4725         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4726         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4727         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4728         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4729         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4730         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4731         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4732         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4733         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4734         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4735         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4736         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4737         * libio/genops.c (__overflow): Add libc_hidden_def.
4738         * libio/iovdprintf.c: Remove libio.h include.
4739         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4740         libc_hidden_weak): Define to nothing if not defined.
4741         (__overflow, __woverflow): Add libc_hidden_proto.
4742         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4743         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4744         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4745         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4746         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4747         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4748         and libc_hidden_def.
4749         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4750         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4751         (__getpgid): Add libc_hidden_proto.
4752         (__bsd_getpgrp): Remove INTUSE.
4753         * resolv/res_init.c (__res_ninit, __res_randomid): Add
4754         libc_hidden_def.
4755         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4756         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4757         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4758         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4759         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4760         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4761         __rpc_thread_createerr): Add libc_hidden_def.
4762         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4763         libc_hidden_def.
4764         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4765         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4766         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4767         * sysdeps/generic/chown.c (__chown): Likewise.
4768         * sysdeps/generic/close.c (__close): Likewise.
4769         * sysdeps/generic/dup2.c (__dup2): Likewise.
4770         * sysdeps/generic/pipe.c (__pipe): Likewise.
4771         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4772         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4773         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4774         * sysdeps/generic/read.c (__libc_read): Likewise.
4775         (__read): Add libc_hidden_weak.
4776         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4777         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4778         * sysdeps/generic/select.c (__select): Likewise.
4779         * sysdeps/generic/send.c (__send): Likewise.
4780         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4781         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4782         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4783         * sysdeps/generic/statfs.c (__statfs): Likewise.
4784         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4785         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4786         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4787         Remove undef and INTDEF.
4788         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4789         * sysdeps/generic/getpid.c (__getpid): Likewise.
4790         * sysdeps/generic/write.c (__libc_write): Likewise.
4791         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4792         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4793         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4794         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4795         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
4796         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4797         Remove undef and INTDEF.
4798         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4799         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4800         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4801         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4802         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4803         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4804         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4805         (__pipe): Add libc_hidden_def.
4806         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4807         libc_hidden_weak.
4808         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4809         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4810         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4811         (__read): Add libc_hidden_weak.
4812         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4813         (__libc_pwrite64): Add libc_hidden_def.
4814         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4815         * sysdeps/mach/hurd/select.c (__select): Likewise.
4816         * sysdeps/mach/hurd/send.c (__send): Likewise.
4817         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4818         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4819         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4820         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4821         * sysdeps/posix/dup2.c: Likewise.
4822         Remove undef and INTDEF.
4823         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4824         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4825         (__pwrite64): Add libc_hidden_weak.
4826         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4827         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4828         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4829         * sysdeps/standalone/close.c (__close): Likewise.
4830         * sysdeps/standalone/write.c (__libc_write): Likewise.
4831         (__write): Add libc_hidden_weak.
4832         * sysdeps/standalone/read.c (__read): Likewise.
4833         (__libc_read): Add libc_hidden_def.
4834         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4835         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4836         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4837         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4838         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4839         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4840         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4841         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4842         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4843         __GI___sigaction): Add.
4844         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4845         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4846         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4847         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4848         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4849         __GI___setpgid): Add.
4850         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4851         Remove undef and INTDEF.
4852         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4853         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4854         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4855         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4856         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4857         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4858         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4859         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4860         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4861         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4862         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4863         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4864         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4865         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4866         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4867         __GI___statfs, __GI___send): Add.
4868         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4869         libc_hidden_ver resp. libc_hidden_def.
4870         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4871         libc_hidden_def.
4872         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4873         Likewise.  Remove undef and INTDEF.
4874         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4875         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4876         __GI___statfs, __GI___send): Add.
4877         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4878         libc_hidden_def.
4879         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4880         Likewise.
4881         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4882         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4883         libc_hidden_ver resp. libc_hidden_def.
4884         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4885         __GI___send): Add.
4886         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4887         Add libc_hidden_weak.
4888         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4889         Add libc_hidden_def.
4890         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4891         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4892         libc_hidden_weak.
4893         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4894         resp. libc_hidden_def.
4895         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4896         libc_hidden_weak.
4897         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
4898         INTDEF.
4899         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4900         Likewise.  Remove undef.
4901         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4902         libc_hidden_weak.
4903         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4904         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4905         libc_hidden_weak.
4906         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4907         libc_hidden_def.
4908         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4909         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4910         Likewise.  Remove undef and INTDEF.
4911         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4912         libc_hidden_def.
4913         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4914         libc_hidden_weak.
4915         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4916         libc_hidden_def.
4917         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4918         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4919         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4920         libc_hidden_weak.
4921         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4922         Add libc_hidden_def.
4923         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4924         __GI___statfs): Add.
4925         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4926         libc_hidden_weak.
4927         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4928         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4929         Remove undef and INTDEF.
4930         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4931         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4932         libc_hidden_def.
4933         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4934         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4935         libc_hidden_weak.
4936         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4937         libc_hidden_def.
4938         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4939         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4940         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4941         Add.
4942         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4943         libc_hidden_def.  Remove undef and INTDEF.
4944         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4945         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4946         libc_hidden_def.
4947         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4948         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4949         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4950         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4951         Remove undef and INTDEF.
4952         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4953         broken visibility attribute handling.
4954         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4956 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4958         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4959         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4961         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4962         previous patch.
4964 2002-06-29  Todd Fries  <todd@openbsd.org>
4966         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4968 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4970         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4972 2002-07-30  Roland McGrath  <roland@redhat.com>
4974         * resolv/resolv.h (_res): Define macro unconditionally.
4975         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4976         * include/resolv.h: ... here.
4977         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4978         as a __thread variable.
4979         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4980         a __thread variable instead of a global.
4981         * resolv/res_data.c [_LIBC]: Don't #undef _res.
4983         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4984         time we test it.
4986         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4988         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4989         decls of memset and memcpy.
4991         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4992         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4994         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4996         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4997         (__libc_tsd_define): Define using __thread.
4999         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
5000         (__rpc_thread_variables): Use __libc_tsd_get.
5001         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
5002         __rpc_thread_variables, which might allocate what we're about to free.
5004         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
5005         thread-local variable.
5006         * resolv/netdb.h (h_errno): Define macro unconditionally.
5007         [_LIBC] (__set_h_errno): Macro moved to ...
5008         * include/netdb.h: ... here.
5009         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
5010         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
5011         [! _LIBC_REENTRANT]: #undef h_errno here.
5013         * include/errno.h: Protect from multiple inclusion.
5015         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
5016         before defining them, since Linux's <linux/posix_types.h> might have
5017         defined them.
5019 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
5021         * malloc/malloc.c (public_cALLOc): Check for overflow on
5022         multiplication.
5023         * sunrpc/xdr_array.c (xdr_array): Likewise.
5024         * sunrpc/rpc/types.h (mem_free): Add comment.
5025         Patch by Solar Designer <solar@openwall.com>.
5027 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
5029         * sysdeps/unix/sysv/linux/kernel-features.h
5030         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
5032 2002-08-01  Roland McGrath  <roland@redhat.com>
5034         * libio/fileops.c (_IO_file_sync_mmap): New function.
5035         (_IO_file_jumps_mmap): Use it.
5036         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
5037         repeat the stat check and resize the mapped buffer as necessary.
5039 2002-07-31  Roland McGrath  <roland@redhat.com>
5041         * libio/fileops.c (decide_maybe_mmap): New static function.
5042         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
5043         mmap the file contents.  Then switch the jump tables to the mmap
5044         tables if it worked, or the vanilla file tables if not.
5045         (_IO_file_underflow_maybe_mmap): New function.
5046         (_IO_file_seekoff_maybe_mmap): New function.
5047         (_IO_file_xsgetn_maybe_mmap): New function.
5048         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
5049         * libio/libioP.h: Declare those.
5050         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
5051         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
5052         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
5053         If the stream is read-only, set its jump tables to those new ones.
5054         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
5055         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
5056         We need the tables set before _IO_file_attach.
5058         * libio/tst-mmap-eofsync.c: New file.
5059         * libio/tst-mmap-fflushsync.c: New file.
5060         * libio/bug-mmap-fflush.c: New file.
5061         * libio/tst-mmap2-eofsync.c: New file.
5062         * libio/Makefile (tests): Add them.
5064         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
5065         _IO_file_underflow_mmap fails, it already set the appropriate bit.
5067 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
5069         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
5070         Declarations moved to <bits/sys_errlist.h>.  Include that file.
5071         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
5072         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
5073         declare sys_errlist and sys_nerr.
5074         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
5075         provide declarations.
5077 2002-07-31  Roland McGrath  <roland@redhat.com>
5079         * elf/rtld.c (dl_main): Fix typo in error message.
5081 2002-07-31  Roland McGrath  <roland@frob.com>
5083         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
5084         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
5085         sysdeps/mach/hurd/dl-sysdep.c change.
5087 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
5089         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
5090         -r`/build/include for kernel headers.
5092         * po/fi.po: New file.
5094 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
5096         * configure.in (static_nss): Set to `yes' if --disable-shared.
5098 2002-07-23  Bruno Haible  <bruno@clisp.org>
5100         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
5101         is set.
5103 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
5105         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
5106         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
5107         arguments.
5109 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
5111         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
5112         alias.
5114 2002-07-21  Bruno Haible  <bruno@clisp.org>
5116         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
5117         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
5118         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
5119         trans_sysdep_tab_offset.
5120         (struct sysdep_segment): New type.
5121         (struct sysdep_string): New type.
5122         (SEGMENTS_END): New macro.
5123         * intl/gettextP.h (struct sysdep_string_desc): New type.
5124         (struct loaded_domain): New fields malloced, n_sysdep_strings,
5125         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
5126         orig_tab, trans_tab, hash_tab to const pointers because they point
5127         into read-only memory.
5128         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
5129         (PRI*): Define fallback values.
5130         (get_sysdep_segment_value): New function.
5131         (_nl_load_domain): Distinguish major and minor revision parts. Add
5132         support for minor revision 1 with system dependent strings.
5133         (_nl_unload_domain): Also free the 'malloced' field.
5134         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
5135         now done in loadmsgcat.c. Add support for system dependent strings.
5137 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
5139         * posix/bug-regex7.c: New file.
5140         * posix/bug-regex8.c: New file.
5141         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
5143 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
5145         * posix/bug-regex4.c (main): Fix typos.
5146         * posix/bug-regex6.c (main): Likewise.
5148 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
5150         * posix/bug-regex6.c (main): Fix warnings.
5152         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
5154         * iconv/iconv_prog.c (main): Improve error message for the cases
5155         where -t and/or -f parameter are missing.
5157 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
5159         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
5160         (re_search): Likewise.
5161         (re_match_2): Likewise.
5162         (re_search_2): Likewise.
5163         (re_search_stub): New function.
5164         (re_search_2_stub): New function.
5165         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
5167 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
5169         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
5170         (re_string_eoi): Use STOP instead of LEN.
5171         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
5172         (re_string_construct): Likewise.
5173         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
5174         * posix/regexec.c (re_search_internal): Add a new argument STOP
5175         so that it can handle the argument STOP of re_search_2 and re_match_2
5176         correctly.
5177         (regexec): Adapt to new I/F of re_search_internal.
5178         (re_search_stub): Likewise.
5180 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
5182         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
5184         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
5186         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
5187         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
5188         of __divdi3.
5190         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
5191         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
5192         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
5193         alias for adjtimex syscall.
5195         * elf/dl-minimal.c: Define __assert_fail_internal.
5196         * assert/assert.c: Likewise.
5197         * include/assert.h: Define __assert_file macro if !SHARED and not
5198         NOT_IN_libc.
5200         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
5201         programs.
5202         * locale/Makefile: Likewise.
5203         * nscd/Makefile: Likewise.
5204         * catgets/Makefile: Likewise.
5206 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5208         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
5209         compute current position.
5211         * stdio-common/tst-fseek.c (main): Improve error messages.
5213         * libio/tst-freopen.c (main): Remove unused variable.
5215         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
5216         succesful seek call.  Simplify error checking.
5218 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
5220         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
5221         * sysdeps/ia64/fpu/libm_support.h: Likewise.
5223 2002-07-19  Roland McGrath  <roland@frob.com>
5225         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
5226         __libc_enable_secure is set.
5228 2002-07-24  Roland McGrath  <roland@frob.com>
5230         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
5231         This implementation supports only IPv4.
5232         * inet/ifaddrs.h: New file.
5233         * sysdeps/generic/ifaddrs.c: New file.
5234         * sysdeps/gnu/ifaddrs.c: New file.
5235         * inet/test-ifaddrs.c: New file.
5236         * inet/Makefile (routines): Add ifaddrs.
5237         (headers): Add ifaddrs.h here.
5238         (tests): Add test-ifaddrs.
5239         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
5241         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
5242         socket call to get an AF_INET socket, instead of using __opensock.
5243         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
5245         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
5246         if not -1 use it instead of calling __opensock.
5247         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
5248         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
5249         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
5251         * sysdeps/mach/hurd/ifreq.h: New file.
5252         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
5253         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
5254         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
5256         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
5257         which gets moved around.  Calculate size of mmap'd buffer instead.
5259 2002-07-24  Philip Blundell  <philb@gnu.org>
5261         * sysdeps/unix/arm/brk.S: Improve schedule.
5262         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
5263         efficient instruction.
5264         (__socket): Optimize return sequence.
5266 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5268         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
5269         sockets on old kernels.
5271 2002-07-22  Philip Blundell  <philb@gnu.org>
5273         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
5274         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
5275         alias.
5277 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5279         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
5280         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
5282         * locale/programs/locarchive.c (add_locale_to_archive): Correct
5283         test to detect duplicate locales.
5285         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
5286         position would be before beginning of file.
5287         (_IO_file_seekoff_mmap): Likewise.
5288         * libio/Makefile (tests): Add bug-fseek.
5289         * libio/bug-fseek.c: New file.
5291         * intl/explodename.c: Remove support for CEN-style locale variables.
5292         It was never used and shouldn't be since it's not portable.
5293         * intl/finddomain.c: Likewise.
5294         * intl/l10nflist.c: Likewise.
5295         * intl/loadinfo.h: Likewise.
5296         * locale/findlocale.c: Likewise.
5298 2002-07-24  Roland McGrath  <roland@frob.com>
5300         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
5301         position, calculate it to take into account an active pushback buffer.
5303         * libio/Makefile (tests): Add bug-ungetc.
5304         * libio/bug-ungetc.c: New file.
5306 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
5308         * sysdeps/generic/libc-tls.c: New file.
5309         * csu/Makefile (routines): Add libc-tls.
5310         (static-only-routines): Add libc-tls.
5311         * elf/dl-support.c (_dl_phdr): New variable.
5312         (_dl_phnum): New variable.
5313         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
5314         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
5315         for !SHARED.  First look through auxiliary vector.  If TLS always
5316         call __pthread_initialize_minimal.
5318         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
5319         in mmap call is never zero.
5321 2002-07-23  Andreas Jaeger  <aj@suse.de>
5323         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
5324         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
5326 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
5328         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
5329         creation and removal of the temp file.
5331         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
5332         file creation.
5333         * test-skeleton.c (create_temp_file): New function.
5335 2002-07-22  Andreas Jaeger  <aj@suse.de>
5337         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
5338         local label.
5340 2002-07-21  Roland McGrath  <roland@frob.com>
5342         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
5343         put -I../include before -I../stdlib so we get the right errno.h et al.
5344         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
5345         (CFLAGS-wcstof.c): Likewise.
5346         (CFLAGS-wcstold.c): Likewise.
5347         (CFLAGS-wcstod_l.c): Likewise.
5348         (CFLAGS-wcstof_l.c): Likewise.
5349         (CFLAGS-wcstold_l.c): Likewise.
5351 2002-07-19  Roland McGrath  <roland@frob.com>
5353         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
5355 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
5357         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
5358         __ASSUME_AT_XID is defined.
5359         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
5360         for 2.4.1 and up.
5361         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
5362         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
5364         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
5365         (CFLAGS-wcstof.c): Likewise.
5366         (CFLAGS-wcstold.c): Likewise.
5367         (CFLAGS-wcstod_l.c): Likewise.
5368         (CFLAGS-wcstof_l.c): Likewise.
5369         (CFLAGS-wcstold_l.c): Likewise.
5371 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
5373         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
5374         __priority_which_t): Always typedef to int for C++.
5376 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
5378         * configure.in: Add test for __thread support in compiler.
5379         * config.h.in: Add HAVE___THREAD.
5380         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
5381         * include/sys/errno.h: Moved to...
5382         * stdlib/sys/errno.h: ...here.  New file.
5383         * stdlib/errno.h: New file.  Moved from...
5384         * include/errno.h: ...here.  Changed into an internal header defining
5385         libc-local things like __set_errno.
5386         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
5387         bits/errno.h.
5388         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
5389         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
5390         either.
5391         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
5392         from...
5393         (_dl_start_final): ...here.  Add code to initialize tls elements from
5394         bootstrap_map.
5395         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
5396         if USE_TLS && HAVE___THREAD.
5397         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
5398         * sysdeps/mach/hurd/bits/errno.h: Likewise.
5399         * sysdeps/standalone/arm/bits/errno.h: Likewise.
5400         * sysdeps/standalone/bits/errno.h: Likewise.
5401         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
5402         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
5403         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
5404         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
5405         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
5406         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
5407         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
5408         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
5409         use GL(dl_rtld_map), use map parameter.
5410         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
5411         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
5412         USE_TLS && HAVE___THREAD.
5413         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
5414         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
5415         TLS code sequence.
5416         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5418         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
5419         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
5420         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
5421         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
5422         * sysdeps/unix/sysv/linux/readv.c: Likewise.
5423         * sysdeps/unix/sysv/linux/writev.c: Likewise.
5425 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
5427         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
5428         MS_INVALIDATE values.
5430 2002-07-17  Andreas Schwab  <schwab@suse.de>
5431             Ulrich Drepper  <drepper@redhat.com>
5433         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
5434         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5435         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5436         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5438 2002-07-01  H.J. Lu  <hjl@gnu.org>
5440         * elf/circleload1.c (load_dso): Call "circlemod1" and check
5441         return value.
5443         * elf/circlemod1.c (circlemod1): Return int.
5444         * elf/circlemod2.c (circlemod2): Likewise.
5445         * elf/circlemod2a.c (circlemod2): Likewise.
5446         * elf/circlemod3.c (circlemod3): Likewise.
5447         (circlemod3a): A new function.
5449 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
5451         * catgets/tst-catgets.c (main): Don't expect results for
5452         untranslated messages.
5454         * glibcbug.in: Fix little typo.  Remove STDIO.
5456         * config.h.in: Fail if __FAST_MATH__ is defined.
5457         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
5458         (CPPFLAGS-test-idouble.c): Likewise.
5459         (CPPFLAGS-test-ildouble.c): Likewise.
5461 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
5463         * intl/tst-gettext.sh: Pass -f option to msgfmt.
5464         * intl/tst-gettext.c: Correctly handle untranslated messages in
5465         positive tests.
5467         * po/de.po: Update from translation team.
5469 2002-07-02  H.J. Lu  <hjl@gnu.org>
5471         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
5472         use ll/sc.
5473         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
5475         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
5476         to 2.4.0 for mips.
5478 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
5480         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
5481         TLS fail if USE_TLS is not defined.
5483         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
5484         and adjust state for seek position.  [PR libc/4070]
5485         * libio/Makefile (tests): Add bug-rewind.
5486         * libio/bug-rewind.c: New file.
5488 2002-07-12  Philip Blundell  <philb@gnu.org>
5490         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
5491         (__backtrace): Use it.
5492         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
5494 2002-07-12  Philip Blundell  <philb@gnu.org>
5496         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
5497         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
5498         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
5499         (elf_machine_rela): Remove unused variable.
5501         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
5502         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
5503         define.
5505 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
5507         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
5509 2002-07-14  Andreas Jaeger  <aj@suse.de>
5511         * sysdeps/x86_64/bits/link.h: Add biarch support.
5513 2002-07-13  Andreas Jaeger  <aj@suse.de>
5515         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
5516         Use correct indices.
5517         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
5519 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5521         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
5522         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
5523         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
5524         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
5525         * sysdeps/s390/s390-32/bits/link.h: Remove.
5526         * sysdeps/s390/s390-64/bits/link.h: Remove.
5527         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
5528         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
5529         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
5530         * sysdeps/s390/bits/wordsize.h: New file.
5531         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
5532         elfclass.h.
5533         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
5534         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
5535         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
5536         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
5537         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
5538         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
5539         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
5540         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
5541         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
5542         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
5543         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
5544         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
5545         resource.h.
5546         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
5547         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
5548         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
5549         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
5550         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
5551         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
5552         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
5553         sigaction.h.
5554         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
5555         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
5556         siginfo.h.
5557         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
5558         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
5559         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
5560         socket.h.
5561         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
5562         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
5563         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
5564         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
5565         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
5566         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
5567         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
5568         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
5569         procfs.h.
5570         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
5571         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
5572         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
5573         ucontext.h.
5574         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
5575         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
5577 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
5579         * Versions.def (libc): Add GLIBC_2.3.
5580         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
5581         * stdlib/canonicalize.c: Add compatibility version for realpath
5582         and make new code available in GLIBC_2.3.
5584 2002-07-06  Bruno Haible  <bruno@clisp.org>
5586         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
5588 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
5590         * resolv/res_hconf.c (_res_hconf_init): Move code into new
5591         function do_init.  Use __libc_once.
5592         (do_init): New function.
5594         * iconvdata/iso8859-11.h: Removed.
5595         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
5596         (distribute): Remove iso8859-11.h.
5597         * iconvdata/tst-tables.sh: Add ISO-8859-11.
5599         * stdio-common/vfscanf.c (inchar): Restore errno from previous
5600         underflow operation if c == (W)EOF.
5602 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5604         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
5605         non-zero, adjust exponent.
5606         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
5607         Remove NO_LONG_DOUBLE aliases.
5608         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
5609         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
5610         (__log1pl): Raise divide by zero and invalid exceptions when needed.
5611         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
5612         1**y and -1**+-Inf.
5613         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
5614         Fix BITS_PER_MP_LIMB 32 extraction.
5615         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
5616         exceptions for qNaNs.
5617         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
5618         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
5619         Raise exceptions when needed.  Don't recurse unnecessarily.
5620         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
5621         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
5622         exceptions for qNaNs.
5623         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
5624         to fix *quo return value sign.
5625         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
5626         case -Inf argument.
5627         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
5629 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5631         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
5632         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
5633         -DNDEBUG.
5635 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5637         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
5638         the result.
5640         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
5641         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
5643         * Versions.def (libthread_db): Add GLIBC_2.3.
5645 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
5647         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
5648         new stream if possible.
5649         * libio/freopen64.c (freopen64): Likewise.
5650         * libio/Makefile (tests): Add tst-freopen.
5651         * libio/tst-freopen.c: New file.
5653 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5655         * libio/stdio.h (obstack_printf): Add format attribute.
5656         (obstack_vprintf): Likewise.
5658 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5660         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
5661         resp. 16 bytes on 32-bit resp. 64-bit platforms.
5662         (re_charset_t, re_string_t): Reorder structure members for 64-bit
5663         architectures.
5665 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5667         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
5668         (init_dfa): ...here.
5670 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5672         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
5673         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
5674         nodes in parse trees.
5675         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
5676         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
5677         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
5678         nodes which can epsilon transit.
5679         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
5680         to IS_EPSILON_NODE macro.
5681         * posix/regexec.c (update_regs): New function to update registers
5682         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
5683         (proceed_next_node): Use the entities of the nodes to determine
5684         whether the node can transit to.
5685         (set_regs): Use update_regs function to update registers.
5687 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5689         * posix/bug-regex4.c (main): Remove duplicate setlocale.
5690         * posix/bug-regex6.c: New file.
5691         * posix/Makefile (tests): Add bug-regex6.
5692         (bug-regex6-ENV): Set LOCPATH.
5694 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5696         * Versions.def [libpthread]: Add GLIBC_2.2.6.
5697         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
5699 2002-07-06  Bruno Haible  <bruno@clisp.org>
5701         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
5703 2002-07-06  Bruno Haible  <bruno@clisp.org>
5705         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
5706         declarations.
5708         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
5710         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
5712         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
5713         not _UTSNAME_H.
5714         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
5716         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
5717         * sysdeps/generic/bits/ustat.h: Likewise.
5719         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5721 2002-07-08  Andreas Jaeger  <aj@suse.de>
5723         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5725 2002-07-08  Andreas Jaeger  <aj@suse.de>
5727         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5729 2002-07-06  Andreas Jaeger  <aj@suse.de>
5731         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5732         * sysdeps/x86_64/fpu/s_copysign.S: New file.
5733         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5734         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5735         * sysdeps/x86_64/fpu/s_finitel.S: New file.
5736         * sysdeps/x86_64/fpu/s_fmax.S: New file.
5737         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5738         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5739         * sysdeps/x86_64/fpu/s_fmin.S: New file.
5740         * sysdeps/x86_64/fpu/s_fminf.S: New file.
5741         * sysdeps/x86_64/fpu/s_fminl.S: New file.
5743 2002-06-05  Brian Youmans <3diff@gnu.org>
5745         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5746         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5747         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5748         * sysdeps/ia64/fpu/e_asin.S: Likewise.
5749         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5750         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5751         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5752         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5753         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5754         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5755         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5756         * sysdeps/ia64/fpu/e_exp.S: Likewise.
5757         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5758         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5759         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5760         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5761         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5762         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5763         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5764         * sysdeps/ia64/fpu/e_log.S: Likewise.
5765         * sysdeps/ia64/fpu/e_logf.S: Likewise.
5766         * sysdeps/ia64/fpu/e_pow.S: Likewise.
5767         * sysdeps/ia64/fpu/e_powf.S: Likewise.
5768         * sysdeps/ia64/fpu/e_powl.S: Likewise.
5769         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5770         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5771         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5772         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5773         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5774         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5775         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5776         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5777         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5778         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5779         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5780         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5781         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5782         * sysdeps/ia64/fpu/libm_error.c: Likewise.
5783         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5784         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5785         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5786         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5787         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5788         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5789         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5790         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5791         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5792         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5793         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5794         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5795         * sysdeps/ia64/fpu/s_logb.S: Likewise.
5796         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5797         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5798         * sysdeps/ia64/fpu/s_modf.S: Likewise.
5799         * sysdeps/ia64/fpu/s_modff.S: Likewise.
5800         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5801         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5802         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5803         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5804         * sysdeps/ia64/fpu/s_rint.S: Likewise.
5805         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5806         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5807         * sysdeps/ia64/fpu/s_round.S: Likewise.
5808         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5809         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5810         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5811         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5812         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5813         * sysdeps/ia64/fpu/s_significand.S: Likewise.
5814         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5815         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5816         * sysdeps/ia64/fpu/s_tan.S: Likewise.
5817         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5818         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5819         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5820         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5821         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5822         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5823         reflect IBM donation of math library to FSF
5824         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5825         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5826         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5827         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5828         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5829         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5830         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5831         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5832         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5833         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5834         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5835         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5836         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5837         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5838         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5839         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5840         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5841         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5842         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5843         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5844         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5845         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5846         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5847         * sysdeps/vax/__longjmp.c: Likewise.
5848         * sysdeps/vax/setjmp.c: Likewise.
5849         * libio/filedoalloc.c: Fixed BSD copying permission notice to
5850         remove advertising clause
5851         * sysdeps/vax/htonl.s: Likewise.
5852         * sysdeps/vax/htons.s: Likewise.
5853         * libio/wfiledoalloc.c: Likewise.
5854         * stdlib/random.c: Likewise.
5855         * stdlib/random_r.c: Likewise.
5856         * sysdeps/mach/sys/reboot.h: Likewise.
5857         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5858         * sysdeps/posix/getaddrinfo.c: Likewise.
5859         * sunrpc/des_impl.c: Updated license permission notice to Lesser
5860         GPL and corrected pointer to point to the correct license.
5862 2002-07-04  Andreas Jaeger  <aj@suse.de>
5864         * scripts/config.guess: New upstream version.
5865         * scripts/config.sub: Likewise.
5867 2002-07-02  Andreas Schwab  <schwab@suse.de>
5869         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5870         in parallel to bumping up the buffer pointer.
5872 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5874         * math/libm-test.inc (acos_test): Add missing L suffix for
5875         expected result.
5876         (cpow_test): Likewise.
5877         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5878         error for acos (0.0625).
5880 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5882         * locale/iso-639.def: Add entry for Ganda.
5883         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5884         definition.
5885         (address_finish): Handle entries with two letter ISO 639 code.
5887         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5888         directory if it existed before.
5889         * iconv/iconvconfig.c: Implement --prefix option.
5891         * math/libm-test.inc (cexp_test): Add missing L suffix for
5892         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
5893         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5894         1.25 i).
5896 2002-05-29  H.J. Lu  <hjl@gnu.org>
5898         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5899         is turned on.
5901 2002-05-28  H.J. Lu  <hjl@gnu.org>
5903         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5904         are not dlopened on the dependency list of a dlopened object.
5906 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5908         * elf/dl-lookup.c (add_dependency): It is not necessary to add
5909         dependencies if they are created between objects which are created
5910         while processing RTLD_NOW for objects loaded as part of the same
5911         dlopen call.
5913 2002-06-14  H.J. Lu  <hjl@gnu.org>
5915         * elf/Makefile (tests): Add circleload1.
5916         (modules-names): Add circlemod1, circlemod2, circlemod3,
5917         circlemod1a, circlemod2a and circlemod3a.
5918         ($(objpfx)circleload1): New target.
5919         ($(objpfx)circleload1.out): Likewise.
5920         ($(objpfx)circlemod1.so): Likewise.
5921         ($(objpfx)circlemod2.so): Likewise.
5922         ($(objpfx)circlemod1a.so): Likewise.
5923         ($(objpfx)circlemod2a.so): Likewise.
5924         * elf/circleload1.c: New file.
5925         * elf/circlemod1.c: New file.
5926         * elf/circlemod1a.c: New file.
5927         * elf/circlemod2.c: New file.
5928         * elf/circlemod2a.c: New file.
5929         * elf/circlemod3.c: New file.
5930         * elf/circlemod3a.c: New file.
5932 2002-06-18  Amos Waterland  <apw@us.ibm.com>
5934         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5935         file descriptor.
5936         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5937         add check for fd not open for writing.
5939         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5940         completed element(s) and do not suspend thread if so.  Patch
5941         heavily modified by drepper.
5943         * rt/tst-aio7.c: New file.  Regression test for problems which the
5944         above three changes fix.
5945         * rt/Makefile (tests): Add tst-aio7.
5947 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
5949         * rt/tst-aio6.c: Fix comment.
5951         * catgets/gencat.c (read_input_file): Handle more than one slash
5952         at end of line correctly [PR libc/3926].
5953         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5955         * catgets/sample.SJIS: Add test case for above bug.
5956         * catgets/test-gencat.c: Adjust test code.
5957         * catgets/test-gencat.sh: Adjust expected results.
5959         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5960         to skip relative relocations.
5961         Patch by Geoff Keating <geoffk@redhat.com>.
5963 2002-05-26  Bruno Haible  <bruno@clisp.org>
5965         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5966         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5967         All callers changed.
5968         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5969         STANDARD_FROM_LOOP_ERR_HANDLER.
5970         (utf8_internal_loop): Likewise.
5971         (ucs2_internal_loop): Likewise.
5972         (internal_ucs2_loop): Perform error handling like in
5973         STANDARD_FROM_LOOP_ERR_HANDLER.
5974         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5975         in STANDARD_FROM_LOOP_ERR_HANDLER.
5976         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5977         handling.
5978         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5979         in STANDARD_FROM_LOOP_ERR_HANDLER.
5980         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5981         handling.
5982         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5983         in STANDARD_FROM_LOOP_ERR_HANDLER.
5984         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5985         handling.
5986         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5987         STANDARD_FROM_LOOP_ERR_HANDLER.
5988         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5989         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5990         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5991         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5992         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5993         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5994         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5995         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5996         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5997         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5998         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5999         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
6000         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
6001         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
6002         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
6003         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
6004         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
6005         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
6006         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
6007         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
6008         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
6009         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
6010         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
6011         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
6012         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
6013         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
6014         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
6015         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
6016         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
6017         an error, still set result = __GCONV_ILLEGAL_INPUT.
6018         (BODY for TO_LOOP): Likewise.
6019         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
6020         STANDARD_FROM_LOOP_ERR_HANDLER.
6021         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6022         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
6023         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
6024         handling.
6025         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6026         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
6027         STANDARD_FROM_LOOP_ERR_HANDLER.
6028         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6029         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
6030         STANDARD_FROM_LOOP_ERR_HANDLER.
6031         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6032         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
6033         STANDARD_FROM_LOOP_ERR_HANDLER.
6034         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6035         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
6036         STANDARD_FROM_LOOP_ERR_HANDLER.
6037         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6038         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
6039         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
6040         handling.
6041         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6042         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
6043         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
6044         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
6046 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6048         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
6049         labels in assembler instructions.
6051 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
6053         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
6054         not enough content is available.
6055         * libio/tst-eof.c: New file.
6056         * libio/Makefile (tests): Add tst-eof.
6058         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
6059         update atime.
6060         * libio/tst-atime.c: New file.
6061         * libio/Makefile (tests): Add tst-atime.
6063         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
6064         handling of overly long words.
6066 2002-06-25  Andreas Jaeger  <aj@suse.de>
6068         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
6069         to not use 32-bit pc relative relocations.
6070         (elf_machine_dynamic): Likewise.
6072 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
6074         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
6075         (__GETDENTS): Check for failed getdents64 syscall.
6076         * dirent/Makefile (tests): Add bug-readdir1.
6077         * dirent/bug-readdir1.c: New file.
6079 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
6081         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
6082         lookups.
6083         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
6084         code.  Print TLS modid and offset for modules containing PT_TLS
6085         segments.
6087 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
6089         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
6090         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
6091         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
6092         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
6094 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
6096         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
6097         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
6098         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
6099         * nss/getXXent_r.c (NEW, NEW1): Define.
6100         (NEW (REENTRANT_GETNAME)): Strong alias to
6101         INTERNAL (REENTRANT_GETNAME).
6102         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
6104 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
6106         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
6107         (_IO_file_jumps_mmap): Use it.
6108         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
6109         * libio/libioP.h: Remove _IO_wdefault_setbuf and
6110         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
6111         prototype.
6112         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
6113         (_IO_wfile_jumps_mmap): Don't use it anymore.
6114         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
6115         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
6116         _IO_wdefault_setbuf.
6117         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
6118         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
6119         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
6121 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
6123         * libio/Makefile (tests): Add tst-mmap-setvbuf.
6124         * libio/tst-mmap-setvbuf.c: New test.
6126 2002-06-21  Andreas Jaeger  <aj@suse.de>
6128         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
6130 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
6132         * include/unistd.h (__fork_internal): Remove.
6133         (__fork): Don't define to __fork_internal.
6134         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
6135         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
6136         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
6137         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
6138         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
6140 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
6142         * po/hr.po: New file.
6144 2002-06-11  Wolfram Gloger  <wg@malloc.de>
6146         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
6147         Reported by Michael Meissner <meissner@redhat.com>.
6149 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
6151         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
6152         Patch by Hans Boehm <hans_boehm@hp.com>.
6154 2002-06-20  Andreas Jaeger  <aj@suse.de>
6156         * math/libm-test.inc: Use exact values as input parameters,
6157         compute output parameters with 36 digits for 128-bit long doubles.
6158         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
6159         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
6160         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
6162 2002-06-13  Stephen L Moshier  <steve@moshier.net>
6164         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
6165         argument or result is subnormal.
6167 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
6169         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
6170         quotient.
6171         * sysdeps/i386/fpu/s_remquof.S: Likewise.
6172         * sysdeps/i386/fpu/s_remquol.S: Likewise.
6174         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
6176 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
6178         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
6179         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
6180         Reported by Peter A. Buhr.
6182 2002-06-15  Roland McGrath  <roland@frob.com>
6184         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
6185         warning.
6187         * sysdeps/mach/hurd/getcwd.c
6188         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
6190         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
6191         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
6193         * sysdeps/alpha/divrem.h: Use local label instead of global one for
6194         jump to local subroutine.
6196 2002-06-14  Roland McGrath  <roland@frob.com>
6198         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
6199         * sysdeps/mach/hurd/Makeconfig: ... here.
6201 2002-06-13  Andreas Schwab  <schwab@suse.de>
6203         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
6204         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6205         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
6207 2002-06-13  Roland McGrath  <roland@frob.com>
6209         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
6210         * hurd/hurdstartup.c (_hurd_startup): Likewise.
6211         Use intptr_t instead of int for argc in stack layout.
6212         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
6213         (_dl_init_first): Likewise.
6214         (_hurd_stack_setup): Likewise.
6215         (init1): Add a cast.
6216         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
6218         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
6219         argument to pfinet_siocgifconf RPC.
6221 2002-06-13  Andreas Schwab  <schwab@suse.de>
6223         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
6224         expansion order.
6226 2002-06-12  Roland McGrath  <roland@frob.com>
6228         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
6229         if already defined.
6230         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
6231         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
6233 2002-06-11  Roland McGrath  <roland@frob.com>
6235         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
6236         file on [!RTLD_STAT64].
6237         * sysdeps/mach/hurd/fxstat64.c: Likewise.
6239         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
6240         (__fdopen): Use INTUSE.
6241         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
6243         * stdio-common/tmpfile64.c: File removed.
6244         * sysdeps/generic/tmpfile64.c: New file.
6245         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
6246         if not already defined.
6247         (tmpfile): Use it in place of __GT_FILE.
6249         * include/unistd.h: Declare __chown_internal.
6251         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
6252         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
6254 2002-06-09  Roland McGrath  <roland@frob.com>
6256         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
6257         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
6258         value of HURD_INTERFACE_VERSION >= 20020609.
6259         * sysdeps/mach/hurd/configure: Regenerated.
6260         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
6261         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
6262         convert a struct stat64 into a struct stat and return 0 or -1
6263         with errno set to EOVERFLOW.
6264         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
6265         for struct statfs64 to struct statfs.
6266         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
6267         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
6268         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
6269         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
6270         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
6271         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
6272         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
6273         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
6274         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
6275         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
6276         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
6277         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
6278         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
6279         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
6280         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
6281         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
6282         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
6283         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
6284         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
6285         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
6286         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
6287         Use struct stat64 for io_stat argument.
6288         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
6289         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
6290         to io_seek.
6291         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
6292         * hurd/fd-write.c (_hurd_fd_write): Likewise.
6293         * hurd/hurd/fd.h: Update decls.
6294         * sysdeps/mach/hurd/getcwd.c
6295         (_hurd_canonicalize_directory_name_internal): Use ino64_t
6296         and struct dirent64.
6297         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
6298         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
6299         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
6300         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
6302 2002-06-08  Roland McGrath  <roland@frob.com>
6304         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
6305         instead of unsigned long int for __allocation and __size members.
6307 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
6309         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
6310         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
6311         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
6312         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
6314 2002-06-07  Roland McGrath  <roland@frob.com>
6316         * sysdeps/mach/hurd/bits/environments.h: File removed.
6318 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
6320         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
6321         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
6322         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
6323         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
6324         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
6325         (sendfile64): Likewise.
6326         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
6327         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
6328         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
6329         Likewise.
6330         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
6332         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
6333         already defined.
6335 2002-06-04  Bruno Haible  <bruno@clisp.org>
6337         * sysdeps/cris/stackinfo.h: New file.
6339         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
6340         to an integer type before performing bit operations on it.
6342 2002-06-05  Roland McGrath  <roland@frob.com>
6344         * sysdeps/generic/sendfile.c: Include <errno.h>.
6345         * sysdeps/generic/sendfile64.c: Likewise.
6347         * io/Makefile (routines): Add sendfile and sendfile64.
6348         (headers): Add sys/sendfile.h to the list.
6349         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
6350         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
6351         * io/sys/sendfile.h: ... here.
6352         * sysdeps/generic/sendfile.c: New file.
6353         * sysdeps/generic/sendfile64.c: New file.
6355         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
6356         Move sendfile, sendfile64 to ...
6357         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
6358         * sysdeps/mach/hurd/sendfile.c: New file.
6359         * sysdeps/mach/hurd/sendfile64.c: New file.
6361         * sysdeps/mach/nanosleep.c: New file.
6363 2002-06-04  Roland McGrath  <roland@frob.com>
6365         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
6366         * sysdeps/alpha/elf/configure: New file (generated).
6368 2002-06-02  Roland McGrath  <roland@frob.com>
6370         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
6372 2002-06-01  Roland McGrath  <roland@frob.com>
6374         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
6375         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
6377 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
6379         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
6380         Add nsmap.
6381         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
6382         Remove nstimes setting.
6383         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
6384         * resolv/res_send.c (res_nsend): Don't close unconditionally if
6385         there is mix of IPv6 and IPv4 nameservers.
6386         Use nsmap array to find free slots and preserve nameserver ordering.
6387         Fix RES_ROTATE.
6389 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
6391         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
6392         use this header with LFS.
6394         * po/sk.po: Update from translation team.
6396 2002-05-28  Andreas Schwab  <schwab@suse.de>
6398         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
6399         message when finding object of wrong class.
6401 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
6403         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
6404         Patch by <radu@netsoft.ro>.
6406 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
6408         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
6409         Add readahead.
6410         * sysdeps/unix/sysv/linux/readahead.c: New file.
6411         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
6412         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
6413         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
6414         Add sendfile64 alias to sendfile syscall.
6415         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6416         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6417         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6418         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
6419         syscall.
6421         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
6422         special section for PIC register loading.
6423         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
6425         * config.h.in: Define HAVE_HIDDEN.
6426         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
6428         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
6430 2002-05-28  Roland McGrath  <roland@frob.com>
6432         * sysdeps/mach/alpha/setfpucw.c: New file.
6434 2002-05-26  Roland McGrath  <roland@frob.com>
6436         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
6437         Use integer_t instead of int for IOC_VOID case.
6439 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
6441         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
6443 2002-05-26  Bruno Haible  <bruno@clisp.org>
6445         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
6446         end of the ISO-8859-7 from idx table.
6448 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
6450         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
6452 2002-05-24  David S. Miller  <davem@redhat.com>
6454         * string/bits/string2.h (memset): Do not try to optimize when
6455         not _STRING_ARCH_unaligned if GCC will do the right thing.
6457 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
6459         * posix/regex.c: Define `inline' as a macro into nothing for the
6460         compilers which lack the keyword.
6461         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
6462         for the compatibility of gawk.
6463         * posix/regcomp.c: Add fake implementation of isblank() for the
6464         environments which lack the function.
6465         Don't use free_charset() in case of non-i18n envs.
6466         (build_range_exp): Don't use i18n related code in case of non-i18n
6467         envs.
6468         (build_collating_symbol): Likewise.
6469         (build_equiv_class): Likewise.
6470         (build_charclass): Likewise.
6471         (re_compile_fastmap_iter): Likewise.
6472         (parse_bracket_exp): Likewise.
6473         (build_word_op): Likewise.
6474         (regfree): Don't use free_charset() in case of non-i18n envs.
6475         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
6476         re_token_type_t in case of non-i18n envs.
6477         Don't define re_charset_t in case of non-i18n envs.
6478         Change the type of wcs of re_string_t from wchar_t to wint_t,
6479         since we store also WEOF.
6480         * posix/regex_internal.c: (re_string_realloc_buffers): Change
6481         the type of wcs of re_string_t from wchar_t to wint_t.
6482         (re_string_reconstruct): Likewise.
6483         (create_ci_newstate): Don't use i18n related code in case of
6484         non-i18n envs.
6485         (create_cd_newstate): Likewise.
6487 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
6489         * iconv/loop.c: Fix typo.
6491 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
6493         * inet/ether_line.c (ether_line): Fix a typo causing only
6494         lower 4 bits of each ethernet address byte being assigned.
6495         Don't modify what line points to.
6496         * inet/tst-ether_aton.c (main): Add ether_line tests.
6498 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
6500         * manual/filesys.texi: Don't make readlink example leak memory
6501         when readlink fails.
6503 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
6505         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
6506         some more security checks.
6508 2002-05-17  David S. Miller  <davem@redhat.com>
6510         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
6512 2002-05-16  David S. Miller  <davem@redhat.com>
6514         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
6515         (elf_machine_dynamic): Use it to force PIC register to be loaded.
6516         (elf_machine_load_address): Likewise.
6517         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
6519         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
6520         is unaligned, do not forget to fully initialize %g1 magic value.
6522         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
6523         register definitions and provide 32-bit variants of structures
6524         during 64-bit builds.
6526         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
6527         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
6528         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
6529         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
6530         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
6531         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
6532         Do not clear implicit one bit here, it must be done post-rounding.
6533         Only pad to the left using left shift if value uses less than the
6534         available fractional bits.
6536 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6538         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
6539         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
6540         (shared-only-routines): Likewise.
6541         * sysdeps/powerpc/libgcc-compat.c: New file.
6542         * sysdeps/wordsize-32/cmpdi2.c: Removed.
6543         * sysdeps/wordsize-32/fixdfdi.c: Removed.
6544         * sysdeps/wordsize-32/fixsfdi.c: Removed.
6545         * sysdeps/wordsize-32/shdi3.c: Removed.
6547 2002-05-16  Bruno Haible  <bruno@clisp.org>
6549         * MakeTAGS (libc.pot): Don't sort the output.
6550         * po/header.pot: Update to match xgettext 0.11 output.
6552 2002-05-16  Bruno Haible  <bruno@clisp.org>
6554         * MakeTAGS (subdirs): Remove duplicates.
6556 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
6558         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
6559         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
6560         alias.
6562 2002-05-19  Andreas Jaeger  <aj@suse.de>
6564         * sysdeps/unix/sysv/linux/configure.in: Warn against an
6565         installation in /usr/local.
6567 2002-05-16  Bruno Haible  <bruno@clisp.org>
6569         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
6570         string as argument of #error.
6572 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
6574         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
6575         don't define static.  Remove old __realpath function.  TC1 of
6576         POSIX 2001 will allow the second parameter to be NULL.
6577         * stdlib/test-canon.c: Comment out test for NULL as second
6578         parameter of realpath.
6580         * time/offtime.c (__offtime): Set errno if overflow is detected.
6582         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
6583         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
6584         dl-brk and dl-sbrk.
6586         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
6587         (fdimf): Likewise.
6589 2002-05-15  Roland McGrath  <roland@frob.com>
6591         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
6593 2002-05-12  Bruno Haible  <bruno@clisp.org>
6595         * iconvdata/testdata/EUC-JISX0213: New file.
6596         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
6597         * iconvdata/testdata/SHIFT_JISX0213: New file.
6598         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
6599         * iconvdata/testdata/ISO-2022-JP-3: New file.
6600         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
6601         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
6602         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
6603         contains comments indicating precomposed characters.
6605 2002-04-21  Bruno Haible  <bruno@clisp.org>
6607         * iconvdata/iso-2022-jp-3.c: New file.
6608         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
6609         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
6610         (LDFLAGS-ISO-2022-JP-3.so): New variable.
6611         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
6612         (distribute): Add iso-2022-jp-3.c.
6614 2002-05-12  Bruno Haible  <bruno@clisp.org>
6616         * iconvdata/tst-table-to.c (main): Restore handling of
6617         transliterations, broken by last patch.
6619 2002-05-12  Bruno Haible  <bruno@clisp.org>
6621         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
6623 2002-05-12  Bruno Haible  <bruno@clisp.org>
6625         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
6626         when there is not enough room in the output buffer.
6627         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
6629 2002-04-20  Bruno Haible  <bruno@clisp.org>
6631         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
6632         macros.
6633         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6634         Also make this macro work if FROM_DIRECTION evaluates to 0.
6635         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6636         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
6637         of consume_incomplete.
6638         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6639         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
6640         4, not 8.
6641         * iconvdata/cp1258.c: Likewise.
6642         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6643         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
6644         not 2.
6645         * iconvdata/ibm933.c: Likewise.
6646         * iconvdata/ibm935.c: Likewise.
6647         * iconvdata/ibm937.c: Likewise.
6648         * iconvdata/ibm939.c: Likewise.
6649         * iconvdata/iso-2022-cn.c: Define
6650         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6651         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
6652         * iconvdata/iso-2022-cn-ext.c: Likewise.
6653         * iconvdata/iso-2022-jp.c: Define
6654         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6655         {MIN,MAX}_NEEDED_{FROM,TO}.
6656         * iconvdata/tcvn5712-1.c: Define
6657         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6658         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
6659         * iconvdata/euc-jisx0213.c: Define
6660         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6661         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
6662         * iconvdata/shift_jisx0213.c: Likewise.
6664 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6666         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
6667         shdi3, fixdfdi, fixsfdi in csu dir.
6668         (shared-only-routines): Likewise.
6669         * sysdeps/wordsize-32/cmpdi2.c: New file.
6670         * sysdeps/wordsize-32/shdi3.c: New file.
6671         * sysdeps/wordsize-32/fixdfdi.c: New file.
6672         * sysdeps/wordsize-32/fixsfdi.c: New file.
6673         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
6674         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
6675         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
6677         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
6678         Only use va_arg if the argument will be used [PR libc/3259].
6680 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
6682         * catgets/catgets.c (catopen): Free buffer if internal catalog
6683         open fails.
6685 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6687         * debug/xtrace.sh: Make more robust.  For realtime tracking use
6688         non-buffering methods.
6689         * debug/pcprofiledump.c: Implement -u option.
6690         Patch by Roger Luethi <rl@hellgate.ch>.
6692 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
6694         * include/netinet/in.h (bindresvport_internal): Add prototype.
6695         * include/rpc/auth.h  (authunix_create_internal,
6696         authunix_create_default_internal, authnone_create_internal,
6697         authdes_pk_create_internal): Add prototypes.
6698         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
6699         clntudp_create_internal, clntudp_bufcreate_internal,
6700         clntunix_create_internal): Add prototypes.
6701         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
6702         svc_getreq_internal, svc_getreq_common_internal,
6703         svc_getreqset_internal, svc_getreq_poll_internal,
6704         svc_register_internal, svc_unregister_internal,
6705         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
6706         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
6707         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
6708         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
6709         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
6710         * inet/rcmd.c (rcmd_af): Use __listen.
6711         (rresvport_af): Use __bind.
6712         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
6713         authunix_create, authunix_create_default, authnone_create,
6714         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
6715         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
6716         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
6717         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
6718         _authenticate, add INTDEF after such function definitions.
6719         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6720         __setsockopt, __getsockname instead of non-__ variants.
6721         * sunrpc/pmap_rmt.c: Likewise.
6722         * sunrpc/rtime.c: Likewise.
6723         * sunrpc/svc_udp.c: Likewise.
6724         * sunrpc/clnt_unix.c: Likewise.
6725         * sunrpc/svc_unix.c: Likewise.
6726         * sunrpc/bindrsvprt.c: Likewise.
6727         * sunrpc/svc_tcp.c: Likewise.
6728         * sunrpc/auth_none.c: Likewise.
6729         * sunrpc/clnt_raw.c: Likewise.
6730         * sunrpc/clnt_tcp.c: Likewise.
6731         * sunrpc/auth_unix.c: Likewise.
6732         * sunrpc/key_call.c: Likewise.
6733         * sunrpc/clnt_gen.c: Likewise.
6734         * sunrpc/pm_getmaps.c: Likewise.
6735         * sunrpc/clnt_simp.c: Likewise.
6736         * sunrpc/pmap_clnt.c: Likewise.
6737         * sunrpc/svc_run.c: Likewise.
6738         * sunrpc/svc.c: Likewise.
6739         * sunrpc/svc_simple.c: Likewise.
6740         * sunrpc/pm_getport.c: Likewise.
6741         * sunrpc/auth_des.c: Likewise.
6742         * sunrpc/svc_auth.c: Likewise.
6743         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6744         __register_frame_info_table_bases, __deregister_frame_info_bases):
6745         Add INTDEF.
6746         (__register_frame_info_bases_internal,
6747         __register_frame_info_table_bases_internal,
6748         __deregister_frame_info_bases_internal): Add prototypes.
6749         (__register_frame_info, __register_frame): Use INTUSE in call to
6750         __register_frame_info_bases.
6751         (__register_frame_info_table): Similarly.
6752         (__deregister_frame_info, __deregister_frame): Similarly.
6753         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6754         sendto as weak alias.
6755         * sysdeps/mach/hurd/sendto.c: Likewise.
6756         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6757         recvfrom as weak alias.
6758         * sysdeps/mach/hurd/recvfrom.c: Likewise.
6759         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6760         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6761         recvmsg as weak alias.
6762         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6763         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6764         sendmsg as weak alias.
6765         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6766         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6767         setsockopt, add setsockopt as weak alias.
6768         * sysdeps/mach/hurd/setsockopt.c: Likewise.
6769         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6770         weak alias.
6771         * sysdeps/mach/hurd/bind.c: Likewise.
6772         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6773         as weak alias.
6774         * sysdeps/mach/hurd/listen.c: Likewise.
6775         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6776         getsockname, add getsockname as weak alias.
6777         * sysdeps/mach/hurd/getsockname.c: Likewise.
6778         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6779         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6780         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6781         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6782         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6783         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6784         Add aliases.
6785         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6786         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6787         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6788         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6789         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6790         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6791         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6792         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6793         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6794         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6795         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6796         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6798 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6800         * locale/programs/localedef.h (show_archive_content): Add verbose
6801         argument.
6802         * locale/programs/localedef.c (main): Adjust caller.
6803         * locale/programs/locarchive.c (struct nameent, struct dataent): New
6804         types.
6805         (nameentcmp, dataentcmp): New functions.
6806         (xstrcmp): Remove.
6807         (show_archive_content): Print verbose listing with --list-archive -v.
6809 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6811         * locale/programs/locarchive.c (open_archive): Take extra argument
6812         readonly.  If true open file with O_RDONLY and don't create the
6813         archive if it doesn't exist.
6814         Adapt all callers.
6815         (close_archive): Don't do anything if fd element is -1.
6816         * locale/programs/localedef.h (open_archive): Adjust prototype.
6817         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6818         call.
6820         * malloc/malloc.c (__posix_memalign): Correct check for size of
6821         alignment value [PR libc/3444].
6823         * include/stdio.h: Remove references to old stdio implementation.
6825         * libio/Makefile (bug-ungetwc2-ENV): Define.
6827 2002-05-13  Roland McGrath  <roland@frob.com>
6829         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6831         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6833 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
6835         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6836         Allocate three, not two, more than LEN when appending '/.'.
6837         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
6838         if NAME ends with '/.' if it is shorter than 2 chars.
6840 2002-05-12  Roland McGrath  <roland@frob.com>
6842         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6843         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6845         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6846         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6848 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6850         * sysdeps/ia64/Makefile: Remove extra endif.
6851         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6853 2002-05-10  Andreas Schwab  <schwab@suse.de>
6855         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6857 2002-05-09  Andreas Jaeger  <aj@suse.de>
6859         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6860         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6861         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6863         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6864         * sysdeps/wordsize-64/glob.c: ...here.
6865         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6866         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6867         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6869 2002-05-08  Roland McGrath  <roland@frob.com>
6871         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6872         O_NOTRANS flag in "." lookup.
6874 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
6876         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6878 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
6880         * locale/duplocale.c (__duplocale): Update special members only
6881         when allocation succeeded.
6883 2002-05-03  Roland McGrath  <roland@frob.com>
6885         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6886         we can only build libc.so.0.3(GLIBC_2.2.6) now.
6888 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
6890         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6891         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6892         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6893         * sysdeps/ia64/ia64libgcc.S: New file.
6895 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
6897         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6899         * malloc/memusage.c: Distinguish anonymous mmap.
6901 2002-05-01  Roland McGrath  <roland@frob.com>
6903         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6904         and use INTDEF on it.
6905         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6907         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6909         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6911 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
6913         * malloc/memusage.c: Add support for tracking mmap & friends.
6914         * malloc/memusage.sh: Implement -m/--mmap option.
6916 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6918         * locale/programs/locarchive.c (create_archive): Add archivefname
6919         argument, create fname from it.
6920         (enlarge_archive): Honour output_prefix.
6921         (open_archive): Likewise.
6923 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6925         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6926         too many stpcpy macros.
6928 2002-04-26  Bruno Haible  <bruno@clisp.org>
6930         * locale/programs/ld-collate.c (collate_read): Cast first argument
6931         for "%.*s" to int.
6933 2002-04-26  Bruno Haible  <bruno@clisp.org>
6935         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6936         __dcngettext_internal): New declarations.
6937         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6938         attribute declarations.
6940 2002-04-30  Roland McGrath  <roland@frob.com>
6942         Removed old GNU stdio implementation; GNU libio is now the only option.
6943         * configure.in: Removed --enable-libio option and @stdio@ subst var.
6944         Define USE_IN_LIBIO unconditionally.
6945         * configure: Regenerated.
6946         * Makeconfig (stdio): Set to libio by default.
6947         * config.make.in (stdio): Variable removed.
6948         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6949         * sysdeps/unix/sysv/linux/configure: Regenerated.
6950         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6951         * sysdeps/mach/hurd/configure: Regenerated.
6952         * stdio/.cvsignore: File removed.
6953         * stdio/Makefile: File removed.
6954         * stdio/Versions: File removed.
6955         * stdio/__fbufsize.c: File removed.
6956         * stdio/__flbf.c: File removed.
6957         * stdio/__fpending.c: File removed.
6958         * stdio/__fpurge.c: File removed.
6959         * stdio/__freadable.c: File removed.
6960         * stdio/__freading.c: File removed.
6961         * stdio/__fsetlocking.c: File removed.
6962         * stdio/__fwritable.c: File removed.
6963         * stdio/__fwriting.c: File removed.
6964         * stdio/clearerr.c: File removed.
6965         * stdio/fclose.c: File removed.
6966         * stdio/fcloseall.c: File removed.
6967         * stdio/feof.c: File removed.
6968         * stdio/ferror.c: File removed.
6969         * stdio/fflush.c: File removed.
6970         * stdio/fgetc.c: File removed.
6971         * stdio/fgetpos.c: File removed.
6972         * stdio/fgets.c: File removed.
6973         * stdio/fileno.c: File removed.
6974         * stdio/fmemopen.c: File removed.
6975         * stdio/fopen.c: File removed.
6976         * stdio/fopncook.c: File removed.
6977         * stdio/fputc.c: File removed.
6978         * stdio/fputs.c: File removed.
6979         * stdio/fread.c: File removed.
6980         * stdio/freopen.c: File removed.
6981         * stdio/fseek.c: File removed.
6982         * stdio/fsetpos.c: File removed.
6983         * stdio/ftell.c: File removed.
6984         * stdio/fwrite.c: File removed.
6985         * stdio/getc.c: File removed.
6986         * stdio/getchar.c: File removed.
6987         * stdio/getdelim.c: File removed.
6988         * stdio/gets.c: File removed.
6989         * stdio/glue.c: File removed.
6990         * stdio/internals.c: File removed.
6991         * stdio/linewrap.c: File removed.
6992         * stdio/linewrap.h: File removed.
6993         * stdio/memstream.c: File removed.
6994         * stdio/newstream.c: File removed.
6995         * stdio/obstream.c: File removed.
6996         * stdio/putc.c: File removed.
6997         * stdio/putchar.c: File removed.
6998         * stdio/puts.c: File removed.
6999         * stdio/rewind.c: File removed.
7000         * stdio/setbuf.c: File removed.
7001         * stdio/setbuffer.c: File removed.
7002         * stdio/setlinebuf.c: File removed.
7003         * stdio/setvbuf.c: File removed.
7004         * stdio/stdio.h: File removed.
7005         * stdio/ungetc.c: File removed.
7006         * stdio/vasprintf.c: File removed.
7007         * stdio/vscanf.c: File removed.
7008         * stdio/vsnprintf.c: File removed.
7009         * stdio/vsprintf.c: File removed.
7010         * stdio/vsscanf.c: File removed.
7011         * sysdeps/generic/defs.c: File removed.
7012         * sysdeps/generic/fdopen.c: File removed.
7013         * sysdeps/generic/pipestream.c: File removed.
7014         * sysdeps/generic/stdio_init.c: File removed.
7015         * sysdeps/generic/sysd-stdio.c: File removed.
7016         * sysdeps/generic/vdprintf.c: File removed.
7017         * sysdeps/mach/hurd/defs.c: File removed.
7018         * sysdeps/mach/hurd/fdopen.c: File removed.
7019         * sysdeps/mach/hurd/pipestream.c: File removed.
7020         * sysdeps/mach/hurd/stdio_init.c: File removed.
7021         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
7022         * sysdeps/mach/hurd/vdprintf.c: File removed.
7023         * sysdeps/posix/defs.c: File removed.
7024         * sysdeps/posix/fdopen.c: File removed.
7025         * sysdeps/posix/pipestream.c: File removed.
7026         * sysdeps/posix/stdio_init.c: File removed.
7027         * sysdeps/posix/vdprintf.c: File removed.
7028         * sysdeps/unix/pipestream.c: File removed.
7029         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
7030         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
7031         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
7033 2002-04-29  Roland McGrath  <roland@frob.com>
7035         * include/libc-symbols.h (link_warning): Use `unused' attribute.
7037 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
7039         * sysdeps/generic/tls.h: Describe what must be defined.
7041         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
7042         glob_in_dir [PR libc/3385].
7043         * posix/globtest.sh: Add test case.
7045         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
7046         //TRANSLIT twice.
7048 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
7050         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
7051         _internal symbol handling.
7052         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
7054 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
7056         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
7057         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
7059 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
7061         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
7062         not _LIBC and RE_ENABLE_I18N.
7063         (build_range_exp): Implement for not _LIBC.
7064         (build_collating_symbol): Likewise.
7065         (parse_bracket_exp): Unify redundant error handlings.
7066         Don't erase mbcset for non matching list in multibyte envs.
7067         (build_word_op): Add '_' to matching list for \w operator.
7068         * posix/regex_internal.c (re_string_construct): Invoke
7069         build_upper_buffer in case of not RE_ENABLE_I18N.
7070         (re_string_reconstruct): Don't touch cur_state in case of not
7071         RE_ENABLE_I18N.
7072         * posix/regex_internal.h (attribute_hidden): New macro in case of
7073         not _LIBC.
7074         (re_charset_t): Define range_starts/ends in case of not _LIBC.
7075         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
7076         RE_ENABLE_I18N.
7077         (transit_state_mb): Likewise.
7078         (check_node_accept_bytes): Implement the code evaluating range
7079         expression in case of not _LIBC.
7080         (find_collation_sequence_value): Hide in case of not _LIBC.
7082 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
7084         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
7085         i386/semctl.c.
7086         (__old_semctl, __new_semctl): Only use va_arg if the argument will
7087         be used.
7089 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
7091         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
7093         * sysdeps/ia64/strncpy.S: Fix recovery code.
7094         Patch by David Mosberger <davidm@hpl.hp.com>.
7096 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
7098         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
7099         GLIBC_2.2.6.
7101 2002-04-14  Bruno Haible  <bruno@clisp.org>
7103         * posix/regex.c (re_max_failures): Add back symbol for binary
7104         compatibility.
7106 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
7108         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
7109         of buffer building functions.
7110         * posix/regex_internal.c (re_string_allocate): New function.
7111         (re_string_realloc_buffers): New function.
7112         (re_string_skip_chars): New function.
7113         (re_string_reconstruct): New function.
7114         (re_string_construct): Adapt it to new interface of buffer building
7115         functions.
7116         (re_string_construct_common): Likewise.
7117         (build_wcs_buffer): Likewise.
7118         (build_wcs_upper_buffer): Likewise.
7119         (build_upper_buffer): Likewise.
7120         (re_string_translate_buffer): Likewise.
7121         (re_string_context_at): Adapt it to variable length buffers.
7122         * posix/regex_internal.h (re_string_t): Add new fields to handle
7123         variable length buffers.
7124         (re_match_context_t): Likewise.
7125         * posix/regexec.c (re_search_internal): Adapt it to new interface
7126         of re_string_t and re_match_context_t.
7127         (acquire_init_state_context): Likewise.
7128         (check_matching): Likewise.
7129         (check_halt_state_context): Likewise.
7130         (proceed_next_node): Likewise.
7131         (set_regs): Likewise.
7132         (sift_states_backward): Likewise.
7133         (clean_state_log_if_need): Likewise.
7134         (sift_states_iter_mb): Likewise.
7135         (sift_states_iter_bkref): Likewise.
7136         (add_epsilon_backreference): Likewise.
7137         (transit_state): Likewise.
7138         (transit_state_sb): Likewise.
7139         (transit_state_mb): Likewise.
7140         (transit_state_bkref): Likewise.
7141         (transit_state_bkref_loop): Likewise.
7142         (check_node_accept): Likewise.
7143         (match_ctx_init): Likewise.
7144         (extend_buffers): New function.
7146 2002-04-21  Bruno Haible  <bruno@clisp.org>
7148         * iconvdata/tst-table.sh: For the second check, use the truncated
7149         GB18030 charmap table, like for the first check.
7151 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
7153         * elf/dl-load.c (open_verify): Correct __lseek parameters.
7154         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
7156 2002-04-23  H.J. Lu  <hjl@gnu.org>
7158         * include/math.h (isfinite): Fix a typo.
7160 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
7162         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
7163         which is created by the test suite.
7165 2002-04-20  Bruno Haible  <bruno@clisp.org>
7167         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
7168         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
7170 2002-04-20  Bruno Haible  <bruno@clisp.org>
7172         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
7173         to avoid gcc warning.
7175 2002-04-20  Bruno Haible  <bruno@clisp.org>
7177         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
7178         of data->__statep->__count.
7180 2002-04-20  Bruno Haible  <bruno@clisp.org>
7182         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
7183         tag characters.
7184         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
7186 2002-04-24  Roland McGrath  <roland@frob.com>
7188         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
7189         use END macro instead of our own .end directive.
7190         Use `callsys' insn mnemonic instead of `call_pal'.
7192         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
7194         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
7195         macro; we need this for Hurd.
7197         Log entry was missing for 2002/03/24 commit of rev 1.8,
7198         goes with 2002-03-17 changes.
7199         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
7200         (sysdep_routines): Append ioperm here.
7201         (sysdep_headers): Append sys/io.h here.
7203 2002-04-23  Roland McGrath  <roland@frob.com>
7205         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
7206         * sysdeps/mach/hurd/sendto.c: Likewise.
7207         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
7208         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
7209         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
7211 2002-04-22  Roland McGrath  <roland@frob.com>
7213         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
7214         failure from i386_io_perm_* RPCs to ENOSYS.
7216 2002-04-22  Andreas Jaeger  <aj@suse.de>
7218         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
7220         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
7222         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
7223         register instead of destroying %rbx.
7225 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
7227         * string/string.h: Declare strerror_r also for XPG6.
7229 2002-04-19  Roland McGrath  <roland@frob.com>
7231         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
7233 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
7235         * Makefile: Add handling of xtests and xcheck targets.
7236         * MakeTAGS: Likewise.
7237         * Makeconfig: Likewise.
7238         * Makerules: Likewise.
7239         * Rules: Likewise.
7240         * manual/Makefile: Likewise.
7241         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
7242         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
7244 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
7246         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
7247         authnone_private_s.
7248         * sunrpc/auth_none.c: Include bits/libc-lock.h.
7249         Delete #ifdef _RPC_THREAD_SAFE_ block.
7250         (authnone_private): Make a struct, not a pointer to struct.
7251         (authnone_private_guard): New once-control variable.
7252         (authnone_create_once): New function, split out of
7253         authnone_create.  No need to allocate memory.
7254         (authnone_create): Just call authnone_create_once via
7255         __libc_once, then return &authnone_private->no_client.
7256         (authnone_marshal): Access private data via CLIENT argument,
7257         not authnone_private pointer.
7258         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
7259         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
7260         authnone_private_s.
7262 2002-04-12  H.J. Lu  <hjl@gnu.org>
7264         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
7266 2002-04-18  Bruno Haible  <bruno@clisp.org>
7268         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
7269         FROM_DIRECTION): Make the FROM direction stateless.
7270         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
7271         FROM_DIRECTION): Likewise.
7273 2002-04-15  Bruno Haible  <bruno@clisp.org>
7275         * iconvdata/JISX0213.TXT: New file.
7276         * iconvdata/jisx0213.h: New file.
7277         * iconvdata/jisx0213.c: New file.
7278         * iconvdata/euc-jisx0213.c: New file.
7279         * iconvdata/shift_jisx0213.c: New file.
7280         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
7281         * iconvdata/EUC-JISX0213.precomposed: New file.
7282         * iconvdata/SHIFT_JISX0213.precomposed: New file.
7283         * iconvdata/SHIFT_JISX0213.irreversible: New file.
7284         * iconvdata/tst-table-to.c (main): Make it work for encodings for
7285         which the "to" direction is stateful.
7286         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
7287         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
7288         SHIFT_JISX0213.
7289         (libJISX0213-routines): New variable.
7290         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
7291         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
7292         (LDFLAGS-libJISX0213.so): New variable.
7293         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
7294         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
7295         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
7297 2002-04-15  Bruno Haible  <bruno@clisp.org>
7299         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
7300         uint32_t.  Update to Unicode 3.2.
7301         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
7302         (BODY for TO_LOOP): Handle the ASCII range specially.
7303         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
7304         * iconvdata/testdata/BIG5HKSCS: Remove a character.
7305         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
7307 2002-04-15  Bruno Haible  <bruno@clisp.org>
7309         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
7310         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
7312 2002-04-15  Bruno Haible  <bruno@clisp.org>
7314         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
7315         (ucs4_to_cns11643): Update.
7316         * iconvdata/cns11643.c: Update to Unicode 3.2.
7317         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
7318         __cns11643_from_ucs4p2_tab): Regenerated.
7319         (__cns11643_from_ucs4p2c_tab): New array.
7320         * iconvdata/cvs11643l1.c: Update comments.
7321         * iconvdata/EUC-TW.irreversible: Remove two entries.
7323 2002-04-15  Bruno Haible  <bruno@clisp.org>
7325         * locale/C-translit.h.in: Update to Unicode 3.2.
7326         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
7327         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
7329 2002-04-15  Bruno Haible  <bruno@clisp.org>
7331         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
7332         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
7334 2002-04-15  Bruno Haible  <bruno@clisp.org>
7336         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
7337         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
7338         always one byte, not 0 bytes in some cases and 2 bytes in others.
7340         * iconvdata/tst-table-from.c (main): Correct the usage message.
7342 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
7344         * posix/regcomp.c (parse_expression): Fix incorrect error code.
7345         (parse_dup_op): Fix error handling like "a{}".
7346         (parse_bracket_exp): Add error handling.
7347         (fetch_number): Add error handling for "a{<very_large_number>}".
7349 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
7351         * posix/regcomp.c (parse_bracket_symbol): Add error handling
7352         in case that the symbol name is too long.
7353         (build_charclass): Handle [:lower:]/[:uppper:] correctly
7354         in case of REG_ICASE.
7356 2002-04-19  Andreas Jaeger  <aj@suse.de>
7358         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
7359         <hartvige@mips.com>.
7361 2002-04-15  H.J. Lu  <hjl@gnu.org>
7363         * include/math.h (__finitel_internal): Declare only if
7364         __NO_LONG_DOUBLE_MATH is not defined.
7365         (__isinfl_internal): Likewise.
7366         (__isnanl_internal): Likewise.
7368         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
7369         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
7370         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
7371         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
7372         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7373         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
7374         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7376         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
7377         __fcntl_internal.
7379         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
7380         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
7382 2002-04-15  Bruno Haible  <bruno@clisp.org>
7384         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
7385         (BODY for TO_LOOP): Likewise.
7386         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
7387         * iconvdata/tst-table.sh: Add support for encodings which contain
7388         precomposed Unicode characters, known to the iconv converter in both
7389         directions but not listed in the charmap.
7390         * iconvdata/IBM856.irreversible: New file.
7391         * iconvdata/IBM922.irreversible: New file.
7392         * iconvdata/IBM1132.irreversible: New file.
7393         * iconvdata/IBM1133.irreversible: New file.
7394         * iconvdata/IBM1160.irreversible: New file.
7395         * iconvdata/IBM1161.irreversible: New file.
7396         * iconvdata/IBM1163.irreversible: New file.
7397         * iconvdata/IBM1164.irreversible: New file.
7398         * iconvdata/ARMSCII-8.irreversible: New file.
7399         * iconvdata/TCVN5712-1.precomposed: New file.
7400         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
7401         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
7402         ARMSCII-8, TCVN5712-1.
7403         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
7404         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
7405         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
7406         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
7408 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
7410         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
7411         for EVENING69.  Include offsets in TZ environment variable.
7413 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
7415         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
7416         avoid compiler warnings.
7418         * locale/programs/localedef.c (main): Always call
7419         construct_output_path.
7421         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
7423         * locale/programs/locfile.c (to_archive): New variable.  To collect
7424         data which has to be added to the locale archive.
7425         (write_all_categories): Take new third parameter with locale name.
7426         Unless no_archive flag set add new locale data to the archive
7427         (write_locale_data): Unless no-archive flag set store generated data
7428         in to_archive data structure instead of generation output file.
7429         Add new parameter with locale category index.
7430         * locale/programs/locfile.h: Add new parameters in declaractions of
7431         write_all_categories and write_locale_data.
7432         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
7433         --add-to-archive, and --delete-from-archive options.  Pass extra
7434         parameter to write_all_categories.
7435         * locale/programs/localedef.h: Add prototypes for functions in
7436         locarchive.c.
7437         * locale/locarchive.h: New file.
7438         * locale/programs/locarchive.c: New file.
7439         * locale/Makefile (distribute): Add programs/locarchive.c and
7440         locarchive.h.
7441         (localedef-modules): Add md5 and locarchive.
7442         Add vpath to crypt subdir for md5.c.
7444         * locale/programs/ld-address.c: Pass locale category ID as new second
7445         parameter to write_locale_data.
7446         * locale/programs/ld-collate.c: Likewise.
7447         * locale/programs/ld-ctype.c: Likewise.
7448         * locale/programs/ld-identification.c: Likewise.
7449         * locale/programs/ld-measurement.c: Likewise.
7450         * locale/programs/ld-messages.c: Likewise.
7451         * locale/programs/ld-monetary.c: Likewise.
7452         * locale/programs/ld-name.c: Likewise.
7453         * locale/programs/ld-numeric.c: Likewise.
7454         * locale/programs/ld-paper.c: Likewise.
7455         * locale/programs/ld-telephone.c: Likewise.
7456         * locale/programs/ld-time.c: Likewise.
7458         * locale/simple-hash.c: Move compute_hashval function from here...
7459         * locale/hashval.h: ...to here.  New file.
7460         * locale/simple-hash.h: Add prototype for compute_hashval.
7462         * include/libintl.h: Minor cleanups.
7464 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
7466         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
7468 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
7470         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
7472 2002-04-14  Bruno Haible  <bruno@clisp.org>
7474         * locale/programs/charmap.c (charmap_read): Don't access result if
7475         result == NULL.
7477 2002-02-17  Andreas Schwab  <schwab@suse.de>
7479         * elf/reldep7.c: New file.
7480         * elf/reldep7mod1.c: New file.
7481         * elf/reldep7mod2.c: New file.
7482         * elf/Makefile: Add rules to build and run reldep7.
7484 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
7486         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
7487         the end of the function.  Pass original flags to recursive call if
7488         add_dependency failed.
7489         (_dl_lookup_versioned_symbol): Likewise.
7491 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
7493         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
7494         early, but check whether it overflowed afterwards.
7495         * time/tst-mktime.c (main): Add new tests.
7497 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
7499         * debug/xtrace.sh: Fix program name in help message.
7500         Patch by Roger Luethi <rl@hellgate.ch>.
7502         * include/sys/stat.h: Add prototypes for __lxstat_internal and
7503         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
7504         NOT_IN_libc.
7505         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
7506         * sysdeps/mach/hurd/lxstat.c: Likewise.
7507         * sysdeps/unix/common/lxstat.c: Likewise.
7508         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
7509         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
7510         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
7511         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
7512         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
7513         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
7514         * sysdeps/mach/hurd/lxstat64.c: Likewise.
7515         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
7516         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
7518         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
7519         prototypes.  Add __mbrlen and __mbrtowc macros.
7520         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
7521         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
7523         * include/unistd.h: Add prototype for __write_internal and add
7524         __libc_write macro is SHARED.
7525         * sysdeps/generic/write.c: Use INTDEF for __write.
7526         * sysdeps/mach/hurd/write.c: Likewise.
7527         * sysdeps/unix/sysv/aix/write.c: Likewise.
7528         * sysdeps/unix/syscalls.list: Add __libc_write alias.
7530         * assert/assert.c: Replace STR_N_SIZE with something usable in
7531         macro arguments.
7532         * assert/assert-perr.c: Likewise.
7534         * include/sys/socket.h: Declare __libc_sa_len_internal and define
7535         SA_LEN macro to use it if not NOT_IN_libc.
7536         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
7538         * include/fcntl.h: Declare __open_internal and define __open and
7539         __libc_open macros if not NOT_IN_libc.
7540         * sysdeps/generic/open.c: Use INTDEF for __open.
7541         * sysdeps/mach/hurd/open.c: Likewise.
7542         * sysdeps/unix/sysv/aix/open.c: Likewise.
7543         * sysdeps/unix/syscalls.list: Add __open_internal alias.
7545         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
7546         has correct number.
7548         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
7549         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
7550         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7551         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7553         * include/wctype.h: Declare __iswalpha_l_internal,
7554         __iswdigit_l_internal, __iswspace_l_internal,
7555         __iswxdigit_l_internal, and __iswctype_internal.  Define
7556         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
7557         __iswxdigit_l macros if not NOT_IN_libc.
7558         * wctype/iswctype.c: Use INTDEF for __iswctype.
7559         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
7561         * include/math.h: Declare __isinf_internal, __isinfl_internal,
7562         __isnan_internal, and __isnanl_internal.
7563         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
7564         __isnan, and __isnanl.
7565         * stdio-common/printf_size.c: Likewise.
7566         * sysdeps/generic/printf_fphex.c: Likewise.
7567         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
7568         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7569         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
7570         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
7571         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
7572         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7573         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
7574         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7575         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
7576         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7577         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
7578         * sysdeps/m68k/s_isinfl.c: Likewise.
7579         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
7580         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
7582         * include/sys/time.h: Declare __gettimeofday_internal and define
7583         __gettimeofday macro if not NOT_IN_libc.
7584         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
7585         * sysdeps/mach/gettimeofday.c: Likewise.
7586         * sysdeps/posix/gettimeofday.c: Likewise.
7587         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
7588         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
7589         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
7590         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
7592         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
7593         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
7594         Remove __lstat and __fstat inline functions.
7595         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
7596         * sysdeps/mach/hurd/fxstat.c: Likewise.
7597         * sysdeps/unix/fxstat.c: Likewise.
7598         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
7599         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
7600         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
7601         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
7602         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
7603         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
7604         * sysdeps/mach/hurd/fxstat64.c: Likewise.
7605         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
7606         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
7608         * include/unistd.h: Declare __getpid_internal and define
7609         __getpid macro if not NOT_IN_libc.
7610         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
7611         * sysdeps/generic/getpid.c: Likewise.
7612         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
7613         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
7615         * include/unistd.h: Declare __getpgid_internal and define
7616         __getpgid macro if not NOT_IN_libc.
7617         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
7618         * sysdeps/mach/hurd/getpgid.c: Likewise.
7619         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
7620         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
7621         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
7622         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
7624         * include/unistd.h: Declare __getpagesize_internal and define
7625         __getpagesize macro if not NOT_IN_libc.
7626         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
7627         __getpagesize.
7628         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
7629         * sysdeps/mach/getpagesize.c: Likewise.
7630         * sysdeps/posix/getpagesize.c: Likewise.
7631         * sysdeps/unix/getpagesize.c: Likewise.
7632         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
7633         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7634         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
7635         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
7637 2002-04-13  Andreas Jaeger  <aj@suse.de>
7639         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
7640         as clobber to reduce register pressure.
7641         (__strpbrk_cg): Likewise.
7642         (__mempcpy_by4): Likewise.
7643         (__strstr_cg): Likewise.
7644         Add prototype for __memrchr.
7646 2002-04-13  Andreas Schwab  <schwab@suse.de>
7648         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
7649         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
7650         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
7652 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
7654         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
7655         check whether the caller prefers getting the most recent version of
7656         a symbol of the earliest version.
7657         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
7658         _dl_do_lookup to also take the new parameter and pass it on.
7659         Change 'explicit' parameter of _dl_lookup_symbol and
7660         _dl_lookup_versioned_symbol to flags.  Adjust tests.
7661         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7662         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
7663         _dl_lookup_versioned_symbol.
7664         * elf/dl-reloc.c: Likewise.
7665         * elf/dl-runtime.c: Likewise.
7666         * elf/dl-sym.c: Likewise.
7667         * sysdeps/mips/dl-machine.h: Likewise.
7669 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7671         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
7672         in a token.
7673         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
7675 2002-04-10  Andreas Jaeger  <aj@suse.de>
7677         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
7679         * include/argz.h: Remove extra char from last patch.
7681 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
7683         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
7684         * sysdeps/unix/sysv/aix/chown.c: Likewise.
7685         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
7686         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
7687         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7688         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
7689         __chown_internal.
7690         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
7692         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
7693         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
7694         * intl/ngettext.c: Likewise.
7696         * include/sys/socket.h: Declare __connect_internal and define
7697         __connect macro if not NOT_IN_libc.
7698         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
7699         * sysdeps/unix/sysv/aix/connect.c: Likewise.
7700         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
7702         * include/unistd.h: Declare __close_internal and define __close macro
7703         if not NOT_IN_libc.
7704         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
7705         WJUMP3): Add extra parenthesis to avoid expanding element names with
7706         macors like __close.
7707         * sysdeps/unix/syscalls.list: Add __close_internal alias.
7709         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
7710         if not NOT_IN_libc.
7711         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
7712         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
7713         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
7715         * include/unistd.h: Declare __fork_internal and define __fork macro
7716         if not NOT_IN_libc.
7717         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
7718         * sysdeps/unix/sysv/aix/fork.c: Likewise.
7719         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7721         * include/stdio_ext.h: Declare __fsetlocking_internal and define
7722         __fsetlocking macro to use it if not NOT_IN_libc.
7723         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7725         * libio/__fbufsize.c: Correct copyright.
7726         * libio/__flbf.c: Likewise.
7727         * libio/__fpending.c: Likewise.
7728         * libio/__fpurge.c: Likewise.
7729         * libio/__freadable.c: Likewise.
7730         * libio/__freading.c: Likewise.
7731         * libio/__fsetlocking.c: Likewise.
7732         * libio/__fwritable.c: Likewise.
7733         * libio/__fwriting.c: Likewise.
7735         * include/stdio.h: Declare __asprintf_internal and define __asprintf
7736         macro to use it if not NOT_IN_libc.
7737         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7739         * include/mntent.h: Declare __setmntent_internal,
7740         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
7741         __getmntent_r, and __endmntent macros to use these functions if not
7742         NOT_IN_libc.
7743         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7744         __endmntent.
7746         * include/math.h: Declare __finite_internal, __finitef_internal, and
7747         __finitel_internal.  Redefine isfinite macro if in libc or libm using
7748         these functions.
7749         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7750         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7751         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7752         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7753         * sysdeps/i386/fpu/s_finitef.S: Likewise.
7754         * sysdeps/i386/fpu/s_finitel.S: Likewise.
7755         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7756         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7757         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7758         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7760         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
7761         to use this function if not NOT_IN_libc.
7762         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7763         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7764         * sysdeps/mach/hurd/fcntl.c: Likewise.
7765         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7766         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7768         * include/argz.h: Declare __argz_count_internal and
7769         __argz_stringify_internal.
7770         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7771         __argz_stringify.
7772         * string/argz-count.c: Use INTDEF for __argz_count.
7773         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7775         * include/stdlib.h: Declare __cxa_atexit_internal and define
7776         __cxa_atexit macro if not NOT_IN_libc.
7777         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7778         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7780         * assert/assert.c: Use INTDEF for __assert_fail.
7781         * assert/__assert.c: Use INTUSE for call to __assert_fail.
7782         * include/assert.h: Declare __assert_fail_internal.
7784         * extra-lib.mk: Mark assignment to lib with override.
7786 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7788         * Makerules: Use cppflags-iterator.mk to add defines for all test
7789         source files.
7791 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
7793         * elf/elf.h: Define R_SH_TLS_xxx macros.
7794         * elf/rtld.c: Remove an extra parenthesis.
7795         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7796         TLS_GD macros.
7797         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7798         * sysdeps/sh/dl-lookupcfg.h: New file.
7799         * sysdeps/sh/dl-tls.h: New file.
7800         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7801         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7802         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7803         R_SH_TLS_TPOFF32 relocations.
7805 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7807         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7808         of NOT_IN_LIBC.
7809         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7810         * include/stdlib.h: Likewise.
7812 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
7814         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7815         instead of _RTLD_LOCAL.
7816         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7817         * include/unistd.h: Likewise.
7818         * sysdeps/generic/ldsodefs.h: Likewise.
7820         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7821         if in libc or ld.so.
7823 2002-04-08  Andreas Jaeger  <aj@suse.de>
7825         * elf/cache.c (print_entry): Support x86-64.
7827 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7829         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7830         with one accessing the locale data structures directly.
7831         * stdio-common/printf-prs.c: Include localeinfo.h for new
7832         MB_CUR_MAX definition.
7834         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7835         is the name of the source file without extension.
7836         * Makefile (distribute): Add cppflags-iterator.mk.
7837         * cppflags-iterator.mk: New file.
7838         * extra-lib.mk: For the sources of the library run
7839         cppflags-iterator.mk.
7841         * include/libintl.h: Declare __dcgettext_internal and
7842         _libc_intl_domainname_internal.  Define __dcgettext using these
7843         two symbols if used in libc itself.
7844         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7845         _libc_intl_domainname_internal.
7846         * argp/argp-parse.c: Likewise.
7847         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7848         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7849         * intl/gettext.c: Likewise.
7850         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7851         alias.
7852         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7853         __dcgettext.
7854         * posix/regex_internal.c (gettext): Likewise.
7856 2002-04-08  Andreas Jaeger  <aj@suse.de>
7858         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7860         * sysdeps/x86_64/fpu/s_llrint.S: New file.
7861         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7862         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7863         * sysdeps/x86_64/fpu/s_lrint.S: New file.
7864         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7865         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7867 2002-04-08  Roland McGrath  <roland@frob.com>
7869         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7870         widening __hurd_fail value.
7872 2002-04-07  Roland McGrath  <roland@frob.com>
7874         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7875         <mach/machine/alpha_instruction.h>.
7876         (_hurd_setup_sighandler): Take proper arguments for current decls.
7877         Update code to use _hurdsig_catch_fault.
7878         Use `callsys' instruction instead of `call_pal'.
7879         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7881         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7882         (ALIGN, at, AT, fp): New macros.
7884 2002-04-06  Roland McGrath  <roland@frob.com>
7886         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7888         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7889         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7891         * sysdeps/mach/hurd/bind.c: Use prototype definition.
7892         * sysdeps/mach/hurd/connect.c: Likewise.
7893         * sysdeps/mach/hurd/getsockopt.c: Likewise.
7894         * sysdeps/mach/hurd/setsockopt.c: Likewise.
7896         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7897         __msg_sig_post RPC.
7899         * hurd/catch-exc.c: Use integer_t instead of int.
7900         * hurd/hurdfault.c: Likewise.
7902         * sysdeps/mach/hurd/alpha/exc2signal.c
7903         (_hurd_exception2signal): Rewritten.
7904         * sysdeps/mach/hurd/alpha/longjmp-ts.c
7905         (_hurd_longjmp_thread_state): Rewritten.
7907 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
7909         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7910         DB_LOOKUP_FCT prototype.
7911         * nss/getXXent_r.c: Likewise.
7912         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7913         * inet/getaliasname_r.c: Likewise.
7914         * inet/getnetbyad_r.c: Likewise.
7915         * inet/getnetbynm_r.c: Likewise.
7916         * inet/getnetent_r.c: Likewise.
7917         * inet/getproto_r.c: Likewise.
7918         * inet/getprtent_r.c: Likewise.
7919         * inet/getprtname_r.c: Likewise.
7920         * inet/getrpcbyname_r.c: Likewise.
7921         * inet/getrpcbynumber_r.c: Likewise.
7922         * inet/getrpcent_r.c: Likewise.
7923         * inet/getservent_r.c: Likewise.
7924         * inet/getsrvbynm_r.c: Likewise.
7925         * inet/getsrvbypt_r.c: Likewise.
7926         * shadow/getspent_r.c: Likewise.
7927         * shadow/getspnam_r.c: Likewise.
7929         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7931         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7932         Use i686-friendly PIC code.
7933         * sysdeps/i386/elf/setjmp.S: Likewise.
7935         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7937         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7938         list.
7939         * elf/Versions: Remove it here.
7941 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
7943         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7944         direction.  Reported by H . J . Lu <hjl@lucon.org>.
7946 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7948         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7949         test just before the test runs.
7950         * intl/tst-translit.sh: Likewise.
7951         * intl/tst-codeset.sh: Likewise.
7953         * timezone/zic.c: Update from tzcode2002c.
7954         * timezone/asia: Update from tzdata2002c.
7955         * timezone/backward: Likewise.
7956         * timezone/europe: Likewise.
7957         * timezone/northamerica: Likewise.
7958         * timezone/northamerica: Likewise.
7959         * timezone/northamerica: Likewise.
7960         * timezone/southamerica: Likewise.
7961         * timezone/zone.tab: Likewise.
7963 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
7965         * sysdeps/generic/brk.c (__curbrk): Declare.
7966         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7967         * sysdeps/generic/dl-sbrk.c: Likewise.
7968         * sysdeps/unix/arm/dl-brk.S: New file.
7969         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7970         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7971         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7972         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7973         * sysdeps/unix/i386/dl-brk.S: New file.
7974         * sysdeps/unix/mips/dl-brk.S: New file.
7975         * sysdeps/unix/sparc/dl-brk.S: New file.
7976         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7977         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7978         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7979         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7981 2002-04-03  Andreas Schwab  <schwab@suse.de>
7983         * Makefile (headers): Add gnu/lib-names.h here instead of
7984         install-others.
7985         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7986         installation rule.
7987         (install-headers): Add dependency on install-headers-nosubdir.
7988         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7989         instead of install-others.
7990         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7991         installation rule.
7993 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7995         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7996         Reported by Sam Roberts <sroberts@uniserve.com>.
7998 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
8000         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
8001         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
8002         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
8003         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
8005 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
8007         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
8008         (RTLD_START): Ditto.
8009         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
8010         dependency violation.
8012 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
8014         * time/mktime.c (__mktime_internal): Move check for year < 70 below
8015         all variable declarations.
8017 2002-04-04  Andreas Schwab  <schwab@suse.de>
8019         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
8021 2002-04-04  Andreas Jaeger  <aj@suse.de>
8023         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
8024         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
8026         * sysdeps/x86_64/fpu/s_fabs.c: New file.
8027         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
8028         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
8030         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
8032         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
8034         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
8035         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
8037         * configure.in: Handle all mips entries the same.
8039         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
8040         * sysdeps/mips/mips3/*: Likewise.
8041         * sysdeps/mips/p40/bits/endian.h: Likewise.
8043 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
8045         * misc/dirname.c (dirname): Ignore trailing slashes at end of
8046         non-null result [PR libc/2600].
8048         * misc/tst-dirname.c: Add more tests.
8050 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
8052         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
8053         define a code_set_name provide one based on the filename.
8055         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
8057 2001-12-28  Andreas Jaeger  <aj@suse.de>
8059         * time/mktime.c (__mktime_internal): Check for year < 70
8060         [PR libc/2738].
8062 2002-04-03  Andreas Jaeger  <aj@suse.de>
8064         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
8065         shmat.
8066         Reported by Andi Kleen <ak@suse.de>.
8068 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
8070         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
8071         * sysdeps/generic/w_lgammaf.c: Likewise.
8072         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
8074         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
8075         Adjust for new output format of the backtrace functions.
8077         * misc/syslog.c (vsyslog): Only use cleanup handler if
8078         _LIBC_REENTRANT is defined [PR libc/2924].
8080         * libio/Makefile (tests): Add bug-ungetwc2.
8081         * libio/bug-ungetwc2.c: New file.
8083         * manual/install.texi: Typographical and grammatical cleanup.
8084         Patch by Dennis Grace <dgrace@us.ibm.com>.
8086         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
8087         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
8089         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
8090         always "&".  Adjust callers.
8091         Add "_" prefix to several generated definitions.
8092         Patch by paul@serice.net [PR libc/3158].
8094 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8096         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
8097         size of _dl_arm_cap_flags.
8098         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
8100         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
8101         Define as 8.
8103 2002-03-22  H.J. Lu  <hjl@gnu.org>
8105         * scripts/firstversions.awk: Check the first version.
8107 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8109         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
8110         dependencies must be stable to work correctly.
8111         Reported by martin.lubich@datacon.at.
8113         * libio/bug-ungetwc1.c: New file.
8114         * libio/Makefile (tests): Add bug-ungetwc1.
8116         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
8117         if stream was last used for writing.
8119         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
8120         number [PR libc/3111].
8122         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
8123         to ...
8124         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
8126 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
8128         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
8129         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
8130         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
8131         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
8132         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
8134 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
8136         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
8137         dynamic tags.
8139 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8141         * sysdeps/i386/fpu/s_fabs.S: New file.
8142         * sysdeps/i386/fpu/s_fabsf.S: New file.
8143         * sysdeps/i386/fpu/s_fabsl.S: New file.
8144         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
8145         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
8146         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
8148 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8150         * rt/tst-shm.c (do_test): Add one more test for size of shared
8151         memory object.
8153 2002-03-29  Wolfram Gloger  <wg@malloc.de>
8155         * malloc/malloc.c: Add short description and prototypes for
8156         malloc_get_state, malloc_set_state and posix_memalign, for
8157         consistency and to avoid warnings with -Wstrict-prototypes.
8158         Reported by Andreas Jaeger <aj@suse.de>.
8160 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8162         * po/gl.po: Update from translation team.
8164 2002-03-31  Roland McGrath  <roland@frob.com>
8166         * hurd/hurdselect.c (_hurd_select): Fix
8167         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
8168         Use a union rather than casts to compare mach_msg_type_t as int.
8170 2002-03-25  Roland McGrath  <roland@frob.com>
8172         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
8173         check off the end of NAME when it's shorter than 2 chars.
8174         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
8176 2002-03-17  Roland McGrath  <roland@frob.com>
8178         * sysdeps/mach/hurd/i386/sys/io.h: New file.
8179         * sysdeps/mach/hurd/i386/ioperm.c: New file.
8180         * sysdeps/mach/hurd/i386/Dist: Add them.
8181         * sysdeps/mach/hurd/i386/Versions
8182         (libc: GLIBC_2.2.6): New set, add ioperm.
8183         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
8184         (mach_interface_list): Check for mach_i386.defs.
8185         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
8186         * sysdeps/mach/configure: Regenerated.
8188 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
8190         * po/fr.po: Update from translation team.
8192 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8194         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
8195         getpriority from syscalls list.
8197 2002-03-28  Andreas Jaeger  <aj@suse.de>
8199         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
8200         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
8201         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
8202         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
8204 2002-03-27  Andreas Jaeger  <aj@suse.de>
8206         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8207         sigcontext): Follow further kernel change.
8209         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
8210         kernel change.
8212         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
8213         Change for struct sigcontext change.
8215         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
8216         Follow changes in struct sigcontext.
8218         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
8219         sysycall, use wrapper instead.
8221 2002-03-26  Andreas Jaeger  <aj@suse.de>
8223         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
8224         read and write accesses as detailed as possible.
8225         (__memcpy_by2): Likewise.
8226         (__memcpy_g): Likewise.
8227         (memmove): Likewise.
8228         (memcmp): Likewise.
8229         (__memset_ccn_by4): Likewise.
8230         (__memset_ccn_by2): Likewise.
8231         (__memset_gcn_by4): Likewise.
8232         (__memset_gcn_by2): Likewise.
8233         (memchr): Likewise.
8234         (__memrchr): Likewise.
8235         (rawmemchr): Likewise.
8236         (__strlen_g): Likewise.
8237         (__strcpy_g): Likewise.
8238         (__mempcpy_by4): Likewise.
8239         (__mempcpy_by2): Likewise.
8240         (__mempcpy_byn): Likewise.
8241         (__stpcpy_g): Likewise.
8242         (__strncpy_by4): Likewise.
8243         (__strncpy_by2): Likewise.
8244         (__strncpy_byn): Likewise.
8245         (__strncpy_gg): Likewise.
8246         (__strcat_c): Likewise.
8247         (__strcat_g): Likewise.
8248         (__strncat_g): Likewise.
8249         (__strcmp_gg): Likewise.
8250         (__strncmp_g): Likewise.
8251         (__strchr_c): Likewise.
8252         (__strchr_g): Likewise.
8253         (__strchrnul_c): Likewise.
8254         (__strchrnul_g): Likewise.
8255         (__strrchr_c): Likewise.
8256         (__strrchr_g): Likewise.
8257         (__strrchr_c): Likewise.
8258         (__strrchr_g): Likewise.
8259         (__strcspn_c1): Likewise.
8260         (__strcspn_cg): Likewise.
8261         (__strcspn_g): Likewise.
8262         (__strcspn_g): Likewise.
8263         (__strspn_c1): Likewise.
8264         (__strspn_cg): Likewise.
8265         (__strspn_g): Likewise.
8266         (__strspn_g): Likewise.
8267         (__strpbrk_cg): Likewise.
8268         (__strpbrk_g): Likewise.
8269         (__strstr_cg): Likewise.
8270         (__strstr_g): Likewise.
8272         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
8273         Michal Ludvig <mludvig@suse.cz>.
8275         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
8276         compatibilty, adjust for kernel changes.
8278         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8279         sigcontext): Adjust for kernel changes.
8281 2002-03-25  Andreas Jaeger  <aj@suse.de>
8283         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
8284         little endian.
8285         Reported by Artur Zaprzala <zybi@talex.com.pl>.
8287 2002-03-24  Andreas Jaeger  <aj@suse.de>
8289         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
8291         * stdio-common/tst-fdopen.c (main): Remove unused variable.
8293         * iconv/tst-iconv3.c (main): Use correct printf strings.
8295 2002-03-18  Roland McGrath  <roland@frob.com>
8297         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
8298         (CMGROUP_MAX): New macro.
8300 2002-03-23  Roland McGrath  <roland@frob.com>
8302         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
8303         * sysdeps/posix/shm_unlink.c: Likewise.
8305 2002-03-22  Roland McGrath  <roland@frob.com>
8307         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
8308         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
8309         under --enable-libio.
8310         * sysdeps/mach/hurd/configure: Regenerated.
8312 2002-03-23  Roland McGrath  <roland@frob.com>
8314         * sysdeps/mach/hurd/i386/Makefile
8315         (sysdep_routines, shared-only-routines): Don't add framestate,
8316         reverting 2001-10-02 change.
8317         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
8318         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
8319         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8320         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8321         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
8322         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
8323         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8324         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
8325         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
8326         Do it here instead, only if [$(unwind-find-fde) = yes].
8328 2002-03-23  Andreas Jaeger  <aj@suse.de>
8330         * signal/signal.h: Fix typo. Patch by Steve Kemp
8331         <skx@tardis.ed.ac.uk>.
8333 2002-03-22  Andreas Jaeger  <aj@suse.de>
8335         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
8336         getresuid.
8338         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8339         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
8340         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8341         user_fpregs_struct): Rename fwd.
8343         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
8344         Follow sigcontext changes.
8346 2002-03-22  Andreas Jaeger  <aj@suse.de>
8348         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
8349         changes for NaNs on MIPS.
8350         Patch by Hartvig Ekner <hartvige@mips.com>.
8352 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
8354         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
8355         Use realloc if too large.
8356         (addgrbyid): Likewise.
8357         * nscd/hstcache.c (addhstbyname): Likewise.
8358         (addhstbyaddr): Likewise.
8359         (addhstbynamev6): Likewise.
8360         (addhstbyaddrv6): Likewise.
8361         * nscd/pwdcache.c (addpwbyname): Likewise.
8362         (addpwbyuid): Likewise.
8364 2002-03-21  Andreas Jaeger  <aj@suse.de>
8366         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8367         _fpstate): Add separate struct for x86-64.
8369         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8370         user_fpregs_struct): Change member names to follow kernel.
8372 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
8374         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
8375         Correctly close the UDP connection right away [PR libc/3120].
8377 2002-03-20  Andreas Jaeger  <aj@suse.de>
8379         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8380         user_fpregs_struct): Fix for changed kernel struct.
8381         (struct user_regs_struct): Likewise.
8382         (struct user): Likewise.
8383         Add 32-bit x86 compatibility.
8385         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
8387 2002-03-19  Andreas Jaeger  <aj@suse.de>
8389         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
8391 2002-03-18  Andreas Jaeger  <aj@suse.de>
8393         * iconvdata/Makefile: Only run tests when shared libs are
8394         available.
8396 2002-03-17  Andreas Jaeger  <aj@suse.de>
8398         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
8400         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
8402         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
8403         bits.
8405         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
8406         (CAUSE_SHIFT): New macro.
8407         Patch by Hartvig Ekner <hartvige@mips.com>.
8409         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
8410         * sysdeps/generic/unwind-pe.h: Likewise.
8412         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
8413         type to _IO_setb.
8415         * libio/stdio.c (AL2): Define variant when visibility attribute is
8416         not supported.
8418         * include/libc-symbols.h (_INTVARDEF): Define variant when
8419         visibility attribute is not supported.
8421 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
8423         * po/fr.po: Update from translation team.
8425 2002-02-25  Bruno Haible  <bruno@clisp.org>
8427         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
8429 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
8431         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
8432         buffers if _IO_file_attach failed.
8434         * libio/fileops.c (_IO_file_open): Close file descriptor if
8435         _IO_SEEKOFF call failed.
8437 2002-03-15  H.J. Lu  <hjl@gnu.org>
8438             Ulrich Drepper  <drepper@redhat.com>
8440         * configure.in: Check for availability of
8441         init_array/fini_array/preinit_array handling in binutils.
8442         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
8443         * config.make.in (have-initfini-array): New variable.
8445 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
8447         * stdio-common/tst-printf.c (main): Comment out one test which
8448         checked the compiler's ability to fold floating-point constants
8449         but not really printf.
8450         (rfg3): Make s const.
8451         * stdio-common/tst-printf.sh: Adjust for removed test.
8453         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
8454         internal function.  Adjust for internal_function calling convention.
8455         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
8456         as internal_function.
8458         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
8459         hidden.
8461         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
8462         declaration and definition.
8463         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
8464         declaration.
8465         * nss/getXXent_r.c: Likewise.
8466         * nss/nsswitch.h (db_lookup_function): Add internal_function to
8467         definition.
8469         * include/time.h: Declare __localtime_r as hidden.
8471         * include/aliases.h: Declare __getaliasent_r as hidden.
8472         * include/grp.h: Declare __getgrent_r as hidden.
8473         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
8474         __getservent_r, and __getprotoent_r as hidden.
8475         * include/pwd.h: Declare __getpwent_r as hidden.
8476         * include/shadow.h: Declare __getspent_r as hidden.
8477         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
8479         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
8480         and __gconv_transliterate as hidden.
8481         Add internal_function to __gconv_get_path declaration.
8482         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
8483         definition.  Add attribute_hidden to __gconv_read_conf definition.
8485 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
8487         * elf/rtld.c: Declare _environ as hidden.
8488         * sysdeps/generic/dl-environ.c: Likewise.
8489         * sysdeps/generic/dl-sysdep.c: Likewise.
8491         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
8492         _dl_mcount_internal as hidden.
8494         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
8495         * sysdeps/generic/dl-brk.c: New file.
8496         * sysdeps/generic/dl-sbrk.c: New file.
8497         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
8498         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
8500         * elf/dl-minimal.c (malloc): Declare _end as hidden.
8501         (__errno_location): New function.  Declare errno as hidden.
8502         * elf/rtld.c (_dl_argc): Define as hidden.
8503         (_dl_skip_args): Define as hidden.
8504         (_begin, _end): Declare as hidden.
8505         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
8506         * sysdeps/generic/entry.h (_start): Declare as hidden.
8507         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
8508         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
8509         _dl_runtime_resolve and _dl_runtime_profile as hidden.
8510         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
8512 2002-03-14  Roland McGrath  <roland@frob.com>
8514         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
8516         * Makeconfig (%.v.i, %.v): New implicit rules.
8517         (preprocess-versions): Variable removed.
8518         ($(common-objpfx)shlib-versions.v.i): New target giving just the
8519         shlib-versions input files as dependencies.
8520         ($(common-objpfx)soversions.i): Depend on that instead of the input
8521         files.  Use it as input instead of using a pipeline.
8522         (postclean-generated): Append soversions.i, shlib-versions.v, and
8523         shlib-versions.v.i here.
8524         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
8525         the Versions.def input files as dependencies.
8526         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
8527         ($(common-objpfx)Versions.all): Depend on that instead of the input
8528         files.  Use it as input instead of using a pipeline.
8529         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
8530         (postclean-generated): Append those .v and .v.i files here.
8532 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
8534         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
8535         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
8536         Remove.
8538 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
8540         * sysdeps/generic/mp_clz_tab.c: New file.
8541         * sysdeps/i386/mp_clz_tab.c: New file.
8542         * sysdeps/hppa/mp_clz_tab.c: New file.
8543         * sysdeps/powerpc/mp_clz_tab.c: New file.
8544         * stdlib/Makefile (aux): Revert last patch.
8545         * math/Makefile (gmp-objs): Likewise.
8547 2002-03-13  Paul Eggert  <eggert@twinsun.com>
8549         * time/strftime.c: Comment fixes for references to obsolescent
8550         standards, In most cases the simplest fix is to remove the
8551         confusing comments.  Cross-referencing all the standards properly
8552         is a bit of a pain, and it should be enough to put that info in
8553         the documentation as I did in my recent time.texi patch.
8555 2002-03-13  Paul Eggert  <eggert@twinsun.com>
8557         * manual/time.texi (Formatting Calendar Time):
8558         ISO C99 also specifies the E and O modifiers.
8559         %P is a GNU extension, and is not in ISO C99.
8560         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
8561         %T is also in ISO C99.
8562         The RFC 822 example is not valid in arbitrary locales.
8563         Reword the POSIX.2 wording slightly, to make it a bit clearer
8564         that POSIX.2 formats are also supported by later POSIX versions.
8565         If a format was introduced in ISO C99 it is also required by
8566         POSIX.1-2001.
8568 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
8570         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
8571         _sys_nerr_internal with INTVARDEF2.
8572         * include/libc-symbols.h (INTVARDEF2): New macro.
8573         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
8574         (_sys_nerr_internal): Library.
8576         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
8577         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
8579         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
8581 2002-03-13  Wolfram Gloger  <wg@malloc.de>
8583         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
8585 2002-03-02  Andreas Schwab  <schwab@suse.de>
8587         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
8588         'h' flag and positional arg.
8589         * stdio-common/tst-printf.c (rfg3): New function to test
8590         positional arguments.
8591         (main): Fix some warnings.
8593 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
8595         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
8596         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8598 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
8600         * grp/initgroups.c (__nss_group_data): Declare as hidden.
8602         * include/locale.h (_nl_C_locobj): Declare as hidden.
8604         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
8605         * time/strptime.c (_nl_C_LC_TIME): Likewise.
8607         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
8609         * include/sys/gmon.h: Declare _gmonparam as hidden.
8611         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
8612         (__ctype32_wctrans): Likewise.
8613         (__ctype32_width): Likewise.
8615         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
8616         use of __ttyname.
8618         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
8619         Define as hidden.
8620         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
8621         hidden.  Change all users of these variables.
8623         * posix/regex_internal.h (__re_error_msgid): Renamed from
8624         re_error_msgid.  Declare as hidden.
8625         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
8626         hidden.
8628         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
8629         (__printf_function_table): Likewise.
8630         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
8631         hidden.
8632         (__printf_function_table): Likewise.
8634         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
8635         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
8637         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
8638         * nss/nsswitch.c: Declare _nss_*_database as hidden.
8640         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
8641         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
8643 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
8645         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
8646         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8647         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8648         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8649         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8650         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8651         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8652         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8653         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
8654         _nl_C_LC_CTYPE_width: Declare as hidden.
8655         * include/locale.h: Declare _nl_locale_file_list.
8656         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
8657         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
8658         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
8659         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
8660         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
8661         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
8662         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
8663         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
8664         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
8665         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
8666         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
8667         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
8668         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8669         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8670         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8671         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8672         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8673         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8674         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8675         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
8676         _nl_C_LC_CTYPE_width, and as hidden.
8677         * locale/findlocale.c: Declare _nl_C as hidden.
8678         * locale/newlocale.c: Likewise.
8679         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
8680         _nl_locale_file_list.
8681         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
8682         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
8683         Define _nl_C_locobj as hidden.
8685         * malloc/mtrace.c (_mtrace_file): Define as hidden.
8686         (_mtrace_line): Likewise.
8688         * include/time.h: Declare __mon_yday as hidden.
8689         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
8691         * libio/libioP.h: Declare __libio_codecvt as hidden.
8692         * libio/fileops.c: Declare __libio_translit as hidden.
8693         * libio/iofwide.c: Define __libio_translit as hidden.
8695         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
8696         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
8697         * login/getutline_r.c: Likewise.
8698         * login/utmpname.c: Likewise.
8700         * login/utmp-private.h: Declare __libc_utmp_file_functions,
8701         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
8702         __libc_utmp_file_name as hidden.
8704         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
8705         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
8706         * locale/freelocale.c: Likewise.
8707         * locale/lc-time.c: Likewise.
8709         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
8710         (__libc_ptyname2): Likewise.
8711         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
8712         hidden.
8713         (__libc_ptyname2): Likewise.
8715         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
8716         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
8717         * sysdeps/generic/init-first.c: Likewise.
8718         * sysdeps/i386/init-first.c: Likewise.
8719         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8720         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8721         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8722         * sysdeps/sh/init-first.c: Likewise.
8723         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8724         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8726         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8727         (_itowa_upper_digits): Likewise.
8729         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8730         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8731         as hidden.
8733         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8734         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8735         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8736         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8738         * gmon/gmon.c (__bb_head): Define as hidden.
8739         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8741         * argp/argp-parse.c (_argp_hang): Define as static.
8743         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8744         handling in latest compilers.
8746         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8747         define alias.
8748         * libio/fileops.c (_IO_file_jumps): Likewise.
8749         * libio/stdfiles.c (_IO_list_all): Likewise.
8750         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8752         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8753         include/malloc.h.
8754         * include/malloc.h: Add __libc_malloc_initialized declaration
8755         here.  Mark variable hidden.
8756         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8758         * elf/dl-open.c (__libc_argc): Declare as hidden.
8759         (__libc_argv): Likewise.
8760         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8761         (__libc_argv): Likewise.
8762         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8763         __libc_argv as hidden.
8764         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8765         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8766         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8767         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8769         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8770         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8771         * stdlib/erand48.c: Likewise.
8772         * stdlib/jrand48.c: Likewise.
8773         * stdlib/lcong48.c: Likewise.
8774         * stdlib/lrand48.c: Likewise.
8775         * stdlib/mrand48.c: Likewise.
8776         * stdlib/nrand48.c: Likewise.
8777         * stdlib/seed48.c: Likewise.
8778         * stdlib/srand48.c: Likewise.
8780         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8781         (_itoa_lower_digits_internal): New declaration.
8782         (_itoa_upper_digits_internal): New declaration.
8783         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8784         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8785         (_itoa_upper_digits_internal): New declaration.
8786         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8787         _itoa_lower_digits.
8788         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8789         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8791         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8792         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8794         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8795         (_itowa_lower_digits): Likewise.
8796         (_itowa_upper_digits): Likewise.
8797         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8798         (_itowa_upper_digits): Likewise.
8800         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8801         not already defined.
8802         (GERMANIC_PLURAL): Declare as hidden.
8804         * posix/getopt.c (__getopt_initialized): Declare as hidden.
8805         (attribute_hidden): Define as empty macro if not already defined.
8807         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8808         (__gconv_max_path_elem_len): Likewise.
8809         (__gconv_path_envvar): Likewise.
8811         * math/Makefile (gmp-objs): Remove mp_clz_tab.
8812         * stdlib/Makefile (aux): Remove mp_clz_tab.
8813         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
8815         * stdlib/exit.h (__exit_funcs): Declare as hidden.
8817         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8819         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8820         _nl_category_names, _nl_category_name_sizes, _nl_current,
8821         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8823         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8824         (_nl_current_default_domain): Likewise
8825         (_nl_state_lock): Likewise.
8826         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8827         (_nl_current_default_domain): Likewise
8828         (_nl_state_lock): Likewise.
8829         * intl/bindtextdom.c (_nl_state_lock): Likewise.
8831         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8832         (_fpioconst_pow10): Likewise.
8834         * include/time.h (_tmbuf): Add attribute_hidden.
8836         * time/tzset.c (tzstring_list): Define as static.
8838         * include/time.h: Add attribute_hidden to __tzname_cur_max and
8839         __use_tzfile declaration.
8841         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8842         and __wcsmbs_last_locale declaration.
8844 2002-02-25  Paul Eggert  <eggert@twinsun.com>
8846         * timezone/Makefile (tzbases): Move systemv from here...
8847         (tzlinks): to here, since the entries in systemv were all changed
8848         from Zone to Link lines in tz-2001a.  Bug reported (and patch
8849         tested) by Peter Breitenlohner.
8851 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
8853         * time/tst-posixtz.c (tests): Add new tests.
8854         (main): Test whether tzset() sets daylight properly.
8856 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8858         * time/tzset.c (tz_compute): Move __daylight, __tzname and
8859         __tzname_cur_max setting...
8860         (tzset_internal): ...here.
8862 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8864         * time/tzset.c (compute_change): Don't return any value.
8865         (tz_compute): Likewise.  Don't handle southern hemisphere here.
8866         (__tz_convert): But here.
8868 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8870         * manual/examples/mkfsock.c: Include <string.h> as well.
8871         Patch by Alain De Carolis <alaind@wseurope.com>.
8873 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
8875         * posix/regexec.c (re_match): Fix incorrect register sizes.
8876         (re_search): Likewise.
8878 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8880         * posix/regcomp.c (regfree): Remove a disused condition.
8881         * posix/regex_internal.c (re_acquire_state): Likewise.
8882         (re_acquire_state_context): Likewise.
8883         (register_state): Remove a redundant malloc invocation.
8884         * posix/regex_internal.h: (re_state_table_entry): Simplify
8885         the structure.
8887 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8889         * posix/regcomp.c (regcomp): Add __builtin_expect to error
8890         handling conditions.
8891         (regerror): Likewise.
8892         (regfree): Likewise.
8893         (re_compile_internal): Likewise.
8894         (init_dfa): Likewise.
8895         (init_word_char): Likewise.
8896         (create_initial_state): Likewise.
8897         (analyze): Likewise.
8898         (analyze_tree): Likewise.
8899         (duplicate_node): Likewise.
8900         (calc_eclosure): Likewise.
8901         (calc_eclosure_iter): Likewise.
8902         (parse): Likewise.
8903         (parse_reg_exp): Likewise.
8904         (parse_branch): Likewise.
8905         (parse_expression): Likewise.
8906         (parse_subexp): Likewise.
8907         (parse_dup_op): Likewise.
8908         (parse_bracket_exp): Likewise.
8909         (build_equiv_class): Likewise.
8910         (build_charclass): Likewise.
8911         (build_word_op): Likewise.
8912         (fetch_number): Likewise.
8913         (create_tree): Likewise.
8914         (duplicate_tree): Likewise.
8915         * posix/regex.c (BE): New macro.
8916         * posix/regexec.c (re_match): Add __builtin_expect to error
8917         handling conditions.
8918         (re_match_2): Likewise.
8919         (re_search): Likewise.
8920         (re_search_internal): Likewise.
8921         (check_matching): Likewise.
8922         (proceed_next_node): Likewise.
8923         (set_regs): Likewise.
8924         (sift_states_backward): Likewise.
8925         (add_epsilon_backreference): Likewise.
8926         (transit_state): Likewise.
8927         (transit_state_sb): Likewise.
8928         (transit_state_mb): Likewise.
8929         (transit_state_bkref): Likewise.
8930         (transit_state_bkref_loop): Likewise.
8931         (build_trtable): Likewise.
8932         (group_nodes_into_DFAstates): Likewise.
8933         (match_ctx_init): Likewise.
8934         (match_ctx_add_entry): Likewise.
8935         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8936         to error handling conditions.
8937         (re_string_construct_toupper): Likewise.
8938         (build_wcs_buffer): Likewise.
8939         (build_wcs_upper_buffer): Likewise.
8940         (build_upper_buffer): Likewise.
8941         (re_string_translate_buffer): Likewise.
8942         (re_node_set_alloc): Likewise.
8943         (re_node_set_init_1): Likewise.
8944         (re_node_set_init_2): Likewise.
8945         (re_node_set_init_copy): Likewise.
8946         (re_node_set_intersect): Likewise.
8947         (re_node_set_init_union): Likewise.
8948         (re_node_set_merge): Likewise.
8949         (re_node_set_insert): Likewise.
8950         (re_dfa_add_node): Likewise.
8951         (re_acquire_state): Likewise.
8952         (re_acquire_state_context): Likewise.
8953         (create_new_state_common): Likewise.
8954         (register_state): Likewise.
8955         (create_ci_new_state): Likewise.
8956         (create_cd_new_state): Likewise.
8957         (re_string_context_at): Remove redundant condition.
8959 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8961         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8963         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8965 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
8967         * sysdeps/i386/elf/configure.in: Fix comment.
8969         * sysdeps/sparc/sparc64/configure.in: New file.
8970         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8971         if .dynamic comes before .got.
8972         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8974         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8975         HP_TIMING_ACCUM): Fix typos.
8977 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8979         * string/strfry.c: Add some more randomness to the seed.
8980         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8982         * po/es.po: Update from translation team.
8983         * po/fr.po: Likewise.
8985         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8987         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8988         when determining type of format.
8989         Patch by James Antill <james@anqd.org> [PR libc/2787].
8991 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
8993         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8995 2002-03-11  Roland McGrath  <roland@frob.com>
8997         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8999         * Versions.def (libc): Add GLIBC_2.2.6.
9000         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
9001         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
9002         __errno_location instead of __hurd_errno_location, and don't inline it.
9003         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
9004         * hurd/errno.c: New file.
9005         * hurd/Makefile (routines): Add errno.
9007 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
9009         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
9010         ridiculously large widths and precisions [PR libc/3026].
9012 2002-03-11  Andreas Jaeger  <aj@suse.de>
9014         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
9015         support.
9016         Patch by Susanne Oberhauser <froh@SuSE.de>.
9018 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
9020         * inet/rexec.c (ahostbuf): Define as static.
9022         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
9023         (__ctype32_wctrans): Likewise.
9024         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
9025         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
9026         (__ctype32_wctrans): Likewise.
9027         (__ctype32_width): Likewise.
9029         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
9030         They were never exported anyway.
9032         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
9033         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
9034         exported.
9035         * include/sys/gmon.h: Declare _gmonparam.
9037         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
9038         symbols for getdents64.  They were never exported.
9040 2002-03-09  Roland McGrath  <roland@frob.com>
9042         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
9043         Reported by Jon Arney <jarney1@cox.net>.
9045 2002-02-23  Roland McGrath  <roland@frob.com>
9047         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
9048         declaration.
9049         (__hurd_errno_location): Function removed.
9051 2002-03-06  Andreas Jaeger  <aj@suse.de>
9053         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
9054         32-bit.
9056 2002-03-04  Andreas Jaeger  <aj@suse.de>
9058         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
9060         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
9061         x86-64.
9063         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
9065         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
9067         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
9069         * sysdeps/x86_64/bits/setjmp.h: New file.
9071         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
9073         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
9075         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
9076         for x86.
9077         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
9078         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
9080 2002-02-28  Bo Thorsen  <bo@suse.de>
9082         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
9083         version.
9085 2002-03-03  Andreas Jaeger  <aj@suse.de>
9087         * sysdeps/x86_64/bits/wordsize.h: New file.
9089         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
9090         * elf/tst-tlsmod1.c: Likewise.
9092         * posix/regcomp.c: Get regex.h from include dir for internal
9093         prototypes.
9095         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
9096         to libc-internal.h and include it.
9097         * include/libc-internal.h: Add __init_misc.
9099         * misc/init-misc.c: Include libc-internal.h for prototypes.
9101         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
9103         * misc/error.c [_LIBC]: Include libioP.h for prototype of
9104         _IO_putc_internal.
9106 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
9108         * posix/regcomp.c: Compatibility changes to allow using the code
9109         outside glibc.
9111 2002-02-28  Hartvig Ekner <hartvige@mips.com>
9113         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
9114         compiled non-PIC.
9116 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
9118         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
9119         of .str elements in the returned data structure.
9121         * elf/elf.h: Add Alpha TLS bits.
9123 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
9125         * sysdeps/unix/sysv/linux/nice.c: New file.
9127 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
9129         * elf/Makefile (dl-routines): Add dl-origin.
9130         (elide-routines.os): Add dl-origin.
9131         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
9132         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
9133         _dl_debug_state.
9134         * include/libc-symbols.c: Define attribute_hidden depending on
9135         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
9137         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
9138         * elf/dl-load.c: Likewise.
9139         * elf/rtld.c: Likewise.
9140         * include/unistd.h: Declare __libc_enable_secure_internal.
9141         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
9142         Use INTUSE with __libc_enable_secure.
9143         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
9145         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
9146         * elf/dl-error.c: Likewise,
9147         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
9149         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
9150         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
9151         function definition.  Use INTDEF with _dl_get_origin.
9152         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9154         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
9155         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
9157         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
9158         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
9159         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
9161         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
9162         * elf/dl-deps.c: Likewise.
9163         * elf/dl-error.c: Likewise.
9164         * elf/dl-fini.c: Likewise.
9165         * elf/dl-init.c: Likewise.
9166         * elf/dl-load.c: Likewise.
9167         * elf/dl-lookup.c: Likewise.
9168         * elf/dl-reloc.c: Likewise.
9169         * elf/dl-version.c: Likewise.
9170         * elf/do-lookup.h: Likewise.
9171         * sysdeps/arm/dl-machine.h: Likewise.
9172         * sysdeps/cris/dl-machine.h: Likewise.
9173         * sysdeps/hppa/dl-machine.h: Likewise.
9174         * sysdeps/i386/dl-machine.h: Likewise.
9175         * sysdeps/m68k/dl-machine.h: Likewise.
9176         * sysdeps/powerpc/dl-machine.h: Likewise.
9177         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9178         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9179         * sysdeps/sh/dl-machine.h: Likewise.
9180         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
9181         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
9182         * sysdeps/x86_64/dl-machine.h: Likewise.
9183         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
9184         _dl_argv[0].  Use INTUSE with _dl_argv.
9185         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
9186         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
9188 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
9190         * elf/rtld.c (_rtld_global): Remove .protected.
9191         (_rtld_local): Strong alias to _rtld_global.
9192         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
9193         only .os object.
9194         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
9195         _rtld_local instead of _rtld_global.
9196         (_rtld_local): Add hidden extern, possibly in .sdata section.
9197         * configure.in: Add tests for visibility attribute and .sdata.
9198         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
9199         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
9200         * sysdeps/arm/dl-machine.h: Likewise.
9201         * sysdeps/generic/ldsodefs.h: Likewise.
9202         * sysdeps/hppa/dl-machine.h: Likewise.
9203         * sysdeps/cris/dl-machine.h: Likewise.
9204         * sysdeps/i386/dl-machine.h: Likewise.
9205         * sysdeps/ia64/dl-machine.h: Likewise.
9206         * sysdeps/m68k/dl-machine.h: Likewise.
9207         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9208         * sysdeps/mips/dl-machine.h: Likewise.
9209         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9210         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9211         * sysdeps/sh/dl-machine.h: Likewise.
9212         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9213         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9214         * sysdeps/x86_64/dl-machine.h: Likewise.
9216 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
9218         * login/login.c (login): Always initialize ut_line field
9219         [PR libc/2991].
9221 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
9223         * sysdeps/i386/Makefile (sysdep_routines): Add
9224         divdi3 in csu dir.
9225         (shared-only-routines): Likewise.
9226         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
9227         (shared-only-routines): Likewise.
9228         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
9229         (shared-only-routines): Likewise.
9230         * sysdeps/wordsize-32/divdi3.c: New file.
9232 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
9234         * locale/iso-4217.def: Remove obsolete currencies for countries
9235         with Euro.
9237 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
9239         * posix/regcomp.c (regcomp): Remove a redundant condition.
9240         (init_word_char): Add a check on malloc failure.
9241         (create_initial_state): Likewise.
9242         (duplicate_node): Likewise.
9243         (calc_eclosure): Likewise.
9244         (calc_eclosure_iter): Likewise.
9245         (parse_expression): Likewise.
9246         (parse_bracket_exp): Remove unnecessary malloc invocations.
9247         (build_equiv_class): Likewise.
9248         (build_charclass): Likewise.
9249         * posix/regex_internal.c (re_node_set_intersect): Add a check
9250         on malloc failure.
9251         (re_node_set_add_intersect): Likewise.
9252         (re_node_set_merge): Likewise.
9253         (re_acquire_state): Likewise.
9254         (re_acquire_state_context): Likewise.
9255         (create_newstate_common): Likewise.
9256         (register_state): Likewise.
9257         (create_ci_newstate): Likewise.
9258         (create_cd_newstate): Likewise.
9259         * posix/regex_internal.h: Fix prototypes of re_acquire_state
9260         and re_acquire_state_context.
9261         * posix/regexec.c (regexec): Suit it to the error handling of
9262         re_search_internal.
9263         (re_match): Likewise.
9264         (re_search): Likewise.
9265         (re_search_internal): Add a check on malloc failure.
9266         (acquire_init_state_context): Likewise.
9267         (check_matching): Likewise.
9268         (proceed_next_node): Likewise.
9269         (set_regs): Likewise.
9270         (sift_states_backward): Likewise.
9271         (sift_states_iter_bkref): Likewise.
9272         (add_epsilon_backreference): Likewise.
9273         (transit_state): Likewise.
9274         (transit_state_sb): Likewise.
9275         (transit_state_mb): Likewise.
9276         (transit_state_bkref_loop): Likewise.
9277         (build_trtable): Likewise.
9278         (group_nodes_into_DFAstates): Likewise.
9279         (match_ctx_init): Likewise.
9280         (match_ctx_add_entry): Likewise.
9282 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
9284         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
9285         l_libname if profiling is enabled [PR libc/2916].
9287         * sysdeps/ia64/dl-tls.h: New file.
9289 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
9291         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
9292         Work around an Alpha gas bug.
9294 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
9296         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
9297         uses read to load the catalog.
9298         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
9300 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
9302         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
9303         regex_internal.c, and regex_internal.h.
9304         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
9305         * posix/regex.c: Complete rewrite.
9306         * posix/regexec.c: New file.
9307         * posix/regcomp.c: New file.
9308         * posix/regex_internal.c: New file.
9309         * posix/regex_internal.h: New file.
9310         * posix/regex.h (RE_ICASE): New macro.
9311         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
9313         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
9314         ungetwc.  It's a macro.
9315         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
9316         implementation.
9317         Reported by Jason Merrill <jason@redhat.com>.
9319 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
9321         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
9322         position to fp->_offset if it is set.
9323         * stdio-common/Makefile (tests): Add tst-fdopen.
9324         * stdio-common/tst-fdopen.c: New test.
9326 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
9328         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
9329         * stdio-common/tst-ungetc.c (main): Add another test.
9331 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
9333         * assert/assert-perr.c: Use INTUSE to reference functions and variables
9334         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
9335         aliases.  Add prototypes for the new aliases.
9336         * assert/assert.c: Likewise.
9337         * include/libc-symbols.h: Likewise.
9338         * include/stdio.h: Likewise.
9339         * include/netinet/in.h: Likewise.
9340         * include/rpc/auth.h: Likewise.
9341         * include/rpc/auth_unix.h: Likewise.
9342         * include/rpc/key_prot.h: Likewise.
9343         * include/rpc/pmap_prot.h: Likewise.
9344         * include/rpc/pmap_rmt.h: Likewise.
9345         * include/rpc/rpc_msg.h: Likewise.
9346         * include/rpc/xdr.h: Likewise.
9347         * inet/gethstbyad_r.c: Likewise.
9348         * inet/gethstbynm2_r.c: Likewise.
9349         * inet/gethstbynm_r.c: Likewise.
9350         * inet/gethstent_r.c: Likewise.
9351         * inet/in6_addr.c: Likewise.
9352         * libio/__fpurge.c: Likewise.
9353         * libio/filedoalloc.c: Likewise.
9354         * libio/fileops.c: Likewise.
9355         * libio/ftello.c: Likewise.
9356         * libio/ftello64.c: Likewise.
9357         * libio/genops.c: Likewise.
9358         * libio/iofclose.c: Likewise.
9359         * libio/iofdopen.c: Likewise.
9360         * libio/iofflush.c: Likewise.
9361         * libio/iofflush_u.c: Likewise.
9362         * libio/iofgetpos.c: Likewise.
9363         * libio/iofgetpos64.c: Likewise.
9364         * libio/iofgets.c: Likewise.
9365         * libio/iofgets_u.c: Likewise.
9366         * libio/iofopen.c: Likewise.
9367         * libio/iofopncook.c: Likewise.
9368         * libio/iofputs.c: Likewise.
9369         * libio/iofread.c: Likewise.
9370         * libio/iofread_u.c: Likewise.
9371         * libio/iofsetpos.c: Likewise.
9372         * libio/iofsetpos64.c: Likewise.
9373         * libio/ioftell.c: Likewise.
9374         * libio/iofwrite.c: Likewise.
9375         * libio/iogetline.c: Likewise.
9376         * libio/iogets.c: Likewise.
9377         * libio/iogetwline.c: Likewise.
9378         * libio/iolibio.h: Likewise.
9379         * libio/iopadn.c: Likewise.
9380         * libio/iopopen.c: Likewise.
9381         * libio/ioseekoff.c: Likewise.
9382         * libio/ioseekpos.c: Likewise.
9383         * libio/iosetbuffer.c: Likewise.
9384         * libio/iosetvbuf.c: Likewise.
9385         * libio/ioungetc.c: Likewise.
9386         * libio/ioungetwc.c: Likewise.
9387         * libio/iovdprintf.c: Likewise.
9388         * libio/iovsprintf.c: Likewise.
9389         * libio/iovsscanf.c: Likewise.
9390         * libio/libioP.h: Likewise.
9391         * libio/memstream.c: Likewise.
9392         * libio/obprintf.c: Likewise.
9393         * libio/oldfileops.c: Likewise.
9394         * libio/oldiofclose.c: Likewise.
9395         * libio/oldiofdopen.c: Likewise.
9396         * libio/oldiofgetpos.c: Likewise.
9397         * libio/oldiofgetpos64.c: Likewise.
9398         * libio/oldiofopen.c: Likewise.
9399         * libio/oldiofsetpos.c: Likewise.
9400         * libio/oldiofsetpos64.c: Likewise.
9401         * libio/oldiopopen.c: Likewise.
9402         * libio/oldstdfiles.c: Likewise.
9403         * libio/putc.c: Likewise.
9404         * libio/setbuf.c: Likewise.
9405         * libio/setlinebuf.c: Likewise.
9406         * libio/stdfiles.c: Likewise.
9407         * libio/stdio.c: Likewise.
9408         * libio/strops.c: Likewise.
9409         * libio/vasprintf.c: Likewise.
9410         * libio/vscanf.c: Likewise.
9411         * libio/vsnprintf.c: Likewise.
9412         * libio/vswprintf.c: Likewise.
9413         * libio/wfiledoalloc.c: Likewise.
9414         * libio/wfileops.c: Likewise.
9415         * libio/wgenops.c: Likewise.
9416         * libio/wstrops.c: Likewise.
9417         * malloc/mtrace.c: Likewise.
9418         * misc/error.c: Likewise.
9419         * misc/syslog.c: Likewise.
9420         * nss/getXXbyYY_r.c: Likewise.
9421         * nss/getXXent_r.c: Likewise.
9422         * nss/hosts-lookup.c: Likewise.
9423         * stdio-common/getw.c
9424         * stdio-common/printf-prs.c: Likewise.
9425         * stdio-common/printf_fp.c: Likewise.
9426         * stdio-common/printf_size.c: Likewise.
9427         * stdio-common/putw.c: Likewise.
9428         * stdio-common/scanf.c: Likewise.
9429         * stdio-common/sprintf.c: Likewise.
9430         * stdio-common/tmpfile64.c: Likewise.
9431         * stdio-common/vfprintf.c: Likewise.
9432         * stdio-common/vfscanf.c: Likewise.
9433         * stdlib/strfmon.c: Likewise.
9434         * sunrpc/auth_des.c: Likewise.
9435         * sunrpc/auth_none.c: Likewise.
9436         * sunrpc/auth_unix.c: Likewise.
9437         * sunrpc/authdes_prot.c: Likewise.
9438         * sunrpc/authuxprot.c: Likewise.
9439         * sunrpc/clnt_perr.c: Likewise.
9440         * sunrpc/clnt_raw.c: Likewise.
9441         * sunrpc/clnt_tcp.c: Likewise.
9442         * sunrpc/clnt_udp.c: Likewise.
9443         * sunrpc/clnt_unix.c: Likewise.
9444         * sunrpc/key_call.c: Likewise.
9445         * sunrpc/key_prot.c: Likewise.
9446         * sunrpc/openchild.c: Likewise.
9447         * sunrpc/pm_getmaps.c: Likewise.
9448         * sunrpc/pm_getport.c: Likewise.
9449         * sunrpc/pmap_clnt.c: Likewise.
9450         * sunrpc/pmap_prot.c: Likewise.
9451         * sunrpc/pmap_prot2.c: Likewise.
9452         * sunrpc/pmap_rmt.c: Likewise.
9453         * sunrpc/rpc_cmsg.c: Likewise.
9454         * sunrpc/rpc_prot.c: Likewise.
9455         * sunrpc/svc_authux.c: Likewise.
9456         * sunrpc/svc_raw.c: Likewise.
9457         * sunrpc/svc_simple.c: Likewise.
9458         * sunrpc/svc_tcp.c: Likewise.
9459         * sunrpc/svc_udp.c: Likewise.
9460         * sunrpc/svc_unix.c: Likewise.
9461         * sunrpc/xdr.c: Likewise.
9462         * sunrpc/xdr_array.c: Likewise.
9463         * sunrpc/xdr_mem.c: Likewise.
9464         * sunrpc/xdr_rec.c: Likewise.
9465         * sunrpc/xdr_ref.c: Likewise.
9466         * sunrpc/xdr_stdio.c: Likewise.
9467         * sysdeps/generic/_strerror.c: Likewise.
9468         * sysdeps/generic/printf_fphex.c: Likewise.
9469         * sysdeps/generic/tmpfile.c: Likewise.
9470         * sysdeps/gnu/errlist.awk: Likewise.
9471         * sysdeps/gnu/errlist.c: Likewise.
9473         * libio/Makefile (routines): Remove iosprint.
9474         * libio/iosprintf.c: Removed
9477 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
9479         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
9480         non_dynamic_init and exported now.
9481         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
9482         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
9483         !SHARED.
9484         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
9485         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
9486         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
9488 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
9490         * elf/dl-close.c (free_slotinfo): Check for end of list and return
9491         true in this case.
9493         * locale/iso-639.def: Add language codes for Walloon.
9495         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
9496         total number of relocations performed.
9498         * elf/sprof.c (load_profdata): If do_test provide information as
9499         to why loading failed.
9500         * elf/dl-profile.c (_dl_start_profile): Initialize all of
9501         hist_hdr.dimen.
9503         * csu/set-init.c: Moved to...
9504         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
9505         * csu/Makefile: Don't compile set-init.
9506         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
9507         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
9508         to __libc_init.
9509         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
9510         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
9511         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
9512         __libc_init.
9513         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
9514         __libc_subinit.
9516 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
9518         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
9519         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
9520         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
9521         (_dl_deallocate_tls): New function.
9522         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
9523         _dl_deallocate_tls.
9525 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
9527         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
9528         * stdio-common/tst-fseek.c (main): Add test for this.
9530 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
9532         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
9534 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
9536         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
9537         pointer before dereferencing.
9539 2002-02-18  Roland McGrath  <roland@frob.com>
9541         * sysdeps/mach/hurd/times.c: Fix typo in last change.
9543         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
9544         Use task_policy in place of task_priority.
9546         * sysdeps/generic/bits/mman.h
9547         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
9548         * sysdeps/mach/msync.c: New file.
9550         * sysdeps/mach/powerpc/syscall.S: New file.
9552         * mach/msg.c [MACH_MSG_OVERWRITE]
9553         (__mach_msg_trap, __mach_msg_overwrite): New functions.
9554         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
9556         * sysdeps/mach/configure.in: Check for clock.defs to put into
9557         mach_interface_list.
9558         * sysdeps/mach/configure: Regenerated.
9560         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
9561         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
9562         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
9563         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
9564         (mach-shortcuts): Add device_read_overwrite_request,
9565         device_read_overwrite, vm_read_overwrite, thread_switch.
9567         * configure.in (base_machine): Set to $machine by default.
9568         * configure: Regenerated.
9570         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
9571         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
9572         * sysdeps/mach/configure: Regenerated.
9573         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
9575         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
9577         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
9579         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
9580         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
9582 2002-02-17  Roland McGrath  <roland@frob.com>
9584         * sysdeps/mach/hurd/times.c
9585         [NO_CREATION_TIME] (startup_time): New static variable.
9586         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
9587         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
9588         creation_time from task_basic_info.
9589         (__times): Use __gettimeofday instead of __host_get_time.
9591         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
9592         Use untyped Mach IPC message format.
9594         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
9596         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
9597         _S_catch_exception_raise_state_identity,
9598         _hurdsig_fault_catch_exception_raise_state,
9599         _hurdsig_fault_catch_exception_raise_state_identity.
9601         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
9603         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
9604         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
9606         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
9607         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
9609         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
9610         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
9611         them as no-op macros.
9612         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
9613         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
9615         * sysdeps/powerpc/dl-machine.h
9616         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
9618         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
9619         Use untyped Mach IPC message format.
9621         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
9622         Handle untyped Mach IPC message formats.
9624         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
9625         Expect different argument conventions when this is defined.
9626         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
9627         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
9628         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
9629         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
9630         for OSF Mach variant.
9631         (faulted): Use mig_reply_error_t for REPLY.
9632         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
9633         in __thread_set_exception_ports call.
9634         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
9635         __mach_port_set_attributes in place of __mach_port_set_qlimit.
9637         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
9638         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
9639         on Darwin, which includes bogons.
9641         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
9642         variable LOADBASE so it's not declared when it's not used.
9644 2002-02-16  Roland McGrath  <roland@frob.com>
9646         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
9647         to use BI.creation_time.
9649         * mach/Machrules (MIG): Add -x c to CPP value passed down.
9651         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
9652         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
9653         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
9654         host_page_size instead of vm_statistics.
9656         * sysdeps/mach/Makefile (mach-before-compile): Don't include
9657         mach_interface.h here, since not all variants use that name.
9659         * sysdeps/mach/configure.in: Add some checks for Mach headers
9660         to ensure a sane installation.
9661         (mach_interface_list): Define this variable by checking for .defs
9662         files found in various variants.
9663         * configure.in (mach_interface_list): AC_SUBST this.
9664         * config.make.in (mach-interface-list): New substituted variable.
9665         * mach/Makefile (user-interfaces): Define this using the value
9666         of $(mach-interface-list) instead of mach, mach4.
9667         Updated other references to mach_interface to use it as well.
9669         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
9671         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
9672         mig_reply_error_t for OSF Mach variant.
9674         * mach/Makefile (routines): Remove bootprivport.
9675         * mach/bootprivport.c: File removed.  It has never been used.
9677         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
9678         Grok the OSF flavor of message format.
9679         (mach_msg_destroy_port): For MAKE_SEND and
9680         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
9681         no-senders notification.
9683 2002-02-06  Roland McGrath  <roland@frob.com>
9685         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
9686         to here if 2.0 compatibility enabled ...
9687         (libc: GLIBC_2.1.3): ... from here.
9689 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
9691         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
9692         generation counter.
9693         * elf/dl-close.c (_dl_close): Likewise.
9695 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
9697         * elf/Makefile: Add rules to build and run tst-tls8.
9698         * elf/tst-tls8.c: New file.
9699         * elf/tst-tlsmod4.c: New file.
9701         * stdlib/test-a64l.c (tests): Add more test cases.
9703         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
9704         Reported by Walter Harms <WHarms@bfs.de>.
9706 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
9708         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
9709         definitions for struct sigcontext.
9710         Suggested by David Mosberger-Tang.
9712 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9714         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
9715         for removing reference of module in slotinfo list.
9716         (_dl_close): Use remove_slotinfo.
9717         * sysdeps/generic/dl-tls.c: General pretty printing.
9718         (oom): Define only if SHARED.
9719         (_dl_next_tls_modid): Correct starting point for the case we assume
9720         there is a gap.  Add missing instruction grouping (doh!).  Correct
9721         tests for reaching maximum index.
9722         * elf/Makefile: Add rules to build and run tst-tls7.
9723         * elf/tst-tls7.c: New file.
9724         * elf/tst-tlsmod3.c: New file.
9726         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9727         USE_TLS.
9728         * elf/tst-tlsmod2.c: Likewise.
9730         * elf/dl-close.c (_dl_close): When closing an object using TLS
9731         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9732         true.  Increment dl_tls_generation only if we closed any TLS-using
9733         object.
9734         * elf/tst-tls6.c: New file.
9735         * elf/Makefile: Add rules to build and run tst-tls6.
9737         * po/da.po: Update from translation team.
9739         * locale/categories.def: Fix typo [PR libc/2948].
9740         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9741         [PR libc/2949].
9742         * locale/iso-4217.def: Update from official version [PR libc/2950].
9743         * glibcbug.in: Honor TMPDIR [PR libc/2951].
9744         * locale/programs/ld-collate.c (collate_finish): Bail out with a
9745         message if input is too confusion instead of using assert.
9746         (collate_read): Don't crash on unknown symbol [PR libc/2952].
9747         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9749         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9750         * elf/tst-tls2.c: Likewise.
9751         * elf/tst-tls3.c: Likewise.
9753 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
9755         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9757 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9759         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9760         if this is really necessary.
9762         * elf/dl-close.c (_dl_close): Implement freeing entries in the
9763         slotinfo array.
9764         (free_mem): Free memory for the slotinfo array if possible.
9766 2002-02-12  Andreas Schwab  <schwab@suse.de>
9768         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9770 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
9772         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9773         TLS_DTV_UNALLOCATE.
9774         (oom): New function.
9775         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9776         (_dl_determine_tlsoffset): Likewise.
9777         (_dl_allocate_tls): Likewise.
9778         (__TLS_GET_ADDR): Define if not already defined.
9779         (_dl_tls_symaddr): New function.
9780         (allocate_and_init): New function.
9781         (__tls_get_addr): Actually implement handling of generation counter
9782         and deferred allocation.
9783         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9784         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9785         _dl_tls_generation.
9786         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9787         Declare _dl_tls_symaddr.
9788         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9789         SHARED.
9790         * include/link.h (struct link_map):  Remove l_tls_nextimage and
9791         l_tls_previmage.
9792         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9793         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9794         (_dl_vsym): Likewise.
9795         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9796         layout.
9797         (dl_main): Allow PT_TLS be present for empty segment.  Remove
9798         nextimage list handling.  Instead add all modules using TLS to
9799         dl_tls_dtv_slotinfo_list.
9800         * elf/dl-open.c (dl_open_worker): After successfully loading all
9801         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9802         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9803         empty segment don't do anything.  Remove handling of initimage list.
9804         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9805         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9806         * elf/dl-minimal.c: Define __libc_memalign.
9807         * elf/dl-support.c: Remove _dl_initimage_list.  Add
9808         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9809         _dl_tls_generation.
9810         * include/stdlib.h: Declare __libc_memalign.
9812         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9813         * elf/tst-tls4.c: New file.
9814         * elf/tst-tls5.c: New file.
9815         * elf/tst-tlsmod2.c: New file.
9817         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9819         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9821         * elf/tst-tls1.c: Use test-skeleton.c.
9822         * elf/tst-tls2.c: Likewise.
9823         * elf/tst-tls3.c: Likewise.
9825         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9827 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
9829         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9831 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
9833         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9835         * elf/tst-tls3.c: New file.
9836         * elf/tst-tlsmod1.c: New file.
9837         * elf/Makefile: Add rules to build and run tst-tls3.
9839         * sysdeps/i386/dl-machine.h: Include <tls.h>.
9840         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9841         TLS relocations.
9843         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9845         * po/fr.po: Update from translation team.
9847         * elf/tls-macros.h: Add alternative macros for use in PIC.
9849         * elf/dl-lookup.c: Include <tls.h>.
9850         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9852         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9853         required by passing pointer to last element of the list.
9855         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9856         l_tls_initimage to a place where it actually is performed.
9858         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9859         after globfree() calls.
9861         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9862         (openaux): Pass open_mode as new last argument to _dl_map_object.
9863         (_dl_map_object_deps): Add new argument open_mode.  Initialize
9864         open_mode element of args variable with it.
9865         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9866         _dl_map_object_deps.
9867         * elf/rtld.c (dl_main): Add zero as last parameter to
9868         _dl_map_object_deps call.
9869         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9870         * elf/nodlopen2.c: New file.
9871         * elf/nodlopenmod2.c: New file.
9872         * elf/Makefile: Add rules to build and run nodlopen2.
9874         * elf/tst-tls1.c: Move TLS helper macros to...
9875         * elf/tls-macros.h: ...here.  New file.
9876         * elf/tst-tls2.c: New file.
9877         * elf/Makefile (tests): Add tst-tls2.
9878         (distribute): Add tls-macros.h.
9880         * po/sv.po: Update from translation team.
9882         * elf/tst-tls1.c (main): Add complete set of tests.  Split
9883         architecture specific definitions from the actual test code.
9885         * po/tr.po: Update from translation team.
9887 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
9889         * elf/Makefile (tests): Add tst-tls1.
9890         * elf/tst-tls1.c: New file.
9892         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9893         alignment of TCB for now.
9895         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9896         initialization image for the application itself.
9898         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9899         loop to initialize TLS block.
9901 2002-02-08  Richard Henderson  <rth@redhat.com>
9903         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9904         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9906         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9908 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
9910         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9912 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
9914         * po/ca.po: Update from translation team.
9915         * po/sk.po: Likewise.
9917         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9918         (dl_main): Move dtv/static TLS handling before relocation.
9919         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
9920         TLS_INIT_TP to allocate and install the dtv/static TLS block.
9921         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9922         so far uses TLS initialize GL(dl_tls_static_size) and
9923         GL(dl_tls_static_align) to account for the TCB.
9924         (_dl_allocate_tls): New function.
9925         * sysdeps/generic/ldsodefs.h (rtld_global): Add
9926         _dl_initial_dtv_malloced.
9928         * configure.in: Test for __builtin_memset more realistically.
9930         * csu/version.c (banner): If TLS support is available say so.
9932 2002-02-04  H.J. Lu  <hjl@gnu.org>
9934         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9935         __attribute_used__.
9936         (__dl_runtime_resolve): Likewise.
9938         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9939         declaration.
9941 2001-11-15  H.J. Lu  <hjl@gnu.org>
9943         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9944         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9946         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9948 2002-02-07  H.J. Lu  <hjl@gnu.org>
9950         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9951         ".set noreorder".
9952         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9953         Likewise.
9955 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9957         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9959         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9960         ___tls_get_addr_internal.
9961         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9963         * po/ko.po: Update from translation team.
9965 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
9967         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9968         attribute, change __pad{1,2} type to unsigned int.
9969         (struct stat64): Remove packed attribute.
9971 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9973         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9975 2002-02-07  Andreas Schwab  <schwab@suse.de>
9977         * configure.in: Fix check for -zcombreloc.
9979 2002-02-06  H.J. Lu  <hjl@gnu.org>
9981         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9982         * configure.in: Check if __builtin_memset really works.
9983         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9984         __GNUC_PREREQ (2, 96) before using __builtin_memset.
9986 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9988         * io/bug-ftw3.c (main): Don't try the test if root.
9990 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9992         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9993         constraints.
9994         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9995         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9996         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9997         Likewise.
9998         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9999         a weak alias for __clone.
10000         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
10001         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
10002         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
10003         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
10004         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
10005         a weak alias for __mmap64.
10007 2002-02-05  H.J. Lu  <hjl@gnu.org>
10009         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
10010         (atomic_add): Likewise.
10011         (compare_and_swap): Likewise.
10012         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
10014 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
10016         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
10018         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
10019         alignment of the TCB and store total size and alignment of static
10020         TLS block in _dl_tls_static_size and _dl_tls_static_align.
10021         tls_index is a typedef.
10022         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
10023         _dl_tls_static_align.
10024         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
10025         * elf/dl-support.c: Define _dl_tls_static_size and
10026         _dl_tls_static_align.
10028 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
10030         * configure.in: Add --without-tls option.
10031         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
10032         --without-tls is given.
10034         * sysdeps/generic/dl-tls.c: Include <tls.h>.
10036         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
10038 2002-02-06  Roland McGrath  <roland@frob.com>
10040         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
10041         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
10043         * scripts/versions.awk: Improve error message for missing version.
10044         Each version inherits from the last one only if they have the same
10045         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
10046         but not GLIBC_x and FOO_y.
10048         * scripts/firstversions.awk: Handle libraries that don't have each
10049         particular version named in the third column of shlib-versions.
10051         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
10053 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
10055         * Versions.def [ld]: Add GLIBC_2.3.
10056         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
10057         * elf/Makefile (dl-routines): Add dl-tls.
10058         (distribute): Add dl-tls.h.
10059         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
10060         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
10061         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
10062         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
10063         along with the other info in the link map.  Change queueing of init
10064         images for double linked list.  Use _dl_next_tls_modid to compute
10065         l_tls_modid.
10066         * elf/rtld.c (_dl_start_final): Store alignment requirement
10067         along with the other info in rtld map and executable map.
10068         (dl_main): Add ld.so to the init image list if necessary.  Compute
10069         final module ID with _dl_next_tls_modid.
10070         * include/link.h (struct link_map): Add l_tls_previmage and
10071         l_tls_align.
10072         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
10073         * sysdeps/i386/elf/Versions: New file.
10074         * sysdeps/generic/dl-tls.c: New file.
10075         * sysdeps/generic/dl-tls.h: New file.
10076         * sysdeps/i386/dl-tls.h: New file.
10078 2002-02-06  Roland McGrath  <roland@frob.com>
10080         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
10081         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
10083 2002-01-05  Roland McGrath  <roland@frob.com>
10085         * sysdeps/mach/configure.in: New file.
10086         * sysdeps/mach/configure: New generated file.
10088         * mach/Makefile (user-interfaces): Remove default_pager_helper.
10089         It has never been used by anything.
10091 2002-02-06  H.J. Lu  <hjl@gnu.org>
10093         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
10094         is included.
10096 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
10098         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
10099         attribute((packed)) to counter stupid people misusing gcc options.
10100         (struct stat64): Likewise.
10102 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
10104         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
10105         the variables which are used as booleans.
10107 2002-02-06  Andreas Jaeger  <aj@suse.de>
10109         * include/libc-symbols.h (INTUSE): Renamed from INT.
10110         * elf/dl-deps.c: Change users.
10111         * sysdeps/generic/dl-sysdep.c: Likewise.
10112         * sysdeps/generic/dl-cache.c: Likewise.
10113         * elf/dl-reloc.c: Likewise.
10114         * elf/rtld.c: Likewise.
10115         * elf/dl-version.c: Likewise.
10116         * elf/dl-load.c: Likewise.
10117         * elf/dl-dst.h: Likewise.
10118         * elf/dl-init.c: Likewise.
10119         * elf/dl-error.c: Likewise.
10120         * elf/dl-fini.c: Likewise.
10121         * elf/dl-runtime.c: Likewise.
10122         * elf/do-lookup.h: Likewise.
10124         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
10125         definition.
10126         * stdio-common/_itowa.h: Likewise.
10128 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
10130         * elf/dl-minimal.c: Define _itoa_lower_digits.
10132         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
10133         DT_FLAGS set.
10135         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
10136         loading modules with the DF_STATIC_TLS flag set.
10137         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
10138         element.
10139         * include/link.h (struct link_map): Add l_flags field.
10140         * elf/elf.h (DF_STATIC_TLS): New definition.
10142         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
10143         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
10145         * elf/rtld.c (process_dl_debug): Correct printing help message.
10146         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
10147         for %s.
10149         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
10150         definition and pass &errno in use of this variable.
10151         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
10153 2002-02-04  Andreas Schwab  <schwab@suse.de>
10155         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
10156         * locale/programs/charmap-dir.c: Wrap calls that output messages
10157         with WITH_CUR_LOCALE.  Include "localedef.h" first.
10158         * locale/programs/charmap.c: Likewise.
10159         * locale/programs/ld-address.c: Likewise.
10160         * locale/programs/ld-collate.c: Likewise.
10161         * locale/programs/ld-ctype.c: Likewise.
10162         * locale/programs/ld-identification.c: Likewise.
10163         * locale/programs/ld-measurement.c: Likewise.
10164         * locale/programs/ld-messages.c: Likewise.
10165         * locale/programs/ld-monetary.c: Likewise.
10166         * locale/programs/ld-name.c: Likewise.
10167         * locale/programs/ld-numeric.c: Likewise.
10168         * locale/programs/ld-paper.c: Likewise.
10169         * locale/programs/ld-telephone.c: Likewise.
10170         * locale/programs/ld-time.c: Likewise.
10171         * locale/programs/linereader.c: Likewise.
10172         * locale/programs/linereader.h: Likewise.
10173         * locale/programs/localedef.c: Likewise.
10174         * locale/programs/locfile.c: Likewise.
10175         * locale/programs/repertoire.c: Likewise.
10177 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
10179         * elf/rtld.c (_dl_start_final): Determine load address to locate
10180         ehdr with GL(dl_rtld_map).l_map_start.
10182         * po/ca.po: Update from translation team.
10184         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
10185         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
10186         header entry.
10187         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10188         _dl_tls_module_cnt.
10189         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
10191 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
10193         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
10194         * include/link.h (struct link_map): Add various members for TLS
10195         information.
10196         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
10197         _rtld_tlsoffset, add _dl_initimage_list.
10198         * sysdeps/i386/dl-lookupcfg.h: New file.
10199         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
10200         TLS relocation.  When using TLS we now use RESOLVE_MAP.
10201         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
10202         is used.
10204         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
10205         unused.
10207         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
10208         thread-pointer as soon as possible.
10209         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
10210         elements in rtld_global.
10211         * sysdeps/generic/tls.h: New file.
10212         * elf/Makefile (distribute): Add tls.h.
10213         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
10214         relocations.  Not complete yet.
10216         * resolv/resolv.h: Allow user to define __need_res_state and only
10217         define __res_start structure then.
10218         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
10220         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
10221         dl_cpuclock_offset initialization to _dl_start_final.
10222         (_dl_show_auxv): Avoid unnecessary sign extension.
10223         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
10225 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
10227         * config.h.in: Add HAVE_TLS_SUPPORT.
10228         * sysdeps/i386/elf/configure.in: New file.
10230 2002-02-03  Andreas Schwab  <schwab@suse.de>
10232         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
10233         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
10235 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
10237         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
10238         alloca if the memory reqirements are too high.
10240 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
10242         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
10243         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
10244         the former is available anyway and speed isn't important here.
10245         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
10246         * elf/dl-version.c (match_symbol): Likewise.
10247         (_dl_check_map_versions): Likewise.
10248         * elf/rtld.c (process_envvars): Likewise.
10249         (print_statistics): Likewise.
10250         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
10251         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
10252         bases.  Add assert to catch uses of unimplemented features.
10253         (__strsep): Add assert to catch uses of unimplemented features.
10254         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
10255         and avoid inline optimization.
10256         * elf/rtld.c (process_envvars): Likewise.
10257         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
10258         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
10259         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
10261 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10263         * stdio-common/_itoa.h: Minor simplifications of the code.
10264         * stdio-common/_itoa.c: Likewise.
10266         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
10267         instead of _dl_printf for debugging info output.
10269         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
10270         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
10272 2002-02-01  H.J. Lu  <hjl@gnu.org>
10274         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
10275         (atomic_add): Likewise.
10276         (compare_and_swap): Return 0 only when failed to compare. Use
10277         branch likely.
10279         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
10280         branch likely.
10282 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
10284         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
10286 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10288         * elf/dl-minimal.c (__strsep): New minimal implementation.
10290 2002-02-02  Paul Eggert  <eggert@twinsun.com>
10292         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
10293         (__mktime_internal): If no tm_isdst is requested, prefer solutions
10294         with tm_isdst > 0 when the requested time falls within a
10295         spring-forward gap [PR libc/2894].
10297 2002-02-03  Andreas Schwab  <schwab@suse.de>
10299         * stdio-common/tst-rndseek.c: Increase timeout.
10301 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10303         Change ld.so to not use functions which are exported.  One cannot
10304         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
10305         definitions.
10306         * include/libc-symbols.h: Define INT and INTDEF.
10307         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
10308         _dl_signal_error_internal, _dl_map_object_internal,
10309         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
10310         _dl_lookup_versioned_symbol_internal,
10311         _dl_relocate_object_internal, _dl_debug_state_internal,
10312         _dl_start_profile_internal, and _dl_unload_cache_internal.
10313         * include/dlfcn.h: Declare _dl_catch_error_internal.
10314         * elf/rtld.c: Use INT for calls to any of the *_internal functions
10315         above.  Add INTDEF to function definitions.
10316         * elf/dl-debug.c: Likewise.
10317         * elf/dl-deps.c: Likewise.
10318         * elf/dl-dst.h: Likewise.
10319         * elf/dl-error.c: Likewise.
10320         * elf/dl-fini.c: Likewise.
10321         * elf/dl-init.c: Likewise.
10322         * elf/dl-load.c: Likewise.
10323         * elf/dl-lookup.c: Likewise.
10324         * elf/dl-misc.c: Likewise.
10325         * elf/dl-open.c: Likewise.
10326         * elf/dl-profile.c: Likewise.
10327         * elf/dl-reloc.c: Likewise.
10328         * elf/dl-runtime.c: Likewise.
10329         * elf/dl-version.c: Likewise.
10330         * elf/do-lookup.h: Likewise.
10331         * sysdeps/generic/dl-cache.c: Likewise.
10332         * sysdeps/generic/dl-sysdep.c: Likewise.
10333         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
10334         instead of _dl_init.
10335         * sysdeps/arm/dl-machine.h: Likewise.
10336         * sysdeps/cris/dl-machine.h: Likewise.
10337         * sysdeps/hppa/dl-machine.h: Likewise.
10338         * sysdeps/i386/dl-machine.h: Likewise.
10339         * sysdeps/ia64/dl-machine.h: Likewise.
10340         * sysdeps/m68k/dl-machine.h: Likewise.
10341         * sysdeps/mips/dl-machine.h: Likewise.
10342         * sysdeps/mips/mips64/dl-machine.h: Likewise.
10343         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10344         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10345         * sysdeps/sh/dl-machine.h: Likewise.
10346         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10347         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10348         * sysdeps/x86_64/dl-machine.h: Likewise.
10349         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
10351         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
10352         and _dl_debug_initialize.
10354         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
10355         more information.
10356         * elf/rtld.c (dl_main): Avoid strrchr.
10357         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
10358         result of readlink.  Search from the back for '/'.
10360         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
10361         strncpy if possible.
10363         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
10364         strncmp.
10365         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
10366         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
10367         strspn, and strcspn.
10368         (process_envvars): Don't use strcspn.
10370         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
10371         (_dl_dst_substitute): Likewise.
10373 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10375         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
10376         code which is never used when relocating ld.so itself.
10378         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
10379         starting ld.so itself.  Move l_addr variable initialization closer
10380         to use.
10381         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
10383 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
10385         * Versions.def (libc): Add GLIBC_PRIVATE.
10386         (libdb, libnss_db, libdb1): Remove.
10387         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
10388         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
10389         (libpthread): Add GLIBC_PRIVATE.
10390         (libresolv): Likewise, remove GLIBC_2.1.
10391         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
10392         GLIBC_2.2.3, GLIBC_2.3.
10393         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
10394         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
10395         _dl_sym, _dl_vsym): Likewise.
10396         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
10397         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
10398         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
10399         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
10400         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
10401         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
10402         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
10403         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
10404         Likewise.
10405         (_dl_object_relocation_scope): Remove.
10406         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
10407         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
10408         __gconv_cache): Move to GLIBC_PRIVATE.
10409         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
10410         __internal_setnetgrent): Likewise.
10411         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
10412         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
10413         * locale/Versions (__collate_element_hash, __collate_element_strings,
10414         __collate_symbol_classes, __collate_symbol_hash,
10415         __collate_symbol_strings, _nl_current_LC_COLLATE,
10416         _nl_current_LC_CTYPE): Likewise.
10417         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
10418         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
10419         (libnss_nis, libnss_nisplus): Likewise.
10420         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
10421         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
10422         (libnss_files): Move all symbols to GLIBC_PRIVATE.
10423         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
10424         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
10425         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
10426         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
10427         __ns_get16, __ns_samename): Likewise.
10428         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
10429         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
10430         GLIBC_PRIVATE.
10431         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
10432         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
10433         __libc_connect): Likewise.
10434         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
10435         Likewise.
10436         * stdlib/Versions (__libc_system): Likewise.
10437         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
10438         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
10439         * sysdeps/ia64/fpu/Versions: Likewise.
10440         * sysdeps/ia64/Versions: Likewise.
10441         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
10442         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
10443         to GLIBC_PRIVATE.
10444         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
10445         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
10446         __libc_sigaction): Likewise.
10447         * termios/Versions (__libc_tcdrain): Likewise.
10449         * misc/sys/cdefs (__attribute_noinline__): Define.
10450         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
10451         __attribute_noinline__.
10453         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
10454         * elf/dl-xstat64.c: New file.
10455         * elf/dl-fxstat64.c: New file.
10456         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
10457         don't export __fxstat64 at multiple versions.
10458         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
10459         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
10461 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
10463         * locale/program/ld-collate.c (collate_finish): Assign a wide
10464         char collation sequence value to multi character collating
10465         elements, and avoid over writing by non-character elements.
10467 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10469         * elf/Makefile (distribute): Add dl-procinfo.c.
10470         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
10471         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
10473 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
10475         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
10476         definition.
10477         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
10478         _rtld_global struct.
10479         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10480         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
10481         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10482         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
10483         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
10484         _dl_fpu_control_set): Remove unused externs.
10485         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
10486         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
10487         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
10488         related variables in _rtld_global struct.
10489         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
10490         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
10491         unused extern.
10493 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10495         * sysdeps/generic/dl-procinfo.c: New file.
10497 2002-02-01  Andreas Schwab  <schwab@suse.de>
10499         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
10501 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10503         * elf/rtld.c (_dl_start): Mark as internal_function.
10504         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
10505         in register.
10506         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
10507         General pretty printing.
10509 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
10511         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
10512         * elf/dl-reloc.c: Pretty printing.
10513         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
10514         procinfo-related variables in rtld_global struct.
10515         * elf/dl-support.c: Likewise.
10516         * elf/rtld.c: Likewise.
10517         * sysdeps/i386/i686/Makefile: Likewise.
10518         * sysdeps/i386/i686/hp-timing.c: Likewise.
10519         * sysdeps/i386/i686/hp-timing.h: Likewise.
10520         * sysdeps/ia64/Makefile: Likewise.
10521         * sysdeps/ia64/hp-timing.c: Likewise.
10522         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
10523         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
10524         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
10525         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
10526         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10527         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
10528         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
10529         * sysdeps/x86_64/Makefile: Likewise.
10531         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
10532         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
10533         _dl_debug_fd to rtld_global.
10534         * elf/Versions: Likewise.
10535         * elf/dl-close.c: Likewise.
10536         * elf/dl-iteratephdr.c: Likewise.
10537         * elf/dl-lookup.c: Likewise.
10538         * elf/dl-misc.c: Likewise.
10539         * elf/dl-open.c: Likewise.
10540         * elf/dl-support.c: Likewise.
10541         * elf/do-lookup.h: Likewise.
10542         * elf/rtld.c: Likewise.
10543         * sysdeps/generic/dl-cache.c: Likewise.
10544         * sysdeps/generic/dl-sysdep.c: Likewise.
10545         * sysdeps/ia64/Versions: Likewise.
10546         * sysdeps/unix/clock_gettime.c: Likewise.
10547         * sysdeps/unix/clock_settime.c: Likewise.
10548         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10549         * sysdeps/sparc/Versions: Removed.
10550         * sysdeps/i386/i686/Versions : Removed.
10551         * sysdeps/x86_64/Versions: Removed.
10552         * configure.in: Define HAVE_PROTECTED if .protected is available.
10553         * config.h.in: Add entry for HAVE_PROTECTED.
10555 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
10557         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
10558         code in struct _rtld_global.  Export this struct, remove all
10559         exports for the signal variables.
10560         * sysdeps/arm/dl-machine: Likewise.
10561         * sysdeps/generic/dl-origin: Likewise.
10562         * sysdeps/generic/dl-sysdep: Likewise.
10563         * sysdeps/generic/dl-cache: Likewise.
10564         * sysdeps/hppa/dl-fptr: Likewise.
10565         * sysdeps/hppa/dl-machine: Likewise.
10566         * sysdeps/cris/dl-machine: Likewise.
10567         * sysdeps/i386/dl-machine: Likewise.
10568         * sysdeps/ia64/dl-machine: Likewise.
10569         * sysdeps/m68k/dl-machine: Likewise.
10570         * sysdeps/mach/hurd/dl-sysdep: Likewise.
10571         * sysdeps/mips/mips64/dl-machine: Likewise.
10572         * sysdeps/mips/dl-machine: Likewise.
10573         * sysdeps/powerpc/elf/libc-start: Likewise.
10574         * sysdeps/powerpc/dl-machine: Likewise.
10575         * sysdeps/powerpc/dl-start: Likewise.
10576         * sysdeps/sparc/sparc32/dl-machine: Likewise.
10577         * sysdeps/sparc/sparc64/dl-machine: Likewise.
10578         * sysdeps/sh/dl-machine: Likewise.
10579         * sysdeps/s390/s390-32/dl-machine: Likewise.
10580         * sysdeps/s390/s390-64/dl-machine: Likewise.
10581         * sysdeps/unix/sysv/aix/libc-start: Likewise.
10582         * sysdeps/unix/sysv/aix/start-libc: Likewise.
10583         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
10584         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
10585         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
10586         * sysdeps/x86_64/dl-machine: Likewise.
10588 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
10590         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
10591         are too high.
10593 2002-01-31  Andreas Schwab  <schwab@suse.de>
10595         * sysdeps/posix/readv.c: Check for ssize_t overflow.
10597 2002-01-31  Andreas Schwab  <schwab@suse.de>
10599         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
10600         reference to _dl_pagesize.
10602 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
10604         * Versions.def [ld]: Add GLIBC_2.3.
10605         * elf/dl-addr.c: Move global variables for SHARED code in struct
10606         _rtld_global.  Export this struct, remove all exports for the
10607         signal variables.
10608         * elf/dl-close.c: Likewise.
10609         * elf/dl-conflict.c: Likewise.
10610         * elf/dl-debug.c: Likewise.
10611         * elf/dl-deps.c: Likewise.
10612         * elf/dl-dst.h: Likewise.
10613         * elf/dl-error.c: Likewise.
10614         * elf/dl-fini.c: Likewise.
10615         * elf/dl-init.c: Likewise.
10616         * elf/dl-iteratephdr.c: Likewise.
10617         * elf/dl-libc.c: Likewise.
10618         * elf/dl-load.c: Likewise.
10619         * elf/dl-lookup.c: Likewise.
10620         * elf/dl-minimal.c: Likewise.
10621         * elf/dl-object.c: Likewise.
10622         * elf/dl-open.c: Likewise.
10623         * elf/dl-profile.c: Likewise.
10624         * elf/dl-profstub.c: Likewise.
10625         * elf/dl-reloc.c: Likewise.
10626         * elf/dl-runtime.c: Likewise.
10627         * elf/dl-support.c: Likewise.
10628         * elf/dl-sym.c: Likewise.
10629         * elf/dl-version.c: Likewise.
10630         * elf/do-lookup.h: Likewise.
10631         * elf/do-rel.h: Likewise.
10632         * elf/dynamic-link.h: Likewise.
10633         * elf/rtld.c: Likewise.
10634         * sysdeps/generic/dl-cache.c: Likewise.
10635         * sysdeps/generic/dl-sysdep.c: Likewise.
10636         * sysdeps/generic/ldsodefs.h: Likewise.
10637         * sysdeps/generic/libc-start.c: Likewise.
10638         * sysdeps/i386/dl-machine.h: Likewise.
10639         * sysdeps/ia64/dl-fptr.c: Likewise.
10640         * sysdeps/ia64/dl-machine.h: Likewise.
10641         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
10642         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10643         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
10644         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
10645         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
10646         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
10647         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
10648         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
10650 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10652         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
10653         to avoid warning
10654         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
10656         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
10657         SHARED version.
10658         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
10660         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
10662 2002-01-29  Ben Collins  <bcollins@debian.org>
10664         * string/bits/string2.h (__mempcpy): Protect size arg for
10665         addition when using __builtin_memcpy.
10667 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10669         * stdlib/Makefile (tests): Add tst-qsort.
10670         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
10672         * manual/signal.texi (Process Signal Mask): Document that
10673         pthread_sigmask, not sigprocmask, must be used in MT programs.
10674         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
10676         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
10677         found.
10678         * misc/Makefile (tests): Add tst-hsearch.
10679         * misc/tst-hsearch.c: New file.
10681 2002-01-18  Wolfram Gloger  <wg@malloc.de>
10683         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
10684         * malloc/malloc.h: Likewise.
10685         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
10686         * malloc/arena.c: New file.
10687         * malloc/hooks.c: New file.
10688         * malloc/tst-mallocstate.c: New file.
10689         * malloc/Makefile: Add new testcase tst-mallocstate.
10690         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
10692 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10694         * stdlib/msort.c: Remove last patch.  The optimization violates the
10695         same rule which qsort.c had problems with.
10697 2002-01-27  Paul Eggert  <eggert@twinsun.com>
10699         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
10700         to a pivot element that lies outside the array to be sorted, as
10701         ISO C99 requires that the comparison function be called only with
10702         addresses of array elements [PR libc/2880].
10704 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10706         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
10707         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
10709         * timezone/asia: Update from tzdata2002b.
10710         * timezone/australasia: Likewise.
10711         * timezone/backward: Likewise.
10712         * timezone/europe: Likewise.
10713         * timezone/leapseconds: Likewise.
10714         * timezone/iso3166.tab: Likewise.
10715         * timezone/zone.tab: Likewise.
10717 2002-01-23  Richard Henderson  <rth@redhat.com>
10719         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10721 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10723         * string/strxfrm.c: Allocate one more byte for rulearr and clear
10724         this element [PR libc/2855].
10726         * string/strcoll.c: Handle zero-length arguments specially
10727         [PR libc/2856].
10729 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
10731         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10732         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10733         short lengths and constant src.
10734         (strcpy): Don't optimize for gcc 3.0+.
10735         (__stpcpy): For gcc 3.0+, don't use
10736         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10737         for short string literal src.
10739 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10741         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10742         Set for arm, too.
10744 2001-01-22  Paul Eggert  <eggert@twinsun.com>
10746         * manual/llio.texi (Linked Channels, Cleaning Streams):
10747         Make it clearer that a just-opened input stream might need cleaning.
10749 2002-01-21  H.J. Lu  <hjl@gnu.org>
10751         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10752         Don't use label at end of compound statement.
10754 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
10756         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10757         Remove test for negative integer arg; sin_pi does it correctly.
10759 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
10761         * nscd/Makefile (distribute): Filter out xmalloc.c.
10763 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
10765         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10766         Set offset if read end wasn't the buffer end.
10767         (_IO_file_seekoff_mmap): New function.
10768         (_IO_file_xsgetn_mmap): New function.
10769         (_IO_file_jumps_mmap): Use the two new functions.
10770         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10771         != end buffer.
10772         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10773         _IO_file_underflow_mmap.
10774         * libio/iofopen.c: Don't position file descriptor at end of file.
10775         * libio/tst-widetext.c: Improve error messages.
10776         * stdio-common/tst-rndseek.c: Likewise.
10778 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
10780         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10781         end of enum for !_GNU_SOURCE.
10782         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10783         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10784         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10785         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10786         values unless _GNU_SOURCE.
10788         * iconvdata/tcvn5712-1.c: Minor cleanups.
10790 2002-01-18  Andreas Schwab  <schwab@suse.de>
10792         * sysdeps/unix/sysv/linux/configure.in
10793         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10795 2002-01-16  Roger Sayle  <roger@eyesopen.com>
10797         * stdlib/msort.c (msort_with_tmp): Replace implementation with
10798         more efficient "Towers of Hanoi" mergesort.
10799         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10800         for generic, sizeof(int) and sizeof(long) variants respectively.
10802 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
10804         * manual/syslog.texi (openlog): Describe possible problems with
10805         first parameter.
10806         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10808         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
10809         * nscd/connections.c (begin_drop_privileges): New function.
10810         (finish_drop_privileges): New function.
10811         (nscd_init): Call the new functions which also install all groups
10812         for the server user.
10813         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10814         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10816 2002-01-17  H.J. Lu  <hjl@gnu.org>
10818         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10819         `const' from `got'.
10821 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10823         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10824         instructions for pointer operations.
10825         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10827 2002-01-17  Andreas Jaeger  <aj@suse.de>
10829         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10830         __uint128_t build-in.
10832         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10833         PowerPC, sync with 2.2 branch.
10835 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10837         * posix/getconf.c: Update copyright year.
10838         * nss/getent.c: Likewise.
10839         * nscd/nscd_nischeck.c: Likewise.
10840         * iconv/iconvconfig.c: Likewise.
10841         * iconv/iconv_prog.c: Likewise.
10842         * elf/ldconfig.c: Likewise.
10843         * catgets/gencat.c: Likewise.
10844         * csu/version.c: Likewise.
10845         * elf/ldd.bash.in: Likewise.
10846         * elf/sprof.c (print_version): Likewise.
10847         * locale/programs/locale.c: Likewise.
10848         * locale/programs/localedef.c: Likewise.
10849         * nscd/nscd.c (print_version): Likewise.
10850         * debug/xtrace.sh: Likewise.
10851         * malloc/memusage.sh: Likewise.
10852         * malloc/mtrace.pl: Likewise.
10854 2002-01-16  Andreas Schwab  <schwab@suse.de>
10856         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10857         reliably remove "-ia64" from rtld name.
10859 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10861         * iconvdata/gb18030.c: Bug fixes and support for more characters.
10862         Patch by Yu Shao <yshao@redhat.com>.
10864 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10866         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10867         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10868         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10870 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10872         * sysdeps/s390/fpu/libm-test-ulps: Update.
10874 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
10876         * elf/elf.h: Update x86 relocations.
10878 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10880         * locale/programs/charmap.c (new_width): Check whether byte
10881         sequences for both ends of range have the same length.
10883 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10885         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10887 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10889         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10890         string literals.
10891         (__full_ieee754_sqrt): Add __attribute_used__.
10893 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10895         * sysdeps/generic/group_member.c (__group_member): Also check
10896         groups[0] [PR libc/2781].
10898 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
10900         * Makefile (distribute): Add scripts/cpp.
10901         * elf/Makefile (distribute): Add reldep6mod[01234].c,
10902         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10903         unwind-dw2-fde.h, and dwarf2.h.
10904         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10905         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10906         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10907         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10909 2002-01-07  Roland McGrath  <roland@frob.com>
10911         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10912         volatile on type of ARGC so the compiler doesn't get clever.
10914 2002-01-07  Andreas Jaeger  <aj@suse.de>
10916         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10917         * sysdeps/i386/bits/byteswap.h: Likewise.
10918         * sysdeps/ia64/bits/byteswap.h: Likewise.
10919         * sysdeps/m68k/bits/byteswap.h: Likewise.
10920         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10921         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10923 2002-01-02  Bruno Haible  <bruno@clisp.org>
10925         * intl/plural.y: Fix %expect count.
10927 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10929         * elf/Makefile (routines, shared-only-routines): Add
10930         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10931         * elf/elf.h (PT_GNU_EH_FRAME): Define.
10932         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10933         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10934         Optimize if .eh_frame section contains no FDEs.
10935         (__register_frame, __deregister_frame_info_bases,
10936         __deregister_frame): Likewise.
10937         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10938         DW_CFA_restore handling.
10940 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
10942         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10944         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10945         for x < 0.25 and restore original range reduction method.
10946         (__ieee754_lgammal_r): Make sure signgam is set before returning.
10948 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
10950         * libio/fileops.c (_IO_file_underflow_mmap): New function.
10951         (_IO_file_close_mmap): New function.
10952         (_IO_file_jumps_mmap): New variable.
10953         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10954         trying to convert rest of byte buffer.
10955         (_IO_wfile_underflow_mmap): New function.
10956         (_IO_wfile_jumps_mmap): New variable.
10957         * libio/iofopen.c (__fopen_maybe_mmap): New function.
10958         (__fopen_internal): New function.  Split out from _IO_new_fopen.
10959         (_IO_new_fopen): Call __fopen_internal.
10960         * libio/iofopen64.c: Just call __fopen_internal.
10961         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10962         successfully.
10963         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10964         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10965         _IO_file_close_mmap.
10967         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10968         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10970         * stdio-common/Makefile (tests): Add tst-rndseek.
10971         * stdio-common/tst-rndseek.c: New file.
10973 2002-01-05  Roland McGrath  <roland@frob.com>
10975         * config.h.in (HAVE_MIG_RETCODE): New #undef.
10976         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10977         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10978         * sysdeps/mach/hurd/configure: Regenerated.
10980 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
10982         * elf/elf.h: Add more TLS definitions.
10984 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
10986         * include/features.h (__GLIBC_MINOR__): Bump to 3.
10988 2002-01-02  Roland McGrath  <roland@frob.com>
10990         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10991         __sigisemptyset.  Don't use MASK uninitialized.
10993         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10994         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10995         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10996         __sigdelset, __sigaddset, __sigorset.
10998         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10999         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
11001         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
11002         _hurd_ports is null.
11004         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
11005         for old CMU and new OSF Mach interface flavors.
11006         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
11007         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
11009         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
11011         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
11012         Pass extra arguments to task_create for OSF variant.
11013         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
11015         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
11016         conditional on [HAVE_AUX_VECTOR].
11018         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
11019         mach_msg_timeout_t as type of final argument.
11021         * hurd/privports.c (__get_privileged_ports):
11022         Change host_priv_t to mach_port_t in argument type.
11023         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
11024         Update decls.
11026         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
11027         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
11028         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
11029         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
11030         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
11031         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
11033 2002-01-01  Roland McGrath  <roland@frob.com>
11035         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
11037 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
11039         * include/stdlib.h: Define inlines for the _l variants of the strto*
11040         functions.
11042 2002-01-01  Roland McGrath  <roland@frob.com>
11044         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
11046         * mach/Machrules (MIG): Set CPP as well as CC.
11048 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
11050         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
11051         locale to parse /proc/loadavg [PR libc/2760].
11053 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
11055         * elf/dl-conflict.c: Include sys/param.h.
11056         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
11057         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
11058         warning.
11059         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
11060         literals to avoid warnings.
11062 2001-12-31  Andreas Jaeger  <aj@suse.de>
11064         * configure.in: Don't check for gsed since we do not use it anywhere.
11066 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
11068         * io/fts.c: Update from BSD to fix memory leaks.
11070 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
11072         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
11073         * elf/chroot_canon.c: Likewise.
11074         * elf/dl-object.c: Likewise.
11075         * iconv/iconv_charmap.c: Likewise.
11076         * iconv/iconv_prog.c: Likewise.
11077         * libio/iogetdelim.c: Likewise.
11078         * locale/lc-time.c: Likewise.
11079         * stdlib/canonicalize.c: Likewise.
11080         * sunrpc/svc.c: Likewise.
11081         * sysdeps/generic/glob.c: Likewise.
11083 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11085         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
11086         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
11087         remove high order bit from the program counter.
11088         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
11090 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11092         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
11093         unnecessary code and add missing reloc types.
11094         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
11095         case for reloc type R_390_NONE.
11097 2001-12-28  Andreas Jaeger  <aj@suse.de>
11099         * io/bug-ftw3.c: Include string.h for prototypes.
11101         * crypt/md5test.c (main): Remove unused variable.
11103         * dlfcn/modstatic.c: Add prototype to avoid warning.
11105 2001-12-26  Roland McGrath  <roland@frob.com>
11107         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
11108         check only (SS->pending & MASK) for the signal to return.
11109         From Jeroen Dekkers <jeroen@dekkers.cx>.
11111 2001-12-22  Roland McGrath  <roland@frob.com>
11113         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
11114         Use preprocessor #if conditionals instead of `if' to avoid
11115         warnings about divide by zero in dead code.
11117         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
11118         _hurd_port_init, and __hurd_self_sigstate.
11120         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
11122 2001-12-21  Andreas Jaeger  <aj@suse.de>
11124         * elf/dblloadmod1.c: Add prototype to avoid warning.
11125         * elf/dblloadmod2.c: Likewise.
11126         * elf/dblloadmod3.c: Likewise.
11127         * elf/reldepmod5.c: Likewise.
11128         * elf/reldepmod6.c: Likewise.
11130         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
11131         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
11132         used on all architectures.
11134         * sunrpc/svc_tcp.c: Add noreturn attribute for
11135         svctcp_rendezvous_abort.
11136         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
11138         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
11139         to avoid warning.
11141 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
11143         * manual/llio.texi (aio_fsync): Fix a typo.
11144         Patch by Tammy Fox <tfox@redhat.com>.
11146 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
11148         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
11149         stack bias from child stack pointer before passing it to clone syscall.
11151 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
11153         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
11154         _SC_TZNAME_MAX.
11155         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
11156         Reported by Thorsten Kukuk <kukuk@suse.de>.
11158         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
11159         add some casts.
11161         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
11163 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
11165         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
11166         conforming: return EBADF if file descriptor is invalid and EINVAL
11167         if file descriptor is no valid tty.
11168         * login/tst-grantpt.c: New file.
11169         * login/Makefile (tests): Add tst-grantpt.
11171 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
11173         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
11174         different than implemented in last patch.
11175         * io/bug-ftw3.c: Adjust test for changed handling of
11176         inaccessibility of toplevel dir.
11178 2001-12-16  Roland McGrath  <roland@frob.com>
11180         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
11181         * grp/initgroups.c (internal_getgrouplist): Likewise.
11183         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
11184         `default:' to silence new GCC warning.
11185         Rewrite cast of lvalue to silence new GCC warning.
11187         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
11189         * sysdeps/mach/hurd/spawni.c: New file, by me with a
11190         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
11192 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
11194         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
11195         Patch by Stephen R. van den Berg.
11197         * crypt/md5.h: Define md5_uintptr.
11199 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
11201         * libio/tst_swprintf.c (main): Add test for string argument with
11202         zero precision.
11203         * stdio-common/Makefile (tests): Add tst-sprintf.
11204         * stdio-common/tst-sprintf.c: New file.
11206 2001-12-13  Andreas Schwab  <schwab@suse.de>
11208         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
11209         zero precision with wide character string format.
11211 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
11213         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
11214         but have a user supplied buffer, return the empty buffer, not NULL.
11216 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
11218         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
11219         Patch by Eric Sharkey <sharkey@netrics.com>.
11221         * crypt/md5test.c (main): Add test for multiple calls to
11222         __md5_process_bytes to itererate over input string.
11224 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
11226         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
11227         from __nis_findfastest.  Take timeout value from parameter.
11228         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
11229         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
11230         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
11232 2001-12-12  Andreas Jaeger  <aj@suse.de>
11234         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
11235         combreloc test so that it works in this case.
11237         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
11239 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
11241         * sysdeps/sh/Makefile: New file.
11242         * sysdeps/sh/_mcount.S: New file.
11243         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
11244         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
11246 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
11248         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
11249         limitation [PR libc/2564].
11251 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
11253         * elf/Makefile (dl-routines): Add conflict.
11254         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
11255         (ld.so): Add _begin local symbol.
11256         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
11257         Define.
11258         * elf/dl-deps.c (_dl_build_local_scope): New function.
11259         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
11260         of all libraries.
11261         * elf/do-rel.h (VALIDX): Define.
11262         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
11263         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
11264         can be skipped.
11265         * elf/dl-conflict.c: New file.
11266         * elf/dl-lookup.c (_dl_debug_bindings): New function.
11267         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
11268         non-NULL.
11269         (_dl_lookup_symbol_skip): Likewise.
11270         (_dl_lookup_versioned_symbol): Likewise.
11271         (_dl_lookup_versioned_symbol_skip): Likewise.
11272         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
11273         define to ElfW(Rel).
11274         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
11275         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
11276         ranges.
11277         Don't adjust address dynamic tags if l_addr is 0.
11278         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
11279         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
11280         (VALIDX, ADDRIDX): Define.
11281         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
11282         (dl_main): Print library list for LD_TRACE_PRELINKING.
11283         If prelinking information can be used, skip relocating libraries and
11284         call _dl_resolve_conflicts instead.
11285         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
11286         * elf/dl-load.c (_dl_map_object): Don't create fake libs
11287         if LD_TRACE_PRELINKING.
11288         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
11289         + DT_ADDRNUM.
11290         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
11291         (DL_DEBUG_PRELINK): Define.
11292         (_dl_resolve_conflicts): Add prototype.
11294         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
11295         .plt for prelinked libraries where prelinking info cannot be used.
11296         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
11297         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
11298         * sysdeps/arm/bits/link.h: New file.
11299         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
11300         content of .got[1].
11301         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
11302         (ELF_MACHINE_PLT_REL): Define.
11303         (elf_machine_rela, elf_machine_rela_relative): New functions.
11304         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
11305         of adjusting it if prelinked and prelinking cannot be used.
11306         * sysdeps/i386/bits/link.h: New file.
11307         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
11308         content of .got[1].
11309         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
11310         (ELF_MACHINE_PLT_REL): Define.
11311         (elf_machine_rela, elf_machine_rela_relative): New functions.
11312         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
11313         of adjusting it if prelinked and prelinking cannot be used.
11314         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
11315         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
11316         to find out map for R_PPC_JMP_SLOT relocs.
11317         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
11318         (OPCODE_BA): Define.
11319         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
11320         libraries where prelinking info cannot be used.
11321         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
11322         (elf_machine_fixup_plt): Call sparc_fixup_plt.
11323         (elf_machine_rela): Set value to 0 if relocating conflicts.
11324         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
11325         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
11326         (sparc64_fixup_plt): Fix a typo.
11327         (elf_machine_rela): Set value to 0 if relocating conflicts.
11328         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
11329         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
11330         libraries where prelinking info cannot be used.
11331         * sysdeps/sh/bits/link.h: New file.
11332         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
11333         content of .got[1].
11334         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
11335         of adjusting it if prelinked and prelinking cannot be used.
11336         * sysdeps/s390/s390-32/bits/link.h: New file.
11337         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
11338         Save original content of .got[1].
11339         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
11340         of adjusting it if prelinked and prelinking cannot be used.
11341         * sysdeps/s390/s390-64/bits/link.h: New file.
11342         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
11343         Save original content of .got[1].
11344         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
11345         of adjusting it if prelinked and prelinking cannot be used.
11346         * sysdeps/x86_64/bits/link.h: New file.
11347         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
11348         Save original content of .got[1].
11349         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
11350         of adjusting it if prelinked and prelinking cannot be used.
11352 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
11354         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
11355         where appropriate instead of numbers.  Little optimizations.
11357 2001-12-10  Roland McGrath  <roland@frob.com>
11359         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
11360         set it.
11362         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
11363         set to GLIBC_2.2.5, not GLIBC_2.2.4.
11365         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
11366         Fix conditionals so this is set by default for stdio and not for libio.
11367         * sysdeps/mach/hurd/configure: Regenerated.
11369 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
11371         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
11373 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
11375         * io/Makefile (tests): Add bug-ftw3.
11376         * io/bug-ftw3.c: New file.
11378         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
11379         matches and GLOB_NOCHECK is set.
11380         * posix/globtest.sh: Correct expected result for NOCHECK test.
11382         * po/ca.po: Update from translation team.
11384 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
11386         Implement transliteration of characters in strings of the locale
11387         definitions.
11388         * locale/programs/linereader.c: Adjust for additional parameter to
11389         lr_token.
11390         (get_string): If character <Uxxxx> is not found try to transliterate
11391         it.
11392         * locale/programs/ld-ctype.c: Adjust for additional parameter to
11393         lr_token.  Add const to charmap parameter of all functions.
11394         (find_translit, find_translit2): New functions.
11395         * locale/programs/charmap.c: Adjust for additional parameter to
11396         lr_token.
11397         * locale/programs/repertoire.c: Likewise.
11398         * locale/programs/linereader.h: Likewise.
11399         * locale/programs/ld-address.c: Likewise.  Add const to charmap
11400         parameter of all functions.
11401         * locale/programs/ld-collate.c: Likewise.
11402         * locale/programs/ld-identification.c: Likewise.
11403         * locale/programs/ld-measurement.c: Likewise.
11404         * locale/programs/ld-messages.c: Likewise.
11405         * locale/programs/ld-monetary.c: Likewise.
11406         * locale/programs/ld-name.c: Likewise.
11407         * locale/programs/ld-numeric.c: Likewise.
11408         * locale/programs/ld-paper.c: Likewise.
11409         * locale/programs/ld-paper.c: Likewise.
11410         * locale/programs/ld-telephone.c: Likewise.
11411         * locale/programs/ld-time.c: Likewise.
11412         * locale/programs/locfile.c: Likewise.
11413         * locale/programs/localedef.c: Likewise.
11414         * locale/programs/localedef.h: Likewise.
11415         * locale/programs/locfile.h: Likewise.  Add declaration for
11416         find_translit.
11417         * locale/programs/simple-hash.c: Add const to first parameter of
11418         find_entry, iterate_table, and lookup.
11419         * locale/programs/simple-hash.h: Likewise.
11420         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
11421         instead.
11422         * include/locale.h: Define __LC_LAST.
11423         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
11425 2001-12-07  Geoff Keating  <geoffk@redhat.com>
11427         * sysdeps/powerpc/Dist: Update for recent FP changes.
11428         * sysdeps/powerpc/fpu/Dist: Likewise.
11430 2001-12-07  Andreas Schwab  <schwab@suse.de>
11432         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
11434 2001-12-06  Geoff Keating  <geoffk@redhat.com>
11436         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
11437         save/restore functions here.
11438         (libm-support): Don't define these functions here.
11439         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
11440         functions here.
11441         * sysdeps/powerpc/fe_nomask.c: Move to...
11442         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
11443         * sysdeps/powerpc/fprrest.S: Move to...
11444         * sysdeps/powerpc/fpu/fprrest.S: ... here.
11445         * sysdeps/powerpc/fprsave.S: Move to...
11446         * sysdeps/powerpc/fpu/fprsave.S: ... here.
11448 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
11450         * sysdeps/unix/sysv/linux/opensock.c: New file.
11452 2001-12-06  Geoff Keating  <geoffk@redhat.com>
11454         * config.make.in (with-fp): Define from configure.
11455         * configure.in: Substitute with_fp.
11456         * configure: Regenerate.
11457         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
11458         specified, and don't change FPU environment.
11460 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
11462         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
11463         * assert/assert.c: Check result of __asprintf call and don't use
11464         string if it failed.
11465         * assert/assert-perr.c: Likewise.
11466         * inet/rcmd.c: Likewise.
11467         * locale/programs/localedef.c (main): Check result of
11468         construct_output_path and exit if it failed.
11469         (construct_output_path): Check result of asprintf and mkdir calls and
11470         fail if they failed.
11471         * posix/getopt.c: Check result of __asprintf calls and fail if
11472         they failed.
11473         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
11475 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11477         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
11478         patch.
11479         * sysdeps/generic/strncase.c: Likewise.
11480         * string/tester.c: Add tests for strcasecmp and strncasecmp.
11482 2001-12-05  Geoff Keating  <geoffk@redhat.com>
11484         * scripts/cpp: Test the exit status from 'type', not 'awk'.
11486         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
11487         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
11488         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
11489         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
11490         * sysdeps/powerpc/fclrexcpt.c: Move to...
11491         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
11492         * sysdeps/powerpc/fpu_control.h: Move to...
11493         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
11495 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11497         * iconvdata/ibm1129.h: Remove duplicate mappings.
11498         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
11499         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
11500         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11502         * timezone/zic.c: Fix handling of turnaround times.
11503         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
11505 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
11507         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
11508         overflow problem.
11510 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11512         * posix/regex.c: For use outside glibc defined bounded pointer
11513         macros here.  Patch by Jim Meyering <jim@meyering.net>.
11515         * iconvdata/Makefile (modules): Add TCVN5712-1.
11516         * iconvdata/TESTS: Add TCVN5712-1.
11517         * iconvdata/gconv-modules: Likewise.
11518         * iconvdata/tcvn5712-1.c: New file.
11519         * iconvdata/testdata/TCVN-5712: New file.
11520         * iconvdata/testdata/TCVN-5712..UTF8: New file.
11522 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
11524         * iconvdata/cp1258.c: Optimize conversion from UCS4.
11526 2001-12-02  Roland McGrath  <roland@frob.com>
11528         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
11530         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
11531         Reported by Jeff Bailey <jbailey@nisa.net>.
11533         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
11534         Reported by Jeff Bailey <jbailey@nisa.net>.
11536         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
11537         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
11538         Reported by Jeff Bailey <jbailey@nisa.net>.
11540 2001-12-01  Roland McGrath  <roland@frob.com>
11542         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
11543         missing backslash in test arguments.
11544         * sysdeps/mach/hurd/configure: Regenerated.
11546 2001-11-26  Roland McGrath  <roland@frob.com>
11548         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
11549         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
11551 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
11553         * iconvdata/Makefile (modules): Add ARMSCII-8.
11554         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
11555         * iconvdata/armscii-8.c: New file.
11557 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
11559         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
11560         don't match, fix {{a,b},c} globbing, clean up.
11561         Patch by Flavio Veloso <flaviovs@magnux.com>.
11562         * posix/globtest.sh: Add new tests.
11564 2001-11-29  Andreas Jaeger  <aj@suse.de>
11566         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
11567         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
11569         * sysdeps/generic/abort.c: Include libioP.h for
11570         _IO_flush_all_lockp prototype.
11572 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
11574         * posix/regex.h: Define __restrict_arr correctly.
11576 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11578         * iconvdata/ibm1163.c: New file.
11579         * iconvdata/ibm1163.h: New file.
11580         * iconvdata/ibm1164.c: New file.
11581         * iconvdata/ibm1164.h: New file.
11582         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
11583         * iconvdata/Makefile: Likewise.
11584         * iconvdata/testdata/IBM1163: New file.
11585         * iconvdata/testdata/IBM1163..UTF8: New file.
11586         * iconvdata/testdata/IBM1164: New file.
11587         * iconvdata/testdata/IBM1164..UTF8: New file.
11588         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11590         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
11591         * iconvdata/ibm1124.h: Likewise.
11592         * iconvdata/ibm1132.h: Likewise.
11593         * iconvdata/ibm1133.h: Likewise.
11594         * iconvdata/ibm1160.h: Likewise.
11595         * iconvdata/ibm1161.h: Likewise.
11596         * iconvdata/ibm1162.h: Likewise.
11597         * iconvdata/ibm856.h: Likewise.
11598         * iconvdata/ibm922.h: Likewise.
11599         * iconvdata/ibm930.h: Likewise.
11600         * iconvdata/ibm932.h: Likewise.
11601         * iconvdata/ibm933.h: Likewise.
11602         * iconvdata/ibm935.h: Likewise.
11603         * iconvdata/ibm937.h: Likewise.
11604         * iconvdata/ibm939.h: Likewise.
11605         * iconvdata/ibm943.h: Likewise.
11606         * iconvdata/ibm930.c: Pretty printing.
11607         * iconvdata/ibm937.c: Avoid access accross array boundary.
11609         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
11610         the current locale's codeset.
11611         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
11612         empty input string.
11613         * iconv/iconv_prog.c: Pass empty strings as default value for to-
11614         and from-charset.  Don't determine locale's charset here.
11616         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
11617         as the old _IO_flush_all but lock only if parameter is nonzero.
11618         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
11619         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
11620         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
11621         if libio is used [PR libc/2575].
11623 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
11625         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
11626         __signbitl): Only define for ISO C99.
11628 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11630         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
11631         herrnop to NETDB_INTERNAL if we run out of buffer space.
11633 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11635         * nss/nss_files/files-XXX.c (internal_getent): Correct input
11636         overflow test for platforms with signed char.
11637         Reported by Andrew Haley <aph@cambridge.redhat.com>.
11639 2001-11-28  Bruno Haible  <bruno@clisp.org>
11641         * locale/programs/simple-hash.c (lookup_2): Remove function.
11642         (insert_entry_2): Call lookup instead of lookup_2.
11644 2001-03-04  Bruno Haible  <bruno@clisp.org>
11646         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
11648 2001-10-31  Bruno Haible  <bruno@clisp.org>
11650         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
11652 2001-03-21  Bruno Haible  <bruno@clisp.org>
11654         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
11655         chokes on empty macro arguments.
11656         * intl/plural.y: Add #pragma for alloca on AIX 3.
11658 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11660         * intl/dcigettext.c (guess_category_value): Only implement for
11661         glibc.  Otherwise rely on function _nl_locale_name which isn't
11662         present in the glibc sources.
11664 2001-09-24  Bruno Haible  <bruno@clisp.org>
11666         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
11667         transliteration when building on a glibc system but outside glibc.
11669 2001-09-22  Bruno Haible  <bruno@clisp.org>
11671         * intl/plural-eval.c: New file, extracted from dcigettext.c.
11672         * intl/dcigettext.c (plural_eval): Remove function, moved to
11673         intl/plural-eval.c.
11674         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
11675         Include plural-eval.c.
11677 2001-09-22  Bruno Haible  <bruno@clisp.org>
11679         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
11680         don't start with a digit; nplurals must be positive.
11682 2001-09-02  Bruno Haible  <bruno@clisp.org>
11684         * intl/plural-exp.h: New file, extracted from gettextP.h.
11685         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
11686         * intl/gettextP.h (struct expression, struct parse_args,
11687         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
11688         * intl/loadmsgcat.c: Include plural-exp.h.
11689         (PLURAL_PARSE): Move macro to plural-exp.h.
11690         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
11691         plural-exp.c.
11692         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
11693         EXTRACT_PLURAL_EXPRESSION.
11694         (_nl_unload_domain): Update.
11695         * intl/dcigettext.c: Include plural-exp.h.
11696         * intl/plural.y: Include plural-exp.h, not gettextP.h.
11697         (FREE_EXPRESSION): Move macro to plural-exp.h.
11698         * intl/Makefile (routines): Add plural-exp.
11699         (distribute): Add plural-exp.h.
11701 2001-07-28  Bruno Haible  <bruno@clisp.org>
11703         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
11704         isdigit, tolower argument to 'unsigned char'.
11705         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
11706         'unsigned char'.
11707         * intl/localealias.c (read_alias_file): Cast isspace argument to
11708         'unsigned char'.
11710 2001-10-20  Bruno Haible  <bruno@clisp.org>
11712         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
11713         anyway.)
11714         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
11715         with the variable 'index' in plural_lookup.
11716         * intl/l10nflist.c (strchr): Likewise.
11717         * intl/localealias.c (strchr): Likewise.
11719         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11720         * intl/bindtextdom.c: Likewise.
11721         * intl/dcigettext.c: Likewise.
11722         * intl/dgettext.c: Likewise.
11723         * intl/dngettext.c: Likewise.
11724         * intl/explodename.c: Likewise.
11725         * intl/finddomain.c: Likewise.
11726         * intl/gettext.c: Likewise.
11727         * intl/l10nflist.c: Likewise.
11728         * intl/loadmsgcat.c: Likewise.
11729         * intl/localealias.c: Likewise.
11730         * intl/ngettext.c: Likewise.
11731         * intl/textdomain.c: Likewise.
11732         * intl/gettext.h: Assume <limits.h> exists.
11734 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11736         * stdio-common/Makefile (tests): Add scanf11.
11737         * stdio-common/scanf11.c: New file.
11739 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11741         * version.h (RELEASE): Define as development.
11742         (VERSION): Set to 2.2.90.
11744 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11746         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11747         * nis/nss_nis/nis-grp.c: Likewise.
11748         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11750         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11751         * nis/nss_nis/nis-pwd.c: Likewise.
11752         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11754         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11755         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11756         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11758         * nscd/grpcache.c: Use strtoul instead of atol.
11759         * nscd/pwdcache.c: Likewise.
11760         * nss/getent.c: Likewise.
11762 2001-11-27  Paul Eggert  <eggert@twinsun.com>
11764         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11765         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11767 2001-11-19  Bruno Haible  <bruno@clisp.org>
11769         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11770         90%.
11771         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11772         improves the quality of the hash function, especially for short
11773         strings.
11775 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11777         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11778         are found call conv_error and not input_error [PR libc/2669].
11780         * math/bits/mathcalls.h: Mark ceil and floor as const.
11781         Reported by David Mosberger.
11783 2001-11-21  Jim Meyering  <meyering@lucent.com>
11785         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11786         Define to be __-prefixed.
11787         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11789 2001-11-26  Andreas Jaeger  <aj@suse.de>
11791         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11792         avoid warning.
11794 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
11796         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11797         initialization.
11799         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11800         unused variables.  Fix threshold for returning 1.0.
11802         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11803         argument.
11805         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11806         remove unused variables.
11808         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11810         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11811         include local math header files.
11813 2001-11-22  Andreas Jaeger  <aj@suse.de>
11815         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11816         avoid warning.
11818 2001-11-21  Andreas Jaeger  <aj@suse.de>
11820         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11822         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11823         sys/debugreg.h
11825 2001-11-15  Andreas Jaeger  <aj@suse.de>
11827         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11828         compilers that support it.
11830         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11831         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11832         * stdlib/stdlib.h: Likewise.
11834 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
11836         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11837         statement with gotos.
11838         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11840 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
11842         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11844 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
11846         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11848 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
11849             H.J. Lu  <hjl@gnu.org>
11851         * Versions.def (libc): Add GCC_3.0.
11852         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11853         if gcc supports this flag.
11854         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11855         (gcc3): Allow glibc to be compiled with gcc 3.x.
11856         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11857         * config.make.in (static-libgcc, unwind-find-fde): Add.
11858         * Makerules (build-shlib-helper, build-module-helper): Use it.
11859         * scripts/versions.awk: Make sure GLIBC_ versions come first.
11860         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11861         necessary.
11862         (_fini): Call __deregister_frame_info_bases if
11863         __register_frame_info_bases was used to register.
11864         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11865         for GLIBC_2.0.
11866         (__register_frame_info_bases, __register_frame_info_table_bases,
11867         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11868         * elf/Makefile (routines): Add unwind-dw2-fde.
11869         (shared-only-routines): Add unwind-dw2-fde.
11870         * sysdeps/alpha/gccframe.h: New file.
11871         * sysdeps/arm/gccframe.h: New file.
11872         * sysdeps/generic/framestate.c: New file.
11873         * sysdeps/generic/dwarf2.h: New file.
11874         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11875         * sysdeps/generic/unwind-dw2-fde.c: New file.
11876         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11877         * sysdeps/generic/unwind-dw2-fde.h: New file.
11878         * sysdeps/generic/unwind-dw2.c: New file.
11879         * sysdeps/generic/unwind-pe.h: New file.
11880         * sysdeps/generic/unwind.h: New file.
11881         * sysdeps/hppa/gccframe.h: New file.
11882         * sysdeps/i386/gccframe.h: New file.
11883         * sysdeps/m68k/gccframe.h: New file.
11884         * sysdeps/mips/gccframe.h: New file.
11885         * sysdeps/powerpc/gccframe.h: New file.
11886         * sysdeps/s390/gccframe.h: New file.
11887         * sysdeps/sh/gccframe.h: New file.
11888         * sysdeps/sparc/gccframe.h: New file.
11889         * sysdeps/vax/gccframe.h: New file.
11890         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11891         Set on all architectures except ia64.
11892         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11893         for i386.
11894         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11895         __deregister_frame_info): Move to elf/Versions.
11896         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11897         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11898         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11899         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11900         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11901         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11902         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11903         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11904         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11905         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11906         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11907         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11908         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11909         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11910         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11911         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11912         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11913         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11915 2001-11-15  Jeff Law  <law@redhat.com>
11917         * posix/regex.c (uintptr_t): Do not provide a definition if the
11918         system provided one.
11920 2001-11-13  Roland McGrath  <roland@frob.com>
11922         * stdio-common/tmpfile.c: Moved to ...
11923         * sysdeps/generic/tmpfile.c: ... here.
11924         * sysdeps/mach/hurd/tmpfile.c: New file.
11926         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11927         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11928         (fopenport): Define as weak alias.
11930         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11931         * libio/libioP.h: ... to here.
11933 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
11935         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11936         program header twice.  Construct list with the needed information.
11938 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
11940         * po/ca.po: Update from translation team.
11942         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11943         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
11944         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11945         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11947 2001-11-10  Andreas Jaeger  <aj@suse.de>
11949         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11950         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11951         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11953 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11955         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11956         correctly.
11957         * elf/dl-load.c (is_dst): New function.
11958         (_dl_dst_count): Use is_dst to check for DST variable.
11959         (_dl_dst_substitute): Likewise.
11961 2001-11-09  Roland McGrath  <roland@frob.com>
11963         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11964         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11965         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11966         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11967         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11968         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11969         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11970         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11971         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11972         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11973         * sysdeps/mach/hurd/powerpc/Dist: New file.
11975         * hurd/privports.c (__get_privileged_ports):
11976         Only contact the proc server if necessary for this call.
11977         Suggested by Neal H Walfield <neal@cs.uml.edu>.
11978         Check error return for mach_port_mod_refs.
11980 2001-11-09  Andreas Schwab  <schwab@suse.de>
11982         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11984 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11986         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
11987         object is always the last in the list.
11988         (_dl_map_object_from_fd): Delete code to remove from object list
11989         when DF_1_NOOPEN is seen.  This is done in lose.
11991 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
11993         * elf/dl-object.c (_dl_new_object): Various small optimizations.
11995 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
11997         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11998         HWCAP_CHECK macro code.
12000         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
12001         Now returns MAP_FAILED on error.
12002         * elf/rtld.c: Adjust caller.
12003         * sysdeps/generic/dl-cache.c: Likewise.
12004         * sysdeps/generic/ldsodefs.h: Adjust description.
12006         * elf/dl-version.c (match_symbol): Optimize error handling for size.
12007         (_dl_check_map_versions): Likewise.
12009 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
12011         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
12012         _dl_signal_error directly, always use lose.  Set fd to -1 after
12013         file is closed.
12014         (lose): Don't call close if fd == -1.
12016 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
12018         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
12019          Also fix typo @code {mbsinit} to @code{mbsinit}.
12021 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
12023         * elf/dl-profile.c: Replace state variable with simple flag named
12024         running.  Remove commented-out code.
12026         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
12027         (_dl_init_paths): Likewise.
12028         (_dl_map_object_from_fd): Likewise.
12029         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
12031 2001-11-06  Roland McGrath  <roland@frob.com>
12033         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
12034         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
12036         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
12037         sysdeps/powerpc/elf/sysdep.h.
12038         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
12040 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
12042         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
12043         speed.
12044         (process_envvars): Some more optimizations.
12045         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
12047         * elf/elf.h: Add dynamic tag definitions for prelinking.
12049         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
12050         Rewrite code to remove environment varables for SUID binaries.
12051         Small optimization in LD_PROFILE handling.
12052         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
12053         changes.
12054         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
12056         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
12058         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
12059         strings.  Change type of second parameter.
12060         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
12061         for last change.
12063         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
12065 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
12067         * manual/string.texi: Fix typos.
12068         * manual/examples/argp-ex2.c: Likewise.
12070 2001-11-05  Roland McGrath  <roland@frob.com>
12072         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
12073         the more-specific unix/sysv/linux/powerpc file and breaks everything.
12074         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
12075         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
12076         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
12077         here, put under [__ELF__].
12079 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
12081         * manual/charset.texi: Extensive editing work.
12082         * manual/nss.texi: Likewise.
12083         Changes by Dennis Grace <dgrace@us.ibm.com>.
12085 2001-11-04  Roland McGrath  <roland@frob.com>
12087         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
12088         parameter to dir_mkfile.
12090 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
12092         * string/bits/string2.h (__strndup): If n is smaller than len, set
12093         len to n + 1.
12094         * string/tester.c (test_strndup): New function.
12095         (main): Call it.
12097 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
12099         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
12101         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
12102         * scripts/cpp: New file.
12104         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
12105         for rtld_search_dirs content.  Minor optimizations.
12107 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
12109         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
12110         avoiding unnecessary duplication.
12112 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
12114         * elf/dl-load.c (_dl_map_object): If library was found using
12115         LD_LIBRARY_PATH, don't try RUNPATH list.
12117 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12119         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
12120         Correct second argument of register_dump call.
12121         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
12122         Likewise.
12124 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
12126         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
12127         modules.
12128         * iconvdata/TESTS: Likewise.
12129         * iconvdata/gconv-modules: Likewise.
12130         * iconvdata/ibm1132.c: New file.
12131         * iconvdata/ibm1132.h: New file.
12132         * iconvdata/ibm1133.c: New file.
12133         * iconvdata/ibm1133.h: New file.
12134         * iconvdata/ibm1162.c: New file.
12135         * iconvdata/ibm1162.h: New file.
12136         * iconvdata/testdata/IBM1132: New file.
12137         * iconvdata/testdata/IBM1132..UTF8: New file.
12138         * iconvdata/testdata/IBM1133: New file.
12139         * iconvdata/testdata/IBM1133..UTF8: New file.
12140         * iconvdata/testdata/IBM1162: New file.
12141         * iconvdata/testdata/IBM1162..UTF8: New file.
12142         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
12144         * string/string.h: Fix typo in comment.
12145         * wcsmbs/wchar.h: Likewise.
12147 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
12149         * manual/getopt.texi (getopt_long, getopt_long_only): Include
12150         const in type of longopts parameter.
12152 2001-10-29  Andreas Jaeger  <aj@suse.de>
12154         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
12156 2001-10-29  Kevin Ryde  <user42@zip.com.au>
12158         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
12159         output, clarify `#' behaviour on 0.
12160         (Floating-Point Conversions): Clarify that %g only uses %e when
12161         the exponent would be greater than 1.
12163 2001-10-28  Roland McGrath  <roland@frob.com>
12165         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
12166         * sysdeps/mach/powerpc/machine-sp.h: New file.
12167         * sysdeps/mach/powerpc/sysdep.h: New file.
12168         * sysdeps/mach/powerpc/thread_state.h: New file.
12170         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
12171         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
12172         expect to need the same thing on every platform.
12174         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
12175         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
12177         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
12178         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
12179         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
12180         Move all these assembly-related definitions to ...
12181         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
12183         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
12184         by Peter Bruin <pjbruin@dds.nl>.
12186         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
12187         packing results for a `poll' call.
12189 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
12191         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
12192         correctly.
12193         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
12194         bracket expression.
12196         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12197         nrules value.
12198         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
12200 2001-10-24  H.J. Lu  <hjl@gnu.org>
12202         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
12203         Use __BEGIN_DECLS/__END_DECLS around prototypes.
12204         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
12206 2001-10-21  Jim Meyering  <meyering@lucent.com>
12208         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
12209         this code would end up calling gettext even in packages built
12210         with --disable-nls.
12211         * posix/getopt.c (_): Likewise.
12212         * posix/regex.c (_): Likewise.
12214 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
12216         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
12217         lookup not ip6.int.
12218         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
12219         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
12221 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
12223         * misc/sys/cdefs.h (__attribute_used__): Define.
12224         * elf/rtld.c (_dl_start): Add __attribute_used__.
12225         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
12227 2001-10-25  Andreas Schwab  <schwab@suse.de>
12229         * stdlib/a64l.c: Expect least significant digit first.
12230         * stdlib/l64a.c: Produce least significant digit first.
12231         * stdlib/Makefile (tests): Add test-a64l.
12232         * stdlib/test-a64l.c: New file.
12233         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
12235 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
12237         * po/sk.po: Update from translation team.
12239 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
12241         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
12243 2001-10-18  Andreas Schwab  <schwab@suse.de>
12245         * math/libm-test.inc (print_ulps): Print ulp values rounded to
12246         next whole number.
12247         (print_function_ulps): Likewise.
12248         (print_complex_function_ulps): Likewise.
12249         (print_max_error): Likewise.
12250         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
12252 2001-10-16  Andreas Schwab  <schwab@suse.de>
12254         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
12255         implementation.
12257         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
12258         BSD_SETJMP or BSD__SETJMP is defined, resp.
12259         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
12260         a tail call to __sigsetjmp that would require extending the
12261         caller's frame.
12262         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
12263         * sysdeps/m68k/bsd-setjmp.S: Deleted.
12264         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
12265         Reported by Jes Sorensen <jes@trained-monkey.org>.
12267 2001-10-16  Andreas Jaeger  <aj@suse.de>
12269         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
12270         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
12271         close PR libc/2589.
12273 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
12275         * po/ca.po: New file.  Contributed by the translation team.
12277 2001-10-15  Ralf Baechle  <ralf@gnu.org>
12279         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
12280         a varargs prototype.  Remove dependency from kernel header files.
12282         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
12283         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
12285 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
12287         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
12288         to generate hexadecimal identifier.
12289         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
12291 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
12293         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
12295 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
12297         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
12298         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
12299         Contributed by Stephen L Moshier <moshier@mediaone.net>.
12301         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
12302         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12303         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
12304         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
12305         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
12306         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
12308         * timezone/africa: Update from tzdata2001d.
12309         * timezone/asia: Likewise.
12310         * timezone/australasia: Likewise.
12311         * timezone/backward: Likewise.
12312         * timezone/europe: Likewise.
12313         * timezone/leapseconds: Likewise.
12314         * timezone/northamerica: Likewise.
12315         * timezone/southamerica: Likewise.
12316         * timezone/zone.tab: Likewise.
12318 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12320         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
12321         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
12323 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
12325         * elf/elf.h (PT_TLS): New definition.
12327 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
12329         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
12330         bits/errno.h
12332 2001-10-07  Roland McGrath  <roland@frob.com>
12334         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
12336 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
12338         * elf/elf.h: Add more ELFOSABI_* constants.
12340 2001-10-04  Ben Collins  <bcollins@debian.org>
12342         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
12343         decleration of __need_wchar_t.
12345 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
12347         * string/bits/string2.h (__strsep_g): Add prototype.
12348         (__strsep): Use it.
12349         * string/Versions (__strsep): Remove.
12350         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
12352 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
12354         * manua/llio.texi: Clarify file references added by mmap.
12355         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
12357 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
12359         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
12360         Add sc_loadrs and sc_rbs_bas to match current kernel.
12362 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
12364         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
12366         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
12368 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
12370         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
12371         object has been bumped because of relocation dependency, avoid
12372         duplicates in l_scope.
12373         (show_scope): Fix typos.
12374         * elf/Makefile: Add rules to build and run reldep6.
12375         * elf/reldep6.c: New file.
12376         * elf/reldep6mod0.c: New file.
12377         * elf/reldep6mod1.c: New file.
12378         * elf/reldep6mod2.c: New file.
12379         * elf/reldep6mod3.c: New file.
12380         * elf/reldep6mod4.c: New file.
12382 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
12384         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
12385         sparc64_fixup_plt.
12386         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
12387         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
12388         for non-lazy binding. Fix .plt[32768+] handling.
12389         (elf_machine_plt_value): Don't add addend.
12390         (elf_machine_rela): Call sparc64_fixup_plt instead of
12391         elf_machine_fixup_plt.
12392         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
12393         dynamic linker at 0xfffff800XXXXXXXX.
12395         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
12397 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
12399         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
12401 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
12403         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
12404         declare __cmsg_data field if its size would be bigger than 0.
12405         (CMSG_DATA): Adjust accordingly.
12406         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
12407         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
12408         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
12409         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
12410         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12411         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
12412         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12414 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
12416         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
12417         * iconvdata/testdata/IBM1160: New file.
12418         * iconvdata/testdata/IBM1160..UTF8: New file.
12419         * iconvdata/testdata/IBM1161: New file.
12420         * iconvdata/testdata/IBM1161..UTF8: New file.
12421         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
12423 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
12425         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
12426         UL_SETFSIZE computations better.
12428         * rt/Makefile: Remove use of filter for librt again.
12430         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
12431         UL_SETFSIZE computations better.
12433         * string/Versions: Export __strsep for GLIBC_2.2.5.
12434         * string/bits/string2.h: Define all __STRING_INLINE functions if
12435         _FORCE_INLINES is defined.
12436         Use int instead of char of parameter types.
12437         (__strsep): Don't use __strsep_g.  Don't define it.
12438         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
12439         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
12440         __strcpy_small.
12441         (__stpcpy_a_small): Renamed from __stpcpy_small.
12442         (__strcspn_c1): Don't define if _FORCE_INLINES.
12443         (__strspn_c1): Likewise.
12445 2001-09-22  Ben Collins  <bcollins@debian.org>
12447         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
12448         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
12449         * sysdeps/ia64/bits/sigaction.h: Likewise.
12450         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
12452 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
12454         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
12456 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
12458         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
12460 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
12462         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
12464 2001-09-20  H.J. Lu  <hjl@gnu.org>
12466         * include/dlfcn.h (__RTLD_SPROF): New definiton.
12467         * elf/dl-open.c (dl_open_worker): Return immediately after loading
12468         for __RTLD_SPROF.
12469         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
12470         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
12472 2001-09-20  H.J. Lu  <hjl@gnu.org>
12474         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
12475         don't add 1.
12477 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
12479         * nss/getent.c: Accept -s parameter to overwrite rules in
12480         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
12482         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
12483         with as many ".0" as necessary to form a complete address
12484         inet_network understands.
12486         * nss/getent.c: Various cleanups.  Use simpler and fewer function
12487         calls.
12489 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12491         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
12492         _JMPBUF_UNWINDS.
12493         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
12495 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
12497         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
12498         IBM1161.
12499         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
12500         * iconvdata/ibm1160.c: New file.
12501         * iconvdata/ibm1160.h: New file.
12502         * iconvdata/ibm1161.c: New file.
12503         * iconvdata/ibm1161.h: New file.
12504         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
12506 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
12508         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
12509         difference between base address and first PT_LOAD's virtual address,
12510         not the base address.
12512 2001-09-11  Tom Rix  <trix@redhat.com>
12514         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
12515         ifdef for __getopt_clean_environment.
12516         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
12518 2001-09-22  Andreas Jaeger  <aj@suse.de>
12520         * elf/reldep4.c (main): Add proper prototype to fix warning.
12522         * elf/reldep5.c (main): Remove unused variable.
12524         * math/math_private.h: Add prototypes.
12526 2001-09-21  Andreas Jaeger  <aj@suse.de>
12528         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
12529         * sysdeps/x86_64/Dist: New file.
12530         * sysdeps/x86_64/soft-fp/Dist: New file.
12532         * sysdeps/gnu/Dist: Remove eval.c.
12534 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
12536         * malloc/memusage.c (realloc): Don't count already allocated
12537         memory in the sums.
12538         (me): Always use dlsym() to find the real implementations.
12540         * malloc/memusage.sh: Make -n option actually do something.
12542 2001-09-20  Andreas Jaeger  <aj@suse.de>
12544         * elf/elf.h (R_390_NUM): Correct value.
12546         * Versions.def: Add missing versions 2.2.3 for libthread_db and
12547         libpthread.
12549         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
12550         for x86-64, install x86-64 into */lib64.
12552         * shlib-versions: Add x86-64.
12554         * elf/elf.h: Add x86-64 relocations.
12556 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
12558         * po/fr.po: Update from translation team.
12560 2001-09-19  Andreas Jaeger  <aj@suse.de>
12562         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
12563         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
12564         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
12565         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
12566         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
12567         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
12568         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
12569         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
12570         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
12571         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
12572         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
12573         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
12574         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
12575         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
12576         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
12577         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
12578         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
12579         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
12580         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
12581         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
12582         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
12583         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
12584         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
12585         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
12586         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
12587         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
12588         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
12589         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
12590         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
12591         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
12592         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
12593         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
12594         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
12595         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
12596         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
12597         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
12598         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
12599         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
12600         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
12601         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
12602         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
12603         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
12604         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
12605         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
12606         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
12607         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
12608         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
12609         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
12610         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
12611         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
12612         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
12613         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
12614         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
12615         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
12616         * sysdeps/unix/x86_64/sysdep.S: New file.
12617         * sysdeps/unix/x86_64/sysdep.h: New file.
12618         * sysdeps/x86_64/Implies: New file.
12619         * sysdeps/x86_64/Makefile: New file.
12620         * sysdeps/x86_64/Versions: New file.
12621         * sysdeps/x86_64/__longjmp.S: New file.
12622         * sysdeps/x86_64/abort-instr.h: New file.
12623         * sysdeps/x86_64/atomicity.h: New file.
12624         * sysdeps/x86_64/bits/endian.h: New file.
12625         * sysdeps/x86_64/bits/setjmp.h: New file.
12626         * sysdeps/x86_64/bits/string.h: New file.
12627         * sysdeps/x86_64/bp-asm.h: New file.
12628         * sysdeps/x86_64/bsd-_setjmp.S: New file.
12629         * sysdeps/x86_64/bsd-setjmp.S: New file.
12630         * sysdeps/x86_64/dl-machine.h: New file.
12631         * sysdeps/x86_64/elf/initfini.c: New file.
12632         * sysdeps/x86_64/elf/start.S: New file.
12633         * sysdeps/x86_64/ffs.c: New file.
12634         * sysdeps/x86_64/ffsll.c: New file.
12635         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
12636         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
12637         * sysdeps/x86_64/fpu/e_acosl.c: New file.
12638         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
12639         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
12640         * sysdeps/x86_64/fpu/e_expl.c: New file.
12641         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
12642         * sysdeps/x86_64/fpu/e_log10l.S: New file.
12643         * sysdeps/x86_64/fpu/e_log2l.S: New file.
12644         * sysdeps/x86_64/fpu/e_logl.S: New file.
12645         * sysdeps/x86_64/fpu/e_powl.S: New file.
12646         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
12647         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
12648         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
12649         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
12650         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
12651         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
12652         * sysdeps/x86_64/fpu/fegetenv.c: New file.
12653         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
12654         * sysdeps/x86_64/fpu/fegetround.c: New file.
12655         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
12656         * sysdeps/x86_64/fpu/fesetenv.c: New file.
12657         * sysdeps/x86_64/fpu/fesetround.c: New file.
12658         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
12659         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
12660         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
12661         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
12662         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
12663         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
12664         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
12665         * sysdeps/x86_64/fpu/s_atanl.c: New file.
12666         * sysdeps/x86_64/fpu/s_cosl.S: New file.
12667         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
12668         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
12669         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
12670         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
12671         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
12672         * sysdeps/x86_64/fpu/s_logbl.c: New file.
12673         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
12674         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
12675         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
12676         * sysdeps/x86_64/fpu/s_rintl.c: New file.
12677         * sysdeps/x86_64/fpu/s_significandl.c: New file.
12678         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
12679         * sysdeps/x86_64/fpu/s_sinl.S: New file.
12680         * sysdeps/x86_64/fpu/s_tanl.S: New file.
12681         * sysdeps/x86_64/gmp-mparam.h: New file.
12682         * sysdeps/x86_64/hp-timing.c: New file.
12683         * sysdeps/x86_64/hp-timing.h: New file.
12684         * sysdeps/x86_64/htonl.S: New file.
12685         * sysdeps/x86_64/memusage.h: New file.
12686         * sysdeps/x86_64/setjmp.S: New file.
12687         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
12688         * sysdeps/x86_64/stackinfo.h: New file.
12689         * sysdeps/x86_64/sysdep.h: New file.
12690         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
12692         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
12693         L Moshier.
12695 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12697         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
12698         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
12700 2001-09-18  Andreas Schwab  <schwab@suse.de>
12702         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
12703         list, now that l_scope is a pointer.
12705         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
12706         scope list.
12708 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12710         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
12711         (elf_machine_rela_relative): Add a missing declaration.
12713 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
12715         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
12716         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
12717         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
12718         ldd-rewrite scripts.
12720 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12722         * elf/ldd.bash.in: Update copyright message.
12724 2001-09-17  H.J. Lu  <hjl@gnu.org>
12726         * hurd/hurdmalloc.c (bcopy): Removed.
12727         (realloc): Replace bcopy with memcpy.
12728         * hurd/path-lookup.c (file_name_path_scan): Likewise.
12729         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12730         * sunrpc/rpcinfo.c (pmapdump): Likewise.
12732         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12733         (gethostbyaddr): Likewise.
12734         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12736 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12738         * sysdeps/gnu/eval.c: Removed.
12740 2001-09-18  Andreas Jaeger  <aj@suse.de>
12742         * sysdeps/i386/fpu/s_logbl.S: Move to ...
12743         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12745         * sysdeps/i386/fpu/s_rintl.S: Move to ...
12746         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12748         * sysdeps/i386/fpu/s_significandl.S: Move to ...
12749         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12751 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
12753         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12754         nrules value.
12756 2001-09-14  H.J. Lu  <hjl@gnu.org>
12758         * sysdeps/mips/fpu/libm-test-ulps: Updated.
12760 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
12762         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12763         Patch by Florian La Roche <laroche@redhat.com>.
12765         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12767         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12768         ETHER_CRC_LEN.
12770 2001-09-14  Andreas Schwab  <schwab@suse.de>
12772         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
12773         Sumner <bls@sgi.com>.
12774         * posix/execlp.c: Likewise.
12776 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
12778         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12779         is already found earlier in the search scope.
12781 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
12783         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12784         filter.
12786 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
12788         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12790 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
12792         * config.h.in: Enforce optimization to be used.
12793         * Makeconfig (preprocess-versions): Define ASSEMBLER.
12794         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12795         * posix/Makefile (annexc-CFLAGS): Define to -O.
12796         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12798 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
12800         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12801         Patch by Stephan Kulow.
12803 2001-09-08  Ben Collins  <bcollins@debian.org>
12805         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12806         usage of RESOLVE() (r_type, not reloc->r_type).
12808 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12810         * elf/dl-object.c: Avoid allocating extra memory block for name.
12811         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12812         allocated separately.
12813         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12815 2001-09-08  H.J. Lu  <hjl@gnu.org>
12817         * po/zh_TW.po: Fix a typo.
12819 2001-09-07  Tom Rix  <trix@redhat.com>
12821         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12823 2001-08-26  Tom Rix  <trix@redhat.com>
12825         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12826         command line options.
12827         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12828         * sysdeps/unix/sysv/aix/start.c: Removed.
12829         * sysdeps/unix/sysv/aix/start-libc.c: New file.
12830         * sysdeps/unix/sysv/aix/init-first.c: New file.
12831         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12833 2001-09-08  Ben Collins  <bcollins@debian.org>
12835         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12836         * sysdeps/generic/dl-machine.h: Likewise.
12837         * sysdeps/hppa/dl-fptr.c: Likewise.
12838         * sysdeps/ia64/dl-fptr.c: Likewise.
12839         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12840         * sysdeps/mips/dl-machine.h: Likewise.
12841         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12842         * sysdeps/powerpc/dl-machine.c: Likewise.
12844 2001-09-07  Ben Collins  <bcollins@debian.org>
12846         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12848         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12850 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12852         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12853         dependencies if necessary.
12855         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12856         loaded directly) determine length if l_initfini list by iterating
12857         over its elements.  Minor optimizations.
12858         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12859         for dependency objects.
12860         If object was already loaded check whether any of the dependencies
12861         is already on the relocation dependency list.  If yes, remove the
12862         latter.  Minor optimizations.
12863         * elf/dl-lookup.c (add_dependency): Add check for self reference of
12864         maps here.  Search l_initfini list only if the object was loaded
12865         directly and not only as a dependency.
12866         (_dl_lookup_symbol): Add relocation dependency also if object
12867         is not in global scope.  Remove test for self-reference here.
12868         (_dl_lookup_versioned_symbol): Likewise.
12869         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
12870         element of first name record.
12871         * elf/loadtest.c: Add some more test to recognize early if an object
12872         wasn't unloaded.
12873         * elf/Makefile: Add rules to build and run reldep5.
12874         * elf/reldep5.c: New file.
12875         * elf/reldepmod5.c: New file.
12876         * elf/reldepmod6.c: New file.
12878         * elf/reldep2.c: Fix typo.
12880 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
12882         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12883         elements.  Change l_scope to be a pointer only.
12884         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12885         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12886         here add searchlist of newly open file to the dependency's scope.
12887         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12888         only searchlist from its scope.  Free own scope array if necessary.
12889         * elf/Makefile (tests): Add dblload and dblunload now.
12891 2001-09-06  Andreas Jaeger  <aj@suse.de>
12893         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12894         Stephen L Moshier.
12896 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
12898         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
12899         they both fail.
12900         * elf/dblload.c: New file.
12901         * elf/dblloadmod1.c: New file.
12902         * elf/dblloadmod2.c: New file.
12903         * elf/dblloadmod3.c: New file.
12904         * elf/dblunload.c: New file.
12906 2001-09-04  Richard Henderson  <rth@redhat.com>
12908         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12909         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12911 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12913         Correct very misleading message for error in failed runtime relocation.
12914         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12915         place of the error.
12916         (_dl_signal_cerror): Likewise.
12917         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12918         * elf/dl-close.c: Likewise.
12919         * elf/dl-deps.c: Likewise.
12920         * elf/dl-load.c: Likewise.
12921         * elf/dl-lookup.c: Likewise.
12922         * elf/dl-open.c: Likewise.
12923         * elf/dl-reloc.c: Likewise.
12924         * elf/dl-sym.c: Likewise.
12925         * elf/dl-version.c: Likewise.
12926         * sysdeps/generic/dl-sysdep.c: Likewise.
12928 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12930         * iconv/strtab.c (strtabinit): Initialize null Strent.
12931         (newstring): Move len == 0 handling...
12932         (strtabadd): ...here.
12933         If len == 1, return null Strent.
12934         When inserting a suffix of an existing string, check if
12935         it is not equal to some suffix already recorded.
12936         Copy left and right members over if adding longer string.
12938 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12940         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12942         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12943         (__syscall_gethostname): Add prototype.
12945 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12947         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12949 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
12951         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12953 2001-08-27  Roland McGrath  <roland@frob.com>
12955         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12956         short, copy that much into NAME anyway before returning error.
12958 2001-09-01  Richard Henderson  <rth@redhat.com>
12960         * sysdeps/alpha/elf/Dist: Remove file.
12961         * sysdeps/alpha/elf/Makefile: Remove file.
12962         * sysdeps/alpha/elf/crtbegin.S: Remove file.
12963         * sysdeps/alpha/elf/crtend.S: Remove file.
12964         * sysdeps/alpha/elf/initfini.c: New file.
12966 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
12968         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12969         * iconv/tst-iconv3.c: Likewise.
12971 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
12973         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12975 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
12977         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12978         export it.
12979         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12980         * iconv/iconv_prog.c (insert_cache): New function.
12981         (print_known_names): If cache is used call insert_cache to use the
12982         information from the cache [PR libc/2509].
12984 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
12986         * time/strptime.c (strptime_internal): Recognize 'l' format and
12987         handle it like 'I' for symmetry with strftime.
12989 2001-08-31  Richard Henderson  <rth@redhat.com>
12991         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12992         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12993         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12994         (print_statistics): Make scalar unsigned long long.
12995         * sysdeps/alpha/hp-timing.h: New file.
12997 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12999         * stdio-common/perror.c (perror): Save errno early, pass it
13000         down to perror_internal.
13001         (perror_internal): Add errnum argument.
13003 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
13005         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
13006         Don't add old memory content for R_ALPHA_REFQUAD.
13008 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
13010         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
13011         memory correctly.
13013         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
13014         instead of open, __close instead of close, __getpagesize instead
13015         of getpagesize.
13017         * string/argz-stringify.c (__argz_stringify): Use __strnlen
13018         instead of strnlen.
13019         * include/string.h (strndupa): Redefine here to use __strnlen
13020         instead of strnlen.
13021         * string/strndup.c (__strndup): Use __strnlen not strnlen.
13023         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
13024         connected).
13026 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
13028         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
13029         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
13030         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
13031         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
13032         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
13033         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
13034         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
13036 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
13038         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
13040 2001-08-30  Andreas Jaeger  <aj@suse.de>
13042         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
13043         contributed Stephen L Moshier.
13045 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
13047         * sunrpc/etc.rpc (sgi_fam): Add.
13049 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
13051         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
13053 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
13055         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
13056         first is from a previous call.
13057         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
13059 2001-08-29  Andreas Schwab  <schwab@suse.de>
13061         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
13063 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
13065         * config.make.in (INSTALL_SCRIPT): Define.
13066         * Makeconfig (INSTALL_SCRIPT): Define.
13067         * Makerules (do-install-script): New macro to install scripts using
13068         INSTALL_SCRIPT.
13069         (install-bin-script): New rule to install scripts with
13070         do-install-script.
13071         (install-bin-script-nosubdir): New rule.
13072         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
13073         (distinfo-vars): Add $(install-bin-script).
13074         * Rules (others): Likewise.
13075         * Makefile (glibcbug): Install with install-bin-script.
13076         * debug/Makefile (xtrace): Likewise.
13077         (catchsegv): Likewise.
13078         * elf/Makefile (ldd): Likewise.
13079         * malloc/Makefile (mtrace): Likewise.
13080         * timezone/Makefile (tzselect): Likewise.
13082 2001-08-29  H.J. Lu  <hjl@gnu.org>
13084         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
13085         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
13086         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
13088 2001-08-29  Andreas Schwab  <schwab@suse.de>
13090         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
13092 2001-08-28  H.J. Lu  <hjl@gnu.org>
13094         * Makeconfig (combreloc-LDFLAGS): New variable.
13095         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
13096         * config.make.in (have-z-combreloc): New variable.
13097         * configure.in: Substitute libc_cv_z_combreloc.
13099 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
13101         * po/sv.po: Update from translation team.
13102         * po/fr.po: Likewise.
13103         * po/da.po: Likewise.
13105 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
13107         * Makerules: Fix a typo: MD% -> MD5.
13109 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
13111         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
13112         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
13114 2001-08-28  Andreas Jaeger  <aj@suse.de>
13116         * manual/libc-texinfo.sh: Add entry about free manuals.
13118         * manual/contrib.texi (Contributors): Fix cross reference.
13120         * manual/libc.texinfo (Copying): Include freemanuals.
13122         * manual/Makefile (appendices): Add freemanuals.
13124         * manual/freemanuals.texi: New file.
13125         Patch by Brian Youmans <3diff@gnu.org>.
13127         * manual/libm-err-tab.pl: Pretty print more platforms, print a
13128         smaller table.
13130         * manual/math.texi (Errors in Math Functions): Fix grammar, start
13131         table on separate page.
13132         Patch by Brian Youmans <3diff@gnu.org>.
13134 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
13136         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
13137         the connection went down after we first used it try to connect
13138         again and resend the message before printing to the console.
13139         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
13141 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
13143         * string/tst-strlen.c (main): Test strnlen (, -1) too.
13144         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
13145         bit set.
13147 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
13149         * iconv/strtab.c (searchstring): Use correct length for comparison.
13150         (strtabadd): Account total size correct if new string has old string as
13151         substring.
13153 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
13155         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
13157 2001-08-27  Andreas Jaeger  <aj@suse.de>
13159         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
13161         * math/libm-test.inc (j0_test): Add extra tests.
13162         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
13163         not x, in Hankel approximation.
13164         Patches by Stephen L Moshier.
13166 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
13168         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
13169         link_map.
13171         * configure.in: Fix test for .rela.dyn section.
13173         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
13175 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
13177         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
13178         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
13179         Pass type_class to _dl_lookup_*.
13180         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
13181         Pass around just type_class instead of noexec, noplt pair.
13182         (_dl_lookup_versioned_symbol): Likewise.
13183         (_dl_lookup_symbol_skip): Pass around just type_class instead of
13184         noexec, noplt pair.
13185         (_dl_lookup_versioned_symbol_skip): Likewise.
13186         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
13187         * elf/do-lookup.h (do_lookup): Likewise.
13188         * include/link.h (struct link_map): Replace noexec and noplt fields
13189         in l_lookup_cache with type_class field.
13190         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
13191         ELF_RTYPE_CLASS_COPY): Define.
13192         Adjust prototypes for _dl_lookup_symbol and
13193         _dl_lookup_versioned_symbol.
13194         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
13195         elf_machine_lookup_noexec_p): Remove.
13196         (elf_machine_type_class): Define.
13197         * sysdeps/arm/dl-machine.h: Likewise.
13198         * sysdeps/hppa/dl-machine.h: Likewise.
13199         * sysdeps/cris/dl-machine.h: Likewise.
13200         * sysdeps/i386/dl-machine.h: Likewise.
13201         * sysdeps/ia64/dl-machine.h: Likewise.
13202         * sysdeps/m68k/dl-machine.h: Likewise.
13203         * sysdeps/mips/mips64/dl-machine.h: Likewise.
13204         * sysdeps/mips/dl-machine.h: Likewise.
13205         * sysdeps/powerpc/dl-machine.h: Likewise.
13206         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13207         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13208         * sysdeps/sh/dl-machine.h: Likewise.
13209         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13210         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13212 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
13214         * manual/message.texi (Advanced gettext functions): Change
13215         description of plural forms for Slovak.
13216         Reported by Marcel Telka <marcel@telka.sk>.
13218         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
13219         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
13221 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
13223         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
13224         typo.  Patch by Florian La Roche <laroche@redhat.com>.
13226 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
13228         * include/link.h (struct link_map): Add l_lookup_cache element.
13229         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
13230         (RESOLVE_MAP): Likewise.
13231         (_dl_relocate_object): Remove cache initialization.
13232         * elf/dl-lookup.c: Rip out cache handling code.
13233         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
13234         declarations.
13236         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
13237         remove some __builtin_expect.
13238         (_dl_lookup_versioned_symbol): Likewise.
13240         * config.h.in: Add HAVE_Z_COMBRELOC.
13241         * configure.in: Add test for -z combreloc.
13243         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
13244         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
13245         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
13246         case to almost no code.
13248 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
13250         * po/tr.po: Update from translation team.
13252 2001-08-24  Andreas Jaeger  <aj@suse.de>
13254         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
13255         make clean works.
13257 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13259         * elf/rtld.c (print_statistics): Printf % after percent values.
13260         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
13262         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
13263         don't have to compute the hash value and initialize current_value.
13264         Move reference_name variable to where it is needed.
13265         (_dl_lookup_versioned_symbol): Likewise.
13267 2001-08-24  Roland McGrath  <roland@frob.com>
13269         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
13270         Just test that strerror returns non-null for a few errno codes.
13272 2001-08-23  Roland McGrath  <roland@frob.com>
13274         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
13275         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
13277         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
13279         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
13280         __mach_reply_port.
13282 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13284         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
13285         returns NULL.
13287         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
13288         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
13289         doesn't do it.
13290         * elf/rtld.c: Include <sys/param.h>.
13291         * elf/dl-reloc.c: Likewise.
13293 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
13295         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
13296         empty to prevent junk from being generated.
13297         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
13299 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
13301         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
13302         records.  Rename endrel to relative, initialize it to r, and use it
13303         in elf_machine_rel_relative calls.  Point r after relative relocs.
13305 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13307         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
13308         of R_386_NONE.
13310 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
13312         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
13313         necessary.  Undefine newly defined macros at the end.
13314         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
13315         Rename from elf_machine_rel_relative.
13316         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
13317         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
13318         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
13319         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
13320         Likewise.
13321         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
13322         Likewise.
13323         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
13324         Fix argument types.
13325         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
13326         Fix argument types.
13327         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
13328         Likewise.  Fix argument types.
13329         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
13330         Likewise.  Fix argument types.
13331         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
13332         Fix argument types.
13333         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
13334         ElfW(Rel) in argument.
13335         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
13336         function.
13338 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
13340         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
13342 2001-08-24  Andreas Jaeger  <aj@suse.de>
13344         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
13345         Stephen L Moshier <moshier@mediaone.net>.
13347 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13349         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
13350         first if RELCOUNT is set.
13352         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
13353         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
13354         elf_machine_rel_relative.
13355         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
13356         Minor optimizations.
13357         * sysdeps/arm/dl-machine.h: Likewise.
13358         * sysdeps/cris/dl-machine.h: Likewise.
13359         * sysdeps/hppa/dl-machine.h: Likewise.
13360         * sysdeps/i386/dl-machine.h: Likewise.
13361         * sysdeps/ia64/dl-machine.h: Likewise.
13362         * sysdeps/m68k/dl-machine.h: Likewise.
13363         * sysdeps/mips/dl-machine.h: Likewise.
13364         * sysdeps/powerpc/dl-machine.h: Likewise.
13365         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13366         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13367         * sysdeps/sh/dl-machine.h: Likewise.
13368         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13369         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13371 2001-08-23  Roland McGrath  <roland@frob.com>
13373         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
13375         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
13376         sysdeps/mach version.  Implement counting ("recursive") mutexes
13377         on top of cthreads mutexes.
13378         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
13380         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
13381         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
13382         (__libc_cleanup_region_start, __libc_cleanup_region_end,
13383         __libc_clean_end): Define these to call the cleanup function after
13384         normal exit when they're supposed to.
13386         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
13387         Take new first arg DOIT, a boolean saying whether to really install
13388         any cleanup handler.
13389         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
13390         (__libc_cleanup_end): Likewise.
13391         * sysdeps/generic/bits/libc-lock.h: Same changes.
13392         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
13393         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
13394         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
13395         Likewise.
13396         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
13397         * sysdeps/generic/bits/stdio-lock.h
13398         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
13400 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13402         * elf/ldconfig.c (search_dir): Remove stale symlinks.
13404 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13406         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
13407         functions.
13408         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
13409         lookups in cache.
13410         (_dl_lookup_versioned_symbol): Likewise.
13411         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
13412         relocation lookup.
13413         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
13414         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
13415         (lookup_cache, lookup_cache_versioned): Add declarations.
13417 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
13419         * stdlib/tst-random.c (main): Swap parameters in fail call.
13420         Patch by Pete Bevin <pete@petebevin.com>.
13422 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13424         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
13426 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
13428         * malloc/obstack.c: Indent preprocessor directives.
13429         Patch by Jim Meyering <meyering@ascend.com>.
13431         * po/ja.po: Update from translation team.
13433 2001-08-23  Roland McGrath  <roland@frob.com>
13435         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
13437         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
13438         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
13440 2001-08-22  Roland McGrath  <roland@frob.com>
13442         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
13443         __libc_lock_define_recursive.
13444         * elf/dl-open.c: Don't declare it here any more.
13445         * elf/dl-close.c: Likewise.
13446         * elf/dl-lookup.c: Likewise.
13447         * elf/dl-iteratephdr.c: Likewise.
13448         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
13449         __libc_lock_unlock_recursive.
13450         * elf/dl-close.c (_dl_close): Likewise
13451         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
13452         * elf/dl-open.c (_dl_open): Likewise
13454         * sysdeps/generic/bits/libc-lock.h
13455         (__libc_lock_define_recursive): New macro.
13456         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
13457         (_IO_lock_lock): Use __libc_lock_lock_recursive.
13458         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
13460         * conform/conformtest.pl (checknamespace): Sort the output list.
13462         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
13463         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
13464         definitions conditional on [__USE_XOPEN].
13466         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
13467         these unconditionally, not only use [__USE_BSD], so as to match
13468         the sysdeps/unix/sysv/linux files.
13470 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13472         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
13473         avoid warnings.
13475         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
13476         DL_LOOKUP_ADDRESS.
13478 2001-08-22  Roland McGrath  <roland@frob.com>
13480         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
13481         conditionalization of sa_handler/sa_sigaction member types to
13482         match the sysdeps/unix/sysv/linux file.
13484 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13486         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
13487         symbol sizes a bit better.
13489         * sysdeps/ia64/strncpy.S: Complete rewrite.
13490         Contributed by Jakub Jelinek <jakub@redhat.com>.
13492         * string/stratcliff.c (main): Add strncpy test.
13494 2001-08-22  Roland McGrath  <roland@frob.com>
13496         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
13497         and don't declare unsetenv or _environ directly.
13498         (unsetenv): Return int, not void.  Use __environ instead of _environ.
13500 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
13502         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
13503         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
13504         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
13505         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
13506         test for cmsg struct size.
13508 2001-04-23  Paul Eggert  <eggert@twinsun.com>
13510         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
13511         Rename __argc to ___argc in prototypes to avoid compatibility
13512         problems with systems that reserve the identifier "__argc".
13513         Similarly for __argv.
13515 2001-08-21  Roland McGrath  <roland@frob.com>
13517         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
13519         * mach/Makefile (tests): Removed.
13520         * mach/hello.c: File removed.
13522 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13524         * po/sv.po: Update from translation team.
13526         * stdio-common/vfscanf.c: Fix handling of %l[].
13527         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
13529         * libio/Makefile (tests): Add tst-sscanf.
13530         * libio/tst-sscanf.c: New file.
13532         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
13533         * malloc/mtrace.c (tr_where): dli_sname always points to a
13534         non-empty string if != NULL.
13535         Reported by Tim Janik <timj@gtk.org>.
13537 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
13539         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
13540         buf.  Free resources on failure.
13541         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
13542         (makefd_xprt): Likewise.
13543         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
13544         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
13545         * sunrpc/auth_unix.c (authunix_create): Likewise.
13547 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
13549         * string/strnlen.c: Remove.
13550         * sysdeps/generic/strnlen.c: New file.
13551         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
13553 2001-08-21  Roland McGrath  <roland@frob.com>
13555         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
13556         as a macro, not an extern inline function.
13558         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
13559         * Versions.def (libc): Add GLIBC_2.2.5 set.
13560         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
13561         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
13563 2001-08-20  Roland McGrath  <roland@frob.com>
13565         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
13566         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
13568 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
13570         * string/bits/string2.h: Remove strnlen optimization here.
13571         * sysdeps/i386/i486/bits/string.h: Add it here.
13573 2001-08-21  Wolfram Gloger  <wg@malloc.de>
13575         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
13577 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
13579         * po/gl.po: Update from translation team.
13581 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13583         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
13584         * misc/err.c (convert_and_print): Likewise.
13586         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
13587         function calls.
13589 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13591         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
13592         change of the gregset_t type.
13593         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13595 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
13597         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
13599 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13601         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
13603         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
13605 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
13607         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
13608         before calling the cthreads initialization code.
13610 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13612         * argp/argp-help.c: Fix two problems introduced in last change.
13614         * include/dirent.h: Include <dirstream.h> first.
13616 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
13618         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
13620         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
13621         * sunrpc/xdr_rec.c: Likewise.
13622         * sunrpc/xdr_mem.c: Likewise.
13623         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
13624         * sunrpc/rpc_cmsg.c: Likewise.
13625         * sunrpc/getrpcport.c (getrpcport): Likewise.
13626         * sunrpc/clnt_simp.c (callrpc): Likewise.
13627         * sunrpc/clnt_gen.c (clnt_create): Likewise.
13628         * string/envz.c: Likewise.
13630         * po/ko.po: Update from translation team.
13632         * argp/argp-help.c: Handle wide oriented stderr stream.
13634 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
13636         * sysdeps/generic/strtol.c: Little optimizations.  Add some
13637         __builtin_expect.
13639         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
13641         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
13642         * wcsmbs/wcwidth.c (wcwdith): Likewise.
13643         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
13645         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
13647         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
13649         * time/time.h (struct timespec): Use __time_t for tv_sec element.
13651         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
13652         wchar_t for function declarations and defintions.
13654         * misc/sys/select.h: Define __need_time_t before including <time.h>.
13655         Define suseconds_t if it hasn't happened yet.
13657         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
13659         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
13661         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
13662         <stddef.h>.
13664         * conform/data/stddef.h-data: Remove wint_t.
13666         * conform/conformtest.pl: Change namespace test to take #undef
13667         lines into account.
13669         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
13671         * conform/data/sys/socket.h-data: Add sockatmark.
13673 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13675         * io/fts.c: Update from recent BSD source.
13677 2001-08-17  Roland McGrath  <roland@frob.com>
13679         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
13680         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
13681         Likewise.
13683 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13685         * locale/duplocale.c (__duplocale): Also initialize the special
13686         __ctype_* elements.
13688         * conform/data/netdb.h-data: Adjust gai_strerror return type.
13690 2001-08-17  Andreas Jaeger  <aj@suse.de>
13692         * misc/getpass.c: Include wchar.h for prototypes.
13693         * malloc/obstack.c: Likewise.
13695 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13697         * sunrpc/svc_simple.c (universal): Use __write instead of write.
13699         * wcsmbs/wcscoll.c: Also define __wcscoll.
13700         * include/wchar.h: Declare __wcscoll.
13702         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
13703         * libio/vwprintf.c: Likewise.
13704         * libio/wprintf.c: Likewise.
13706         * iconv/gconv_cache.c: Use __munmap instead of munmap.
13708 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
13710         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
13711         instead of mbrtowc.
13712         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
13713         wcslen, and __wcscoll instead of wcscoll.
13715         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
13717         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
13718         __getuid instead of getuid.
13720         * stdio-common/perror.c (perror): Use __close instead of close.
13721         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13722         * libio/freopen.c (freopen): Likewise.
13723         * libio/freopen64.c (freopen64): Likewise.
13725         * libio/tst-ungetwc2.c (main): Define str const.
13727         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13728         * libio/fwprintf.c: Also define __fwprintf.
13729         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13730         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13731         * assert/assert-perr.c: Likewise.
13732         * assert/assert.c: Likewise.
13733         * gmon/gmon.c: Likewise.
13734         * inet/rcmd.c: Likewise.
13735         * malloc/obstack.c: Likewise.
13736         * misc/err.c: Likewise.
13737         * misc/error.c: Likewise.
13738         * misc/getpass.c: Likewise.
13739         * posix/getopt.c: Likewise.
13740         * resolv/res_hconf.c: Likewise.
13741         * stdio-common/perror.c: Likewise.
13742         * stdio-common/psignal.c: Likewise.
13743         * stdlib/fmtmsg.c: Likewise.
13744         * sunrpc/auth_unix.c: Likewise.
13745         * sunrpc/clnt_perr.c: Likewise.
13746         * sunrpc/clnt_tcp.c: Likewise.
13747         * sunrpc/clnt_udp.c: Likewise.
13748         * sunrpc/clnt_unix.c: Likewise.
13749         * sunrpc/svc_simple.c: Likewise.
13750         * sunrpc/svc_tcp.c: Likewise.
13751         * sunrpc/svc_udp.c: Likewise.
13752         * sunrpc/svc_unix.c: Likewise.
13753         * sunrpc/xdr.c: Likewise.
13754         * sunrpc/xdr_array.c: Likewise.
13755         * sunrpc/xdr_rec.c: Likewise.
13756         * sunrpc/xdr_ref.c: Likewise.
13757         * sysdeps/generic/wordexp.c: Likewise.
13759         * po/it.po: Update from translation team.
13761         * misc/err.c: Handle wide oriented stderr stream.
13763 2001-08-14  Tom Rix  <trix@redhat.com>
13765         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13766         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13768 2001-08-13  Tom Rix  <trix@redhat.com>
13770         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13771         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13772         and __intptr_t.
13774 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13776         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13777         Store the access registers to the ucontext structure.
13778         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13779         Likewise.
13781         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13782         Load the access registers from the ucontext structure.
13783         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13784         Likewise.
13786         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13787         offsets to the new ucontext layout.
13788         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13790         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13791         of the ucontext structure.
13792         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13794 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
13796         * misc/error.c (error): Handle wide oriented stderr stream correctly.
13797         (error_at_line): Likewise.
13799         * stdio-common/perror.c (perror): Implement according to standard.
13800         The stream orientation must not be changed if the stream was not
13801         oriented before the call.
13802         * stdio-common/Makefile (tests): Add tst-perror.
13803         * stdio-common/tst-perror.c: New file.
13806 See ChangeLog.12 for earlier changes.