Update.
[glibc.git] / ChangeLog
blob6a416895bbf737a577c4f8b7c4a55e0a2af15a92
1 2002-10-02  Jakub Jelinek  <jakub@redhat.com>
3         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix comment typo.
4         Temporarily enable R_ALPHA_NONE relocs in ld.so.
5         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Temporarily enable
6         R_IA64_NONE relocs in ld.so.
8 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
10         * README.template: Minimum Linux kernel for powerpc64 is 2.4.19.
12         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (struct ipc_perm):
13         Use __uint32_t and __uint64_t for __seq, __pad1, __unused[12] fields
14         so they are consistent between PPC32 and PPC64.
16         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__WORDSIZE != 32]:
17         (_STAT_VER): Define to _STAT_VER_KERNEL.
18         (stru stat, struct stat64): Define to match the PPC64 kernel.
19         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
20         (libc: GLIBC_2.2): Remove __xstat64, __fxstat64, and __lxstat64.
21         * sysdeps/unix/sysv/linux/powerpc/powerpc64/kernel_stat.h: New file.
22         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fxstat64.c: New file.
23         * sysdeps/unix/sysv/linux/powerpc/powerpc64/lxstat64.c: New file.
24         * sysdeps/unix/sysv/linux/powerpc/powerpc64/xstat64.c: New file.
25         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add kernel_stat.h.
27 2002-10-02  Roland McGrath  <roland@redhat.com>
29         * sysdeps/unix/sysv/linux/xstatconv.c [STAT_IS_KERNEL_STAT]:
30         Conditionalize the function definitions on this.
31         * sysdeps/unix/sysv/linux/xstat.c (__xstat) [STAT_IS_KERNEL_STAT]:
32         Don't use xstat_conv, just fail if VERS != _STAT_VER_KERNEL.
33         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat) [STAT_IS_KERNEL_STAT]:
34         Likewise.
35         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat) [STAT_IS_KERNEL_STAT]:
36         Likewise.
38 2002-10-02  Ulrich Drepper  <drepper@redhat.com>
40         * version.h (VERSION): Bump to 2.3.
42         * elf/Makefile (distribute): Add tst-tlsmod1.c, tst-tlsmod2.c,
43         tst-tlsmod3.c, tst-tlsmod4.c, circlemod1.c, circlemod1a.c,
44         circlemod2.c, circlemod2a.c, circlemod3.c, circlemod3a.c,
45         and nodlopenmod2.c.
47         * login/Makefile (distribute): Add utmp-equal.h.
49         * iconvdata/Makefile (distribute): Add TSCII.precomposed and
50         TSCII.irreversible.
52         * Make-dist (dist): Create .bz2 file.  Add rule to create .bz2 files.
53         Also distribute xtests sources.
55 2002-10-02  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
57         * elf/elf.h: Change TLS ELF relocation numbers.
58         * elf/tls-macros.h: Fix code sequences for SH TLS_LD and TLS_GD
59         macros.
60         * sysdeps/sh/dl-machine.h (dl_machine_rela) [case R_SH_TLS_TPOFF32]:
61         Use addend.
62         * sysdeps/sh/elf/initfini.c: Move __fpscr_values to...
63         * sysdeps/sh/elf/start.S: ...here.
65 2002-10-01  Jakub Jelinek  <jakub@redhat.com>
67         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ,
68         SIGSTKSZ): Changed to match kernel.
69         * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h: New file.
71 2002-10-01  Carlos O'Donell  <carlos@baldric.uwo.ca>
73         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
74         [__USE_GNU] (F_SETLEASE, F_GETLEASE, F_NOTIFY): New macros.
75         [__USE_GNU] (DN_ACCESS, DN_MODIFY, DN_CREATE, DN_DELETE, DN_RENAME,
76         DN_ATTRIB, DN_MULTISHOT): New macros.
78 2002-02-08  Randolph Chung  <tausq@debian.org>
80         * sysdeps/hppa/elf/start.S: Define __data_start.
82 2002-10-01  Isamu Hasegawa  <isamu@yamato.ibm.com>
84         * posix/regex_internal.c (re_string_reconstruct): Reset the member
85         LEN and STOP.
86         * posix/regexec.c (re_search_stub): Remove incorrect condition of
87         "range < 0".
88         Round RANGE in case that it is too small.
90 2002-10-01  Roland McGrath  <roland@frob.com>
92         * config.h.in (NO_HIDDEN): New #undef.
93         * include/libc-symbols.h [! NO_HIDDEN]: Add this condition to
94         nonempty definitions of hidden_proto et al.
95         * configure.in: Grok --disable-hidden-plt to define NO_HIDDEN.
96         * configure: Regenerated.
97         * sysdeps/mach/hurd/configure.in: Always define NO_HIDDEN.
98         * sysdeps/mach/hurd/configure: Regenerated.
100 2002-09-19  David Mosberger  <davidm@hpl.hp.com>
102         * sysdeps/ia64/dl-fptr.c (make_fdesc): Load address of "local" via
103         a 64-bit gp-relative address to enable binaries with large data
104         sections.
106 2002-09-30  Ulrich Drepper  <drepper@redhat.com>
108         * stdlib/cxa_finalize.c (__cxa_finalize): Call UNREGISTER_ATFORK
109         if it is defined.
110         * posix/Makefile (distribute): Add fork.h.
111         * sysdeps/generic/fork.h: New file.
113 2002-09-29  Bruno Haible  <bruno@clisp.org>
115         * sysdeps/generic/utmp_file.c (LOCKING_FAILED): New macro.
116         (UNLOCK_FILE): Add a label.
117         (getutent_r_file, internal_getut_r, getutline_r_file, pututline_file,
118         updwtmp_file): Shut off the alarm clock when locking failed.
120 2002-09-30  Isamu Hasegawa  <isamu@yamato.ibm.com>
122         * posix/regex_internal.h (re_match_context_t): Add a new member.
123         (re_fail_stack_ent_t): New structure.
124         (re_fail_stack_t): Likewise.
125         * posix/regexec.c (re_search_internal): Use the new member of
126         re_match_context_t.
127         Use fail stack only if it has back references and there are plural
128         matching candidates.
129         (proceed_next_node): Use fail stack if it is indicated.
130         (set_regs): Likewise.
131         (push_fail_stack): New function.
132         (pop_fail_stack): New function.
133         (check_dst_limits): Likewise.
134         (check_dst_limits_calc_pos): Likewise.
135         (search_subexp): Check the limitations on the top of subexpressions.
136         (sift_states_bkref): Check the limitations of the destination node.
137         Reuse the array sctx->sifted_states.
139 2002-09-30  Ulrich Drepper  <drepper@redhat.com>
141         * stdio-common/printf_fp.c: Shuffle a few lines around to help the
142         compiler optimizing.  No semantical changes intended.
144 2002-09-30  Jakub Jelinek  <jakub@redhat.com>
146         * sysdeps/ia64/strncpy.S: Only segfault in .recovery2 if some bits
147         from the next quad are needed.
149 2002-09-30  Roland McGrath  <roland@redhat.com>
151         * elf/tls-macros.h (TLS_LD, TLS_GD): Use call insn, not callq.
153         * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD] [! PIC]:
154         Use direct-%fs form of TLS access for errno.
156         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: File removed, since
157         the i386 version has all the same asm now.
159         * sysdeps/i386/elf/configure.in: Add @GOTNTPOFF and @NTPOFF uses to
160         the TLS support check.
161         * sysdeps/i386/elf/configure: Regenerated.
163         * sysdeps/unix/sysv/linux/i386/sysdep.h [USE_TLS && HAVE___THREAD]
164         (SYSCALL_ERROR_HANDLER): Use direct-%gs form of TLS access for errno.
166         * sysdeps/unix/i386/sysdep.S (syscall_error)
167         [USE_TLS && HAVE___THREAD]: Use TLS access for errno.
169         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
170         [USE_TLS && HAVE___THREAD] (SYSCALL_ERROR_HANDLER): Use TLS access.
172         * rt/tst-aio7.c (do_test): Don't read from stdin, which could be the
173         terminal when the test is running in a background job.  Instead, make
174         a pipe and read from its read half while never writing anything to it.
176 2002-09-30  Andreas Jaeger  <aj@suse.de>
178         * stdlib/tst-bsearch.c (main): Fix format strings.
179         * stdio-common/tst-rndseek.c (do_test): Likewise.
180         * libio/tst_swprintf.c (main): Likewise.
181         * catgets/tst-catgets.c (main): Likewise.
182         * libio/tst-fgetws.c (main): Likewise.
183         * posix/tst-mmap.c (main): Likewise.
184         * posix/bug-regex12.c (main): Likewise.
185         * posix/bug-regex11.c (main): Likewise.
186         * io/tst-getcwd.c (do_test): Likewise.
188         * iconvdata/tst-e2big.c (test): Use %td in printf for ptrdiff_t.
190         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
191         Store 4 bytes into errno, not 8 bytes.
193 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
195         * posix/regexec.c (sift_states_bkref): Remove ret variable.  Use
196         err instead.
198 2002-09-29  Roland McGrath  <roland@redhat.com>
200         * test-skeleton.c (timeout_handler): Use WUNTRACED flag in waitpid.
201         Examine the child's status and print something different if it wasn't
202         just killed by our SIGKILL.
203         (main): In the child process call setpgid to put it in its own pgrp.
205 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
207         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): The return value
208         semantics for sigtimedwait is different.  Rework the return value
209         handling and don't pass in a siginfo variable.
211 2002-09-29  Roland McGrath  <roland@redhat.com>
213         * malloc/malloc.c [! MALLOC_DEBUG] (assert): #undef before defining.
215         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.2.6): Add __errno_location.
217         * sysdeps/unix/sysv/linux/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]:
218         Define errno in .tbss.
219         * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]: Use TLS
220         access for setting errno.
222         * sysdeps/unix/x86_64/sysdep.S: Store 32 bits at errno, not 64 bits.
223         AFAICT, it was just blind luck that the word following errno in .bss
224         was just alignment padding and not some other variable to be clobbered.
226 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
228         * sysdeps/unix/sysv/linux/kernel-features.h
229         (__ASSUME_SETRESUID_SYSCALL): On the sparc, define to 1, not empty.
231 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
233         * nss/bug-erange.c (main): Don't fail if /etc/resolv.conf doesn't
234         exist.
236 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
238         * nss/Makefile: Move bug-erange from tests to xtests.
240 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
242         * stdlib/longlong.h (__udiv_qrnnd): Remove PARAMS from prototype.
244 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
246         * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall0): Make asm
247         volatile.
248         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
249         inline_syscall5, inline_syscall6): Likewise.
250         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
251         Likewise.
252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (INLINE_SYSCALL):
253         Likewise.
255 2002-09-29  Roland McGrath  <roland@redhat.com>
257         * configure.in (libc_cv_ranlib_necessary check): Put the .o file in
258         the archive, not the .c file.
259         * configure: Regenerated.
261 2002-09-29  Roland McGrath  <roland@redhat.com>
263         * configure: Regenerated after aclocal.m4 change.
265         * sysdeps/x86_64/sysdep.h [HAVE_ELF] (L): Define with .L##name form.
266         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (L): Don't define it here.
268         * sysdeps/generic/dl-lookupcfg.h [USE_TLS] (DL_LOOKUP_RETURNS_MAP):
269         Define it, because _dl_sym presumes it (for any platform).
271         * sysdeps/x86_64/dl-tls.h: New file.
273         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add a cast.
275         * sysdeps/x86_64/elf/configure.in: New file.
276         * sysdeps/x86_64/elf/configure: New generated file.
278 2002-09-28  Roland McGrath  <roland@redhat.com>
280         * elf/rtld.c (_dl_start): Fix conditional for declaring CNT.
282         * aclocal.m4 (LIBC_PROG_BINUTILS): Don't clobber $RANLIB with ranlib
283         before we check it.
285 2002-09-28  Ulrich Drepper  <drepper@redhat.com>
287         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __syscall_exit
288         entry point.
290 2002-09-28  Jakub Jelinek  <jakub@redhat.com>
292         * posix/bug-regex11.c (tests): Add flags field.
293         (main): Avoid warnings.  Use test[i].flags.  Return nonzero
294         if any of the tests failed.
295         * posix/bug-regex12.c: New file.
296         * posix/Makefile (tests): Add bug-regex12.
298 2002-03-02  Thorsten Kukuk  <kukuk@suse.de>
300         * sysdeps/unix/nice.c (nice): Use getpriority() for the return value.
302 2002-09-28  Jeff Bailey  <jbailey@gnu.org>
304         * sysdeps/unix/sysv/sysv4/solaris2/configure.in: Delete.
305         * sysdeps/unix/sysv/aix/configure.in: Update comment and remove
306         stdio=libio setting.
308 2002-09-28  Roland McGrath  <roland@redhat.com>
310         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Use INTUSE for
311         _dl_signal_error.
312         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Likewise.
313         * sysdeps/powerpc/powerpc64/dl-machine.c
314         (_dl_reloc_overflow): Likewise.
315         * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
316         (elf_machine_rela): Likewise.
318 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
320         * include/libc-symbols.h (__hidden_dot_weak1): Fix typo.  Replace
321         ASM_GLOBAL_DIRECTIVE with .weak.
323 2002-09-28  Andreas Jaeger  <aj@suse.de>
325         * sysdeps/unix/sysv/linux/mips/truncate64.c (truncate64): Fix
326         number of args to syscall.
327         * sysdeps/unix/sysv/linux/mips/ftruncate64.c (__ftruncate64): Likewise.
328         Patch by Guido Guenther <agx@sigxcpu.org>.
330 2002-09-27  Roland McGrath  <roland@redhat.com>
332         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_pread, __NR_pwrite):
333         Define these to __NR_pread64, __NR_pwrite64 if not defined.
335         * sysdeps/unix/sysv/linux/powerpc/lchown.S
336         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Use this condition
337         on chown compatibility symbol; use compat_symbol, not symbol_version.
339 2002-09-27  Isamu Hasegawa  <isamu@yamato.ibm.com>
341         * posix/regcomp.c (reg_free): Free the debug area.
342         (re_compile_internal): Allocate debug area for the input string.
343         (create_initial_state): Check the back references in initial states
344         if they are really match null string in the initial state.
345         (parse_reg_exp): Mark the dfa that the dfa can have plural matchings.
346         (parse_expression): Likewise.
347         (parse_bracket_exp): Likewise.
348         * posix/regex_internal.c (re_node_set_intersect): Remove unused
349         function.
350         (re_node_set_contains): Change to return the index of node.
351         * posix/regex_internal.h (re_backref_cache_entry): Change the members.
352         (re_match_context_t): Likewise.
353         (struct re_dfa_t): Likewise.
354         (re_sift_context_t): New structure.
355         * posix/regexec.c (match_ctx_clear_flag): New function.
356         (sift_ctx_init): Likewise.
357         (update_cur_sifted_state): Likewise.
358         (add_epsilon_src_nodes): Likewise.
359         (sub_epsilon_src_nodes): Likewise.
360         (check_subexp_limits): Likewise.
361         (search_subexp): Likewise.
362         (sift_states_bkref): Likewise.
363         (merge_state_array): Likewise.
364         (sift_states_iter_bkref): Remove unused function.
365         (add_epsilon_backreference): Remove unused function.
366         (re_search_internal): Adapt new members and interfaces.
367         (check_matching): Check the back references in initial states
368         if they are really match null string in the initial state.
369         (proceed_next_node): Change the evaluation of back references,
370         since we have real registers here.
371         (set_regs): Adapt new interface of proceed_next_node.
372         (sift_states_backward): Add invocation of update_cur_sifted_state
373         instead of add_epsilon_backreference.
374         Add a sentinel to the outermost while loop.
375         Move the handling of back references to sift_states_bkref function,
376         since we can't handle some back references (e.g. a back reference
377         which match NULL string) here.
378         (transit_state_mb): Handle the new member max_mb_elem_len.
379         (transit_state_bkref_loop): Move the evaluation of back references to
380         search_subexp function, since we can't evaluate some back references
381         (e.g. a back reference which can have plural matchings) here.
382         (match_ctx_init): Adapt the new member.
383         (match_ctx_add_entry): Adapt the new members.
385 2002-09-25  Alan Modra  <amodra@bigpond.net.au>
387         * elf/do-rel.h: Define macro DO_ELF_MACHINE_REL_RELATIVE for
388         'elf_machine_rel_relative'
389         (elf_dynamic_do_rel): Call DO_ELF_MACHINE_REL_RELATIVE macro
390         instead of 'elf_machine_rel_relative'.
391         * sysdeps/hppa/dl-machine.h:
392         Define macro DO_ELF_MACHINE_REL_RELATIVE for
393         'elf_machine_rel_relative' with extra map parameter
394         required by HPPA.
395         (elf_machine_rela_relative): Add plt relocation changes.
397 2001-11-14  Matthew Wilcox  <willy@debian.org>
399         * sysdeps/unix/sysv/linux/hppa/bits/ipc.h: New file.
400         * sysdeps/unix/sysv/linux/hppa/bits/msq.h: New file.
401         * sysdeps/unix/sysv/linux/hppa/bits/sem.h: New file.
402         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: New file.
404 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
406         * sysdeps/powerpc/powerpc32/Makefile: Fix typo in comment.
408         * sysdeps/powerpc/powerpc64/Makefile
409         [$(build-shared) = yes] (pic-ccflag): Define it.
410         [$(subdir) = csu] (CFLAGS-initfini.s): Add -fpic here too.
412 2002-09-27  Roland McGrath  <roland@redhat.com>
414         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Remove
415         unneeded TLS cases.
417 2002-09-27  Jakub Jelinek  <jakub@redhat.com>
419         * elf/dl-addr.c (_dl_addr): Set dli_fbase to l_map_start
420         unconditionally.  Set dli_fname to _dl_argv[0] only for main program.
422 2002-09-27  Roland McGrath  <roland@redhat.com>
424         * elf/dl-addr.c (_dl_addr): Add a cast.
426         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [USE_TLS]: Handle new
427         TLS relocs R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, and R_X86_64_TPOFF64.
429         * elf/elf.h (R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, R_X86_64_TPOFF64,
430         R_X86_64_TLSGD, R_X86_64_TLSLD, R_X86_64_DTPOFF32,
431         R_x86_64_GOTTPOFF, R_X86_64_TPOFF32): New macros.
432         (R_X86_64_NUM): Update the value.
434 2002-09-24  Jakub Jelinek  <jakub@redhat.com>
436         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_load_address): Don't
437         rely on *r_offset of R_SPARC_RELATIVE reloc in .got to contain the
438         addend.
439         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Use
440         the same l_addr computation.
441         * sysdeps/sparc/sparc64/configure.in: Removed.
442         * sysdeps/sparc/sparc64/configure: Removed.
443         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Remove.
445 2002-09-26  Ulrich Drepper  <drepper@redhat.com>
447         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_HASH entry
448         if necessary.
449         * elf/dl-lookup.c (_dl_setup_hash): DT_HASH entry is already relocated.
450         * elf/dl-addr.c (_dl_addr): Use .hash[1] entry to determine end of the
451         symbol table if necessary.
453 2002-09-26  Roland McGrath  <roland@redhat.com>
455         * stdlib/longlong.h: Replaced with current version from GCC mainline,
456         last modified 2002-09-22  Kazu Hirata  <kazu@cs.umass.edu>.
458 2002-09-25  Andreas Jaeger  <aj@suse.de>
460         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add syscall_exit.
461         Patch by Guido Guenther <agx@sigxcpu.org>.
463 2002-09-25  Roland McGrath  <roland@redhat.com>
465         * Makeconfig (%.v.i pattern rule): Use $(CPPFLAGS).
467 2002-09-24  Ulrich Drepper  <drepper@redhat.com>
469         * sysdeps/unix/sysv/linux/configure.in: Recognize nptl add-on name.
471 2002-09-24  Roland McGrath  <roland@redhat.com>
473         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Move __libc_read,
474         __libc_write, __libc_lseek64, to ...
475         (ld: GLIBC_PRIVATE): ... here.
477         * csu/Versions: Use %include <tls.h> to get USE_TLS defined.
478         (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _errno, errno.
479         (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put errno here instead.
480         * resolv/Versions: Use %include <tls.h> to get USE_TLS defined.
481         (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _h_errno, h_errno,
482         and _res.
483         (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put h_errno, _res here.
485         * elf/tls-macros.h [__x86_64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
486         New macros for x86-64.
488         * sysdeps/unix/sysv/linux/alpha/bits/time.h: File removed.
489         It was indentical to the linux/bits/time.h file.
491         * nscd/nscd_gethst_r.c (nscd_gethst_r): Add a cast to silence warning.
493         * resolv/gethnamaddr.c (gethostbyaddr): Use socklen_t for SIZE.
495 2002-09-23  Ulrich Drepper  <drepper@redhat.com>
497         * po/zh_CN.po: New file.
499 2002-09-23  Roland McGrath  <roland@redhat.com>
501         * posix/unistd.h: Test [__USE_UNIX98] instead of [__USE_OPEN2K]
502         for gethostname declaration.
504         * catgets/open_catalog.c (__open_catalog): Don't use a value type
505         as the __builtin_expect expression, just the Boolean value.
507         * sysdeps/generic/wordexp.c (parse_glob): int -> size_t for counter.
508         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
509         * resolv/res_hconf.c (arg_service_list, parse_line): Likewise.
510         * iconvdata/tst-loading.c (main): Likewise.
511         * catgets/tst-catgets.c (main): Likewise.
512         * stdlib/tst-xpg-basename.c (main): Likewise.
513         * stdlib/tst-bsearch.c (main): Likewise.
514         * stdio-common/test-vfprintf.c (main): Likewise.
515         * stdio-common/tst-rndseek.c (do_test): Likewise.
516         * libio/tst_swprintf.c (main): Likewise.
517         * libio/tst-fgetws.c (main): Likewise.
518         * wcsmbs/tst-mbrtowc.c (check_ascii): Likewise.
519         * time/tst-posixtz.c (main): Likewise.
520         * time/tst-strptime.c (test_tm): Likewise.
521         * time/tst-strptime.c (main): Likewise.
522         * time/tst-getdate.c (main): Likewise.
523         * posix/tst-mmap.c (main): Likewise.
524         * posix/tst-getaddrinfo.c (do_test): Likewise.
525         * io/tst-getcwd.c (do_test): Likewise.
526         * resolv/tst-aton.c (main): Likewise.
527         * inet/tst-network.c (main): Likewise.
528         * libio/tst-fgetws.c (main): Likewise.
529         * sysdeps/posix/sprofil.c (add_region): int -> unsigned int for I.
530         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): int -> unsigned int
531         for PTYNO.
533         * stdlib/msort.c (qsort): Add a cast to silence warning.
534         * stdio-common/vfprintf.c (process_string_arg): Likewise.
535         * libio/oldfileops.c (_IO_old_do_write): Likewise.
536         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Likewise.
537         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
538         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
539         * argp/argp-fmtstream.c (__argp_fmtstream_printf): Likewise.
540         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
541         * sysdeps/unix/grantpt.c (grantpt): Likewise.
542         * libio/tst-widetext.c (main): Likewise.
543         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
544         * rt/tst-aio.c (test_file): Likewise.
545         * rt/tst-aio64.c (test_file): Likewise.
546         * resolv/tst-aton.c (main): Likewise.
548         * catgets/catgetsinfo.h (CATGETS_MAGIC): Use U suffix on the constant.
550         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Cast to int32_t
551         instead of uint32_t in these macros.
553 2002-09-22  Bruno Haible  <bruno@clisp.org>
555         * iconv/iconv_prog.c (main): Provide an error message that identifies
556         the wrong encoding.
558         * iconvdata/tscii.c: New file.
559         * iconvdata/testdata/TSCII: New file.
560         * iconvdata/testdata/TSCII..UTF8: New file.
561         * iconvdata/TSCII.precomposed: New file.
562         * iconvdata/TSCII.irreversible: New file.
563         * iconvdata/gconv-modules (TSCII): New module.
564         * iconvdata/Makefile (modules): Add TSCII.
565         (distribute): Add tscii.c.
566         * iconvdata/tst-table-from.c (try, utf8_decode, main): Double output
567         buffer size.
568         * iconvdata/tst-tables.sh: Add TSCII.
569         * iconvdata/TESTS: Add TSCII.
571         Revert 2002-04-18 patch.
572         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
573         FROM_DIRECTION): Make the FROM direction stateful again.
574         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
575         FROM_DIRECTION): Likewise.
577         * iconvdata/tst-e2big.c: New file.
578         * iconvdata/Makefile (tests): Add tst-e2big.
580 2002-09-23  Roland McGrath  <roland@redhat.com>
582         * elf/Makefile (test-extras): Define this instead of test-srcs.
583         * Makerules (all-nonlib): Include $(test-extras) too.
585 2002-09-21  Carlos O'Donell  <carlos@baldric.uwo.ca>
587         * sysdeps/hppa/abort-instr.h: New file.
589 2002-09-22  Roland McGrath  <roland@frob.com>
591         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Remove duplicate entry.
593         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Add alias __GI__exit.
595 2002-09-22  Andreas Schwab  <schwab@suse.de>
597         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Append, not overwrite.
599         * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal)
600         (isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]:
601         Use GCC builtins.
603 2002-09-21  Roland McGrath  <roland@redhat.com>
605         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM):
606         Correct the value so it covers all platforms, and is computed
607         from _DL_PLATFORMS_COUNT rather than hard-wired.
608         From Andrew Suffield <asuffield@debian.org>.
610 2002-09-20  Ulrich Drepper  <drepper@redhat.com>
612         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
613         locking when using mount tab file.
614         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
615         * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
616         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
618         * elf/dl-init.c (_dl_init): Fix test of the size of the
619         preinit_array section.
620         (call_init): Optimize access to DT_INIT_ARRAY entry a bit.
621         Reported by Brian Cabral <cabral@ikuni.com>.
623 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
625         * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros.
626         * sysdeps/powerpc/powerpc32/sysdep.h: New file.  Define powerpc32
627         specific macros copied from sysdeps/powerpc/sysdep.h.
628         * sysdeps/powerpc/powerpc64/sysdep.h: New file.  Define powerpc64
629         specific macros.
630         * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>.
631         [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h.
632         [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h.
634 2002-09-19  Bruno Haible  <bruno@clisp.org>
636         * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
637         returning.
639 2002-09-17  Bruno Haible  <bruno@clisp.org>
641         * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
642         * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
643         also on platforms with !HAVE_UT_TYPE.
644         (proc_utmp_eq): Remove function.
645         (internal_getut_r, pututline_file): Call __utmp_equal instead.
647 2002-09-20  Bruno Haible  <bruno@clisp.org>
649         * abi-tags: Add support for FreeBSD with ABI OS value 3.
650         * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
652 2002-09-20  Roland McGrath  <roland@redhat.com>
654         * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
655         (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
656         terms of __WORDSIZE.
657         * sysdeps/x86_64/gmp-mparam.h: File removed.
658         * sysdeps/sparc/gmp-mparam.h: File removed.
659         * sysdeps/mips/mips64/gmp-mparam.h: File removed.
660         * sysdeps/ia64/gmp-mparam.h: File removed.
661         * sysdeps/alpha/gmp-mparam.h: File removed.
663 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
665         * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
666         load, so as to work on both 32-bit and 64-bit.  Remove unnecessary
667         casts.  Align __libc_stack_end to 8 bytes.
669 2002-09-20  Roland McGrath  <roland@redhat.com>
671         * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
672         instead of asm for lrintf, __lrintf aliases.
674         * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
675         int array for 32-/64-bit compatibility.
676         From Steven Munroe  <sjmunroe@us.ibm.com>.
678 2002-09-17  Bruno Haible  <bruno@clisp.org>
680         * sysdeps/generic/ifreq.h (__if_nextreq): New function.
681         * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
682         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
683         * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
684         for iterating through the list of interfaces.
685         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
687 2002-09-20  Roland McGrath  <roland@redhat.com>
689         * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
690         Reported by Bruno Haible <bruno@clisp.org>.
692         * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
694         * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
695         * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
696         isatty unmodified.  Reported by Bruno Haible <bruno@clisp.org>.
698 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
700         * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
701         * sysdeps/powerpc/bits/wordsize.h: New file.
702         * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
703         array to int array for 32-/64-bit compatibility.
705 2002-09-20  Roland McGrath  <roland@redhat.com>
707         * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
709         * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
710         Reported by Bruno Haible <bruno@clisp.org>.
712         * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
713         before doubling RQ_LEN.
714         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
715         Reported by Bruno Haible <bruno@clisp.org>.
717 2002-09-18  Bruno Haible  <bruno@clisp.org>
719         * login/logout.c (logout): Don't assume ut_time has the same size as
720         a time_t.
721         * login/logwtmp.c (logwtmp): Likewise.
723         * sysdeps/pthread/configure: New file, moved here from
724         linuxthreads/sysdeps/unix/sysv/linux/configure.
726 2002-09-19  Ulrich Drepper  <drepper@redhat.com>
728         * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
729         (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
730         Reported by Glen Nakamura <glen@imodulo.com>.
732 2002-09-19  Neal H. Walfield  <neal@cs.uml.edu>
734         * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
735         thread's sigstate data structure if it has been allocated.
737 2002-09-19  Roland McGrath  <roland@redhat.com>
739         * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
740         [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
742 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
744         * version.h (VERSION): Bump to 2.2.94.
746         * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
747         * sysdeps/powerpc/powerpc32/fpu/Dist: ...here.  New file.
748         * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
751         * sysdeps/i386/Makefile: Remove obsolete db2 rules.
753         * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
755         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
757         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
759 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
761         * sysdeps/wordsize-32/Makefile: New file.
762         * sysdeps/arm/Makefile: Removed.
763         * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
764         Don't add divdi3 here.
765         * sysdeps/m68k/Makefile: Likewise.
766         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
767         * sysdeps/sh/Makefile: Likewise.
768         * sysdeps/s390/s390-32/Makefile: Likewise.
770 2002-09-18  Roland McGrath  <roland@redhat.com>
772         * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
773         the __ctype_* compat symbols, so the relocs generated bind to the
774         right versioned global symbol in the shared object.
776         * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
777         from the value taken from the DT_VERSYM table.
778         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
779         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
780         (RESOLVE_GOTSYM): Likewise.
782         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
783         Add libc_hidden_def.
784         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
785         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
786         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
787         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
788         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
789         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
790         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
791         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
793 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
795         * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
797         * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
798         define sigaction and __sigaction as wrappers around
799         __libc_sigaction which rejects changing SIGCANCEL.
800         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
802         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
803         SETTID/CLEARTID.
805         * signal/allocrtsig.c: Move to...
806         * sysdeps/generic/allocrtsig.c: ...here.  New file.
808 2002-09-17  Jakub Jelinek  <jakub@redhat.com>
810         * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
812         * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
813         R_386_TLS_LE): Define.
814         (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
815         comments.
816         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
817         ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
818         (elf_machine_rel): Handle R_386_TLS_TPOFF.
819         (elf_machine_rela): Likewise.
820         Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
822 2002-09-17  Roland McGrath  <roland@redhat.com>
824         * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
825         file-specific variable override so it compiles properly when using
826         --with-headers.
828 2002-09-17  Steven Munroe  <sjmunroe@us.ibm.com>
830         Ported to PowerPC64 running Linux.
831         * sysdeps/powerpc/powerpc64/Dist: New file.
832         * sysdeps/powerpc/powerpc64/Implies: New file.
833         * sysdeps/powerpc/powerpc64/Makefile: New file.
834         * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
835         * sysdeps/powerpc/powerpc64/atomicity.h: New file.
836         * sysdeps/powerpc/powerpc64/backtrace.c: New file.
837         * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
838         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
839         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
840         * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
841         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
842         * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
843         * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
844         * sysdeps/powerpc/powerpc64/memset.S: New file.
845         * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
846         * sysdeps/powerpc/powerpc64/register-dump.h: New file.
847         * sysdeps/powerpc/powerpc64/setjmp.S: New file.
848         * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
849         * sysdeps/powerpc/powerpc64/strchr.S: New file.
850         * sysdeps/powerpc/powerpc64/strcmp.S: New file.
851         * sysdeps/powerpc/powerpc64/strcpy.S: New file.
852         * sysdeps/powerpc/powerpc64/strlen.S: New file.
853         * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
854         * sysdeps/powerpc/powerpc64/elf/start.S: New file.
855         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
856         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
858         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
861         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
865         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
866         (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
867         various gcc versions.  Dot names required for powerpc64.
868         [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
869         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
870         C_SYMBOL_DOT_NAME(alias).
871         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
872         original strong_alias macro.
873         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
874         C_SYMBOL_DOT_NAME(alias).
875         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
876         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
877         '.'ed name.
878         Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
879         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro.  Generate
880         .global C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
881         (hidden_def): Append hidden_dot_def1 macro to definition.
882         (hidden_ver): Append hidden_dot_def1 macro to definition.
883         (hidden_data_def): New macro.  Same as original hidden_def macro.
884         (hidden_data_ver): New macro.  Same as original hidden_ver macro.
885         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro.  Generate
886         .weakext C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
887         (hidden_weak): Append hidden_dot_weak1 macro to definition.
888         (hidden_data_weak): New macro.  Same as original hidden_weak macro.
889         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
890         Otherwise defined as __GI_name.
891         (libc_hidden_data_def): New macro.  Use hidden_data_def.
892         (libc_hidden_data_weak): New macro.  Use hidden_data_weak.
893         (libc_hidden_data_ver): New macro.  Use hidden_data_ver.
894         (rtld_hidden_data_def): New macro.  Use hidden_data_def.
895         (rtld_hidden_data_weak): New macro.  Use hidden_data_weak.
896         (rtld_hidden_data_ver): New macro.  Use hidden_data_ver.
897         (libm_hidden_data_def): New macro.  Use hidden_data_def.
898         (libm_hidden_data_weak): New macro.  Use hidden_data_weak.
899         (libm_hidden_data_ver): New macro.  Use hidden_data_ver.
900         * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
902 2002-09-17  Ulrich Drepper  <drepper@redhat.com>
904         * include/libc-symbols.h: Change *hidden_proto macros to accept
905         option parameters and pass those to the attribute definition.
906         * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
908         * include/unistd.h: Declare __libc_pause.
910         * include/sys/socket.h: Declare __libc_send, __libc_recv,
911         __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
913         * include/unistd.h: Declare __libc_fork.
915 2002-09-17  Roland McGrath  <roland@redhat.com>
917         * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
918         (passwd2des): Define it as an alias.
919         (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
921 2002-09-12  Bruno Haible  <bruno@clisp.org>
923         * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
924         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
926         * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
927         * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
929 2002-09-05  Steven Munroe  <sjmunroe@us.ibm.com>
931         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
932         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
933         __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
934         PowerPC64 does not have separate 64-bit syscalls.
936 2002-09-16  Roland McGrath  <roland@redhat.com>
938         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
940         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
941         New macro.
943         * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
945         * include/unistd.h: Uncomment libc_hidden_proto for _exit.
946         * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
947         * sysdeps/generic/_exit.c: Likewise.
949 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
951         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
953         * elf/rtld.c (struct dl_start_final_info): New.
954         (_dl_start_final): Change second argument to struct
955         dl_start_final_info *.  Set start_time from info.
956         (_dl_start): Remove bootstrap_map variable, add info.
957         Define bootstrap_map as macro.  If not DONT_USE_BOOTSTRAP_MAP,
958         store HP_TIMING_NOW result into info.start_time.
960 2002-09-16  Andreas Jaeger  <aj@suse.de>
962         * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
963         to _Exit.
964         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
966 2002-09-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
968         * sysdeps/powerpc/abort-instr.h: New file.
970 2002-09-14  Ulrich Drepper  <drepper@redhat.com>
972         * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
973         comment.
975         * test-skeleton.c (main): Provide more information in case waitpid
976         fails.
978         * include/unistd.h: Declare __exit_thread.
979         * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
980         Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
981         * sysdeps/unix/sysv/linux/exit-thread.S: New file.
982         * sysdeps/unix/sysv/linux/_exit.c: New file.
983         * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
984         * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
985         Add exit-thread.
987         * configure.in: Add dl_iterate_phdr to test using -nostdlib.
989 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
991         * sysdeps/i386/dl-machine.h (elf_machine_rel)
992         (case R_386_TLS_DTPMOD32): Don't use addend.
993         [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
994         (elf_machine_rela): Add support for TLS relocs.
996 2002-09-14  Roland McGrath  <roland@redhat.com>
998         * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
1000 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
1002         * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
1003         specific asm macros for multiple percision integer math.
1005 2002-06-04  Steven Munroe  <sjmunroe@us.ibm.com>
1007         * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
1008         * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
1009         Remove per-machine conditionals for FLAG_* cases.
1010         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
1011         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
1012         * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
1014 2002-09-10  Alan Modra <amodra@bigpond.net.au>
1016         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
1017         defined in entry.h.
1018         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
1019         lowest address for profiling in  __monstartup call.
1020         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
1022 2002-09-14  Roland McGrath  <roland@redhat.com>
1024         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
1025         instead of __NR_pread.
1026         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
1027         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
1028         instead of __NR_pwrite.
1029         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
1031 2002-09-13  Roland McGrath  <roland@redhat.com>
1033         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
1035 2002-09-13  Andreas Jaeger  <aj@suse.de>
1037         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
1038         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
1040 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
1042         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
1044 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
1046         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
1047         reading the headers.
1049 2002-09-12  Roland McGrath  <roland@redhat.com>
1051         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
1052         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
1053         find the ELF header.
1055         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
1056         executable if needed, in case it's actually a shared object.
1058 2002-09-11  Roland McGrath  <roland@redhat.com>
1060         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
1061         l_map_start to adjust l_tls_initimage.
1063         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
1064         when using h_errno and it's not set to NETDB_INTERNAL.
1065         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
1067         * Makefile ($(common-objpfx)testrun.sh): New target.
1068         (others): Depend on it.
1069         (postclean-generated): Append it.
1071         * nss/bug-erange.c: New file.
1072         * nss/Makefile (tests): Add it.
1074         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
1075         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
1077         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
1078         strncmp, keeps the code smaller for a non-performance-critical case.
1080         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
1081         no longer wrongly matches arbitrary prefixes of NAME.
1082         Reported by Jakub Jelinek <jakub@redhat.com>.
1084 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
1086         * posix/bug-regex11.c (tests): New array.
1087         (main): Rewritten to run more different tests.
1089 2002-09-10  Roland McGrath  <roland@redhat.com>
1091         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
1092         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
1093         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
1095         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
1096         well so we don't get it declared by include/math.h's hidden_proto.
1097         Then do hidden_proto for __isnanf locally so hidden_def works right.
1099         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
1100         a cast to turn nl_langinfo return value into an integer.
1102 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
1104         * posix/regexec.c (build_trtable): Fix the destination of
1105         newline to prevent wrong states from overwriting.
1106         Append break statements to optimization.
1108 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
1110         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
1111         (build_range_exp): Add castings to strlen invocations.
1112         (build_collating_symbol): Restore the type of characters from "char"
1113         to "unsigned char", and supplement castings.
1114         (build_collating_symbol): Likewise.
1115         (build_equiv_class): Likewise.
1116         (build_charclass): Likewise.
1117         (seek_collating_symbol_entry): Likewise.
1118         (parse_bracket_exp): Likewise.
1119         (build_word_op): Supplement a casting.
1120         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
1121         (re_string_allocate): Fix castings.
1122         (re_string_construct): Likewise.
1123         (re_string_construct_common): Likewise.
1124         (re_string_realloc_buffers): Likewise.
1125         (build_wcs_buffer): Likewise.
1126         (build_wcs_upper_buffer): Likewise.
1127         (re_string_skip_chars): Likewise.
1128         (re_string_reconstruct): Likewise.
1129         * posix/regex_internal.h: Restore the type of characters in
1130         re_string_t and bracket_elem_t from "char" to "unsigned char".
1131         (re_string_elem_size_at): Fix castings.
1132         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
1133         (transit_state_bkref_loop): Restore the type of characters from
1134         "char" to "unsigned char", and append a cast to "char*" pointer in
1135         array subscript.
1136         (check_node_accept_bytes): Likewise.
1137         (find_collation_sequence_value): Likewise.
1139 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
1141         * sysdeps/mips/memcpy.S: New file.
1142         * sysdeps/mips/memset.S: New file.
1143         * sysdeps/mips/fpu/e_sqrt.c:  New file.
1144         * sysdeps/mips/fpu/e_sqrtf.c: New file.
1146         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
1147         functional before. Also removed all SHLIB_COMPAT stuff.
1148         * fpu/fegetenv.c: Likewise.
1149         * fpu/fesetenv.c:: Likewise.
1150         * fpu/feupdateenv.c: Likewise.
1151         * fpu/fgetexcptflg.c: Likewise.
1152         * fpu/fraiseexcpt.c: Likewise.
1154         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
1156 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
1158         * include/math.h (__finite_internal, __finitef_internal,
1159         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
1160         (isfinite): Remove.
1161         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
1162         __isinfl, __isnanl): Add hidden_proto.
1163         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
1164         libm_hidden_proto.
1165         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
1166         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
1167         __is{inf,nan} calls.
1168         * stdio-common/printf_size.c (printf_size): Likewise.
1169         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
1170         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
1171         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
1172         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
1173         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
1174         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
1175         (__finite): Add hidden_def.
1176         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
1177         (__finitef): Add hidden_def.
1178         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
1179         (__finitel): Add hidden_def.
1180         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
1181         hidden_def.
1182         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
1183         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
1184         libm_hidden_def.
1185         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
1186         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
1187         hidden_def.
1188         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
1189         (__isinfl): Remove INTDEF.
1190         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
1191         hidden_def.
1192         (__isnanl): Remove INTDEF.
1193         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
1194         libm_hidden_def.
1195         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
1196         instead of sin and cos.
1197         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
1198         Add hidden_def.
1199         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
1200         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
1201         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
1202         libm_hidden_def.
1203         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
1204         Add hidden_def.
1205         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
1206         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
1207         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
1208         libm_hidden_def.
1209         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
1210         libm_hidden_def.
1211         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
1212         Add hidden_def.
1213         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
1214         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
1215         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
1216         libm_hidden_def.
1217         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
1218         __finitel_internal): Remove aliases.
1219         (__finite, __finitef, __finitel): Add hidden_def.
1220         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
1221         __isnanl_internal): Remove aliases.
1222         (__isnan, __isnanf, __isnanl): Add hidden_def.
1223         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
1224         __isinfl_internal): Remove aliases.
1225         (__isinf, __isinff, __isinfl): Add hidden_def.
1226         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
1227         __fpclassifyl): Add libm_hidden_def.
1228         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
1229         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
1230         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
1231         (hidden_defx): Define and use.
1232         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
1233         libm_hidden_def.
1234         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
1235         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
1236         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
1237         Remove INTDEF.
1238         (__isnan, __isnanf): Add hidden_def.
1239         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
1240         (__finitel): Add libm_hidden_def.
1241         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
1243         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
1244         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
1245         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1246         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
1247         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1248         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
1249         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
1250         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
1251         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1252         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
1253         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1254         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
1255         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1256         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
1257         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1258         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
1259         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1260         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
1261         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1262         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
1263         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1264         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
1265         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1266         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
1267         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1268         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
1269         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1271 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
1273         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
1275 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
1277         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
1278         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
1280 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
1282         * string/stratcliff.c: Some more strncpy tests.
1283         Patch by Daniel Jacobowitz <drow@mvista.com>.
1285 2002-09-08  Roland McGrath  <roland@redhat.com>
1287         * resolv/resolv.h: Include <sys/types.h> for u_long even in
1288         the [__need_res_state] case.
1289         Reported by Bruno Haible <bruno@clisp.org>.
1291 2002-09-04  Bruno Haible  <bruno@clisp.org>
1293         * sysdeps/generic/bits/ustat.h: Comment fix.
1294         * io/sys/sendfile.h: Comment fix.
1295         * sysdeps/posix/pread.c: Comment fix.
1296         * sysdeps/posix/pread64.c: Comment fix.
1297         * sysdeps/posix/pwrite.c: Comment fix.
1298         * sysdeps/posix/pwrite64.c: Comment fix.
1300 2002-09-06  Roland McGrath  <roland@redhat.com>
1302         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
1303         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
1304         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
1305         (_UTSNAME_MACHINE_LENGTH): Likewise.
1306         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
1308 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
1310         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
1311         test for filesystem type name of mount points.
1313         * include/errno.h: Use errno definition with __thread for now only
1314         in libc and ld.so.
1316         * test-skeleton.c (main): Improve error message for unexpected
1317         signal case.
1319 2002-09-05  Roland McGrath  <roland@redhat.com>
1321         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
1322         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1324 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
1326         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
1327         case of failure.
1329 2002-09-04  Bruno Haible  <bruno@clisp.org>
1331         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
1332         sigset_get_old_mask): Turn into inline functions.
1333         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
1334         sigset_get_old_mask): Likewise.
1335         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
1336         sigset_get_old_mask): Likewise.
1337         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
1338         syntax.
1340         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
1342         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
1343         default definitions.
1344         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
1345         _sys_nerr_internal instead of _sys_nerr.
1347         * nscd/connections.c (handle_request): Declare CALLER inside #if.
1349 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
1351         * sysdeps/powerpc/__longjmp.S: Moved to...
1352         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
1353         * sysdeps/powerpc/add_n.S: Moved to...
1354         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
1355         * sysdeps/powerpc/addmul_1.S: Moved to...
1356         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
1357         * sysdeps/powerpc/atomicity.h: Moved to...
1358         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
1359         * sysdeps/powerpc/backtrace.c: Moved to...
1360         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
1361         * sysdeps/powerpc/bp-asm.h: Moved to...
1362         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
1363         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
1364         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
1365         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
1366         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
1367         * sysdeps/powerpc/dl-machine.c: Moved to...
1368         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
1369         * sysdeps/powerpc/dl-machine.h: Moved to...
1370         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
1371         * sysdeps/powerpc/dl-start.S: Moved to...
1372         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
1373         * sysdeps/powerpc/gprrest0.S: Moved to...
1374         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
1375         * sysdeps/powerpc/gprrest1.S: Moved to...
1376         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
1377         * sysdeps/powerpc/gprsave0.S: Moved to...
1378         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
1379         * sysdeps/powerpc/gprsave1.S: Moved to...
1380         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
1381         * sysdeps/powerpc/lshift.S: Moved to...
1382         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
1383         * sysdeps/powerpc/memset.S: Moved to...
1384         * sysdeps/powerpc/powerpc32/memset.S: ...here.
1385         * sysdeps/powerpc/mul_1.S: Moved to...
1386         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
1387         * sysdeps/powerpc/ppc-mcount.S: Moved to...
1388         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
1389         * sysdeps/powerpc/register-dump.h: Moved to...
1390         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
1391         * sysdeps/powerpc/rshift.S: Moved to...
1392         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
1393         * sysdeps/powerpc/setjmp.S: Moved to...
1394         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
1395         * sysdeps/powerpc/stpcpy.S: Moved to...
1396         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
1397         * sysdeps/powerpc/strchr.S: Moved to...
1398         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
1399         * sysdeps/powerpc/strcmp.S: Moved to...
1400         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
1401         * sysdeps/powerpc/strcpy.S: Moved to...
1402         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
1403         * sysdeps/powerpc/strlen.S: Moved to...
1404         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
1405         * sysdeps/powerpc/sub_n.S: Moved to...
1406         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
1407         * sysdeps/powerpc/submul_1.S: Moved to...
1408         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
1409         * sysdeps/powerpc/elf/bzero.S: Moved to...
1410         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
1411         * sysdeps/powerpc/elf/start.S: Moved to...
1412         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
1413         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
1414         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
1415         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
1416         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
1417         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
1418         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
1419         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
1420         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
1421         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
1422         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
1423         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
1424         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
1425         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
1426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
1427         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
1428         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
1429         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
1430         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
1431         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
1432         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
1433         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
1434         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
1435         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
1436         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
1437         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
1438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
1439         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
1440         powerpc/powerpc64.
1442 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
1444         * FAQ.in: Add powerpc64 to supported targets list. Also state the
1445         minimum gcc version is 3.2
1446         * README: Add powerpc64 to supported targets list.
1447         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
1448         Add powerpc64 and machine=powerpc/powerpc64.
1449         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
1450         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
1451         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
1452         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
1453         * sysdeps/powerpc/powerpc32/Dist: New file.
1454         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
1455         * sysdeps/powerpc/powerpc32/Implies: New file.
1456         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
1457         ($(with-fp) = no): Move test to powerpc32/Makefile.
1458         ($(subdir) = misc): Move to powerpc32/Makefile.
1459         ($(build-shared) = yes): Move to powerpc32/Makefile.
1460         ($(subdir) = csu): Move to powerpc32/Makefile.
1461         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
1462         * sysdeps/powerpc/powerpc32/Makefile: New file.
1463         * sysdeps/powerpc/Versions: Remove libgcc functions.
1464         * sysdeps/powerpc/powerpc32/Versions: New file.
1465         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
1466         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
1467         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
1468         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
1469         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
1470         ($machine): Add powerpc/powerpc64 to if ... | for
1471         libc_cv_slibdir=/libc64.
1472         (powerpc*): Set ldd_rewrite_script.
1473         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
1474         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
1475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
1476         Add clone.S.
1477         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
1478         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
1479         functions.  Remove GLIBC_2.2 functions except getrlimit and
1480         setrlimit.  Moved them to ...
1481         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
1483 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
1485         * libio/tst-atime.c: Include <errno.h>.
1486         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
1488 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
1490         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
1491         warnings of some compilers.
1492         (build_collating_symbol): Change the type of characters from
1493         "unsigned char" to "char", and append a cast to "char*" pointer in
1494         array subscript.
1495         (build_collating_symbol): Likewise.
1496         (build_equiv_class): Likewise.
1497         (build_charclass): Likewise.
1498         (re_compile_pattern): Remove incorrect cast.
1499         (re_compile_fastmap_iter): Change the type of characters from
1500         "unsigned char" to "char", and append a cast to "char*" pointer
1501         in array subscript.
1502         (parse_bracket_exp): Likewise.
1503         * posix/regex_internal.c (re_string_construct_common): Likewise.
1504         (re_string_allocate): Likewise.
1505         (re_string_construct): Likewise.
1506         (re_string_realloc_buffers): Likewise.
1507         (build_wcs_buffer): Likewise.
1508         (re_string_reconstruct): Likewise.
1509         * posix/regex_internal.h: Change the type of characters in
1510         re_string_t and bracket_elem_t from "unsigned char" to "char".
1511         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
1512         warnings of some compilers.
1513         (transit_state_bkref_loop): Change the type of characters from
1514         "unsigned char" to "char", and append a cast to "char*" pointer in
1515         array subscript.
1516         (check_node_accept_bytes): Likewise.
1517         (find_collation_sequence_value): Likewise.
1519 2002-09-04  Roland McGrath  <roland@redhat.com>
1521         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
1522         from 1024 to 65536, to avoid buffer overrun.
1524 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
1526         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
1528 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
1530         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
1531         for filesystem.
1533 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
1535         * posix/bug-regex11.c: New test.
1536         * posix/Makefile (tests): Add bug-regex11.
1538 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
1540         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
1541         newlocale.
1543 2002-09-02  Roland McGrath  <roland@redhat.com>
1545         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
1546         __pthread_initialize_minimal and __libc_check_standard_fds to
1547         match the generic version.
1549         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
1550         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
1552         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
1553         warnings on platorms where char is unsigned.
1555 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
1557         * version.h (VERSION): Bump to 2.2.93.
1559         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
1561 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
1563         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
1564         as relocated.
1566 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
1568         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
1570 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
1572         * locale/localeinfo.h (struct locale_data): Add private.ctype.
1573         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
1574         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
1575         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
1576         (__wcsmbs_load_conv): Remove const from argument.
1577         (_nl_cleanup_ctype): New proto.
1578         (get_gconv_fcts): New function.
1579         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
1580         (__wcsmbs_to_wc): Rename back to...
1581         (to_wc): ... this.
1582         (__wcsmbs_gconv_fcts): Rename to...
1583         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
1584         (lock): Removed.
1585         (__libc_setlocale_lock): New extern.
1586         (__wcsmbs_load_conv): Remove const from argument.
1587         Initialize new_category->private.ctype instead of a global
1588         variable.
1589         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
1590         update_function_ptrs.  No locking is necessary.
1591         (_nl_cleanup_ctype): New function.
1592         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
1593         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
1594         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1595         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
1596         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
1597         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
1598         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
1599         * wcsmbs/wctob.c (wctob): Likewise.
1600         * stdlib/mblen.c (mblen): Likewise.
1601         * stdlib/mbtowc.c (mbtowc): Likewise.
1602         * stdlib/wctomb.c (wctomb): Likewise.
1603         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
1604         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
1605         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
1606         Removed.
1608 2002-09-02  Roland McGrath  <roland@frob.com>
1610         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
1612 2002-09-01  Roland McGrath  <roland@redhat.com>
1614         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
1615         Variable declarations removed.
1616         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
1617         these functions to replace them.
1618         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
1619         functions plus an indirection rather than the old global variables.
1620         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
1621         Macros removed.
1622         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
1623         inline functions.
1624         * ctype/ctype-info.c: Revert last reversion back the other way.
1625         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
1626         Define real function versions of include/ctype.h inlines here.
1627         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
1628         __ctype_tolower_loc, __ctype_toupper_loc.
1629         * locale/lc-ctype.c: Revert last reversion back the other way.
1630         (_nl_postload_ctype): If current thread uses the global locale,
1631         update its tsd vars.
1632         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
1633         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
1634         CTYPE_TOLOWER, CTYPE_TOUPPER.
1636         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
1637         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
1638         from __libc_tsd_threadvar_location.
1639         (__libc_tsd_set, __libc_tsd_get): Update uses.
1641 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
1643         * ctype/ctype.h: Undo the patch before the last one.  Put back the
1644         macro definitions for the standard functions to access the
1645         classification and mapping arrays.
1646         * include/ctype.h: Partly revert last patch.  Move the macro
1647         definitions for the exported functions back to the public header.
1648         #undef all the macros defined here before redefining.
1649         * ctype/ctype-info.c: Revert last patch.
1650         * locale/lc-ctype.c: Revert last patch.
1652         * ctype/Makefile (routines): Add isctype.
1653         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
1654         * ctype/ctype.h: Add declaration of isctype.
1655         * include/ctype.h: Declare __isctype.
1656         * ctype/isctype.c: New file.
1658 2002-09-01  Roland McGrath  <roland@redhat.com>
1660         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
1661         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1663         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1665         * locale/findlocale.c (_nl_remove_locale): Don't search in
1666         _nl_locale_file_list if DATA->alloc is ld_archive.
1667         Use _nl_unload_locale to do the rest of the work.
1669         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1670         of new structure to UNDELETABLE.
1672         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1673         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1674         towlower, towupper): Macros removed.
1675         * ctype/ctype.h (__tobody): Put parens around macro argument.
1676         (__isctype): Macro removed.
1677         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1678         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1679         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1680         tolower, toupper): Macros and inlines removed.
1681         * include/ctype.h [! NOT_IN_libc]
1682         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1683         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1684         tolower, toupper): Define here instead, using _NL_CURRENT.
1685         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1686         using _NL_CURRENT.
1687         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1688         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1689         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1690         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1691         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1692         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1693         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
1694         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1695         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1696         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1697         (ISSORTMASK): Update use.
1698         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1699         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1700         (_nss_files_getENTNAME_r): Likewise.
1701         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1702         Likewise.
1704         * Makerules (all-nonlib): Renamed from all-tests.
1705         Include $(others) here too.
1706         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1707         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1708         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1709         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1710         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
1711         the program modules via cppflags-iterator.mk.
1712         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1713         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1715 2002-08-31  Roland McGrath  <roland@redhat.com>
1717         * posix/tst-getconf.sh: If no third arg, work with static linking.
1719         * locale/categories.def (LC_TIME): No more _nl_postload_time.
1721         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1722         [_NL_CURRENT_INDIRECT].
1724 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1726         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1728 2002-08-31  Roland McGrath  <roland@redhat.com>
1730         * locale/newlocale.c (__newlocale): Don't use strdup for names.
1731         Instead, make the single allocation of the structure larger to hold
1732         the name strings.
1733         * locale/duplocale.c (__duplocale): Don't strdup names individually.
1734         Instead, calculate size for a single allocation and copy into it.
1735         * locale/freelocale.c (__freelocale): Don't free names individually.
1737         * locale/newlocale.c (__newlocale): Don't leak old data or names.
1739         * locale/xlocale.h (__locale_struct): Move __names member last,
1740         for binary compatibility.
1742         * locale/duplocale.c (__duplocale): Free names from the right array.
1744         * locale/uselocale.c (__uselocale): Return previous locale when
1745         setting a new one.
1747         * locale/newlocale.c: Commit changes from 2002-08-30
1748         batch where I failed to commit this file:
1749         (__newlocale): Fill in __names array.
1751 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1753         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1754         errlist-compat.c if versioning==yes.
1756 2002-08-31  Andreas Jaeger  <aj@suse.de>
1758         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1759         external functions with hidden attribute.
1760         (elf_machine_rela): Optimize.
1762         * sysdeps/x86_64/memset.S: New file.
1763         * sysdeps/x86_64/bzero.S: New file.
1764         * sysdeps/x86_64/stpcpy.S: New file.
1765         * sysdeps/x86_64/strcat.S: New file.
1766         * sysdeps/x86_64/strchr.S: New file.
1767         * sysdeps/x86_64/strcpy.S: New file.
1768         * sysdeps/x86_64/strcspn.S: New file.
1769         * sysdeps/x86_64/strlen.S: New file.
1770         * sysdeps/x86_64/strpbrk.S: New file.
1771         * sysdeps/x86_64/strspn.S: New file.
1772         * sysdeps/x86_64/strcmp.S: New file.
1773         * sysdeps/x86_64/strtok_r.S: New file.
1774         * sysdeps/x86_64/strtok.S: New file.
1775         * sysdeps/x86_64/memcpy.S: New file.
1776         * sysdeps/x86_64/mempcpy.S: New file.
1778         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1780         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1782 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1784         * stdio-common/Makefile (generated): Add errlist-compat.c.
1786         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1788         * locale/localeinfo.h: Pretty printing.
1790         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1791         form_number handling.
1793 2002-08-31  Andreas Jaeger  <aj@suse.de>
1795         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1796         double tests.
1798         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1799         __start_context.
1801         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1803         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1805         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1806         registers used for passing args.
1808         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1809         all needed registers.
1811         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1812         registers.
1814         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1815         registers.
1817 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
1819         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1820         always_inline attribute.
1822 2002-08-30  Roland McGrath  <roland@redhat.com>
1824         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1825         presume it's the stub and bail without error.
1827         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1828         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1830         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1832         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1833         macros replace the i686 versions for 64-bit mode.
1835         * locale/duplocale.c: Include <string.h>.
1837         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1838         [_LIBC] (category_to_name): Don't define the function.  Instead
1839         define a macro using _nl_category_names.
1841         * locale/xlocale.h (struct __locale_struct): New member `__names'.
1842         * locale/xlocale.c (_nl_C_locobj): Update initializer.
1843         * locale/global-locale.c (_nl_global_locale): Likewise.
1844         * locale/duplocale.c (__duplocale): strdup __names elements.
1845         * locale/freelocale.c (__freelocale): Free __names elements.
1846         * locale/localename.c (_nl_current_names): Variable removed.
1847         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1848         * locale/localeinfo.h (_nl_current_names): Removed decl.
1849         * locale/setlocale.c: Use _nl_global_locale->__names in place of
1850         _nl_current_names throughout.
1852         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1854         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1855         and sys_nerr in the output file.
1857         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1858         * scripts/cpp: Just use the environment variable.
1860         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1861         * libio/tst-mmap-offend.c (do_test): Likewise.
1862         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1863         * libio/tst-mmap-eofsync.c (do_test): Likewise.
1864         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1866         * locale/localename.c: If the current locale is the global locale, use
1867         _nl_current_names; otherwise use the locale object.
1869 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1871         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1872         'm' to enable mmap I/O.
1873         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
1874         former wasn't used (anymore?).
1875         (_IO_FLAGS2_MMAP): New define.
1876         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1877         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1878         _IO_FLAGS2_MMAP bit is set.
1879         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1880         Enable mmap-using mode only if 'm' was set.
1882 2002-08-29  Roland McGrath  <roland@frob.com>
1884         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1886         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1887         Change argument type from int to intptr_t.
1889         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1890         initializer on [! _HURD_THREADVAR_H] (bad kludge).
1891         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1892         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1893         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
1895         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1897         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1899         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1901         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1902         * assert/assert-perr.c: Add libc_hidden_def.
1903         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1905         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1906         found at all.
1907         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
1908         sys_errlist stuff to ...
1909         * sysdeps/unix/sysv/linux/Versions: ... here.
1911         * mach/mach.h: Include <features.h>.
1913 2002-08-29  Roland McGrath  <roland@redhat.com>
1915         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1916         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1917         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1919         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1921         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1922         (norm_add_slashes): alloca -> __alloca
1924 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
1926         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1927         string_malloced, it is unlikely to be set.
1928         Only call free with non-NULL workspace.
1929         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1930         -mcpu=ultrasparc, not only tune for it.
1931         (ASFLAGS*): Set unconditionally.
1933         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1934         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
1935         p_vaddr/p_offset when computing LOADADDR.
1937 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1939         * version.h (VERSION): Bump to 2.2.92.
1941         * time/Makefile (tst-ftime_l-ENV): New variable.
1943         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1945         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1946         <U017A>, <U017D> and <U0179>. Add missing mappings.
1947         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1949         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1950         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
1951         (struct tostruct): Use ACRINDEX as type for link field.
1952         (statuc gmonparam): Likewise for froms.
1953         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1954         kcount and froms.
1955         (write_call_graph): Use correct type for from_index and to_index.
1956         * gmon/mcount.c: Use correct types for frompcindex and toindex
1957         variables.
1958         Patches by Dan Kegel <dank@kegel.com>.
1960         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1961         canonical name.
1963         * time/strptime.c (ISSPACE): New #define.  Use isspace or
1964         __isspace_l.  Replace calls to isspace.
1965         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1967 2002-08-29  Roland McGrath  <roland@redhat.com>
1969         * string/tst-strxfrm.c: Remove __ from function names.
1971 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1973         * include/wchar.h: Declare __mbsrtowcs_l.
1974         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1975         * wcsmbs/mbsrtowcs.c: Add support for compilation with
1976         USE_IN_EXTENDED_LOCALE_MODEL.
1977         * wcsmbs/mbsrtowcs_l: New file.
1978         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
1979         define as static.  Change all uses.
1980         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
1981         Change all callers.
1982         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1983         * time/strftime.c: When translating for the extended locale model
1984         use the _l functions.
1985         * time/Makefile (tests): Add tst-ftime_l.
1986         * time/tst-ftime_l.c: New file.
1988 2002-08-28  Roland McGrath  <roland@redhat.com>
1990         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1991         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1992         from _nl_find_locale ok if for _nl_C_name.
1994         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1995         iterator to refer to each category's _nl_current_LC_FOO symbol, so
1996         we know they are all linked in.
1998         * NEWS: Added 2.2.6 text from 2.2 branch version.
2000         * time/strptime.c (strptime_internal): Remove spurious const.
2002         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
2003         _nl_select_era_entry): Moved to ...
2004         * time/era.c: ... here, new file.
2005         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
2006         Add internal_function to definitions.  Take an additional argument
2007         giving the `struct locale_data *' to use.
2008         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
2009         _nl_parse_alt_digit): Moved to ...
2010         * time/alt_digit.c: ... here, new file.
2011         * time/lc-time-cleanup.c: New file.
2012         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
2013         * locale/localeinfo.h (_nl_postload_time): Remove decl.
2014         (_nl_cleanup_time): Declare it.
2015         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
2016         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
2017         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
2018         * time/strftime.c: Pass locale data to helper functions.
2019         * time/strptime.c: Likewise.
2021         * locale/localeinfo.h (struct locale_data): New member `private'
2022         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
2023         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
2024         * locale/C-collate.c: Update initializer.
2025         * locale/C-identification.c: Likewise.
2026         * locale/C-measurement.c: Likewise.
2027         * locale/C-telephone.c: Likewise.
2028         * locale/C-address.c: Likewise.
2029         * locale/C-name.c: Likewise.
2030         * locale/C-paper.c: Likewise.
2031         * locale/C-time.c: Likewise.
2032         * locale/C-numeric.c: Likewise.
2033         * locale/C-monetary.c: Likewise.
2034         * locale/C-messages.c : Likewise.
2035         * locale/C-ctype.c: Likewise.
2037         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
2038         Redefine this too.
2040 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2042         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
2043         (_rtld_global): Use it.
2045         * sysdeps/gnu/Dist: Remove errlist-compat.c.
2046         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
2047         object directory.  Pass all Versions files to the awk script.
2048         * sysdeps/gnu/errlist-compat.c: Removed.
2049         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
2050         first Versions file in the search path which has them.
2051         Allow multiple errlist symbol versions to have the same count of
2052         errors.
2053         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
2054         of "errlist-compat.c".
2055         * sysdeps/gnu/errlist.c: Regenerated.
2056         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
2057         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
2058         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2059         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
2060         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
2061         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
2062         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
2063         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
2064         ECANCELLED if not defined by kernel headers.
2065         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
2066         already defined by kernel headers.
2067         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
2068         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
2069         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
2070         is a macro.
2071         * Versions.def (GLIBC_2.3) [librt]: Add.
2073         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
2075 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2077         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
2078         missing comma to .type directive.
2080 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2082         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
2083         unconditionally.
2084         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
2085         check.
2086         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
2088 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2090         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
2091         check to close_and_out close.  Replace return NULL statements where
2092         fd might be >= 0 with goto close_and_out.  Close the file descriptor
2093         when it is no longer needed.
2095 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2097         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
2098         string constants.
2099         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2100         * sysdeps/arm/dl-machine.h: Likewise.
2101         * sysdeps/cris/dl-machine.h: Likewise.
2102         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
2103         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
2105 2002-08-28  Roland McGrath  <roland@redhat.com>
2107         * Makeconfig (default_cflags): Revert unintended change.
2109 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2111         * version.h (VERSION): Bump to 2.2.91.
2113         * configure.in: Disable TLS support by default for now.
2115         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
2117         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
2118         warnings.
2120         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
2122         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
2123         fprintf/fwprintf calls.
2125 2002-08-28  Roland McGrath  <roland@redhat.com>
2127         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
2128         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
2130         * locale/setlocale.c: Declare postload functions weak.
2132         * elf/tst-tls1-static.c: New file.
2133         * elf/tst-tls2-static.c: New file.
2134         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
2136         Make uselocale support static linking.
2137         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
2138         This file again just defines _nl_C_locobj.
2139         (_nl_C_locobj): Use a categories.def iterator in the initializer.
2140         * locale/global-locale.c: New file.  Define _nl_global_locale here,
2141         using all weak references in the initializer.
2142         * locale/Makefile (aux): Add global-locale.
2143         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
2144         these unconditional, along with the tsd decl.
2145         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
2146         Define it under these conditions.
2147         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
2148         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
2149         `extern __thread struct locale_data *const *'.
2150         [NL_CURRENT_INDIRECT]
2151         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
2152         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
2153         the thread variable _nl_current_LC_FOO and also a special absolute
2154         symbol _nl_current_LC_FOO_used.
2155         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
2156         Set each _nl_current_LC_FOO symbol to point into the new locale,
2157         using weak references to test if _nl_current_LC_FOO_used was linked in.
2158         * locale/setlocale.c [! SHARED]: Replace this conditional ...
2159         [NL_CURRENT_INDIRECT]: ... with this one.
2160         (_nl_current, _nl_C): Variables removed.
2161         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
2162         weak references to _nl_current_LC_FOO_used.
2163         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
2164         (free_category): New function, broken out of ...
2165         (free_mem): ... here.  Call that.
2166         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
2167         instead of a loop.
2169         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
2170         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
2171         it is already absolute.
2173         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
2174         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
2175         [$(build-static) = yes] (tests-static): New variable.
2176         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
2178 2002-08-26  Christoph Hellwig  <hch@lst.de>
2180         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
2181         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
2183 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2185         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
2187         * sysdeps/s390/Dist: Add bits/link.h.
2189         * sysdeps/sh/Dist: New file.
2191         * sysdeps/ia64/Dist: Add ia64libgcc.S.
2193         * sysdeps/wordsize-32/Dist: New file.
2195         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
2196         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
2197         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
2199         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
2200         sys/personality.h.
2202         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
2203         sparc/dl-brk.S.
2205         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
2207         * sysdeps/unix/bsd/sun/Dist: New file.
2209         * sysdeps/unix/bsd/osf/Dist: New file.
2211         * sysdeps/unix/bsd/hp/Dist: New file.
2213         * sysdeps/unix/arm/Dist: New file.
2215         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
2217         * sysdeps/mach/hurd/Dist: Add set-init.c.
2219         * sysdeps/i386/Dist: Add bits/link.h.
2221         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
2223         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
2225         * locale/Makefile (distribute): Add hashval.h.
2227         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
2229         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
2231         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
2232         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
2233         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
2234         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
2235         implementations.
2236         * libio/stdio.h: Likewise.
2237         * locale/locale.h: Likewise.
2238         * math/math.h: Likewise.
2239         * math/bits/mathcalls.h: Likewise.
2240         * setjmp/setjmp.h: Likewise.
2241         * signal/signal.h: Likewise.
2242         * stdlib/stdlib.h: Likewise.
2243         * string/string.h: Likewise.
2244         * time/time.h: Likewise.
2245         * wcsmbs/wchar.h: Likewise.
2246         * wctype/wctype.h: Likewise.
2248 2002-08-28  Roland McGrath  <roland@redhat.com>
2250         * locale/tst-C-locale.c (run_test): Remove __ from function names.
2252 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2253             Roland McGrath <roland@redhat.com>
2255         * locale/hashval.h (compute_hashval): Use prototype defn.
2256         (hashval_t): New macro, defined to unsigned long int
2257         if not already defined.
2258         (compute_hashval): Return hashval_t instead of unsigned long int.
2259         * locale/loadarchive.c (hashval_t): New macro.
2260         * locale/programs/locarchive.c: Include hashval.h directly instead
2261         of simple-hash.h.
2262         (compute_hashval, hashval_t): Define these macros first.
2263         (insert_name): Use archive_hashval instead of compute_hashval.
2264         (add_locale, delete_locales_from_archive): Likewise.
2266 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2268         * locale/programs/locarchive.c (insert_name): Suppress warnings about
2269         hash collisions if be_quiet.
2271 2002-08-27  Roland McGrath  <roland@redhat.com>
2273         * locale/locale.h (__newlocale, __duplocale, __freelocale,
2274         __uselocale): Don't declare these any more.
2275         * include/locale.h (__uselocale): Declare here instead, using __typeof.
2277         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
2278         and treat it as an EOF return.
2279         * sysdeps/unix/readdir_r.c: Likewise.
2281         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
2282         From Alexandre Oliva <aoliva@redhat.com>.
2283         * sysdeps/gnu/errlist-compat.c: Regenerated.
2285 2002-08-27  Brian Youmans  <3diff@gnu.org>
2287         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
2288         wording at request of copyright holder Stephen Moshier.
2289         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2290         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2291         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2292         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2293         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2294         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2295         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2296         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2297         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2298         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2299         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2300         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2301         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2302         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2304 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2306         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
2307         * ctype/ctype-extn.c (isblank_l): Add weak alias.
2308         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
2309         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
2310         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
2311         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
2312         * wctype/iswctype_l.c (iswctype_l): Likewise.
2314 2002-08-27  Roland McGrath  <roland@redhat.com>
2316         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
2318         * ctype/ctype.h (__exctype_l): Don't declare __ name.
2319         * stdlib/stdlib.h: Don't declare __*_l names.
2320         * include/stdlib.h: Declare them here instead.
2321         * include/string.h: Don't declare __*_l names.
2322         * string/string.h: Declare them here instead.
2323         * time/time.h: Don't declare __*_l names.
2324         * include/time.h: Declare them here instead.
2325         * wcsmbs/wchar.h: Don't declare __*_l names.
2326         * include/wchar.h: Declare them here instead.
2327         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
2328         Don't declare __*_l names.
2329         * include/wctype.h: Declare them here instead.
2330         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
2331         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
2332         * locale/langinfo.h: Don't declare __nl_langinfo_l.
2333         * include/langinfo.h: Declare it here with __typeof.
2335         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
2336         instead, taking an extra __locale_t argument.
2337         * time/Makefile (routines): Add strptime_l.
2338         * time/time.h (__strptime_l, strptime_l): Declare them.
2339         * time/strptime_l.c: New file.
2341         * time/time.h (__strftime_l, strftime_l): Declare them.
2342         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
2343         * time/strftime_l.c: New file.
2344         * time/wcsftime_l.c: New file.
2345         * time/Makefile (routines): Add strftime_l, wcsftime_l.
2346         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
2347         strftime_l, wcsftime_l.
2348         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
2349         or __wcsftime_l instead, taking an extra __locale_t argument.
2351         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
2352         (libc: GLIBC_2.3): ... here.
2354 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
2356         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
2358         * Makefile (distribute): Add LICENSES.
2360         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
2361         sys/debugreg.h.
2363         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
2365         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
2367         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
2369         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
2371         * sysdeps/mach/hurd/alpha/Dist: New file.
2373         * sysdeps/arm/Dist: Add bits/link.h.
2375         * sunrpc/Makefile: Distribute thrsvc.
2377         * stdio-common/Makefile: Remove more left-overs from old stdio.
2379         * include/linewrap.h: Removed.
2381         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
2383         * intl/Makefile (distribute): Add plural-eval.c.
2385 2002-08-27  Roland McGrath  <roland@redhat.com>
2387         * manual/sysinfo.texi (Mount Information): Correct file name to macro
2388         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
2389         Say mtab is in either /var/run or /etc.
2391 2002-08-26  Roland McGrath  <roland@redhat.com>
2393         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
2394         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
2396         * sysdeps/gnu/Versions: New file.
2397         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
2398         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
2399         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
2400         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
2401         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
2402         and _sys_nerr_internal instead of anything else.  Make it include
2403         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
2404         Make it emit some asm magic if [EMIT_ERR_MAX].
2405         * sysdeps/gnu/errlist.c: Regenerated.
2406         * sysdeps/gnu/errlist-compat.awk: New file.
2407         * sysdeps/gnu/errlist-compat.c: New file (generated).
2408         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
2409         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
2410         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
2411         (SYS_ERRLIST, SYS_NERR): Macros removed.
2412         (sys_nerr, _sys_nerr): Remove these weak aliases.
2413         * sysdeps/unix/sysv/linux/errlist.c: File removed.
2414         * sysdeps/unix/sysv/linux/errlist.h: File removed.
2415         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
2417         * include/libc-symbols.h (declare_symbol): New macro.
2418         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
2419         * configure.in: New check to define it.
2420         * configure: Regenerated.
2422 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
2424         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
2425         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
2427         * Make-dist: Remove traces of old stdio.
2428         * Makeconfig: Likewise.
2430         * locale/Makefile (localedef-aux): New variable.  Only md5
2431         assigned to it.  These files are not ddistributed in this directory.
2433         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
2434         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
2435         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
2437         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
2439         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
2440         set h_errno to NO_RECOVERY [PR libc/4360].
2442 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2444         * libio/Makefile (tests): Add bug-fopena+.
2445         * libio/bug-fopena+.c: New file.
2446         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
2447         file for _IO_IS_APPENDING if file isn't opened for reading, too.
2449         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
2451         * locale/xlocale.c: Fix the last change.  The variable still has
2452         to end in _data.
2453         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
2454         (__libc_tsd_set): Add _data prefix to variable name.
2456 2002-08-26  Roland McGrath  <roland@redhat.com>
2458         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
2459         macro with inline function.
2460         (sigset_get_old_mask): Likewise.
2461         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
2462         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2463         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2464         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
2465         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
2466         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
2467         values.
2468         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
2469         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
2471 2002-07-06  Bruno Haible  <bruno@clisp.org>
2473         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
2474         sigset_get_old_mask): Make it work with larger sigset_t.
2475         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
2476         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2477         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2479 2002-08-26  Roland McGrath  <roland@redhat.com>
2481         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
2482         * manual/filesys.texi (File Times): Document lutimes and futimes.
2483         * misc/Makefile (routines): Add them.
2484         * misc/Versions (libc: GLIBC_2.3): Likewise.
2485         * sysdeps/generic/lutimes.c: New file.
2486         * sysdeps/generic/futimes.c: New file.
2487         * sysdeps/mach/hurd/lutimes.c: New file.
2488         * sysdeps/mach/hurd/futimes.c: New file.
2490         * manual/filesys.texi (File Times): Add explicit note about null
2491         pointer argument to utimes.
2493 2002-08-26  Roland McGrath  <roland@frob.com>
2495         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
2496         (__ifreq): Add a cast.  Remove an unused variable.
2498         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
2499         _HURD_THREADVAR_LOCALE.
2501 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
2503         * posix/regexec.c (re_search_stub): Return correct match length
2504         if start != 0.
2505         * posix/bug-regex10.c: New test.
2506         * posix/Makefile (tests): Add bug-regex10.
2508 2002-08-26  Brian Youmans  <3diff@gnu.org>
2510         * COPYING.LIB: Replaced with fresh copy from
2511         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
2512         suggested copying permission notice now says version 2.1 instead
2513         of version 2.
2515         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
2516         from Library GPL.
2517         * crypt/crypt_util.c: Likewise.
2518         * crypt/ufc.c: Likewise.
2519         * elf/dl-conflict.c: Likewise.
2520         * elf/dl-iteratephdr.c: Likewise.
2521         * iconv/iconvconfig.h: Likewise.
2522         * malloc/arena.c: Likewise.
2523         * malloc/hooks.c: Likewise.
2524         * malloc/malloc.c: Likewise.
2525         * posix/glob/Makefile.ami: Likewise.
2526         * posix/glob/Makefile.in: Likewise.
2527         * stdlib/gmp-impl.h: Likewise.
2528         * stdlib/gmp.h: Likewise.
2529         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
2530         * sysdeps/generic/strnlen.c: Likewise.
2531         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
2532         * sysdeps/mach/hurd/recvmsg.c: Likewise.
2533         * sysdeps/mach/hurd/sendmsg.c: Likewise.
2534         * sysdeps/mach/hurd/spawni.c: Likewise.
2535         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
2536         * sysdeps/mach/powerpc/sysdep.h: Likewise.
2537         * sysdeps/mach/powerpc/thread_state.h: Likewise.
2538         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
2539         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
2540         * sysdeps/x86_64/gmp-mparam.h: Likewise.
2542         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
2543         Lesser GPL copying permission notice from 2 to 2.1.
2544         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
2545         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
2546         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2547         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
2548         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2549         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2550         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2551         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2552         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2553         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2554         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2555         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2556         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2557         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2558         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2559         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2560         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2561         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2562         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2563         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2564         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2565         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2566         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2567         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2568         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2569         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2570         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2571         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2572         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2573         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2574         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2575         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2576         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2577         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2578         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2579         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2580         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2581         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2582         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2583         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2584         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2585         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2586         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2587         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2588         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2589         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2590         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2591         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2592         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2593         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2594         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2595         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2596         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2597         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2598         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2600         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
2601         Moshier and Lesser GPL copying permission notice, per license from
2602         Moshier.
2603         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2604         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2605         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2606         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2607         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2608         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2609         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2610         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2611         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2612         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2613         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2614         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2615         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2616         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2618         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
2619         notice, per license from copyright holder Stephen Moshier.
2620         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2621         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2622         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2623         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2624         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2625         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2626         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2627         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2628         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2630 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2632         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
2633         (shared-only-routines): Likewise.
2635 2002-08-26  Roland McGrath  <roland@redhat.com>
2637         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
2638         name of "", store a null pointer instead.
2640         * configure.in (elf): Set to yes for freebsd*, netbsd*.
2641         * configure: Regenerated.
2643         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
2644         Initialize this instead of __libc_tsd_LOCALE_data.
2646         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
2647         ptsname_r to EINVAL.
2649         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
2651         * rt/Makefile: Revert last change, it was inappropriate to presume aio
2652         implementations depend on pthreads.
2653         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
2654         * rt/tst-aio64.c (do_test): Likewise.
2655         * rt/tst-aio2.c (do_test): Likewise.
2656         * rt/tst-aio3.c (do_test): Likewise.
2657         * rt/tst-aio4.c (do_test): Likewise.
2658         * rt/tst-aio5.c (do_test): Likewise.
2659         * rt/tst-aio6.c (do_test): Likewise.
2660         * rt/tst-aio7.c (do_test): Likewise.
2662         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2663         void so as to avoid compiler warnings.
2665         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2666         _IO_wide_data_FD, which is never used here.
2668         * libio/iofread.c
2669         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2670         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2671         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2673         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2674         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2676         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2677         (closelog): Likewise.
2679 2002-07-06  Bruno Haible  <bruno@clisp.org>
2681         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2683         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2684         * sysdeps/unix/alpha/pipe.S: ... here.
2685         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2687         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2689         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2690         * sysdeps/unix/i386/fork.S: Likewise.
2691         * sysdeps/unix/i386/pipe.S: Likewise.
2692         * sysdeps/unix/i386/wait.S: Likewise.
2694         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2695         * sysdeps/unix/arm/fork.S: Likewise.
2697         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2698         arguments.
2699         (DO_CALL): Swap argument order.
2700         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2701         arguments.
2702         (DO_CALL): Swap argument order.
2703         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2704         arguments.
2705         (DO_CALL): Swap argument order.
2706         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2707         arguments.
2708         (DO_CALL): Swap argument order.
2709         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2710         arguments.
2711         (DO_CALL): Swap argument order.
2712         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2713         arguments.
2714         (DO_CALL): Swap argument order.
2715         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2716         arguments.
2717         (DO_CALL): Swap argument order.
2719         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2720         (L): Define right for ELF.
2721         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2722         Now defined in sysdeps/i386/sysdep.h.
2724         * sysdeps/posix/readv.c: Ansify function definition.
2725         * sysdeps/posix/writev.c: Likewise.
2727         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2728         have the same size. Avoid direct cast from size_t to off_t.
2730         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2731         nul byte in entry[n].ut_user.
2732         (simulate_logout): Likewise.
2734         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2735         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2736         existence of corresponding members of 'struct utmp'.
2737         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2738         !_HAVE_UT_TYPE.
2740         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2741         allocate a buffer of at least BUFSIZ bytes, not just of
2742         sizeof (struct dirent).
2744         * sysdeps/generic/glob.c: Include <limits.h>.
2745         (NAME_MAX): Define a fallback.
2746         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2747         stack.
2748         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2749         (main): Allocate enough room for a 'struct dirent64' on the stack.
2750         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2751         'struct dirent'.
2753         * sysdeps/unix/sysv/linux/init-first.c: Don't include
2754         kernel-features.h.
2756         * inet/htontest.c: Include <sys/types.h>.
2758         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2760         * include/sys/sysctl.h: Comment fix.
2762         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2763         _dl_load_lock.
2764         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2766         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2768         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2769         (__getpeername): New alias.
2770         (__getsockname): New alias.
2771         (__socket): New alias.
2773         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2775         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2776         (__fcntl_internal): New alias.
2777         (__profil): New alias.
2779 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2781         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2782         entry was for getaddr* lookup or not.  Add only matching cache
2783         entry.  Change all callers [PR libc/4317].
2785         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2786         finding the read position [PR libc/4265].
2787         * libio/Makefile (tests): Add bug-rewind2.
2788         * libio/bug-rewind2.c: New file.
2790         * libio/bug-rewind.c: Fix creation of temp file.
2792 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2794         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2795         neither SUCCESS nor TRYAGAIN [PR libc/4259].
2796         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2797         to ENOENT if no entry is found.
2798         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2799         failure.
2800         * nis/nss_compat/compat-initgroups.c: Likewise.
2801         * nis/nss_compat/compat-pwd.c: Likewise.
2802         * nis/nss_compat/compat-spwd.c: Likewise.
2803         * nis/nss_nis/nis-alias.c: Likewise.
2804         * nis/nss_nis/nis-ethers.c: Likewise.
2805         * nis/nss_nis/nis-grp.c: Likewise.
2806         * nis/nss_nis/nis-hosts.c: Likewise.
2807         * nis/nss_nis/nis-initgroups.c: Likewise.
2808         * nis/nss_nis/nis-netgrp.c: Likewise.
2809         * nis/nss_nis/nis-network.c: Likewise.
2810         * nis/nss_nis/nis-proto.c: Likewise.
2811         * nis/nss_nis/nis-publickey.c: Likewise.
2812         * nis/nss_nis/nis-pwd.c: Likewise.
2813         * nis/nss_nis/nis-rpc.c: Likewise.
2814         * nis/nss_nis/nis-service.c: Likewise.
2815         * nis/nss_nis/nis-spwd.c: Likewise.
2816         * resolv/nss_dns/dns-host.c: Likewise.
2817         * resolv/nss_dns/dns-network.c: Likewise.
2818         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2819         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2820         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2821         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2822         * nis/nss_nisplus/nisplus-network.c: Likewise.
2823         * nis/nss_nisplus/nisplus-proto.c: Likewise.
2824         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2825         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2826         * nis/nss_nisplus/nisplus-service.c: Likewise.
2827         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2828         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2829         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2830         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2831         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2833         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2834         declaring __restore and __restore_rt as hidden (if possible).
2836 2002-08-25  Roland McGrath  <roland@redhat.com>
2838         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2840         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2841         (getutent_r_file, internal_getut_r): Updated all callers.
2842         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2844 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2846         * locale/programs/locale.c: Don't print aliases for non-existing
2847         locales for 'locale -a'.
2848         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2850 2002-07-19  H.J. Lu  <hjl@gnu.org>
2852         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2854 2002-07-16  H.J. Lu  <hjl@gnu.org>
2856         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2857         sys/personality.h.
2858         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2860 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2862         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2863         not moved ahead of the fputs call.
2864         * elf/tst-tlsmod2.c (in_dso): Likewise.
2865         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2866         * elf/tst-tlsmod4.c (in_dso): Likewise.
2868 2002-08-25  Andreas Schwab  <schwab@suse.de>
2870         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2872 2002-08-25  Roland McGrath  <roland@redhat.com>
2874         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2875         resetting handler, to avoid the possibility of a spurious SIGALRM
2876         delivered to the user's handler.
2877         Reported by Amit D. Chaudhary <amitc@brocade.com>,
2879         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
2880         set -fkeep-inline-functions, which is not needed for the current file.
2882         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2883         (_dl_setup_hash): Add attribute_hidden.
2884         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2885         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2886         (_dl_new_object, _dl_map_object_deps): Likewise.
2887         (_dl_map_object_deps_internal): Remove decl.
2888         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2890         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2891         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2892         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2893         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2894         instead relying on the compiler to produce only GOTOFF variable refs.
2896 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2898         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
2900         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2901         inline to avoid defining it in every file which includes this header.
2903         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2904         defining DONT_USE_BOOTSTRAP_MAP.
2906         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2907         * libio/tst-mmap-setvbuf.c (main): Likewise.
2908         * libio/tst-widetext.c (main): Likewise.
2910         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2911         message.
2912         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2913         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2915         * sysdeps/i386/elf/configure.in: Unconditionally define
2916         PI_STATIC_AND_HIDDEN.
2917         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2918         PI_STATIC_AND_HIDDEN is defined as well.
2919         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2921 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
2923         * sysdeps/ia64/bzero.S: Define __bzero as well.
2925         * locale/programs/charmap.c (charmap_new_char): Don't use
2926         ULONG_MAX as maximum UCS4 value.
2928         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2930         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2932         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2933         * malloc/malloc.c (mALLINFo): Likewise.
2935         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2937         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2938         examining result of _IO_do_flush call.
2940         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2941         Use prec not spec when sizing buffers.
2943         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2944         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2945         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2946         * stdio-common/vfscanf.c (inchar): Likewise.
2947         * misc/efgcvt_r.c (fcvt_r): Likewise.
2948         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2949         * elf/readlib.c (process_file): Likewise.
2950         * elf/sprof.c (load_profdata): Likewise.
2951         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2952         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2953         * locale/programs/charmap.c (charmap_read): Likewise.
2954         * libio/fileops.c: Likewise.
2955         * libio/fmemopen.c: Likewise.
2956         * stdlib/strtod.c: Likewise.
2957         * elf/dl-load.c: Likewise.
2958         * iconv/iconvconfig.c: Likewise.
2959         * iconv/iconv_prog.c (process_block): Likewise.
2960         * elf/rtld.c (dl_main): Likewise.
2962         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2963         macro to calm down the compiler.
2965         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2967         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2969         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2970         placement of errno definition.
2971         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2972         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2973         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2974         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2975         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2977         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2978         from 1024 to 65536, to avoid buffer overrun.
2980 2002-08-16  Paul Eggert  <eggert@twinsun.com>
2982         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2983         from 1024 to 65536, to avoid buffer overrun.
2984         * resolv/res_query.c (MAXPACKET): Likewise.
2986 2002-08-24  Andreas Jaeger  <aj@suse.de>
2988         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2990 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
2992         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2993         two52 locally.
2994         (log2): Likewise.
2995         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2996         Patch by Simon Gee <simong@agile.tv>.
2998         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2999         Prefer reading /proc/stat since it is more uniform across
3000         architectures.
3002         * manual/texinfo.tex: Update to latest official version.
3004         * sysvipc/sys/shm.h: Remove SHMLBA definition.
3005         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
3006         * sysdeps/gnu/bits/shm.h: Likewise.
3007         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
3008         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3009         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
3010         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3011         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3012         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3013         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
3014         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
3015         since this is what the kernel says.
3017         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
3018         since ssize_t is needed as well.  Replace const with __const.
3020 2002-08-23  Roland McGrath  <roland@redhat.com>
3022         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
3023         __malloc_hook, __realloc_hook, __memalign_hook,
3024         __after_morecore_hook): Variable definitions moved to ...
3025         * malloc/malloc.c: ... here, so as to be before all references.
3027         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
3028         global variable reference in an unused asm parameter, to ensure the
3029         compiler has set up the GOT register before we use it.
3031         * malloc/hooks.c: Move variable definitions ahead of uses.
3032         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
3033         initializers that make reference to variables they define.
3035 2002-08-23  Andreas Jaeger  <aj@suse.de>
3037         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
3038         alloca, free, qsort.
3040         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
3042         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
3043         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
3045         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
3046         <hch@lst.de>.
3047         * sysdeps/generic/fgetxattr.c: New file.
3048         * sysdeps/generic/flistxattr.c: New file.
3049         * sysdeps/generic/fremovexattr.c: New file.
3050         * sysdeps/generic/fsetxattr.c: New file.
3051         * sysdeps/generic/getxattr.c: New file.
3052         * sysdeps/generic/listxattr.c: New file.
3053         * sysdeps/generic/lgetxattr.c: New file.
3054         * sysdeps/generic/llistxattr.c: New file.
3055         * sysdeps/generic/lremovexattr.c: New file.
3056         * sysdeps/generic/lsetxattr.c: New file.
3057         * sysdeps/generic/removexattr.c: New file.
3058         * sysdeps/generic/setxattr.c: New file.
3059         * misc/Makefile (headers): Add sys/xattr.h.
3060         (routines): Add *xattr calls.
3061         * misc/Versions: Add *xattr calls with version 2.3.
3062         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
3063         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3064         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3065         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
3066         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
3067         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
3068         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
3069         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3071 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
3073         * sysdeps/powerpc/elf/libc-start.c
3074         (__cache_line_size): Declare.
3075         (__aux_init_cache): New function.
3076         (__libc_start_main): Change type of `auxvec' parameter to
3077         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
3078         __aux_init_cache.
3079         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3080         (__cache_line_size): Declare.
3081         (__aux_init_cache): New function.
3082         (DL_PLATFORM_INIT): Define.
3083         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
3084         value to select the correct stride for dcbz.
3086 2002-08-22  Andreas Jaeger  <aj@suse.de>
3088         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
3089         shmat.
3091 2002-08-22  Roland McGrath  <roland@redhat.com>
3093         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
3094         position indicated by locrectab against file bounds before rounding to
3095         page size.  In mapping loop, always set TO before breaking out of
3096         contiguous range coalescing loop.
3098         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
3099         (or MAP_COPY if available) instead of MAP_SHARED.
3101         * scripts/firstversions.awk: When encountering a version newer than
3102         the specified earliest version, be sure to emit the specified earliest
3103         version first if any renaming of an older version to that has been.
3105 2002-08-21  Roland McGrath  <roland@redhat.com>
3107         * configure.in: Make GCC version check require 3.[2-9]* and no others.
3108         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
3109         (Configuring and compiling): Don't mention older GCC versions any more.
3110         * INSTALL: Regenerated.
3112         * manual/install.texi (Configuring and compiling, Installation,
3113         Running make install, Linux): Linux -> GNU/Linux where appropriate.
3115         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
3116         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
3117         and with noinline otherwise.  Remove hack alloca use to prevent
3118         inlining, we can ask for it explicitly nowadays.
3120         * dlfcn/bug-dlsym1.c: New file.
3121         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
3122         * dlfcn/Makefile (distribute): Add them.
3123         (tests): Add bug-dlsym1 here.
3124         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
3125         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
3126         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
3128 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
3130         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
3131         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
3132         before relocation.
3133         (_dl_start): Don't use local bootstrap_map variable if
3134         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
3135         pass bootstrap_map to _dl_start_final in this case either.  Don't
3136         pass start_time to _dl_start_final ever.
3137         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
3139         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
3140         This cripples the scope lists necessary to search for symbols in
3141         dependencies which are not in the global scope.
3143         * include/setjmp.h (__libc_longjmp): Add declaration.
3145 2002-08-21  Andreas Jaeger  <aj@suse.de>
3147         * sysdeps/x86_64/_mcount.S: Fix assembler.
3149         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
3150         with biarch support.
3152 2002-08-21  Andreas Jaeger  <aj@suse.de>
3154         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
3156         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
3158         * sysdeps/x86_64/machine-gmon.h: New file.
3159         * sysdeps/x86_64/_mcount.S: New file.
3161 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
3163         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
3164         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
3165         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
3166         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
3167         to TL_INIT_TP.  Otherwise pass 1.
3168         * include/link.h (struct link_map): Add l_tls_tp_initialized.
3169         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
3171 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
3173         * locale/programs/localedef.c (add_to_readlist): Error about
3174         circular dependencies only if the locale in question hasn't
3175         been finished.
3176         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
3177         CTYPE_LOCALE to load_locale.
3178         * locale/programs/locfile.c (locfile_read): Don't include
3179         unneeded but available locales in locale_mask.
3181         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
3182         print any messages about enlarging archive.
3184 2002-08-20  Brian Youmans  <3diff@gnu.org>
3186         * manual/contrib.texi: Removed licenses, added acknowledgements
3187         for contributions by Intel, IBM, Craig Metz.
3188         * LICENSES: New file, contains the text of all non-FSF licenses in the
3189         distribution that require putting the notice in the accompanying
3190         documentation.
3191         * README.template, README: Mention LICENSES.
3193         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
3194         new one modelled on the modern BSD license, per recent letter
3195         of permission from CMU.
3196         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
3198         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
3199         from IBM to FSF, per the recent Software Letter.  Changed the
3200         distribution terms from GPL to LGPL.
3202         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
3203         copying permission notice (Lesser GPL), per recent IBM Software Letter.
3204         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
3205         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
3206         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
3207         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
3208         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
3209         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
3210         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
3211         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
3213         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
3214         from IBM to FSF, per the recent Software Letter.  Corrected the
3215         text of the copying permission notice to say Lesser GPL instead
3216         of GPL in warranty disclaimer paragraph.
3217         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
3218         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
3219         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
3220         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
3221         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
3222         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
3223         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
3224         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
3225         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
3226         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
3227         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
3228         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
3229         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
3230         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
3231         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
3232         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
3233         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
3234         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
3235         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
3236         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
3237         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
3239         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
3240         permission notice to say Lesser GPL instead of GPL in warranty
3241         disclaimer paragraph.
3242         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
3243         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3244         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3245         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3246         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3247         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3248         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3249         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3250         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3251         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3252         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
3253         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
3254         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
3255         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
3256         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
3257         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
3258         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
3259         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3260         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3261         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3262         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
3263         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
3264         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
3266 2002-08-20  Roland McGrath  <roland@redhat.com>
3268         Fix ABI compatibility with libc compiled with old tools on powerpc.
3269         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3270         and Jack Howarth <howarth@bromo.med.uc.edu>.
3271         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
3272         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
3273         pass -DHAVE_DOT_HIDDEN for these files.
3274         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
3275         __floatdisf.
3276         * sysdeps/powerpc/divdi3.c: New file.
3277         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
3278         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
3280 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
3282         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
3283         partially overlapping mappings.  Remove unneeded (char *) casts.
3284         Never allow duplication of ranges in mapped areas.
3286 2002-08-20  Roland McGrath  <roland@redhat.com>
3288         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
3289         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
3291 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
3293         * include/unistd.h: Don't hide _exit.
3295         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
3296         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
3297         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
3298         argument 1 to TLS_INIT_TP.
3299         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
3301         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
3303         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
3304         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
3305         memory allocation to...
3306         (allocate_dtv): ...here.  New function.
3307         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
3308         call allocate_dtv instead of _dl_allocate_tls_storage.
3309         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
3310         (_dl_get_tls_static_info): New function.
3311         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
3312         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
3314 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
3316         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
3317         immediately if result == NULL.
3319 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
3321         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
3323 2002-08-18  Roland McGrath  <roland@frob.com>
3325         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
3326         instead of __file_name_split.
3327         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
3329         * sysdeps/mach/hurd/dl-sysdep.c
3330         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
3331         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
3333 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
3335         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
3336         in change before last: MAX -> MIN.
3338 2002-08-15  Roland McGrath  <roland@redhat.com>
3340         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
3341         if seek would go past it.
3342         (mmap_remap_check): If file position is at or past EOF after check,
3343         leave read pointers at EOF and don't seek.
3345         * libio/tst-mmap-offend.c: New file.
3346         * libio/Makefile (tests): Add it.
3348         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
3349         the name as passed, rather than the name in the archive dictionary.
3351 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
3353         * csu/Makefile: Define elide-routines.os not static-only-routines.
3355         * include/sched.h (__clone): Add varargs at the end.
3357         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
3358         case.
3359         (TLS_INIT_HELPER): If defined, use it.
3360         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
3362 2002-08-15  Roland McGrath  <roland@redhat.com>
3364         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
3365         on L->l_prev; it can happen under rtld --verify too.
3367         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
3368         header separately, just map an initial window of 2MB from the file
3369         and remap if that is not large enough to cover the whole header.
3371 2002-08-15  Andreas Jaeger  <aj@suse.de>
3373         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
3374         version 2.3.
3375         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3376         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
3377         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
3378         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
3379         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
3380         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3381         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3382         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
3383         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
3384         Patch by Andreas Gruenbacher <agruen@suse.de>.
3386         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
3388 2002-08-14  Roland McGrath  <roland@redhat.com>
3390         * locale/locarchive.h (struct locale_category_data): Give this name to
3391         the type of locale_data_t's elements.
3392         * locale/programs/locarchive.c (cmpcategorysize): New static function.
3393         (add_locale): Use that to sort the categories by size and put all
3394         those that fit into two pages into the LC_ALL block, instead of
3395         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
3396         (show_archive_content): Detect categories inside LC_ALL block
3397         directly, instead of hard-coding.
3398         (oldlocrecentcmp): Compare just on file locations used.
3400 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
3402         * locale/programs/locarchive.c (struct oldlocrecent): New type.
3403         (oldlocrecentcmp): New function.
3404         (enlarge_archive): Re-add locales in the order they were added
3405         to the archive.
3406         (add_locale): Put all the small locale files together, if the small
3407         locale file block would occupy less pages if page size aligned, align
3408         it.
3409         (show_archive_content): Adjust for locale archives optimized for speed.
3411 2002-08-14  Roland McGrath  <roland@frob.com>
3413         * configure.in: Use "MISSING" as not-found value for MIG.
3414         * sysdeps/mach/configure.in: Fatal if mig not found.
3415         * configure, sysdeps/mach/configure: Regenerated.
3417 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
3419         * locale/loadarchive.c (archfname): Add missing slash.
3421         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
3422         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
3424 2002-08-12  Roland McGrath  <roland@redhat.com>
3426         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
3427         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
3428         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
3429         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
3430         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
3431         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
3432         * sysdeps/generic/waitpid.c: Likewise.
3434         * include/net/if.h: New file.  Use libc_hidden_proto
3435         for if_nametoindex and if_indextoname.
3436         * sysdeps/generic/if_index.c: Add libc_hidden_def.
3437         * sysdeps/mach/hurd/if_index.c: Likewise.
3438         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
3440         * include/grp.h (setgroups): Add libc_hidden_proto.
3441         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
3442         * sysdeps/mach/hurd/setgroups.c: Likewise.
3443         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
3444         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3446 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
3448         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
3449         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
3450         * sysdeps/generic/setegid.c (setegid): Likewise.
3451         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
3452         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
3453         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
3454         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
3455         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
3456         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
3457         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
3458         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
3459         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
3460         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
3461         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
3462         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
3463         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
3465         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
3466         __lxstat_internal, __lxstat64_internal): Remove.
3467         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
3468         Add hidden_proto.
3469         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
3470         Remove INTDEF where present, remove #undef at the beginning.
3471         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
3472         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
3473         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
3474         * sysdeps/generic/xstat.c (__xstat): Likewise.
3475         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
3476         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
3477         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
3478         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
3479         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
3480         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
3481         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
3482         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
3483         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
3484         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
3485         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
3486         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
3487         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
3488         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
3489         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
3490         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
3491         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
3492         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
3493         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
3494         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
3495         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
3496         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
3497         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
3498         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3499         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3500         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3501         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
3502         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
3503         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
3504         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3505         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
3506         * sysdeps/unix/xstat.c (__xstat): Likewise.
3508         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
3509         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
3510         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
3511         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
3512         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
3513         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
3514         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
3516         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
3517         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
3518         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
3519         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
3520         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
3521         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
3522         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
3523         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
3524         Likewise.
3525         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
3526         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
3527         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
3528         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
3529         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
3530         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
3531         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
3532         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
3534         * include/string.h (strcoll): Add libc_hidden_proto.
3535         * string/strcoll.c (strcoll): Add libc_hidden_def.
3537         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
3539 2002-08-11  Philip Blundell  <philb@gnu.org>
3541         * sysdeps/arm/Makefile: New file.
3543 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3545         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
3546         by another '|', end of regex or enclosing ')', clear branch.
3547         * posix/bug-regex9.c: New test.
3548         * posix/Makefile (tests): Add bug-regex9.
3550 2002-08-12  Roland McGrath  <roland@redhat.com>
3552         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
3553         start count condition, use TOTAL instead of variable that was never
3554         set.  Fix outer loop termination condition to TOTAL >= after update.
3556         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
3557         dl_tls_static_align and dl_tls_static_nelem.
3559 2002-08-11  Roland McGrath  <roland@redhat.com>
3561         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
3562         of the TLS macros, otherwise the compiler might not have initialized
3563         the PIC register yet when we use the PLT via asm.
3564         * elf/tst-tlsmod3.c (in_dso2): Likewise.
3565         * elf/tst-tlsmod2.c (in_dso): Likewise.
3567         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
3569         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
3570         Evaluate argument exactly once.  Remove __volatile__ from asm's.
3572         * include/unistd.h: Use libc_hidden_proto for getdomainname
3573         and getlogin_r.
3574         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
3575         * sysdeps/mach/hurd/getdomain.c: Likewise.
3576         * sysdeps/unix/getlogin_r.c: Likewise.
3577         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
3578         * sysdeps/generic/getlogin_r.c: Likewise.
3580         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
3581         * sunrpc/rtime.c: Add libc_hidden_def.
3583         * include/string.h: Use libc_hidden_proto for basename.
3584         * string/basename.c [_LIBC]: Add libc_hidden_def.
3586         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
3588         * locale/loadarchive.c: munmap -> __munmap throughout.
3590         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
3591         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
3592         * sysdeps/generic/gai_strerror.c: Likewise.
3594         * include/sys/errno.h: New file.
3596         * include/signal.h: No libc_hidden_proto for raise,
3597         __libc_current_sigrtmin, __libc_current_sigrtmax.
3598         These need to be overridden by linuxthreads.
3599         * sysdeps/posix/raise.c: Reverted.
3600         * sysdeps/generic/raise.c: Reverted.
3601         * signal/allocrtsig.c: Reverted.
3603         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
3605 2002-08-10  Roland McGrath  <roland@redhat.com>
3607         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
3608         * locale/localeinfo.h: Declare it.
3609         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
3610         current locale if it's not in the file list.
3611         Call _nl_archive_subfreeres.
3613 2002-08-10  Andreas Jaeger  <aj@suse.de>
3615         * sysdeps/i386/strchr.S: Add comment.
3617 2002-08-10  Roland McGrath  <roland@redhat.com>
3619         * include/wchar.h (putwc): Use libc_hidden_proto.
3620         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
3621         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
3622         * stdio-common/dprintf.c: Add libc_hidden_def.
3623         * stdio-common/fprintf.c: Likewise.
3624         * stdio-common/sprintf.c: Likewise.
3625         * stdio-common/sscanf.c: Likewise.
3626         * libio/iofwrite.c: Likewise.
3627         * libio/memstream.c: Likewise.
3628         * libio/putwc.c: Likewise.
3629         * stdio-common/perror.c: Likewise.
3630         * sysdeps/posix/remove.c: Likewise.
3631         * sysdeps/generic/remove.c: Likewise.
3632         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
3633         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
3635 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
3637         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3638         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
3639         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3640         towlower, towupper): Add libc_hidden_weak.
3642         * include/bits/dlfcn.h: New file.
3643         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
3645         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
3646         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
3647         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
3648         * include/pwd.h (_nss_files_parse_pwent): Likewise.
3649         * include/shadow.h (_nss_files_parse_spent): Likewise.
3650         * include/netdb.h (_nss_files_parse_protoent,
3651         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
3652         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
3653         (LINE_PARSER): Use it.
3654         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
3655         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
3657         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
3658         #endif.
3660         * manual/debug.texi (%MENU%): Remove trailing dot.
3661         Reported by <hayastan132@hotmail.com>.
3663         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
3664         aliases.
3665         (lseek): Dummy.
3666         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
3667         Likewise.
3669 2002-08-09  Roland McGrath  <roland@redhat.com>
3671         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
3672         name to find codeset name (if any) and normalize it.  If the
3673         normalized name differs, look up only that in the archive.
3674         * locale/programs/locarchive.c (add_locale_to_archive): If the name
3675         contains a codeset, normalize the codeset store only the normalized
3676         name in the archive.  If not, add an alias containing the locale's
3677         normalized codeset name.  Apply codeset name normalization when
3678         matching entries in the alias file.
3680         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3681         decrement HEAD->namehash_used here.
3682         (add_locale): Only need to insert name string when name_offset != 0.
3684         * locale/programs/localedef.c (options): Add -A/--alias-file.
3685         (alias_file): New variable.
3686         (parse_opt): Grok -A, set that.
3687         * locale/programs/localedef.h: Declare it.
3689         * locale/locarchive.h (struct locrecent): Add `refs' member.
3690         * locale/programs/locarchive.c (insert_name): New function, broken out
3691         of ...
3692         (add_locale_to_archive): ... here.  Call that.
3693         (add_alias): New function.
3694         (add_locale): New static function, add_locale_to_archive renamed.
3695         (add_locale_to_archive): Call that and use add_alias to add an alias
3696         for the name with codeset if the given name lacks it.
3697         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3699         * locale/Makefile (routines): Add loadarchive.
3700         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3701         (_nl_load_locale_from_archive): New function.
3702         * locale/localeinfo.h: Declare it.
3703         * locale/findlocale.c (_nl_find_locale): If using default locale path,
3704         try _nl_load_locale_from_archive first.
3706         * locale/loadlocale.c (_nl_intern_locale_data): New function,
3707         broken out of _nl_load_locale.
3708         (_nl_load_locale): Call that.
3709         * locale/localeinfo.h: Declare it.
3710         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3711         (struct locale_data): Remove unused member `options'.
3712         * locale/findlocale.c (_nl_remove_locale): Update uses.
3713         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3714         * locale/C-collate.c: Update initializer.
3715         * locale/C-identification.c: Likewise.
3716         * locale/C-measurement.c: Likewise.
3717         * locale/C-telephone.c: Likewise.
3718         * locale/C-address.c: Likewise.
3719         * locale/C-name.c: Likewise.
3720         * locale/C-paper.c: Likewise.
3721         * locale/C-time.c: Likewise.
3722         * locale/C-numeric.c: Likewise.
3723         * locale/C-monetary.c: Likewise.
3724         * locale/C-messages.c : Likewise.
3725         * locale/C-ctype.c: Likewise.
3727         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3728         use CHAR_BIT instead of BITSPERBYTE.
3730         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3731         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3732         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3733         (_nl_remove_locale): Likewise.
3734         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3736         * locale/findlocale.c (_nl_default_locale_path): New variable.
3737         (_nl_find_locale): If LOCALE_PATH is null, default to that.
3738         * locale/localeinfo.h: Declare it.
3739         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3740         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
3741         * locale/newlocale.c (__newlocale): Likewise.
3743         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3744         * inet/rexec.c (rexec_af): Add libc_hidden_def.
3745         * sysdeps/generic/morecore.c: Likewise.
3746         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3747         (__libc_current_sigrtmax): Likewise.
3749 2002-08-08  Roland McGrath  <roland@redhat.com>
3751         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3752         * catgets/open_catalog.c (__open_catalog): Likewise.
3754         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3755         from typo INITIAL_NUM_NANES.
3756         (create_archive): Update use.
3758 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3760         * sysdeps/unix/sysv/linux/sigwait.c: New file.
3762 2002-08-08  Roland McGrath  <roland@frob.com>
3764         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3766 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3768         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3769         else and undefine after including wcstol_l.c.
3770         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3772 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3774         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3776 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
3778         * configure.in: Make the test for broken_alias_attribute stricter.
3780 2002-05-24  Robert Love  <rml@tech9.net>
3782         * posix/Makefile (routines): Add sched_getaffinity and
3783         sched_setaffinity.
3784         * posix/sched.h: Add declarations for sched_getaffinity and
3785         sched_setaffinity.
3786         * sysdeps/generic/sched_getaffinity.c: New file.
3787         * sysdeps/generic/sched_setaffinity.c: New file.
3788         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3789         sched_setaffinity.
3791 2002-08-06  Andreas Schwab  <schwab@suse.de>
3793         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3795 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3797         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3798         message.
3800         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3801         It is known to be defined.
3803         * include/string.h: Define index and rindex only if _ISOMAC is not
3804         defined.
3806         * elf/rtld.c: Include <errno.h>.
3807         * sysdeps/generic/libc-tls.c: Likewise.
3809 2002-08-07  Roland McGrath  <roland@redhat.com>
3811         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3812         it internally.
3813         (precsize_aton): Likewise.
3815         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3816         the static symbols added in the last change (doofus is me).
3818         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3819         loop to notice missing categories in a composite name.
3821         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3822         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3823         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3824         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3826 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3828         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3830 2002-08-07  Roland McGrath  <roland@redhat.com>
3832         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3833         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3834         Reported by Jakub Jelinek  <jakub@redhat.com>.
3836 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
3838         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3839         division.
3841 2002-08-06  Roland McGrath  <roland@redhat.com>
3843         * include/getopt.h: Put private decls inside [_GETOPT_H].
3844         Use libc_hidden_proto for getopt_long, getopt_long_only.
3845         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3846         Add libc_hidden_def.
3848         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3849         Define as a macro for __dl_iterate_phdr.
3851         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3852         made static.  Add __ name as a strong alias.
3853         (internal_endnetgrent): Likewise.
3854         (internal_getnetgrent_r): Likewise.
3856         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3857         with no __ prefix.
3858         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3859         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3860         all *_l functions with no __ prefix.
3861         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3862         * ctype/ctype_l.c: Likewise.
3863         * locale/nl_langinfo.c: Likewise.
3864         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3865         * stdlib/stdlib.h [__USE_GNU]: Likewise.
3866         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3867         * wctype/wctype.h [__USE_GNU]: Likewise.
3868         * string/strcoll_l.c (strcoll_l): Define as weak alias.
3869         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3870         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3871         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3872         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3873         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3874         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3875         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3876         (__wcscasecmp_l): Add libc_hidden_def.
3877         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3878         (__wcsncasecmp_l): Add libc_hidden_def.
3879         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3880         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3881         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3882         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3883         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3884         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3885         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3886         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3887         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3888         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3889         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3890         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3891         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3892         * wctype/wctype_l.c (wctype_l) Define as weak alias.
3894 2002-08-05  Roland McGrath  <roland@redhat.com>
3896         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3897         netname2user, host2netname, user2netname, key_gendes.
3898         * sunrpc/netname.c: Add libc_hidden_def.
3899         * sunrpc/key_call.c: Likewise.
3901         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3902         freeaddrinfo.
3903         * inet/getnameinfo.c: Add libc_hidden_def.
3904         * sysdeps/generic/getaddrinfo.c: Likewise.
3905         * sysdeps/posix/getaddrinfo.c: Likewise.
3907         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3908         * wcsmbs/wmemchr.c: Add libc_hidden_def.
3909         * wcsmbs/wmemset.c: Add libc_hidden_def.
3911         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3912         (index, rindex): Define as macros for strchr, strrchr.
3914         * string/envz.c (envz_strip): index -> strchr
3916         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3917         * sunrpc/rpc_prot.c: Add libc_hidden_def.
3919         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3920         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3922         * include/stdlib.h: Use libc_hidden_proto for wctomb.
3923         * stdlib/wctomb.c: Add libc_hidden_def.
3925         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3926         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3927         * resolv/herror.c: Likewise.
3928         * inet/rcmd.c: Add libc_hidden_def.
3929         * inet/ruserpass.c: Likewise.
3930         * inet/getnetgrent_r.c: Likewise.
3932         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3933         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
3934         for svcerr_auth, svcerr_noprog, svcerr_progvers.
3935         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3936         libc_hidden_def.
3937         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3938         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3940         * sysdeps/posix/system.c (do_system): New function, guts broken out of
3941         __libc_system.
3942         (__libc_system): Call it, putting just the line == NULL test here.
3944         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3945         variables work right.
3947         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3948         * elf/dl-close.c (_dl_close): Likewise.
3950         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3951         in6addr_any, in6addr_loopback.  Remove decls for
3952         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3953         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3954         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3955         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3956         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3957         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3958         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3959         in6addr_loopback.
3960         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3962         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3963         ether_aton_r.
3964         * inet/ether_aton_r.c: Add libc_hidden_def.
3965         * inet/ether_ntoa_r.c: Likewise.
3967         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3968         xprt_unregister.
3969         * sunrpc/svc.c: Add libc_hidden_def.
3970         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3971         pmap_set, pmap_unset.
3972         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3973         * sunrpc/pm_getport.c: Likewise.
3974         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3975         * sunrpc/publickey.c: Add libc_hidden_def.
3977 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3979         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
3980         the other memset call in this function.
3982         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3983         at correct index.  Clear BSS region now that memalign is used.
3985 2002-08-05  Roland McGrath  <roland@redhat.com>
3987         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3988         * sysdeps/generic/uname.c: Add libc_hidden_def.
3989         * sysdeps/mach/hurd/uname.c: Likewise.
3991 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
3993         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3994         wcspbrk): Add libc_hidden_proto.
3995         * time/strftime.c (my_strftime): Add libc_hidden_def.
3996         (strftime): Remove libc_hidden_def.
3997         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3998         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3999         * wcsmbs/wcsspn.c (wcsspn): Likewise.
4000         * wcsmbs/wcscmp.c (wcscmp): Likewise.
4001         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
4002         * wcsmbs/wcscoll.c (wcscoll): Likewise.
4004         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
4005         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
4006         __rpc_thread_createerr): Add libc_hidden_proto.
4007         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
4008         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
4009         __rpc_thread_createerr): Add libc_hidden_def.
4011         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
4012         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
4013         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
4014         clnt_perror, clnt_sperror): Add libc_hidden_def.
4015         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
4017         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
4018         libc_hidden_proto.
4019         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
4020         * sunrpc/des_soft.c (des_setparity): Likewise.
4022         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
4023         Add libc_hidden_proto.
4024         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
4025         Add libc_hidden_def.
4027 2002-08-05  Roland McGrath  <roland@redhat.com>
4029         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
4030         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
4031         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
4032         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
4033         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
4034         old data, abandoning the original memory allocated by rtld at startup,
4035         instead of calling realloc normally.
4037 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
4039         * po/fr.po: Update from translation team.
4041 2002-08-04  Roland McGrath  <roland@redhat.com>
4043         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
4044         then generate a dummy module under the given name, obeying the
4045         normal rules for the "caller" field.
4047         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
4048         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
4050         * include/pthread.h: Don't declare __pthread_initialize_minimal as
4051         weak here; we declare it weak or strong in the one place we use it.
4052         * sysdeps/generic/libc-start.c: ... which is here.
4053         Don't make the decl weak if [USE_TLS], since static programs need TLS
4054         setup even when single-threaded.
4056         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
4058         * elf/Makefile (test-srcs): Add $(modules-names) to it.
4059         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
4060         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
4061         all these variables.
4063 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
4065         * include/stdio.h: Don't define macro magic to redirect function
4066         calls if _ISOMAC is defined.
4068         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
4069         ldouble asin tests.
4071 2002-08-04  Roland McGrath  <roland@redhat.com>
4073         * stdlib/lrand48_r.c: Add libc_hidden_def.
4075         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
4076         TCB with __libc_memalign instead of mmap.
4077         (_dl_deallocate_tls): Free it with free instead of munmap.
4079         * Makerules (cpp-srcs-left): When setting this to run
4080         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
4081         words.  Combine the two loops into one on the concatenated list,
4082         including those as well as $(test-srcs).
4084         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
4085         since we align here with optimally minimal waste anyway.
4086         (malloc): Just call that.
4088         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
4089         the right variable.
4091         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
4092         to compute memory location for l_tls_initimage.
4093         * elf/rtld.c (_dl_start): Likewise.
4094         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
4096         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
4097         because the .d file is generated in the non-shared case and
4098         so fails to catch them otherwise.
4100         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
4101         split out of _dl_allocate_tls.
4102         (_dl_allocate_tls_init): Likewise.
4103         (_dl_allocate_tls): Call those.
4104         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
4105         * elf/rtld.c (dl_main): Call them separately instead of calling
4106         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
4107         is finished, so that the initializer data has been relocated before we
4108         copy it into the main thread's TLS block.
4110         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
4111         loop conditions, prevented the last used module from being initialized.
4113 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
4115         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
4116         if glob resp. globfree are not macros.
4117         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
4118         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
4119         Add libc_hidden_ver.
4120         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
4121         libc_hidden_def.
4122         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
4123         instead of libc_hidden_weak.
4124         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
4125         libc_hidden_ver instead of libc_hidden_def.
4126         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
4127         libc_hidden_ver instead of libc_hidden_def.
4128         (wcstoll, wcstoq): Remove libc_hidden_weak.
4129         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
4130         libc_hidden_ver.
4131         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
4132         libc_hidden_ver.
4133         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
4134         libc_hidden_ver.
4135         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
4136         libc_hidden_ver.
4138 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
4140         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
4141         to access _sys_siglist.
4142         * string/strsignal.c: Likewise.
4143         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
4144         * sysdeps/gnu/siglist.c: Likewise.
4145         * sysdeps/unix/siglist.c: Likewise.
4146         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
4148         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
4150         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
4152         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
4153         alias and use it.
4154         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
4156         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
4157         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
4158         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
4160         * include/time.h: Add libc_hidden_proto for __gmtime_r.
4161         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
4163         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
4164         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
4165         and __gconv_get_cache respectively.
4166         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
4167         defined static.  Change all users.
4168         (__gconv_get_cache): New function.
4169         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
4170         (__gconv_get_alias_db): New function.
4171         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
4172         (__conv_modules_db): Likewise.
4173         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
4174         and __gconv_get_alias_db.
4175         * iconv/iconv_prog.c: Use the new functions instead of accessing the
4176         variables.
4178         * include/stdlib.h: Add prototype and libc_hidden_proto for
4179         __default_morecore.
4180         * sysdeps/generic/morecore.c: Include <stdlib.h>.
4182         * malloc/obstack.c: Remove fputs macro.
4184         * malloc/mtrace.c: Remove fopen macro.
4186 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
4188         * manual/debug.texi: Fix spelling to programmatically.
4189         Reported by <hayastan132@hotmail.com>.
4191 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
4193         * include/libio.h: Add libc_hidden_proto for __uflow.
4194         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
4195         fgetpos to _IO_* names.
4196         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
4197         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
4198         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
4199         putwc_unlocked, vswscanf.
4200         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
4201         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
4202         * libio/fseek.c: Likewise.
4203         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
4204         not fopencookie.
4205         * libio/genops.c (__uflow): Add libc_hidden_def.
4206         * libio/iofflush_u.c (fflush_unlocked): Likewise.
4207         * libio/iofgets_u.c (fgets_unlocked): Likewise.
4208         * libio/iofputs_u.c (fputs_unlocked): Likewise.
4209         * libio/iofputws_u.c (fputws_unlocked): Likewise.
4210         * libio/iofread_u.c (fread_unlocked): Likewise.
4211         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
4212         * libio/iovswscanf.c (vswscanf): Likewise.
4213         * libio/putwc_u.c (putwc_unlocked): Likewise.
4214         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
4215         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
4216         * malloc/mtrace.c: Likewise.
4218         * sunrpc/clnt_perr.c: Remove fputs macro.
4219         * sunrpc/svc_simple.c: Likewise.
4220         * sunrpc/svc_tcp.c: Likewise.
4221         * sunrpc/svc_udp.c: Likewise.
4222         * sunrpc/xdr_rec.c: Likewise.
4223         * sunrpc/xdr_ref.c: Likewise.
4225         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
4226         iconv_prog, linereader, and charmap-dir.
4227         * locale/Makefile: Likewise for locale and charmap-dir.
4228         * malloc/Makefile: Likewise for memusagestat.
4229         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
4230         * sunrpc/Makefile: Likewise for rpc_main.
4231         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
4232         * timezone/Makefile: Likewise for zic.
4234         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
4236         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
4237         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
4238         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
4239         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
4240         _dl_close.
4242         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
4243         __wunderflow.
4244         * libio/genops.c (__underflow): Add libc_hidden_def.
4245         * libio/wgenops.c (__wuflow): Likewise.
4246         (__wunderflow): Likewise.
4248         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
4249         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
4251         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
4252         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
4254         * include/string.h: Add libc_hidden_proto for __strverscmp.
4255         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
4257         * include/unistd.h: Add libc_hidden_proto for __sysconf.
4258         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
4259         * sysdeps/posix/sysconf.c: Likewise.
4260         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
4261         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
4263         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
4264         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
4265         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
4266         __iswxdigit_l, __towlower_l, __towupper_l.
4267         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
4268         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
4270         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
4271         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
4272         * sysdeps/mach/hurd/xmknod.c: Likewise.
4273         * sysdeps/unix/xmknod.c: Likewise.
4274         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4275         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
4276         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4278         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
4280 2002-08-03  Roland McGrath  <roland@redhat.com>
4282         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
4283         setpriority.
4284         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
4285         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
4286         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
4287         * sysdeps/mach/hurd/setpriority.c: Likewise.
4288         * sysdeps/mach/hurd/getpriority.c: Likewise.
4289         * sysdeps/generic/setpriority.c: Likewise.
4290         * sysdeps/generic/getpriority.c: Likewise.
4292         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
4293         * malloc/mcheck.c: Add libc_hidden_def.
4295         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
4296         * misc/hsearch_r.c: Add libc_hidden_def.
4298         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
4299         * posix/fnmatch.c: Add libc_hidden_weak.
4301         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
4302         execl, execle, execlp, execvp, getpid, getsid.
4303         * sysdeps/generic/alarm.c: Add libc_hidden_def.
4304         * sysdeps/unix/alarm.c: Likewise.
4305         * posix/confstr.c: Likewise.
4306         * posix/execvp.c: Likewise.
4307         * posix/execlp.c: Likewise.
4308         * posix/execle.c: Likewise.
4309         * posix/execl.c: Likewise.
4310         * sysdeps/generic/getsid.c: Likewise.
4311         * sysdeps/mach/hurd/getsid.c: Likewise.
4312         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
4313         * sysdeps/mach/hurd/getpid.c: Likewise.
4315         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
4316         qecvt_r, qfcvt_r, lrand48_r.
4317         * misc/efgcvt_r.c: Add libc_hidden_def.
4319         * include/wordexp.h: Use libc_hidden_proto for wordfree.
4320         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
4322         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
4323         * locale/nl_langinfo.c: Add libc_hidden_def.
4325         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
4326         * sysdeps/generic/glob.c: Add libc_hidden_def.
4327         * sysdeps/generic/glob64.c: Likewise.
4328         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
4330         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
4332         * elf/Makefile (CFLAGS-vismod2.c): New variable.
4334         * locale/setlocale.c (_nl_current_names): Variable moved ...
4335         * locale/localename.c (_nl_current_names): ... here, new file.
4336         Make it global, with attribute_hidden.
4337         * locale/localeinfo.h: Declare it.
4338         * locale/Makefile (aux): Add localename.
4339         * locale/localename.c (__current_locale_name): New function.
4340         * include/locale.h (__current_locale_name): Declare it.
4341         * intl/dcigettext.c (guess_category_value): Use that instead of
4342         calling setlocale.
4344         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
4345         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
4346         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
4347         * locale/newlocale.c: Add alias to __ name.
4348         * locale/duplocale.c: Likewise.
4349         * locale/freelocale.c: Likewise.
4350         * locale/uselocale.c: New file.
4351         * locale/Makefile (routines): Add it.
4352         * locale/Versions (libc: GLIBC_2.3): New set.
4353         Add newlocale, duplocale, freelocale, uselocale.
4354         (libc: GLIBC_PRIVATE): Add __uselocale.
4356         * locale/localeinfo.h [SHARED]
4357         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
4358         (_NL_CURRENT_DATA): Define using that.
4359         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
4360         (_NL_CURRENT_DEFINE): Define to empty.
4361         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
4362         conditionalized on this.
4363         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
4364         taking initializer of _nl_C_locobj.
4365         [SHARED] (_nl_global_locale): New variable, using that initializer.
4366         (_nl_C_locobj): Use new macro for initialzier.
4367         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
4368         [! SHARED] (CATEGORY_USED): New macro.
4369         [SHARED] (CATEGORY_USED, _nl_C): New macros.
4370         (setdata, setlocale): Use that macro instead of examining _nl_current.
4371         (setdata): Set the slot in _nl_global_locale.
4372         Conditionalize setting of _nl_current on [! SHARED].
4373         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
4374         declaration as an extern.
4375         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
4377         * include/locale.h: Use libc_hidden_proto for setlocale.
4378         * locale/setlocale.c: Add libc_hidden_def.
4380         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
4382         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
4383         * misc/hsearch_r.c: Add libc_hidden_def.
4384         * misc/lsearch.c: Likewise.
4386         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
4387         endttyent.
4388         * misc/getttyent.c: Add libc_hidden_def.
4390         * include/mcheck.h: Use libc_hidden_proto for mcheck.
4391         * malloc/mcheck.c: Add libc_hidden_def.
4393         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
4394         * include/argz.h: Use libc_hidden_proto for argz_delete.
4395         * string/argz-delete.c: Add libc_hidden_def.
4396         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
4398         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
4399         HIDDEN_JUMPTARGET for _exit.
4400         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
4401         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
4402         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
4403         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
4405         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
4406         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
4407         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
4408         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
4410         * include/stdlib.h: Use libc_hidden_proto for abort,
4411         __strtof_internal, __strtod_internal, __strtold_internal,
4412         __strtol_internal, __strtoll_internal, __strtoul_internal,
4413         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
4414         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
4415         __strtoul_l_internal, __strtoull_l_internal.
4416         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
4417         __wcstod_internal, __wcstold_internal, __wcstol_internal,
4418         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
4419         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
4420         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
4421         __wcsncasecmp_l.
4422         * sysdeps/generic/abort.c: Add libc_hidden_def.
4423         * stdlib/strtod.c: Likewise.
4424         * sysdeps/generic/strtol.c: Likewise.
4425         * sysdeps/wordsize-64/strtol.c: Likewise.
4426         * sysdeps/wordsize-64/wcstol.c: Likewise.
4427         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
4429         * include/stdlib.h: Use libc_hidden_proto for qsort.
4430         * stdlib/msort.c: Add libc_hidden_def.
4432         * include/utime.h: Use libc_hidden_proto for utime.
4433         * sysdeps/generic/utime.c: Add libc_hidden_def.
4434         * sysdeps/unix/utime.c: Likewise.
4436         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
4437         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
4438         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
4439         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
4440         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
4442         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
4443         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
4444         and __libc_current_sigrtmax.
4445         * signal/sigismem.c: Add libc_hidden_def.
4446         * signal/sigfillset.c: Likewise.
4447         * signal/sigempty.c: Likewise.
4448         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
4449         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
4450         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
4451         * sysdeps/posix/raise.c: Likewise.
4452         * sysdeps/generic/raise.c: Likewise.
4454 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
4456         * include/string.h: Use libc_hidden_proto for __stpcpy.
4457         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
4458         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
4459         * sysdeps/generic/stpcpy.c: Likewise.
4460         * sysdeps/i386/stpcpy.S: Likewise.
4461         * sysdeps/i386/i586/stpcpy.S: Likewise.
4462         * sysdeps/powerpc/stpcpy.S: Likewise.
4463         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
4464         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
4466         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
4467         __strncasecmp_l, __strdup, __strndup, __strerror_r.
4468         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
4469         libc_hidden_def.
4470         * string/strdup.c (__strdup): Likewise.
4471         * string/strndup.c (__strndup): Likewise.
4472         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
4473         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
4475 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4477         * include/libio.h: New file.
4478         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
4479         * libio/iolibio.h: #include <libio.h>, not "libio.h".
4480         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
4481         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
4482         * sysdeps/unix/common/syscalls.list: Likewise.
4483         * sysdeps/unix/inet/syscalls.list: Likewise.
4484         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
4485         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
4486         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4487         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4488         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4489         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4490         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4491         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4492         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4493         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
4494         * sysdeps/unix/syscalls.list: Likewise.
4496 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4497             Ulrich Drepper  <drepper@redhat.com>
4499         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
4500         the arguments is big enough to cause an overflow.
4502 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
4504         * assert/assert.c: Use hidden_def not INTDEF.
4506 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4508         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
4509         not defined.
4511 2002-08-03  Roland McGrath  <roland@redhat.com>
4513         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
4514         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
4515         verr, verrx.
4516         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
4517         * misc/syslog.c: Add libc_hidden_def.
4518         * misc/err.c: Likewise.
4519         * stdlib/exit.c: Likewise.
4520         * stdlib/bsearch.c: Likewise.
4521         * sysdeps/generic/getenv.c: Likewise.
4523         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
4525         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
4526         libc_hidden_weak for every system call symbol defined.
4528         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
4529         timelocal, localtime, strftime.
4530         * time/asctime.c: Add libc_hidden_def.
4531         * time/mktime.c: Likewise.
4532         * time/localtime.c: Likewise.
4533         * time/strftime.c: Likewise.
4534         * time/strptime.c: Likewise.
4535         * sysdeps/generic/time.c: Likewise.
4536         * sysdeps/unix/time.c: Likewise.
4537         * sysdeps/unix/sysv/i386/time.S: Likewise.
4538         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
4540         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
4541         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
4542         * resolv/inet_ntop.c: Likewise.
4543         * resolv/inet_pton.c: Likewise.
4544         * inet/inet_mkadr.c: Add libc_hidden_def.
4545         * inet/inet_netof.c: Likewise.
4546         * resolv/inet_addr.c: Likewise.
4548         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
4549         clauses from conditionals for now.  Will have to be fixed later
4550         for older compilers.
4552         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
4554 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4556         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
4557         broken alias attribute handling.
4558         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
4560 2002-08-02  Roland McGrath  <roland@frob.com>
4562         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
4563         since it sets the variables we use in a -D switch.
4565 2002-08-02  Roland McGrath  <roland@redhat.com>
4567         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
4568         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
4569         matches long int, not int.
4571         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
4572         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
4573         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4574         * wctype/wctrans.c (wctrans): Likewise.
4575         * wctype/wctype.c (__wctype): Likewise.
4576         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
4578 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4580         * assert/assert.c (__assert_fail): Fix typo in comment.
4582         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
4583         * sunrpc/rpc_thread.c: Define it without static.
4584         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
4586 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4588         * assert/assert.c (__assert_fail): Remove undef.
4589         Replace INTDEF with libc_hidden_def.
4590         * assert/__assert.c (__assert): Remove INTUSE.
4591         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
4592         libc_hidden_weak.
4593         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
4594         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
4595         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
4596         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
4597         libm_hiden_ver): Define.
4598         * include/assert.h (__assert_fail_internal): Remove.
4599         (__assert_fail): Add prototype.  Add hidden_proto.
4600         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
4601         libc_hidden_proto.
4602         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
4603         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
4604         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
4605         Add libc_hidden_proto.
4606         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
4607         __fcntl): Add libc_hidden_proto.  Remove macros.
4608         (__open_internal, __fcntl_internal): Remove.
4609         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
4610         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
4611         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
4612         libc_hiden_proto.
4613         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
4614         libc_hidden_def.
4615         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
4616         Add libc_hidden_def.
4617         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
4618         * sysdeps/generic/open.c (__open): Remove undef.
4619         Add libc_hidden_def.  Remove INTDEF.
4620         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
4621         Add libc_hidden_def.
4622         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
4623         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
4624         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
4625         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4626         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4627         (__libc_fcntl): Add libc_hidden_def.
4628         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
4629         (__open): Remove INTDEF2.  Add libc_hidden_weak.
4630         (__libc_open): Add libc_hidden_def.
4631         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
4632         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
4633         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4634         Add libc_hidden_def.
4635         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
4636         Add libc_hidden_def.
4637         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
4638         undef.
4639         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4640         (__libc_fcntl): Add libc_hidden_def.
4641         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
4642         __getpgid_internal, __chown_internal): Remove.
4643         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
4644         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
4645         __GI___chown): Add.
4646         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
4647         __getpid_internal, __open_internal, __write_internal): Remove.
4648         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
4649         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
4650         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
4651         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
4652         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
4653         Replace INTDEF with libc_hidden_def.
4654         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
4655         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
4656         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
4657         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
4658         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
4659         Add libc_hidden_proto.
4660         * include/sys/poll.h (__poll): Add libc_hidden_proto.
4661         * include/sys/select.h (__select): Likewise.
4662         * include/sys/socket.h (__send): Likewise.
4663         * include/sys/statfs.h (__statfs): Likewise.
4664         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
4665         __getpid, __getpgid, __setpgid, __close, __read, __write,
4666         __getpagesize, __sbrk): Likewise.
4667         (__chown_internal, __dup2_internal, __getpid_internal,
4668         __getpgid_internal, __close_internal, __write_internal,
4669         __getpagesize_internal): Remove.
4670         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
4671         Remove macros.
4672         * include/printf.h (__printf_fp): Add libc_hidden_proto.
4673         * include/sched.h (__sched_setscheduler): Likewise.
4674         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
4675         * include/stdlib.h (__secure_getenv): Likewise.
4676         * include/signal.h (__sigaction, __sigsuspend): Likewise.
4677         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4678         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4679         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4680         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4681         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4682         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4683         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4684         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4685         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4686         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4687         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4688         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4689         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4690         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4691         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4692         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4693         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4694         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4695         * libio/genops.c (__overflow): Add libc_hidden_def.
4696         * libio/iovdprintf.c: Remove libio.h include.
4697         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4698         libc_hidden_weak): Define to nothing if not defined.
4699         (__overflow, __woverflow): Add libc_hidden_proto.
4700         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4701         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4702         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4703         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4704         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4705         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4706         and libc_hidden_def.
4707         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4708         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4709         (__getpgid): Add libc_hidden_proto.
4710         (__bsd_getpgrp): Remove INTUSE.
4711         * resolv/res_init.c (__res_ninit, __res_randomid): Add
4712         libc_hidden_def.
4713         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4714         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4715         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4716         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4717         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4718         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4719         __rpc_thread_createerr): Add libc_hidden_def.
4720         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4721         libc_hidden_def.
4722         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4723         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4724         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4725         * sysdeps/generic/chown.c (__chown): Likewise.
4726         * sysdeps/generic/close.c (__close): Likewise.
4727         * sysdeps/generic/dup2.c (__dup2): Likewise.
4728         * sysdeps/generic/pipe.c (__pipe): Likewise.
4729         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4730         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4731         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4732         * sysdeps/generic/read.c (__libc_read): Likewise.
4733         (__read): Add libc_hidden_weak.
4734         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4735         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4736         * sysdeps/generic/select.c (__select): Likewise.
4737         * sysdeps/generic/send.c (__send): Likewise.
4738         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4739         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4740         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4741         * sysdeps/generic/statfs.c (__statfs): Likewise.
4742         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4743         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4744         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4745         Remove undef and INTDEF.
4746         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4747         * sysdeps/generic/getpid.c (__getpid): Likewise.
4748         * sysdeps/generic/write.c (__libc_write): Likewise.
4749         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4750         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4751         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4752         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4753         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
4754         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4755         Remove undef and INTDEF.
4756         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4757         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4758         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4759         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4760         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4761         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4762         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4763         (__pipe): Add libc_hidden_def.
4764         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4765         libc_hidden_weak.
4766         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4767         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4768         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4769         (__read): Add libc_hidden_weak.
4770         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4771         (__libc_pwrite64): Add libc_hidden_def.
4772         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4773         * sysdeps/mach/hurd/select.c (__select): Likewise.
4774         * sysdeps/mach/hurd/send.c (__send): Likewise.
4775         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4776         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4777         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4778         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4779         * sysdeps/posix/dup2.c: Likewise.
4780         Remove undef and INTDEF.
4781         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4782         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4783         (__pwrite64): Add libc_hidden_weak.
4784         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4785         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4786         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4787         * sysdeps/standalone/close.c (__close): Likewise.
4788         * sysdeps/standalone/write.c (__libc_write): Likewise.
4789         (__write): Add libc_hidden_weak.
4790         * sysdeps/standalone/read.c (__read): Likewise.
4791         (__libc_read): Add libc_hidden_def.
4792         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4793         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4794         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4795         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4796         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4797         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4798         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4799         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4800         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4801         __GI___sigaction): Add.
4802         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4803         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4804         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4805         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4806         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4807         __GI___setpgid): Add.
4808         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4809         Remove undef and INTDEF.
4810         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4811         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4812         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4813         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4814         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4815         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4816         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4817         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4818         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4819         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4820         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4821         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4822         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4823         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4824         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4825         __GI___statfs, __GI___send): Add.
4826         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4827         libc_hidden_ver resp. libc_hidden_def.
4828         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4829         libc_hidden_def.
4830         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4831         Likewise.  Remove undef and INTDEF.
4832         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4833         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4834         __GI___statfs, __GI___send): Add.
4835         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4836         libc_hidden_def.
4837         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4838         Likewise.
4839         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4840         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4841         libc_hidden_ver resp. libc_hidden_def.
4842         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4843         __GI___send): Add.
4844         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4845         Add libc_hidden_weak.
4846         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4847         Add libc_hidden_def.
4848         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4849         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4850         libc_hidden_weak.
4851         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4852         resp. libc_hidden_def.
4853         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4854         libc_hidden_weak.
4855         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
4856         INTDEF.
4857         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4858         Likewise.  Remove undef.
4859         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4860         libc_hidden_weak.
4861         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4862         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4863         libc_hidden_weak.
4864         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4865         libc_hidden_def.
4866         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4867         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4868         Likewise.  Remove undef and INTDEF.
4869         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4870         libc_hidden_def.
4871         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4872         libc_hidden_weak.
4873         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4874         libc_hidden_def.
4875         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4876         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4877         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4878         libc_hidden_weak.
4879         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4880         Add libc_hidden_def.
4881         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4882         __GI___statfs): Add.
4883         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4884         libc_hidden_weak.
4885         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4886         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4887         Remove undef and INTDEF.
4888         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4889         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4890         libc_hidden_def.
4891         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4892         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4893         libc_hidden_weak.
4894         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4895         libc_hidden_def.
4896         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4897         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4898         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4899         Add.
4900         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4901         libc_hidden_def.  Remove undef and INTDEF.
4902         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4903         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4904         libc_hidden_def.
4905         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4906         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4907         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4908         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4909         Remove undef and INTDEF.
4910         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4911         broken visibility attribute handling.
4912         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4914 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4916         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4917         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4919         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4920         previous patch.
4922 2002-06-29  Todd Fries  <todd@openbsd.org>
4924         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4926 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4928         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4930 2002-07-30  Roland McGrath  <roland@redhat.com>
4932         * resolv/resolv.h (_res): Define macro unconditionally.
4933         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4934         * include/resolv.h: ... here.
4935         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4936         as a __thread variable.
4937         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4938         a __thread variable instead of a global.
4939         * resolv/res_data.c [_LIBC]: Don't #undef _res.
4941         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4942         time we test it.
4944         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4946         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4947         decls of memset and memcpy.
4949         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4950         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4952         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4954         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4955         (__libc_tsd_define): Define using __thread.
4957         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4958         (__rpc_thread_variables): Use __libc_tsd_get.
4959         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4960         __rpc_thread_variables, which might allocate what we're about to free.
4962         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4963         thread-local variable.
4964         * resolv/netdb.h (h_errno): Define macro unconditionally.
4965         [_LIBC] (__set_h_errno): Macro moved to ...
4966         * include/netdb.h: ... here.
4967         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4968         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4969         [! _LIBC_REENTRANT]: #undef h_errno here.
4971         * include/errno.h: Protect from multiple inclusion.
4973         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4974         before defining them, since Linux's <linux/posix_types.h> might have
4975         defined them.
4977 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4979         * malloc/malloc.c (public_cALLOc): Check for overflow on
4980         multiplication.
4981         * sunrpc/xdr_array.c (xdr_array): Likewise.
4982         * sunrpc/rpc/types.h (mem_free): Add comment.
4983         Patch by Solar Designer <solar@openwall.com>.
4985 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4987         * sysdeps/unix/sysv/linux/kernel-features.h
4988         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4990 2002-08-01  Roland McGrath  <roland@redhat.com>
4992         * libio/fileops.c (_IO_file_sync_mmap): New function.
4993         (_IO_file_jumps_mmap): Use it.
4994         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
4995         repeat the stat check and resize the mapped buffer as necessary.
4997 2002-07-31  Roland McGrath  <roland@redhat.com>
4999         * libio/fileops.c (decide_maybe_mmap): New static function.
5000         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
5001         mmap the file contents.  Then switch the jump tables to the mmap
5002         tables if it worked, or the vanilla file tables if not.
5003         (_IO_file_underflow_maybe_mmap): New function.
5004         (_IO_file_seekoff_maybe_mmap): New function.
5005         (_IO_file_xsgetn_maybe_mmap): New function.
5006         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
5007         * libio/libioP.h: Declare those.
5008         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
5009         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
5010         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
5011         If the stream is read-only, set its jump tables to those new ones.
5012         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
5013         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
5014         We need the tables set before _IO_file_attach.
5016         * libio/tst-mmap-eofsync.c: New file.
5017         * libio/tst-mmap-fflushsync.c: New file.
5018         * libio/bug-mmap-fflush.c: New file.
5019         * libio/tst-mmap2-eofsync.c: New file.
5020         * libio/Makefile (tests): Add them.
5022         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
5023         _IO_file_underflow_mmap fails, it already set the appropriate bit.
5025 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
5027         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
5028         Declarations moved to <bits/sys_errlist.h>.  Include that file.
5029         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
5030         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
5031         declare sys_errlist and sys_nerr.
5032         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
5033         provide declarations.
5035 2002-07-31  Roland McGrath  <roland@redhat.com>
5037         * elf/rtld.c (dl_main): Fix typo in error message.
5039 2002-07-31  Roland McGrath  <roland@frob.com>
5041         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
5042         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
5043         sysdeps/mach/hurd/dl-sysdep.c change.
5045 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
5047         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
5048         -r`/build/include for kernel headers.
5050         * po/fi.po: New file.
5052 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
5054         * configure.in (static_nss): Set to `yes' if --disable-shared.
5056 2002-07-23  Bruno Haible  <bruno@clisp.org>
5058         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
5059         is set.
5061 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
5063         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
5064         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
5065         arguments.
5067 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
5069         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
5070         alias.
5072 2002-07-21  Bruno Haible  <bruno@clisp.org>
5074         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
5075         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
5076         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
5077         trans_sysdep_tab_offset.
5078         (struct sysdep_segment): New type.
5079         (struct sysdep_string): New type.
5080         (SEGMENTS_END): New macro.
5081         * intl/gettextP.h (struct sysdep_string_desc): New type.
5082         (struct loaded_domain): New fields malloced, n_sysdep_strings,
5083         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
5084         orig_tab, trans_tab, hash_tab to const pointers because they point
5085         into read-only memory.
5086         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
5087         (PRI*): Define fallback values.
5088         (get_sysdep_segment_value): New function.
5089         (_nl_load_domain): Distinguish major and minor revision parts. Add
5090         support for minor revision 1 with system dependent strings.
5091         (_nl_unload_domain): Also free the 'malloced' field.
5092         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
5093         now done in loadmsgcat.c. Add support for system dependent strings.
5095 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
5097         * posix/bug-regex7.c: New file.
5098         * posix/bug-regex8.c: New file.
5099         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
5101 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
5103         * posix/bug-regex4.c (main): Fix typos.
5104         * posix/bug-regex6.c (main): Likewise.
5106 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
5108         * posix/bug-regex6.c (main): Fix warnings.
5110         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
5112         * iconv/iconv_prog.c (main): Improve error message for the cases
5113         where -t and/or -f parameter are missing.
5115 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
5117         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
5118         (re_search): Likewise.
5119         (re_match_2): Likewise.
5120         (re_search_2): Likewise.
5121         (re_search_stub): New function.
5122         (re_search_2_stub): New function.
5123         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
5125 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
5127         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
5128         (re_string_eoi): Use STOP instead of LEN.
5129         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
5130         (re_string_construct): Likewise.
5131         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
5132         * posix/regexec.c (re_search_internal): Add a new argument STOP
5133         so that it can handle the argument STOP of re_search_2 and re_match_2
5134         correctly.
5135         (regexec): Adapt to new I/F of re_search_internal.
5136         (re_search_stub): Likewise.
5138 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
5140         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
5142         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
5144         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
5145         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
5146         of __divdi3.
5148         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
5149         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
5150         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
5151         alias for adjtimex syscall.
5153         * elf/dl-minimal.c: Define __assert_fail_internal.
5154         * assert/assert.c: Likewise.
5155         * include/assert.h: Define __assert_file macro if !SHARED and not
5156         NOT_IN_libc.
5158         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
5159         programs.
5160         * locale/Makefile: Likewise.
5161         * nscd/Makefile: Likewise.
5162         * catgets/Makefile: Likewise.
5164 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5166         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
5167         compute current position.
5169         * stdio-common/tst-fseek.c (main): Improve error messages.
5171         * libio/tst-freopen.c (main): Remove unused variable.
5173         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
5174         succesful seek call.  Simplify error checking.
5176 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
5178         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
5179         * sysdeps/ia64/fpu/libm_support.h: Likewise.
5181 2002-07-19  Roland McGrath  <roland@frob.com>
5183         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
5184         __libc_enable_secure is set.
5186 2002-07-24  Roland McGrath  <roland@frob.com>
5188         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
5189         This implementation supports only IPv4.
5190         * inet/ifaddrs.h: New file.
5191         * sysdeps/generic/ifaddrs.c: New file.
5192         * sysdeps/gnu/ifaddrs.c: New file.
5193         * inet/test-ifaddrs.c: New file.
5194         * inet/Makefile (routines): Add ifaddrs.
5195         (headers): Add ifaddrs.h here.
5196         (tests): Add test-ifaddrs.
5197         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
5199         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
5200         socket call to get an AF_INET socket, instead of using __opensock.
5201         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
5203         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
5204         if not -1 use it instead of calling __opensock.
5205         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
5206         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
5207         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
5209         * sysdeps/mach/hurd/ifreq.h: New file.
5210         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
5211         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
5212         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
5214         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
5215         which gets moved around.  Calculate size of mmap'd buffer instead.
5217 2002-07-24  Philip Blundell  <philb@gnu.org>
5219         * sysdeps/unix/arm/brk.S: Improve schedule.
5220         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
5221         efficient instruction.
5222         (__socket): Optimize return sequence.
5224 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5226         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
5227         sockets on old kernels.
5229 2002-07-22  Philip Blundell  <philb@gnu.org>
5231         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
5232         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
5233         alias.
5235 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5237         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
5238         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
5240         * locale/programs/locarchive.c (add_locale_to_archive): Correct
5241         test to detect duplicate locales.
5243         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
5244         position would be before beginning of file.
5245         (_IO_file_seekoff_mmap): Likewise.
5246         * libio/Makefile (tests): Add bug-fseek.
5247         * libio/bug-fseek.c: New file.
5249         * intl/explodename.c: Remove support for CEN-style locale variables.
5250         It was never used and shouldn't be since it's not portable.
5251         * intl/finddomain.c: Likewise.
5252         * intl/l10nflist.c: Likewise.
5253         * intl/loadinfo.h: Likewise.
5254         * locale/findlocale.c: Likewise.
5256 2002-07-24  Roland McGrath  <roland@frob.com>
5258         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
5259         position, calculate it to take into account an active pushback buffer.
5261         * libio/Makefile (tests): Add bug-ungetc.
5262         * libio/bug-ungetc.c: New file.
5264 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
5266         * sysdeps/generic/libc-tls.c: New file.
5267         * csu/Makefile (routines): Add libc-tls.
5268         (static-only-routines): Add libc-tls.
5269         * elf/dl-support.c (_dl_phdr): New variable.
5270         (_dl_phnum): New variable.
5271         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
5272         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
5273         for !SHARED.  First look through auxiliary vector.  If TLS always
5274         call __pthread_initialize_minimal.
5276         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
5277         in mmap call is never zero.
5279 2002-07-23  Andreas Jaeger  <aj@suse.de>
5281         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
5282         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
5284 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
5286         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
5287         creation and removal of the temp file.
5289         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
5290         file creation.
5291         * test-skeleton.c (create_temp_file): New function.
5293 2002-07-22  Andreas Jaeger  <aj@suse.de>
5295         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
5296         local label.
5298 2002-07-21  Roland McGrath  <roland@frob.com>
5300         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
5301         put -I../include before -I../stdlib so we get the right errno.h et al.
5302         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
5303         (CFLAGS-wcstof.c): Likewise.
5304         (CFLAGS-wcstold.c): Likewise.
5305         (CFLAGS-wcstod_l.c): Likewise.
5306         (CFLAGS-wcstof_l.c): Likewise.
5307         (CFLAGS-wcstold_l.c): Likewise.
5309 2002-07-19  Roland McGrath  <roland@frob.com>
5311         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
5313 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
5315         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
5316         __ASSUME_AT_XID is defined.
5317         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
5318         for 2.4.1 and up.
5319         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
5320         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
5322         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
5323         (CFLAGS-wcstof.c): Likewise.
5324         (CFLAGS-wcstold.c): Likewise.
5325         (CFLAGS-wcstod_l.c): Likewise.
5326         (CFLAGS-wcstof_l.c): Likewise.
5327         (CFLAGS-wcstold_l.c): Likewise.
5329 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
5331         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
5332         __priority_which_t): Always typedef to int for C++.
5334 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
5336         * configure.in: Add test for __thread support in compiler.
5337         * config.h.in: Add HAVE___THREAD.
5338         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
5339         * include/sys/errno.h: Moved to...
5340         * stdlib/sys/errno.h: ...here.  New file.
5341         * stdlib/errno.h: New file.  Moved from...
5342         * include/errno.h: ...here.  Changed into an internal header defining
5343         libc-local things like __set_errno.
5344         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
5345         bits/errno.h.
5346         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
5347         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
5348         either.
5349         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
5350         from...
5351         (_dl_start_final): ...here.  Add code to initialize tls elements from
5352         bootstrap_map.
5353         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
5354         if USE_TLS && HAVE___THREAD.
5355         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
5356         * sysdeps/mach/hurd/bits/errno.h: Likewise.
5357         * sysdeps/standalone/arm/bits/errno.h: Likewise.
5358         * sysdeps/standalone/bits/errno.h: Likewise.
5359         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
5360         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
5361         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
5362         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
5363         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
5364         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
5365         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
5366         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
5367         use GL(dl_rtld_map), use map parameter.
5368         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
5369         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
5370         USE_TLS && HAVE___THREAD.
5371         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
5372         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
5373         TLS code sequence.
5374         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5376         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
5377         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
5378         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
5379         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
5380         * sysdeps/unix/sysv/linux/readv.c: Likewise.
5381         * sysdeps/unix/sysv/linux/writev.c: Likewise.
5383 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
5385         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
5386         MS_INVALIDATE values.
5388 2002-07-17  Andreas Schwab  <schwab@suse.de>
5389             Ulrich Drepper  <drepper@redhat.com>
5391         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
5392         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5393         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5394         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5396 2002-07-01  H.J. Lu  <hjl@gnu.org>
5398         * elf/circleload1.c (load_dso): Call "circlemod1" and check
5399         return value.
5401         * elf/circlemod1.c (circlemod1): Return int.
5402         * elf/circlemod2.c (circlemod2): Likewise.
5403         * elf/circlemod2a.c (circlemod2): Likewise.
5404         * elf/circlemod3.c (circlemod3): Likewise.
5405         (circlemod3a): A new function.
5407 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
5409         * catgets/tst-catgets.c (main): Don't expect results for
5410         untranslated messages.
5412         * glibcbug.in: Fix little typo.  Remove STDIO.
5414         * config.h.in: Fail if __FAST_MATH__ is defined.
5415         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
5416         (CPPFLAGS-test-idouble.c): Likewise.
5417         (CPPFLAGS-test-ildouble.c): Likewise.
5419 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
5421         * intl/tst-gettext.sh: Pass -f option to msgfmt.
5422         * intl/tst-gettext.c: Correctly handle untranslated messages in
5423         positive tests.
5425         * po/de.po: Update from translation team.
5427 2002-07-02  H.J. Lu  <hjl@gnu.org>
5429         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
5430         use ll/sc.
5431         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
5433         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
5434         to 2.4.0 for mips.
5436 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
5438         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
5439         TLS fail if USE_TLS is not defined.
5441         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
5442         and adjust state for seek position.  [PR libc/4070]
5443         * libio/Makefile (tests): Add bug-rewind.
5444         * libio/bug-rewind.c: New file.
5446 2002-07-12  Philip Blundell  <philb@gnu.org>
5448         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
5449         (__backtrace): Use it.
5450         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
5452 2002-07-12  Philip Blundell  <philb@gnu.org>
5454         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
5455         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
5456         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
5457         (elf_machine_rela): Remove unused variable.
5459         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
5460         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
5461         define.
5463 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
5465         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
5467 2002-07-14  Andreas Jaeger  <aj@suse.de>
5469         * sysdeps/x86_64/bits/link.h: Add biarch support.
5471 2002-07-13  Andreas Jaeger  <aj@suse.de>
5473         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
5474         Use correct indices.
5475         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
5477 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5479         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
5480         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
5481         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
5482         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
5483         * sysdeps/s390/s390-32/bits/link.h: Remove.
5484         * sysdeps/s390/s390-64/bits/link.h: Remove.
5485         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
5486         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
5487         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
5488         * sysdeps/s390/bits/wordsize.h: New file.
5489         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
5490         elfclass.h.
5491         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
5492         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
5493         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
5494         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
5495         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
5496         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
5497         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
5498         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
5499         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
5500         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
5501         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
5502         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
5503         resource.h.
5504         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
5505         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
5506         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
5507         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
5508         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
5509         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
5510         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
5511         sigaction.h.
5512         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
5513         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
5514         siginfo.h.
5515         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
5516         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
5517         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
5518         socket.h.
5519         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
5520         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
5521         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
5522         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
5523         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
5524         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
5525         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
5526         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
5527         procfs.h.
5528         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
5529         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
5530         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
5531         ucontext.h.
5532         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
5533         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
5535 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
5537         * Versions.def (libc): Add GLIBC_2.3.
5538         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
5539         * stdlib/canonicalize.c: Add compatibility version for realpath
5540         and make new code available in GLIBC_2.3.
5542 2002-07-06  Bruno Haible  <bruno@clisp.org>
5544         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
5546 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
5548         * resolv/res_hconf.c (_res_hconf_init): Move code into new
5549         function do_init.  Use __libc_once.
5550         (do_init): New function.
5552         * iconvdata/iso8859-11.h: Removed.
5553         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
5554         (distribute): Remove iso8859-11.h.
5555         * iconvdata/tst-tables.sh: Add ISO-8859-11.
5557         * stdio-common/vfscanf.c (inchar): Restore errno from previous
5558         underflow operation if c == (W)EOF.
5560 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5562         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
5563         non-zero, adjust exponent.
5564         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
5565         Remove NO_LONG_DOUBLE aliases.
5566         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
5567         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
5568         (__log1pl): Raise divide by zero and invalid exceptions when needed.
5569         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
5570         1**y and -1**+-Inf.
5571         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
5572         Fix BITS_PER_MP_LIMB 32 extraction.
5573         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
5574         exceptions for qNaNs.
5575         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
5576         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
5577         Raise exceptions when needed.  Don't recurse unnecessarily.
5578         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
5579         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
5580         exceptions for qNaNs.
5581         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
5582         to fix *quo return value sign.
5583         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
5584         case -Inf argument.
5585         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
5587 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5589         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
5590         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
5591         -DNDEBUG.
5593 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5595         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
5596         the result.
5598         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
5599         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
5601         * Versions.def (libthread_db): Add GLIBC_2.3.
5603 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
5605         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
5606         new stream if possible.
5607         * libio/freopen64.c (freopen64): Likewise.
5608         * libio/Makefile (tests): Add tst-freopen.
5609         * libio/tst-freopen.c: New file.
5611 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5613         * libio/stdio.h (obstack_printf): Add format attribute.
5614         (obstack_vprintf): Likewise.
5616 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5618         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
5619         resp. 16 bytes on 32-bit resp. 64-bit platforms.
5620         (re_charset_t, re_string_t): Reorder structure members for 64-bit
5621         architectures.
5623 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5625         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
5626         (init_dfa): ...here.
5628 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5630         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
5631         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
5632         nodes in parse trees.
5633         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
5634         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
5635         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
5636         nodes which can epsilon transit.
5637         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
5638         to IS_EPSILON_NODE macro.
5639         * posix/regexec.c (update_regs): New function to update registers
5640         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
5641         (proceed_next_node): Use the entities of the nodes to determine
5642         whether the node can transit to.
5643         (set_regs): Use update_regs function to update registers.
5645 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5647         * posix/bug-regex4.c (main): Remove duplicate setlocale.
5648         * posix/bug-regex6.c: New file.
5649         * posix/Makefile (tests): Add bug-regex6.
5650         (bug-regex6-ENV): Set LOCPATH.
5652 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5654         * Versions.def [libpthread]: Add GLIBC_2.2.6.
5655         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
5657 2002-07-06  Bruno Haible  <bruno@clisp.org>
5659         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
5661 2002-07-06  Bruno Haible  <bruno@clisp.org>
5663         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
5664         declarations.
5666         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
5668         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
5670         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
5671         not _UTSNAME_H.
5672         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
5674         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
5675         * sysdeps/generic/bits/ustat.h: Likewise.
5677         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5679 2002-07-08  Andreas Jaeger  <aj@suse.de>
5681         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5683 2002-07-08  Andreas Jaeger  <aj@suse.de>
5685         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5687 2002-07-06  Andreas Jaeger  <aj@suse.de>
5689         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5690         * sysdeps/x86_64/fpu/s_copysign.S: New file.
5691         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5692         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5693         * sysdeps/x86_64/fpu/s_finitel.S: New file.
5694         * sysdeps/x86_64/fpu/s_fmax.S: New file.
5695         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5696         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5697         * sysdeps/x86_64/fpu/s_fmin.S: New file.
5698         * sysdeps/x86_64/fpu/s_fminf.S: New file.
5699         * sysdeps/x86_64/fpu/s_fminl.S: New file.
5701 2002-06-05  Brian Youmans <3diff@gnu.org>
5703         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5704         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5705         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5706         * sysdeps/ia64/fpu/e_asin.S: Likewise.
5707         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5708         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5709         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5710         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5711         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5712         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5713         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5714         * sysdeps/ia64/fpu/e_exp.S: Likewise.
5715         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5716         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5717         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5718         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5719         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5720         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5721         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5722         * sysdeps/ia64/fpu/e_log.S: Likewise.
5723         * sysdeps/ia64/fpu/e_logf.S: Likewise.
5724         * sysdeps/ia64/fpu/e_pow.S: Likewise.
5725         * sysdeps/ia64/fpu/e_powf.S: Likewise.
5726         * sysdeps/ia64/fpu/e_powl.S: Likewise.
5727         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5728         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5729         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5730         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5731         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5732         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5733         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5734         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5735         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5736         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5737         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5738         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5739         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5740         * sysdeps/ia64/fpu/libm_error.c: Likewise.
5741         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5742         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5743         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5744         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5745         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5746         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5747         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5748         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5749         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5750         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5751         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5752         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5753         * sysdeps/ia64/fpu/s_logb.S: Likewise.
5754         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5755         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5756         * sysdeps/ia64/fpu/s_modf.S: Likewise.
5757         * sysdeps/ia64/fpu/s_modff.S: Likewise.
5758         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5759         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5760         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5761         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5762         * sysdeps/ia64/fpu/s_rint.S: Likewise.
5763         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5764         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5765         * sysdeps/ia64/fpu/s_round.S: Likewise.
5766         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5767         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5768         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5769         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5770         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5771         * sysdeps/ia64/fpu/s_significand.S: Likewise.
5772         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5773         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5774         * sysdeps/ia64/fpu/s_tan.S: Likewise.
5775         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5776         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5777         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5778         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5779         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5780         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5781         reflect IBM donation of math library to FSF
5782         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5783         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5784         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5785         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5786         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5787         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5788         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5789         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5790         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5791         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5792         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5793         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5794         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5795         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5796         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5797         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5798         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5799         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5800         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5801         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5802         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5803         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5804         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5805         * sysdeps/vax/__longjmp.c: Likewise.
5806         * sysdeps/vax/setjmp.c: Likewise.
5807         * libio/filedoalloc.c: Fixed BSD copying permission notice to
5808         remove advertising clause
5809         * sysdeps/vax/htonl.s: Likewise.
5810         * sysdeps/vax/htons.s: Likewise.
5811         * libio/wfiledoalloc.c: Likewise.
5812         * stdlib/random.c: Likewise.
5813         * stdlib/random_r.c: Likewise.
5814         * sysdeps/mach/sys/reboot.h: Likewise.
5815         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5816         * sysdeps/posix/getaddrinfo.c: Likewise.
5817         * sunrpc/des_impl.c: Updated license permission notice to Lesser
5818         GPL and corrected pointer to point to the correct license.
5820 2002-07-04  Andreas Jaeger  <aj@suse.de>
5822         * scripts/config.guess: New upstream version.
5823         * scripts/config.sub: Likewise.
5825 2002-07-02  Andreas Schwab  <schwab@suse.de>
5827         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5828         in parallel to bumping up the buffer pointer.
5830 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5832         * math/libm-test.inc (acos_test): Add missing L suffix for
5833         expected result.
5834         (cpow_test): Likewise.
5835         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5836         error for acos (0.0625).
5838 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5840         * locale/iso-639.def: Add entry for Ganda.
5841         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5842         definition.
5843         (address_finish): Handle entries with two letter ISO 639 code.
5845         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5846         directory if it existed before.
5847         * iconv/iconvconfig.c: Implement --prefix option.
5849         * math/libm-test.inc (cexp_test): Add missing L suffix for
5850         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
5851         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5852         1.25 i).
5854 2002-05-29  H.J. Lu  <hjl@gnu.org>
5856         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5857         is turned on.
5859 2002-05-28  H.J. Lu  <hjl@gnu.org>
5861         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5862         are not dlopened on the dependency list of a dlopened object.
5864 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5866         * elf/dl-lookup.c (add_dependency): It is not necessary to add
5867         dependencies if they are created between objects which are created
5868         while processing RTLD_NOW for objects loaded as part of the same
5869         dlopen call.
5871 2002-06-14  H.J. Lu  <hjl@gnu.org>
5873         * elf/Makefile (tests): Add circleload1.
5874         (modules-names): Add circlemod1, circlemod2, circlemod3,
5875         circlemod1a, circlemod2a and circlemod3a.
5876         ($(objpfx)circleload1): New target.
5877         ($(objpfx)circleload1.out): Likewise.
5878         ($(objpfx)circlemod1.so): Likewise.
5879         ($(objpfx)circlemod2.so): Likewise.
5880         ($(objpfx)circlemod1a.so): Likewise.
5881         ($(objpfx)circlemod2a.so): Likewise.
5882         * elf/circleload1.c: New file.
5883         * elf/circlemod1.c: New file.
5884         * elf/circlemod1a.c: New file.
5885         * elf/circlemod2.c: New file.
5886         * elf/circlemod2a.c: New file.
5887         * elf/circlemod3.c: New file.
5888         * elf/circlemod3a.c: New file.
5890 2002-06-18  Amos Waterland  <apw@us.ibm.com>
5892         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5893         file descriptor.
5894         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5895         add check for fd not open for writing.
5897         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5898         completed element(s) and do not suspend thread if so.  Patch
5899         heavily modified by drepper.
5901         * rt/tst-aio7.c: New file.  Regression test for problems which the
5902         above three changes fix.
5903         * rt/Makefile (tests): Add tst-aio7.
5905 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
5907         * rt/tst-aio6.c: Fix comment.
5909         * catgets/gencat.c (read_input_file): Handle more than one slash
5910         at end of line correctly [PR libc/3926].
5911         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5913         * catgets/sample.SJIS: Add test case for above bug.
5914         * catgets/test-gencat.c: Adjust test code.
5915         * catgets/test-gencat.sh: Adjust expected results.
5917         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5918         to skip relative relocations.
5919         Patch by Geoff Keating <geoffk@redhat.com>.
5921 2002-05-26  Bruno Haible  <bruno@clisp.org>
5923         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5924         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5925         All callers changed.
5926         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5927         STANDARD_FROM_LOOP_ERR_HANDLER.
5928         (utf8_internal_loop): Likewise.
5929         (ucs2_internal_loop): Likewise.
5930         (internal_ucs2_loop): Perform error handling like in
5931         STANDARD_FROM_LOOP_ERR_HANDLER.
5932         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5933         in STANDARD_FROM_LOOP_ERR_HANDLER.
5934         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5935         handling.
5936         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5937         in STANDARD_FROM_LOOP_ERR_HANDLER.
5938         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5939         handling.
5940         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5941         in STANDARD_FROM_LOOP_ERR_HANDLER.
5942         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5943         handling.
5944         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5945         STANDARD_FROM_LOOP_ERR_HANDLER.
5946         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5947         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5948         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5949         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5950         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5951         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5952         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5953         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5954         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5955         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5956         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5957         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5958         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5959         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5960         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5961         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5962         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5963         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5964         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5965         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5966         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5967         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5968         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5969         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5970         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5971         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5972         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5973         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5974         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
5975         an error, still set result = __GCONV_ILLEGAL_INPUT.
5976         (BODY for TO_LOOP): Likewise.
5977         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5978         STANDARD_FROM_LOOP_ERR_HANDLER.
5979         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5980         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5981         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5982         handling.
5983         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5984         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5985         STANDARD_FROM_LOOP_ERR_HANDLER.
5986         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5987         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5988         STANDARD_FROM_LOOP_ERR_HANDLER.
5989         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5990         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5991         STANDARD_FROM_LOOP_ERR_HANDLER.
5992         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5993         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5994         STANDARD_FROM_LOOP_ERR_HANDLER.
5995         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5996         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5997         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5998         handling.
5999         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6000         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
6001         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
6002         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
6004 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6006         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
6007         labels in assembler instructions.
6009 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
6011         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
6012         not enough content is available.
6013         * libio/tst-eof.c: New file.
6014         * libio/Makefile (tests): Add tst-eof.
6016         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
6017         update atime.
6018         * libio/tst-atime.c: New file.
6019         * libio/Makefile (tests): Add tst-atime.
6021         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
6022         handling of overly long words.
6024 2002-06-25  Andreas Jaeger  <aj@suse.de>
6026         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
6027         to not use 32-bit pc relative relocations.
6028         (elf_machine_dynamic): Likewise.
6030 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
6032         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
6033         (__GETDENTS): Check for failed getdents64 syscall.
6034         * dirent/Makefile (tests): Add bug-readdir1.
6035         * dirent/bug-readdir1.c: New file.
6037 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
6039         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
6040         lookups.
6041         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
6042         code.  Print TLS modid and offset for modules containing PT_TLS
6043         segments.
6045 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
6047         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
6048         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
6049         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
6050         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
6052 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
6054         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
6055         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
6056         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
6057         * nss/getXXent_r.c (NEW, NEW1): Define.
6058         (NEW (REENTRANT_GETNAME)): Strong alias to
6059         INTERNAL (REENTRANT_GETNAME).
6060         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
6062 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
6064         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
6065         (_IO_file_jumps_mmap): Use it.
6066         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
6067         * libio/libioP.h: Remove _IO_wdefault_setbuf and
6068         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
6069         prototype.
6070         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
6071         (_IO_wfile_jumps_mmap): Don't use it anymore.
6072         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
6073         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
6074         _IO_wdefault_setbuf.
6075         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
6076         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
6077         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
6079 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
6081         * libio/Makefile (tests): Add tst-mmap-setvbuf.
6082         * libio/tst-mmap-setvbuf.c: New test.
6084 2002-06-21  Andreas Jaeger  <aj@suse.de>
6086         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
6088 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
6090         * include/unistd.h (__fork_internal): Remove.
6091         (__fork): Don't define to __fork_internal.
6092         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
6093         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
6094         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
6095         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
6096         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
6098 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
6100         * po/hr.po: New file.
6102 2002-06-11  Wolfram Gloger  <wg@malloc.de>
6104         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
6105         Reported by Michael Meissner <meissner@redhat.com>.
6107 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
6109         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
6110         Patch by Hans Boehm <hans_boehm@hp.com>.
6112 2002-06-20  Andreas Jaeger  <aj@suse.de>
6114         * math/libm-test.inc: Use exact values as input parameters,
6115         compute output parameters with 36 digits for 128-bit long doubles.
6116         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
6117         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
6118         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
6120 2002-06-13  Stephen L Moshier  <steve@moshier.net>
6122         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
6123         argument or result is subnormal.
6125 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
6127         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
6128         quotient.
6129         * sysdeps/i386/fpu/s_remquof.S: Likewise.
6130         * sysdeps/i386/fpu/s_remquol.S: Likewise.
6132         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
6134 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
6136         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
6137         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
6138         Reported by Peter A. Buhr.
6140 2002-06-15  Roland McGrath  <roland@frob.com>
6142         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
6143         warning.
6145         * sysdeps/mach/hurd/getcwd.c
6146         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
6148         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
6149         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
6151         * sysdeps/alpha/divrem.h: Use local label instead of global one for
6152         jump to local subroutine.
6154 2002-06-14  Roland McGrath  <roland@frob.com>
6156         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
6157         * sysdeps/mach/hurd/Makeconfig: ... here.
6159 2002-06-13  Andreas Schwab  <schwab@suse.de>
6161         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
6162         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6163         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
6165 2002-06-13  Roland McGrath  <roland@frob.com>
6167         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
6168         * hurd/hurdstartup.c (_hurd_startup): Likewise.
6169         Use intptr_t instead of int for argc in stack layout.
6170         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
6171         (_dl_init_first): Likewise.
6172         (_hurd_stack_setup): Likewise.
6173         (init1): Add a cast.
6174         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
6176         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
6177         argument to pfinet_siocgifconf RPC.
6179 2002-06-13  Andreas Schwab  <schwab@suse.de>
6181         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
6182         expansion order.
6184 2002-06-12  Roland McGrath  <roland@frob.com>
6186         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
6187         if already defined.
6188         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
6189         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
6191 2002-06-11  Roland McGrath  <roland@frob.com>
6193         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
6194         file on [!RTLD_STAT64].
6195         * sysdeps/mach/hurd/fxstat64.c: Likewise.
6197         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
6198         (__fdopen): Use INTUSE.
6199         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
6201         * stdio-common/tmpfile64.c: File removed.
6202         * sysdeps/generic/tmpfile64.c: New file.
6203         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
6204         if not already defined.
6205         (tmpfile): Use it in place of __GT_FILE.
6207         * include/unistd.h: Declare __chown_internal.
6209         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
6210         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
6212 2002-06-09  Roland McGrath  <roland@frob.com>
6214         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
6215         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
6216         value of HURD_INTERFACE_VERSION >= 20020609.
6217         * sysdeps/mach/hurd/configure: Regenerated.
6218         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
6219         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
6220         convert a struct stat64 into a struct stat and return 0 or -1
6221         with errno set to EOVERFLOW.
6222         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
6223         for struct statfs64 to struct statfs.
6224         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
6225         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
6226         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
6227         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
6228         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
6229         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
6230         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
6231         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
6232         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
6233         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
6234         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
6235         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
6236         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
6237         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
6238         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
6239         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
6240         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
6241         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
6242         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
6243         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
6244         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
6245         Use struct stat64 for io_stat argument.
6246         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
6247         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
6248         to io_seek.
6249         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
6250         * hurd/fd-write.c (_hurd_fd_write): Likewise.
6251         * hurd/hurd/fd.h: Update decls.
6252         * sysdeps/mach/hurd/getcwd.c
6253         (_hurd_canonicalize_directory_name_internal): Use ino64_t
6254         and struct dirent64.
6255         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
6256         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
6257         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
6258         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
6260 2002-06-08  Roland McGrath  <roland@frob.com>
6262         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
6263         instead of unsigned long int for __allocation and __size members.
6265 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
6267         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
6268         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
6269         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
6270         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
6272 2002-06-07  Roland McGrath  <roland@frob.com>
6274         * sysdeps/mach/hurd/bits/environments.h: File removed.
6276 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
6278         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
6279         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
6280         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
6281         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
6282         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
6283         (sendfile64): Likewise.
6284         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
6285         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
6286         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
6287         Likewise.
6288         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
6290         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
6291         already defined.
6293 2002-06-04  Bruno Haible  <bruno@clisp.org>
6295         * sysdeps/cris/stackinfo.h: New file.
6297         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
6298         to an integer type before performing bit operations on it.
6300 2002-06-05  Roland McGrath  <roland@frob.com>
6302         * sysdeps/generic/sendfile.c: Include <errno.h>.
6303         * sysdeps/generic/sendfile64.c: Likewise.
6305         * io/Makefile (routines): Add sendfile and sendfile64.
6306         (headers): Add sys/sendfile.h to the list.
6307         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
6308         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
6309         * io/sys/sendfile.h: ... here.
6310         * sysdeps/generic/sendfile.c: New file.
6311         * sysdeps/generic/sendfile64.c: New file.
6313         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
6314         Move sendfile, sendfile64 to ...
6315         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
6316         * sysdeps/mach/hurd/sendfile.c: New file.
6317         * sysdeps/mach/hurd/sendfile64.c: New file.
6319         * sysdeps/mach/nanosleep.c: New file.
6321 2002-06-04  Roland McGrath  <roland@frob.com>
6323         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
6324         * sysdeps/alpha/elf/configure: New file (generated).
6326 2002-06-02  Roland McGrath  <roland@frob.com>
6328         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
6330 2002-06-01  Roland McGrath  <roland@frob.com>
6332         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
6333         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
6335 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
6337         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
6338         Add nsmap.
6339         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
6340         Remove nstimes setting.
6341         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
6342         * resolv/res_send.c (res_nsend): Don't close unconditionally if
6343         there is mix of IPv6 and IPv4 nameservers.
6344         Use nsmap array to find free slots and preserve nameserver ordering.
6345         Fix RES_ROTATE.
6347 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
6349         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
6350         use this header with LFS.
6352         * po/sk.po: Update from translation team.
6354 2002-05-28  Andreas Schwab  <schwab@suse.de>
6356         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
6357         message when finding object of wrong class.
6359 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
6361         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
6362         Patch by <radu@netsoft.ro>.
6364 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
6366         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
6367         Add readahead.
6368         * sysdeps/unix/sysv/linux/readahead.c: New file.
6369         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
6370         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
6371         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
6372         Add sendfile64 alias to sendfile syscall.
6373         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6374         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6375         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6376         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
6377         syscall.
6379         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
6380         special section for PIC register loading.
6381         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
6383         * config.h.in: Define HAVE_HIDDEN.
6384         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
6386         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
6388 2002-05-28  Roland McGrath  <roland@frob.com>
6390         * sysdeps/mach/alpha/setfpucw.c: New file.
6392 2002-05-26  Roland McGrath  <roland@frob.com>
6394         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
6395         Use integer_t instead of int for IOC_VOID case.
6397 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
6399         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
6401 2002-05-26  Bruno Haible  <bruno@clisp.org>
6403         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
6404         end of the ISO-8859-7 from idx table.
6406 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
6408         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
6410 2002-05-24  David S. Miller  <davem@redhat.com>
6412         * string/bits/string2.h (memset): Do not try to optimize when
6413         not _STRING_ARCH_unaligned if GCC will do the right thing.
6415 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
6417         * posix/regex.c: Define `inline' as a macro into nothing for the
6418         compilers which lack the keyword.
6419         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
6420         for the compatibility of gawk.
6421         * posix/regcomp.c: Add fake implementation of isblank() for the
6422         environments which lack the function.
6423         Don't use free_charset() in case of non-i18n envs.
6424         (build_range_exp): Don't use i18n related code in case of non-i18n
6425         envs.
6426         (build_collating_symbol): Likewise.
6427         (build_equiv_class): Likewise.
6428         (build_charclass): Likewise.
6429         (re_compile_fastmap_iter): Likewise.
6430         (parse_bracket_exp): Likewise.
6431         (build_word_op): Likewise.
6432         (regfree): Don't use free_charset() in case of non-i18n envs.
6433         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
6434         re_token_type_t in case of non-i18n envs.
6435         Don't define re_charset_t in case of non-i18n envs.
6436         Change the type of wcs of re_string_t from wchar_t to wint_t,
6437         since we store also WEOF.
6438         * posix/regex_internal.c: (re_string_realloc_buffers): Change
6439         the type of wcs of re_string_t from wchar_t to wint_t.
6440         (re_string_reconstruct): Likewise.
6441         (create_ci_newstate): Don't use i18n related code in case of
6442         non-i18n envs.
6443         (create_cd_newstate): Likewise.
6445 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
6447         * iconv/loop.c: Fix typo.
6449 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
6451         * inet/ether_line.c (ether_line): Fix a typo causing only
6452         lower 4 bits of each ethernet address byte being assigned.
6453         Don't modify what line points to.
6454         * inet/tst-ether_aton.c (main): Add ether_line tests.
6456 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
6458         * manual/filesys.texi: Don't make readlink example leak memory
6459         when readlink fails.
6461 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
6463         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
6464         some more security checks.
6466 2002-05-17  David S. Miller  <davem@redhat.com>
6468         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
6470 2002-05-16  David S. Miller  <davem@redhat.com>
6472         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
6473         (elf_machine_dynamic): Use it to force PIC register to be loaded.
6474         (elf_machine_load_address): Likewise.
6475         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
6477         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
6478         is unaligned, do not forget to fully initialize %g1 magic value.
6480         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
6481         register definitions and provide 32-bit variants of structures
6482         during 64-bit builds.
6484         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
6485         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
6486         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
6487         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
6488         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
6489         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
6490         Do not clear implicit one bit here, it must be done post-rounding.
6491         Only pad to the left using left shift if value uses less than the
6492         available fractional bits.
6494 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6496         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
6497         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
6498         (shared-only-routines): Likewise.
6499         * sysdeps/powerpc/libgcc-compat.c: New file.
6500         * sysdeps/wordsize-32/cmpdi2.c: Removed.
6501         * sysdeps/wordsize-32/fixdfdi.c: Removed.
6502         * sysdeps/wordsize-32/fixsfdi.c: Removed.
6503         * sysdeps/wordsize-32/shdi3.c: Removed.
6505 2002-05-16  Bruno Haible  <bruno@clisp.org>
6507         * MakeTAGS (libc.pot): Don't sort the output.
6508         * po/header.pot: Update to match xgettext 0.11 output.
6510 2002-05-16  Bruno Haible  <bruno@clisp.org>
6512         * MakeTAGS (subdirs): Remove duplicates.
6514 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
6516         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
6517         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
6518         alias.
6520 2002-05-19  Andreas Jaeger  <aj@suse.de>
6522         * sysdeps/unix/sysv/linux/configure.in: Warn against an
6523         installation in /usr/local.
6525 2002-05-16  Bruno Haible  <bruno@clisp.org>
6527         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
6528         string as argument of #error.
6530 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
6532         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
6533         don't define static.  Remove old __realpath function.  TC1 of
6534         POSIX 2001 will allow the second parameter to be NULL.
6535         * stdlib/test-canon.c: Comment out test for NULL as second
6536         parameter of realpath.
6538         * time/offtime.c (__offtime): Set errno if overflow is detected.
6540         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
6541         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
6542         dl-brk and dl-sbrk.
6544         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
6545         (fdimf): Likewise.
6547 2002-05-15  Roland McGrath  <roland@frob.com>
6549         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
6551 2002-05-12  Bruno Haible  <bruno@clisp.org>
6553         * iconvdata/testdata/EUC-JISX0213: New file.
6554         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
6555         * iconvdata/testdata/SHIFT_JISX0213: New file.
6556         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
6557         * iconvdata/testdata/ISO-2022-JP-3: New file.
6558         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
6559         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
6560         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
6561         contains comments indicating precomposed characters.
6563 2002-04-21  Bruno Haible  <bruno@clisp.org>
6565         * iconvdata/iso-2022-jp-3.c: New file.
6566         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
6567         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
6568         (LDFLAGS-ISO-2022-JP-3.so): New variable.
6569         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
6570         (distribute): Add iso-2022-jp-3.c.
6572 2002-05-12  Bruno Haible  <bruno@clisp.org>
6574         * iconvdata/tst-table-to.c (main): Restore handling of
6575         transliterations, broken by last patch.
6577 2002-05-12  Bruno Haible  <bruno@clisp.org>
6579         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
6581 2002-05-12  Bruno Haible  <bruno@clisp.org>
6583         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
6584         when there is not enough room in the output buffer.
6585         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
6587 2002-04-20  Bruno Haible  <bruno@clisp.org>
6589         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
6590         macros.
6591         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6592         Also make this macro work if FROM_DIRECTION evaluates to 0.
6593         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6594         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
6595         of consume_incomplete.
6596         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6597         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
6598         4, not 8.
6599         * iconvdata/cp1258.c: Likewise.
6600         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6601         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
6602         not 2.
6603         * iconvdata/ibm933.c: Likewise.
6604         * iconvdata/ibm935.c: Likewise.
6605         * iconvdata/ibm937.c: Likewise.
6606         * iconvdata/ibm939.c: Likewise.
6607         * iconvdata/iso-2022-cn.c: Define
6608         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6609         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
6610         * iconvdata/iso-2022-cn-ext.c: Likewise.
6611         * iconvdata/iso-2022-jp.c: Define
6612         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6613         {MIN,MAX}_NEEDED_{FROM,TO}.
6614         * iconvdata/tcvn5712-1.c: Define
6615         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6616         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
6617         * iconvdata/euc-jisx0213.c: Define
6618         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6619         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
6620         * iconvdata/shift_jisx0213.c: Likewise.
6622 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6624         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
6625         shdi3, fixdfdi, fixsfdi in csu dir.
6626         (shared-only-routines): Likewise.
6627         * sysdeps/wordsize-32/cmpdi2.c: New file.
6628         * sysdeps/wordsize-32/shdi3.c: New file.
6629         * sysdeps/wordsize-32/fixdfdi.c: New file.
6630         * sysdeps/wordsize-32/fixsfdi.c: New file.
6631         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
6632         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
6633         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
6635         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
6636         Only use va_arg if the argument will be used [PR libc/3259].
6638 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
6640         * catgets/catgets.c (catopen): Free buffer if internal catalog
6641         open fails.
6643 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6645         * debug/xtrace.sh: Make more robust.  For realtime tracking use
6646         non-buffering methods.
6647         * debug/pcprofiledump.c: Implement -u option.
6648         Patch by Roger Luethi <rl@hellgate.ch>.
6650 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
6652         * include/netinet/in.h (bindresvport_internal): Add prototype.
6653         * include/rpc/auth.h  (authunix_create_internal,
6654         authunix_create_default_internal, authnone_create_internal,
6655         authdes_pk_create_internal): Add prototypes.
6656         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
6657         clntudp_create_internal, clntudp_bufcreate_internal,
6658         clntunix_create_internal): Add prototypes.
6659         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
6660         svc_getreq_internal, svc_getreq_common_internal,
6661         svc_getreqset_internal, svc_getreq_poll_internal,
6662         svc_register_internal, svc_unregister_internal,
6663         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
6664         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
6665         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
6666         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
6667         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
6668         * inet/rcmd.c (rcmd_af): Use __listen.
6669         (rresvport_af): Use __bind.
6670         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
6671         authunix_create, authunix_create_default, authnone_create,
6672         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
6673         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
6674         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
6675         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
6676         _authenticate, add INTDEF after such function definitions.
6677         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6678         __setsockopt, __getsockname instead of non-__ variants.
6679         * sunrpc/pmap_rmt.c: Likewise.
6680         * sunrpc/rtime.c: Likewise.
6681         * sunrpc/svc_udp.c: Likewise.
6682         * sunrpc/clnt_unix.c: Likewise.
6683         * sunrpc/svc_unix.c: Likewise.
6684         * sunrpc/bindrsvprt.c: Likewise.
6685         * sunrpc/svc_tcp.c: Likewise.
6686         * sunrpc/auth_none.c: Likewise.
6687         * sunrpc/clnt_raw.c: Likewise.
6688         * sunrpc/clnt_tcp.c: Likewise.
6689         * sunrpc/auth_unix.c: Likewise.
6690         * sunrpc/key_call.c: Likewise.
6691         * sunrpc/clnt_gen.c: Likewise.
6692         * sunrpc/pm_getmaps.c: Likewise.
6693         * sunrpc/clnt_simp.c: Likewise.
6694         * sunrpc/pmap_clnt.c: Likewise.
6695         * sunrpc/svc_run.c: Likewise.
6696         * sunrpc/svc.c: Likewise.
6697         * sunrpc/svc_simple.c: Likewise.
6698         * sunrpc/pm_getport.c: Likewise.
6699         * sunrpc/auth_des.c: Likewise.
6700         * sunrpc/svc_auth.c: Likewise.
6701         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6702         __register_frame_info_table_bases, __deregister_frame_info_bases):
6703         Add INTDEF.
6704         (__register_frame_info_bases_internal,
6705         __register_frame_info_table_bases_internal,
6706         __deregister_frame_info_bases_internal): Add prototypes.
6707         (__register_frame_info, __register_frame): Use INTUSE in call to
6708         __register_frame_info_bases.
6709         (__register_frame_info_table): Similarly.
6710         (__deregister_frame_info, __deregister_frame): Similarly.
6711         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6712         sendto as weak alias.
6713         * sysdeps/mach/hurd/sendto.c: Likewise.
6714         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6715         recvfrom as weak alias.
6716         * sysdeps/mach/hurd/recvfrom.c: Likewise.
6717         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6718         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6719         recvmsg as weak alias.
6720         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6721         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6722         sendmsg as weak alias.
6723         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6724         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6725         setsockopt, add setsockopt as weak alias.
6726         * sysdeps/mach/hurd/setsockopt.c: Likewise.
6727         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6728         weak alias.
6729         * sysdeps/mach/hurd/bind.c: Likewise.
6730         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6731         as weak alias.
6732         * sysdeps/mach/hurd/listen.c: Likewise.
6733         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6734         getsockname, add getsockname as weak alias.
6735         * sysdeps/mach/hurd/getsockname.c: Likewise.
6736         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6737         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6738         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6739         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6740         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6741         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6742         Add aliases.
6743         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6744         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6745         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6746         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6747         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6748         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6749         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6750         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6751         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6752         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6753         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6754         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6756 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6758         * locale/programs/localedef.h (show_archive_content): Add verbose
6759         argument.
6760         * locale/programs/localedef.c (main): Adjust caller.
6761         * locale/programs/locarchive.c (struct nameent, struct dataent): New
6762         types.
6763         (nameentcmp, dataentcmp): New functions.
6764         (xstrcmp): Remove.
6765         (show_archive_content): Print verbose listing with --list-archive -v.
6767 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6769         * locale/programs/locarchive.c (open_archive): Take extra argument
6770         readonly.  If true open file with O_RDONLY and don't create the
6771         archive if it doesn't exist.
6772         Adapt all callers.
6773         (close_archive): Don't do anything if fd element is -1.
6774         * locale/programs/localedef.h (open_archive): Adjust prototype.
6775         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6776         call.
6778         * malloc/malloc.c (__posix_memalign): Correct check for size of
6779         alignment value [PR libc/3444].
6781         * include/stdio.h: Remove references to old stdio implementation.
6783         * libio/Makefile (bug-ungetwc2-ENV): Define.
6785 2002-05-13  Roland McGrath  <roland@frob.com>
6787         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6789         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6791 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
6793         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6794         Allocate three, not two, more than LEN when appending '/.'.
6795         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
6796         if NAME ends with '/.' if it is shorter than 2 chars.
6798 2002-05-12  Roland McGrath  <roland@frob.com>
6800         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6801         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6803         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6804         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6806 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6808         * sysdeps/ia64/Makefile: Remove extra endif.
6809         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6811 2002-05-10  Andreas Schwab  <schwab@suse.de>
6813         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6815 2002-05-09  Andreas Jaeger  <aj@suse.de>
6817         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6818         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6819         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6821         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6822         * sysdeps/wordsize-64/glob.c: ...here.
6823         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6824         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6825         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6827 2002-05-08  Roland McGrath  <roland@frob.com>
6829         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6830         O_NOTRANS flag in "." lookup.
6832 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
6834         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6836 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
6838         * locale/duplocale.c (__duplocale): Update special members only
6839         when allocation succeeded.
6841 2002-05-03  Roland McGrath  <roland@frob.com>
6843         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6844         we can only build libc.so.0.3(GLIBC_2.2.6) now.
6846 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
6848         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6849         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6850         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6851         * sysdeps/ia64/ia64libgcc.S: New file.
6853 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
6855         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6857         * malloc/memusage.c: Distinguish anonymous mmap.
6859 2002-05-01  Roland McGrath  <roland@frob.com>
6861         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6862         and use INTDEF on it.
6863         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6865         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6867         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6869 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
6871         * malloc/memusage.c: Add support for tracking mmap & friends.
6872         * malloc/memusage.sh: Implement -m/--mmap option.
6874 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6876         * locale/programs/locarchive.c (create_archive): Add archivefname
6877         argument, create fname from it.
6878         (enlarge_archive): Honour output_prefix.
6879         (open_archive): Likewise.
6881 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6883         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6884         too many stpcpy macros.
6886 2002-04-26  Bruno Haible  <bruno@clisp.org>
6888         * locale/programs/ld-collate.c (collate_read): Cast first argument
6889         for "%.*s" to int.
6891 2002-04-26  Bruno Haible  <bruno@clisp.org>
6893         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6894         __dcngettext_internal): New declarations.
6895         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6896         attribute declarations.
6898 2002-04-30  Roland McGrath  <roland@frob.com>
6900         Removed old GNU stdio implementation; GNU libio is now the only option.
6901         * configure.in: Removed --enable-libio option and @stdio@ subst var.
6902         Define USE_IN_LIBIO unconditionally.
6903         * configure: Regenerated.
6904         * Makeconfig (stdio): Set to libio by default.
6905         * config.make.in (stdio): Variable removed.
6906         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6907         * sysdeps/unix/sysv/linux/configure: Regenerated.
6908         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6909         * sysdeps/mach/hurd/configure: Regenerated.
6910         * stdio/.cvsignore: File removed.
6911         * stdio/Makefile: File removed.
6912         * stdio/Versions: File removed.
6913         * stdio/__fbufsize.c: File removed.
6914         * stdio/__flbf.c: File removed.
6915         * stdio/__fpending.c: File removed.
6916         * stdio/__fpurge.c: File removed.
6917         * stdio/__freadable.c: File removed.
6918         * stdio/__freading.c: File removed.
6919         * stdio/__fsetlocking.c: File removed.
6920         * stdio/__fwritable.c: File removed.
6921         * stdio/__fwriting.c: File removed.
6922         * stdio/clearerr.c: File removed.
6923         * stdio/fclose.c: File removed.
6924         * stdio/fcloseall.c: File removed.
6925         * stdio/feof.c: File removed.
6926         * stdio/ferror.c: File removed.
6927         * stdio/fflush.c: File removed.
6928         * stdio/fgetc.c: File removed.
6929         * stdio/fgetpos.c: File removed.
6930         * stdio/fgets.c: File removed.
6931         * stdio/fileno.c: File removed.
6932         * stdio/fmemopen.c: File removed.
6933         * stdio/fopen.c: File removed.
6934         * stdio/fopncook.c: File removed.
6935         * stdio/fputc.c: File removed.
6936         * stdio/fputs.c: File removed.
6937         * stdio/fread.c: File removed.
6938         * stdio/freopen.c: File removed.
6939         * stdio/fseek.c: File removed.
6940         * stdio/fsetpos.c: File removed.
6941         * stdio/ftell.c: File removed.
6942         * stdio/fwrite.c: File removed.
6943         * stdio/getc.c: File removed.
6944         * stdio/getchar.c: File removed.
6945         * stdio/getdelim.c: File removed.
6946         * stdio/gets.c: File removed.
6947         * stdio/glue.c: File removed.
6948         * stdio/internals.c: File removed.
6949         * stdio/linewrap.c: File removed.
6950         * stdio/linewrap.h: File removed.
6951         * stdio/memstream.c: File removed.
6952         * stdio/newstream.c: File removed.
6953         * stdio/obstream.c: File removed.
6954         * stdio/putc.c: File removed.
6955         * stdio/putchar.c: File removed.
6956         * stdio/puts.c: File removed.
6957         * stdio/rewind.c: File removed.
6958         * stdio/setbuf.c: File removed.
6959         * stdio/setbuffer.c: File removed.
6960         * stdio/setlinebuf.c: File removed.
6961         * stdio/setvbuf.c: File removed.
6962         * stdio/stdio.h: File removed.
6963         * stdio/ungetc.c: File removed.
6964         * stdio/vasprintf.c: File removed.
6965         * stdio/vscanf.c: File removed.
6966         * stdio/vsnprintf.c: File removed.
6967         * stdio/vsprintf.c: File removed.
6968         * stdio/vsscanf.c: File removed.
6969         * sysdeps/generic/defs.c: File removed.
6970         * sysdeps/generic/fdopen.c: File removed.
6971         * sysdeps/generic/pipestream.c: File removed.
6972         * sysdeps/generic/stdio_init.c: File removed.
6973         * sysdeps/generic/sysd-stdio.c: File removed.
6974         * sysdeps/generic/vdprintf.c: File removed.
6975         * sysdeps/mach/hurd/defs.c: File removed.
6976         * sysdeps/mach/hurd/fdopen.c: File removed.
6977         * sysdeps/mach/hurd/pipestream.c: File removed.
6978         * sysdeps/mach/hurd/stdio_init.c: File removed.
6979         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6980         * sysdeps/mach/hurd/vdprintf.c: File removed.
6981         * sysdeps/posix/defs.c: File removed.
6982         * sysdeps/posix/fdopen.c: File removed.
6983         * sysdeps/posix/pipestream.c: File removed.
6984         * sysdeps/posix/stdio_init.c: File removed.
6985         * sysdeps/posix/vdprintf.c: File removed.
6986         * sysdeps/unix/pipestream.c: File removed.
6987         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6988         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6989         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6991 2002-04-29  Roland McGrath  <roland@frob.com>
6993         * include/libc-symbols.h (link_warning): Use `unused' attribute.
6995 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
6997         * sysdeps/generic/tls.h: Describe what must be defined.
6999         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
7000         glob_in_dir [PR libc/3385].
7001         * posix/globtest.sh: Add test case.
7003         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
7004         //TRANSLIT twice.
7006 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
7008         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
7009         _internal symbol handling.
7010         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
7012 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
7014         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
7015         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
7017 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
7019         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
7020         not _LIBC and RE_ENABLE_I18N.
7021         (build_range_exp): Implement for not _LIBC.
7022         (build_collating_symbol): Likewise.
7023         (parse_bracket_exp): Unify redundant error handlings.
7024         Don't erase mbcset for non matching list in multibyte envs.
7025         (build_word_op): Add '_' to matching list for \w operator.
7026         * posix/regex_internal.c (re_string_construct): Invoke
7027         build_upper_buffer in case of not RE_ENABLE_I18N.
7028         (re_string_reconstruct): Don't touch cur_state in case of not
7029         RE_ENABLE_I18N.
7030         * posix/regex_internal.h (attribute_hidden): New macro in case of
7031         not _LIBC.
7032         (re_charset_t): Define range_starts/ends in case of not _LIBC.
7033         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
7034         RE_ENABLE_I18N.
7035         (transit_state_mb): Likewise.
7036         (check_node_accept_bytes): Implement the code evaluating range
7037         expression in case of not _LIBC.
7038         (find_collation_sequence_value): Hide in case of not _LIBC.
7040 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
7042         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
7043         i386/semctl.c.
7044         (__old_semctl, __new_semctl): Only use va_arg if the argument will
7045         be used.
7047 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
7049         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
7051         * sysdeps/ia64/strncpy.S: Fix recovery code.
7052         Patch by David Mosberger <davidm@hpl.hp.com>.
7054 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
7056         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
7057         GLIBC_2.2.6.
7059 2002-04-14  Bruno Haible  <bruno@clisp.org>
7061         * posix/regex.c (re_max_failures): Add back symbol for binary
7062         compatibility.
7064 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
7066         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
7067         of buffer building functions.
7068         * posix/regex_internal.c (re_string_allocate): New function.
7069         (re_string_realloc_buffers): New function.
7070         (re_string_skip_chars): New function.
7071         (re_string_reconstruct): New function.
7072         (re_string_construct): Adapt it to new interface of buffer building
7073         functions.
7074         (re_string_construct_common): Likewise.
7075         (build_wcs_buffer): Likewise.
7076         (build_wcs_upper_buffer): Likewise.
7077         (build_upper_buffer): Likewise.
7078         (re_string_translate_buffer): Likewise.
7079         (re_string_context_at): Adapt it to variable length buffers.
7080         * posix/regex_internal.h (re_string_t): Add new fields to handle
7081         variable length buffers.
7082         (re_match_context_t): Likewise.
7083         * posix/regexec.c (re_search_internal): Adapt it to new interface
7084         of re_string_t and re_match_context_t.
7085         (acquire_init_state_context): Likewise.
7086         (check_matching): Likewise.
7087         (check_halt_state_context): Likewise.
7088         (proceed_next_node): Likewise.
7089         (set_regs): Likewise.
7090         (sift_states_backward): Likewise.
7091         (clean_state_log_if_need): Likewise.
7092         (sift_states_iter_mb): Likewise.
7093         (sift_states_iter_bkref): Likewise.
7094         (add_epsilon_backreference): Likewise.
7095         (transit_state): Likewise.
7096         (transit_state_sb): Likewise.
7097         (transit_state_mb): Likewise.
7098         (transit_state_bkref): Likewise.
7099         (transit_state_bkref_loop): Likewise.
7100         (check_node_accept): Likewise.
7101         (match_ctx_init): Likewise.
7102         (extend_buffers): New function.
7104 2002-04-21  Bruno Haible  <bruno@clisp.org>
7106         * iconvdata/tst-table.sh: For the second check, use the truncated
7107         GB18030 charmap table, like for the first check.
7109 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
7111         * elf/dl-load.c (open_verify): Correct __lseek parameters.
7112         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
7114 2002-04-23  H.J. Lu  <hjl@gnu.org>
7116         * include/math.h (isfinite): Fix a typo.
7118 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
7120         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
7121         which is created by the test suite.
7123 2002-04-20  Bruno Haible  <bruno@clisp.org>
7125         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
7126         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
7128 2002-04-20  Bruno Haible  <bruno@clisp.org>
7130         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
7131         to avoid gcc warning.
7133 2002-04-20  Bruno Haible  <bruno@clisp.org>
7135         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
7136         of data->__statep->__count.
7138 2002-04-20  Bruno Haible  <bruno@clisp.org>
7140         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
7141         tag characters.
7142         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
7144 2002-04-24  Roland McGrath  <roland@frob.com>
7146         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
7147         use END macro instead of our own .end directive.
7148         Use `callsys' insn mnemonic instead of `call_pal'.
7150         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
7152         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
7153         macro; we need this for Hurd.
7155         Log entry was missing for 2002/03/24 commit of rev 1.8,
7156         goes with 2002-03-17 changes.
7157         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
7158         (sysdep_routines): Append ioperm here.
7159         (sysdep_headers): Append sys/io.h here.
7161 2002-04-23  Roland McGrath  <roland@frob.com>
7163         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
7164         * sysdeps/mach/hurd/sendto.c: Likewise.
7165         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
7166         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
7167         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
7169 2002-04-22  Roland McGrath  <roland@frob.com>
7171         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
7172         failure from i386_io_perm_* RPCs to ENOSYS.
7174 2002-04-22  Andreas Jaeger  <aj@suse.de>
7176         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
7178         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
7180         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
7181         register instead of destroying %rbx.
7183 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
7185         * string/string.h: Declare strerror_r also for XPG6.
7187 2002-04-19  Roland McGrath  <roland@frob.com>
7189         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
7191 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
7193         * Makefile: Add handling of xtests and xcheck targets.
7194         * MakeTAGS: Likewise.
7195         * Makeconfig: Likewise.
7196         * Makerules: Likewise.
7197         * Rules: Likewise.
7198         * manual/Makefile: Likewise.
7199         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
7200         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
7202 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
7204         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
7205         authnone_private_s.
7206         * sunrpc/auth_none.c: Include bits/libc-lock.h.
7207         Delete #ifdef _RPC_THREAD_SAFE_ block.
7208         (authnone_private): Make a struct, not a pointer to struct.
7209         (authnone_private_guard): New once-control variable.
7210         (authnone_create_once): New function, split out of
7211         authnone_create.  No need to allocate memory.
7212         (authnone_create): Just call authnone_create_once via
7213         __libc_once, then return &authnone_private->no_client.
7214         (authnone_marshal): Access private data via CLIENT argument,
7215         not authnone_private pointer.
7216         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
7217         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
7218         authnone_private_s.
7220 2002-04-12  H.J. Lu  <hjl@gnu.org>
7222         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
7224 2002-04-18  Bruno Haible  <bruno@clisp.org>
7226         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
7227         FROM_DIRECTION): Make the FROM direction stateless.
7228         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
7229         FROM_DIRECTION): Likewise.
7231 2002-04-15  Bruno Haible  <bruno@clisp.org>
7233         * iconvdata/JISX0213.TXT: New file.
7234         * iconvdata/jisx0213.h: New file.
7235         * iconvdata/jisx0213.c: New file.
7236         * iconvdata/euc-jisx0213.c: New file.
7237         * iconvdata/shift_jisx0213.c: New file.
7238         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
7239         * iconvdata/EUC-JISX0213.precomposed: New file.
7240         * iconvdata/SHIFT_JISX0213.precomposed: New file.
7241         * iconvdata/SHIFT_JISX0213.irreversible: New file.
7242         * iconvdata/tst-table-to.c (main): Make it work for encodings for
7243         which the "to" direction is stateful.
7244         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
7245         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
7246         SHIFT_JISX0213.
7247         (libJISX0213-routines): New variable.
7248         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
7249         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
7250         (LDFLAGS-libJISX0213.so): New variable.
7251         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
7252         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
7253         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
7255 2002-04-15  Bruno Haible  <bruno@clisp.org>
7257         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
7258         uint32_t.  Update to Unicode 3.2.
7259         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
7260         (BODY for TO_LOOP): Handle the ASCII range specially.
7261         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
7262         * iconvdata/testdata/BIG5HKSCS: Remove a character.
7263         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
7265 2002-04-15  Bruno Haible  <bruno@clisp.org>
7267         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
7268         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
7270 2002-04-15  Bruno Haible  <bruno@clisp.org>
7272         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
7273         (ucs4_to_cns11643): Update.
7274         * iconvdata/cns11643.c: Update to Unicode 3.2.
7275         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
7276         __cns11643_from_ucs4p2_tab): Regenerated.
7277         (__cns11643_from_ucs4p2c_tab): New array.
7278         * iconvdata/cvs11643l1.c: Update comments.
7279         * iconvdata/EUC-TW.irreversible: Remove two entries.
7281 2002-04-15  Bruno Haible  <bruno@clisp.org>
7283         * locale/C-translit.h.in: Update to Unicode 3.2.
7284         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
7285         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
7287 2002-04-15  Bruno Haible  <bruno@clisp.org>
7289         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
7290         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
7292 2002-04-15  Bruno Haible  <bruno@clisp.org>
7294         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
7295         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
7296         always one byte, not 0 bytes in some cases and 2 bytes in others.
7298         * iconvdata/tst-table-from.c (main): Correct the usage message.
7300 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
7302         * posix/regcomp.c (parse_expression): Fix incorrect error code.
7303         (parse_dup_op): Fix error handling like "a{}".
7304         (parse_bracket_exp): Add error handling.
7305         (fetch_number): Add error handling for "a{<very_large_number>}".
7307 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
7309         * posix/regcomp.c (parse_bracket_symbol): Add error handling
7310         in case that the symbol name is too long.
7311         (build_charclass): Handle [:lower:]/[:uppper:] correctly
7312         in case of REG_ICASE.
7314 2002-04-19  Andreas Jaeger  <aj@suse.de>
7316         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
7317         <hartvige@mips.com>.
7319 2002-04-15  H.J. Lu  <hjl@gnu.org>
7321         * include/math.h (__finitel_internal): Declare only if
7322         __NO_LONG_DOUBLE_MATH is not defined.
7323         (__isinfl_internal): Likewise.
7324         (__isnanl_internal): Likewise.
7326         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
7327         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
7328         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
7329         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
7330         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7331         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
7332         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7334         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
7335         __fcntl_internal.
7337         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
7338         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
7340 2002-04-15  Bruno Haible  <bruno@clisp.org>
7342         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
7343         (BODY for TO_LOOP): Likewise.
7344         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
7345         * iconvdata/tst-table.sh: Add support for encodings which contain
7346         precomposed Unicode characters, known to the iconv converter in both
7347         directions but not listed in the charmap.
7348         * iconvdata/IBM856.irreversible: New file.
7349         * iconvdata/IBM922.irreversible: New file.
7350         * iconvdata/IBM1132.irreversible: New file.
7351         * iconvdata/IBM1133.irreversible: New file.
7352         * iconvdata/IBM1160.irreversible: New file.
7353         * iconvdata/IBM1161.irreversible: New file.
7354         * iconvdata/IBM1163.irreversible: New file.
7355         * iconvdata/IBM1164.irreversible: New file.
7356         * iconvdata/ARMSCII-8.irreversible: New file.
7357         * iconvdata/TCVN5712-1.precomposed: New file.
7358         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
7359         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
7360         ARMSCII-8, TCVN5712-1.
7361         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
7362         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
7363         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
7364         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
7366 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
7368         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
7369         for EVENING69.  Include offsets in TZ environment variable.
7371 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
7373         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
7374         avoid compiler warnings.
7376         * locale/programs/localedef.c (main): Always call
7377         construct_output_path.
7379         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
7381         * locale/programs/locfile.c (to_archive): New variable.  To collect
7382         data which has to be added to the locale archive.
7383         (write_all_categories): Take new third parameter with locale name.
7384         Unless no_archive flag set add new locale data to the archive
7385         (write_locale_data): Unless no-archive flag set store generated data
7386         in to_archive data structure instead of generation output file.
7387         Add new parameter with locale category index.
7388         * locale/programs/locfile.h: Add new parameters in declaractions of
7389         write_all_categories and write_locale_data.
7390         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
7391         --add-to-archive, and --delete-from-archive options.  Pass extra
7392         parameter to write_all_categories.
7393         * locale/programs/localedef.h: Add prototypes for functions in
7394         locarchive.c.
7395         * locale/locarchive.h: New file.
7396         * locale/programs/locarchive.c: New file.
7397         * locale/Makefile (distribute): Add programs/locarchive.c and
7398         locarchive.h.
7399         (localedef-modules): Add md5 and locarchive.
7400         Add vpath to crypt subdir for md5.c.
7402         * locale/programs/ld-address.c: Pass locale category ID as new second
7403         parameter to write_locale_data.
7404         * locale/programs/ld-collate.c: Likewise.
7405         * locale/programs/ld-ctype.c: Likewise.
7406         * locale/programs/ld-identification.c: Likewise.
7407         * locale/programs/ld-measurement.c: Likewise.
7408         * locale/programs/ld-messages.c: Likewise.
7409         * locale/programs/ld-monetary.c: Likewise.
7410         * locale/programs/ld-name.c: Likewise.
7411         * locale/programs/ld-numeric.c: Likewise.
7412         * locale/programs/ld-paper.c: Likewise.
7413         * locale/programs/ld-telephone.c: Likewise.
7414         * locale/programs/ld-time.c: Likewise.
7416         * locale/simple-hash.c: Move compute_hashval function from here...
7417         * locale/hashval.h: ...to here.  New file.
7418         * locale/simple-hash.h: Add prototype for compute_hashval.
7420         * include/libintl.h: Minor cleanups.
7422 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
7424         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
7426 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
7428         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
7430 2002-04-14  Bruno Haible  <bruno@clisp.org>
7432         * locale/programs/charmap.c (charmap_read): Don't access result if
7433         result == NULL.
7435 2002-02-17  Andreas Schwab  <schwab@suse.de>
7437         * elf/reldep7.c: New file.
7438         * elf/reldep7mod1.c: New file.
7439         * elf/reldep7mod2.c: New file.
7440         * elf/Makefile: Add rules to build and run reldep7.
7442 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
7444         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
7445         the end of the function.  Pass original flags to recursive call if
7446         add_dependency failed.
7447         (_dl_lookup_versioned_symbol): Likewise.
7449 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
7451         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
7452         early, but check whether it overflowed afterwards.
7453         * time/tst-mktime.c (main): Add new tests.
7455 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
7457         * debug/xtrace.sh: Fix program name in help message.
7458         Patch by Roger Luethi <rl@hellgate.ch>.
7460         * include/sys/stat.h: Add prototypes for __lxstat_internal and
7461         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
7462         NOT_IN_libc.
7463         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
7464         * sysdeps/mach/hurd/lxstat.c: Likewise.
7465         * sysdeps/unix/common/lxstat.c: Likewise.
7466         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
7467         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
7468         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
7469         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
7470         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
7471         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
7472         * sysdeps/mach/hurd/lxstat64.c: Likewise.
7473         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
7474         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
7476         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
7477         prototypes.  Add __mbrlen and __mbrtowc macros.
7478         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
7479         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
7481         * include/unistd.h: Add prototype for __write_internal and add
7482         __libc_write macro is SHARED.
7483         * sysdeps/generic/write.c: Use INTDEF for __write.
7484         * sysdeps/mach/hurd/write.c: Likewise.
7485         * sysdeps/unix/sysv/aix/write.c: Likewise.
7486         * sysdeps/unix/syscalls.list: Add __libc_write alias.
7488         * assert/assert.c: Replace STR_N_SIZE with something usable in
7489         macro arguments.
7490         * assert/assert-perr.c: Likewise.
7492         * include/sys/socket.h: Declare __libc_sa_len_internal and define
7493         SA_LEN macro to use it if not NOT_IN_libc.
7494         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
7496         * include/fcntl.h: Declare __open_internal and define __open and
7497         __libc_open macros if not NOT_IN_libc.
7498         * sysdeps/generic/open.c: Use INTDEF for __open.
7499         * sysdeps/mach/hurd/open.c: Likewise.
7500         * sysdeps/unix/sysv/aix/open.c: Likewise.
7501         * sysdeps/unix/syscalls.list: Add __open_internal alias.
7503         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
7504         has correct number.
7506         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
7507         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
7508         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7509         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7511         * include/wctype.h: Declare __iswalpha_l_internal,
7512         __iswdigit_l_internal, __iswspace_l_internal,
7513         __iswxdigit_l_internal, and __iswctype_internal.  Define
7514         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
7515         __iswxdigit_l macros if not NOT_IN_libc.
7516         * wctype/iswctype.c: Use INTDEF for __iswctype.
7517         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
7519         * include/math.h: Declare __isinf_internal, __isinfl_internal,
7520         __isnan_internal, and __isnanl_internal.
7521         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
7522         __isnan, and __isnanl.
7523         * stdio-common/printf_size.c: Likewise.
7524         * sysdeps/generic/printf_fphex.c: Likewise.
7525         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
7526         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7527         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
7528         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
7529         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
7530         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7531         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
7532         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7533         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
7534         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7535         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
7536         * sysdeps/m68k/s_isinfl.c: Likewise.
7537         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
7538         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
7540         * include/sys/time.h: Declare __gettimeofday_internal and define
7541         __gettimeofday macro if not NOT_IN_libc.
7542         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
7543         * sysdeps/mach/gettimeofday.c: Likewise.
7544         * sysdeps/posix/gettimeofday.c: Likewise.
7545         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
7546         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
7547         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
7548         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
7550         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
7551         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
7552         Remove __lstat and __fstat inline functions.
7553         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
7554         * sysdeps/mach/hurd/fxstat.c: Likewise.
7555         * sysdeps/unix/fxstat.c: Likewise.
7556         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
7557         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
7558         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
7559         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
7560         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
7561         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
7562         * sysdeps/mach/hurd/fxstat64.c: Likewise.
7563         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
7564         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
7566         * include/unistd.h: Declare __getpid_internal and define
7567         __getpid macro if not NOT_IN_libc.
7568         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
7569         * sysdeps/generic/getpid.c: Likewise.
7570         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
7571         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
7573         * include/unistd.h: Declare __getpgid_internal and define
7574         __getpgid macro if not NOT_IN_libc.
7575         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
7576         * sysdeps/mach/hurd/getpgid.c: Likewise.
7577         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
7578         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
7579         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
7580         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
7582         * include/unistd.h: Declare __getpagesize_internal and define
7583         __getpagesize macro if not NOT_IN_libc.
7584         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
7585         __getpagesize.
7586         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
7587         * sysdeps/mach/getpagesize.c: Likewise.
7588         * sysdeps/posix/getpagesize.c: Likewise.
7589         * sysdeps/unix/getpagesize.c: Likewise.
7590         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
7591         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7592         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
7593         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
7595 2002-04-13  Andreas Jaeger  <aj@suse.de>
7597         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
7598         as clobber to reduce register pressure.
7599         (__strpbrk_cg): Likewise.
7600         (__mempcpy_by4): Likewise.
7601         (__strstr_cg): Likewise.
7602         Add prototype for __memrchr.
7604 2002-04-13  Andreas Schwab  <schwab@suse.de>
7606         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
7607         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
7608         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
7610 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
7612         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
7613         check whether the caller prefers getting the most recent version of
7614         a symbol of the earliest version.
7615         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
7616         _dl_do_lookup to also take the new parameter and pass it on.
7617         Change 'explicit' parameter of _dl_lookup_symbol and
7618         _dl_lookup_versioned_symbol to flags.  Adjust tests.
7619         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7620         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
7621         _dl_lookup_versioned_symbol.
7622         * elf/dl-reloc.c: Likewise.
7623         * elf/dl-runtime.c: Likewise.
7624         * elf/dl-sym.c: Likewise.
7625         * sysdeps/mips/dl-machine.h: Likewise.
7627 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7629         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
7630         in a token.
7631         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
7633 2002-04-10  Andreas Jaeger  <aj@suse.de>
7635         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
7637         * include/argz.h: Remove extra char from last patch.
7639 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
7641         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
7642         * sysdeps/unix/sysv/aix/chown.c: Likewise.
7643         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
7644         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
7645         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7646         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
7647         __chown_internal.
7648         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
7650         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
7651         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
7652         * intl/ngettext.c: Likewise.
7654         * include/sys/socket.h: Declare __connect_internal and define
7655         __connect macro if not NOT_IN_libc.
7656         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
7657         * sysdeps/unix/sysv/aix/connect.c: Likewise.
7658         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
7660         * include/unistd.h: Declare __close_internal and define __close macro
7661         if not NOT_IN_libc.
7662         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
7663         WJUMP3): Add extra parenthesis to avoid expanding element names with
7664         macors like __close.
7665         * sysdeps/unix/syscalls.list: Add __close_internal alias.
7667         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
7668         if not NOT_IN_libc.
7669         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
7670         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
7671         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
7673         * include/unistd.h: Declare __fork_internal and define __fork macro
7674         if not NOT_IN_libc.
7675         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
7676         * sysdeps/unix/sysv/aix/fork.c: Likewise.
7677         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7679         * include/stdio_ext.h: Declare __fsetlocking_internal and define
7680         __fsetlocking macro to use it if not NOT_IN_libc.
7681         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7683         * libio/__fbufsize.c: Correct copyright.
7684         * libio/__flbf.c: Likewise.
7685         * libio/__fpending.c: Likewise.
7686         * libio/__fpurge.c: Likewise.
7687         * libio/__freadable.c: Likewise.
7688         * libio/__freading.c: Likewise.
7689         * libio/__fsetlocking.c: Likewise.
7690         * libio/__fwritable.c: Likewise.
7691         * libio/__fwriting.c: Likewise.
7693         * include/stdio.h: Declare __asprintf_internal and define __asprintf
7694         macro to use it if not NOT_IN_libc.
7695         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7697         * include/mntent.h: Declare __setmntent_internal,
7698         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
7699         __getmntent_r, and __endmntent macros to use these functions if not
7700         NOT_IN_libc.
7701         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7702         __endmntent.
7704         * include/math.h: Declare __finite_internal, __finitef_internal, and
7705         __finitel_internal.  Redefine isfinite macro if in libc or libm using
7706         these functions.
7707         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7708         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7709         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7710         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7711         * sysdeps/i386/fpu/s_finitef.S: Likewise.
7712         * sysdeps/i386/fpu/s_finitel.S: Likewise.
7713         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7714         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7715         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7716         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7718         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
7719         to use this function if not NOT_IN_libc.
7720         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7721         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7722         * sysdeps/mach/hurd/fcntl.c: Likewise.
7723         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7724         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7726         * include/argz.h: Declare __argz_count_internal and
7727         __argz_stringify_internal.
7728         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7729         __argz_stringify.
7730         * string/argz-count.c: Use INTDEF for __argz_count.
7731         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7733         * include/stdlib.h: Declare __cxa_atexit_internal and define
7734         __cxa_atexit macro if not NOT_IN_libc.
7735         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7736         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7738         * assert/assert.c: Use INTDEF for __assert_fail.
7739         * assert/__assert.c: Use INTUSE for call to __assert_fail.
7740         * include/assert.h: Declare __assert_fail_internal.
7742         * extra-lib.mk: Mark assignment to lib with override.
7744 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7746         * Makerules: Use cppflags-iterator.mk to add defines for all test
7747         source files.
7749 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
7751         * elf/elf.h: Define R_SH_TLS_xxx macros.
7752         * elf/rtld.c: Remove an extra parenthesis.
7753         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7754         TLS_GD macros.
7755         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7756         * sysdeps/sh/dl-lookupcfg.h: New file.
7757         * sysdeps/sh/dl-tls.h: New file.
7758         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7759         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7760         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7761         R_SH_TLS_TPOFF32 relocations.
7763 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7765         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7766         of NOT_IN_LIBC.
7767         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7768         * include/stdlib.h: Likewise.
7770 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
7772         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7773         instead of _RTLD_LOCAL.
7774         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7775         * include/unistd.h: Likewise.
7776         * sysdeps/generic/ldsodefs.h: Likewise.
7778         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7779         if in libc or ld.so.
7781 2002-04-08  Andreas Jaeger  <aj@suse.de>
7783         * elf/cache.c (print_entry): Support x86-64.
7785 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7787         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7788         with one accessing the locale data structures directly.
7789         * stdio-common/printf-prs.c: Include localeinfo.h for new
7790         MB_CUR_MAX definition.
7792         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7793         is the name of the source file without extension.
7794         * Makefile (distribute): Add cppflags-iterator.mk.
7795         * cppflags-iterator.mk: New file.
7796         * extra-lib.mk: For the sources of the library run
7797         cppflags-iterator.mk.
7799         * include/libintl.h: Declare __dcgettext_internal and
7800         _libc_intl_domainname_internal.  Define __dcgettext using these
7801         two symbols if used in libc itself.
7802         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7803         _libc_intl_domainname_internal.
7804         * argp/argp-parse.c: Likewise.
7805         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7806         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7807         * intl/gettext.c: Likewise.
7808         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7809         alias.
7810         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7811         __dcgettext.
7812         * posix/regex_internal.c (gettext): Likewise.
7814 2002-04-08  Andreas Jaeger  <aj@suse.de>
7816         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7818         * sysdeps/x86_64/fpu/s_llrint.S: New file.
7819         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7820         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7821         * sysdeps/x86_64/fpu/s_lrint.S: New file.
7822         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7823         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7825 2002-04-08  Roland McGrath  <roland@frob.com>
7827         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7828         widening __hurd_fail value.
7830 2002-04-07  Roland McGrath  <roland@frob.com>
7832         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7833         <mach/machine/alpha_instruction.h>.
7834         (_hurd_setup_sighandler): Take proper arguments for current decls.
7835         Update code to use _hurdsig_catch_fault.
7836         Use `callsys' instruction instead of `call_pal'.
7837         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7839         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7840         (ALIGN, at, AT, fp): New macros.
7842 2002-04-06  Roland McGrath  <roland@frob.com>
7844         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7846         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7847         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7849         * sysdeps/mach/hurd/bind.c: Use prototype definition.
7850         * sysdeps/mach/hurd/connect.c: Likewise.
7851         * sysdeps/mach/hurd/getsockopt.c: Likewise.
7852         * sysdeps/mach/hurd/setsockopt.c: Likewise.
7854         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7855         __msg_sig_post RPC.
7857         * hurd/catch-exc.c: Use integer_t instead of int.
7858         * hurd/hurdfault.c: Likewise.
7860         * sysdeps/mach/hurd/alpha/exc2signal.c
7861         (_hurd_exception2signal): Rewritten.
7862         * sysdeps/mach/hurd/alpha/longjmp-ts.c
7863         (_hurd_longjmp_thread_state): Rewritten.
7865 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
7867         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7868         DB_LOOKUP_FCT prototype.
7869         * nss/getXXent_r.c: Likewise.
7870         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7871         * inet/getaliasname_r.c: Likewise.
7872         * inet/getnetbyad_r.c: Likewise.
7873         * inet/getnetbynm_r.c: Likewise.
7874         * inet/getnetent_r.c: Likewise.
7875         * inet/getproto_r.c: Likewise.
7876         * inet/getprtent_r.c: Likewise.
7877         * inet/getprtname_r.c: Likewise.
7878         * inet/getrpcbyname_r.c: Likewise.
7879         * inet/getrpcbynumber_r.c: Likewise.
7880         * inet/getrpcent_r.c: Likewise.
7881         * inet/getservent_r.c: Likewise.
7882         * inet/getsrvbynm_r.c: Likewise.
7883         * inet/getsrvbypt_r.c: Likewise.
7884         * shadow/getspent_r.c: Likewise.
7885         * shadow/getspnam_r.c: Likewise.
7887         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7889         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7890         Use i686-friendly PIC code.
7891         * sysdeps/i386/elf/setjmp.S: Likewise.
7893         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7895         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7896         list.
7897         * elf/Versions: Remove it here.
7899 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
7901         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7902         direction.  Reported by H . J . Lu <hjl@lucon.org>.
7904 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7906         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7907         test just before the test runs.
7908         * intl/tst-translit.sh: Likewise.
7909         * intl/tst-codeset.sh: Likewise.
7911         * timezone/zic.c: Update from tzcode2002c.
7912         * timezone/asia: Update from tzdata2002c.
7913         * timezone/backward: Likewise.
7914         * timezone/europe: Likewise.
7915         * timezone/northamerica: Likewise.
7916         * timezone/northamerica: Likewise.
7917         * timezone/northamerica: Likewise.
7918         * timezone/southamerica: Likewise.
7919         * timezone/zone.tab: Likewise.
7921 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
7923         * sysdeps/generic/brk.c (__curbrk): Declare.
7924         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7925         * sysdeps/generic/dl-sbrk.c: Likewise.
7926         * sysdeps/unix/arm/dl-brk.S: New file.
7927         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7928         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7929         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7930         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7931         * sysdeps/unix/i386/dl-brk.S: New file.
7932         * sysdeps/unix/mips/dl-brk.S: New file.
7933         * sysdeps/unix/sparc/dl-brk.S: New file.
7934         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7935         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7936         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7937         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7939 2002-04-03  Andreas Schwab  <schwab@suse.de>
7941         * Makefile (headers): Add gnu/lib-names.h here instead of
7942         install-others.
7943         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7944         installation rule.
7945         (install-headers): Add dependency on install-headers-nosubdir.
7946         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7947         instead of install-others.
7948         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7949         installation rule.
7951 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7953         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7954         Reported by Sam Roberts <sroberts@uniserve.com>.
7956 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7958         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7959         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7960         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7961         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7963 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
7965         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7966         (RTLD_START): Ditto.
7967         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7968         dependency violation.
7970 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7972         * time/mktime.c (__mktime_internal): Move check for year < 70 below
7973         all variable declarations.
7975 2002-04-04  Andreas Schwab  <schwab@suse.de>
7977         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7979 2002-04-04  Andreas Jaeger  <aj@suse.de>
7981         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7982         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7984         * sysdeps/x86_64/fpu/s_fabs.c: New file.
7985         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7986         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7988         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7990         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7992         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7993         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7995         * configure.in: Handle all mips entries the same.
7997         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7998         * sysdeps/mips/mips3/*: Likewise.
7999         * sysdeps/mips/p40/bits/endian.h: Likewise.
8001 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
8003         * misc/dirname.c (dirname): Ignore trailing slashes at end of
8004         non-null result [PR libc/2600].
8006         * misc/tst-dirname.c: Add more tests.
8008 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
8010         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
8011         define a code_set_name provide one based on the filename.
8013         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
8015 2001-12-28  Andreas Jaeger  <aj@suse.de>
8017         * time/mktime.c (__mktime_internal): Check for year < 70
8018         [PR libc/2738].
8020 2002-04-03  Andreas Jaeger  <aj@suse.de>
8022         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
8023         shmat.
8024         Reported by Andi Kleen <ak@suse.de>.
8026 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
8028         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
8029         * sysdeps/generic/w_lgammaf.c: Likewise.
8030         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
8032         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
8033         Adjust for new output format of the backtrace functions.
8035         * misc/syslog.c (vsyslog): Only use cleanup handler if
8036         _LIBC_REENTRANT is defined [PR libc/2924].
8038         * libio/Makefile (tests): Add bug-ungetwc2.
8039         * libio/bug-ungetwc2.c: New file.
8041         * manual/install.texi: Typographical and grammatical cleanup.
8042         Patch by Dennis Grace <dgrace@us.ibm.com>.
8044         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
8045         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
8047         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
8048         always "&".  Adjust callers.
8049         Add "_" prefix to several generated definitions.
8050         Patch by paul@serice.net [PR libc/3158].
8052 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8054         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
8055         size of _dl_arm_cap_flags.
8056         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
8058         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
8059         Define as 8.
8061 2002-03-22  H.J. Lu  <hjl@gnu.org>
8063         * scripts/firstversions.awk: Check the first version.
8065 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8067         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
8068         dependencies must be stable to work correctly.
8069         Reported by martin.lubich@datacon.at.
8071         * libio/bug-ungetwc1.c: New file.
8072         * libio/Makefile (tests): Add bug-ungetwc1.
8074         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
8075         if stream was last used for writing.
8077         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
8078         number [PR libc/3111].
8080         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
8081         to ...
8082         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
8084 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
8086         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
8087         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
8088         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
8089         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
8090         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
8092 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
8094         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
8095         dynamic tags.
8097 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8099         * sysdeps/i386/fpu/s_fabs.S: New file.
8100         * sysdeps/i386/fpu/s_fabsf.S: New file.
8101         * sysdeps/i386/fpu/s_fabsl.S: New file.
8102         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
8103         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
8104         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
8106 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8108         * rt/tst-shm.c (do_test): Add one more test for size of shared
8109         memory object.
8111 2002-03-29  Wolfram Gloger  <wg@malloc.de>
8113         * malloc/malloc.c: Add short description and prototypes for
8114         malloc_get_state, malloc_set_state and posix_memalign, for
8115         consistency and to avoid warnings with -Wstrict-prototypes.
8116         Reported by Andreas Jaeger <aj@suse.de>.
8118 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8120         * po/gl.po: Update from translation team.
8122 2002-03-31  Roland McGrath  <roland@frob.com>
8124         * hurd/hurdselect.c (_hurd_select): Fix
8125         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
8126         Use a union rather than casts to compare mach_msg_type_t as int.
8128 2002-03-25  Roland McGrath  <roland@frob.com>
8130         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
8131         check off the end of NAME when it's shorter than 2 chars.
8132         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
8134 2002-03-17  Roland McGrath  <roland@frob.com>
8136         * sysdeps/mach/hurd/i386/sys/io.h: New file.
8137         * sysdeps/mach/hurd/i386/ioperm.c: New file.
8138         * sysdeps/mach/hurd/i386/Dist: Add them.
8139         * sysdeps/mach/hurd/i386/Versions
8140         (libc: GLIBC_2.2.6): New set, add ioperm.
8141         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
8142         (mach_interface_list): Check for mach_i386.defs.
8143         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
8144         * sysdeps/mach/configure: Regenerated.
8146 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
8148         * po/fr.po: Update from translation team.
8150 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8152         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
8153         getpriority from syscalls list.
8155 2002-03-28  Andreas Jaeger  <aj@suse.de>
8157         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
8158         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
8159         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
8160         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
8162 2002-03-27  Andreas Jaeger  <aj@suse.de>
8164         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8165         sigcontext): Follow further kernel change.
8167         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
8168         kernel change.
8170         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
8171         Change for struct sigcontext change.
8173         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
8174         Follow changes in struct sigcontext.
8176         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
8177         sysycall, use wrapper instead.
8179 2002-03-26  Andreas Jaeger  <aj@suse.de>
8181         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
8182         read and write accesses as detailed as possible.
8183         (__memcpy_by2): Likewise.
8184         (__memcpy_g): Likewise.
8185         (memmove): Likewise.
8186         (memcmp): Likewise.
8187         (__memset_ccn_by4): Likewise.
8188         (__memset_ccn_by2): Likewise.
8189         (__memset_gcn_by4): Likewise.
8190         (__memset_gcn_by2): Likewise.
8191         (memchr): Likewise.
8192         (__memrchr): Likewise.
8193         (rawmemchr): Likewise.
8194         (__strlen_g): Likewise.
8195         (__strcpy_g): Likewise.
8196         (__mempcpy_by4): Likewise.
8197         (__mempcpy_by2): Likewise.
8198         (__mempcpy_byn): Likewise.
8199         (__stpcpy_g): Likewise.
8200         (__strncpy_by4): Likewise.
8201         (__strncpy_by2): Likewise.
8202         (__strncpy_byn): Likewise.
8203         (__strncpy_gg): Likewise.
8204         (__strcat_c): Likewise.
8205         (__strcat_g): Likewise.
8206         (__strncat_g): Likewise.
8207         (__strcmp_gg): Likewise.
8208         (__strncmp_g): Likewise.
8209         (__strchr_c): Likewise.
8210         (__strchr_g): Likewise.
8211         (__strchrnul_c): Likewise.
8212         (__strchrnul_g): Likewise.
8213         (__strrchr_c): Likewise.
8214         (__strrchr_g): Likewise.
8215         (__strrchr_c): Likewise.
8216         (__strrchr_g): Likewise.
8217         (__strcspn_c1): Likewise.
8218         (__strcspn_cg): Likewise.
8219         (__strcspn_g): Likewise.
8220         (__strcspn_g): Likewise.
8221         (__strspn_c1): Likewise.
8222         (__strspn_cg): Likewise.
8223         (__strspn_g): Likewise.
8224         (__strspn_g): Likewise.
8225         (__strpbrk_cg): Likewise.
8226         (__strpbrk_g): Likewise.
8227         (__strstr_cg): Likewise.
8228         (__strstr_g): Likewise.
8230         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
8231         Michal Ludvig <mludvig@suse.cz>.
8233         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
8234         compatibilty, adjust for kernel changes.
8236         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8237         sigcontext): Adjust for kernel changes.
8239 2002-03-25  Andreas Jaeger  <aj@suse.de>
8241         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
8242         little endian.
8243         Reported by Artur Zaprzala <zybi@talex.com.pl>.
8245 2002-03-24  Andreas Jaeger  <aj@suse.de>
8247         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
8249         * stdio-common/tst-fdopen.c (main): Remove unused variable.
8251         * iconv/tst-iconv3.c (main): Use correct printf strings.
8253 2002-03-18  Roland McGrath  <roland@frob.com>
8255         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
8256         (CMGROUP_MAX): New macro.
8258 2002-03-23  Roland McGrath  <roland@frob.com>
8260         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
8261         * sysdeps/posix/shm_unlink.c: Likewise.
8263 2002-03-22  Roland McGrath  <roland@frob.com>
8265         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
8266         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
8267         under --enable-libio.
8268         * sysdeps/mach/hurd/configure: Regenerated.
8270 2002-03-23  Roland McGrath  <roland@frob.com>
8272         * sysdeps/mach/hurd/i386/Makefile
8273         (sysdep_routines, shared-only-routines): Don't add framestate,
8274         reverting 2001-10-02 change.
8275         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
8276         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
8277         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8278         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8279         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
8280         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
8281         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8282         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
8283         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
8284         Do it here instead, only if [$(unwind-find-fde) = yes].
8286 2002-03-23  Andreas Jaeger  <aj@suse.de>
8288         * signal/signal.h: Fix typo. Patch by Steve Kemp
8289         <skx@tardis.ed.ac.uk>.
8291 2002-03-22  Andreas Jaeger  <aj@suse.de>
8293         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
8294         getresuid.
8296         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8297         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
8298         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8299         user_fpregs_struct): Rename fwd.
8301         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
8302         Follow sigcontext changes.
8304 2002-03-22  Andreas Jaeger  <aj@suse.de>
8306         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
8307         changes for NaNs on MIPS.
8308         Patch by Hartvig Ekner <hartvige@mips.com>.
8310 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
8312         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
8313         Use realloc if too large.
8314         (addgrbyid): Likewise.
8315         * nscd/hstcache.c (addhstbyname): Likewise.
8316         (addhstbyaddr): Likewise.
8317         (addhstbynamev6): Likewise.
8318         (addhstbyaddrv6): Likewise.
8319         * nscd/pwdcache.c (addpwbyname): Likewise.
8320         (addpwbyuid): Likewise.
8322 2002-03-21  Andreas Jaeger  <aj@suse.de>
8324         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8325         _fpstate): Add separate struct for x86-64.
8327         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8328         user_fpregs_struct): Change member names to follow kernel.
8330 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
8332         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
8333         Correctly close the UDP connection right away [PR libc/3120].
8335 2002-03-20  Andreas Jaeger  <aj@suse.de>
8337         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8338         user_fpregs_struct): Fix for changed kernel struct.
8339         (struct user_regs_struct): Likewise.
8340         (struct user): Likewise.
8341         Add 32-bit x86 compatibility.
8343         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
8345 2002-03-19  Andreas Jaeger  <aj@suse.de>
8347         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
8349 2002-03-18  Andreas Jaeger  <aj@suse.de>
8351         * iconvdata/Makefile: Only run tests when shared libs are
8352         available.
8354 2002-03-17  Andreas Jaeger  <aj@suse.de>
8356         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
8358         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
8360         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
8361         bits.
8363         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
8364         (CAUSE_SHIFT): New macro.
8365         Patch by Hartvig Ekner <hartvige@mips.com>.
8367         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
8368         * sysdeps/generic/unwind-pe.h: Likewise.
8370         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
8371         type to _IO_setb.
8373         * libio/stdio.c (AL2): Define variant when visibility attribute is
8374         not supported.
8376         * include/libc-symbols.h (_INTVARDEF): Define variant when
8377         visibility attribute is not supported.
8379 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
8381         * po/fr.po: Update from translation team.
8383 2002-02-25  Bruno Haible  <bruno@clisp.org>
8385         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
8387 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
8389         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
8390         buffers if _IO_file_attach failed.
8392         * libio/fileops.c (_IO_file_open): Close file descriptor if
8393         _IO_SEEKOFF call failed.
8395 2002-03-15  H.J. Lu  <hjl@gnu.org>
8396             Ulrich Drepper  <drepper@redhat.com>
8398         * configure.in: Check for availability of
8399         init_array/fini_array/preinit_array handling in binutils.
8400         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
8401         * config.make.in (have-initfini-array): New variable.
8403 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
8405         * stdio-common/tst-printf.c (main): Comment out one test which
8406         checked the compiler's ability to fold floating-point constants
8407         but not really printf.
8408         (rfg3): Make s const.
8409         * stdio-common/tst-printf.sh: Adjust for removed test.
8411         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
8412         internal function.  Adjust for internal_function calling convention.
8413         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
8414         as internal_function.
8416         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
8417         hidden.
8419         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
8420         declaration and definition.
8421         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
8422         declaration.
8423         * nss/getXXent_r.c: Likewise.
8424         * nss/nsswitch.h (db_lookup_function): Add internal_function to
8425         definition.
8427         * include/time.h: Declare __localtime_r as hidden.
8429         * include/aliases.h: Declare __getaliasent_r as hidden.
8430         * include/grp.h: Declare __getgrent_r as hidden.
8431         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
8432         __getservent_r, and __getprotoent_r as hidden.
8433         * include/pwd.h: Declare __getpwent_r as hidden.
8434         * include/shadow.h: Declare __getspent_r as hidden.
8435         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
8437         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
8438         and __gconv_transliterate as hidden.
8439         Add internal_function to __gconv_get_path declaration.
8440         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
8441         definition.  Add attribute_hidden to __gconv_read_conf definition.
8443 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
8445         * elf/rtld.c: Declare _environ as hidden.
8446         * sysdeps/generic/dl-environ.c: Likewise.
8447         * sysdeps/generic/dl-sysdep.c: Likewise.
8449         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
8450         _dl_mcount_internal as hidden.
8452         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
8453         * sysdeps/generic/dl-brk.c: New file.
8454         * sysdeps/generic/dl-sbrk.c: New file.
8455         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
8456         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
8458         * elf/dl-minimal.c (malloc): Declare _end as hidden.
8459         (__errno_location): New function.  Declare errno as hidden.
8460         * elf/rtld.c (_dl_argc): Define as hidden.
8461         (_dl_skip_args): Define as hidden.
8462         (_begin, _end): Declare as hidden.
8463         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
8464         * sysdeps/generic/entry.h (_start): Declare as hidden.
8465         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
8466         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
8467         _dl_runtime_resolve and _dl_runtime_profile as hidden.
8468         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
8470 2002-03-14  Roland McGrath  <roland@frob.com>
8472         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
8474         * Makeconfig (%.v.i, %.v): New implicit rules.
8475         (preprocess-versions): Variable removed.
8476         ($(common-objpfx)shlib-versions.v.i): New target giving just the
8477         shlib-versions input files as dependencies.
8478         ($(common-objpfx)soversions.i): Depend on that instead of the input
8479         files.  Use it as input instead of using a pipeline.
8480         (postclean-generated): Append soversions.i, shlib-versions.v, and
8481         shlib-versions.v.i here.
8482         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
8483         the Versions.def input files as dependencies.
8484         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
8485         ($(common-objpfx)Versions.all): Depend on that instead of the input
8486         files.  Use it as input instead of using a pipeline.
8487         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
8488         (postclean-generated): Append those .v and .v.i files here.
8490 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
8492         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
8493         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
8494         Remove.
8496 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
8498         * sysdeps/generic/mp_clz_tab.c: New file.
8499         * sysdeps/i386/mp_clz_tab.c: New file.
8500         * sysdeps/hppa/mp_clz_tab.c: New file.
8501         * sysdeps/powerpc/mp_clz_tab.c: New file.
8502         * stdlib/Makefile (aux): Revert last patch.
8503         * math/Makefile (gmp-objs): Likewise.
8505 2002-03-13  Paul Eggert  <eggert@twinsun.com>
8507         * time/strftime.c: Comment fixes for references to obsolescent
8508         standards, In most cases the simplest fix is to remove the
8509         confusing comments.  Cross-referencing all the standards properly
8510         is a bit of a pain, and it should be enough to put that info in
8511         the documentation as I did in my recent time.texi patch.
8513 2002-03-13  Paul Eggert  <eggert@twinsun.com>
8515         * manual/time.texi (Formatting Calendar Time):
8516         ISO C99 also specifies the E and O modifiers.
8517         %P is a GNU extension, and is not in ISO C99.
8518         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
8519         %T is also in ISO C99.
8520         The RFC 822 example is not valid in arbitrary locales.
8521         Reword the POSIX.2 wording slightly, to make it a bit clearer
8522         that POSIX.2 formats are also supported by later POSIX versions.
8523         If a format was introduced in ISO C99 it is also required by
8524         POSIX.1-2001.
8526 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
8528         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
8529         _sys_nerr_internal with INTVARDEF2.
8530         * include/libc-symbols.h (INTVARDEF2): New macro.
8531         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
8532         (_sys_nerr_internal): Library.
8534         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
8535         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
8537         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
8539 2002-03-13  Wolfram Gloger  <wg@malloc.de>
8541         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
8543 2002-03-02  Andreas Schwab  <schwab@suse.de>
8545         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
8546         'h' flag and positional arg.
8547         * stdio-common/tst-printf.c (rfg3): New function to test
8548         positional arguments.
8549         (main): Fix some warnings.
8551 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
8553         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
8554         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8556 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
8558         * grp/initgroups.c (__nss_group_data): Declare as hidden.
8560         * include/locale.h (_nl_C_locobj): Declare as hidden.
8562         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
8563         * time/strptime.c (_nl_C_LC_TIME): Likewise.
8565         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
8567         * include/sys/gmon.h: Declare _gmonparam as hidden.
8569         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
8570         (__ctype32_wctrans): Likewise.
8571         (__ctype32_width): Likewise.
8573         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
8574         use of __ttyname.
8576         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
8577         Define as hidden.
8578         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
8579         hidden.  Change all users of these variables.
8581         * posix/regex_internal.h (__re_error_msgid): Renamed from
8582         re_error_msgid.  Declare as hidden.
8583         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
8584         hidden.
8586         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
8587         (__printf_function_table): Likewise.
8588         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
8589         hidden.
8590         (__printf_function_table): Likewise.
8592         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
8593         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
8595         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
8596         * nss/nsswitch.c: Declare _nss_*_database as hidden.
8598         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
8599         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
8601 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
8603         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
8604         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8605         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8606         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8607         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8608         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8609         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8610         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8611         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
8612         _nl_C_LC_CTYPE_width: Declare as hidden.
8613         * include/locale.h: Declare _nl_locale_file_list.
8614         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
8615         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
8616         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
8617         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
8618         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
8619         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
8620         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
8621         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
8622         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
8623         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
8624         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
8625         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
8626         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8627         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8628         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8629         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8630         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8631         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8632         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8633         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
8634         _nl_C_LC_CTYPE_width, and as hidden.
8635         * locale/findlocale.c: Declare _nl_C as hidden.
8636         * locale/newlocale.c: Likewise.
8637         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
8638         _nl_locale_file_list.
8639         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
8640         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
8641         Define _nl_C_locobj as hidden.
8643         * malloc/mtrace.c (_mtrace_file): Define as hidden.
8644         (_mtrace_line): Likewise.
8646         * include/time.h: Declare __mon_yday as hidden.
8647         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
8649         * libio/libioP.h: Declare __libio_codecvt as hidden.
8650         * libio/fileops.c: Declare __libio_translit as hidden.
8651         * libio/iofwide.c: Define __libio_translit as hidden.
8653         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
8654         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
8655         * login/getutline_r.c: Likewise.
8656         * login/utmpname.c: Likewise.
8658         * login/utmp-private.h: Declare __libc_utmp_file_functions,
8659         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
8660         __libc_utmp_file_name as hidden.
8662         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
8663         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
8664         * locale/freelocale.c: Likewise.
8665         * locale/lc-time.c: Likewise.
8667         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
8668         (__libc_ptyname2): Likewise.
8669         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
8670         hidden.
8671         (__libc_ptyname2): Likewise.
8673         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
8674         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
8675         * sysdeps/generic/init-first.c: Likewise.
8676         * sysdeps/i386/init-first.c: Likewise.
8677         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8678         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8679         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8680         * sysdeps/sh/init-first.c: Likewise.
8681         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8682         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8684         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8685         (_itowa_upper_digits): Likewise.
8687         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8688         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8689         as hidden.
8691         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8692         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8693         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8694         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8696         * gmon/gmon.c (__bb_head): Define as hidden.
8697         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8699         * argp/argp-parse.c (_argp_hang): Define as static.
8701         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8702         handling in latest compilers.
8704         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8705         define alias.
8706         * libio/fileops.c (_IO_file_jumps): Likewise.
8707         * libio/stdfiles.c (_IO_list_all): Likewise.
8708         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8710         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8711         include/malloc.h.
8712         * include/malloc.h: Add __libc_malloc_initialized declaration
8713         here.  Mark variable hidden.
8714         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8716         * elf/dl-open.c (__libc_argc): Declare as hidden.
8717         (__libc_argv): Likewise.
8718         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8719         (__libc_argv): Likewise.
8720         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8721         __libc_argv as hidden.
8722         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8723         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8724         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8725         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8727         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8728         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8729         * stdlib/erand48.c: Likewise.
8730         * stdlib/jrand48.c: Likewise.
8731         * stdlib/lcong48.c: Likewise.
8732         * stdlib/lrand48.c: Likewise.
8733         * stdlib/mrand48.c: Likewise.
8734         * stdlib/nrand48.c: Likewise.
8735         * stdlib/seed48.c: Likewise.
8736         * stdlib/srand48.c: Likewise.
8738         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8739         (_itoa_lower_digits_internal): New declaration.
8740         (_itoa_upper_digits_internal): New declaration.
8741         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8742         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8743         (_itoa_upper_digits_internal): New declaration.
8744         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8745         _itoa_lower_digits.
8746         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8747         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8749         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8750         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8752         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8753         (_itowa_lower_digits): Likewise.
8754         (_itowa_upper_digits): Likewise.
8755         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8756         (_itowa_upper_digits): Likewise.
8758         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8759         not already defined.
8760         (GERMANIC_PLURAL): Declare as hidden.
8762         * posix/getopt.c (__getopt_initialized): Declare as hidden.
8763         (attribute_hidden): Define as empty macro if not already defined.
8765         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8766         (__gconv_max_path_elem_len): Likewise.
8767         (__gconv_path_envvar): Likewise.
8769         * math/Makefile (gmp-objs): Remove mp_clz_tab.
8770         * stdlib/Makefile (aux): Remove mp_clz_tab.
8771         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
8773         * stdlib/exit.h (__exit_funcs): Declare as hidden.
8775         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8777         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8778         _nl_category_names, _nl_category_name_sizes, _nl_current,
8779         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8781         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8782         (_nl_current_default_domain): Likewise
8783         (_nl_state_lock): Likewise.
8784         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8785         (_nl_current_default_domain): Likewise
8786         (_nl_state_lock): Likewise.
8787         * intl/bindtextdom.c (_nl_state_lock): Likewise.
8789         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8790         (_fpioconst_pow10): Likewise.
8792         * include/time.h (_tmbuf): Add attribute_hidden.
8794         * time/tzset.c (tzstring_list): Define as static.
8796         * include/time.h: Add attribute_hidden to __tzname_cur_max and
8797         __use_tzfile declaration.
8799         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8800         and __wcsmbs_last_locale declaration.
8802 2002-02-25  Paul Eggert  <eggert@twinsun.com>
8804         * timezone/Makefile (tzbases): Move systemv from here...
8805         (tzlinks): to here, since the entries in systemv were all changed
8806         from Zone to Link lines in tz-2001a.  Bug reported (and patch
8807         tested) by Peter Breitenlohner.
8809 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
8811         * time/tst-posixtz.c (tests): Add new tests.
8812         (main): Test whether tzset() sets daylight properly.
8814 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8816         * time/tzset.c (tz_compute): Move __daylight, __tzname and
8817         __tzname_cur_max setting...
8818         (tzset_internal): ...here.
8820 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8822         * time/tzset.c (compute_change): Don't return any value.
8823         (tz_compute): Likewise.  Don't handle southern hemisphere here.
8824         (__tz_convert): But here.
8826 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8828         * manual/examples/mkfsock.c: Include <string.h> as well.
8829         Patch by Alain De Carolis <alaind@wseurope.com>.
8831 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
8833         * posix/regexec.c (re_match): Fix incorrect register sizes.
8834         (re_search): Likewise.
8836 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8838         * posix/regcomp.c (regfree): Remove a disused condition.
8839         * posix/regex_internal.c (re_acquire_state): Likewise.
8840         (re_acquire_state_context): Likewise.
8841         (register_state): Remove a redundant malloc invocation.
8842         * posix/regex_internal.h: (re_state_table_entry): Simplify
8843         the structure.
8845 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8847         * posix/regcomp.c (regcomp): Add __builtin_expect to error
8848         handling conditions.
8849         (regerror): Likewise.
8850         (regfree): Likewise.
8851         (re_compile_internal): Likewise.
8852         (init_dfa): Likewise.
8853         (init_word_char): Likewise.
8854         (create_initial_state): Likewise.
8855         (analyze): Likewise.
8856         (analyze_tree): Likewise.
8857         (duplicate_node): Likewise.
8858         (calc_eclosure): Likewise.
8859         (calc_eclosure_iter): Likewise.
8860         (parse): Likewise.
8861         (parse_reg_exp): Likewise.
8862         (parse_branch): Likewise.
8863         (parse_expression): Likewise.
8864         (parse_subexp): Likewise.
8865         (parse_dup_op): Likewise.
8866         (parse_bracket_exp): Likewise.
8867         (build_equiv_class): Likewise.
8868         (build_charclass): Likewise.
8869         (build_word_op): Likewise.
8870         (fetch_number): Likewise.
8871         (create_tree): Likewise.
8872         (duplicate_tree): Likewise.
8873         * posix/regex.c (BE): New macro.
8874         * posix/regexec.c (re_match): Add __builtin_expect to error
8875         handling conditions.
8876         (re_match_2): Likewise.
8877         (re_search): Likewise.
8878         (re_search_internal): Likewise.
8879         (check_matching): Likewise.
8880         (proceed_next_node): Likewise.
8881         (set_regs): Likewise.
8882         (sift_states_backward): Likewise.
8883         (add_epsilon_backreference): Likewise.
8884         (transit_state): Likewise.
8885         (transit_state_sb): Likewise.
8886         (transit_state_mb): Likewise.
8887         (transit_state_bkref): Likewise.
8888         (transit_state_bkref_loop): Likewise.
8889         (build_trtable): Likewise.
8890         (group_nodes_into_DFAstates): Likewise.
8891         (match_ctx_init): Likewise.
8892         (match_ctx_add_entry): Likewise.
8893         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8894         to error handling conditions.
8895         (re_string_construct_toupper): Likewise.
8896         (build_wcs_buffer): Likewise.
8897         (build_wcs_upper_buffer): Likewise.
8898         (build_upper_buffer): Likewise.
8899         (re_string_translate_buffer): Likewise.
8900         (re_node_set_alloc): Likewise.
8901         (re_node_set_init_1): Likewise.
8902         (re_node_set_init_2): Likewise.
8903         (re_node_set_init_copy): Likewise.
8904         (re_node_set_intersect): Likewise.
8905         (re_node_set_init_union): Likewise.
8906         (re_node_set_merge): Likewise.
8907         (re_node_set_insert): Likewise.
8908         (re_dfa_add_node): Likewise.
8909         (re_acquire_state): Likewise.
8910         (re_acquire_state_context): Likewise.
8911         (create_new_state_common): Likewise.
8912         (register_state): Likewise.
8913         (create_ci_new_state): Likewise.
8914         (create_cd_new_state): Likewise.
8915         (re_string_context_at): Remove redundant condition.
8917 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8919         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8921         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8923 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
8925         * sysdeps/i386/elf/configure.in: Fix comment.
8927         * sysdeps/sparc/sparc64/configure.in: New file.
8928         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8929         if .dynamic comes before .got.
8930         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8932         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8933         HP_TIMING_ACCUM): Fix typos.
8935 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8937         * string/strfry.c: Add some more randomness to the seed.
8938         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8940         * po/es.po: Update from translation team.
8941         * po/fr.po: Likewise.
8943         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8945         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8946         when determining type of format.
8947         Patch by James Antill <james@anqd.org> [PR libc/2787].
8949 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
8951         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8953 2002-03-11  Roland McGrath  <roland@frob.com>
8955         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8957         * Versions.def (libc): Add GLIBC_2.2.6.
8958         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8959         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8960         __errno_location instead of __hurd_errno_location, and don't inline it.
8961         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8962         * hurd/errno.c: New file.
8963         * hurd/Makefile (routines): Add errno.
8965 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8967         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8968         ridiculously large widths and precisions [PR libc/3026].
8970 2002-03-11  Andreas Jaeger  <aj@suse.de>
8972         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8973         support.
8974         Patch by Susanne Oberhauser <froh@SuSE.de>.
8976 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8978         * inet/rexec.c (ahostbuf): Define as static.
8980         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8981         (__ctype32_wctrans): Likewise.
8982         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8983         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8984         (__ctype32_wctrans): Likewise.
8985         (__ctype32_width): Likewise.
8987         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8988         They were never exported anyway.
8990         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8991         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
8992         exported.
8993         * include/sys/gmon.h: Declare _gmonparam.
8995         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8996         symbols for getdents64.  They were never exported.
8998 2002-03-09  Roland McGrath  <roland@frob.com>
9000         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
9001         Reported by Jon Arney <jarney1@cox.net>.
9003 2002-02-23  Roland McGrath  <roland@frob.com>
9005         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
9006         declaration.
9007         (__hurd_errno_location): Function removed.
9009 2002-03-06  Andreas Jaeger  <aj@suse.de>
9011         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
9012         32-bit.
9014 2002-03-04  Andreas Jaeger  <aj@suse.de>
9016         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
9018         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
9019         x86-64.
9021         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
9023         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
9025         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
9027         * sysdeps/x86_64/bits/setjmp.h: New file.
9029         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
9031         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
9033         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
9034         for x86.
9035         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
9036         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
9038 2002-02-28  Bo Thorsen  <bo@suse.de>
9040         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
9041         version.
9043 2002-03-03  Andreas Jaeger  <aj@suse.de>
9045         * sysdeps/x86_64/bits/wordsize.h: New file.
9047         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
9048         * elf/tst-tlsmod1.c: Likewise.
9050         * posix/regcomp.c: Get regex.h from include dir for internal
9051         prototypes.
9053         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
9054         to libc-internal.h and include it.
9055         * include/libc-internal.h: Add __init_misc.
9057         * misc/init-misc.c: Include libc-internal.h for prototypes.
9059         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
9061         * misc/error.c [_LIBC]: Include libioP.h for prototype of
9062         _IO_putc_internal.
9064 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
9066         * posix/regcomp.c: Compatibility changes to allow using the code
9067         outside glibc.
9069 2002-02-28  Hartvig Ekner <hartvige@mips.com>
9071         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
9072         compiled non-PIC.
9074 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
9076         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
9077         of .str elements in the returned data structure.
9079         * elf/elf.h: Add Alpha TLS bits.
9081 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
9083         * sysdeps/unix/sysv/linux/nice.c: New file.
9085 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
9087         * elf/Makefile (dl-routines): Add dl-origin.
9088         (elide-routines.os): Add dl-origin.
9089         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
9090         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
9091         _dl_debug_state.
9092         * include/libc-symbols.c: Define attribute_hidden depending on
9093         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
9095         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
9096         * elf/dl-load.c: Likewise.
9097         * elf/rtld.c: Likewise.
9098         * include/unistd.h: Declare __libc_enable_secure_internal.
9099         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
9100         Use INTUSE with __libc_enable_secure.
9101         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
9103         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
9104         * elf/dl-error.c: Likewise,
9105         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
9107         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
9108         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
9109         function definition.  Use INTDEF with _dl_get_origin.
9110         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9112         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
9113         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
9115         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
9116         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
9117         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
9119         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
9120         * elf/dl-deps.c: Likewise.
9121         * elf/dl-error.c: Likewise.
9122         * elf/dl-fini.c: Likewise.
9123         * elf/dl-init.c: Likewise.
9124         * elf/dl-load.c: Likewise.
9125         * elf/dl-lookup.c: Likewise.
9126         * elf/dl-reloc.c: Likewise.
9127         * elf/dl-version.c: Likewise.
9128         * elf/do-lookup.h: Likewise.
9129         * sysdeps/arm/dl-machine.h: Likewise.
9130         * sysdeps/cris/dl-machine.h: Likewise.
9131         * sysdeps/hppa/dl-machine.h: Likewise.
9132         * sysdeps/i386/dl-machine.h: Likewise.
9133         * sysdeps/m68k/dl-machine.h: Likewise.
9134         * sysdeps/powerpc/dl-machine.h: Likewise.
9135         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9136         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9137         * sysdeps/sh/dl-machine.h: Likewise.
9138         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
9139         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
9140         * sysdeps/x86_64/dl-machine.h: Likewise.
9141         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
9142         _dl_argv[0].  Use INTUSE with _dl_argv.
9143         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
9144         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
9146 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
9148         * elf/rtld.c (_rtld_global): Remove .protected.
9149         (_rtld_local): Strong alias to _rtld_global.
9150         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
9151         only .os object.
9152         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
9153         _rtld_local instead of _rtld_global.
9154         (_rtld_local): Add hidden extern, possibly in .sdata section.
9155         * configure.in: Add tests for visibility attribute and .sdata.
9156         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
9157         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
9158         * sysdeps/arm/dl-machine.h: Likewise.
9159         * sysdeps/generic/ldsodefs.h: Likewise.
9160         * sysdeps/hppa/dl-machine.h: Likewise.
9161         * sysdeps/cris/dl-machine.h: Likewise.
9162         * sysdeps/i386/dl-machine.h: Likewise.
9163         * sysdeps/ia64/dl-machine.h: Likewise.
9164         * sysdeps/m68k/dl-machine.h: Likewise.
9165         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9166         * sysdeps/mips/dl-machine.h: Likewise.
9167         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9168         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9169         * sysdeps/sh/dl-machine.h: Likewise.
9170         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9171         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9172         * sysdeps/x86_64/dl-machine.h: Likewise.
9174 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
9176         * login/login.c (login): Always initialize ut_line field
9177         [PR libc/2991].
9179 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
9181         * sysdeps/i386/Makefile (sysdep_routines): Add
9182         divdi3 in csu dir.
9183         (shared-only-routines): Likewise.
9184         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
9185         (shared-only-routines): Likewise.
9186         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
9187         (shared-only-routines): Likewise.
9188         * sysdeps/wordsize-32/divdi3.c: New file.
9190 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
9192         * locale/iso-4217.def: Remove obsolete currencies for countries
9193         with Euro.
9195 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
9197         * posix/regcomp.c (regcomp): Remove a redundant condition.
9198         (init_word_char): Add a check on malloc failure.
9199         (create_initial_state): Likewise.
9200         (duplicate_node): Likewise.
9201         (calc_eclosure): Likewise.
9202         (calc_eclosure_iter): Likewise.
9203         (parse_expression): Likewise.
9204         (parse_bracket_exp): Remove unnecessary malloc invocations.
9205         (build_equiv_class): Likewise.
9206         (build_charclass): Likewise.
9207         * posix/regex_internal.c (re_node_set_intersect): Add a check
9208         on malloc failure.
9209         (re_node_set_add_intersect): Likewise.
9210         (re_node_set_merge): Likewise.
9211         (re_acquire_state): Likewise.
9212         (re_acquire_state_context): Likewise.
9213         (create_newstate_common): Likewise.
9214         (register_state): Likewise.
9215         (create_ci_newstate): Likewise.
9216         (create_cd_newstate): Likewise.
9217         * posix/regex_internal.h: Fix prototypes of re_acquire_state
9218         and re_acquire_state_context.
9219         * posix/regexec.c (regexec): Suit it to the error handling of
9220         re_search_internal.
9221         (re_match): Likewise.
9222         (re_search): Likewise.
9223         (re_search_internal): Add a check on malloc failure.
9224         (acquire_init_state_context): Likewise.
9225         (check_matching): Likewise.
9226         (proceed_next_node): Likewise.
9227         (set_regs): Likewise.
9228         (sift_states_backward): Likewise.
9229         (sift_states_iter_bkref): Likewise.
9230         (add_epsilon_backreference): Likewise.
9231         (transit_state): Likewise.
9232         (transit_state_sb): Likewise.
9233         (transit_state_mb): Likewise.
9234         (transit_state_bkref_loop): Likewise.
9235         (build_trtable): Likewise.
9236         (group_nodes_into_DFAstates): Likewise.
9237         (match_ctx_init): Likewise.
9238         (match_ctx_add_entry): Likewise.
9240 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
9242         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
9243         l_libname if profiling is enabled [PR libc/2916].
9245         * sysdeps/ia64/dl-tls.h: New file.
9247 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
9249         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
9250         Work around an Alpha gas bug.
9252 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
9254         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
9255         uses read to load the catalog.
9256         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
9258 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
9260         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
9261         regex_internal.c, and regex_internal.h.
9262         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
9263         * posix/regex.c: Complete rewrite.
9264         * posix/regexec.c: New file.
9265         * posix/regcomp.c: New file.
9266         * posix/regex_internal.c: New file.
9267         * posix/regex_internal.h: New file.
9268         * posix/regex.h (RE_ICASE): New macro.
9269         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
9271         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
9272         ungetwc.  It's a macro.
9273         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
9274         implementation.
9275         Reported by Jason Merrill <jason@redhat.com>.
9277 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
9279         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
9280         position to fp->_offset if it is set.
9281         * stdio-common/Makefile (tests): Add tst-fdopen.
9282         * stdio-common/tst-fdopen.c: New test.
9284 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
9286         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
9287         * stdio-common/tst-ungetc.c (main): Add another test.
9289 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
9291         * assert/assert-perr.c: Use INTUSE to reference functions and variables
9292         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
9293         aliases.  Add prototypes for the new aliases.
9294         * assert/assert.c: Likewise.
9295         * include/libc-symbols.h: Likewise.
9296         * include/stdio.h: Likewise.
9297         * include/netinet/in.h: Likewise.
9298         * include/rpc/auth.h: Likewise.
9299         * include/rpc/auth_unix.h: Likewise.
9300         * include/rpc/key_prot.h: Likewise.
9301         * include/rpc/pmap_prot.h: Likewise.
9302         * include/rpc/pmap_rmt.h: Likewise.
9303         * include/rpc/rpc_msg.h: Likewise.
9304         * include/rpc/xdr.h: Likewise.
9305         * inet/gethstbyad_r.c: Likewise.
9306         * inet/gethstbynm2_r.c: Likewise.
9307         * inet/gethstbynm_r.c: Likewise.
9308         * inet/gethstent_r.c: Likewise.
9309         * inet/in6_addr.c: Likewise.
9310         * libio/__fpurge.c: Likewise.
9311         * libio/filedoalloc.c: Likewise.
9312         * libio/fileops.c: Likewise.
9313         * libio/ftello.c: Likewise.
9314         * libio/ftello64.c: Likewise.
9315         * libio/genops.c: Likewise.
9316         * libio/iofclose.c: Likewise.
9317         * libio/iofdopen.c: Likewise.
9318         * libio/iofflush.c: Likewise.
9319         * libio/iofflush_u.c: Likewise.
9320         * libio/iofgetpos.c: Likewise.
9321         * libio/iofgetpos64.c: Likewise.
9322         * libio/iofgets.c: Likewise.
9323         * libio/iofgets_u.c: Likewise.
9324         * libio/iofopen.c: Likewise.
9325         * libio/iofopncook.c: Likewise.
9326         * libio/iofputs.c: Likewise.
9327         * libio/iofread.c: Likewise.
9328         * libio/iofread_u.c: Likewise.
9329         * libio/iofsetpos.c: Likewise.
9330         * libio/iofsetpos64.c: Likewise.
9331         * libio/ioftell.c: Likewise.
9332         * libio/iofwrite.c: Likewise.
9333         * libio/iogetline.c: Likewise.
9334         * libio/iogets.c: Likewise.
9335         * libio/iogetwline.c: Likewise.
9336         * libio/iolibio.h: Likewise.
9337         * libio/iopadn.c: Likewise.
9338         * libio/iopopen.c: Likewise.
9339         * libio/ioseekoff.c: Likewise.
9340         * libio/ioseekpos.c: Likewise.
9341         * libio/iosetbuffer.c: Likewise.
9342         * libio/iosetvbuf.c: Likewise.
9343         * libio/ioungetc.c: Likewise.
9344         * libio/ioungetwc.c: Likewise.
9345         * libio/iovdprintf.c: Likewise.
9346         * libio/iovsprintf.c: Likewise.
9347         * libio/iovsscanf.c: Likewise.
9348         * libio/libioP.h: Likewise.
9349         * libio/memstream.c: Likewise.
9350         * libio/obprintf.c: Likewise.
9351         * libio/oldfileops.c: Likewise.
9352         * libio/oldiofclose.c: Likewise.
9353         * libio/oldiofdopen.c: Likewise.
9354         * libio/oldiofgetpos.c: Likewise.
9355         * libio/oldiofgetpos64.c: Likewise.
9356         * libio/oldiofopen.c: Likewise.
9357         * libio/oldiofsetpos.c: Likewise.
9358         * libio/oldiofsetpos64.c: Likewise.
9359         * libio/oldiopopen.c: Likewise.
9360         * libio/oldstdfiles.c: Likewise.
9361         * libio/putc.c: Likewise.
9362         * libio/setbuf.c: Likewise.
9363         * libio/setlinebuf.c: Likewise.
9364         * libio/stdfiles.c: Likewise.
9365         * libio/stdio.c: Likewise.
9366         * libio/strops.c: Likewise.
9367         * libio/vasprintf.c: Likewise.
9368         * libio/vscanf.c: Likewise.
9369         * libio/vsnprintf.c: Likewise.
9370         * libio/vswprintf.c: Likewise.
9371         * libio/wfiledoalloc.c: Likewise.
9372         * libio/wfileops.c: Likewise.
9373         * libio/wgenops.c: Likewise.
9374         * libio/wstrops.c: Likewise.
9375         * malloc/mtrace.c: Likewise.
9376         * misc/error.c: Likewise.
9377         * misc/syslog.c: Likewise.
9378         * nss/getXXbyYY_r.c: Likewise.
9379         * nss/getXXent_r.c: Likewise.
9380         * nss/hosts-lookup.c: Likewise.
9381         * stdio-common/getw.c
9382         * stdio-common/printf-prs.c: Likewise.
9383         * stdio-common/printf_fp.c: Likewise.
9384         * stdio-common/printf_size.c: Likewise.
9385         * stdio-common/putw.c: Likewise.
9386         * stdio-common/scanf.c: Likewise.
9387         * stdio-common/sprintf.c: Likewise.
9388         * stdio-common/tmpfile64.c: Likewise.
9389         * stdio-common/vfprintf.c: Likewise.
9390         * stdio-common/vfscanf.c: Likewise.
9391         * stdlib/strfmon.c: Likewise.
9392         * sunrpc/auth_des.c: Likewise.
9393         * sunrpc/auth_none.c: Likewise.
9394         * sunrpc/auth_unix.c: Likewise.
9395         * sunrpc/authdes_prot.c: Likewise.
9396         * sunrpc/authuxprot.c: Likewise.
9397         * sunrpc/clnt_perr.c: Likewise.
9398         * sunrpc/clnt_raw.c: Likewise.
9399         * sunrpc/clnt_tcp.c: Likewise.
9400         * sunrpc/clnt_udp.c: Likewise.
9401         * sunrpc/clnt_unix.c: Likewise.
9402         * sunrpc/key_call.c: Likewise.
9403         * sunrpc/key_prot.c: Likewise.
9404         * sunrpc/openchild.c: Likewise.
9405         * sunrpc/pm_getmaps.c: Likewise.
9406         * sunrpc/pm_getport.c: Likewise.
9407         * sunrpc/pmap_clnt.c: Likewise.
9408         * sunrpc/pmap_prot.c: Likewise.
9409         * sunrpc/pmap_prot2.c: Likewise.
9410         * sunrpc/pmap_rmt.c: Likewise.
9411         * sunrpc/rpc_cmsg.c: Likewise.
9412         * sunrpc/rpc_prot.c: Likewise.
9413         * sunrpc/svc_authux.c: Likewise.
9414         * sunrpc/svc_raw.c: Likewise.
9415         * sunrpc/svc_simple.c: Likewise.
9416         * sunrpc/svc_tcp.c: Likewise.
9417         * sunrpc/svc_udp.c: Likewise.
9418         * sunrpc/svc_unix.c: Likewise.
9419         * sunrpc/xdr.c: Likewise.
9420         * sunrpc/xdr_array.c: Likewise.
9421         * sunrpc/xdr_mem.c: Likewise.
9422         * sunrpc/xdr_rec.c: Likewise.
9423         * sunrpc/xdr_ref.c: Likewise.
9424         * sunrpc/xdr_stdio.c: Likewise.
9425         * sysdeps/generic/_strerror.c: Likewise.
9426         * sysdeps/generic/printf_fphex.c: Likewise.
9427         * sysdeps/generic/tmpfile.c: Likewise.
9428         * sysdeps/gnu/errlist.awk: Likewise.
9429         * sysdeps/gnu/errlist.c: Likewise.
9431         * libio/Makefile (routines): Remove iosprint.
9432         * libio/iosprintf.c: Removed
9435 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
9437         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
9438         non_dynamic_init and exported now.
9439         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
9440         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
9441         !SHARED.
9442         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
9443         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
9444         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
9446 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
9448         * elf/dl-close.c (free_slotinfo): Check for end of list and return
9449         true in this case.
9451         * locale/iso-639.def: Add language codes for Walloon.
9453         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
9454         total number of relocations performed.
9456         * elf/sprof.c (load_profdata): If do_test provide information as
9457         to why loading failed.
9458         * elf/dl-profile.c (_dl_start_profile): Initialize all of
9459         hist_hdr.dimen.
9461         * csu/set-init.c: Moved to...
9462         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
9463         * csu/Makefile: Don't compile set-init.
9464         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
9465         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
9466         to __libc_init.
9467         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
9468         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
9469         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
9470         __libc_init.
9471         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
9472         __libc_subinit.
9474 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
9476         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
9477         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
9478         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
9479         (_dl_deallocate_tls): New function.
9480         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
9481         _dl_deallocate_tls.
9483 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
9485         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
9486         * stdio-common/tst-fseek.c (main): Add test for this.
9488 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
9490         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
9492 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
9494         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
9495         pointer before dereferencing.
9497 2002-02-18  Roland McGrath  <roland@frob.com>
9499         * sysdeps/mach/hurd/times.c: Fix typo in last change.
9501         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
9502         Use task_policy in place of task_priority.
9504         * sysdeps/generic/bits/mman.h
9505         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
9506         * sysdeps/mach/msync.c: New file.
9508         * sysdeps/mach/powerpc/syscall.S: New file.
9510         * mach/msg.c [MACH_MSG_OVERWRITE]
9511         (__mach_msg_trap, __mach_msg_overwrite): New functions.
9512         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
9514         * sysdeps/mach/configure.in: Check for clock.defs to put into
9515         mach_interface_list.
9516         * sysdeps/mach/configure: Regenerated.
9518         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
9519         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
9520         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
9521         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
9522         (mach-shortcuts): Add device_read_overwrite_request,
9523         device_read_overwrite, vm_read_overwrite, thread_switch.
9525         * configure.in (base_machine): Set to $machine by default.
9526         * configure: Regenerated.
9528         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
9529         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
9530         * sysdeps/mach/configure: Regenerated.
9531         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
9533         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
9535         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
9537         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
9538         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
9540 2002-02-17  Roland McGrath  <roland@frob.com>
9542         * sysdeps/mach/hurd/times.c
9543         [NO_CREATION_TIME] (startup_time): New static variable.
9544         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
9545         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
9546         creation_time from task_basic_info.
9547         (__times): Use __gettimeofday instead of __host_get_time.
9549         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
9550         Use untyped Mach IPC message format.
9552         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
9554         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
9555         _S_catch_exception_raise_state_identity,
9556         _hurdsig_fault_catch_exception_raise_state,
9557         _hurdsig_fault_catch_exception_raise_state_identity.
9559         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
9561         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
9562         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
9564         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
9565         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
9567         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
9568         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
9569         them as no-op macros.
9570         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
9571         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
9573         * sysdeps/powerpc/dl-machine.h
9574         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
9576         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
9577         Use untyped Mach IPC message format.
9579         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
9580         Handle untyped Mach IPC message formats.
9582         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
9583         Expect different argument conventions when this is defined.
9584         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
9585         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
9586         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
9587         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
9588         for OSF Mach variant.
9589         (faulted): Use mig_reply_error_t for REPLY.
9590         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
9591         in __thread_set_exception_ports call.
9592         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
9593         __mach_port_set_attributes in place of __mach_port_set_qlimit.
9595         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
9596         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
9597         on Darwin, which includes bogons.
9599         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
9600         variable LOADBASE so it's not declared when it's not used.
9602 2002-02-16  Roland McGrath  <roland@frob.com>
9604         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
9605         to use BI.creation_time.
9607         * mach/Machrules (MIG): Add -x c to CPP value passed down.
9609         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
9610         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
9611         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
9612         host_page_size instead of vm_statistics.
9614         * sysdeps/mach/Makefile (mach-before-compile): Don't include
9615         mach_interface.h here, since not all variants use that name.
9617         * sysdeps/mach/configure.in: Add some checks for Mach headers
9618         to ensure a sane installation.
9619         (mach_interface_list): Define this variable by checking for .defs
9620         files found in various variants.
9621         * configure.in (mach_interface_list): AC_SUBST this.
9622         * config.make.in (mach-interface-list): New substituted variable.
9623         * mach/Makefile (user-interfaces): Define this using the value
9624         of $(mach-interface-list) instead of mach, mach4.
9625         Updated other references to mach_interface to use it as well.
9627         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
9629         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
9630         mig_reply_error_t for OSF Mach variant.
9632         * mach/Makefile (routines): Remove bootprivport.
9633         * mach/bootprivport.c: File removed.  It has never been used.
9635         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
9636         Grok the OSF flavor of message format.
9637         (mach_msg_destroy_port): For MAKE_SEND and
9638         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
9639         no-senders notification.
9641 2002-02-06  Roland McGrath  <roland@frob.com>
9643         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
9644         to here if 2.0 compatibility enabled ...
9645         (libc: GLIBC_2.1.3): ... from here.
9647 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
9649         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
9650         generation counter.
9651         * elf/dl-close.c (_dl_close): Likewise.
9653 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
9655         * elf/Makefile: Add rules to build and run tst-tls8.
9656         * elf/tst-tls8.c: New file.
9657         * elf/tst-tlsmod4.c: New file.
9659         * stdlib/test-a64l.c (tests): Add more test cases.
9661         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
9662         Reported by Walter Harms <WHarms@bfs.de>.
9664 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
9666         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
9667         definitions for struct sigcontext.
9668         Suggested by David Mosberger-Tang.
9670 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9672         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
9673         for removing reference of module in slotinfo list.
9674         (_dl_close): Use remove_slotinfo.
9675         * sysdeps/generic/dl-tls.c: General pretty printing.
9676         (oom): Define only if SHARED.
9677         (_dl_next_tls_modid): Correct starting point for the case we assume
9678         there is a gap.  Add missing instruction grouping (doh!).  Correct
9679         tests for reaching maximum index.
9680         * elf/Makefile: Add rules to build and run tst-tls7.
9681         * elf/tst-tls7.c: New file.
9682         * elf/tst-tlsmod3.c: New file.
9684         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9685         USE_TLS.
9686         * elf/tst-tlsmod2.c: Likewise.
9688         * elf/dl-close.c (_dl_close): When closing an object using TLS
9689         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9690         true.  Increment dl_tls_generation only if we closed any TLS-using
9691         object.
9692         * elf/tst-tls6.c: New file.
9693         * elf/Makefile: Add rules to build and run tst-tls6.
9695         * po/da.po: Update from translation team.
9697         * locale/categories.def: Fix typo [PR libc/2948].
9698         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9699         [PR libc/2949].
9700         * locale/iso-4217.def: Update from official version [PR libc/2950].
9701         * glibcbug.in: Honor TMPDIR [PR libc/2951].
9702         * locale/programs/ld-collate.c (collate_finish): Bail out with a
9703         message if input is too confusion instead of using assert.
9704         (collate_read): Don't crash on unknown symbol [PR libc/2952].
9705         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9707         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9708         * elf/tst-tls2.c: Likewise.
9709         * elf/tst-tls3.c: Likewise.
9711 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
9713         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9715 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9717         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9718         if this is really necessary.
9720         * elf/dl-close.c (_dl_close): Implement freeing entries in the
9721         slotinfo array.
9722         (free_mem): Free memory for the slotinfo array if possible.
9724 2002-02-12  Andreas Schwab  <schwab@suse.de>
9726         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9728 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
9730         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9731         TLS_DTV_UNALLOCATE.
9732         (oom): New function.
9733         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9734         (_dl_determine_tlsoffset): Likewise.
9735         (_dl_allocate_tls): Likewise.
9736         (__TLS_GET_ADDR): Define if not already defined.
9737         (_dl_tls_symaddr): New function.
9738         (allocate_and_init): New function.
9739         (__tls_get_addr): Actually implement handling of generation counter
9740         and deferred allocation.
9741         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9742         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9743         _dl_tls_generation.
9744         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9745         Declare _dl_tls_symaddr.
9746         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9747         SHARED.
9748         * include/link.h (struct link_map):  Remove l_tls_nextimage and
9749         l_tls_previmage.
9750         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9751         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9752         (_dl_vsym): Likewise.
9753         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9754         layout.
9755         (dl_main): Allow PT_TLS be present for empty segment.  Remove
9756         nextimage list handling.  Instead add all modules using TLS to
9757         dl_tls_dtv_slotinfo_list.
9758         * elf/dl-open.c (dl_open_worker): After successfully loading all
9759         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9760         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9761         empty segment don't do anything.  Remove handling of initimage list.
9762         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9763         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9764         * elf/dl-minimal.c: Define __libc_memalign.
9765         * elf/dl-support.c: Remove _dl_initimage_list.  Add
9766         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9767         _dl_tls_generation.
9768         * include/stdlib.h: Declare __libc_memalign.
9770         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9771         * elf/tst-tls4.c: New file.
9772         * elf/tst-tls5.c: New file.
9773         * elf/tst-tlsmod2.c: New file.
9775         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9777         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9779         * elf/tst-tls1.c: Use test-skeleton.c.
9780         * elf/tst-tls2.c: Likewise.
9781         * elf/tst-tls3.c: Likewise.
9783         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9785 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
9787         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9789 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
9791         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9793         * elf/tst-tls3.c: New file.
9794         * elf/tst-tlsmod1.c: New file.
9795         * elf/Makefile: Add rules to build and run tst-tls3.
9797         * sysdeps/i386/dl-machine.h: Include <tls.h>.
9798         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9799         TLS relocations.
9801         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9803         * po/fr.po: Update from translation team.
9805         * elf/tls-macros.h: Add alternative macros for use in PIC.
9807         * elf/dl-lookup.c: Include <tls.h>.
9808         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9810         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9811         required by passing pointer to last element of the list.
9813         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9814         l_tls_initimage to a place where it actually is performed.
9816         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9817         after globfree() calls.
9819         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9820         (openaux): Pass open_mode as new last argument to _dl_map_object.
9821         (_dl_map_object_deps): Add new argument open_mode.  Initialize
9822         open_mode element of args variable with it.
9823         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9824         _dl_map_object_deps.
9825         * elf/rtld.c (dl_main): Add zero as last parameter to
9826         _dl_map_object_deps call.
9827         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9828         * elf/nodlopen2.c: New file.
9829         * elf/nodlopenmod2.c: New file.
9830         * elf/Makefile: Add rules to build and run nodlopen2.
9832         * elf/tst-tls1.c: Move TLS helper macros to...
9833         * elf/tls-macros.h: ...here.  New file.
9834         * elf/tst-tls2.c: New file.
9835         * elf/Makefile (tests): Add tst-tls2.
9836         (distribute): Add tls-macros.h.
9838         * po/sv.po: Update from translation team.
9840         * elf/tst-tls1.c (main): Add complete set of tests.  Split
9841         architecture specific definitions from the actual test code.
9843         * po/tr.po: Update from translation team.
9845 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
9847         * elf/Makefile (tests): Add tst-tls1.
9848         * elf/tst-tls1.c: New file.
9850         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9851         alignment of TCB for now.
9853         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9854         initialization image for the application itself.
9856         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9857         loop to initialize TLS block.
9859 2002-02-08  Richard Henderson  <rth@redhat.com>
9861         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9862         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9864         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9866 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
9868         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9870 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
9872         * po/ca.po: Update from translation team.
9873         * po/sk.po: Likewise.
9875         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9876         (dl_main): Move dtv/static TLS handling before relocation.
9877         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
9878         TLS_INIT_TP to allocate and install the dtv/static TLS block.
9879         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9880         so far uses TLS initialize GL(dl_tls_static_size) and
9881         GL(dl_tls_static_align) to account for the TCB.
9882         (_dl_allocate_tls): New function.
9883         * sysdeps/generic/ldsodefs.h (rtld_global): Add
9884         _dl_initial_dtv_malloced.
9886         * configure.in: Test for __builtin_memset more realistically.
9888         * csu/version.c (banner): If TLS support is available say so.
9890 2002-02-04  H.J. Lu  <hjl@gnu.org>
9892         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9893         __attribute_used__.
9894         (__dl_runtime_resolve): Likewise.
9896         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9897         declaration.
9899 2001-11-15  H.J. Lu  <hjl@gnu.org>
9901         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9902         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9904         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9906 2002-02-07  H.J. Lu  <hjl@gnu.org>
9908         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9909         ".set noreorder".
9910         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9911         Likewise.
9913 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9915         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9917         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9918         ___tls_get_addr_internal.
9919         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9921         * po/ko.po: Update from translation team.
9923 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
9925         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9926         attribute, change __pad{1,2} type to unsigned int.
9927         (struct stat64): Remove packed attribute.
9929 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9931         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9933 2002-02-07  Andreas Schwab  <schwab@suse.de>
9935         * configure.in: Fix check for -zcombreloc.
9937 2002-02-06  H.J. Lu  <hjl@gnu.org>
9939         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9940         * configure.in: Check if __builtin_memset really works.
9941         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9942         __GNUC_PREREQ (2, 96) before using __builtin_memset.
9944 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9946         * io/bug-ftw3.c (main): Don't try the test if root.
9948 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9950         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9951         constraints.
9952         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9953         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9954         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9955         Likewise.
9956         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9957         a weak alias for __clone.
9958         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9959         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9960         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9961         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9962         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9963         a weak alias for __mmap64.
9965 2002-02-05  H.J. Lu  <hjl@gnu.org>
9967         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9968         (atomic_add): Likewise.
9969         (compare_and_swap): Likewise.
9970         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9972 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9974         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9976         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9977         alignment of the TCB and store total size and alignment of static
9978         TLS block in _dl_tls_static_size and _dl_tls_static_align.
9979         tls_index is a typedef.
9980         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9981         _dl_tls_static_align.
9982         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9983         * elf/dl-support.c: Define _dl_tls_static_size and
9984         _dl_tls_static_align.
9986 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9988         * configure.in: Add --without-tls option.
9989         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9990         --without-tls is given.
9992         * sysdeps/generic/dl-tls.c: Include <tls.h>.
9994         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9996 2002-02-06  Roland McGrath  <roland@frob.com>
9998         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9999         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
10001         * scripts/versions.awk: Improve error message for missing version.
10002         Each version inherits from the last one only if they have the same
10003         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
10004         but not GLIBC_x and FOO_y.
10006         * scripts/firstversions.awk: Handle libraries that don't have each
10007         particular version named in the third column of shlib-versions.
10009         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
10011 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
10013         * Versions.def [ld]: Add GLIBC_2.3.
10014         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
10015         * elf/Makefile (dl-routines): Add dl-tls.
10016         (distribute): Add dl-tls.h.
10017         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
10018         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
10019         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
10020         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
10021         along with the other info in the link map.  Change queueing of init
10022         images for double linked list.  Use _dl_next_tls_modid to compute
10023         l_tls_modid.
10024         * elf/rtld.c (_dl_start_final): Store alignment requirement
10025         along with the other info in rtld map and executable map.
10026         (dl_main): Add ld.so to the init image list if necessary.  Compute
10027         final module ID with _dl_next_tls_modid.
10028         * include/link.h (struct link_map): Add l_tls_previmage and
10029         l_tls_align.
10030         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
10031         * sysdeps/i386/elf/Versions: New file.
10032         * sysdeps/generic/dl-tls.c: New file.
10033         * sysdeps/generic/dl-tls.h: New file.
10034         * sysdeps/i386/dl-tls.h: New file.
10036 2002-02-06  Roland McGrath  <roland@frob.com>
10038         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
10039         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
10041 2002-01-05  Roland McGrath  <roland@frob.com>
10043         * sysdeps/mach/configure.in: New file.
10044         * sysdeps/mach/configure: New generated file.
10046         * mach/Makefile (user-interfaces): Remove default_pager_helper.
10047         It has never been used by anything.
10049 2002-02-06  H.J. Lu  <hjl@gnu.org>
10051         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
10052         is included.
10054 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
10056         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
10057         attribute((packed)) to counter stupid people misusing gcc options.
10058         (struct stat64): Likewise.
10060 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
10062         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
10063         the variables which are used as booleans.
10065 2002-02-06  Andreas Jaeger  <aj@suse.de>
10067         * include/libc-symbols.h (INTUSE): Renamed from INT.
10068         * elf/dl-deps.c: Change users.
10069         * sysdeps/generic/dl-sysdep.c: Likewise.
10070         * sysdeps/generic/dl-cache.c: Likewise.
10071         * elf/dl-reloc.c: Likewise.
10072         * elf/rtld.c: Likewise.
10073         * elf/dl-version.c: Likewise.
10074         * elf/dl-load.c: Likewise.
10075         * elf/dl-dst.h: Likewise.
10076         * elf/dl-init.c: Likewise.
10077         * elf/dl-error.c: Likewise.
10078         * elf/dl-fini.c: Likewise.
10079         * elf/dl-runtime.c: Likewise.
10080         * elf/do-lookup.h: Likewise.
10082         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
10083         definition.
10084         * stdio-common/_itowa.h: Likewise.
10086 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
10088         * elf/dl-minimal.c: Define _itoa_lower_digits.
10090         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
10091         DT_FLAGS set.
10093         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
10094         loading modules with the DF_STATIC_TLS flag set.
10095         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
10096         element.
10097         * include/link.h (struct link_map): Add l_flags field.
10098         * elf/elf.h (DF_STATIC_TLS): New definition.
10100         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
10101         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
10103         * elf/rtld.c (process_dl_debug): Correct printing help message.
10104         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
10105         for %s.
10107         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
10108         definition and pass &errno in use of this variable.
10109         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
10111 2002-02-04  Andreas Schwab  <schwab@suse.de>
10113         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
10114         * locale/programs/charmap-dir.c: Wrap calls that output messages
10115         with WITH_CUR_LOCALE.  Include "localedef.h" first.
10116         * locale/programs/charmap.c: Likewise.
10117         * locale/programs/ld-address.c: Likewise.
10118         * locale/programs/ld-collate.c: Likewise.
10119         * locale/programs/ld-ctype.c: Likewise.
10120         * locale/programs/ld-identification.c: Likewise.
10121         * locale/programs/ld-measurement.c: Likewise.
10122         * locale/programs/ld-messages.c: Likewise.
10123         * locale/programs/ld-monetary.c: Likewise.
10124         * locale/programs/ld-name.c: Likewise.
10125         * locale/programs/ld-numeric.c: Likewise.
10126         * locale/programs/ld-paper.c: Likewise.
10127         * locale/programs/ld-telephone.c: Likewise.
10128         * locale/programs/ld-time.c: Likewise.
10129         * locale/programs/linereader.c: Likewise.
10130         * locale/programs/linereader.h: Likewise.
10131         * locale/programs/localedef.c: Likewise.
10132         * locale/programs/locfile.c: Likewise.
10133         * locale/programs/repertoire.c: Likewise.
10135 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
10137         * elf/rtld.c (_dl_start_final): Determine load address to locate
10138         ehdr with GL(dl_rtld_map).l_map_start.
10140         * po/ca.po: Update from translation team.
10142         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
10143         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
10144         header entry.
10145         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10146         _dl_tls_module_cnt.
10147         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
10149 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
10151         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
10152         * include/link.h (struct link_map): Add various members for TLS
10153         information.
10154         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
10155         _rtld_tlsoffset, add _dl_initimage_list.
10156         * sysdeps/i386/dl-lookupcfg.h: New file.
10157         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
10158         TLS relocation.  When using TLS we now use RESOLVE_MAP.
10159         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
10160         is used.
10162         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
10163         unused.
10165         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
10166         thread-pointer as soon as possible.
10167         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
10168         elements in rtld_global.
10169         * sysdeps/generic/tls.h: New file.
10170         * elf/Makefile (distribute): Add tls.h.
10171         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
10172         relocations.  Not complete yet.
10174         * resolv/resolv.h: Allow user to define __need_res_state and only
10175         define __res_start structure then.
10176         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
10178         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
10179         dl_cpuclock_offset initialization to _dl_start_final.
10180         (_dl_show_auxv): Avoid unnecessary sign extension.
10181         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
10183 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
10185         * config.h.in: Add HAVE_TLS_SUPPORT.
10186         * sysdeps/i386/elf/configure.in: New file.
10188 2002-02-03  Andreas Schwab  <schwab@suse.de>
10190         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
10191         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
10193 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
10195         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
10196         alloca if the memory reqirements are too high.
10198 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
10200         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
10201         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
10202         the former is available anyway and speed isn't important here.
10203         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
10204         * elf/dl-version.c (match_symbol): Likewise.
10205         (_dl_check_map_versions): Likewise.
10206         * elf/rtld.c (process_envvars): Likewise.
10207         (print_statistics): Likewise.
10208         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
10209         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
10210         bases.  Add assert to catch uses of unimplemented features.
10211         (__strsep): Add assert to catch uses of unimplemented features.
10212         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
10213         and avoid inline optimization.
10214         * elf/rtld.c (process_envvars): Likewise.
10215         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
10216         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
10217         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
10219 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10221         * stdio-common/_itoa.h: Minor simplifications of the code.
10222         * stdio-common/_itoa.c: Likewise.
10224         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
10225         instead of _dl_printf for debugging info output.
10227         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
10228         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
10230 2002-02-01  H.J. Lu  <hjl@gnu.org>
10232         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
10233         (atomic_add): Likewise.
10234         (compare_and_swap): Return 0 only when failed to compare. Use
10235         branch likely.
10237         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
10238         branch likely.
10240 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
10242         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
10244 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10246         * elf/dl-minimal.c (__strsep): New minimal implementation.
10248 2002-02-02  Paul Eggert  <eggert@twinsun.com>
10250         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
10251         (__mktime_internal): If no tm_isdst is requested, prefer solutions
10252         with tm_isdst > 0 when the requested time falls within a
10253         spring-forward gap [PR libc/2894].
10255 2002-02-03  Andreas Schwab  <schwab@suse.de>
10257         * stdio-common/tst-rndseek.c: Increase timeout.
10259 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10261         Change ld.so to not use functions which are exported.  One cannot
10262         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
10263         definitions.
10264         * include/libc-symbols.h: Define INT and INTDEF.
10265         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
10266         _dl_signal_error_internal, _dl_map_object_internal,
10267         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
10268         _dl_lookup_versioned_symbol_internal,
10269         _dl_relocate_object_internal, _dl_debug_state_internal,
10270         _dl_start_profile_internal, and _dl_unload_cache_internal.
10271         * include/dlfcn.h: Declare _dl_catch_error_internal.
10272         * elf/rtld.c: Use INT for calls to any of the *_internal functions
10273         above.  Add INTDEF to function definitions.
10274         * elf/dl-debug.c: Likewise.
10275         * elf/dl-deps.c: Likewise.
10276         * elf/dl-dst.h: Likewise.
10277         * elf/dl-error.c: Likewise.
10278         * elf/dl-fini.c: Likewise.
10279         * elf/dl-init.c: Likewise.
10280         * elf/dl-load.c: Likewise.
10281         * elf/dl-lookup.c: Likewise.
10282         * elf/dl-misc.c: Likewise.
10283         * elf/dl-open.c: Likewise.
10284         * elf/dl-profile.c: Likewise.
10285         * elf/dl-reloc.c: Likewise.
10286         * elf/dl-runtime.c: Likewise.
10287         * elf/dl-version.c: Likewise.
10288         * elf/do-lookup.h: Likewise.
10289         * sysdeps/generic/dl-cache.c: Likewise.
10290         * sysdeps/generic/dl-sysdep.c: Likewise.
10291         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
10292         instead of _dl_init.
10293         * sysdeps/arm/dl-machine.h: Likewise.
10294         * sysdeps/cris/dl-machine.h: Likewise.
10295         * sysdeps/hppa/dl-machine.h: Likewise.
10296         * sysdeps/i386/dl-machine.h: Likewise.
10297         * sysdeps/ia64/dl-machine.h: Likewise.
10298         * sysdeps/m68k/dl-machine.h: Likewise.
10299         * sysdeps/mips/dl-machine.h: Likewise.
10300         * sysdeps/mips/mips64/dl-machine.h: Likewise.
10301         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10302         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10303         * sysdeps/sh/dl-machine.h: Likewise.
10304         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10305         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10306         * sysdeps/x86_64/dl-machine.h: Likewise.
10307         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
10309         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
10310         and _dl_debug_initialize.
10312         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
10313         more information.
10314         * elf/rtld.c (dl_main): Avoid strrchr.
10315         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
10316         result of readlink.  Search from the back for '/'.
10318         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
10319         strncpy if possible.
10321         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
10322         strncmp.
10323         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
10324         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
10325         strspn, and strcspn.
10326         (process_envvars): Don't use strcspn.
10328         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
10329         (_dl_dst_substitute): Likewise.
10331 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10333         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
10334         code which is never used when relocating ld.so itself.
10336         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
10337         starting ld.so itself.  Move l_addr variable initialization closer
10338         to use.
10339         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
10341 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
10343         * Versions.def (libc): Add GLIBC_PRIVATE.
10344         (libdb, libnss_db, libdb1): Remove.
10345         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
10346         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
10347         (libpthread): Add GLIBC_PRIVATE.
10348         (libresolv): Likewise, remove GLIBC_2.1.
10349         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
10350         GLIBC_2.2.3, GLIBC_2.3.
10351         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
10352         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
10353         _dl_sym, _dl_vsym): Likewise.
10354         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
10355         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
10356         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
10357         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
10358         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
10359         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
10360         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
10361         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
10362         Likewise.
10363         (_dl_object_relocation_scope): Remove.
10364         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
10365         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
10366         __gconv_cache): Move to GLIBC_PRIVATE.
10367         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
10368         __internal_setnetgrent): Likewise.
10369         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
10370         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
10371         * locale/Versions (__collate_element_hash, __collate_element_strings,
10372         __collate_symbol_classes, __collate_symbol_hash,
10373         __collate_symbol_strings, _nl_current_LC_COLLATE,
10374         _nl_current_LC_CTYPE): Likewise.
10375         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
10376         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
10377         (libnss_nis, libnss_nisplus): Likewise.
10378         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
10379         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
10380         (libnss_files): Move all symbols to GLIBC_PRIVATE.
10381         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
10382         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
10383         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
10384         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
10385         __ns_get16, __ns_samename): Likewise.
10386         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
10387         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
10388         GLIBC_PRIVATE.
10389         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
10390         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
10391         __libc_connect): Likewise.
10392         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
10393         Likewise.
10394         * stdlib/Versions (__libc_system): Likewise.
10395         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
10396         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
10397         * sysdeps/ia64/fpu/Versions: Likewise.
10398         * sysdeps/ia64/Versions: Likewise.
10399         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
10400         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
10401         to GLIBC_PRIVATE.
10402         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
10403         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
10404         __libc_sigaction): Likewise.
10405         * termios/Versions (__libc_tcdrain): Likewise.
10407         * misc/sys/cdefs (__attribute_noinline__): Define.
10408         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
10409         __attribute_noinline__.
10411         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
10412         * elf/dl-xstat64.c: New file.
10413         * elf/dl-fxstat64.c: New file.
10414         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
10415         don't export __fxstat64 at multiple versions.
10416         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
10417         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
10419 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
10421         * locale/program/ld-collate.c (collate_finish): Assign a wide
10422         char collation sequence value to multi character collating
10423         elements, and avoid over writing by non-character elements.
10425 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10427         * elf/Makefile (distribute): Add dl-procinfo.c.
10428         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
10429         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
10431 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
10433         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
10434         definition.
10435         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
10436         _rtld_global struct.
10437         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10438         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
10439         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10440         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
10441         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
10442         _dl_fpu_control_set): Remove unused externs.
10443         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
10444         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
10445         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
10446         related variables in _rtld_global struct.
10447         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
10448         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
10449         unused extern.
10451 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10453         * sysdeps/generic/dl-procinfo.c: New file.
10455 2002-02-01  Andreas Schwab  <schwab@suse.de>
10457         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
10459 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10461         * elf/rtld.c (_dl_start): Mark as internal_function.
10462         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
10463         in register.
10464         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
10465         General pretty printing.
10467 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
10469         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
10470         * elf/dl-reloc.c: Pretty printing.
10471         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
10472         procinfo-related variables in rtld_global struct.
10473         * elf/dl-support.c: Likewise.
10474         * elf/rtld.c: Likewise.
10475         * sysdeps/i386/i686/Makefile: Likewise.
10476         * sysdeps/i386/i686/hp-timing.c: Likewise.
10477         * sysdeps/i386/i686/hp-timing.h: Likewise.
10478         * sysdeps/ia64/Makefile: Likewise.
10479         * sysdeps/ia64/hp-timing.c: Likewise.
10480         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
10481         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
10482         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
10483         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
10484         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10485         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
10486         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
10487         * sysdeps/x86_64/Makefile: Likewise.
10489         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
10490         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
10491         _dl_debug_fd to rtld_global.
10492         * elf/Versions: Likewise.
10493         * elf/dl-close.c: Likewise.
10494         * elf/dl-iteratephdr.c: Likewise.
10495         * elf/dl-lookup.c: Likewise.
10496         * elf/dl-misc.c: Likewise.
10497         * elf/dl-open.c: Likewise.
10498         * elf/dl-support.c: Likewise.
10499         * elf/do-lookup.h: Likewise.
10500         * elf/rtld.c: Likewise.
10501         * sysdeps/generic/dl-cache.c: Likewise.
10502         * sysdeps/generic/dl-sysdep.c: Likewise.
10503         * sysdeps/ia64/Versions: Likewise.
10504         * sysdeps/unix/clock_gettime.c: Likewise.
10505         * sysdeps/unix/clock_settime.c: Likewise.
10506         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10507         * sysdeps/sparc/Versions: Removed.
10508         * sysdeps/i386/i686/Versions : Removed.
10509         * sysdeps/x86_64/Versions: Removed.
10510         * configure.in: Define HAVE_PROTECTED if .protected is available.
10511         * config.h.in: Add entry for HAVE_PROTECTED.
10513 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
10515         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
10516         code in struct _rtld_global.  Export this struct, remove all
10517         exports for the signal variables.
10518         * sysdeps/arm/dl-machine: Likewise.
10519         * sysdeps/generic/dl-origin: Likewise.
10520         * sysdeps/generic/dl-sysdep: Likewise.
10521         * sysdeps/generic/dl-cache: Likewise.
10522         * sysdeps/hppa/dl-fptr: Likewise.
10523         * sysdeps/hppa/dl-machine: Likewise.
10524         * sysdeps/cris/dl-machine: Likewise.
10525         * sysdeps/i386/dl-machine: Likewise.
10526         * sysdeps/ia64/dl-machine: Likewise.
10527         * sysdeps/m68k/dl-machine: Likewise.
10528         * sysdeps/mach/hurd/dl-sysdep: Likewise.
10529         * sysdeps/mips/mips64/dl-machine: Likewise.
10530         * sysdeps/mips/dl-machine: Likewise.
10531         * sysdeps/powerpc/elf/libc-start: Likewise.
10532         * sysdeps/powerpc/dl-machine: Likewise.
10533         * sysdeps/powerpc/dl-start: Likewise.
10534         * sysdeps/sparc/sparc32/dl-machine: Likewise.
10535         * sysdeps/sparc/sparc64/dl-machine: Likewise.
10536         * sysdeps/sh/dl-machine: Likewise.
10537         * sysdeps/s390/s390-32/dl-machine: Likewise.
10538         * sysdeps/s390/s390-64/dl-machine: Likewise.
10539         * sysdeps/unix/sysv/aix/libc-start: Likewise.
10540         * sysdeps/unix/sysv/aix/start-libc: Likewise.
10541         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
10542         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
10543         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
10544         * sysdeps/x86_64/dl-machine: Likewise.
10546 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
10548         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
10549         are too high.
10551 2002-01-31  Andreas Schwab  <schwab@suse.de>
10553         * sysdeps/posix/readv.c: Check for ssize_t overflow.
10555 2002-01-31  Andreas Schwab  <schwab@suse.de>
10557         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
10558         reference to _dl_pagesize.
10560 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
10562         * Versions.def [ld]: Add GLIBC_2.3.
10563         * elf/dl-addr.c: Move global variables for SHARED code in struct
10564         _rtld_global.  Export this struct, remove all exports for the
10565         signal variables.
10566         * elf/dl-close.c: Likewise.
10567         * elf/dl-conflict.c: Likewise.
10568         * elf/dl-debug.c: Likewise.
10569         * elf/dl-deps.c: Likewise.
10570         * elf/dl-dst.h: Likewise.
10571         * elf/dl-error.c: Likewise.
10572         * elf/dl-fini.c: Likewise.
10573         * elf/dl-init.c: Likewise.
10574         * elf/dl-iteratephdr.c: Likewise.
10575         * elf/dl-libc.c: Likewise.
10576         * elf/dl-load.c: Likewise.
10577         * elf/dl-lookup.c: Likewise.
10578         * elf/dl-minimal.c: Likewise.
10579         * elf/dl-object.c: Likewise.
10580         * elf/dl-open.c: Likewise.
10581         * elf/dl-profile.c: Likewise.
10582         * elf/dl-profstub.c: Likewise.
10583         * elf/dl-reloc.c: Likewise.
10584         * elf/dl-runtime.c: Likewise.
10585         * elf/dl-support.c: Likewise.
10586         * elf/dl-sym.c: Likewise.
10587         * elf/dl-version.c: Likewise.
10588         * elf/do-lookup.h: Likewise.
10589         * elf/do-rel.h: Likewise.
10590         * elf/dynamic-link.h: Likewise.
10591         * elf/rtld.c: Likewise.
10592         * sysdeps/generic/dl-cache.c: Likewise.
10593         * sysdeps/generic/dl-sysdep.c: Likewise.
10594         * sysdeps/generic/ldsodefs.h: Likewise.
10595         * sysdeps/generic/libc-start.c: Likewise.
10596         * sysdeps/i386/dl-machine.h: Likewise.
10597         * sysdeps/ia64/dl-fptr.c: Likewise.
10598         * sysdeps/ia64/dl-machine.h: Likewise.
10599         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
10600         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10601         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
10602         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
10603         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
10604         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
10605         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
10606         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
10608 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10610         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
10611         to avoid warning
10612         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
10614         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
10615         SHARED version.
10616         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
10618         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
10620 2002-01-29  Ben Collins  <bcollins@debian.org>
10622         * string/bits/string2.h (__mempcpy): Protect size arg for
10623         addition when using __builtin_memcpy.
10625 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10627         * stdlib/Makefile (tests): Add tst-qsort.
10628         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
10630         * manual/signal.texi (Process Signal Mask): Document that
10631         pthread_sigmask, not sigprocmask, must be used in MT programs.
10632         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
10634         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
10635         found.
10636         * misc/Makefile (tests): Add tst-hsearch.
10637         * misc/tst-hsearch.c: New file.
10639 2002-01-18  Wolfram Gloger  <wg@malloc.de>
10641         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
10642         * malloc/malloc.h: Likewise.
10643         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
10644         * malloc/arena.c: New file.
10645         * malloc/hooks.c: New file.
10646         * malloc/tst-mallocstate.c: New file.
10647         * malloc/Makefile: Add new testcase tst-mallocstate.
10648         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
10650 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10652         * stdlib/msort.c: Remove last patch.  The optimization violates the
10653         same rule which qsort.c had problems with.
10655 2002-01-27  Paul Eggert  <eggert@twinsun.com>
10657         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
10658         to a pivot element that lies outside the array to be sorted, as
10659         ISO C99 requires that the comparison function be called only with
10660         addresses of array elements [PR libc/2880].
10662 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10664         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
10665         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
10667         * timezone/asia: Update from tzdata2002b.
10668         * timezone/australasia: Likewise.
10669         * timezone/backward: Likewise.
10670         * timezone/europe: Likewise.
10671         * timezone/leapseconds: Likewise.
10672         * timezone/iso3166.tab: Likewise.
10673         * timezone/zone.tab: Likewise.
10675 2002-01-23  Richard Henderson  <rth@redhat.com>
10677         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10679 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10681         * string/strxfrm.c: Allocate one more byte for rulearr and clear
10682         this element [PR libc/2855].
10684         * string/strcoll.c: Handle zero-length arguments specially
10685         [PR libc/2856].
10687 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
10689         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10690         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10691         short lengths and constant src.
10692         (strcpy): Don't optimize for gcc 3.0+.
10693         (__stpcpy): For gcc 3.0+, don't use
10694         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10695         for short string literal src.
10697 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10699         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10700         Set for arm, too.
10702 2001-01-22  Paul Eggert  <eggert@twinsun.com>
10704         * manual/llio.texi (Linked Channels, Cleaning Streams):
10705         Make it clearer that a just-opened input stream might need cleaning.
10707 2002-01-21  H.J. Lu  <hjl@gnu.org>
10709         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10710         Don't use label at end of compound statement.
10712 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
10714         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10715         Remove test for negative integer arg; sin_pi does it correctly.
10717 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
10719         * nscd/Makefile (distribute): Filter out xmalloc.c.
10721 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
10723         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10724         Set offset if read end wasn't the buffer end.
10725         (_IO_file_seekoff_mmap): New function.
10726         (_IO_file_xsgetn_mmap): New function.
10727         (_IO_file_jumps_mmap): Use the two new functions.
10728         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10729         != end buffer.
10730         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10731         _IO_file_underflow_mmap.
10732         * libio/iofopen.c: Don't position file descriptor at end of file.
10733         * libio/tst-widetext.c: Improve error messages.
10734         * stdio-common/tst-rndseek.c: Likewise.
10736 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
10738         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10739         end of enum for !_GNU_SOURCE.
10740         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10741         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10742         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10743         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10744         values unless _GNU_SOURCE.
10746         * iconvdata/tcvn5712-1.c: Minor cleanups.
10748 2002-01-18  Andreas Schwab  <schwab@suse.de>
10750         * sysdeps/unix/sysv/linux/configure.in
10751         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10753 2002-01-16  Roger Sayle  <roger@eyesopen.com>
10755         * stdlib/msort.c (msort_with_tmp): Replace implementation with
10756         more efficient "Towers of Hanoi" mergesort.
10757         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10758         for generic, sizeof(int) and sizeof(long) variants respectively.
10760 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
10762         * manual/syslog.texi (openlog): Describe possible problems with
10763         first parameter.
10764         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10766         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
10767         * nscd/connections.c (begin_drop_privileges): New function.
10768         (finish_drop_privileges): New function.
10769         (nscd_init): Call the new functions which also install all groups
10770         for the server user.
10771         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10772         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10774 2002-01-17  H.J. Lu  <hjl@gnu.org>
10776         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10777         `const' from `got'.
10779 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10781         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10782         instructions for pointer operations.
10783         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10785 2002-01-17  Andreas Jaeger  <aj@suse.de>
10787         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10788         __uint128_t build-in.
10790         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10791         PowerPC, sync with 2.2 branch.
10793 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10795         * posix/getconf.c: Update copyright year.
10796         * nss/getent.c: Likewise.
10797         * nscd/nscd_nischeck.c: Likewise.
10798         * iconv/iconvconfig.c: Likewise.
10799         * iconv/iconv_prog.c: Likewise.
10800         * elf/ldconfig.c: Likewise.
10801         * catgets/gencat.c: Likewise.
10802         * csu/version.c: Likewise.
10803         * elf/ldd.bash.in: Likewise.
10804         * elf/sprof.c (print_version): Likewise.
10805         * locale/programs/locale.c: Likewise.
10806         * locale/programs/localedef.c: Likewise.
10807         * nscd/nscd.c (print_version): Likewise.
10808         * debug/xtrace.sh: Likewise.
10809         * malloc/memusage.sh: Likewise.
10810         * malloc/mtrace.pl: Likewise.
10812 2002-01-16  Andreas Schwab  <schwab@suse.de>
10814         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10815         reliably remove "-ia64" from rtld name.
10817 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10819         * iconvdata/gb18030.c: Bug fixes and support for more characters.
10820         Patch by Yu Shao <yshao@redhat.com>.
10822 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10824         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10825         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10826         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10828 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10830         * sysdeps/s390/fpu/libm-test-ulps: Update.
10832 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
10834         * elf/elf.h: Update x86 relocations.
10836 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10838         * locale/programs/charmap.c (new_width): Check whether byte
10839         sequences for both ends of range have the same length.
10841 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10843         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10845 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10847         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10848         string literals.
10849         (__full_ieee754_sqrt): Add __attribute_used__.
10851 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10853         * sysdeps/generic/group_member.c (__group_member): Also check
10854         groups[0] [PR libc/2781].
10856 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
10858         * Makefile (distribute): Add scripts/cpp.
10859         * elf/Makefile (distribute): Add reldep6mod[01234].c,
10860         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10861         unwind-dw2-fde.h, and dwarf2.h.
10862         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10863         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10864         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10865         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10867 2002-01-07  Roland McGrath  <roland@frob.com>
10869         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10870         volatile on type of ARGC so the compiler doesn't get clever.
10872 2002-01-07  Andreas Jaeger  <aj@suse.de>
10874         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10875         * sysdeps/i386/bits/byteswap.h: Likewise.
10876         * sysdeps/ia64/bits/byteswap.h: Likewise.
10877         * sysdeps/m68k/bits/byteswap.h: Likewise.
10878         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10879         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10881 2002-01-02  Bruno Haible  <bruno@clisp.org>
10883         * intl/plural.y: Fix %expect count.
10885 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10887         * elf/Makefile (routines, shared-only-routines): Add
10888         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10889         * elf/elf.h (PT_GNU_EH_FRAME): Define.
10890         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10891         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10892         Optimize if .eh_frame section contains no FDEs.
10893         (__register_frame, __deregister_frame_info_bases,
10894         __deregister_frame): Likewise.
10895         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10896         DW_CFA_restore handling.
10898 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
10900         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10902         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10903         for x < 0.25 and restore original range reduction method.
10904         (__ieee754_lgammal_r): Make sure signgam is set before returning.
10906 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
10908         * libio/fileops.c (_IO_file_underflow_mmap): New function.
10909         (_IO_file_close_mmap): New function.
10910         (_IO_file_jumps_mmap): New variable.
10911         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10912         trying to convert rest of byte buffer.
10913         (_IO_wfile_underflow_mmap): New function.
10914         (_IO_wfile_jumps_mmap): New variable.
10915         * libio/iofopen.c (__fopen_maybe_mmap): New function.
10916         (__fopen_internal): New function.  Split out from _IO_new_fopen.
10917         (_IO_new_fopen): Call __fopen_internal.
10918         * libio/iofopen64.c: Just call __fopen_internal.
10919         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10920         successfully.
10921         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10922         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10923         _IO_file_close_mmap.
10925         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10926         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10928         * stdio-common/Makefile (tests): Add tst-rndseek.
10929         * stdio-common/tst-rndseek.c: New file.
10931 2002-01-05  Roland McGrath  <roland@frob.com>
10933         * config.h.in (HAVE_MIG_RETCODE): New #undef.
10934         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10935         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10936         * sysdeps/mach/hurd/configure: Regenerated.
10938 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
10940         * elf/elf.h: Add more TLS definitions.
10942 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
10944         * include/features.h (__GLIBC_MINOR__): Bump to 3.
10946 2002-01-02  Roland McGrath  <roland@frob.com>
10948         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10949         __sigisemptyset.  Don't use MASK uninitialized.
10951         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10952         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10953         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10954         __sigdelset, __sigaddset, __sigorset.
10956         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10957         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10959         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10960         _hurd_ports is null.
10962         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10963         for old CMU and new OSF Mach interface flavors.
10964         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10965         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10967         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10969         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10970         Pass extra arguments to task_create for OSF variant.
10971         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10973         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10974         conditional on [HAVE_AUX_VECTOR].
10976         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10977         mach_msg_timeout_t as type of final argument.
10979         * hurd/privports.c (__get_privileged_ports):
10980         Change host_priv_t to mach_port_t in argument type.
10981         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10982         Update decls.
10984         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10985         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
10986         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10987         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10988         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10989         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10991 2002-01-01  Roland McGrath  <roland@frob.com>
10993         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10995 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
10997         * include/stdlib.h: Define inlines for the _l variants of the strto*
10998         functions.
11000 2002-01-01  Roland McGrath  <roland@frob.com>
11002         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
11004         * mach/Machrules (MIG): Set CPP as well as CC.
11006 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
11008         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
11009         locale to parse /proc/loadavg [PR libc/2760].
11011 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
11013         * elf/dl-conflict.c: Include sys/param.h.
11014         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
11015         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
11016         warning.
11017         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
11018         literals to avoid warnings.
11020 2001-12-31  Andreas Jaeger  <aj@suse.de>
11022         * configure.in: Don't check for gsed since we do not use it anywhere.
11024 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
11026         * io/fts.c: Update from BSD to fix memory leaks.
11028 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
11030         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
11031         * elf/chroot_canon.c: Likewise.
11032         * elf/dl-object.c: Likewise.
11033         * iconv/iconv_charmap.c: Likewise.
11034         * iconv/iconv_prog.c: Likewise.
11035         * libio/iogetdelim.c: Likewise.
11036         * locale/lc-time.c: Likewise.
11037         * stdlib/canonicalize.c: Likewise.
11038         * sunrpc/svc.c: Likewise.
11039         * sysdeps/generic/glob.c: Likewise.
11041 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11043         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
11044         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
11045         remove high order bit from the program counter.
11046         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
11048 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11050         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
11051         unnecessary code and add missing reloc types.
11052         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
11053         case for reloc type R_390_NONE.
11055 2001-12-28  Andreas Jaeger  <aj@suse.de>
11057         * io/bug-ftw3.c: Include string.h for prototypes.
11059         * crypt/md5test.c (main): Remove unused variable.
11061         * dlfcn/modstatic.c: Add prototype to avoid warning.
11063 2001-12-26  Roland McGrath  <roland@frob.com>
11065         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
11066         check only (SS->pending & MASK) for the signal to return.
11067         From Jeroen Dekkers <jeroen@dekkers.cx>.
11069 2001-12-22  Roland McGrath  <roland@frob.com>
11071         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
11072         Use preprocessor #if conditionals instead of `if' to avoid
11073         warnings about divide by zero in dead code.
11075         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
11076         _hurd_port_init, and __hurd_self_sigstate.
11078         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
11080 2001-12-21  Andreas Jaeger  <aj@suse.de>
11082         * elf/dblloadmod1.c: Add prototype to avoid warning.
11083         * elf/dblloadmod2.c: Likewise.
11084         * elf/dblloadmod3.c: Likewise.
11085         * elf/reldepmod5.c: Likewise.
11086         * elf/reldepmod6.c: Likewise.
11088         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
11089         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
11090         used on all architectures.
11092         * sunrpc/svc_tcp.c: Add noreturn attribute for
11093         svctcp_rendezvous_abort.
11094         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
11096         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
11097         to avoid warning.
11099 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
11101         * manual/llio.texi (aio_fsync): Fix a typo.
11102         Patch by Tammy Fox <tfox@redhat.com>.
11104 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
11106         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
11107         stack bias from child stack pointer before passing it to clone syscall.
11109 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
11111         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
11112         _SC_TZNAME_MAX.
11113         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
11114         Reported by Thorsten Kukuk <kukuk@suse.de>.
11116         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
11117         add some casts.
11119         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
11121 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
11123         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
11124         conforming: return EBADF if file descriptor is invalid and EINVAL
11125         if file descriptor is no valid tty.
11126         * login/tst-grantpt.c: New file.
11127         * login/Makefile (tests): Add tst-grantpt.
11129 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
11131         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
11132         different than implemented in last patch.
11133         * io/bug-ftw3.c: Adjust test for changed handling of
11134         inaccessibility of toplevel dir.
11136 2001-12-16  Roland McGrath  <roland@frob.com>
11138         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
11139         * grp/initgroups.c (internal_getgrouplist): Likewise.
11141         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
11142         `default:' to silence new GCC warning.
11143         Rewrite cast of lvalue to silence new GCC warning.
11145         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
11147         * sysdeps/mach/hurd/spawni.c: New file, by me with a
11148         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
11150 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
11152         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
11153         Patch by Stephen R. van den Berg.
11155         * crypt/md5.h: Define md5_uintptr.
11157 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
11159         * libio/tst_swprintf.c (main): Add test for string argument with
11160         zero precision.
11161         * stdio-common/Makefile (tests): Add tst-sprintf.
11162         * stdio-common/tst-sprintf.c: New file.
11164 2001-12-13  Andreas Schwab  <schwab@suse.de>
11166         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
11167         zero precision with wide character string format.
11169 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
11171         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
11172         but have a user supplied buffer, return the empty buffer, not NULL.
11174 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
11176         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
11177         Patch by Eric Sharkey <sharkey@netrics.com>.
11179         * crypt/md5test.c (main): Add test for multiple calls to
11180         __md5_process_bytes to itererate over input string.
11182 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
11184         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
11185         from __nis_findfastest.  Take timeout value from parameter.
11186         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
11187         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
11188         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
11190 2001-12-12  Andreas Jaeger  <aj@suse.de>
11192         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
11193         combreloc test so that it works in this case.
11195         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
11197 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
11199         * sysdeps/sh/Makefile: New file.
11200         * sysdeps/sh/_mcount.S: New file.
11201         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
11202         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
11204 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
11206         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
11207         limitation [PR libc/2564].
11209 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
11211         * elf/Makefile (dl-routines): Add conflict.
11212         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
11213         (ld.so): Add _begin local symbol.
11214         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
11215         Define.
11216         * elf/dl-deps.c (_dl_build_local_scope): New function.
11217         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
11218         of all libraries.
11219         * elf/do-rel.h (VALIDX): Define.
11220         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
11221         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
11222         can be skipped.
11223         * elf/dl-conflict.c: New file.
11224         * elf/dl-lookup.c (_dl_debug_bindings): New function.
11225         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
11226         non-NULL.
11227         (_dl_lookup_symbol_skip): Likewise.
11228         (_dl_lookup_versioned_symbol): Likewise.
11229         (_dl_lookup_versioned_symbol_skip): Likewise.
11230         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
11231         define to ElfW(Rel).
11232         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
11233         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
11234         ranges.
11235         Don't adjust address dynamic tags if l_addr is 0.
11236         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
11237         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
11238         (VALIDX, ADDRIDX): Define.
11239         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
11240         (dl_main): Print library list for LD_TRACE_PRELINKING.
11241         If prelinking information can be used, skip relocating libraries and
11242         call _dl_resolve_conflicts instead.
11243         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
11244         * elf/dl-load.c (_dl_map_object): Don't create fake libs
11245         if LD_TRACE_PRELINKING.
11246         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
11247         + DT_ADDRNUM.
11248         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
11249         (DL_DEBUG_PRELINK): Define.
11250         (_dl_resolve_conflicts): Add prototype.
11252         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
11253         .plt for prelinked libraries where prelinking info cannot be used.
11254         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
11255         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
11256         * sysdeps/arm/bits/link.h: New file.
11257         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
11258         content of .got[1].
11259         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
11260         (ELF_MACHINE_PLT_REL): Define.
11261         (elf_machine_rela, elf_machine_rela_relative): New functions.
11262         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
11263         of adjusting it if prelinked and prelinking cannot be used.
11264         * sysdeps/i386/bits/link.h: New file.
11265         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
11266         content of .got[1].
11267         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
11268         (ELF_MACHINE_PLT_REL): Define.
11269         (elf_machine_rela, elf_machine_rela_relative): New functions.
11270         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
11271         of adjusting it if prelinked and prelinking cannot be used.
11272         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
11273         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
11274         to find out map for R_PPC_JMP_SLOT relocs.
11275         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
11276         (OPCODE_BA): Define.
11277         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
11278         libraries where prelinking info cannot be used.
11279         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
11280         (elf_machine_fixup_plt): Call sparc_fixup_plt.
11281         (elf_machine_rela): Set value to 0 if relocating conflicts.
11282         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
11283         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
11284         (sparc64_fixup_plt): Fix a typo.
11285         (elf_machine_rela): Set value to 0 if relocating conflicts.
11286         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
11287         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
11288         libraries where prelinking info cannot be used.
11289         * sysdeps/sh/bits/link.h: New file.
11290         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
11291         content of .got[1].
11292         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
11293         of adjusting it if prelinked and prelinking cannot be used.
11294         * sysdeps/s390/s390-32/bits/link.h: New file.
11295         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
11296         Save original content of .got[1].
11297         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
11298         of adjusting it if prelinked and prelinking cannot be used.
11299         * sysdeps/s390/s390-64/bits/link.h: New file.
11300         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
11301         Save original content of .got[1].
11302         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
11303         of adjusting it if prelinked and prelinking cannot be used.
11304         * sysdeps/x86_64/bits/link.h: New file.
11305         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
11306         Save original content of .got[1].
11307         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
11308         of adjusting it if prelinked and prelinking cannot be used.
11310 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
11312         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
11313         where appropriate instead of numbers.  Little optimizations.
11315 2001-12-10  Roland McGrath  <roland@frob.com>
11317         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
11318         set it.
11320         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
11321         set to GLIBC_2.2.5, not GLIBC_2.2.4.
11323         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
11324         Fix conditionals so this is set by default for stdio and not for libio.
11325         * sysdeps/mach/hurd/configure: Regenerated.
11327 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
11329         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
11331 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
11333         * io/Makefile (tests): Add bug-ftw3.
11334         * io/bug-ftw3.c: New file.
11336         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
11337         matches and GLOB_NOCHECK is set.
11338         * posix/globtest.sh: Correct expected result for NOCHECK test.
11340         * po/ca.po: Update from translation team.
11342 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
11344         Implement transliteration of characters in strings of the locale
11345         definitions.
11346         * locale/programs/linereader.c: Adjust for additional parameter to
11347         lr_token.
11348         (get_string): If character <Uxxxx> is not found try to transliterate
11349         it.
11350         * locale/programs/ld-ctype.c: Adjust for additional parameter to
11351         lr_token.  Add const to charmap parameter of all functions.
11352         (find_translit, find_translit2): New functions.
11353         * locale/programs/charmap.c: Adjust for additional parameter to
11354         lr_token.
11355         * locale/programs/repertoire.c: Likewise.
11356         * locale/programs/linereader.h: Likewise.
11357         * locale/programs/ld-address.c: Likewise.  Add const to charmap
11358         parameter of all functions.
11359         * locale/programs/ld-collate.c: Likewise.
11360         * locale/programs/ld-identification.c: Likewise.
11361         * locale/programs/ld-measurement.c: Likewise.
11362         * locale/programs/ld-messages.c: Likewise.
11363         * locale/programs/ld-monetary.c: Likewise.
11364         * locale/programs/ld-name.c: Likewise.
11365         * locale/programs/ld-numeric.c: Likewise.
11366         * locale/programs/ld-paper.c: Likewise.
11367         * locale/programs/ld-paper.c: Likewise.
11368         * locale/programs/ld-telephone.c: Likewise.
11369         * locale/programs/ld-time.c: Likewise.
11370         * locale/programs/locfile.c: Likewise.
11371         * locale/programs/localedef.c: Likewise.
11372         * locale/programs/localedef.h: Likewise.
11373         * locale/programs/locfile.h: Likewise.  Add declaration for
11374         find_translit.
11375         * locale/programs/simple-hash.c: Add const to first parameter of
11376         find_entry, iterate_table, and lookup.
11377         * locale/programs/simple-hash.h: Likewise.
11378         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
11379         instead.
11380         * include/locale.h: Define __LC_LAST.
11381         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
11383 2001-12-07  Geoff Keating  <geoffk@redhat.com>
11385         * sysdeps/powerpc/Dist: Update for recent FP changes.
11386         * sysdeps/powerpc/fpu/Dist: Likewise.
11388 2001-12-07  Andreas Schwab  <schwab@suse.de>
11390         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
11392 2001-12-06  Geoff Keating  <geoffk@redhat.com>
11394         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
11395         save/restore functions here.
11396         (libm-support): Don't define these functions here.
11397         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
11398         functions here.
11399         * sysdeps/powerpc/fe_nomask.c: Move to...
11400         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
11401         * sysdeps/powerpc/fprrest.S: Move to...
11402         * sysdeps/powerpc/fpu/fprrest.S: ... here.
11403         * sysdeps/powerpc/fprsave.S: Move to...
11404         * sysdeps/powerpc/fpu/fprsave.S: ... here.
11406 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
11408         * sysdeps/unix/sysv/linux/opensock.c: New file.
11410 2001-12-06  Geoff Keating  <geoffk@redhat.com>
11412         * config.make.in (with-fp): Define from configure.
11413         * configure.in: Substitute with_fp.
11414         * configure: Regenerate.
11415         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
11416         specified, and don't change FPU environment.
11418 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
11420         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
11421         * assert/assert.c: Check result of __asprintf call and don't use
11422         string if it failed.
11423         * assert/assert-perr.c: Likewise.
11424         * inet/rcmd.c: Likewise.
11425         * locale/programs/localedef.c (main): Check result of
11426         construct_output_path and exit if it failed.
11427         (construct_output_path): Check result of asprintf and mkdir calls and
11428         fail if they failed.
11429         * posix/getopt.c: Check result of __asprintf calls and fail if
11430         they failed.
11431         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
11433 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11435         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
11436         patch.
11437         * sysdeps/generic/strncase.c: Likewise.
11438         * string/tester.c: Add tests for strcasecmp and strncasecmp.
11440 2001-12-05  Geoff Keating  <geoffk@redhat.com>
11442         * scripts/cpp: Test the exit status from 'type', not 'awk'.
11444         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
11445         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
11446         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
11447         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
11448         * sysdeps/powerpc/fclrexcpt.c: Move to...
11449         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
11450         * sysdeps/powerpc/fpu_control.h: Move to...
11451         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
11453 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11455         * iconvdata/ibm1129.h: Remove duplicate mappings.
11456         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
11457         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
11458         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11460         * timezone/zic.c: Fix handling of turnaround times.
11461         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
11463 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
11465         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
11466         overflow problem.
11468 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11470         * posix/regex.c: For use outside glibc defined bounded pointer
11471         macros here.  Patch by Jim Meyering <jim@meyering.net>.
11473         * iconvdata/Makefile (modules): Add TCVN5712-1.
11474         * iconvdata/TESTS: Add TCVN5712-1.
11475         * iconvdata/gconv-modules: Likewise.
11476         * iconvdata/tcvn5712-1.c: New file.
11477         * iconvdata/testdata/TCVN-5712: New file.
11478         * iconvdata/testdata/TCVN-5712..UTF8: New file.
11480 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
11482         * iconvdata/cp1258.c: Optimize conversion from UCS4.
11484 2001-12-02  Roland McGrath  <roland@frob.com>
11486         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
11488         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
11489         Reported by Jeff Bailey <jbailey@nisa.net>.
11491         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
11492         Reported by Jeff Bailey <jbailey@nisa.net>.
11494         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
11495         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
11496         Reported by Jeff Bailey <jbailey@nisa.net>.
11498 2001-12-01  Roland McGrath  <roland@frob.com>
11500         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
11501         missing backslash in test arguments.
11502         * sysdeps/mach/hurd/configure: Regenerated.
11504 2001-11-26  Roland McGrath  <roland@frob.com>
11506         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
11507         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
11509 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
11511         * iconvdata/Makefile (modules): Add ARMSCII-8.
11512         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
11513         * iconvdata/armscii-8.c: New file.
11515 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
11517         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
11518         don't match, fix {{a,b},c} globbing, clean up.
11519         Patch by Flavio Veloso <flaviovs@magnux.com>.
11520         * posix/globtest.sh: Add new tests.
11522 2001-11-29  Andreas Jaeger  <aj@suse.de>
11524         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
11525         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
11527         * sysdeps/generic/abort.c: Include libioP.h for
11528         _IO_flush_all_lockp prototype.
11530 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
11532         * posix/regex.h: Define __restrict_arr correctly.
11534 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11536         * iconvdata/ibm1163.c: New file.
11537         * iconvdata/ibm1163.h: New file.
11538         * iconvdata/ibm1164.c: New file.
11539         * iconvdata/ibm1164.h: New file.
11540         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
11541         * iconvdata/Makefile: Likewise.
11542         * iconvdata/testdata/IBM1163: New file.
11543         * iconvdata/testdata/IBM1163..UTF8: New file.
11544         * iconvdata/testdata/IBM1164: New file.
11545         * iconvdata/testdata/IBM1164..UTF8: New file.
11546         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11548         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
11549         * iconvdata/ibm1124.h: Likewise.
11550         * iconvdata/ibm1132.h: Likewise.
11551         * iconvdata/ibm1133.h: Likewise.
11552         * iconvdata/ibm1160.h: Likewise.
11553         * iconvdata/ibm1161.h: Likewise.
11554         * iconvdata/ibm1162.h: Likewise.
11555         * iconvdata/ibm856.h: Likewise.
11556         * iconvdata/ibm922.h: Likewise.
11557         * iconvdata/ibm930.h: Likewise.
11558         * iconvdata/ibm932.h: Likewise.
11559         * iconvdata/ibm933.h: Likewise.
11560         * iconvdata/ibm935.h: Likewise.
11561         * iconvdata/ibm937.h: Likewise.
11562         * iconvdata/ibm939.h: Likewise.
11563         * iconvdata/ibm943.h: Likewise.
11564         * iconvdata/ibm930.c: Pretty printing.
11565         * iconvdata/ibm937.c: Avoid access accross array boundary.
11567         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
11568         the current locale's codeset.
11569         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
11570         empty input string.
11571         * iconv/iconv_prog.c: Pass empty strings as default value for to-
11572         and from-charset.  Don't determine locale's charset here.
11574         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
11575         as the old _IO_flush_all but lock only if parameter is nonzero.
11576         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
11577         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
11578         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
11579         if libio is used [PR libc/2575].
11581 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
11583         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
11584         __signbitl): Only define for ISO C99.
11586 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11588         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
11589         herrnop to NETDB_INTERNAL if we run out of buffer space.
11591 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11593         * nss/nss_files/files-XXX.c (internal_getent): Correct input
11594         overflow test for platforms with signed char.
11595         Reported by Andrew Haley <aph@cambridge.redhat.com>.
11597 2001-11-28  Bruno Haible  <bruno@clisp.org>
11599         * locale/programs/simple-hash.c (lookup_2): Remove function.
11600         (insert_entry_2): Call lookup instead of lookup_2.
11602 2001-03-04  Bruno Haible  <bruno@clisp.org>
11604         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
11606 2001-10-31  Bruno Haible  <bruno@clisp.org>
11608         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
11610 2001-03-21  Bruno Haible  <bruno@clisp.org>
11612         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
11613         chokes on empty macro arguments.
11614         * intl/plural.y: Add #pragma for alloca on AIX 3.
11616 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11618         * intl/dcigettext.c (guess_category_value): Only implement for
11619         glibc.  Otherwise rely on function _nl_locale_name which isn't
11620         present in the glibc sources.
11622 2001-09-24  Bruno Haible  <bruno@clisp.org>
11624         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
11625         transliteration when building on a glibc system but outside glibc.
11627 2001-09-22  Bruno Haible  <bruno@clisp.org>
11629         * intl/plural-eval.c: New file, extracted from dcigettext.c.
11630         * intl/dcigettext.c (plural_eval): Remove function, moved to
11631         intl/plural-eval.c.
11632         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
11633         Include plural-eval.c.
11635 2001-09-22  Bruno Haible  <bruno@clisp.org>
11637         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
11638         don't start with a digit; nplurals must be positive.
11640 2001-09-02  Bruno Haible  <bruno@clisp.org>
11642         * intl/plural-exp.h: New file, extracted from gettextP.h.
11643         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
11644         * intl/gettextP.h (struct expression, struct parse_args,
11645         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
11646         * intl/loadmsgcat.c: Include plural-exp.h.
11647         (PLURAL_PARSE): Move macro to plural-exp.h.
11648         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
11649         plural-exp.c.
11650         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
11651         EXTRACT_PLURAL_EXPRESSION.
11652         (_nl_unload_domain): Update.
11653         * intl/dcigettext.c: Include plural-exp.h.
11654         * intl/plural.y: Include plural-exp.h, not gettextP.h.
11655         (FREE_EXPRESSION): Move macro to plural-exp.h.
11656         * intl/Makefile (routines): Add plural-exp.
11657         (distribute): Add plural-exp.h.
11659 2001-07-28  Bruno Haible  <bruno@clisp.org>
11661         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
11662         isdigit, tolower argument to 'unsigned char'.
11663         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
11664         'unsigned char'.
11665         * intl/localealias.c (read_alias_file): Cast isspace argument to
11666         'unsigned char'.
11668 2001-10-20  Bruno Haible  <bruno@clisp.org>
11670         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
11671         anyway.)
11672         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
11673         with the variable 'index' in plural_lookup.
11674         * intl/l10nflist.c (strchr): Likewise.
11675         * intl/localealias.c (strchr): Likewise.
11677         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11678         * intl/bindtextdom.c: Likewise.
11679         * intl/dcigettext.c: Likewise.
11680         * intl/dgettext.c: Likewise.
11681         * intl/dngettext.c: Likewise.
11682         * intl/explodename.c: Likewise.
11683         * intl/finddomain.c: Likewise.
11684         * intl/gettext.c: Likewise.
11685         * intl/l10nflist.c: Likewise.
11686         * intl/loadmsgcat.c: Likewise.
11687         * intl/localealias.c: Likewise.
11688         * intl/ngettext.c: Likewise.
11689         * intl/textdomain.c: Likewise.
11690         * intl/gettext.h: Assume <limits.h> exists.
11692 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11694         * stdio-common/Makefile (tests): Add scanf11.
11695         * stdio-common/scanf11.c: New file.
11697 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11699         * version.h (RELEASE): Define as development.
11700         (VERSION): Set to 2.2.90.
11702 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11704         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11705         * nis/nss_nis/nis-grp.c: Likewise.
11706         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11708         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11709         * nis/nss_nis/nis-pwd.c: Likewise.
11710         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11712         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11713         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11714         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11716         * nscd/grpcache.c: Use strtoul instead of atol.
11717         * nscd/pwdcache.c: Likewise.
11718         * nss/getent.c: Likewise.
11720 2001-11-27  Paul Eggert  <eggert@twinsun.com>
11722         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11723         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11725 2001-11-19  Bruno Haible  <bruno@clisp.org>
11727         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11728         90%.
11729         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11730         improves the quality of the hash function, especially for short
11731         strings.
11733 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11735         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11736         are found call conv_error and not input_error [PR libc/2669].
11738         * math/bits/mathcalls.h: Mark ceil and floor as const.
11739         Reported by David Mosberger.
11741 2001-11-21  Jim Meyering  <meyering@lucent.com>
11743         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11744         Define to be __-prefixed.
11745         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11747 2001-11-26  Andreas Jaeger  <aj@suse.de>
11749         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11750         avoid warning.
11752 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
11754         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11755         initialization.
11757         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11758         unused variables.  Fix threshold for returning 1.0.
11760         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11761         argument.
11763         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11764         remove unused variables.
11766         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11768         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11769         include local math header files.
11771 2001-11-22  Andreas Jaeger  <aj@suse.de>
11773         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11774         avoid warning.
11776 2001-11-21  Andreas Jaeger  <aj@suse.de>
11778         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11780         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11781         sys/debugreg.h
11783 2001-11-15  Andreas Jaeger  <aj@suse.de>
11785         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11786         compilers that support it.
11788         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11789         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11790         * stdlib/stdlib.h: Likewise.
11792 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
11794         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11795         statement with gotos.
11796         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11798 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
11800         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11802 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
11804         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11806 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
11807             H.J. Lu  <hjl@gnu.org>
11809         * Versions.def (libc): Add GCC_3.0.
11810         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11811         if gcc supports this flag.
11812         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11813         (gcc3): Allow glibc to be compiled with gcc 3.x.
11814         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11815         * config.make.in (static-libgcc, unwind-find-fde): Add.
11816         * Makerules (build-shlib-helper, build-module-helper): Use it.
11817         * scripts/versions.awk: Make sure GLIBC_ versions come first.
11818         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11819         necessary.
11820         (_fini): Call __deregister_frame_info_bases if
11821         __register_frame_info_bases was used to register.
11822         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11823         for GLIBC_2.0.
11824         (__register_frame_info_bases, __register_frame_info_table_bases,
11825         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11826         * elf/Makefile (routines): Add unwind-dw2-fde.
11827         (shared-only-routines): Add unwind-dw2-fde.
11828         * sysdeps/alpha/gccframe.h: New file.
11829         * sysdeps/arm/gccframe.h: New file.
11830         * sysdeps/generic/framestate.c: New file.
11831         * sysdeps/generic/dwarf2.h: New file.
11832         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11833         * sysdeps/generic/unwind-dw2-fde.c: New file.
11834         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11835         * sysdeps/generic/unwind-dw2-fde.h: New file.
11836         * sysdeps/generic/unwind-dw2.c: New file.
11837         * sysdeps/generic/unwind-pe.h: New file.
11838         * sysdeps/generic/unwind.h: New file.
11839         * sysdeps/hppa/gccframe.h: New file.
11840         * sysdeps/i386/gccframe.h: New file.
11841         * sysdeps/m68k/gccframe.h: New file.
11842         * sysdeps/mips/gccframe.h: New file.
11843         * sysdeps/powerpc/gccframe.h: New file.
11844         * sysdeps/s390/gccframe.h: New file.
11845         * sysdeps/sh/gccframe.h: New file.
11846         * sysdeps/sparc/gccframe.h: New file.
11847         * sysdeps/vax/gccframe.h: New file.
11848         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11849         Set on all architectures except ia64.
11850         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11851         for i386.
11852         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11853         __deregister_frame_info): Move to elf/Versions.
11854         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11855         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11856         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11857         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11858         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11859         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11860         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11861         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11862         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11863         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11864         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11865         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11866         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11867         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11868         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11869         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11870         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11871         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11873 2001-11-15  Jeff Law  <law@redhat.com>
11875         * posix/regex.c (uintptr_t): Do not provide a definition if the
11876         system provided one.
11878 2001-11-13  Roland McGrath  <roland@frob.com>
11880         * stdio-common/tmpfile.c: Moved to ...
11881         * sysdeps/generic/tmpfile.c: ... here.
11882         * sysdeps/mach/hurd/tmpfile.c: New file.
11884         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11885         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11886         (fopenport): Define as weak alias.
11888         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11889         * libio/libioP.h: ... to here.
11891 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
11893         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11894         program header twice.  Construct list with the needed information.
11896 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
11898         * po/ca.po: Update from translation team.
11900         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11901         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
11902         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11903         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11905 2001-11-10  Andreas Jaeger  <aj@suse.de>
11907         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11908         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11909         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11911 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11913         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11914         correctly.
11915         * elf/dl-load.c (is_dst): New function.
11916         (_dl_dst_count): Use is_dst to check for DST variable.
11917         (_dl_dst_substitute): Likewise.
11919 2001-11-09  Roland McGrath  <roland@frob.com>
11921         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11922         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11923         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11924         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11925         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11926         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11927         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11928         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11929         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11930         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11931         * sysdeps/mach/hurd/powerpc/Dist: New file.
11933         * hurd/privports.c (__get_privileged_ports):
11934         Only contact the proc server if necessary for this call.
11935         Suggested by Neal H Walfield <neal@cs.uml.edu>.
11936         Check error return for mach_port_mod_refs.
11938 2001-11-09  Andreas Schwab  <schwab@suse.de>
11940         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11942 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11944         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
11945         object is always the last in the list.
11946         (_dl_map_object_from_fd): Delete code to remove from object list
11947         when DF_1_NOOPEN is seen.  This is done in lose.
11949 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
11951         * elf/dl-object.c (_dl_new_object): Various small optimizations.
11953 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
11955         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11956         HWCAP_CHECK macro code.
11958         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11959         Now returns MAP_FAILED on error.
11960         * elf/rtld.c: Adjust caller.
11961         * sysdeps/generic/dl-cache.c: Likewise.
11962         * sysdeps/generic/ldsodefs.h: Adjust description.
11964         * elf/dl-version.c (match_symbol): Optimize error handling for size.
11965         (_dl_check_map_versions): Likewise.
11967 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11969         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11970         _dl_signal_error directly, always use lose.  Set fd to -1 after
11971         file is closed.
11972         (lose): Don't call close if fd == -1.
11974 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
11976         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
11977          Also fix typo @code {mbsinit} to @code{mbsinit}.
11979 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11981         * elf/dl-profile.c: Replace state variable with simple flag named
11982         running.  Remove commented-out code.
11984         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11985         (_dl_init_paths): Likewise.
11986         (_dl_map_object_from_fd): Likewise.
11987         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11989 2001-11-06  Roland McGrath  <roland@frob.com>
11991         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11992         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11994         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11995         sysdeps/powerpc/elf/sysdep.h.
11996         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11998 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
12000         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
12001         speed.
12002         (process_envvars): Some more optimizations.
12003         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
12005         * elf/elf.h: Add dynamic tag definitions for prelinking.
12007         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
12008         Rewrite code to remove environment varables for SUID binaries.
12009         Small optimization in LD_PROFILE handling.
12010         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
12011         changes.
12012         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
12014         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
12016         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
12017         strings.  Change type of second parameter.
12018         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
12019         for last change.
12021         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
12023 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
12025         * manual/string.texi: Fix typos.
12026         * manual/examples/argp-ex2.c: Likewise.
12028 2001-11-05  Roland McGrath  <roland@frob.com>
12030         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
12031         the more-specific unix/sysv/linux/powerpc file and breaks everything.
12032         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
12033         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
12034         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
12035         here, put under [__ELF__].
12037 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
12039         * manual/charset.texi: Extensive editing work.
12040         * manual/nss.texi: Likewise.
12041         Changes by Dennis Grace <dgrace@us.ibm.com>.
12043 2001-11-04  Roland McGrath  <roland@frob.com>
12045         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
12046         parameter to dir_mkfile.
12048 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
12050         * string/bits/string2.h (__strndup): If n is smaller than len, set
12051         len to n + 1.
12052         * string/tester.c (test_strndup): New function.
12053         (main): Call it.
12055 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
12057         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
12059         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
12060         * scripts/cpp: New file.
12062         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
12063         for rtld_search_dirs content.  Minor optimizations.
12065 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
12067         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
12068         avoiding unnecessary duplication.
12070 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
12072         * elf/dl-load.c (_dl_map_object): If library was found using
12073         LD_LIBRARY_PATH, don't try RUNPATH list.
12075 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12077         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
12078         Correct second argument of register_dump call.
12079         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
12080         Likewise.
12082 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
12084         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
12085         modules.
12086         * iconvdata/TESTS: Likewise.
12087         * iconvdata/gconv-modules: Likewise.
12088         * iconvdata/ibm1132.c: New file.
12089         * iconvdata/ibm1132.h: New file.
12090         * iconvdata/ibm1133.c: New file.
12091         * iconvdata/ibm1133.h: New file.
12092         * iconvdata/ibm1162.c: New file.
12093         * iconvdata/ibm1162.h: New file.
12094         * iconvdata/testdata/IBM1132: New file.
12095         * iconvdata/testdata/IBM1132..UTF8: New file.
12096         * iconvdata/testdata/IBM1133: New file.
12097         * iconvdata/testdata/IBM1133..UTF8: New file.
12098         * iconvdata/testdata/IBM1162: New file.
12099         * iconvdata/testdata/IBM1162..UTF8: New file.
12100         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
12102         * string/string.h: Fix typo in comment.
12103         * wcsmbs/wchar.h: Likewise.
12105 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
12107         * manual/getopt.texi (getopt_long, getopt_long_only): Include
12108         const in type of longopts parameter.
12110 2001-10-29  Andreas Jaeger  <aj@suse.de>
12112         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
12114 2001-10-29  Kevin Ryde  <user42@zip.com.au>
12116         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
12117         output, clarify `#' behaviour on 0.
12118         (Floating-Point Conversions): Clarify that %g only uses %e when
12119         the exponent would be greater than 1.
12121 2001-10-28  Roland McGrath  <roland@frob.com>
12123         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
12124         * sysdeps/mach/powerpc/machine-sp.h: New file.
12125         * sysdeps/mach/powerpc/sysdep.h: New file.
12126         * sysdeps/mach/powerpc/thread_state.h: New file.
12128         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
12129         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
12130         expect to need the same thing on every platform.
12132         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
12133         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
12135         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
12136         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
12137         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
12138         Move all these assembly-related definitions to ...
12139         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
12141         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
12142         by Peter Bruin <pjbruin@dds.nl>.
12144         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
12145         packing results for a `poll' call.
12147 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
12149         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
12150         correctly.
12151         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
12152         bracket expression.
12154         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12155         nrules value.
12156         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
12158 2001-10-24  H.J. Lu  <hjl@gnu.org>
12160         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
12161         Use __BEGIN_DECLS/__END_DECLS around prototypes.
12162         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
12164 2001-10-21  Jim Meyering  <meyering@lucent.com>
12166         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
12167         this code would end up calling gettext even in packages built
12168         with --disable-nls.
12169         * posix/getopt.c (_): Likewise.
12170         * posix/regex.c (_): Likewise.
12172 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
12174         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
12175         lookup not ip6.int.
12176         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
12177         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
12179 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
12181         * misc/sys/cdefs.h (__attribute_used__): Define.
12182         * elf/rtld.c (_dl_start): Add __attribute_used__.
12183         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
12185 2001-10-25  Andreas Schwab  <schwab@suse.de>
12187         * stdlib/a64l.c: Expect least significant digit first.
12188         * stdlib/l64a.c: Produce least significant digit first.
12189         * stdlib/Makefile (tests): Add test-a64l.
12190         * stdlib/test-a64l.c: New file.
12191         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
12193 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
12195         * po/sk.po: Update from translation team.
12197 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
12199         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
12201 2001-10-18  Andreas Schwab  <schwab@suse.de>
12203         * math/libm-test.inc (print_ulps): Print ulp values rounded to
12204         next whole number.
12205         (print_function_ulps): Likewise.
12206         (print_complex_function_ulps): Likewise.
12207         (print_max_error): Likewise.
12208         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
12210 2001-10-16  Andreas Schwab  <schwab@suse.de>
12212         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
12213         implementation.
12215         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
12216         BSD_SETJMP or BSD__SETJMP is defined, resp.
12217         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
12218         a tail call to __sigsetjmp that would require extending the
12219         caller's frame.
12220         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
12221         * sysdeps/m68k/bsd-setjmp.S: Deleted.
12222         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
12223         Reported by Jes Sorensen <jes@trained-monkey.org>.
12225 2001-10-16  Andreas Jaeger  <aj@suse.de>
12227         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
12228         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
12229         close PR libc/2589.
12231 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
12233         * po/ca.po: New file.  Contributed by the translation team.
12235 2001-10-15  Ralf Baechle  <ralf@gnu.org>
12237         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
12238         a varargs prototype.  Remove dependency from kernel header files.
12240         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
12241         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
12243 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
12245         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
12246         to generate hexadecimal identifier.
12247         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
12249 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
12251         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
12253 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
12255         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
12256         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
12257         Contributed by Stephen L Moshier <moshier@mediaone.net>.
12259         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
12260         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12261         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
12262         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
12263         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
12264         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
12266         * timezone/africa: Update from tzdata2001d.
12267         * timezone/asia: Likewise.
12268         * timezone/australasia: Likewise.
12269         * timezone/backward: Likewise.
12270         * timezone/europe: Likewise.
12271         * timezone/leapseconds: Likewise.
12272         * timezone/northamerica: Likewise.
12273         * timezone/southamerica: Likewise.
12274         * timezone/zone.tab: Likewise.
12276 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12278         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
12279         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
12281 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
12283         * elf/elf.h (PT_TLS): New definition.
12285 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
12287         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
12288         bits/errno.h
12290 2001-10-07  Roland McGrath  <roland@frob.com>
12292         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
12294 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
12296         * elf/elf.h: Add more ELFOSABI_* constants.
12298 2001-10-04  Ben Collins  <bcollins@debian.org>
12300         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
12301         decleration of __need_wchar_t.
12303 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
12305         * string/bits/string2.h (__strsep_g): Add prototype.
12306         (__strsep): Use it.
12307         * string/Versions (__strsep): Remove.
12308         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
12310 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
12312         * manua/llio.texi: Clarify file references added by mmap.
12313         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
12315 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
12317         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
12318         Add sc_loadrs and sc_rbs_bas to match current kernel.
12320 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
12322         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
12324         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
12326 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
12328         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
12329         object has been bumped because of relocation dependency, avoid
12330         duplicates in l_scope.
12331         (show_scope): Fix typos.
12332         * elf/Makefile: Add rules to build and run reldep6.
12333         * elf/reldep6.c: New file.
12334         * elf/reldep6mod0.c: New file.
12335         * elf/reldep6mod1.c: New file.
12336         * elf/reldep6mod2.c: New file.
12337         * elf/reldep6mod3.c: New file.
12338         * elf/reldep6mod4.c: New file.
12340 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
12342         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
12343         sparc64_fixup_plt.
12344         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
12345         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
12346         for non-lazy binding. Fix .plt[32768+] handling.
12347         (elf_machine_plt_value): Don't add addend.
12348         (elf_machine_rela): Call sparc64_fixup_plt instead of
12349         elf_machine_fixup_plt.
12350         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
12351         dynamic linker at 0xfffff800XXXXXXXX.
12353         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
12355 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
12357         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
12359 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
12361         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
12362         declare __cmsg_data field if its size would be bigger than 0.
12363         (CMSG_DATA): Adjust accordingly.
12364         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
12365         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
12366         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
12367         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
12368         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12369         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
12370         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12372 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
12374         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
12375         * iconvdata/testdata/IBM1160: New file.
12376         * iconvdata/testdata/IBM1160..UTF8: New file.
12377         * iconvdata/testdata/IBM1161: New file.
12378         * iconvdata/testdata/IBM1161..UTF8: New file.
12379         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
12381 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
12383         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
12384         UL_SETFSIZE computations better.
12386         * rt/Makefile: Remove use of filter for librt again.
12388         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
12389         UL_SETFSIZE computations better.
12391         * string/Versions: Export __strsep for GLIBC_2.2.5.
12392         * string/bits/string2.h: Define all __STRING_INLINE functions if
12393         _FORCE_INLINES is defined.
12394         Use int instead of char of parameter types.
12395         (__strsep): Don't use __strsep_g.  Don't define it.
12396         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
12397         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
12398         __strcpy_small.
12399         (__stpcpy_a_small): Renamed from __stpcpy_small.
12400         (__strcspn_c1): Don't define if _FORCE_INLINES.
12401         (__strspn_c1): Likewise.
12403 2001-09-22  Ben Collins  <bcollins@debian.org>
12405         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
12406         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
12407         * sysdeps/ia64/bits/sigaction.h: Likewise.
12408         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
12410 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
12412         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
12414 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
12416         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
12418 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
12420         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
12422 2001-09-20  H.J. Lu  <hjl@gnu.org>
12424         * include/dlfcn.h (__RTLD_SPROF): New definiton.
12425         * elf/dl-open.c (dl_open_worker): Return immediately after loading
12426         for __RTLD_SPROF.
12427         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
12428         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
12430 2001-09-20  H.J. Lu  <hjl@gnu.org>
12432         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
12433         don't add 1.
12435 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
12437         * nss/getent.c: Accept -s parameter to overwrite rules in
12438         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
12440         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
12441         with as many ".0" as necessary to form a complete address
12442         inet_network understands.
12444         * nss/getent.c: Various cleanups.  Use simpler and fewer function
12445         calls.
12447 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12449         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
12450         _JMPBUF_UNWINDS.
12451         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
12453 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
12455         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
12456         IBM1161.
12457         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
12458         * iconvdata/ibm1160.c: New file.
12459         * iconvdata/ibm1160.h: New file.
12460         * iconvdata/ibm1161.c: New file.
12461         * iconvdata/ibm1161.h: New file.
12462         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
12464 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
12466         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
12467         difference between base address and first PT_LOAD's virtual address,
12468         not the base address.
12470 2001-09-11  Tom Rix  <trix@redhat.com>
12472         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
12473         ifdef for __getopt_clean_environment.
12474         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
12476 2001-09-22  Andreas Jaeger  <aj@suse.de>
12478         * elf/reldep4.c (main): Add proper prototype to fix warning.
12480         * elf/reldep5.c (main): Remove unused variable.
12482         * math/math_private.h: Add prototypes.
12484 2001-09-21  Andreas Jaeger  <aj@suse.de>
12486         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
12487         * sysdeps/x86_64/Dist: New file.
12488         * sysdeps/x86_64/soft-fp/Dist: New file.
12490         * sysdeps/gnu/Dist: Remove eval.c.
12492 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
12494         * malloc/memusage.c (realloc): Don't count already allocated
12495         memory in the sums.
12496         (me): Always use dlsym() to find the real implementations.
12498         * malloc/memusage.sh: Make -n option actually do something.
12500 2001-09-20  Andreas Jaeger  <aj@suse.de>
12502         * elf/elf.h (R_390_NUM): Correct value.
12504         * Versions.def: Add missing versions 2.2.3 for libthread_db and
12505         libpthread.
12507         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
12508         for x86-64, install x86-64 into */lib64.
12510         * shlib-versions: Add x86-64.
12512         * elf/elf.h: Add x86-64 relocations.
12514 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
12516         * po/fr.po: Update from translation team.
12518 2001-09-19  Andreas Jaeger  <aj@suse.de>
12520         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
12521         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
12522         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
12523         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
12524         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
12525         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
12526         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
12527         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
12528         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
12529         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
12530         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
12531         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
12532         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
12533         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
12534         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
12535         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
12536         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
12537         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
12538         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
12539         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
12540         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
12541         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
12542         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
12543         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
12544         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
12545         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
12546         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
12547         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
12548         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
12549         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
12550         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
12551         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
12552         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
12553         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
12554         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
12555         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
12556         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
12557         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
12558         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
12559         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
12560         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
12561         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
12562         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
12563         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
12564         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
12565         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
12566         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
12567         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
12568         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
12569         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
12570         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
12571         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
12572         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
12573         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
12574         * sysdeps/unix/x86_64/sysdep.S: New file.
12575         * sysdeps/unix/x86_64/sysdep.h: New file.
12576         * sysdeps/x86_64/Implies: New file.
12577         * sysdeps/x86_64/Makefile: New file.
12578         * sysdeps/x86_64/Versions: New file.
12579         * sysdeps/x86_64/__longjmp.S: New file.
12580         * sysdeps/x86_64/abort-instr.h: New file.
12581         * sysdeps/x86_64/atomicity.h: New file.
12582         * sysdeps/x86_64/bits/endian.h: New file.
12583         * sysdeps/x86_64/bits/setjmp.h: New file.
12584         * sysdeps/x86_64/bits/string.h: New file.
12585         * sysdeps/x86_64/bp-asm.h: New file.
12586         * sysdeps/x86_64/bsd-_setjmp.S: New file.
12587         * sysdeps/x86_64/bsd-setjmp.S: New file.
12588         * sysdeps/x86_64/dl-machine.h: New file.
12589         * sysdeps/x86_64/elf/initfini.c: New file.
12590         * sysdeps/x86_64/elf/start.S: New file.
12591         * sysdeps/x86_64/ffs.c: New file.
12592         * sysdeps/x86_64/ffsll.c: New file.
12593         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
12594         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
12595         * sysdeps/x86_64/fpu/e_acosl.c: New file.
12596         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
12597         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
12598         * sysdeps/x86_64/fpu/e_expl.c: New file.
12599         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
12600         * sysdeps/x86_64/fpu/e_log10l.S: New file.
12601         * sysdeps/x86_64/fpu/e_log2l.S: New file.
12602         * sysdeps/x86_64/fpu/e_logl.S: New file.
12603         * sysdeps/x86_64/fpu/e_powl.S: New file.
12604         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
12605         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
12606         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
12607         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
12608         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
12609         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
12610         * sysdeps/x86_64/fpu/fegetenv.c: New file.
12611         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
12612         * sysdeps/x86_64/fpu/fegetround.c: New file.
12613         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
12614         * sysdeps/x86_64/fpu/fesetenv.c: New file.
12615         * sysdeps/x86_64/fpu/fesetround.c: New file.
12616         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
12617         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
12618         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
12619         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
12620         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
12621         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
12622         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
12623         * sysdeps/x86_64/fpu/s_atanl.c: New file.
12624         * sysdeps/x86_64/fpu/s_cosl.S: New file.
12625         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
12626         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
12627         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
12628         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
12629         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
12630         * sysdeps/x86_64/fpu/s_logbl.c: New file.
12631         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
12632         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
12633         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
12634         * sysdeps/x86_64/fpu/s_rintl.c: New file.
12635         * sysdeps/x86_64/fpu/s_significandl.c: New file.
12636         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
12637         * sysdeps/x86_64/fpu/s_sinl.S: New file.
12638         * sysdeps/x86_64/fpu/s_tanl.S: New file.
12639         * sysdeps/x86_64/gmp-mparam.h: New file.
12640         * sysdeps/x86_64/hp-timing.c: New file.
12641         * sysdeps/x86_64/hp-timing.h: New file.
12642         * sysdeps/x86_64/htonl.S: New file.
12643         * sysdeps/x86_64/memusage.h: New file.
12644         * sysdeps/x86_64/setjmp.S: New file.
12645         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
12646         * sysdeps/x86_64/stackinfo.h: New file.
12647         * sysdeps/x86_64/sysdep.h: New file.
12648         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
12650         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
12651         L Moshier.
12653 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12655         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
12656         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
12658 2001-09-18  Andreas Schwab  <schwab@suse.de>
12660         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
12661         list, now that l_scope is a pointer.
12663         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
12664         scope list.
12666 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12668         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
12669         (elf_machine_rela_relative): Add a missing declaration.
12671 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
12673         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
12674         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
12675         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
12676         ldd-rewrite scripts.
12678 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12680         * elf/ldd.bash.in: Update copyright message.
12682 2001-09-17  H.J. Lu  <hjl@gnu.org>
12684         * hurd/hurdmalloc.c (bcopy): Removed.
12685         (realloc): Replace bcopy with memcpy.
12686         * hurd/path-lookup.c (file_name_path_scan): Likewise.
12687         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12688         * sunrpc/rpcinfo.c (pmapdump): Likewise.
12690         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12691         (gethostbyaddr): Likewise.
12692         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12694 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12696         * sysdeps/gnu/eval.c: Removed.
12698 2001-09-18  Andreas Jaeger  <aj@suse.de>
12700         * sysdeps/i386/fpu/s_logbl.S: Move to ...
12701         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12703         * sysdeps/i386/fpu/s_rintl.S: Move to ...
12704         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12706         * sysdeps/i386/fpu/s_significandl.S: Move to ...
12707         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12709 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
12711         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12712         nrules value.
12714 2001-09-14  H.J. Lu  <hjl@gnu.org>
12716         * sysdeps/mips/fpu/libm-test-ulps: Updated.
12718 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
12720         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12721         Patch by Florian La Roche <laroche@redhat.com>.
12723         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12725         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12726         ETHER_CRC_LEN.
12728 2001-09-14  Andreas Schwab  <schwab@suse.de>
12730         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
12731         Sumner <bls@sgi.com>.
12732         * posix/execlp.c: Likewise.
12734 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
12736         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12737         is already found earlier in the search scope.
12739 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
12741         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12742         filter.
12744 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
12746         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12748 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
12750         * config.h.in: Enforce optimization to be used.
12751         * Makeconfig (preprocess-versions): Define ASSEMBLER.
12752         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12753         * posix/Makefile (annexc-CFLAGS): Define to -O.
12754         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12756 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
12758         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12759         Patch by Stephan Kulow.
12761 2001-09-08  Ben Collins  <bcollins@debian.org>
12763         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12764         usage of RESOLVE() (r_type, not reloc->r_type).
12766 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12768         * elf/dl-object.c: Avoid allocating extra memory block for name.
12769         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12770         allocated separately.
12771         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12773 2001-09-08  H.J. Lu  <hjl@gnu.org>
12775         * po/zh_TW.po: Fix a typo.
12777 2001-09-07  Tom Rix  <trix@redhat.com>
12779         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12781 2001-08-26  Tom Rix  <trix@redhat.com>
12783         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12784         command line options.
12785         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12786         * sysdeps/unix/sysv/aix/start.c: Removed.
12787         * sysdeps/unix/sysv/aix/start-libc.c: New file.
12788         * sysdeps/unix/sysv/aix/init-first.c: New file.
12789         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12791 2001-09-08  Ben Collins  <bcollins@debian.org>
12793         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12794         * sysdeps/generic/dl-machine.h: Likewise.
12795         * sysdeps/hppa/dl-fptr.c: Likewise.
12796         * sysdeps/ia64/dl-fptr.c: Likewise.
12797         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12798         * sysdeps/mips/dl-machine.h: Likewise.
12799         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12800         * sysdeps/powerpc/dl-machine.c: Likewise.
12802 2001-09-07  Ben Collins  <bcollins@debian.org>
12804         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12806         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12808 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12810         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12811         dependencies if necessary.
12813         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12814         loaded directly) determine length if l_initfini list by iterating
12815         over its elements.  Minor optimizations.
12816         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12817         for dependency objects.
12818         If object was already loaded check whether any of the dependencies
12819         is already on the relocation dependency list.  If yes, remove the
12820         latter.  Minor optimizations.
12821         * elf/dl-lookup.c (add_dependency): Add check for self reference of
12822         maps here.  Search l_initfini list only if the object was loaded
12823         directly and not only as a dependency.
12824         (_dl_lookup_symbol): Add relocation dependency also if object
12825         is not in global scope.  Remove test for self-reference here.
12826         (_dl_lookup_versioned_symbol): Likewise.
12827         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
12828         element of first name record.
12829         * elf/loadtest.c: Add some more test to recognize early if an object
12830         wasn't unloaded.
12831         * elf/Makefile: Add rules to build and run reldep5.
12832         * elf/reldep5.c: New file.
12833         * elf/reldepmod5.c: New file.
12834         * elf/reldepmod6.c: New file.
12836         * elf/reldep2.c: Fix typo.
12838 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
12840         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12841         elements.  Change l_scope to be a pointer only.
12842         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12843         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12844         here add searchlist of newly open file to the dependency's scope.
12845         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12846         only searchlist from its scope.  Free own scope array if necessary.
12847         * elf/Makefile (tests): Add dblload and dblunload now.
12849 2001-09-06  Andreas Jaeger  <aj@suse.de>
12851         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12852         Stephen L Moshier.
12854 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
12856         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
12857         they both fail.
12858         * elf/dblload.c: New file.
12859         * elf/dblloadmod1.c: New file.
12860         * elf/dblloadmod2.c: New file.
12861         * elf/dblloadmod3.c: New file.
12862         * elf/dblunload.c: New file.
12864 2001-09-04  Richard Henderson  <rth@redhat.com>
12866         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12867         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12869 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12871         Correct very misleading message for error in failed runtime relocation.
12872         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12873         place of the error.
12874         (_dl_signal_cerror): Likewise.
12875         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12876         * elf/dl-close.c: Likewise.
12877         * elf/dl-deps.c: Likewise.
12878         * elf/dl-load.c: Likewise.
12879         * elf/dl-lookup.c: Likewise.
12880         * elf/dl-open.c: Likewise.
12881         * elf/dl-reloc.c: Likewise.
12882         * elf/dl-sym.c: Likewise.
12883         * elf/dl-version.c: Likewise.
12884         * sysdeps/generic/dl-sysdep.c: Likewise.
12886 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12888         * iconv/strtab.c (strtabinit): Initialize null Strent.
12889         (newstring): Move len == 0 handling...
12890         (strtabadd): ...here.
12891         If len == 1, return null Strent.
12892         When inserting a suffix of an existing string, check if
12893         it is not equal to some suffix already recorded.
12894         Copy left and right members over if adding longer string.
12896 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12898         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12900         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12901         (__syscall_gethostname): Add prototype.
12903 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12905         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12907 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
12909         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12911 2001-08-27  Roland McGrath  <roland@frob.com>
12913         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12914         short, copy that much into NAME anyway before returning error.
12916 2001-09-01  Richard Henderson  <rth@redhat.com>
12918         * sysdeps/alpha/elf/Dist: Remove file.
12919         * sysdeps/alpha/elf/Makefile: Remove file.
12920         * sysdeps/alpha/elf/crtbegin.S: Remove file.
12921         * sysdeps/alpha/elf/crtend.S: Remove file.
12922         * sysdeps/alpha/elf/initfini.c: New file.
12924 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
12926         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12927         * iconv/tst-iconv3.c: Likewise.
12929 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
12931         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12933 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
12935         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12936         export it.
12937         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12938         * iconv/iconv_prog.c (insert_cache): New function.
12939         (print_known_names): If cache is used call insert_cache to use the
12940         information from the cache [PR libc/2509].
12942 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
12944         * time/strptime.c (strptime_internal): Recognize 'l' format and
12945         handle it like 'I' for symmetry with strftime.
12947 2001-08-31  Richard Henderson  <rth@redhat.com>
12949         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12950         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12951         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12952         (print_statistics): Make scalar unsigned long long.
12953         * sysdeps/alpha/hp-timing.h: New file.
12955 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12957         * stdio-common/perror.c (perror): Save errno early, pass it
12958         down to perror_internal.
12959         (perror_internal): Add errnum argument.
12961 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12963         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12964         Don't add old memory content for R_ALPHA_REFQUAD.
12966 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12968         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12969         memory correctly.
12971         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12972         instead of open, __close instead of close, __getpagesize instead
12973         of getpagesize.
12975         * string/argz-stringify.c (__argz_stringify): Use __strnlen
12976         instead of strnlen.
12977         * include/string.h (strndupa): Redefine here to use __strnlen
12978         instead of strnlen.
12979         * string/strndup.c (__strndup): Use __strnlen not strnlen.
12981         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12982         connected).
12984 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12986         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12987         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
12988         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12989         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12990         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12991         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12992         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12994 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12996         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12998 2001-08-30  Andreas Jaeger  <aj@suse.de>
13000         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
13001         contributed Stephen L Moshier.
13003 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
13005         * sunrpc/etc.rpc (sgi_fam): Add.
13007 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
13009         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
13011 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
13013         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
13014         first is from a previous call.
13015         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
13017 2001-08-29  Andreas Schwab  <schwab@suse.de>
13019         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
13021 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
13023         * config.make.in (INSTALL_SCRIPT): Define.
13024         * Makeconfig (INSTALL_SCRIPT): Define.
13025         * Makerules (do-install-script): New macro to install scripts using
13026         INSTALL_SCRIPT.
13027         (install-bin-script): New rule to install scripts with
13028         do-install-script.
13029         (install-bin-script-nosubdir): New rule.
13030         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
13031         (distinfo-vars): Add $(install-bin-script).
13032         * Rules (others): Likewise.
13033         * Makefile (glibcbug): Install with install-bin-script.
13034         * debug/Makefile (xtrace): Likewise.
13035         (catchsegv): Likewise.
13036         * elf/Makefile (ldd): Likewise.
13037         * malloc/Makefile (mtrace): Likewise.
13038         * timezone/Makefile (tzselect): Likewise.
13040 2001-08-29  H.J. Lu  <hjl@gnu.org>
13042         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
13043         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
13044         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
13046 2001-08-29  Andreas Schwab  <schwab@suse.de>
13048         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
13050 2001-08-28  H.J. Lu  <hjl@gnu.org>
13052         * Makeconfig (combreloc-LDFLAGS): New variable.
13053         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
13054         * config.make.in (have-z-combreloc): New variable.
13055         * configure.in: Substitute libc_cv_z_combreloc.
13057 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
13059         * po/sv.po: Update from translation team.
13060         * po/fr.po: Likewise.
13061         * po/da.po: Likewise.
13063 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
13065         * Makerules: Fix a typo: MD% -> MD5.
13067 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
13069         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
13070         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
13072 2001-08-28  Andreas Jaeger  <aj@suse.de>
13074         * manual/libc-texinfo.sh: Add entry about free manuals.
13076         * manual/contrib.texi (Contributors): Fix cross reference.
13078         * manual/libc.texinfo (Copying): Include freemanuals.
13080         * manual/Makefile (appendices): Add freemanuals.
13082         * manual/freemanuals.texi: New file.
13083         Patch by Brian Youmans <3diff@gnu.org>.
13085         * manual/libm-err-tab.pl: Pretty print more platforms, print a
13086         smaller table.
13088         * manual/math.texi (Errors in Math Functions): Fix grammar, start
13089         table on separate page.
13090         Patch by Brian Youmans <3diff@gnu.org>.
13092 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
13094         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
13095         the connection went down after we first used it try to connect
13096         again and resend the message before printing to the console.
13097         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
13099 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
13101         * string/tst-strlen.c (main): Test strnlen (, -1) too.
13102         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
13103         bit set.
13105 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
13107         * iconv/strtab.c (searchstring): Use correct length for comparison.
13108         (strtabadd): Account total size correct if new string has old string as
13109         substring.
13111 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
13113         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
13115 2001-08-27  Andreas Jaeger  <aj@suse.de>
13117         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
13119         * math/libm-test.inc (j0_test): Add extra tests.
13120         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
13121         not x, in Hankel approximation.
13122         Patches by Stephen L Moshier.
13124 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
13126         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
13127         link_map.
13129         * configure.in: Fix test for .rela.dyn section.
13131         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
13133 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
13135         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
13136         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
13137         Pass type_class to _dl_lookup_*.
13138         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
13139         Pass around just type_class instead of noexec, noplt pair.
13140         (_dl_lookup_versioned_symbol): Likewise.
13141         (_dl_lookup_symbol_skip): Pass around just type_class instead of
13142         noexec, noplt pair.
13143         (_dl_lookup_versioned_symbol_skip): Likewise.
13144         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
13145         * elf/do-lookup.h (do_lookup): Likewise.
13146         * include/link.h (struct link_map): Replace noexec and noplt fields
13147         in l_lookup_cache with type_class field.
13148         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
13149         ELF_RTYPE_CLASS_COPY): Define.
13150         Adjust prototypes for _dl_lookup_symbol and
13151         _dl_lookup_versioned_symbol.
13152         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
13153         elf_machine_lookup_noexec_p): Remove.
13154         (elf_machine_type_class): Define.
13155         * sysdeps/arm/dl-machine.h: Likewise.
13156         * sysdeps/hppa/dl-machine.h: Likewise.
13157         * sysdeps/cris/dl-machine.h: Likewise.
13158         * sysdeps/i386/dl-machine.h: Likewise.
13159         * sysdeps/ia64/dl-machine.h: Likewise.
13160         * sysdeps/m68k/dl-machine.h: Likewise.
13161         * sysdeps/mips/mips64/dl-machine.h: Likewise.
13162         * sysdeps/mips/dl-machine.h: Likewise.
13163         * sysdeps/powerpc/dl-machine.h: Likewise.
13164         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13165         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13166         * sysdeps/sh/dl-machine.h: Likewise.
13167         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13168         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13170 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
13172         * manual/message.texi (Advanced gettext functions): Change
13173         description of plural forms for Slovak.
13174         Reported by Marcel Telka <marcel@telka.sk>.
13176         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
13177         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
13179 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
13181         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
13182         typo.  Patch by Florian La Roche <laroche@redhat.com>.
13184 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
13186         * include/link.h (struct link_map): Add l_lookup_cache element.
13187         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
13188         (RESOLVE_MAP): Likewise.
13189         (_dl_relocate_object): Remove cache initialization.
13190         * elf/dl-lookup.c: Rip out cache handling code.
13191         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
13192         declarations.
13194         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
13195         remove some __builtin_expect.
13196         (_dl_lookup_versioned_symbol): Likewise.
13198         * config.h.in: Add HAVE_Z_COMBRELOC.
13199         * configure.in: Add test for -z combreloc.
13201         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
13202         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
13203         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
13204         case to almost no code.
13206 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
13208         * po/tr.po: Update from translation team.
13210 2001-08-24  Andreas Jaeger  <aj@suse.de>
13212         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
13213         make clean works.
13215 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13217         * elf/rtld.c (print_statistics): Printf % after percent values.
13218         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
13220         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
13221         don't have to compute the hash value and initialize current_value.
13222         Move reference_name variable to where it is needed.
13223         (_dl_lookup_versioned_symbol): Likewise.
13225 2001-08-24  Roland McGrath  <roland@frob.com>
13227         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
13228         Just test that strerror returns non-null for a few errno codes.
13230 2001-08-23  Roland McGrath  <roland@frob.com>
13232         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
13233         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
13235         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
13237         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
13238         __mach_reply_port.
13240 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13242         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
13243         returns NULL.
13245         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
13246         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
13247         doesn't do it.
13248         * elf/rtld.c: Include <sys/param.h>.
13249         * elf/dl-reloc.c: Likewise.
13251 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
13253         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
13254         empty to prevent junk from being generated.
13255         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
13257 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
13259         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
13260         records.  Rename endrel to relative, initialize it to r, and use it
13261         in elf_machine_rel_relative calls.  Point r after relative relocs.
13263 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13265         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
13266         of R_386_NONE.
13268 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
13270         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
13271         necessary.  Undefine newly defined macros at the end.
13272         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
13273         Rename from elf_machine_rel_relative.
13274         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
13275         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
13276         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
13277         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
13278         Likewise.
13279         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
13280         Likewise.
13281         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
13282         Fix argument types.
13283         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
13284         Fix argument types.
13285         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
13286         Likewise.  Fix argument types.
13287         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
13288         Likewise.  Fix argument types.
13289         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
13290         Fix argument types.
13291         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
13292         ElfW(Rel) in argument.
13293         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
13294         function.
13296 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
13298         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
13300 2001-08-24  Andreas Jaeger  <aj@suse.de>
13302         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
13303         Stephen L Moshier <moshier@mediaone.net>.
13305 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13307         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
13308         first if RELCOUNT is set.
13310         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
13311         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
13312         elf_machine_rel_relative.
13313         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
13314         Minor optimizations.
13315         * sysdeps/arm/dl-machine.h: Likewise.
13316         * sysdeps/cris/dl-machine.h: Likewise.
13317         * sysdeps/hppa/dl-machine.h: Likewise.
13318         * sysdeps/i386/dl-machine.h: Likewise.
13319         * sysdeps/ia64/dl-machine.h: Likewise.
13320         * sysdeps/m68k/dl-machine.h: Likewise.
13321         * sysdeps/mips/dl-machine.h: Likewise.
13322         * sysdeps/powerpc/dl-machine.h: Likewise.
13323         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13324         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13325         * sysdeps/sh/dl-machine.h: Likewise.
13326         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13327         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13329 2001-08-23  Roland McGrath  <roland@frob.com>
13331         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
13333         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
13334         sysdeps/mach version.  Implement counting ("recursive") mutexes
13335         on top of cthreads mutexes.
13336         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
13338         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
13339         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
13340         (__libc_cleanup_region_start, __libc_cleanup_region_end,
13341         __libc_clean_end): Define these to call the cleanup function after
13342         normal exit when they're supposed to.
13344         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
13345         Take new first arg DOIT, a boolean saying whether to really install
13346         any cleanup handler.
13347         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
13348         (__libc_cleanup_end): Likewise.
13349         * sysdeps/generic/bits/libc-lock.h: Same changes.
13350         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
13351         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
13352         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
13353         Likewise.
13354         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
13355         * sysdeps/generic/bits/stdio-lock.h
13356         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
13358 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13360         * elf/ldconfig.c (search_dir): Remove stale symlinks.
13362 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13364         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
13365         functions.
13366         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
13367         lookups in cache.
13368         (_dl_lookup_versioned_symbol): Likewise.
13369         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
13370         relocation lookup.
13371         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
13372         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
13373         (lookup_cache, lookup_cache_versioned): Add declarations.
13375 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
13377         * stdlib/tst-random.c (main): Swap parameters in fail call.
13378         Patch by Pete Bevin <pete@petebevin.com>.
13380 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13382         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
13384 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
13386         * malloc/obstack.c: Indent preprocessor directives.
13387         Patch by Jim Meyering <meyering@ascend.com>.
13389         * po/ja.po: Update from translation team.
13391 2001-08-23  Roland McGrath  <roland@frob.com>
13393         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
13395         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
13396         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
13398 2001-08-22  Roland McGrath  <roland@frob.com>
13400         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
13401         __libc_lock_define_recursive.
13402         * elf/dl-open.c: Don't declare it here any more.
13403         * elf/dl-close.c: Likewise.
13404         * elf/dl-lookup.c: Likewise.
13405         * elf/dl-iteratephdr.c: Likewise.
13406         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
13407         __libc_lock_unlock_recursive.
13408         * elf/dl-close.c (_dl_close): Likewise
13409         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
13410         * elf/dl-open.c (_dl_open): Likewise
13412         * sysdeps/generic/bits/libc-lock.h
13413         (__libc_lock_define_recursive): New macro.
13414         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
13415         (_IO_lock_lock): Use __libc_lock_lock_recursive.
13416         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
13418         * conform/conformtest.pl (checknamespace): Sort the output list.
13420         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
13421         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
13422         definitions conditional on [__USE_XOPEN].
13424         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
13425         these unconditionally, not only use [__USE_BSD], so as to match
13426         the sysdeps/unix/sysv/linux files.
13428 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13430         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
13431         avoid warnings.
13433         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
13434         DL_LOOKUP_ADDRESS.
13436 2001-08-22  Roland McGrath  <roland@frob.com>
13438         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
13439         conditionalization of sa_handler/sa_sigaction member types to
13440         match the sysdeps/unix/sysv/linux file.
13442 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13444         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
13445         symbol sizes a bit better.
13447         * sysdeps/ia64/strncpy.S: Complete rewrite.
13448         Contributed by Jakub Jelinek <jakub@redhat.com>.
13450         * string/stratcliff.c (main): Add strncpy test.
13452 2001-08-22  Roland McGrath  <roland@frob.com>
13454         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
13455         and don't declare unsetenv or _environ directly.
13456         (unsetenv): Return int, not void.  Use __environ instead of _environ.
13458 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
13460         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
13461         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
13462         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
13463         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
13464         test for cmsg struct size.
13466 2001-04-23  Paul Eggert  <eggert@twinsun.com>
13468         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
13469         Rename __argc to ___argc in prototypes to avoid compatibility
13470         problems with systems that reserve the identifier "__argc".
13471         Similarly for __argv.
13473 2001-08-21  Roland McGrath  <roland@frob.com>
13475         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
13477         * mach/Makefile (tests): Removed.
13478         * mach/hello.c: File removed.
13480 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13482         * po/sv.po: Update from translation team.
13484         * stdio-common/vfscanf.c: Fix handling of %l[].
13485         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
13487         * libio/Makefile (tests): Add tst-sscanf.
13488         * libio/tst-sscanf.c: New file.
13490         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
13491         * malloc/mtrace.c (tr_where): dli_sname always points to a
13492         non-empty string if != NULL.
13493         Reported by Tim Janik <timj@gtk.org>.
13495 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
13497         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
13498         buf.  Free resources on failure.
13499         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
13500         (makefd_xprt): Likewise.
13501         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
13502         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
13503         * sunrpc/auth_unix.c (authunix_create): Likewise.
13505 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
13507         * string/strnlen.c: Remove.
13508         * sysdeps/generic/strnlen.c: New file.
13509         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
13511 2001-08-21  Roland McGrath  <roland@frob.com>
13513         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
13514         as a macro, not an extern inline function.
13516         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
13517         * Versions.def (libc): Add GLIBC_2.2.5 set.
13518         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
13519         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
13521 2001-08-20  Roland McGrath  <roland@frob.com>
13523         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
13524         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
13526 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
13528         * string/bits/string2.h: Remove strnlen optimization here.
13529         * sysdeps/i386/i486/bits/string.h: Add it here.
13531 2001-08-21  Wolfram Gloger  <wg@malloc.de>
13533         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
13535 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
13537         * po/gl.po: Update from translation team.
13539 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13541         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
13542         * misc/err.c (convert_and_print): Likewise.
13544         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
13545         function calls.
13547 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13549         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
13550         change of the gregset_t type.
13551         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13553 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
13555         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
13557 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13559         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
13561         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
13563 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
13565         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
13566         before calling the cthreads initialization code.
13568 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13570         * argp/argp-help.c: Fix two problems introduced in last change.
13572         * include/dirent.h: Include <dirstream.h> first.
13574 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
13576         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
13578         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
13579         * sunrpc/xdr_rec.c: Likewise.
13580         * sunrpc/xdr_mem.c: Likewise.
13581         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
13582         * sunrpc/rpc_cmsg.c: Likewise.
13583         * sunrpc/getrpcport.c (getrpcport): Likewise.
13584         * sunrpc/clnt_simp.c (callrpc): Likewise.
13585         * sunrpc/clnt_gen.c (clnt_create): Likewise.
13586         * string/envz.c: Likewise.
13588         * po/ko.po: Update from translation team.
13590         * argp/argp-help.c: Handle wide oriented stderr stream.
13592 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
13594         * sysdeps/generic/strtol.c: Little optimizations.  Add some
13595         __builtin_expect.
13597         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
13599         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
13600         * wcsmbs/wcwidth.c (wcwdith): Likewise.
13601         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
13603         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
13605         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
13607         * time/time.h (struct timespec): Use __time_t for tv_sec element.
13609         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
13610         wchar_t for function declarations and defintions.
13612         * misc/sys/select.h: Define __need_time_t before including <time.h>.
13613         Define suseconds_t if it hasn't happened yet.
13615         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
13617         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
13619         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
13620         <stddef.h>.
13622         * conform/data/stddef.h-data: Remove wint_t.
13624         * conform/conformtest.pl: Change namespace test to take #undef
13625         lines into account.
13627         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
13629         * conform/data/sys/socket.h-data: Add sockatmark.
13631 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13633         * io/fts.c: Update from recent BSD source.
13635 2001-08-17  Roland McGrath  <roland@frob.com>
13637         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
13638         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
13639         Likewise.
13641 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13643         * locale/duplocale.c (__duplocale): Also initialize the special
13644         __ctype_* elements.
13646         * conform/data/netdb.h-data: Adjust gai_strerror return type.
13648 2001-08-17  Andreas Jaeger  <aj@suse.de>
13650         * misc/getpass.c: Include wchar.h for prototypes.
13651         * malloc/obstack.c: Likewise.
13653 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13655         * sunrpc/svc_simple.c (universal): Use __write instead of write.
13657         * wcsmbs/wcscoll.c: Also define __wcscoll.
13658         * include/wchar.h: Declare __wcscoll.
13660         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
13661         * libio/vwprintf.c: Likewise.
13662         * libio/wprintf.c: Likewise.
13664         * iconv/gconv_cache.c: Use __munmap instead of munmap.
13666 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
13668         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
13669         instead of mbrtowc.
13670         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
13671         wcslen, and __wcscoll instead of wcscoll.
13673         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
13675         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
13676         __getuid instead of getuid.
13678         * stdio-common/perror.c (perror): Use __close instead of close.
13679         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13680         * libio/freopen.c (freopen): Likewise.
13681         * libio/freopen64.c (freopen64): Likewise.
13683         * libio/tst-ungetwc2.c (main): Define str const.
13685         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13686         * libio/fwprintf.c: Also define __fwprintf.
13687         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13688         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13689         * assert/assert-perr.c: Likewise.
13690         * assert/assert.c: Likewise.
13691         * gmon/gmon.c: Likewise.
13692         * inet/rcmd.c: Likewise.
13693         * malloc/obstack.c: Likewise.
13694         * misc/err.c: Likewise.
13695         * misc/error.c: Likewise.
13696         * misc/getpass.c: Likewise.
13697         * posix/getopt.c: Likewise.
13698         * resolv/res_hconf.c: Likewise.
13699         * stdio-common/perror.c: Likewise.
13700         * stdio-common/psignal.c: Likewise.
13701         * stdlib/fmtmsg.c: Likewise.
13702         * sunrpc/auth_unix.c: Likewise.
13703         * sunrpc/clnt_perr.c: Likewise.
13704         * sunrpc/clnt_tcp.c: Likewise.
13705         * sunrpc/clnt_udp.c: Likewise.
13706         * sunrpc/clnt_unix.c: Likewise.
13707         * sunrpc/svc_simple.c: Likewise.
13708         * sunrpc/svc_tcp.c: Likewise.
13709         * sunrpc/svc_udp.c: Likewise.
13710         * sunrpc/svc_unix.c: Likewise.
13711         * sunrpc/xdr.c: Likewise.
13712         * sunrpc/xdr_array.c: Likewise.
13713         * sunrpc/xdr_rec.c: Likewise.
13714         * sunrpc/xdr_ref.c: Likewise.
13715         * sysdeps/generic/wordexp.c: Likewise.
13717         * po/it.po: Update from translation team.
13719         * misc/err.c: Handle wide oriented stderr stream.
13721 2001-08-14  Tom Rix  <trix@redhat.com>
13723         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13724         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13726 2001-08-13  Tom Rix  <trix@redhat.com>
13728         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13729         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13730         and __intptr_t.
13732 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13734         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13735         Store the access registers to the ucontext structure.
13736         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13737         Likewise.
13739         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13740         Load the access registers from the ucontext structure.
13741         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13742         Likewise.
13744         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13745         offsets to the new ucontext layout.
13746         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13748         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13749         of the ucontext structure.
13750         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13752 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
13754         * misc/error.c (error): Handle wide oriented stderr stream correctly.
13755         (error_at_line): Likewise.
13757         * stdio-common/perror.c (perror): Implement according to standard.
13758         The stream orientation must not be changed if the stream was not
13759         oriented before the call.
13760         * stdio-common/Makefile (tests): Add tst-perror.
13761         * stdio-common/tst-perror.c: New file.
13764 See ChangeLog.12 for earlier changes.