Update.
[glibc.git] / ChangeLog
blob9478980f57bea6e4660ae48c35d9cb7c5dc1dc80
1 2002-10-02  Steven Munroe  <sjmunroe@us.ibm.com>
2             Jakub Jelinek  <jakub@redhat.com>
4         * login/programs/utmpdump.c (print_entry): Copy up->ut_tv fields
5         to struct timeval temp_tv before printing to be 32-/64-bit agnostic.
6         * sysdeps/powerpc/bits/wordsize.h: Move to...
7         * sysdeps/powerpc/powerpc32/bits/wordsize.h: ...here.
8         (__WORDSIZE_COMPAT32): Define.
9         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
10         * sysdeps/sparc/sparc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
11         Define.
12         * sysdeps/sparc/sparc64/bits/wordsize.h (__WORDSIZE_COMPAT32):
13         Define.
14         * sysdeps/s390/bits/wordsize.h: Move to...
15         * sysdeps/s390/s390-32/bits/wordsize.h: ...here.
16         * sysdeps/s390/s390-64/bits/wordsize.h: Likewise.
17         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Define.
18         * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: New file.
19         * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: New file.
20         * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: New file.
21         * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: New file.
22         * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: New file.
23         * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: New file.
25 2002-10-02  Jakub Jelinek  <jakub@redhat.com>
27         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix comment typo.
28         Temporarily enable R_ALPHA_NONE relocs in ld.so.
29         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Temporarily enable
30         R_IA64_NONE relocs in ld.so.
32 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
34         * README.template: Minimum Linux kernel for powerpc64 is 2.4.19.
36         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (struct ipc_perm):
37         Use __uint32_t and __uint64_t for __seq, __pad1, __unused[12] fields
38         so they are consistent between PPC32 and PPC64.
40         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__WORDSIZE != 32]:
41         (_STAT_VER): Define to _STAT_VER_KERNEL.
42         (stru stat, struct stat64): Define to match the PPC64 kernel.
43         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
44         (libc: GLIBC_2.2): Remove __xstat64, __fxstat64, and __lxstat64.
45         * sysdeps/unix/sysv/linux/powerpc/powerpc64/kernel_stat.h: New file.
46         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fxstat64.c: New file.
47         * sysdeps/unix/sysv/linux/powerpc/powerpc64/lxstat64.c: New file.
48         * sysdeps/unix/sysv/linux/powerpc/powerpc64/xstat64.c: New file.
49         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add kernel_stat.h.
51 2002-10-02  Roland McGrath  <roland@redhat.com>
53         * sysdeps/unix/sysv/linux/xstatconv.c [STAT_IS_KERNEL_STAT]:
54         Conditionalize the function definitions on this.
55         * sysdeps/unix/sysv/linux/xstat.c (__xstat) [STAT_IS_KERNEL_STAT]:
56         Don't use xstat_conv, just fail if VERS != _STAT_VER_KERNEL.
57         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat) [STAT_IS_KERNEL_STAT]:
58         Likewise.
59         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat) [STAT_IS_KERNEL_STAT]:
60         Likewise.
62 2002-10-02  Ulrich Drepper  <drepper@redhat.com>
64         * version.h (VERSION): Bump to 2.3.
66         * elf/Makefile (distribute): Add tst-tlsmod1.c, tst-tlsmod2.c,
67         tst-tlsmod3.c, tst-tlsmod4.c, circlemod1.c, circlemod1a.c,
68         circlemod2.c, circlemod2a.c, circlemod3.c, circlemod3a.c,
69         and nodlopenmod2.c.
71         * login/Makefile (distribute): Add utmp-equal.h.
73         * iconvdata/Makefile (distribute): Add TSCII.precomposed and
74         TSCII.irreversible.
76         * Make-dist (dist): Create .bz2 file.  Add rule to create .bz2 files.
77         Also distribute xtests sources.
79 2002-10-02  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
81         * elf/elf.h: Change TLS ELF relocation numbers.
82         * elf/tls-macros.h: Fix code sequences for SH TLS_LD and TLS_GD
83         macros.
84         * sysdeps/sh/dl-machine.h (dl_machine_rela) [case R_SH_TLS_TPOFF32]:
85         Use addend.
86         * sysdeps/sh/elf/initfini.c: Move __fpscr_values to...
87         * sysdeps/sh/elf/start.S: ...here.
89 2002-10-01  Jakub Jelinek  <jakub@redhat.com>
91         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ,
92         SIGSTKSZ): Changed to match kernel.
93         * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h: New file.
95 2002-10-01  Carlos O'Donell  <carlos@baldric.uwo.ca>
97         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
98         [__USE_GNU] (F_SETLEASE, F_GETLEASE, F_NOTIFY): New macros.
99         [__USE_GNU] (DN_ACCESS, DN_MODIFY, DN_CREATE, DN_DELETE, DN_RENAME,
100         DN_ATTRIB, DN_MULTISHOT): New macros.
102 2002-02-08  Randolph Chung  <tausq@debian.org>
104         * sysdeps/hppa/elf/start.S: Define __data_start.
106 2002-10-01  Isamu Hasegawa  <isamu@yamato.ibm.com>
108         * posix/regex_internal.c (re_string_reconstruct): Reset the member
109         LEN and STOP.
110         * posix/regexec.c (re_search_stub): Remove incorrect condition of
111         "range < 0".
112         Round RANGE in case that it is too small.
114 2002-10-01  Roland McGrath  <roland@frob.com>
116         * config.h.in (NO_HIDDEN): New #undef.
117         * include/libc-symbols.h [! NO_HIDDEN]: Add this condition to
118         nonempty definitions of hidden_proto et al.
119         * configure.in: Grok --disable-hidden-plt to define NO_HIDDEN.
120         * configure: Regenerated.
121         * sysdeps/mach/hurd/configure.in: Always define NO_HIDDEN.
122         * sysdeps/mach/hurd/configure: Regenerated.
124 2002-09-19  David Mosberger  <davidm@hpl.hp.com>
126         * sysdeps/ia64/dl-fptr.c (make_fdesc): Load address of "local" via
127         a 64-bit gp-relative address to enable binaries with large data
128         sections.
130 2002-09-30  Ulrich Drepper  <drepper@redhat.com>
132         * stdlib/cxa_finalize.c (__cxa_finalize): Call UNREGISTER_ATFORK
133         if it is defined.
134         * posix/Makefile (distribute): Add fork.h.
135         * sysdeps/generic/fork.h: New file.
137 2002-09-29  Bruno Haible  <bruno@clisp.org>
139         * sysdeps/generic/utmp_file.c (LOCKING_FAILED): New macro.
140         (UNLOCK_FILE): Add a label.
141         (getutent_r_file, internal_getut_r, getutline_r_file, pututline_file,
142         updwtmp_file): Shut off the alarm clock when locking failed.
144 2002-09-30  Isamu Hasegawa  <isamu@yamato.ibm.com>
146         * posix/regex_internal.h (re_match_context_t): Add a new member.
147         (re_fail_stack_ent_t): New structure.
148         (re_fail_stack_t): Likewise.
149         * posix/regexec.c (re_search_internal): Use the new member of
150         re_match_context_t.
151         Use fail stack only if it has back references and there are plural
152         matching candidates.
153         (proceed_next_node): Use fail stack if it is indicated.
154         (set_regs): Likewise.
155         (push_fail_stack): New function.
156         (pop_fail_stack): New function.
157         (check_dst_limits): Likewise.
158         (check_dst_limits_calc_pos): Likewise.
159         (search_subexp): Check the limitations on the top of subexpressions.
160         (sift_states_bkref): Check the limitations of the destination node.
161         Reuse the array sctx->sifted_states.
163 2002-09-30  Ulrich Drepper  <drepper@redhat.com>
165         * stdio-common/printf_fp.c: Shuffle a few lines around to help the
166         compiler optimizing.  No semantical changes intended.
168 2002-09-30  Jakub Jelinek  <jakub@redhat.com>
170         * sysdeps/ia64/strncpy.S: Only segfault in .recovery2 if some bits
171         from the next quad are needed.
173 2002-09-30  Roland McGrath  <roland@redhat.com>
175         * elf/tls-macros.h (TLS_LD, TLS_GD): Use call insn, not callq.
177         * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD] [! PIC]:
178         Use direct-%fs form of TLS access for errno.
180         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: File removed, since
181         the i386 version has all the same asm now.
183         * sysdeps/i386/elf/configure.in: Add @GOTNTPOFF and @NTPOFF uses to
184         the TLS support check.
185         * sysdeps/i386/elf/configure: Regenerated.
187         * sysdeps/unix/sysv/linux/i386/sysdep.h [USE_TLS && HAVE___THREAD]
188         (SYSCALL_ERROR_HANDLER): Use direct-%gs form of TLS access for errno.
190         * sysdeps/unix/i386/sysdep.S (syscall_error)
191         [USE_TLS && HAVE___THREAD]: Use TLS access for errno.
193         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
194         [USE_TLS && HAVE___THREAD] (SYSCALL_ERROR_HANDLER): Use TLS access.
196         * rt/tst-aio7.c (do_test): Don't read from stdin, which could be the
197         terminal when the test is running in a background job.  Instead, make
198         a pipe and read from its read half while never writing anything to it.
200 2002-09-30  Andreas Jaeger  <aj@suse.de>
202         * stdlib/tst-bsearch.c (main): Fix format strings.
203         * stdio-common/tst-rndseek.c (do_test): Likewise.
204         * libio/tst_swprintf.c (main): Likewise.
205         * catgets/tst-catgets.c (main): Likewise.
206         * libio/tst-fgetws.c (main): Likewise.
207         * posix/tst-mmap.c (main): Likewise.
208         * posix/bug-regex12.c (main): Likewise.
209         * posix/bug-regex11.c (main): Likewise.
210         * io/tst-getcwd.c (do_test): Likewise.
212         * iconvdata/tst-e2big.c (test): Use %td in printf for ptrdiff_t.
214         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
215         Store 4 bytes into errno, not 8 bytes.
217 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
219         * posix/regexec.c (sift_states_bkref): Remove ret variable.  Use
220         err instead.
222 2002-09-29  Roland McGrath  <roland@redhat.com>
224         * test-skeleton.c (timeout_handler): Use WUNTRACED flag in waitpid.
225         Examine the child's status and print something different if it wasn't
226         just killed by our SIGKILL.
227         (main): In the child process call setpgid to put it in its own pgrp.
229 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
231         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): The return value
232         semantics for sigtimedwait is different.  Rework the return value
233         handling and don't pass in a siginfo variable.
235 2002-09-29  Roland McGrath  <roland@redhat.com>
237         * malloc/malloc.c [! MALLOC_DEBUG] (assert): #undef before defining.
239         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.2.6): Add __errno_location.
241         * sysdeps/unix/sysv/linux/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]:
242         Define errno in .tbss.
243         * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]: Use TLS
244         access for setting errno.
246         * sysdeps/unix/x86_64/sysdep.S: Store 32 bits at errno, not 64 bits.
247         AFAICT, it was just blind luck that the word following errno in .bss
248         was just alignment padding and not some other variable to be clobbered.
250 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
252         * sysdeps/unix/sysv/linux/kernel-features.h
253         (__ASSUME_SETRESUID_SYSCALL): On the sparc, define to 1, not empty.
255 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
257         * nss/bug-erange.c (main): Don't fail if /etc/resolv.conf doesn't
258         exist.
260 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
262         * nss/Makefile: Move bug-erange from tests to xtests.
264 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
266         * stdlib/longlong.h (__udiv_qrnnd): Remove PARAMS from prototype.
268 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
270         * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall0): Make asm
271         volatile.
272         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
273         inline_syscall5, inline_syscall6): Likewise.
274         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
275         Likewise.
276         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (INLINE_SYSCALL):
277         Likewise.
279 2002-09-29  Roland McGrath  <roland@redhat.com>
281         * configure.in (libc_cv_ranlib_necessary check): Put the .o file in
282         the archive, not the .c file.
283         * configure: Regenerated.
285 2002-09-29  Roland McGrath  <roland@redhat.com>
287         * configure: Regenerated after aclocal.m4 change.
289         * sysdeps/x86_64/sysdep.h [HAVE_ELF] (L): Define with .L##name form.
290         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (L): Don't define it here.
292         * sysdeps/generic/dl-lookupcfg.h [USE_TLS] (DL_LOOKUP_RETURNS_MAP):
293         Define it, because _dl_sym presumes it (for any platform).
295         * sysdeps/x86_64/dl-tls.h: New file.
297         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add a cast.
299         * sysdeps/x86_64/elf/configure.in: New file.
300         * sysdeps/x86_64/elf/configure: New generated file.
302 2002-09-28  Roland McGrath  <roland@redhat.com>
304         * elf/rtld.c (_dl_start): Fix conditional for declaring CNT.
306         * aclocal.m4 (LIBC_PROG_BINUTILS): Don't clobber $RANLIB with ranlib
307         before we check it.
309 2002-09-28  Ulrich Drepper  <drepper@redhat.com>
311         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __syscall_exit
312         entry point.
314 2002-09-28  Jakub Jelinek  <jakub@redhat.com>
316         * posix/bug-regex11.c (tests): Add flags field.
317         (main): Avoid warnings.  Use test[i].flags.  Return nonzero
318         if any of the tests failed.
319         * posix/bug-regex12.c: New file.
320         * posix/Makefile (tests): Add bug-regex12.
322 2002-03-02  Thorsten Kukuk  <kukuk@suse.de>
324         * sysdeps/unix/nice.c (nice): Use getpriority() for the return value.
326 2002-09-28  Jeff Bailey  <jbailey@gnu.org>
328         * sysdeps/unix/sysv/sysv4/solaris2/configure.in: Delete.
329         * sysdeps/unix/sysv/aix/configure.in: Update comment and remove
330         stdio=libio setting.
332 2002-09-28  Roland McGrath  <roland@redhat.com>
334         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Use INTUSE for
335         _dl_signal_error.
336         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Likewise.
337         * sysdeps/powerpc/powerpc64/dl-machine.c
338         (_dl_reloc_overflow): Likewise.
339         * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
340         (elf_machine_rela): Likewise.
342 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
344         * include/libc-symbols.h (__hidden_dot_weak1): Fix typo.  Replace
345         ASM_GLOBAL_DIRECTIVE with .weak.
347 2002-09-28  Andreas Jaeger  <aj@suse.de>
349         * sysdeps/unix/sysv/linux/mips/truncate64.c (truncate64): Fix
350         number of args to syscall.
351         * sysdeps/unix/sysv/linux/mips/ftruncate64.c (__ftruncate64): Likewise.
352         Patch by Guido Guenther <agx@sigxcpu.org>.
354 2002-09-27  Roland McGrath  <roland@redhat.com>
356         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_pread, __NR_pwrite):
357         Define these to __NR_pread64, __NR_pwrite64 if not defined.
359         * sysdeps/unix/sysv/linux/powerpc/lchown.S
360         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Use this condition
361         on chown compatibility symbol; use compat_symbol, not symbol_version.
363 2002-09-27  Isamu Hasegawa  <isamu@yamato.ibm.com>
365         * posix/regcomp.c (reg_free): Free the debug area.
366         (re_compile_internal): Allocate debug area for the input string.
367         (create_initial_state): Check the back references in initial states
368         if they are really match null string in the initial state.
369         (parse_reg_exp): Mark the dfa that the dfa can have plural matchings.
370         (parse_expression): Likewise.
371         (parse_bracket_exp): Likewise.
372         * posix/regex_internal.c (re_node_set_intersect): Remove unused
373         function.
374         (re_node_set_contains): Change to return the index of node.
375         * posix/regex_internal.h (re_backref_cache_entry): Change the members.
376         (re_match_context_t): Likewise.
377         (struct re_dfa_t): Likewise.
378         (re_sift_context_t): New structure.
379         * posix/regexec.c (match_ctx_clear_flag): New function.
380         (sift_ctx_init): Likewise.
381         (update_cur_sifted_state): Likewise.
382         (add_epsilon_src_nodes): Likewise.
383         (sub_epsilon_src_nodes): Likewise.
384         (check_subexp_limits): Likewise.
385         (search_subexp): Likewise.
386         (sift_states_bkref): Likewise.
387         (merge_state_array): Likewise.
388         (sift_states_iter_bkref): Remove unused function.
389         (add_epsilon_backreference): Remove unused function.
390         (re_search_internal): Adapt new members and interfaces.
391         (check_matching): Check the back references in initial states
392         if they are really match null string in the initial state.
393         (proceed_next_node): Change the evaluation of back references,
394         since we have real registers here.
395         (set_regs): Adapt new interface of proceed_next_node.
396         (sift_states_backward): Add invocation of update_cur_sifted_state
397         instead of add_epsilon_backreference.
398         Add a sentinel to the outermost while loop.
399         Move the handling of back references to sift_states_bkref function,
400         since we can't handle some back references (e.g. a back reference
401         which match NULL string) here.
402         (transit_state_mb): Handle the new member max_mb_elem_len.
403         (transit_state_bkref_loop): Move the evaluation of back references to
404         search_subexp function, since we can't evaluate some back references
405         (e.g. a back reference which can have plural matchings) here.
406         (match_ctx_init): Adapt the new member.
407         (match_ctx_add_entry): Adapt the new members.
409 2002-09-25  Alan Modra  <amodra@bigpond.net.au>
411         * elf/do-rel.h: Define macro DO_ELF_MACHINE_REL_RELATIVE for
412         'elf_machine_rel_relative'
413         (elf_dynamic_do_rel): Call DO_ELF_MACHINE_REL_RELATIVE macro
414         instead of 'elf_machine_rel_relative'.
415         * sysdeps/hppa/dl-machine.h:
416         Define macro DO_ELF_MACHINE_REL_RELATIVE for
417         'elf_machine_rel_relative' with extra map parameter
418         required by HPPA.
419         (elf_machine_rela_relative): Add plt relocation changes.
421 2001-11-14  Matthew Wilcox  <willy@debian.org>
423         * sysdeps/unix/sysv/linux/hppa/bits/ipc.h: New file.
424         * sysdeps/unix/sysv/linux/hppa/bits/msq.h: New file.
425         * sysdeps/unix/sysv/linux/hppa/bits/sem.h: New file.
426         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: New file.
428 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
430         * sysdeps/powerpc/powerpc32/Makefile: Fix typo in comment.
432         * sysdeps/powerpc/powerpc64/Makefile
433         [$(build-shared) = yes] (pic-ccflag): Define it.
434         [$(subdir) = csu] (CFLAGS-initfini.s): Add -fpic here too.
436 2002-09-27  Roland McGrath  <roland@redhat.com>
438         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Remove
439         unneeded TLS cases.
441 2002-09-27  Jakub Jelinek  <jakub@redhat.com>
443         * elf/dl-addr.c (_dl_addr): Set dli_fbase to l_map_start
444         unconditionally.  Set dli_fname to _dl_argv[0] only for main program.
446 2002-09-27  Roland McGrath  <roland@redhat.com>
448         * elf/dl-addr.c (_dl_addr): Add a cast.
450         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [USE_TLS]: Handle new
451         TLS relocs R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, and R_X86_64_TPOFF64.
453         * elf/elf.h (R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, R_X86_64_TPOFF64,
454         R_X86_64_TLSGD, R_X86_64_TLSLD, R_X86_64_DTPOFF32,
455         R_x86_64_GOTTPOFF, R_X86_64_TPOFF32): New macros.
456         (R_X86_64_NUM): Update the value.
458 2002-09-24  Jakub Jelinek  <jakub@redhat.com>
460         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_load_address): Don't
461         rely on *r_offset of R_SPARC_RELATIVE reloc in .got to contain the
462         addend.
463         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Use
464         the same l_addr computation.
465         * sysdeps/sparc/sparc64/configure.in: Removed.
466         * sysdeps/sparc/sparc64/configure: Removed.
467         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Remove.
469 2002-09-26  Ulrich Drepper  <drepper@redhat.com>
471         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_HASH entry
472         if necessary.
473         * elf/dl-lookup.c (_dl_setup_hash): DT_HASH entry is already relocated.
474         * elf/dl-addr.c (_dl_addr): Use .hash[1] entry to determine end of the
475         symbol table if necessary.
477 2002-09-26  Roland McGrath  <roland@redhat.com>
479         * stdlib/longlong.h: Replaced with current version from GCC mainline,
480         last modified 2002-09-22  Kazu Hirata  <kazu@cs.umass.edu>.
482 2002-09-25  Andreas Jaeger  <aj@suse.de>
484         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add syscall_exit.
485         Patch by Guido Guenther <agx@sigxcpu.org>.
487 2002-09-25  Roland McGrath  <roland@redhat.com>
489         * Makeconfig (%.v.i pattern rule): Use $(CPPFLAGS).
491 2002-09-24  Ulrich Drepper  <drepper@redhat.com>
493         * sysdeps/unix/sysv/linux/configure.in: Recognize nptl add-on name.
495 2002-09-24  Roland McGrath  <roland@redhat.com>
497         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Move __libc_read,
498         __libc_write, __libc_lseek64, to ...
499         (ld: GLIBC_PRIVATE): ... here.
501         * csu/Versions: Use %include <tls.h> to get USE_TLS defined.
502         (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _errno, errno.
503         (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put errno here instead.
504         * resolv/Versions: Use %include <tls.h> to get USE_TLS defined.
505         (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _h_errno, h_errno,
506         and _res.
507         (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put h_errno, _res here.
509         * elf/tls-macros.h [__x86_64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
510         New macros for x86-64.
512         * sysdeps/unix/sysv/linux/alpha/bits/time.h: File removed.
513         It was indentical to the linux/bits/time.h file.
515         * nscd/nscd_gethst_r.c (nscd_gethst_r): Add a cast to silence warning.
517         * resolv/gethnamaddr.c (gethostbyaddr): Use socklen_t for SIZE.
519 2002-09-23  Ulrich Drepper  <drepper@redhat.com>
521         * po/zh_CN.po: New file.
523 2002-09-23  Roland McGrath  <roland@redhat.com>
525         * posix/unistd.h: Test [__USE_UNIX98] instead of [__USE_OPEN2K]
526         for gethostname declaration.
528         * catgets/open_catalog.c (__open_catalog): Don't use a value type
529         as the __builtin_expect expression, just the Boolean value.
531         * sysdeps/generic/wordexp.c (parse_glob): int -> size_t for counter.
532         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
533         * resolv/res_hconf.c (arg_service_list, parse_line): Likewise.
534         * iconvdata/tst-loading.c (main): Likewise.
535         * catgets/tst-catgets.c (main): Likewise.
536         * stdlib/tst-xpg-basename.c (main): Likewise.
537         * stdlib/tst-bsearch.c (main): Likewise.
538         * stdio-common/test-vfprintf.c (main): Likewise.
539         * stdio-common/tst-rndseek.c (do_test): Likewise.
540         * libio/tst_swprintf.c (main): Likewise.
541         * libio/tst-fgetws.c (main): Likewise.
542         * wcsmbs/tst-mbrtowc.c (check_ascii): Likewise.
543         * time/tst-posixtz.c (main): Likewise.
544         * time/tst-strptime.c (test_tm): Likewise.
545         * time/tst-strptime.c (main): Likewise.
546         * time/tst-getdate.c (main): Likewise.
547         * posix/tst-mmap.c (main): Likewise.
548         * posix/tst-getaddrinfo.c (do_test): Likewise.
549         * io/tst-getcwd.c (do_test): Likewise.
550         * resolv/tst-aton.c (main): Likewise.
551         * inet/tst-network.c (main): Likewise.
552         * libio/tst-fgetws.c (main): Likewise.
553         * sysdeps/posix/sprofil.c (add_region): int -> unsigned int for I.
554         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): int -> unsigned int
555         for PTYNO.
557         * stdlib/msort.c (qsort): Add a cast to silence warning.
558         * stdio-common/vfprintf.c (process_string_arg): Likewise.
559         * libio/oldfileops.c (_IO_old_do_write): Likewise.
560         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Likewise.
561         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
562         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
563         * argp/argp-fmtstream.c (__argp_fmtstream_printf): Likewise.
564         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
565         * sysdeps/unix/grantpt.c (grantpt): Likewise.
566         * libio/tst-widetext.c (main): Likewise.
567         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
568         * rt/tst-aio.c (test_file): Likewise.
569         * rt/tst-aio64.c (test_file): Likewise.
570         * resolv/tst-aton.c (main): Likewise.
572         * catgets/catgetsinfo.h (CATGETS_MAGIC): Use U suffix on the constant.
574         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Cast to int32_t
575         instead of uint32_t in these macros.
577 2002-09-22  Bruno Haible  <bruno@clisp.org>
579         * iconv/iconv_prog.c (main): Provide an error message that identifies
580         the wrong encoding.
582         * iconvdata/tscii.c: New file.
583         * iconvdata/testdata/TSCII: New file.
584         * iconvdata/testdata/TSCII..UTF8: New file.
585         * iconvdata/TSCII.precomposed: New file.
586         * iconvdata/TSCII.irreversible: New file.
587         * iconvdata/gconv-modules (TSCII): New module.
588         * iconvdata/Makefile (modules): Add TSCII.
589         (distribute): Add tscii.c.
590         * iconvdata/tst-table-from.c (try, utf8_decode, main): Double output
591         buffer size.
592         * iconvdata/tst-tables.sh: Add TSCII.
593         * iconvdata/TESTS: Add TSCII.
595         Revert 2002-04-18 patch.
596         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
597         FROM_DIRECTION): Make the FROM direction stateful again.
598         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
599         FROM_DIRECTION): Likewise.
601         * iconvdata/tst-e2big.c: New file.
602         * iconvdata/Makefile (tests): Add tst-e2big.
604 2002-09-23  Roland McGrath  <roland@redhat.com>
606         * elf/Makefile (test-extras): Define this instead of test-srcs.
607         * Makerules (all-nonlib): Include $(test-extras) too.
609 2002-09-21  Carlos O'Donell  <carlos@baldric.uwo.ca>
611         * sysdeps/hppa/abort-instr.h: New file.
613 2002-09-22  Roland McGrath  <roland@frob.com>
615         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Remove duplicate entry.
617         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Add alias __GI__exit.
619 2002-09-22  Andreas Schwab  <schwab@suse.de>
621         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Append, not overwrite.
623         * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal)
624         (isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]:
625         Use GCC builtins.
627 2002-09-21  Roland McGrath  <roland@redhat.com>
629         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM):
630         Correct the value so it covers all platforms, and is computed
631         from _DL_PLATFORMS_COUNT rather than hard-wired.
632         From Andrew Suffield <asuffield@debian.org>.
634 2002-09-20  Ulrich Drepper  <drepper@redhat.com>
636         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
637         locking when using mount tab file.
638         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
639         * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
640         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
642         * elf/dl-init.c (_dl_init): Fix test of the size of the
643         preinit_array section.
644         (call_init): Optimize access to DT_INIT_ARRAY entry a bit.
645         Reported by Brian Cabral <cabral@ikuni.com>.
647 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
649         * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros.
650         * sysdeps/powerpc/powerpc32/sysdep.h: New file.  Define powerpc32
651         specific macros copied from sysdeps/powerpc/sysdep.h.
652         * sysdeps/powerpc/powerpc64/sysdep.h: New file.  Define powerpc64
653         specific macros.
654         * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>.
655         [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h.
656         [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h.
658 2002-09-19  Bruno Haible  <bruno@clisp.org>
660         * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
661         returning.
663 2002-09-17  Bruno Haible  <bruno@clisp.org>
665         * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
666         * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
667         also on platforms with !HAVE_UT_TYPE.
668         (proc_utmp_eq): Remove function.
669         (internal_getut_r, pututline_file): Call __utmp_equal instead.
671 2002-09-20  Bruno Haible  <bruno@clisp.org>
673         * abi-tags: Add support for FreeBSD with ABI OS value 3.
674         * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
676 2002-09-20  Roland McGrath  <roland@redhat.com>
678         * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
679         (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
680         terms of __WORDSIZE.
681         * sysdeps/x86_64/gmp-mparam.h: File removed.
682         * sysdeps/sparc/gmp-mparam.h: File removed.
683         * sysdeps/mips/mips64/gmp-mparam.h: File removed.
684         * sysdeps/ia64/gmp-mparam.h: File removed.
685         * sysdeps/alpha/gmp-mparam.h: File removed.
687 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
689         * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
690         load, so as to work on both 32-bit and 64-bit.  Remove unnecessary
691         casts.  Align __libc_stack_end to 8 bytes.
693 2002-09-20  Roland McGrath  <roland@redhat.com>
695         * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
696         instead of asm for lrintf, __lrintf aliases.
698         * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
699         int array for 32-/64-bit compatibility.
700         From Steven Munroe  <sjmunroe@us.ibm.com>.
702 2002-09-17  Bruno Haible  <bruno@clisp.org>
704         * sysdeps/generic/ifreq.h (__if_nextreq): New function.
705         * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
706         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
707         * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
708         for iterating through the list of interfaces.
709         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
711 2002-09-20  Roland McGrath  <roland@redhat.com>
713         * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
714         Reported by Bruno Haible <bruno@clisp.org>.
716         * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
718         * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
719         * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
720         isatty unmodified.  Reported by Bruno Haible <bruno@clisp.org>.
722 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
724         * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
725         * sysdeps/powerpc/bits/wordsize.h: New file.
726         * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
727         array to int array for 32-/64-bit compatibility.
729 2002-09-20  Roland McGrath  <roland@redhat.com>
731         * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
733         * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
734         Reported by Bruno Haible <bruno@clisp.org>.
736         * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
737         before doubling RQ_LEN.
738         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
739         Reported by Bruno Haible <bruno@clisp.org>.
741 2002-09-18  Bruno Haible  <bruno@clisp.org>
743         * login/logout.c (logout): Don't assume ut_time has the same size as
744         a time_t.
745         * login/logwtmp.c (logwtmp): Likewise.
747         * sysdeps/pthread/configure: New file, moved here from
748         linuxthreads/sysdeps/unix/sysv/linux/configure.
750 2002-09-19  Ulrich Drepper  <drepper@redhat.com>
752         * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
753         (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
754         Reported by Glen Nakamura <glen@imodulo.com>.
756 2002-09-19  Neal H. Walfield  <neal@cs.uml.edu>
758         * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
759         thread's sigstate data structure if it has been allocated.
761 2002-09-19  Roland McGrath  <roland@redhat.com>
763         * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
764         [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
766 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
768         * version.h (VERSION): Bump to 2.2.94.
770         * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
771         * sysdeps/powerpc/powerpc32/fpu/Dist: ...here.  New file.
772         * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
775         * sysdeps/i386/Makefile: Remove obsolete db2 rules.
777         * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
779         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
783 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
785         * sysdeps/wordsize-32/Makefile: New file.
786         * sysdeps/arm/Makefile: Removed.
787         * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
788         Don't add divdi3 here.
789         * sysdeps/m68k/Makefile: Likewise.
790         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
791         * sysdeps/sh/Makefile: Likewise.
792         * sysdeps/s390/s390-32/Makefile: Likewise.
794 2002-09-18  Roland McGrath  <roland@redhat.com>
796         * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
797         the __ctype_* compat symbols, so the relocs generated bind to the
798         right versioned global symbol in the shared object.
800         * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
801         from the value taken from the DT_VERSYM table.
802         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
803         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
804         (RESOLVE_GOTSYM): Likewise.
806         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
807         Add libc_hidden_def.
808         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
809         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
810         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
811         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
812         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
813         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
814         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
815         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
817 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
819         * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
821         * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
822         define sigaction and __sigaction as wrappers around
823         __libc_sigaction which rejects changing SIGCANCEL.
824         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
826         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
827         SETTID/CLEARTID.
829         * signal/allocrtsig.c: Move to...
830         * sysdeps/generic/allocrtsig.c: ...here.  New file.
832 2002-09-17  Jakub Jelinek  <jakub@redhat.com>
834         * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
836         * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
837         R_386_TLS_LE): Define.
838         (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
839         comments.
840         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
841         ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
842         (elf_machine_rel): Handle R_386_TLS_TPOFF.
843         (elf_machine_rela): Likewise.
844         Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
846 2002-09-17  Roland McGrath  <roland@redhat.com>
848         * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
849         file-specific variable override so it compiles properly when using
850         --with-headers.
852 2002-09-17  Steven Munroe  <sjmunroe@us.ibm.com>
854         Ported to PowerPC64 running Linux.
855         * sysdeps/powerpc/powerpc64/Dist: New file.
856         * sysdeps/powerpc/powerpc64/Implies: New file.
857         * sysdeps/powerpc/powerpc64/Makefile: New file.
858         * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
859         * sysdeps/powerpc/powerpc64/atomicity.h: New file.
860         * sysdeps/powerpc/powerpc64/backtrace.c: New file.
861         * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
862         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
863         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
864         * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
865         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
866         * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
867         * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
868         * sysdeps/powerpc/powerpc64/memset.S: New file.
869         * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
870         * sysdeps/powerpc/powerpc64/register-dump.h: New file.
871         * sysdeps/powerpc/powerpc64/setjmp.S: New file.
872         * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
873         * sysdeps/powerpc/powerpc64/strchr.S: New file.
874         * sysdeps/powerpc/powerpc64/strcmp.S: New file.
875         * sysdeps/powerpc/powerpc64/strcpy.S: New file.
876         * sysdeps/powerpc/powerpc64/strlen.S: New file.
877         * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
878         * sysdeps/powerpc/powerpc64/elf/start.S: New file.
879         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
880         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
882         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
885         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
886         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
887         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
889         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
890         (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
891         various gcc versions.  Dot names required for powerpc64.
892         [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
893         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
894         C_SYMBOL_DOT_NAME(alias).
895         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
896         original strong_alias macro.
897         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
898         C_SYMBOL_DOT_NAME(alias).
899         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
900         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
901         '.'ed name.
902         Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
903         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro.  Generate
904         .global C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
905         (hidden_def): Append hidden_dot_def1 macro to definition.
906         (hidden_ver): Append hidden_dot_def1 macro to definition.
907         (hidden_data_def): New macro.  Same as original hidden_def macro.
908         (hidden_data_ver): New macro.  Same as original hidden_ver macro.
909         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro.  Generate
910         .weakext C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
911         (hidden_weak): Append hidden_dot_weak1 macro to definition.
912         (hidden_data_weak): New macro.  Same as original hidden_weak macro.
913         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
914         Otherwise defined as __GI_name.
915         (libc_hidden_data_def): New macro.  Use hidden_data_def.
916         (libc_hidden_data_weak): New macro.  Use hidden_data_weak.
917         (libc_hidden_data_ver): New macro.  Use hidden_data_ver.
918         (rtld_hidden_data_def): New macro.  Use hidden_data_def.
919         (rtld_hidden_data_weak): New macro.  Use hidden_data_weak.
920         (rtld_hidden_data_ver): New macro.  Use hidden_data_ver.
921         (libm_hidden_data_def): New macro.  Use hidden_data_def.
922         (libm_hidden_data_weak): New macro.  Use hidden_data_weak.
923         (libm_hidden_data_ver): New macro.  Use hidden_data_ver.
924         * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
926 2002-09-17  Ulrich Drepper  <drepper@redhat.com>
928         * include/libc-symbols.h: Change *hidden_proto macros to accept
929         option parameters and pass those to the attribute definition.
930         * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
932         * include/unistd.h: Declare __libc_pause.
934         * include/sys/socket.h: Declare __libc_send, __libc_recv,
935         __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
937         * include/unistd.h: Declare __libc_fork.
939 2002-09-17  Roland McGrath  <roland@redhat.com>
941         * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
942         (passwd2des): Define it as an alias.
943         (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
945 2002-09-12  Bruno Haible  <bruno@clisp.org>
947         * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
948         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
950         * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
951         * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
953 2002-09-05  Steven Munroe  <sjmunroe@us.ibm.com>
955         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
956         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
957         __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
958         PowerPC64 does not have separate 64-bit syscalls.
960 2002-09-16  Roland McGrath  <roland@redhat.com>
962         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
964         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
965         New macro.
967         * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
969         * include/unistd.h: Uncomment libc_hidden_proto for _exit.
970         * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
971         * sysdeps/generic/_exit.c: Likewise.
973 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
975         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
977         * elf/rtld.c (struct dl_start_final_info): New.
978         (_dl_start_final): Change second argument to struct
979         dl_start_final_info *.  Set start_time from info.
980         (_dl_start): Remove bootstrap_map variable, add info.
981         Define bootstrap_map as macro.  If not DONT_USE_BOOTSTRAP_MAP,
982         store HP_TIMING_NOW result into info.start_time.
984 2002-09-16  Andreas Jaeger  <aj@suse.de>
986         * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
987         to _Exit.
988         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
990 2002-09-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
992         * sysdeps/powerpc/abort-instr.h: New file.
994 2002-09-14  Ulrich Drepper  <drepper@redhat.com>
996         * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
997         comment.
999         * test-skeleton.c (main): Provide more information in case waitpid
1000         fails.
1002         * include/unistd.h: Declare __exit_thread.
1003         * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
1004         Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
1005         * sysdeps/unix/sysv/linux/exit-thread.S: New file.
1006         * sysdeps/unix/sysv/linux/_exit.c: New file.
1007         * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
1008         * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
1009         Add exit-thread.
1011         * configure.in: Add dl_iterate_phdr to test using -nostdlib.
1013 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
1015         * sysdeps/i386/dl-machine.h (elf_machine_rel)
1016         (case R_386_TLS_DTPMOD32): Don't use addend.
1017         [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
1018         (elf_machine_rela): Add support for TLS relocs.
1020 2002-09-14  Roland McGrath  <roland@redhat.com>
1022         * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
1024 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
1026         * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
1027         specific asm macros for multiple percision integer math.
1029 2002-06-04  Steven Munroe  <sjmunroe@us.ibm.com>
1031         * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
1032         * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
1033         Remove per-machine conditionals for FLAG_* cases.
1034         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
1035         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
1036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
1038 2002-09-10  Alan Modra <amodra@bigpond.net.au>
1040         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
1041         defined in entry.h.
1042         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
1043         lowest address for profiling in  __monstartup call.
1044         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
1046 2002-09-14  Roland McGrath  <roland@redhat.com>
1048         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
1049         instead of __NR_pread.
1050         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
1051         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
1052         instead of __NR_pwrite.
1053         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
1055 2002-09-13  Roland McGrath  <roland@redhat.com>
1057         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
1059 2002-09-13  Andreas Jaeger  <aj@suse.de>
1061         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
1062         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
1064 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
1066         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
1068 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
1070         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
1071         reading the headers.
1073 2002-09-12  Roland McGrath  <roland@redhat.com>
1075         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
1076         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
1077         find the ELF header.
1079         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
1080         executable if needed, in case it's actually a shared object.
1082 2002-09-11  Roland McGrath  <roland@redhat.com>
1084         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
1085         l_map_start to adjust l_tls_initimage.
1087         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
1088         when using h_errno and it's not set to NETDB_INTERNAL.
1089         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
1091         * Makefile ($(common-objpfx)testrun.sh): New target.
1092         (others): Depend on it.
1093         (postclean-generated): Append it.
1095         * nss/bug-erange.c: New file.
1096         * nss/Makefile (tests): Add it.
1098         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
1099         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
1101         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
1102         strncmp, keeps the code smaller for a non-performance-critical case.
1104         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
1105         no longer wrongly matches arbitrary prefixes of NAME.
1106         Reported by Jakub Jelinek <jakub@redhat.com>.
1108 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
1110         * posix/bug-regex11.c (tests): New array.
1111         (main): Rewritten to run more different tests.
1113 2002-09-10  Roland McGrath  <roland@redhat.com>
1115         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
1116         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
1117         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
1119         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
1120         well so we don't get it declared by include/math.h's hidden_proto.
1121         Then do hidden_proto for __isnanf locally so hidden_def works right.
1123         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
1124         a cast to turn nl_langinfo return value into an integer.
1126 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
1128         * posix/regexec.c (build_trtable): Fix the destination of
1129         newline to prevent wrong states from overwriting.
1130         Append break statements to optimization.
1132 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
1134         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
1135         (build_range_exp): Add castings to strlen invocations.
1136         (build_collating_symbol): Restore the type of characters from "char"
1137         to "unsigned char", and supplement castings.
1138         (build_collating_symbol): Likewise.
1139         (build_equiv_class): Likewise.
1140         (build_charclass): Likewise.
1141         (seek_collating_symbol_entry): Likewise.
1142         (parse_bracket_exp): Likewise.
1143         (build_word_op): Supplement a casting.
1144         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
1145         (re_string_allocate): Fix castings.
1146         (re_string_construct): Likewise.
1147         (re_string_construct_common): Likewise.
1148         (re_string_realloc_buffers): Likewise.
1149         (build_wcs_buffer): Likewise.
1150         (build_wcs_upper_buffer): Likewise.
1151         (re_string_skip_chars): Likewise.
1152         (re_string_reconstruct): Likewise.
1153         * posix/regex_internal.h: Restore the type of characters in
1154         re_string_t and bracket_elem_t from "char" to "unsigned char".
1155         (re_string_elem_size_at): Fix castings.
1156         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
1157         (transit_state_bkref_loop): Restore the type of characters from
1158         "char" to "unsigned char", and append a cast to "char*" pointer in
1159         array subscript.
1160         (check_node_accept_bytes): Likewise.
1161         (find_collation_sequence_value): Likewise.
1163 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
1165         * sysdeps/mips/memcpy.S: New file.
1166         * sysdeps/mips/memset.S: New file.
1167         * sysdeps/mips/fpu/e_sqrt.c:  New file.
1168         * sysdeps/mips/fpu/e_sqrtf.c: New file.
1170         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
1171         functional before. Also removed all SHLIB_COMPAT stuff.
1172         * fpu/fegetenv.c: Likewise.
1173         * fpu/fesetenv.c:: Likewise.
1174         * fpu/feupdateenv.c: Likewise.
1175         * fpu/fgetexcptflg.c: Likewise.
1176         * fpu/fraiseexcpt.c: Likewise.
1178         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
1180 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
1182         * include/math.h (__finite_internal, __finitef_internal,
1183         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
1184         (isfinite): Remove.
1185         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
1186         __isinfl, __isnanl): Add hidden_proto.
1187         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
1188         libm_hidden_proto.
1189         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
1190         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
1191         __is{inf,nan} calls.
1192         * stdio-common/printf_size.c (printf_size): Likewise.
1193         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
1194         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
1195         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
1196         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
1197         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
1198         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
1199         (__finite): Add hidden_def.
1200         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
1201         (__finitef): Add hidden_def.
1202         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
1203         (__finitel): Add hidden_def.
1204         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
1205         hidden_def.
1206         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
1207         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
1208         libm_hidden_def.
1209         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
1210         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
1211         hidden_def.
1212         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
1213         (__isinfl): Remove INTDEF.
1214         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
1215         hidden_def.
1216         (__isnanl): Remove INTDEF.
1217         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
1218         libm_hidden_def.
1219         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
1220         instead of sin and cos.
1221         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
1222         Add hidden_def.
1223         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
1224         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
1225         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
1226         libm_hidden_def.
1227         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
1228         Add hidden_def.
1229         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
1230         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
1231         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
1232         libm_hidden_def.
1233         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
1234         libm_hidden_def.
1235         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
1236         Add hidden_def.
1237         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
1238         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
1239         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
1240         libm_hidden_def.
1241         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
1242         __finitel_internal): Remove aliases.
1243         (__finite, __finitef, __finitel): Add hidden_def.
1244         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
1245         __isnanl_internal): Remove aliases.
1246         (__isnan, __isnanf, __isnanl): Add hidden_def.
1247         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
1248         __isinfl_internal): Remove aliases.
1249         (__isinf, __isinff, __isinfl): Add hidden_def.
1250         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
1251         __fpclassifyl): Add libm_hidden_def.
1252         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
1253         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
1254         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
1255         (hidden_defx): Define and use.
1256         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
1257         libm_hidden_def.
1258         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
1259         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
1260         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
1261         Remove INTDEF.
1262         (__isnan, __isnanf): Add hidden_def.
1263         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
1264         (__finitel): Add libm_hidden_def.
1265         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
1267         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
1268         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
1269         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1270         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
1271         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1272         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
1273         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
1274         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
1275         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1276         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
1277         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1278         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
1279         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1280         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
1281         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1282         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
1283         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1284         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
1285         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1286         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
1287         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1288         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
1289         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1290         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
1291         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1292         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
1293         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1295 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
1297         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
1299 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
1301         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
1302         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
1304 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
1306         * string/stratcliff.c: Some more strncpy tests.
1307         Patch by Daniel Jacobowitz <drow@mvista.com>.
1309 2002-09-08  Roland McGrath  <roland@redhat.com>
1311         * resolv/resolv.h: Include <sys/types.h> for u_long even in
1312         the [__need_res_state] case.
1313         Reported by Bruno Haible <bruno@clisp.org>.
1315 2002-09-04  Bruno Haible  <bruno@clisp.org>
1317         * sysdeps/generic/bits/ustat.h: Comment fix.
1318         * io/sys/sendfile.h: Comment fix.
1319         * sysdeps/posix/pread.c: Comment fix.
1320         * sysdeps/posix/pread64.c: Comment fix.
1321         * sysdeps/posix/pwrite.c: Comment fix.
1322         * sysdeps/posix/pwrite64.c: Comment fix.
1324 2002-09-06  Roland McGrath  <roland@redhat.com>
1326         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
1327         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
1328         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
1329         (_UTSNAME_MACHINE_LENGTH): Likewise.
1330         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
1332 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
1334         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
1335         test for filesystem type name of mount points.
1337         * include/errno.h: Use errno definition with __thread for now only
1338         in libc and ld.so.
1340         * test-skeleton.c (main): Improve error message for unexpected
1341         signal case.
1343 2002-09-05  Roland McGrath  <roland@redhat.com>
1345         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
1346         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1348 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
1350         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
1351         case of failure.
1353 2002-09-04  Bruno Haible  <bruno@clisp.org>
1355         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
1356         sigset_get_old_mask): Turn into inline functions.
1357         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
1358         sigset_get_old_mask): Likewise.
1359         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
1360         sigset_get_old_mask): Likewise.
1361         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
1362         syntax.
1364         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
1366         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
1367         default definitions.
1368         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
1369         _sys_nerr_internal instead of _sys_nerr.
1371         * nscd/connections.c (handle_request): Declare CALLER inside #if.
1373 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
1375         * sysdeps/powerpc/__longjmp.S: Moved to...
1376         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
1377         * sysdeps/powerpc/add_n.S: Moved to...
1378         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
1379         * sysdeps/powerpc/addmul_1.S: Moved to...
1380         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
1381         * sysdeps/powerpc/atomicity.h: Moved to...
1382         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
1383         * sysdeps/powerpc/backtrace.c: Moved to...
1384         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
1385         * sysdeps/powerpc/bp-asm.h: Moved to...
1386         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
1387         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
1388         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
1389         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
1390         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
1391         * sysdeps/powerpc/dl-machine.c: Moved to...
1392         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
1393         * sysdeps/powerpc/dl-machine.h: Moved to...
1394         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
1395         * sysdeps/powerpc/dl-start.S: Moved to...
1396         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
1397         * sysdeps/powerpc/gprrest0.S: Moved to...
1398         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
1399         * sysdeps/powerpc/gprrest1.S: Moved to...
1400         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
1401         * sysdeps/powerpc/gprsave0.S: Moved to...
1402         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
1403         * sysdeps/powerpc/gprsave1.S: Moved to...
1404         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
1405         * sysdeps/powerpc/lshift.S: Moved to...
1406         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
1407         * sysdeps/powerpc/memset.S: Moved to...
1408         * sysdeps/powerpc/powerpc32/memset.S: ...here.
1409         * sysdeps/powerpc/mul_1.S: Moved to...
1410         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
1411         * sysdeps/powerpc/ppc-mcount.S: Moved to...
1412         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
1413         * sysdeps/powerpc/register-dump.h: Moved to...
1414         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
1415         * sysdeps/powerpc/rshift.S: Moved to...
1416         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
1417         * sysdeps/powerpc/setjmp.S: Moved to...
1418         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
1419         * sysdeps/powerpc/stpcpy.S: Moved to...
1420         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
1421         * sysdeps/powerpc/strchr.S: Moved to...
1422         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
1423         * sysdeps/powerpc/strcmp.S: Moved to...
1424         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
1425         * sysdeps/powerpc/strcpy.S: Moved to...
1426         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
1427         * sysdeps/powerpc/strlen.S: Moved to...
1428         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
1429         * sysdeps/powerpc/sub_n.S: Moved to...
1430         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
1431         * sysdeps/powerpc/submul_1.S: Moved to...
1432         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
1433         * sysdeps/powerpc/elf/bzero.S: Moved to...
1434         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
1435         * sysdeps/powerpc/elf/start.S: Moved to...
1436         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
1437         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
1438         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
1439         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
1440         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
1441         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
1442         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
1443         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
1444         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
1445         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
1446         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
1447         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
1448         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
1449         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
1450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
1451         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
1452         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
1453         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
1454         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
1455         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
1456         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
1457         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
1458         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
1459         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
1460         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
1461         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
1462         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
1463         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
1464         powerpc/powerpc64.
1466 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
1468         * FAQ.in: Add powerpc64 to supported targets list. Also state the
1469         minimum gcc version is 3.2
1470         * README: Add powerpc64 to supported targets list.
1471         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
1472         Add powerpc64 and machine=powerpc/powerpc64.
1473         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
1474         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
1475         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
1476         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
1477         * sysdeps/powerpc/powerpc32/Dist: New file.
1478         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
1479         * sysdeps/powerpc/powerpc32/Implies: New file.
1480         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
1481         ($(with-fp) = no): Move test to powerpc32/Makefile.
1482         ($(subdir) = misc): Move to powerpc32/Makefile.
1483         ($(build-shared) = yes): Move to powerpc32/Makefile.
1484         ($(subdir) = csu): Move to powerpc32/Makefile.
1485         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
1486         * sysdeps/powerpc/powerpc32/Makefile: New file.
1487         * sysdeps/powerpc/Versions: Remove libgcc functions.
1488         * sysdeps/powerpc/powerpc32/Versions: New file.
1489         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
1490         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
1491         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
1492         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
1493         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
1494         ($machine): Add powerpc/powerpc64 to if ... | for
1495         libc_cv_slibdir=/libc64.
1496         (powerpc*): Set ldd_rewrite_script.
1497         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
1498         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
1499         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
1500         Add clone.S.
1501         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
1502         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
1503         functions.  Remove GLIBC_2.2 functions except getrlimit and
1504         setrlimit.  Moved them to ...
1505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
1507 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
1509         * libio/tst-atime.c: Include <errno.h>.
1510         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
1512 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
1514         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
1515         warnings of some compilers.
1516         (build_collating_symbol): Change the type of characters from
1517         "unsigned char" to "char", and append a cast to "char*" pointer in
1518         array subscript.
1519         (build_collating_symbol): Likewise.
1520         (build_equiv_class): Likewise.
1521         (build_charclass): Likewise.
1522         (re_compile_pattern): Remove incorrect cast.
1523         (re_compile_fastmap_iter): Change the type of characters from
1524         "unsigned char" to "char", and append a cast to "char*" pointer
1525         in array subscript.
1526         (parse_bracket_exp): Likewise.
1527         * posix/regex_internal.c (re_string_construct_common): Likewise.
1528         (re_string_allocate): Likewise.
1529         (re_string_construct): Likewise.
1530         (re_string_realloc_buffers): Likewise.
1531         (build_wcs_buffer): Likewise.
1532         (re_string_reconstruct): Likewise.
1533         * posix/regex_internal.h: Change the type of characters in
1534         re_string_t and bracket_elem_t from "unsigned char" to "char".
1535         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
1536         warnings of some compilers.
1537         (transit_state_bkref_loop): Change the type of characters from
1538         "unsigned char" to "char", and append a cast to "char*" pointer in
1539         array subscript.
1540         (check_node_accept_bytes): Likewise.
1541         (find_collation_sequence_value): Likewise.
1543 2002-09-04  Roland McGrath  <roland@redhat.com>
1545         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
1546         from 1024 to 65536, to avoid buffer overrun.
1548 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
1550         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
1552 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
1554         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
1555         for filesystem.
1557 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
1559         * posix/bug-regex11.c: New test.
1560         * posix/Makefile (tests): Add bug-regex11.
1562 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
1564         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
1565         newlocale.
1567 2002-09-02  Roland McGrath  <roland@redhat.com>
1569         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
1570         __pthread_initialize_minimal and __libc_check_standard_fds to
1571         match the generic version.
1573         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
1574         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
1576         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
1577         warnings on platorms where char is unsigned.
1579 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
1581         * version.h (VERSION): Bump to 2.2.93.
1583         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
1585 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
1587         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
1588         as relocated.
1590 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
1592         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
1594 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
1596         * locale/localeinfo.h (struct locale_data): Add private.ctype.
1597         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
1598         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
1599         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
1600         (__wcsmbs_load_conv): Remove const from argument.
1601         (_nl_cleanup_ctype): New proto.
1602         (get_gconv_fcts): New function.
1603         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
1604         (__wcsmbs_to_wc): Rename back to...
1605         (to_wc): ... this.
1606         (__wcsmbs_gconv_fcts): Rename to...
1607         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
1608         (lock): Removed.
1609         (__libc_setlocale_lock): New extern.
1610         (__wcsmbs_load_conv): Remove const from argument.
1611         Initialize new_category->private.ctype instead of a global
1612         variable.
1613         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
1614         update_function_ptrs.  No locking is necessary.
1615         (_nl_cleanup_ctype): New function.
1616         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
1617         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
1618         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1619         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
1620         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
1621         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
1622         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
1623         * wcsmbs/wctob.c (wctob): Likewise.
1624         * stdlib/mblen.c (mblen): Likewise.
1625         * stdlib/mbtowc.c (mbtowc): Likewise.
1626         * stdlib/wctomb.c (wctomb): Likewise.
1627         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
1628         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
1629         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
1630         Removed.
1632 2002-09-02  Roland McGrath  <roland@frob.com>
1634         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
1636 2002-09-01  Roland McGrath  <roland@redhat.com>
1638         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
1639         Variable declarations removed.
1640         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
1641         these functions to replace them.
1642         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
1643         functions plus an indirection rather than the old global variables.
1644         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
1645         Macros removed.
1646         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
1647         inline functions.
1648         * ctype/ctype-info.c: Revert last reversion back the other way.
1649         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
1650         Define real function versions of include/ctype.h inlines here.
1651         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
1652         __ctype_tolower_loc, __ctype_toupper_loc.
1653         * locale/lc-ctype.c: Revert last reversion back the other way.
1654         (_nl_postload_ctype): If current thread uses the global locale,
1655         update its tsd vars.
1656         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
1657         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
1658         CTYPE_TOLOWER, CTYPE_TOUPPER.
1660         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
1661         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
1662         from __libc_tsd_threadvar_location.
1663         (__libc_tsd_set, __libc_tsd_get): Update uses.
1665 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
1667         * ctype/ctype.h: Undo the patch before the last one.  Put back the
1668         macro definitions for the standard functions to access the
1669         classification and mapping arrays.
1670         * include/ctype.h: Partly revert last patch.  Move the macro
1671         definitions for the exported functions back to the public header.
1672         #undef all the macros defined here before redefining.
1673         * ctype/ctype-info.c: Revert last patch.
1674         * locale/lc-ctype.c: Revert last patch.
1676         * ctype/Makefile (routines): Add isctype.
1677         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
1678         * ctype/ctype.h: Add declaration of isctype.
1679         * include/ctype.h: Declare __isctype.
1680         * ctype/isctype.c: New file.
1682 2002-09-01  Roland McGrath  <roland@redhat.com>
1684         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
1685         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1687         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1689         * locale/findlocale.c (_nl_remove_locale): Don't search in
1690         _nl_locale_file_list if DATA->alloc is ld_archive.
1691         Use _nl_unload_locale to do the rest of the work.
1693         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1694         of new structure to UNDELETABLE.
1696         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1697         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1698         towlower, towupper): Macros removed.
1699         * ctype/ctype.h (__tobody): Put parens around macro argument.
1700         (__isctype): Macro removed.
1701         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1702         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1703         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1704         tolower, toupper): Macros and inlines removed.
1705         * include/ctype.h [! NOT_IN_libc]
1706         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1707         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1708         tolower, toupper): Define here instead, using _NL_CURRENT.
1709         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1710         using _NL_CURRENT.
1711         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1712         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1713         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1714         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1715         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1716         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1717         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
1718         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1719         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1720         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1721         (ISSORTMASK): Update use.
1722         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1723         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1724         (_nss_files_getENTNAME_r): Likewise.
1725         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1726         Likewise.
1728         * Makerules (all-nonlib): Renamed from all-tests.
1729         Include $(others) here too.
1730         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1731         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1732         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1733         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1734         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
1735         the program modules via cppflags-iterator.mk.
1736         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1737         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1739 2002-08-31  Roland McGrath  <roland@redhat.com>
1741         * posix/tst-getconf.sh: If no third arg, work with static linking.
1743         * locale/categories.def (LC_TIME): No more _nl_postload_time.
1745         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1746         [_NL_CURRENT_INDIRECT].
1748 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1750         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1752 2002-08-31  Roland McGrath  <roland@redhat.com>
1754         * locale/newlocale.c (__newlocale): Don't use strdup for names.
1755         Instead, make the single allocation of the structure larger to hold
1756         the name strings.
1757         * locale/duplocale.c (__duplocale): Don't strdup names individually.
1758         Instead, calculate size for a single allocation and copy into it.
1759         * locale/freelocale.c (__freelocale): Don't free names individually.
1761         * locale/newlocale.c (__newlocale): Don't leak old data or names.
1763         * locale/xlocale.h (__locale_struct): Move __names member last,
1764         for binary compatibility.
1766         * locale/duplocale.c (__duplocale): Free names from the right array.
1768         * locale/uselocale.c (__uselocale): Return previous locale when
1769         setting a new one.
1771         * locale/newlocale.c: Commit changes from 2002-08-30
1772         batch where I failed to commit this file:
1773         (__newlocale): Fill in __names array.
1775 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1777         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1778         errlist-compat.c if versioning==yes.
1780 2002-08-31  Andreas Jaeger  <aj@suse.de>
1782         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1783         external functions with hidden attribute.
1784         (elf_machine_rela): Optimize.
1786         * sysdeps/x86_64/memset.S: New file.
1787         * sysdeps/x86_64/bzero.S: New file.
1788         * sysdeps/x86_64/stpcpy.S: New file.
1789         * sysdeps/x86_64/strcat.S: New file.
1790         * sysdeps/x86_64/strchr.S: New file.
1791         * sysdeps/x86_64/strcpy.S: New file.
1792         * sysdeps/x86_64/strcspn.S: New file.
1793         * sysdeps/x86_64/strlen.S: New file.
1794         * sysdeps/x86_64/strpbrk.S: New file.
1795         * sysdeps/x86_64/strspn.S: New file.
1796         * sysdeps/x86_64/strcmp.S: New file.
1797         * sysdeps/x86_64/strtok_r.S: New file.
1798         * sysdeps/x86_64/strtok.S: New file.
1799         * sysdeps/x86_64/memcpy.S: New file.
1800         * sysdeps/x86_64/mempcpy.S: New file.
1802         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1804         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1806 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1808         * stdio-common/Makefile (generated): Add errlist-compat.c.
1810         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1812         * locale/localeinfo.h: Pretty printing.
1814         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1815         form_number handling.
1817 2002-08-31  Andreas Jaeger  <aj@suse.de>
1819         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1820         double tests.
1822         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1823         __start_context.
1825         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1827         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1829         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1830         registers used for passing args.
1832         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1833         all needed registers.
1835         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1836         registers.
1838         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1839         registers.
1841 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
1843         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1844         always_inline attribute.
1846 2002-08-30  Roland McGrath  <roland@redhat.com>
1848         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1849         presume it's the stub and bail without error.
1851         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1852         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1854         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1856         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1857         macros replace the i686 versions for 64-bit mode.
1859         * locale/duplocale.c: Include <string.h>.
1861         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1862         [_LIBC] (category_to_name): Don't define the function.  Instead
1863         define a macro using _nl_category_names.
1865         * locale/xlocale.h (struct __locale_struct): New member `__names'.
1866         * locale/xlocale.c (_nl_C_locobj): Update initializer.
1867         * locale/global-locale.c (_nl_global_locale): Likewise.
1868         * locale/duplocale.c (__duplocale): strdup __names elements.
1869         * locale/freelocale.c (__freelocale): Free __names elements.
1870         * locale/localename.c (_nl_current_names): Variable removed.
1871         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1872         * locale/localeinfo.h (_nl_current_names): Removed decl.
1873         * locale/setlocale.c: Use _nl_global_locale->__names in place of
1874         _nl_current_names throughout.
1876         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1878         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1879         and sys_nerr in the output file.
1881         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1882         * scripts/cpp: Just use the environment variable.
1884         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1885         * libio/tst-mmap-offend.c (do_test): Likewise.
1886         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1887         * libio/tst-mmap-eofsync.c (do_test): Likewise.
1888         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1890         * locale/localename.c: If the current locale is the global locale, use
1891         _nl_current_names; otherwise use the locale object.
1893 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1895         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1896         'm' to enable mmap I/O.
1897         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
1898         former wasn't used (anymore?).
1899         (_IO_FLAGS2_MMAP): New define.
1900         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1901         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1902         _IO_FLAGS2_MMAP bit is set.
1903         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1904         Enable mmap-using mode only if 'm' was set.
1906 2002-08-29  Roland McGrath  <roland@frob.com>
1908         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1910         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1911         Change argument type from int to intptr_t.
1913         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1914         initializer on [! _HURD_THREADVAR_H] (bad kludge).
1915         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1916         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1917         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
1919         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1921         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1923         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1925         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1926         * assert/assert-perr.c: Add libc_hidden_def.
1927         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1929         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1930         found at all.
1931         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
1932         sys_errlist stuff to ...
1933         * sysdeps/unix/sysv/linux/Versions: ... here.
1935         * mach/mach.h: Include <features.h>.
1937 2002-08-29  Roland McGrath  <roland@redhat.com>
1939         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1940         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1941         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1943         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1945         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1946         (norm_add_slashes): alloca -> __alloca
1948 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
1950         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1951         string_malloced, it is unlikely to be set.
1952         Only call free with non-NULL workspace.
1953         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1954         -mcpu=ultrasparc, not only tune for it.
1955         (ASFLAGS*): Set unconditionally.
1957         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1958         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
1959         p_vaddr/p_offset when computing LOADADDR.
1961 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1963         * version.h (VERSION): Bump to 2.2.92.
1965         * time/Makefile (tst-ftime_l-ENV): New variable.
1967         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1969         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1970         <U017A>, <U017D> and <U0179>. Add missing mappings.
1971         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1973         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1974         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
1975         (struct tostruct): Use ACRINDEX as type for link field.
1976         (statuc gmonparam): Likewise for froms.
1977         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1978         kcount and froms.
1979         (write_call_graph): Use correct type for from_index and to_index.
1980         * gmon/mcount.c: Use correct types for frompcindex and toindex
1981         variables.
1982         Patches by Dan Kegel <dank@kegel.com>.
1984         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1985         canonical name.
1987         * time/strptime.c (ISSPACE): New #define.  Use isspace or
1988         __isspace_l.  Replace calls to isspace.
1989         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1991 2002-08-29  Roland McGrath  <roland@redhat.com>
1993         * string/tst-strxfrm.c: Remove __ from function names.
1995 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1997         * include/wchar.h: Declare __mbsrtowcs_l.
1998         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1999         * wcsmbs/mbsrtowcs.c: Add support for compilation with
2000         USE_IN_EXTENDED_LOCALE_MODEL.
2001         * wcsmbs/mbsrtowcs_l: New file.
2002         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
2003         define as static.  Change all uses.
2004         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
2005         Change all callers.
2006         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
2007         * time/strftime.c: When translating for the extended locale model
2008         use the _l functions.
2009         * time/Makefile (tests): Add tst-ftime_l.
2010         * time/tst-ftime_l.c: New file.
2012 2002-08-28  Roland McGrath  <roland@redhat.com>
2014         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
2015         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
2016         from _nl_find_locale ok if for _nl_C_name.
2018         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
2019         iterator to refer to each category's _nl_current_LC_FOO symbol, so
2020         we know they are all linked in.
2022         * NEWS: Added 2.2.6 text from 2.2 branch version.
2024         * time/strptime.c (strptime_internal): Remove spurious const.
2026         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
2027         _nl_select_era_entry): Moved to ...
2028         * time/era.c: ... here, new file.
2029         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
2030         Add internal_function to definitions.  Take an additional argument
2031         giving the `struct locale_data *' to use.
2032         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
2033         _nl_parse_alt_digit): Moved to ...
2034         * time/alt_digit.c: ... here, new file.
2035         * time/lc-time-cleanup.c: New file.
2036         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
2037         * locale/localeinfo.h (_nl_postload_time): Remove decl.
2038         (_nl_cleanup_time): Declare it.
2039         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
2040         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
2041         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
2042         * time/strftime.c: Pass locale data to helper functions.
2043         * time/strptime.c: Likewise.
2045         * locale/localeinfo.h (struct locale_data): New member `private'
2046         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
2047         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
2048         * locale/C-collate.c: Update initializer.
2049         * locale/C-identification.c: Likewise.
2050         * locale/C-measurement.c: Likewise.
2051         * locale/C-telephone.c: Likewise.
2052         * locale/C-address.c: Likewise.
2053         * locale/C-name.c: Likewise.
2054         * locale/C-paper.c: Likewise.
2055         * locale/C-time.c: Likewise.
2056         * locale/C-numeric.c: Likewise.
2057         * locale/C-monetary.c: Likewise.
2058         * locale/C-messages.c : Likewise.
2059         * locale/C-ctype.c: Likewise.
2061         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
2062         Redefine this too.
2064 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2066         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
2067         (_rtld_global): Use it.
2069         * sysdeps/gnu/Dist: Remove errlist-compat.c.
2070         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
2071         object directory.  Pass all Versions files to the awk script.
2072         * sysdeps/gnu/errlist-compat.c: Removed.
2073         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
2074         first Versions file in the search path which has them.
2075         Allow multiple errlist symbol versions to have the same count of
2076         errors.
2077         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
2078         of "errlist-compat.c".
2079         * sysdeps/gnu/errlist.c: Regenerated.
2080         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
2081         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
2082         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2083         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
2084         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
2085         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
2086         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
2087         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
2088         ECANCELLED if not defined by kernel headers.
2089         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
2090         already defined by kernel headers.
2091         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
2092         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
2093         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
2094         is a macro.
2095         * Versions.def (GLIBC_2.3) [librt]: Add.
2097         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
2099 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2101         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
2102         missing comma to .type directive.
2104 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2106         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
2107         unconditionally.
2108         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
2109         check.
2110         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
2112 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2114         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
2115         check to close_and_out close.  Replace return NULL statements where
2116         fd might be >= 0 with goto close_and_out.  Close the file descriptor
2117         when it is no longer needed.
2119 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2121         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
2122         string constants.
2123         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2124         * sysdeps/arm/dl-machine.h: Likewise.
2125         * sysdeps/cris/dl-machine.h: Likewise.
2126         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
2127         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
2129 2002-08-28  Roland McGrath  <roland@redhat.com>
2131         * Makeconfig (default_cflags): Revert unintended change.
2133 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2135         * version.h (VERSION): Bump to 2.2.91.
2137         * configure.in: Disable TLS support by default for now.
2139         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
2141         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
2142         warnings.
2144         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
2146         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
2147         fprintf/fwprintf calls.
2149 2002-08-28  Roland McGrath  <roland@redhat.com>
2151         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
2152         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
2154         * locale/setlocale.c: Declare postload functions weak.
2156         * elf/tst-tls1-static.c: New file.
2157         * elf/tst-tls2-static.c: New file.
2158         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
2160         Make uselocale support static linking.
2161         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
2162         This file again just defines _nl_C_locobj.
2163         (_nl_C_locobj): Use a categories.def iterator in the initializer.
2164         * locale/global-locale.c: New file.  Define _nl_global_locale here,
2165         using all weak references in the initializer.
2166         * locale/Makefile (aux): Add global-locale.
2167         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
2168         these unconditional, along with the tsd decl.
2169         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
2170         Define it under these conditions.
2171         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
2172         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
2173         `extern __thread struct locale_data *const *'.
2174         [NL_CURRENT_INDIRECT]
2175         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
2176         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
2177         the thread variable _nl_current_LC_FOO and also a special absolute
2178         symbol _nl_current_LC_FOO_used.
2179         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
2180         Set each _nl_current_LC_FOO symbol to point into the new locale,
2181         using weak references to test if _nl_current_LC_FOO_used was linked in.
2182         * locale/setlocale.c [! SHARED]: Replace this conditional ...
2183         [NL_CURRENT_INDIRECT]: ... with this one.
2184         (_nl_current, _nl_C): Variables removed.
2185         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
2186         weak references to _nl_current_LC_FOO_used.
2187         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
2188         (free_category): New function, broken out of ...
2189         (free_mem): ... here.  Call that.
2190         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
2191         instead of a loop.
2193         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
2194         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
2195         it is already absolute.
2197         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
2198         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
2199         [$(build-static) = yes] (tests-static): New variable.
2200         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
2202 2002-08-26  Christoph Hellwig  <hch@lst.de>
2204         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
2205         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
2207 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2209         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
2211         * sysdeps/s390/Dist: Add bits/link.h.
2213         * sysdeps/sh/Dist: New file.
2215         * sysdeps/ia64/Dist: Add ia64libgcc.S.
2217         * sysdeps/wordsize-32/Dist: New file.
2219         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
2220         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
2221         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
2223         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
2224         sys/personality.h.
2226         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
2227         sparc/dl-brk.S.
2229         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
2231         * sysdeps/unix/bsd/sun/Dist: New file.
2233         * sysdeps/unix/bsd/osf/Dist: New file.
2235         * sysdeps/unix/bsd/hp/Dist: New file.
2237         * sysdeps/unix/arm/Dist: New file.
2239         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
2241         * sysdeps/mach/hurd/Dist: Add set-init.c.
2243         * sysdeps/i386/Dist: Add bits/link.h.
2245         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
2247         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
2249         * locale/Makefile (distribute): Add hashval.h.
2251         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
2253         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
2255         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
2256         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
2257         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
2258         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
2259         implementations.
2260         * libio/stdio.h: Likewise.
2261         * locale/locale.h: Likewise.
2262         * math/math.h: Likewise.
2263         * math/bits/mathcalls.h: Likewise.
2264         * setjmp/setjmp.h: Likewise.
2265         * signal/signal.h: Likewise.
2266         * stdlib/stdlib.h: Likewise.
2267         * string/string.h: Likewise.
2268         * time/time.h: Likewise.
2269         * wcsmbs/wchar.h: Likewise.
2270         * wctype/wctype.h: Likewise.
2272 2002-08-28  Roland McGrath  <roland@redhat.com>
2274         * locale/tst-C-locale.c (run_test): Remove __ from function names.
2276 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2277             Roland McGrath <roland@redhat.com>
2279         * locale/hashval.h (compute_hashval): Use prototype defn.
2280         (hashval_t): New macro, defined to unsigned long int
2281         if not already defined.
2282         (compute_hashval): Return hashval_t instead of unsigned long int.
2283         * locale/loadarchive.c (hashval_t): New macro.
2284         * locale/programs/locarchive.c: Include hashval.h directly instead
2285         of simple-hash.h.
2286         (compute_hashval, hashval_t): Define these macros first.
2287         (insert_name): Use archive_hashval instead of compute_hashval.
2288         (add_locale, delete_locales_from_archive): Likewise.
2290 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2292         * locale/programs/locarchive.c (insert_name): Suppress warnings about
2293         hash collisions if be_quiet.
2295 2002-08-27  Roland McGrath  <roland@redhat.com>
2297         * locale/locale.h (__newlocale, __duplocale, __freelocale,
2298         __uselocale): Don't declare these any more.
2299         * include/locale.h (__uselocale): Declare here instead, using __typeof.
2301         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
2302         and treat it as an EOF return.
2303         * sysdeps/unix/readdir_r.c: Likewise.
2305         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
2306         From Alexandre Oliva <aoliva@redhat.com>.
2307         * sysdeps/gnu/errlist-compat.c: Regenerated.
2309 2002-08-27  Brian Youmans  <3diff@gnu.org>
2311         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
2312         wording at request of copyright holder Stephen Moshier.
2313         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2314         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2315         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2316         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2317         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2318         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2319         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2320         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2321         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2322         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2323         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2324         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2325         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2326         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2328 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2330         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
2331         * ctype/ctype-extn.c (isblank_l): Add weak alias.
2332         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
2333         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
2334         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
2335         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
2336         * wctype/iswctype_l.c (iswctype_l): Likewise.
2338 2002-08-27  Roland McGrath  <roland@redhat.com>
2340         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
2342         * ctype/ctype.h (__exctype_l): Don't declare __ name.
2343         * stdlib/stdlib.h: Don't declare __*_l names.
2344         * include/stdlib.h: Declare them here instead.
2345         * include/string.h: Don't declare __*_l names.
2346         * string/string.h: Declare them here instead.
2347         * time/time.h: Don't declare __*_l names.
2348         * include/time.h: Declare them here instead.
2349         * wcsmbs/wchar.h: Don't declare __*_l names.
2350         * include/wchar.h: Declare them here instead.
2351         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
2352         Don't declare __*_l names.
2353         * include/wctype.h: Declare them here instead.
2354         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
2355         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
2356         * locale/langinfo.h: Don't declare __nl_langinfo_l.
2357         * include/langinfo.h: Declare it here with __typeof.
2359         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
2360         instead, taking an extra __locale_t argument.
2361         * time/Makefile (routines): Add strptime_l.
2362         * time/time.h (__strptime_l, strptime_l): Declare them.
2363         * time/strptime_l.c: New file.
2365         * time/time.h (__strftime_l, strftime_l): Declare them.
2366         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
2367         * time/strftime_l.c: New file.
2368         * time/wcsftime_l.c: New file.
2369         * time/Makefile (routines): Add strftime_l, wcsftime_l.
2370         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
2371         strftime_l, wcsftime_l.
2372         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
2373         or __wcsftime_l instead, taking an extra __locale_t argument.
2375         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
2376         (libc: GLIBC_2.3): ... here.
2378 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
2380         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
2382         * Makefile (distribute): Add LICENSES.
2384         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
2385         sys/debugreg.h.
2387         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
2389         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
2391         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
2393         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
2395         * sysdeps/mach/hurd/alpha/Dist: New file.
2397         * sysdeps/arm/Dist: Add bits/link.h.
2399         * sunrpc/Makefile: Distribute thrsvc.
2401         * stdio-common/Makefile: Remove more left-overs from old stdio.
2403         * include/linewrap.h: Removed.
2405         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
2407         * intl/Makefile (distribute): Add plural-eval.c.
2409 2002-08-27  Roland McGrath  <roland@redhat.com>
2411         * manual/sysinfo.texi (Mount Information): Correct file name to macro
2412         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
2413         Say mtab is in either /var/run or /etc.
2415 2002-08-26  Roland McGrath  <roland@redhat.com>
2417         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
2418         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
2420         * sysdeps/gnu/Versions: New file.
2421         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
2422         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
2423         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
2424         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
2425         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
2426         and _sys_nerr_internal instead of anything else.  Make it include
2427         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
2428         Make it emit some asm magic if [EMIT_ERR_MAX].
2429         * sysdeps/gnu/errlist.c: Regenerated.
2430         * sysdeps/gnu/errlist-compat.awk: New file.
2431         * sysdeps/gnu/errlist-compat.c: New file (generated).
2432         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
2433         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
2434         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
2435         (SYS_ERRLIST, SYS_NERR): Macros removed.
2436         (sys_nerr, _sys_nerr): Remove these weak aliases.
2437         * sysdeps/unix/sysv/linux/errlist.c: File removed.
2438         * sysdeps/unix/sysv/linux/errlist.h: File removed.
2439         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
2441         * include/libc-symbols.h (declare_symbol): New macro.
2442         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
2443         * configure.in: New check to define it.
2444         * configure: Regenerated.
2446 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
2448         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
2449         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
2451         * Make-dist: Remove traces of old stdio.
2452         * Makeconfig: Likewise.
2454         * locale/Makefile (localedef-aux): New variable.  Only md5
2455         assigned to it.  These files are not ddistributed in this directory.
2457         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
2458         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
2459         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
2461         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
2463         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
2464         set h_errno to NO_RECOVERY [PR libc/4360].
2466 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2468         * libio/Makefile (tests): Add bug-fopena+.
2469         * libio/bug-fopena+.c: New file.
2470         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
2471         file for _IO_IS_APPENDING if file isn't opened for reading, too.
2473         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
2475         * locale/xlocale.c: Fix the last change.  The variable still has
2476         to end in _data.
2477         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
2478         (__libc_tsd_set): Add _data prefix to variable name.
2480 2002-08-26  Roland McGrath  <roland@redhat.com>
2482         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
2483         macro with inline function.
2484         (sigset_get_old_mask): Likewise.
2485         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
2486         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2487         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2488         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
2489         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
2490         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
2491         values.
2492         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
2493         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
2495 2002-07-06  Bruno Haible  <bruno@clisp.org>
2497         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
2498         sigset_get_old_mask): Make it work with larger sigset_t.
2499         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
2500         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2501         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2503 2002-08-26  Roland McGrath  <roland@redhat.com>
2505         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
2506         * manual/filesys.texi (File Times): Document lutimes and futimes.
2507         * misc/Makefile (routines): Add them.
2508         * misc/Versions (libc: GLIBC_2.3): Likewise.
2509         * sysdeps/generic/lutimes.c: New file.
2510         * sysdeps/generic/futimes.c: New file.
2511         * sysdeps/mach/hurd/lutimes.c: New file.
2512         * sysdeps/mach/hurd/futimes.c: New file.
2514         * manual/filesys.texi (File Times): Add explicit note about null
2515         pointer argument to utimes.
2517 2002-08-26  Roland McGrath  <roland@frob.com>
2519         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
2520         (__ifreq): Add a cast.  Remove an unused variable.
2522         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
2523         _HURD_THREADVAR_LOCALE.
2525 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
2527         * posix/regexec.c (re_search_stub): Return correct match length
2528         if start != 0.
2529         * posix/bug-regex10.c: New test.
2530         * posix/Makefile (tests): Add bug-regex10.
2532 2002-08-26  Brian Youmans  <3diff@gnu.org>
2534         * COPYING.LIB: Replaced with fresh copy from
2535         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
2536         suggested copying permission notice now says version 2.1 instead
2537         of version 2.
2539         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
2540         from Library GPL.
2541         * crypt/crypt_util.c: Likewise.
2542         * crypt/ufc.c: Likewise.
2543         * elf/dl-conflict.c: Likewise.
2544         * elf/dl-iteratephdr.c: Likewise.
2545         * iconv/iconvconfig.h: Likewise.
2546         * malloc/arena.c: Likewise.
2547         * malloc/hooks.c: Likewise.
2548         * malloc/malloc.c: Likewise.
2549         * posix/glob/Makefile.ami: Likewise.
2550         * posix/glob/Makefile.in: Likewise.
2551         * stdlib/gmp-impl.h: Likewise.
2552         * stdlib/gmp.h: Likewise.
2553         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
2554         * sysdeps/generic/strnlen.c: Likewise.
2555         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
2556         * sysdeps/mach/hurd/recvmsg.c: Likewise.
2557         * sysdeps/mach/hurd/sendmsg.c: Likewise.
2558         * sysdeps/mach/hurd/spawni.c: Likewise.
2559         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
2560         * sysdeps/mach/powerpc/sysdep.h: Likewise.
2561         * sysdeps/mach/powerpc/thread_state.h: Likewise.
2562         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
2563         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
2564         * sysdeps/x86_64/gmp-mparam.h: Likewise.
2566         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
2567         Lesser GPL copying permission notice from 2 to 2.1.
2568         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
2569         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
2570         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2571         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
2572         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2573         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2574         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2575         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2576         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2577         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2578         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2579         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2580         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2581         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2582         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2583         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2584         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2585         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2586         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2587         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2588         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2589         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2590         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2591         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2592         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2593         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2594         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2595         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2596         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2597         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2598         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2599         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2600         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2601         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2602         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2603         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2604         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2605         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2606         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2607         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2608         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2609         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2610         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2611         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2612         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2613         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2614         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2615         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2616         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2617         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2618         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2619         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2620         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2621         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2622         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2624         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
2625         Moshier and Lesser GPL copying permission notice, per license from
2626         Moshier.
2627         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2628         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2629         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2630         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2631         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2632         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2633         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2634         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2635         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2636         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2637         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2638         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2639         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2640         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2642         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
2643         notice, per license from copyright holder Stephen Moshier.
2644         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2645         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2646         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2647         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2648         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2649         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2650         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2651         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2652         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2654 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2656         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
2657         (shared-only-routines): Likewise.
2659 2002-08-26  Roland McGrath  <roland@redhat.com>
2661         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
2662         name of "", store a null pointer instead.
2664         * configure.in (elf): Set to yes for freebsd*, netbsd*.
2665         * configure: Regenerated.
2667         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
2668         Initialize this instead of __libc_tsd_LOCALE_data.
2670         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
2671         ptsname_r to EINVAL.
2673         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
2675         * rt/Makefile: Revert last change, it was inappropriate to presume aio
2676         implementations depend on pthreads.
2677         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
2678         * rt/tst-aio64.c (do_test): Likewise.
2679         * rt/tst-aio2.c (do_test): Likewise.
2680         * rt/tst-aio3.c (do_test): Likewise.
2681         * rt/tst-aio4.c (do_test): Likewise.
2682         * rt/tst-aio5.c (do_test): Likewise.
2683         * rt/tst-aio6.c (do_test): Likewise.
2684         * rt/tst-aio7.c (do_test): Likewise.
2686         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2687         void so as to avoid compiler warnings.
2689         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2690         _IO_wide_data_FD, which is never used here.
2692         * libio/iofread.c
2693         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2694         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2695         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2697         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2698         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2700         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2701         (closelog): Likewise.
2703 2002-07-06  Bruno Haible  <bruno@clisp.org>
2705         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2707         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2708         * sysdeps/unix/alpha/pipe.S: ... here.
2709         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2711         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2713         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2714         * sysdeps/unix/i386/fork.S: Likewise.
2715         * sysdeps/unix/i386/pipe.S: Likewise.
2716         * sysdeps/unix/i386/wait.S: Likewise.
2718         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2719         * sysdeps/unix/arm/fork.S: Likewise.
2721         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2722         arguments.
2723         (DO_CALL): Swap argument order.
2724         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2725         arguments.
2726         (DO_CALL): Swap argument order.
2727         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2728         arguments.
2729         (DO_CALL): Swap argument order.
2730         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2731         arguments.
2732         (DO_CALL): Swap argument order.
2733         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2734         arguments.
2735         (DO_CALL): Swap argument order.
2736         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2737         arguments.
2738         (DO_CALL): Swap argument order.
2739         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2740         arguments.
2741         (DO_CALL): Swap argument order.
2743         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2744         (L): Define right for ELF.
2745         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2746         Now defined in sysdeps/i386/sysdep.h.
2748         * sysdeps/posix/readv.c: Ansify function definition.
2749         * sysdeps/posix/writev.c: Likewise.
2751         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2752         have the same size. Avoid direct cast from size_t to off_t.
2754         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2755         nul byte in entry[n].ut_user.
2756         (simulate_logout): Likewise.
2758         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2759         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2760         existence of corresponding members of 'struct utmp'.
2761         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2762         !_HAVE_UT_TYPE.
2764         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2765         allocate a buffer of at least BUFSIZ bytes, not just of
2766         sizeof (struct dirent).
2768         * sysdeps/generic/glob.c: Include <limits.h>.
2769         (NAME_MAX): Define a fallback.
2770         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2771         stack.
2772         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2773         (main): Allocate enough room for a 'struct dirent64' on the stack.
2774         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2775         'struct dirent'.
2777         * sysdeps/unix/sysv/linux/init-first.c: Don't include
2778         kernel-features.h.
2780         * inet/htontest.c: Include <sys/types.h>.
2782         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2784         * include/sys/sysctl.h: Comment fix.
2786         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2787         _dl_load_lock.
2788         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2790         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2792         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2793         (__getpeername): New alias.
2794         (__getsockname): New alias.
2795         (__socket): New alias.
2797         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2799         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2800         (__fcntl_internal): New alias.
2801         (__profil): New alias.
2803 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2805         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2806         entry was for getaddr* lookup or not.  Add only matching cache
2807         entry.  Change all callers [PR libc/4317].
2809         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2810         finding the read position [PR libc/4265].
2811         * libio/Makefile (tests): Add bug-rewind2.
2812         * libio/bug-rewind2.c: New file.
2814         * libio/bug-rewind.c: Fix creation of temp file.
2816 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2818         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2819         neither SUCCESS nor TRYAGAIN [PR libc/4259].
2820         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2821         to ENOENT if no entry is found.
2822         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2823         failure.
2824         * nis/nss_compat/compat-initgroups.c: Likewise.
2825         * nis/nss_compat/compat-pwd.c: Likewise.
2826         * nis/nss_compat/compat-spwd.c: Likewise.
2827         * nis/nss_nis/nis-alias.c: Likewise.
2828         * nis/nss_nis/nis-ethers.c: Likewise.
2829         * nis/nss_nis/nis-grp.c: Likewise.
2830         * nis/nss_nis/nis-hosts.c: Likewise.
2831         * nis/nss_nis/nis-initgroups.c: Likewise.
2832         * nis/nss_nis/nis-netgrp.c: Likewise.
2833         * nis/nss_nis/nis-network.c: Likewise.
2834         * nis/nss_nis/nis-proto.c: Likewise.
2835         * nis/nss_nis/nis-publickey.c: Likewise.
2836         * nis/nss_nis/nis-pwd.c: Likewise.
2837         * nis/nss_nis/nis-rpc.c: Likewise.
2838         * nis/nss_nis/nis-service.c: Likewise.
2839         * nis/nss_nis/nis-spwd.c: Likewise.
2840         * resolv/nss_dns/dns-host.c: Likewise.
2841         * resolv/nss_dns/dns-network.c: Likewise.
2842         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2843         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2844         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2845         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2846         * nis/nss_nisplus/nisplus-network.c: Likewise.
2847         * nis/nss_nisplus/nisplus-proto.c: Likewise.
2848         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2849         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2850         * nis/nss_nisplus/nisplus-service.c: Likewise.
2851         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2852         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2853         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2854         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2855         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2857         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2858         declaring __restore and __restore_rt as hidden (if possible).
2860 2002-08-25  Roland McGrath  <roland@redhat.com>
2862         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2864         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2865         (getutent_r_file, internal_getut_r): Updated all callers.
2866         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2868 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2870         * locale/programs/locale.c: Don't print aliases for non-existing
2871         locales for 'locale -a'.
2872         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2874 2002-07-19  H.J. Lu  <hjl@gnu.org>
2876         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2878 2002-07-16  H.J. Lu  <hjl@gnu.org>
2880         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2881         sys/personality.h.
2882         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2884 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2886         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2887         not moved ahead of the fputs call.
2888         * elf/tst-tlsmod2.c (in_dso): Likewise.
2889         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2890         * elf/tst-tlsmod4.c (in_dso): Likewise.
2892 2002-08-25  Andreas Schwab  <schwab@suse.de>
2894         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2896 2002-08-25  Roland McGrath  <roland@redhat.com>
2898         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2899         resetting handler, to avoid the possibility of a spurious SIGALRM
2900         delivered to the user's handler.
2901         Reported by Amit D. Chaudhary <amitc@brocade.com>,
2903         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
2904         set -fkeep-inline-functions, which is not needed for the current file.
2906         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2907         (_dl_setup_hash): Add attribute_hidden.
2908         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2909         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2910         (_dl_new_object, _dl_map_object_deps): Likewise.
2911         (_dl_map_object_deps_internal): Remove decl.
2912         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2914         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2915         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2916         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2917         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2918         instead relying on the compiler to produce only GOTOFF variable refs.
2920 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2922         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
2924         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2925         inline to avoid defining it in every file which includes this header.
2927         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2928         defining DONT_USE_BOOTSTRAP_MAP.
2930         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2931         * libio/tst-mmap-setvbuf.c (main): Likewise.
2932         * libio/tst-widetext.c (main): Likewise.
2934         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2935         message.
2936         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2937         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2939         * sysdeps/i386/elf/configure.in: Unconditionally define
2940         PI_STATIC_AND_HIDDEN.
2941         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2942         PI_STATIC_AND_HIDDEN is defined as well.
2943         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2945 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
2947         * sysdeps/ia64/bzero.S: Define __bzero as well.
2949         * locale/programs/charmap.c (charmap_new_char): Don't use
2950         ULONG_MAX as maximum UCS4 value.
2952         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2954         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2956         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2957         * malloc/malloc.c (mALLINFo): Likewise.
2959         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2961         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2962         examining result of _IO_do_flush call.
2964         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2965         Use prec not spec when sizing buffers.
2967         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2968         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2969         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2970         * stdio-common/vfscanf.c (inchar): Likewise.
2971         * misc/efgcvt_r.c (fcvt_r): Likewise.
2972         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2973         * elf/readlib.c (process_file): Likewise.
2974         * elf/sprof.c (load_profdata): Likewise.
2975         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2976         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2977         * locale/programs/charmap.c (charmap_read): Likewise.
2978         * libio/fileops.c: Likewise.
2979         * libio/fmemopen.c: Likewise.
2980         * stdlib/strtod.c: Likewise.
2981         * elf/dl-load.c: Likewise.
2982         * iconv/iconvconfig.c: Likewise.
2983         * iconv/iconv_prog.c (process_block): Likewise.
2984         * elf/rtld.c (dl_main): Likewise.
2986         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2987         macro to calm down the compiler.
2989         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2991         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2993         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2994         placement of errno definition.
2995         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2996         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2997         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2998         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2999         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
3001         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
3002         from 1024 to 65536, to avoid buffer overrun.
3004 2002-08-16  Paul Eggert  <eggert@twinsun.com>
3006         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
3007         from 1024 to 65536, to avoid buffer overrun.
3008         * resolv/res_query.c (MAXPACKET): Likewise.
3010 2002-08-24  Andreas Jaeger  <aj@suse.de>
3012         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
3014 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
3016         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
3017         two52 locally.
3018         (log2): Likewise.
3019         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
3020         Patch by Simon Gee <simong@agile.tv>.
3022         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
3023         Prefer reading /proc/stat since it is more uniform across
3024         architectures.
3026         * manual/texinfo.tex: Update to latest official version.
3028         * sysvipc/sys/shm.h: Remove SHMLBA definition.
3029         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
3030         * sysdeps/gnu/bits/shm.h: Likewise.
3031         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
3032         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3033         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
3034         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3035         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3036         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3037         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
3038         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
3039         since this is what the kernel says.
3041         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
3042         since ssize_t is needed as well.  Replace const with __const.
3044 2002-08-23  Roland McGrath  <roland@redhat.com>
3046         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
3047         __malloc_hook, __realloc_hook, __memalign_hook,
3048         __after_morecore_hook): Variable definitions moved to ...
3049         * malloc/malloc.c: ... here, so as to be before all references.
3051         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
3052         global variable reference in an unused asm parameter, to ensure the
3053         compiler has set up the GOT register before we use it.
3055         * malloc/hooks.c: Move variable definitions ahead of uses.
3056         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
3057         initializers that make reference to variables they define.
3059 2002-08-23  Andreas Jaeger  <aj@suse.de>
3061         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
3062         alloca, free, qsort.
3064         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
3066         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
3067         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
3069         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
3070         <hch@lst.de>.
3071         * sysdeps/generic/fgetxattr.c: New file.
3072         * sysdeps/generic/flistxattr.c: New file.
3073         * sysdeps/generic/fremovexattr.c: New file.
3074         * sysdeps/generic/fsetxattr.c: New file.
3075         * sysdeps/generic/getxattr.c: New file.
3076         * sysdeps/generic/listxattr.c: New file.
3077         * sysdeps/generic/lgetxattr.c: New file.
3078         * sysdeps/generic/llistxattr.c: New file.
3079         * sysdeps/generic/lremovexattr.c: New file.
3080         * sysdeps/generic/lsetxattr.c: New file.
3081         * sysdeps/generic/removexattr.c: New file.
3082         * sysdeps/generic/setxattr.c: New file.
3083         * misc/Makefile (headers): Add sys/xattr.h.
3084         (routines): Add *xattr calls.
3085         * misc/Versions: Add *xattr calls with version 2.3.
3086         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
3087         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3088         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3089         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
3090         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
3091         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
3092         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
3093         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3095 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
3097         * sysdeps/powerpc/elf/libc-start.c
3098         (__cache_line_size): Declare.
3099         (__aux_init_cache): New function.
3100         (__libc_start_main): Change type of `auxvec' parameter to
3101         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
3102         __aux_init_cache.
3103         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3104         (__cache_line_size): Declare.
3105         (__aux_init_cache): New function.
3106         (DL_PLATFORM_INIT): Define.
3107         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
3108         value to select the correct stride for dcbz.
3110 2002-08-22  Andreas Jaeger  <aj@suse.de>
3112         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
3113         shmat.
3115 2002-08-22  Roland McGrath  <roland@redhat.com>
3117         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
3118         position indicated by locrectab against file bounds before rounding to
3119         page size.  In mapping loop, always set TO before breaking out of
3120         contiguous range coalescing loop.
3122         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
3123         (or MAP_COPY if available) instead of MAP_SHARED.
3125         * scripts/firstversions.awk: When encountering a version newer than
3126         the specified earliest version, be sure to emit the specified earliest
3127         version first if any renaming of an older version to that has been.
3129 2002-08-21  Roland McGrath  <roland@redhat.com>
3131         * configure.in: Make GCC version check require 3.[2-9]* and no others.
3132         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
3133         (Configuring and compiling): Don't mention older GCC versions any more.
3134         * INSTALL: Regenerated.
3136         * manual/install.texi (Configuring and compiling, Installation,
3137         Running make install, Linux): Linux -> GNU/Linux where appropriate.
3139         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
3140         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
3141         and with noinline otherwise.  Remove hack alloca use to prevent
3142         inlining, we can ask for it explicitly nowadays.
3144         * dlfcn/bug-dlsym1.c: New file.
3145         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
3146         * dlfcn/Makefile (distribute): Add them.
3147         (tests): Add bug-dlsym1 here.
3148         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
3149         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
3150         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
3152 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
3154         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
3155         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
3156         before relocation.
3157         (_dl_start): Don't use local bootstrap_map variable if
3158         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
3159         pass bootstrap_map to _dl_start_final in this case either.  Don't
3160         pass start_time to _dl_start_final ever.
3161         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
3163         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
3164         This cripples the scope lists necessary to search for symbols in
3165         dependencies which are not in the global scope.
3167         * include/setjmp.h (__libc_longjmp): Add declaration.
3169 2002-08-21  Andreas Jaeger  <aj@suse.de>
3171         * sysdeps/x86_64/_mcount.S: Fix assembler.
3173         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
3174         with biarch support.
3176 2002-08-21  Andreas Jaeger  <aj@suse.de>
3178         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
3180         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
3182         * sysdeps/x86_64/machine-gmon.h: New file.
3183         * sysdeps/x86_64/_mcount.S: New file.
3185 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
3187         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
3188         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
3189         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
3190         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
3191         to TL_INIT_TP.  Otherwise pass 1.
3192         * include/link.h (struct link_map): Add l_tls_tp_initialized.
3193         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
3195 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
3197         * locale/programs/localedef.c (add_to_readlist): Error about
3198         circular dependencies only if the locale in question hasn't
3199         been finished.
3200         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
3201         CTYPE_LOCALE to load_locale.
3202         * locale/programs/locfile.c (locfile_read): Don't include
3203         unneeded but available locales in locale_mask.
3205         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
3206         print any messages about enlarging archive.
3208 2002-08-20  Brian Youmans  <3diff@gnu.org>
3210         * manual/contrib.texi: Removed licenses, added acknowledgements
3211         for contributions by Intel, IBM, Craig Metz.
3212         * LICENSES: New file, contains the text of all non-FSF licenses in the
3213         distribution that require putting the notice in the accompanying
3214         documentation.
3215         * README.template, README: Mention LICENSES.
3217         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
3218         new one modelled on the modern BSD license, per recent letter
3219         of permission from CMU.
3220         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
3222         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
3223         from IBM to FSF, per the recent Software Letter.  Changed the
3224         distribution terms from GPL to LGPL.
3226         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
3227         copying permission notice (Lesser GPL), per recent IBM Software Letter.
3228         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
3229         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
3230         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
3231         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
3232         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
3233         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
3234         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
3235         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
3237         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
3238         from IBM to FSF, per the recent Software Letter.  Corrected the
3239         text of the copying permission notice to say Lesser GPL instead
3240         of GPL in warranty disclaimer paragraph.
3241         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
3242         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
3243         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
3244         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
3245         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
3246         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
3247         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
3248         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
3249         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
3250         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
3251         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
3252         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
3253         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
3254         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
3255         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
3256         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
3257         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
3258         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
3259         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
3260         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
3261         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
3263         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
3264         permission notice to say Lesser GPL instead of GPL in warranty
3265         disclaimer paragraph.
3266         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
3267         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3268         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3269         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3270         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3271         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3272         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3273         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3274         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3275         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3276         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
3277         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
3278         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
3279         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
3280         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
3281         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
3282         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
3283         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3284         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3285         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3286         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
3287         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
3288         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
3290 2002-08-20  Roland McGrath  <roland@redhat.com>
3292         Fix ABI compatibility with libc compiled with old tools on powerpc.
3293         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3294         and Jack Howarth <howarth@bromo.med.uc.edu>.
3295         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
3296         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
3297         pass -DHAVE_DOT_HIDDEN for these files.
3298         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
3299         __floatdisf.
3300         * sysdeps/powerpc/divdi3.c: New file.
3301         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
3302         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
3304 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
3306         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
3307         partially overlapping mappings.  Remove unneeded (char *) casts.
3308         Never allow duplication of ranges in mapped areas.
3310 2002-08-20  Roland McGrath  <roland@redhat.com>
3312         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
3313         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
3315 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
3317         * include/unistd.h: Don't hide _exit.
3319         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
3320         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
3321         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
3322         argument 1 to TLS_INIT_TP.
3323         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
3325         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
3327         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
3328         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
3329         memory allocation to...
3330         (allocate_dtv): ...here.  New function.
3331         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
3332         call allocate_dtv instead of _dl_allocate_tls_storage.
3333         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
3334         (_dl_get_tls_static_info): New function.
3335         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
3336         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
3338 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
3340         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
3341         immediately if result == NULL.
3343 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
3345         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
3347 2002-08-18  Roland McGrath  <roland@frob.com>
3349         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
3350         instead of __file_name_split.
3351         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
3353         * sysdeps/mach/hurd/dl-sysdep.c
3354         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
3355         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
3357 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
3359         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
3360         in change before last: MAX -> MIN.
3362 2002-08-15  Roland McGrath  <roland@redhat.com>
3364         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
3365         if seek would go past it.
3366         (mmap_remap_check): If file position is at or past EOF after check,
3367         leave read pointers at EOF and don't seek.
3369         * libio/tst-mmap-offend.c: New file.
3370         * libio/Makefile (tests): Add it.
3372         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
3373         the name as passed, rather than the name in the archive dictionary.
3375 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
3377         * csu/Makefile: Define elide-routines.os not static-only-routines.
3379         * include/sched.h (__clone): Add varargs at the end.
3381         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
3382         case.
3383         (TLS_INIT_HELPER): If defined, use it.
3384         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
3386 2002-08-15  Roland McGrath  <roland@redhat.com>
3388         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
3389         on L->l_prev; it can happen under rtld --verify too.
3391         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
3392         header separately, just map an initial window of 2MB from the file
3393         and remap if that is not large enough to cover the whole header.
3395 2002-08-15  Andreas Jaeger  <aj@suse.de>
3397         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
3398         version 2.3.
3399         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3400         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
3401         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
3402         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
3403         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
3404         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3405         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3406         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
3407         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
3408         Patch by Andreas Gruenbacher <agruen@suse.de>.
3410         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
3412 2002-08-14  Roland McGrath  <roland@redhat.com>
3414         * locale/locarchive.h (struct locale_category_data): Give this name to
3415         the type of locale_data_t's elements.
3416         * locale/programs/locarchive.c (cmpcategorysize): New static function.
3417         (add_locale): Use that to sort the categories by size and put all
3418         those that fit into two pages into the LC_ALL block, instead of
3419         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
3420         (show_archive_content): Detect categories inside LC_ALL block
3421         directly, instead of hard-coding.
3422         (oldlocrecentcmp): Compare just on file locations used.
3424 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
3426         * locale/programs/locarchive.c (struct oldlocrecent): New type.
3427         (oldlocrecentcmp): New function.
3428         (enlarge_archive): Re-add locales in the order they were added
3429         to the archive.
3430         (add_locale): Put all the small locale files together, if the small
3431         locale file block would occupy less pages if page size aligned, align
3432         it.
3433         (show_archive_content): Adjust for locale archives optimized for speed.
3435 2002-08-14  Roland McGrath  <roland@frob.com>
3437         * configure.in: Use "MISSING" as not-found value for MIG.
3438         * sysdeps/mach/configure.in: Fatal if mig not found.
3439         * configure, sysdeps/mach/configure: Regenerated.
3441 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
3443         * locale/loadarchive.c (archfname): Add missing slash.
3445         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
3446         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
3448 2002-08-12  Roland McGrath  <roland@redhat.com>
3450         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
3451         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
3452         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
3453         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
3454         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
3455         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
3456         * sysdeps/generic/waitpid.c: Likewise.
3458         * include/net/if.h: New file.  Use libc_hidden_proto
3459         for if_nametoindex and if_indextoname.
3460         * sysdeps/generic/if_index.c: Add libc_hidden_def.
3461         * sysdeps/mach/hurd/if_index.c: Likewise.
3462         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
3464         * include/grp.h (setgroups): Add libc_hidden_proto.
3465         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
3466         * sysdeps/mach/hurd/setgroups.c: Likewise.
3467         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
3468         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3470 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
3472         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
3473         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
3474         * sysdeps/generic/setegid.c (setegid): Likewise.
3475         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
3476         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
3477         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
3478         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
3479         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
3480         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
3481         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
3482         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
3483         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
3484         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
3485         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
3486         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
3487         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
3489         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
3490         __lxstat_internal, __lxstat64_internal): Remove.
3491         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
3492         Add hidden_proto.
3493         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
3494         Remove INTDEF where present, remove #undef at the beginning.
3495         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
3496         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
3497         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
3498         * sysdeps/generic/xstat.c (__xstat): Likewise.
3499         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
3500         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
3501         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
3502         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
3503         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
3504         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
3505         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
3506         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
3507         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
3508         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
3509         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
3510         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
3511         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
3512         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
3513         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
3514         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
3515         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
3516         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
3517         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
3518         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
3519         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
3520         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
3521         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
3522         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3523         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3524         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3525         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
3526         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
3527         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
3528         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3529         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
3530         * sysdeps/unix/xstat.c (__xstat): Likewise.
3532         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
3533         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
3534         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
3535         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
3536         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
3537         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
3538         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
3540         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
3541         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
3542         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
3543         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
3544         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
3545         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
3546         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
3547         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
3548         Likewise.
3549         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
3550         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
3551         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
3552         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
3553         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
3554         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
3555         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
3556         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
3558         * include/string.h (strcoll): Add libc_hidden_proto.
3559         * string/strcoll.c (strcoll): Add libc_hidden_def.
3561         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
3563 2002-08-11  Philip Blundell  <philb@gnu.org>
3565         * sysdeps/arm/Makefile: New file.
3567 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3569         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
3570         by another '|', end of regex or enclosing ')', clear branch.
3571         * posix/bug-regex9.c: New test.
3572         * posix/Makefile (tests): Add bug-regex9.
3574 2002-08-12  Roland McGrath  <roland@redhat.com>
3576         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
3577         start count condition, use TOTAL instead of variable that was never
3578         set.  Fix outer loop termination condition to TOTAL >= after update.
3580         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
3581         dl_tls_static_align and dl_tls_static_nelem.
3583 2002-08-11  Roland McGrath  <roland@redhat.com>
3585         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
3586         of the TLS macros, otherwise the compiler might not have initialized
3587         the PIC register yet when we use the PLT via asm.
3588         * elf/tst-tlsmod3.c (in_dso2): Likewise.
3589         * elf/tst-tlsmod2.c (in_dso): Likewise.
3591         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
3593         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
3594         Evaluate argument exactly once.  Remove __volatile__ from asm's.
3596         * include/unistd.h: Use libc_hidden_proto for getdomainname
3597         and getlogin_r.
3598         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
3599         * sysdeps/mach/hurd/getdomain.c: Likewise.
3600         * sysdeps/unix/getlogin_r.c: Likewise.
3601         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
3602         * sysdeps/generic/getlogin_r.c: Likewise.
3604         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
3605         * sunrpc/rtime.c: Add libc_hidden_def.
3607         * include/string.h: Use libc_hidden_proto for basename.
3608         * string/basename.c [_LIBC]: Add libc_hidden_def.
3610         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
3612         * locale/loadarchive.c: munmap -> __munmap throughout.
3614         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
3615         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
3616         * sysdeps/generic/gai_strerror.c: Likewise.
3618         * include/sys/errno.h: New file.
3620         * include/signal.h: No libc_hidden_proto for raise,
3621         __libc_current_sigrtmin, __libc_current_sigrtmax.
3622         These need to be overridden by linuxthreads.
3623         * sysdeps/posix/raise.c: Reverted.
3624         * sysdeps/generic/raise.c: Reverted.
3625         * signal/allocrtsig.c: Reverted.
3627         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
3629 2002-08-10  Roland McGrath  <roland@redhat.com>
3631         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
3632         * locale/localeinfo.h: Declare it.
3633         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
3634         current locale if it's not in the file list.
3635         Call _nl_archive_subfreeres.
3637 2002-08-10  Andreas Jaeger  <aj@suse.de>
3639         * sysdeps/i386/strchr.S: Add comment.
3641 2002-08-10  Roland McGrath  <roland@redhat.com>
3643         * include/wchar.h (putwc): Use libc_hidden_proto.
3644         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
3645         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
3646         * stdio-common/dprintf.c: Add libc_hidden_def.
3647         * stdio-common/fprintf.c: Likewise.
3648         * stdio-common/sprintf.c: Likewise.
3649         * stdio-common/sscanf.c: Likewise.
3650         * libio/iofwrite.c: Likewise.
3651         * libio/memstream.c: Likewise.
3652         * libio/putwc.c: Likewise.
3653         * stdio-common/perror.c: Likewise.
3654         * sysdeps/posix/remove.c: Likewise.
3655         * sysdeps/generic/remove.c: Likewise.
3656         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
3657         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
3659 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
3661         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3662         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
3663         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3664         towlower, towupper): Add libc_hidden_weak.
3666         * include/bits/dlfcn.h: New file.
3667         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
3669         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
3670         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
3671         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
3672         * include/pwd.h (_nss_files_parse_pwent): Likewise.
3673         * include/shadow.h (_nss_files_parse_spent): Likewise.
3674         * include/netdb.h (_nss_files_parse_protoent,
3675         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
3676         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
3677         (LINE_PARSER): Use it.
3678         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
3679         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
3681         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
3682         #endif.
3684         * manual/debug.texi (%MENU%): Remove trailing dot.
3685         Reported by <hayastan132@hotmail.com>.
3687         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
3688         aliases.
3689         (lseek): Dummy.
3690         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
3691         Likewise.
3693 2002-08-09  Roland McGrath  <roland@redhat.com>
3695         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
3696         name to find codeset name (if any) and normalize it.  If the
3697         normalized name differs, look up only that in the archive.
3698         * locale/programs/locarchive.c (add_locale_to_archive): If the name
3699         contains a codeset, normalize the codeset store only the normalized
3700         name in the archive.  If not, add an alias containing the locale's
3701         normalized codeset name.  Apply codeset name normalization when
3702         matching entries in the alias file.
3704         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3705         decrement HEAD->namehash_used here.
3706         (add_locale): Only need to insert name string when name_offset != 0.
3708         * locale/programs/localedef.c (options): Add -A/--alias-file.
3709         (alias_file): New variable.
3710         (parse_opt): Grok -A, set that.
3711         * locale/programs/localedef.h: Declare it.
3713         * locale/locarchive.h (struct locrecent): Add `refs' member.
3714         * locale/programs/locarchive.c (insert_name): New function, broken out
3715         of ...
3716         (add_locale_to_archive): ... here.  Call that.
3717         (add_alias): New function.
3718         (add_locale): New static function, add_locale_to_archive renamed.
3719         (add_locale_to_archive): Call that and use add_alias to add an alias
3720         for the name with codeset if the given name lacks it.
3721         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3723         * locale/Makefile (routines): Add loadarchive.
3724         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3725         (_nl_load_locale_from_archive): New function.
3726         * locale/localeinfo.h: Declare it.
3727         * locale/findlocale.c (_nl_find_locale): If using default locale path,
3728         try _nl_load_locale_from_archive first.
3730         * locale/loadlocale.c (_nl_intern_locale_data): New function,
3731         broken out of _nl_load_locale.
3732         (_nl_load_locale): Call that.
3733         * locale/localeinfo.h: Declare it.
3734         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3735         (struct locale_data): Remove unused member `options'.
3736         * locale/findlocale.c (_nl_remove_locale): Update uses.
3737         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3738         * locale/C-collate.c: Update initializer.
3739         * locale/C-identification.c: Likewise.
3740         * locale/C-measurement.c: Likewise.
3741         * locale/C-telephone.c: Likewise.
3742         * locale/C-address.c: Likewise.
3743         * locale/C-name.c: Likewise.
3744         * locale/C-paper.c: Likewise.
3745         * locale/C-time.c: Likewise.
3746         * locale/C-numeric.c: Likewise.
3747         * locale/C-monetary.c: Likewise.
3748         * locale/C-messages.c : Likewise.
3749         * locale/C-ctype.c: Likewise.
3751         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3752         use CHAR_BIT instead of BITSPERBYTE.
3754         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3755         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3756         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3757         (_nl_remove_locale): Likewise.
3758         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3760         * locale/findlocale.c (_nl_default_locale_path): New variable.
3761         (_nl_find_locale): If LOCALE_PATH is null, default to that.
3762         * locale/localeinfo.h: Declare it.
3763         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3764         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
3765         * locale/newlocale.c (__newlocale): Likewise.
3767         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3768         * inet/rexec.c (rexec_af): Add libc_hidden_def.
3769         * sysdeps/generic/morecore.c: Likewise.
3770         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3771         (__libc_current_sigrtmax): Likewise.
3773 2002-08-08  Roland McGrath  <roland@redhat.com>
3775         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3776         * catgets/open_catalog.c (__open_catalog): Likewise.
3778         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3779         from typo INITIAL_NUM_NANES.
3780         (create_archive): Update use.
3782 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3784         * sysdeps/unix/sysv/linux/sigwait.c: New file.
3786 2002-08-08  Roland McGrath  <roland@frob.com>
3788         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3790 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3792         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3793         else and undefine after including wcstol_l.c.
3794         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3796 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3798         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3800 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
3802         * configure.in: Make the test for broken_alias_attribute stricter.
3804 2002-05-24  Robert Love  <rml@tech9.net>
3806         * posix/Makefile (routines): Add sched_getaffinity and
3807         sched_setaffinity.
3808         * posix/sched.h: Add declarations for sched_getaffinity and
3809         sched_setaffinity.
3810         * sysdeps/generic/sched_getaffinity.c: New file.
3811         * sysdeps/generic/sched_setaffinity.c: New file.
3812         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3813         sched_setaffinity.
3815 2002-08-06  Andreas Schwab  <schwab@suse.de>
3817         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3819 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3821         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3822         message.
3824         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3825         It is known to be defined.
3827         * include/string.h: Define index and rindex only if _ISOMAC is not
3828         defined.
3830         * elf/rtld.c: Include <errno.h>.
3831         * sysdeps/generic/libc-tls.c: Likewise.
3833 2002-08-07  Roland McGrath  <roland@redhat.com>
3835         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3836         it internally.
3837         (precsize_aton): Likewise.
3839         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3840         the static symbols added in the last change (doofus is me).
3842         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3843         loop to notice missing categories in a composite name.
3845         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3846         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3847         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3848         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3850 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3852         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3854 2002-08-07  Roland McGrath  <roland@redhat.com>
3856         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3857         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3858         Reported by Jakub Jelinek  <jakub@redhat.com>.
3860 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
3862         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3863         division.
3865 2002-08-06  Roland McGrath  <roland@redhat.com>
3867         * include/getopt.h: Put private decls inside [_GETOPT_H].
3868         Use libc_hidden_proto for getopt_long, getopt_long_only.
3869         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3870         Add libc_hidden_def.
3872         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3873         Define as a macro for __dl_iterate_phdr.
3875         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3876         made static.  Add __ name as a strong alias.
3877         (internal_endnetgrent): Likewise.
3878         (internal_getnetgrent_r): Likewise.
3880         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3881         with no __ prefix.
3882         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3883         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3884         all *_l functions with no __ prefix.
3885         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3886         * ctype/ctype_l.c: Likewise.
3887         * locale/nl_langinfo.c: Likewise.
3888         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3889         * stdlib/stdlib.h [__USE_GNU]: Likewise.
3890         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3891         * wctype/wctype.h [__USE_GNU]: Likewise.
3892         * string/strcoll_l.c (strcoll_l): Define as weak alias.
3893         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3894         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3895         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3896         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3897         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3898         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3899         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3900         (__wcscasecmp_l): Add libc_hidden_def.
3901         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3902         (__wcsncasecmp_l): Add libc_hidden_def.
3903         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3904         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3905         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3906         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3907         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3908         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3909         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3910         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3911         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3912         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3913         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3914         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3915         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3916         * wctype/wctype_l.c (wctype_l) Define as weak alias.
3918 2002-08-05  Roland McGrath  <roland@redhat.com>
3920         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3921         netname2user, host2netname, user2netname, key_gendes.
3922         * sunrpc/netname.c: Add libc_hidden_def.
3923         * sunrpc/key_call.c: Likewise.
3925         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3926         freeaddrinfo.
3927         * inet/getnameinfo.c: Add libc_hidden_def.
3928         * sysdeps/generic/getaddrinfo.c: Likewise.
3929         * sysdeps/posix/getaddrinfo.c: Likewise.
3931         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3932         * wcsmbs/wmemchr.c: Add libc_hidden_def.
3933         * wcsmbs/wmemset.c: Add libc_hidden_def.
3935         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3936         (index, rindex): Define as macros for strchr, strrchr.
3938         * string/envz.c (envz_strip): index -> strchr
3940         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3941         * sunrpc/rpc_prot.c: Add libc_hidden_def.
3943         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3944         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3946         * include/stdlib.h: Use libc_hidden_proto for wctomb.
3947         * stdlib/wctomb.c: Add libc_hidden_def.
3949         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3950         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3951         * resolv/herror.c: Likewise.
3952         * inet/rcmd.c: Add libc_hidden_def.
3953         * inet/ruserpass.c: Likewise.
3954         * inet/getnetgrent_r.c: Likewise.
3956         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3957         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
3958         for svcerr_auth, svcerr_noprog, svcerr_progvers.
3959         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3960         libc_hidden_def.
3961         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3962         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3964         * sysdeps/posix/system.c (do_system): New function, guts broken out of
3965         __libc_system.
3966         (__libc_system): Call it, putting just the line == NULL test here.
3968         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3969         variables work right.
3971         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3972         * elf/dl-close.c (_dl_close): Likewise.
3974         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3975         in6addr_any, in6addr_loopback.  Remove decls for
3976         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3977         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3978         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3979         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3980         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3981         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3982         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3983         in6addr_loopback.
3984         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3986         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3987         ether_aton_r.
3988         * inet/ether_aton_r.c: Add libc_hidden_def.
3989         * inet/ether_ntoa_r.c: Likewise.
3991         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3992         xprt_unregister.
3993         * sunrpc/svc.c: Add libc_hidden_def.
3994         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3995         pmap_set, pmap_unset.
3996         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3997         * sunrpc/pm_getport.c: Likewise.
3998         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3999         * sunrpc/publickey.c: Add libc_hidden_def.
4001 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
4003         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
4004         the other memset call in this function.
4006         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
4007         at correct index.  Clear BSS region now that memalign is used.
4009 2002-08-05  Roland McGrath  <roland@redhat.com>
4011         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
4012         * sysdeps/generic/uname.c: Add libc_hidden_def.
4013         * sysdeps/mach/hurd/uname.c: Likewise.
4015 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
4017         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
4018         wcspbrk): Add libc_hidden_proto.
4019         * time/strftime.c (my_strftime): Add libc_hidden_def.
4020         (strftime): Remove libc_hidden_def.
4021         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
4022         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
4023         * wcsmbs/wcsspn.c (wcsspn): Likewise.
4024         * wcsmbs/wcscmp.c (wcscmp): Likewise.
4025         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
4026         * wcsmbs/wcscoll.c (wcscoll): Likewise.
4028         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
4029         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
4030         __rpc_thread_createerr): Add libc_hidden_proto.
4031         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
4032         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
4033         __rpc_thread_createerr): Add libc_hidden_def.
4035         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
4036         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
4037         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
4038         clnt_perror, clnt_sperror): Add libc_hidden_def.
4039         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
4041         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
4042         libc_hidden_proto.
4043         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
4044         * sunrpc/des_soft.c (des_setparity): Likewise.
4046         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
4047         Add libc_hidden_proto.
4048         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
4049         Add libc_hidden_def.
4051 2002-08-05  Roland McGrath  <roland@redhat.com>
4053         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
4054         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
4055         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
4056         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
4057         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
4058         old data, abandoning the original memory allocated by rtld at startup,
4059         instead of calling realloc normally.
4061 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
4063         * po/fr.po: Update from translation team.
4065 2002-08-04  Roland McGrath  <roland@redhat.com>
4067         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
4068         then generate a dummy module under the given name, obeying the
4069         normal rules for the "caller" field.
4071         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
4072         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
4074         * include/pthread.h: Don't declare __pthread_initialize_minimal as
4075         weak here; we declare it weak or strong in the one place we use it.
4076         * sysdeps/generic/libc-start.c: ... which is here.
4077         Don't make the decl weak if [USE_TLS], since static programs need TLS
4078         setup even when single-threaded.
4080         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
4082         * elf/Makefile (test-srcs): Add $(modules-names) to it.
4083         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
4084         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
4085         all these variables.
4087 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
4089         * include/stdio.h: Don't define macro magic to redirect function
4090         calls if _ISOMAC is defined.
4092         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
4093         ldouble asin tests.
4095 2002-08-04  Roland McGrath  <roland@redhat.com>
4097         * stdlib/lrand48_r.c: Add libc_hidden_def.
4099         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
4100         TCB with __libc_memalign instead of mmap.
4101         (_dl_deallocate_tls): Free it with free instead of munmap.
4103         * Makerules (cpp-srcs-left): When setting this to run
4104         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
4105         words.  Combine the two loops into one on the concatenated list,
4106         including those as well as $(test-srcs).
4108         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
4109         since we align here with optimally minimal waste anyway.
4110         (malloc): Just call that.
4112         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
4113         the right variable.
4115         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
4116         to compute memory location for l_tls_initimage.
4117         * elf/rtld.c (_dl_start): Likewise.
4118         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
4120         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
4121         because the .d file is generated in the non-shared case and
4122         so fails to catch them otherwise.
4124         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
4125         split out of _dl_allocate_tls.
4126         (_dl_allocate_tls_init): Likewise.
4127         (_dl_allocate_tls): Call those.
4128         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
4129         * elf/rtld.c (dl_main): Call them separately instead of calling
4130         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
4131         is finished, so that the initializer data has been relocated before we
4132         copy it into the main thread's TLS block.
4134         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
4135         loop conditions, prevented the last used module from being initialized.
4137 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
4139         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
4140         if glob resp. globfree are not macros.
4141         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
4142         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
4143         Add libc_hidden_ver.
4144         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
4145         libc_hidden_def.
4146         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
4147         instead of libc_hidden_weak.
4148         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
4149         libc_hidden_ver instead of libc_hidden_def.
4150         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
4151         libc_hidden_ver instead of libc_hidden_def.
4152         (wcstoll, wcstoq): Remove libc_hidden_weak.
4153         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
4154         libc_hidden_ver.
4155         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
4156         libc_hidden_ver.
4157         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
4158         libc_hidden_ver.
4159         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
4160         libc_hidden_ver.
4162 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
4164         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
4165         to access _sys_siglist.
4166         * string/strsignal.c: Likewise.
4167         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
4168         * sysdeps/gnu/siglist.c: Likewise.
4169         * sysdeps/unix/siglist.c: Likewise.
4170         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
4172         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
4174         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
4176         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
4177         alias and use it.
4178         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
4180         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
4181         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
4182         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
4184         * include/time.h: Add libc_hidden_proto for __gmtime_r.
4185         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
4187         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
4188         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
4189         and __gconv_get_cache respectively.
4190         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
4191         defined static.  Change all users.
4192         (__gconv_get_cache): New function.
4193         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
4194         (__gconv_get_alias_db): New function.
4195         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
4196         (__conv_modules_db): Likewise.
4197         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
4198         and __gconv_get_alias_db.
4199         * iconv/iconv_prog.c: Use the new functions instead of accessing the
4200         variables.
4202         * include/stdlib.h: Add prototype and libc_hidden_proto for
4203         __default_morecore.
4204         * sysdeps/generic/morecore.c: Include <stdlib.h>.
4206         * malloc/obstack.c: Remove fputs macro.
4208         * malloc/mtrace.c: Remove fopen macro.
4210 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
4212         * manual/debug.texi: Fix spelling to programmatically.
4213         Reported by <hayastan132@hotmail.com>.
4215 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
4217         * include/libio.h: Add libc_hidden_proto for __uflow.
4218         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
4219         fgetpos to _IO_* names.
4220         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
4221         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
4222         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
4223         putwc_unlocked, vswscanf.
4224         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
4225         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
4226         * libio/fseek.c: Likewise.
4227         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
4228         not fopencookie.
4229         * libio/genops.c (__uflow): Add libc_hidden_def.
4230         * libio/iofflush_u.c (fflush_unlocked): Likewise.
4231         * libio/iofgets_u.c (fgets_unlocked): Likewise.
4232         * libio/iofputs_u.c (fputs_unlocked): Likewise.
4233         * libio/iofputws_u.c (fputws_unlocked): Likewise.
4234         * libio/iofread_u.c (fread_unlocked): Likewise.
4235         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
4236         * libio/iovswscanf.c (vswscanf): Likewise.
4237         * libio/putwc_u.c (putwc_unlocked): Likewise.
4238         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
4239         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
4240         * malloc/mtrace.c: Likewise.
4242         * sunrpc/clnt_perr.c: Remove fputs macro.
4243         * sunrpc/svc_simple.c: Likewise.
4244         * sunrpc/svc_tcp.c: Likewise.
4245         * sunrpc/svc_udp.c: Likewise.
4246         * sunrpc/xdr_rec.c: Likewise.
4247         * sunrpc/xdr_ref.c: Likewise.
4249         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
4250         iconv_prog, linereader, and charmap-dir.
4251         * locale/Makefile: Likewise for locale and charmap-dir.
4252         * malloc/Makefile: Likewise for memusagestat.
4253         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
4254         * sunrpc/Makefile: Likewise for rpc_main.
4255         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
4256         * timezone/Makefile: Likewise for zic.
4258         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
4260         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
4261         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
4262         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
4263         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
4264         _dl_close.
4266         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
4267         __wunderflow.
4268         * libio/genops.c (__underflow): Add libc_hidden_def.
4269         * libio/wgenops.c (__wuflow): Likewise.
4270         (__wunderflow): Likewise.
4272         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
4273         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
4275         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
4276         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
4278         * include/string.h: Add libc_hidden_proto for __strverscmp.
4279         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
4281         * include/unistd.h: Add libc_hidden_proto for __sysconf.
4282         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
4283         * sysdeps/posix/sysconf.c: Likewise.
4284         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
4285         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
4287         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
4288         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
4289         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
4290         __iswxdigit_l, __towlower_l, __towupper_l.
4291         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
4292         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
4294         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
4295         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
4296         * sysdeps/mach/hurd/xmknod.c: Likewise.
4297         * sysdeps/unix/xmknod.c: Likewise.
4298         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4299         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
4300         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4302         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
4304 2002-08-03  Roland McGrath  <roland@redhat.com>
4306         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
4307         setpriority.
4308         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
4309         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
4310         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
4311         * sysdeps/mach/hurd/setpriority.c: Likewise.
4312         * sysdeps/mach/hurd/getpriority.c: Likewise.
4313         * sysdeps/generic/setpriority.c: Likewise.
4314         * sysdeps/generic/getpriority.c: Likewise.
4316         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
4317         * malloc/mcheck.c: Add libc_hidden_def.
4319         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
4320         * misc/hsearch_r.c: Add libc_hidden_def.
4322         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
4323         * posix/fnmatch.c: Add libc_hidden_weak.
4325         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
4326         execl, execle, execlp, execvp, getpid, getsid.
4327         * sysdeps/generic/alarm.c: Add libc_hidden_def.
4328         * sysdeps/unix/alarm.c: Likewise.
4329         * posix/confstr.c: Likewise.
4330         * posix/execvp.c: Likewise.
4331         * posix/execlp.c: Likewise.
4332         * posix/execle.c: Likewise.
4333         * posix/execl.c: Likewise.
4334         * sysdeps/generic/getsid.c: Likewise.
4335         * sysdeps/mach/hurd/getsid.c: Likewise.
4336         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
4337         * sysdeps/mach/hurd/getpid.c: Likewise.
4339         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
4340         qecvt_r, qfcvt_r, lrand48_r.
4341         * misc/efgcvt_r.c: Add libc_hidden_def.
4343         * include/wordexp.h: Use libc_hidden_proto for wordfree.
4344         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
4346         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
4347         * locale/nl_langinfo.c: Add libc_hidden_def.
4349         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
4350         * sysdeps/generic/glob.c: Add libc_hidden_def.
4351         * sysdeps/generic/glob64.c: Likewise.
4352         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
4354         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
4356         * elf/Makefile (CFLAGS-vismod2.c): New variable.
4358         * locale/setlocale.c (_nl_current_names): Variable moved ...
4359         * locale/localename.c (_nl_current_names): ... here, new file.
4360         Make it global, with attribute_hidden.
4361         * locale/localeinfo.h: Declare it.
4362         * locale/Makefile (aux): Add localename.
4363         * locale/localename.c (__current_locale_name): New function.
4364         * include/locale.h (__current_locale_name): Declare it.
4365         * intl/dcigettext.c (guess_category_value): Use that instead of
4366         calling setlocale.
4368         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
4369         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
4370         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
4371         * locale/newlocale.c: Add alias to __ name.
4372         * locale/duplocale.c: Likewise.
4373         * locale/freelocale.c: Likewise.
4374         * locale/uselocale.c: New file.
4375         * locale/Makefile (routines): Add it.
4376         * locale/Versions (libc: GLIBC_2.3): New set.
4377         Add newlocale, duplocale, freelocale, uselocale.
4378         (libc: GLIBC_PRIVATE): Add __uselocale.
4380         * locale/localeinfo.h [SHARED]
4381         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
4382         (_NL_CURRENT_DATA): Define using that.
4383         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
4384         (_NL_CURRENT_DEFINE): Define to empty.
4385         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
4386         conditionalized on this.
4387         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
4388         taking initializer of _nl_C_locobj.
4389         [SHARED] (_nl_global_locale): New variable, using that initializer.
4390         (_nl_C_locobj): Use new macro for initialzier.
4391         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
4392         [! SHARED] (CATEGORY_USED): New macro.
4393         [SHARED] (CATEGORY_USED, _nl_C): New macros.
4394         (setdata, setlocale): Use that macro instead of examining _nl_current.
4395         (setdata): Set the slot in _nl_global_locale.
4396         Conditionalize setting of _nl_current on [! SHARED].
4397         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
4398         declaration as an extern.
4399         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
4401         * include/locale.h: Use libc_hidden_proto for setlocale.
4402         * locale/setlocale.c: Add libc_hidden_def.
4404         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
4406         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
4407         * misc/hsearch_r.c: Add libc_hidden_def.
4408         * misc/lsearch.c: Likewise.
4410         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
4411         endttyent.
4412         * misc/getttyent.c: Add libc_hidden_def.
4414         * include/mcheck.h: Use libc_hidden_proto for mcheck.
4415         * malloc/mcheck.c: Add libc_hidden_def.
4417         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
4418         * include/argz.h: Use libc_hidden_proto for argz_delete.
4419         * string/argz-delete.c: Add libc_hidden_def.
4420         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
4422         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
4423         HIDDEN_JUMPTARGET for _exit.
4424         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
4425         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
4426         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
4427         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
4429         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
4430         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
4431         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
4432         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
4434         * include/stdlib.h: Use libc_hidden_proto for abort,
4435         __strtof_internal, __strtod_internal, __strtold_internal,
4436         __strtol_internal, __strtoll_internal, __strtoul_internal,
4437         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
4438         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
4439         __strtoul_l_internal, __strtoull_l_internal.
4440         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
4441         __wcstod_internal, __wcstold_internal, __wcstol_internal,
4442         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
4443         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
4444         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
4445         __wcsncasecmp_l.
4446         * sysdeps/generic/abort.c: Add libc_hidden_def.
4447         * stdlib/strtod.c: Likewise.
4448         * sysdeps/generic/strtol.c: Likewise.
4449         * sysdeps/wordsize-64/strtol.c: Likewise.
4450         * sysdeps/wordsize-64/wcstol.c: Likewise.
4451         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
4453         * include/stdlib.h: Use libc_hidden_proto for qsort.
4454         * stdlib/msort.c: Add libc_hidden_def.
4456         * include/utime.h: Use libc_hidden_proto for utime.
4457         * sysdeps/generic/utime.c: Add libc_hidden_def.
4458         * sysdeps/unix/utime.c: Likewise.
4460         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
4461         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
4462         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
4463         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
4464         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
4466         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
4467         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
4468         and __libc_current_sigrtmax.
4469         * signal/sigismem.c: Add libc_hidden_def.
4470         * signal/sigfillset.c: Likewise.
4471         * signal/sigempty.c: Likewise.
4472         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
4473         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
4474         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
4475         * sysdeps/posix/raise.c: Likewise.
4476         * sysdeps/generic/raise.c: Likewise.
4478 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
4480         * include/string.h: Use libc_hidden_proto for __stpcpy.
4481         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
4482         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
4483         * sysdeps/generic/stpcpy.c: Likewise.
4484         * sysdeps/i386/stpcpy.S: Likewise.
4485         * sysdeps/i386/i586/stpcpy.S: Likewise.
4486         * sysdeps/powerpc/stpcpy.S: Likewise.
4487         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
4488         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
4490         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
4491         __strncasecmp_l, __strdup, __strndup, __strerror_r.
4492         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
4493         libc_hidden_def.
4494         * string/strdup.c (__strdup): Likewise.
4495         * string/strndup.c (__strndup): Likewise.
4496         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
4497         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
4499 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4501         * include/libio.h: New file.
4502         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
4503         * libio/iolibio.h: #include <libio.h>, not "libio.h".
4504         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
4505         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
4506         * sysdeps/unix/common/syscalls.list: Likewise.
4507         * sysdeps/unix/inet/syscalls.list: Likewise.
4508         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
4509         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
4510         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4511         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4512         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4513         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4514         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4515         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4516         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4517         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
4518         * sysdeps/unix/syscalls.list: Likewise.
4520 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4521             Ulrich Drepper  <drepper@redhat.com>
4523         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
4524         the arguments is big enough to cause an overflow.
4526 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
4528         * assert/assert.c: Use hidden_def not INTDEF.
4530 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4532         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
4533         not defined.
4535 2002-08-03  Roland McGrath  <roland@redhat.com>
4537         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
4538         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
4539         verr, verrx.
4540         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
4541         * misc/syslog.c: Add libc_hidden_def.
4542         * misc/err.c: Likewise.
4543         * stdlib/exit.c: Likewise.
4544         * stdlib/bsearch.c: Likewise.
4545         * sysdeps/generic/getenv.c: Likewise.
4547         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
4549         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
4550         libc_hidden_weak for every system call symbol defined.
4552         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
4553         timelocal, localtime, strftime.
4554         * time/asctime.c: Add libc_hidden_def.
4555         * time/mktime.c: Likewise.
4556         * time/localtime.c: Likewise.
4557         * time/strftime.c: Likewise.
4558         * time/strptime.c: Likewise.
4559         * sysdeps/generic/time.c: Likewise.
4560         * sysdeps/unix/time.c: Likewise.
4561         * sysdeps/unix/sysv/i386/time.S: Likewise.
4562         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
4564         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
4565         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
4566         * resolv/inet_ntop.c: Likewise.
4567         * resolv/inet_pton.c: Likewise.
4568         * inet/inet_mkadr.c: Add libc_hidden_def.
4569         * inet/inet_netof.c: Likewise.
4570         * resolv/inet_addr.c: Likewise.
4572         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
4573         clauses from conditionals for now.  Will have to be fixed later
4574         for older compilers.
4576         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
4578 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4580         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
4581         broken alias attribute handling.
4582         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
4584 2002-08-02  Roland McGrath  <roland@frob.com>
4586         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
4587         since it sets the variables we use in a -D switch.
4589 2002-08-02  Roland McGrath  <roland@redhat.com>
4591         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
4592         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
4593         matches long int, not int.
4595         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
4596         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
4597         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4598         * wctype/wctrans.c (wctrans): Likewise.
4599         * wctype/wctype.c (__wctype): Likewise.
4600         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
4602 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4604         * assert/assert.c (__assert_fail): Fix typo in comment.
4606         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
4607         * sunrpc/rpc_thread.c: Define it without static.
4608         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
4610 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4612         * assert/assert.c (__assert_fail): Remove undef.
4613         Replace INTDEF with libc_hidden_def.
4614         * assert/__assert.c (__assert): Remove INTUSE.
4615         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
4616         libc_hidden_weak.
4617         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
4618         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
4619         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
4620         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
4621         libm_hiden_ver): Define.
4622         * include/assert.h (__assert_fail_internal): Remove.
4623         (__assert_fail): Add prototype.  Add hidden_proto.
4624         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
4625         libc_hidden_proto.
4626         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
4627         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
4628         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
4629         Add libc_hidden_proto.
4630         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
4631         __fcntl): Add libc_hidden_proto.  Remove macros.
4632         (__open_internal, __fcntl_internal): Remove.
4633         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
4634         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
4635         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
4636         libc_hiden_proto.
4637         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
4638         libc_hidden_def.
4639         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
4640         Add libc_hidden_def.
4641         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
4642         * sysdeps/generic/open.c (__open): Remove undef.
4643         Add libc_hidden_def.  Remove INTDEF.
4644         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
4645         Add libc_hidden_def.
4646         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
4647         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
4648         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
4649         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4650         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4651         (__libc_fcntl): Add libc_hidden_def.
4652         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
4653         (__open): Remove INTDEF2.  Add libc_hidden_weak.
4654         (__libc_open): Add libc_hidden_def.
4655         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
4656         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
4657         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4658         Add libc_hidden_def.
4659         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
4660         Add libc_hidden_def.
4661         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
4662         undef.
4663         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4664         (__libc_fcntl): Add libc_hidden_def.
4665         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
4666         __getpgid_internal, __chown_internal): Remove.
4667         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
4668         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
4669         __GI___chown): Add.
4670         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
4671         __getpid_internal, __open_internal, __write_internal): Remove.
4672         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
4673         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
4674         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
4675         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
4676         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
4677         Replace INTDEF with libc_hidden_def.
4678         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
4679         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
4680         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
4681         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
4682         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
4683         Add libc_hidden_proto.
4684         * include/sys/poll.h (__poll): Add libc_hidden_proto.
4685         * include/sys/select.h (__select): Likewise.
4686         * include/sys/socket.h (__send): Likewise.
4687         * include/sys/statfs.h (__statfs): Likewise.
4688         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
4689         __getpid, __getpgid, __setpgid, __close, __read, __write,
4690         __getpagesize, __sbrk): Likewise.
4691         (__chown_internal, __dup2_internal, __getpid_internal,
4692         __getpgid_internal, __close_internal, __write_internal,
4693         __getpagesize_internal): Remove.
4694         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
4695         Remove macros.
4696         * include/printf.h (__printf_fp): Add libc_hidden_proto.
4697         * include/sched.h (__sched_setscheduler): Likewise.
4698         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
4699         * include/stdlib.h (__secure_getenv): Likewise.
4700         * include/signal.h (__sigaction, __sigsuspend): Likewise.
4701         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4702         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4703         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4704         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4705         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4706         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4707         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4708         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4709         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4710         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4711         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4712         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4713         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4714         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4715         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4716         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4717         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4718         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4719         * libio/genops.c (__overflow): Add libc_hidden_def.
4720         * libio/iovdprintf.c: Remove libio.h include.
4721         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4722         libc_hidden_weak): Define to nothing if not defined.
4723         (__overflow, __woverflow): Add libc_hidden_proto.
4724         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4725         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4726         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4727         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4728         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4729         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4730         and libc_hidden_def.
4731         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4732         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4733         (__getpgid): Add libc_hidden_proto.
4734         (__bsd_getpgrp): Remove INTUSE.
4735         * resolv/res_init.c (__res_ninit, __res_randomid): Add
4736         libc_hidden_def.
4737         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4738         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4739         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4740         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4741         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4742         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4743         __rpc_thread_createerr): Add libc_hidden_def.
4744         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4745         libc_hidden_def.
4746         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4747         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4748         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4749         * sysdeps/generic/chown.c (__chown): Likewise.
4750         * sysdeps/generic/close.c (__close): Likewise.
4751         * sysdeps/generic/dup2.c (__dup2): Likewise.
4752         * sysdeps/generic/pipe.c (__pipe): Likewise.
4753         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4754         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4755         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4756         * sysdeps/generic/read.c (__libc_read): Likewise.
4757         (__read): Add libc_hidden_weak.
4758         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4759         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4760         * sysdeps/generic/select.c (__select): Likewise.
4761         * sysdeps/generic/send.c (__send): Likewise.
4762         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4763         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4764         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4765         * sysdeps/generic/statfs.c (__statfs): Likewise.
4766         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4767         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4768         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4769         Remove undef and INTDEF.
4770         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4771         * sysdeps/generic/getpid.c (__getpid): Likewise.
4772         * sysdeps/generic/write.c (__libc_write): Likewise.
4773         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4774         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4775         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4776         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4777         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
4778         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4779         Remove undef and INTDEF.
4780         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4781         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4782         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4783         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4784         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4785         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4786         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4787         (__pipe): Add libc_hidden_def.
4788         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4789         libc_hidden_weak.
4790         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4791         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4792         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4793         (__read): Add libc_hidden_weak.
4794         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4795         (__libc_pwrite64): Add libc_hidden_def.
4796         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4797         * sysdeps/mach/hurd/select.c (__select): Likewise.
4798         * sysdeps/mach/hurd/send.c (__send): Likewise.
4799         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4800         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4801         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4802         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4803         * sysdeps/posix/dup2.c: Likewise.
4804         Remove undef and INTDEF.
4805         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4806         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4807         (__pwrite64): Add libc_hidden_weak.
4808         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4809         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4810         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4811         * sysdeps/standalone/close.c (__close): Likewise.
4812         * sysdeps/standalone/write.c (__libc_write): Likewise.
4813         (__write): Add libc_hidden_weak.
4814         * sysdeps/standalone/read.c (__read): Likewise.
4815         (__libc_read): Add libc_hidden_def.
4816         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4817         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4818         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4819         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4820         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4821         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4822         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4823         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4824         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4825         __GI___sigaction): Add.
4826         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4827         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4828         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4829         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4830         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4831         __GI___setpgid): Add.
4832         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4833         Remove undef and INTDEF.
4834         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4835         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4836         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4837         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4838         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4839         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4840         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4841         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4842         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4843         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4844         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4845         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4846         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4847         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4848         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4849         __GI___statfs, __GI___send): Add.
4850         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4851         libc_hidden_ver resp. libc_hidden_def.
4852         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4853         libc_hidden_def.
4854         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4855         Likewise.  Remove undef and INTDEF.
4856         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4857         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4858         __GI___statfs, __GI___send): Add.
4859         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4860         libc_hidden_def.
4861         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4862         Likewise.
4863         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4864         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4865         libc_hidden_ver resp. libc_hidden_def.
4866         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4867         __GI___send): Add.
4868         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4869         Add libc_hidden_weak.
4870         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4871         Add libc_hidden_def.
4872         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4873         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4874         libc_hidden_weak.
4875         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4876         resp. libc_hidden_def.
4877         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4878         libc_hidden_weak.
4879         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
4880         INTDEF.
4881         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4882         Likewise.  Remove undef.
4883         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4884         libc_hidden_weak.
4885         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4886         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4887         libc_hidden_weak.
4888         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4889         libc_hidden_def.
4890         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4891         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4892         Likewise.  Remove undef and INTDEF.
4893         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4894         libc_hidden_def.
4895         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4896         libc_hidden_weak.
4897         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4898         libc_hidden_def.
4899         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4900         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4901         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4902         libc_hidden_weak.
4903         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4904         Add libc_hidden_def.
4905         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4906         __GI___statfs): Add.
4907         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4908         libc_hidden_weak.
4909         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4910         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4911         Remove undef and INTDEF.
4912         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4913         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4914         libc_hidden_def.
4915         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4916         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4917         libc_hidden_weak.
4918         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4919         libc_hidden_def.
4920         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4921         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4922         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4923         Add.
4924         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4925         libc_hidden_def.  Remove undef and INTDEF.
4926         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4927         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4928         libc_hidden_def.
4929         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4930         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4931         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4932         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4933         Remove undef and INTDEF.
4934         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4935         broken visibility attribute handling.
4936         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4938 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4940         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4941         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4943         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4944         previous patch.
4946 2002-06-29  Todd Fries  <todd@openbsd.org>
4948         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4950 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4952         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4954 2002-07-30  Roland McGrath  <roland@redhat.com>
4956         * resolv/resolv.h (_res): Define macro unconditionally.
4957         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4958         * include/resolv.h: ... here.
4959         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4960         as a __thread variable.
4961         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4962         a __thread variable instead of a global.
4963         * resolv/res_data.c [_LIBC]: Don't #undef _res.
4965         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4966         time we test it.
4968         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4970         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4971         decls of memset and memcpy.
4973         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4974         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4976         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4978         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4979         (__libc_tsd_define): Define using __thread.
4981         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4982         (__rpc_thread_variables): Use __libc_tsd_get.
4983         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4984         __rpc_thread_variables, which might allocate what we're about to free.
4986         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4987         thread-local variable.
4988         * resolv/netdb.h (h_errno): Define macro unconditionally.
4989         [_LIBC] (__set_h_errno): Macro moved to ...
4990         * include/netdb.h: ... here.
4991         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4992         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4993         [! _LIBC_REENTRANT]: #undef h_errno here.
4995         * include/errno.h: Protect from multiple inclusion.
4997         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4998         before defining them, since Linux's <linux/posix_types.h> might have
4999         defined them.
5001 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
5003         * malloc/malloc.c (public_cALLOc): Check for overflow on
5004         multiplication.
5005         * sunrpc/xdr_array.c (xdr_array): Likewise.
5006         * sunrpc/rpc/types.h (mem_free): Add comment.
5007         Patch by Solar Designer <solar@openwall.com>.
5009 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
5011         * sysdeps/unix/sysv/linux/kernel-features.h
5012         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
5014 2002-08-01  Roland McGrath  <roland@redhat.com>
5016         * libio/fileops.c (_IO_file_sync_mmap): New function.
5017         (_IO_file_jumps_mmap): Use it.
5018         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
5019         repeat the stat check and resize the mapped buffer as necessary.
5021 2002-07-31  Roland McGrath  <roland@redhat.com>
5023         * libio/fileops.c (decide_maybe_mmap): New static function.
5024         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
5025         mmap the file contents.  Then switch the jump tables to the mmap
5026         tables if it worked, or the vanilla file tables if not.
5027         (_IO_file_underflow_maybe_mmap): New function.
5028         (_IO_file_seekoff_maybe_mmap): New function.
5029         (_IO_file_xsgetn_maybe_mmap): New function.
5030         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
5031         * libio/libioP.h: Declare those.
5032         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
5033         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
5034         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
5035         If the stream is read-only, set its jump tables to those new ones.
5036         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
5037         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
5038         We need the tables set before _IO_file_attach.
5040         * libio/tst-mmap-eofsync.c: New file.
5041         * libio/tst-mmap-fflushsync.c: New file.
5042         * libio/bug-mmap-fflush.c: New file.
5043         * libio/tst-mmap2-eofsync.c: New file.
5044         * libio/Makefile (tests): Add them.
5046         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
5047         _IO_file_underflow_mmap fails, it already set the appropriate bit.
5049 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
5051         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
5052         Declarations moved to <bits/sys_errlist.h>.  Include that file.
5053         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
5054         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
5055         declare sys_errlist and sys_nerr.
5056         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
5057         provide declarations.
5059 2002-07-31  Roland McGrath  <roland@redhat.com>
5061         * elf/rtld.c (dl_main): Fix typo in error message.
5063 2002-07-31  Roland McGrath  <roland@frob.com>
5065         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
5066         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
5067         sysdeps/mach/hurd/dl-sysdep.c change.
5069 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
5071         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
5072         -r`/build/include for kernel headers.
5074         * po/fi.po: New file.
5076 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
5078         * configure.in (static_nss): Set to `yes' if --disable-shared.
5080 2002-07-23  Bruno Haible  <bruno@clisp.org>
5082         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
5083         is set.
5085 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
5087         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
5088         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
5089         arguments.
5091 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
5093         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
5094         alias.
5096 2002-07-21  Bruno Haible  <bruno@clisp.org>
5098         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
5099         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
5100         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
5101         trans_sysdep_tab_offset.
5102         (struct sysdep_segment): New type.
5103         (struct sysdep_string): New type.
5104         (SEGMENTS_END): New macro.
5105         * intl/gettextP.h (struct sysdep_string_desc): New type.
5106         (struct loaded_domain): New fields malloced, n_sysdep_strings,
5107         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
5108         orig_tab, trans_tab, hash_tab to const pointers because they point
5109         into read-only memory.
5110         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
5111         (PRI*): Define fallback values.
5112         (get_sysdep_segment_value): New function.
5113         (_nl_load_domain): Distinguish major and minor revision parts. Add
5114         support for minor revision 1 with system dependent strings.
5115         (_nl_unload_domain): Also free the 'malloced' field.
5116         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
5117         now done in loadmsgcat.c. Add support for system dependent strings.
5119 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
5121         * posix/bug-regex7.c: New file.
5122         * posix/bug-regex8.c: New file.
5123         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
5125 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
5127         * posix/bug-regex4.c (main): Fix typos.
5128         * posix/bug-regex6.c (main): Likewise.
5130 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
5132         * posix/bug-regex6.c (main): Fix warnings.
5134         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
5136         * iconv/iconv_prog.c (main): Improve error message for the cases
5137         where -t and/or -f parameter are missing.
5139 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
5141         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
5142         (re_search): Likewise.
5143         (re_match_2): Likewise.
5144         (re_search_2): Likewise.
5145         (re_search_stub): New function.
5146         (re_search_2_stub): New function.
5147         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
5149 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
5151         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
5152         (re_string_eoi): Use STOP instead of LEN.
5153         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
5154         (re_string_construct): Likewise.
5155         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
5156         * posix/regexec.c (re_search_internal): Add a new argument STOP
5157         so that it can handle the argument STOP of re_search_2 and re_match_2
5158         correctly.
5159         (regexec): Adapt to new I/F of re_search_internal.
5160         (re_search_stub): Likewise.
5162 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
5164         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
5166         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
5168         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
5169         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
5170         of __divdi3.
5172         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
5173         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
5174         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
5175         alias for adjtimex syscall.
5177         * elf/dl-minimal.c: Define __assert_fail_internal.
5178         * assert/assert.c: Likewise.
5179         * include/assert.h: Define __assert_file macro if !SHARED and not
5180         NOT_IN_libc.
5182         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
5183         programs.
5184         * locale/Makefile: Likewise.
5185         * nscd/Makefile: Likewise.
5186         * catgets/Makefile: Likewise.
5188 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5190         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
5191         compute current position.
5193         * stdio-common/tst-fseek.c (main): Improve error messages.
5195         * libio/tst-freopen.c (main): Remove unused variable.
5197         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
5198         succesful seek call.  Simplify error checking.
5200 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
5202         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
5203         * sysdeps/ia64/fpu/libm_support.h: Likewise.
5205 2002-07-19  Roland McGrath  <roland@frob.com>
5207         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
5208         __libc_enable_secure is set.
5210 2002-07-24  Roland McGrath  <roland@frob.com>
5212         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
5213         This implementation supports only IPv4.
5214         * inet/ifaddrs.h: New file.
5215         * sysdeps/generic/ifaddrs.c: New file.
5216         * sysdeps/gnu/ifaddrs.c: New file.
5217         * inet/test-ifaddrs.c: New file.
5218         * inet/Makefile (routines): Add ifaddrs.
5219         (headers): Add ifaddrs.h here.
5220         (tests): Add test-ifaddrs.
5221         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
5223         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
5224         socket call to get an AF_INET socket, instead of using __opensock.
5225         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
5227         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
5228         if not -1 use it instead of calling __opensock.
5229         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
5230         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
5231         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
5233         * sysdeps/mach/hurd/ifreq.h: New file.
5234         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
5235         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
5236         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
5238         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
5239         which gets moved around.  Calculate size of mmap'd buffer instead.
5241 2002-07-24  Philip Blundell  <philb@gnu.org>
5243         * sysdeps/unix/arm/brk.S: Improve schedule.
5244         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
5245         efficient instruction.
5246         (__socket): Optimize return sequence.
5248 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5250         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
5251         sockets on old kernels.
5253 2002-07-22  Philip Blundell  <philb@gnu.org>
5255         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
5256         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
5257         alias.
5259 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5261         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
5262         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
5264         * locale/programs/locarchive.c (add_locale_to_archive): Correct
5265         test to detect duplicate locales.
5267         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
5268         position would be before beginning of file.
5269         (_IO_file_seekoff_mmap): Likewise.
5270         * libio/Makefile (tests): Add bug-fseek.
5271         * libio/bug-fseek.c: New file.
5273         * intl/explodename.c: Remove support for CEN-style locale variables.
5274         It was never used and shouldn't be since it's not portable.
5275         * intl/finddomain.c: Likewise.
5276         * intl/l10nflist.c: Likewise.
5277         * intl/loadinfo.h: Likewise.
5278         * locale/findlocale.c: Likewise.
5280 2002-07-24  Roland McGrath  <roland@frob.com>
5282         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
5283         position, calculate it to take into account an active pushback buffer.
5285         * libio/Makefile (tests): Add bug-ungetc.
5286         * libio/bug-ungetc.c: New file.
5288 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
5290         * sysdeps/generic/libc-tls.c: New file.
5291         * csu/Makefile (routines): Add libc-tls.
5292         (static-only-routines): Add libc-tls.
5293         * elf/dl-support.c (_dl_phdr): New variable.
5294         (_dl_phnum): New variable.
5295         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
5296         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
5297         for !SHARED.  First look through auxiliary vector.  If TLS always
5298         call __pthread_initialize_minimal.
5300         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
5301         in mmap call is never zero.
5303 2002-07-23  Andreas Jaeger  <aj@suse.de>
5305         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
5306         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
5308 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
5310         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
5311         creation and removal of the temp file.
5313         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
5314         file creation.
5315         * test-skeleton.c (create_temp_file): New function.
5317 2002-07-22  Andreas Jaeger  <aj@suse.de>
5319         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
5320         local label.
5322 2002-07-21  Roland McGrath  <roland@frob.com>
5324         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
5325         put -I../include before -I../stdlib so we get the right errno.h et al.
5326         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
5327         (CFLAGS-wcstof.c): Likewise.
5328         (CFLAGS-wcstold.c): Likewise.
5329         (CFLAGS-wcstod_l.c): Likewise.
5330         (CFLAGS-wcstof_l.c): Likewise.
5331         (CFLAGS-wcstold_l.c): Likewise.
5333 2002-07-19  Roland McGrath  <roland@frob.com>
5335         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
5337 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
5339         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
5340         __ASSUME_AT_XID is defined.
5341         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
5342         for 2.4.1 and up.
5343         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
5344         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
5346         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
5347         (CFLAGS-wcstof.c): Likewise.
5348         (CFLAGS-wcstold.c): Likewise.
5349         (CFLAGS-wcstod_l.c): Likewise.
5350         (CFLAGS-wcstof_l.c): Likewise.
5351         (CFLAGS-wcstold_l.c): Likewise.
5353 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
5355         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
5356         __priority_which_t): Always typedef to int for C++.
5358 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
5360         * configure.in: Add test for __thread support in compiler.
5361         * config.h.in: Add HAVE___THREAD.
5362         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
5363         * include/sys/errno.h: Moved to...
5364         * stdlib/sys/errno.h: ...here.  New file.
5365         * stdlib/errno.h: New file.  Moved from...
5366         * include/errno.h: ...here.  Changed into an internal header defining
5367         libc-local things like __set_errno.
5368         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
5369         bits/errno.h.
5370         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
5371         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
5372         either.
5373         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
5374         from...
5375         (_dl_start_final): ...here.  Add code to initialize tls elements from
5376         bootstrap_map.
5377         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
5378         if USE_TLS && HAVE___THREAD.
5379         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
5380         * sysdeps/mach/hurd/bits/errno.h: Likewise.
5381         * sysdeps/standalone/arm/bits/errno.h: Likewise.
5382         * sysdeps/standalone/bits/errno.h: Likewise.
5383         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
5384         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
5385         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
5386         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
5387         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
5388         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
5389         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
5390         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
5391         use GL(dl_rtld_map), use map parameter.
5392         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
5393         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
5394         USE_TLS && HAVE___THREAD.
5395         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
5396         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
5397         TLS code sequence.
5398         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5400         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
5401         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
5402         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
5403         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
5404         * sysdeps/unix/sysv/linux/readv.c: Likewise.
5405         * sysdeps/unix/sysv/linux/writev.c: Likewise.
5407 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
5409         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
5410         MS_INVALIDATE values.
5412 2002-07-17  Andreas Schwab  <schwab@suse.de>
5413             Ulrich Drepper  <drepper@redhat.com>
5415         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
5416         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5417         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5418         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5420 2002-07-01  H.J. Lu  <hjl@gnu.org>
5422         * elf/circleload1.c (load_dso): Call "circlemod1" and check
5423         return value.
5425         * elf/circlemod1.c (circlemod1): Return int.
5426         * elf/circlemod2.c (circlemod2): Likewise.
5427         * elf/circlemod2a.c (circlemod2): Likewise.
5428         * elf/circlemod3.c (circlemod3): Likewise.
5429         (circlemod3a): A new function.
5431 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
5433         * catgets/tst-catgets.c (main): Don't expect results for
5434         untranslated messages.
5436         * glibcbug.in: Fix little typo.  Remove STDIO.
5438         * config.h.in: Fail if __FAST_MATH__ is defined.
5439         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
5440         (CPPFLAGS-test-idouble.c): Likewise.
5441         (CPPFLAGS-test-ildouble.c): Likewise.
5443 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
5445         * intl/tst-gettext.sh: Pass -f option to msgfmt.
5446         * intl/tst-gettext.c: Correctly handle untranslated messages in
5447         positive tests.
5449         * po/de.po: Update from translation team.
5451 2002-07-02  H.J. Lu  <hjl@gnu.org>
5453         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
5454         use ll/sc.
5455         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
5457         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
5458         to 2.4.0 for mips.
5460 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
5462         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
5463         TLS fail if USE_TLS is not defined.
5465         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
5466         and adjust state for seek position.  [PR libc/4070]
5467         * libio/Makefile (tests): Add bug-rewind.
5468         * libio/bug-rewind.c: New file.
5470 2002-07-12  Philip Blundell  <philb@gnu.org>
5472         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
5473         (__backtrace): Use it.
5474         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
5476 2002-07-12  Philip Blundell  <philb@gnu.org>
5478         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
5479         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
5480         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
5481         (elf_machine_rela): Remove unused variable.
5483         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
5484         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
5485         define.
5487 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
5489         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
5491 2002-07-14  Andreas Jaeger  <aj@suse.de>
5493         * sysdeps/x86_64/bits/link.h: Add biarch support.
5495 2002-07-13  Andreas Jaeger  <aj@suse.de>
5497         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
5498         Use correct indices.
5499         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
5501 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5503         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
5504         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
5505         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
5506         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
5507         * sysdeps/s390/s390-32/bits/link.h: Remove.
5508         * sysdeps/s390/s390-64/bits/link.h: Remove.
5509         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
5510         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
5511         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
5512         * sysdeps/s390/bits/wordsize.h: New file.
5513         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
5514         elfclass.h.
5515         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
5516         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
5517         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
5518         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
5519         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
5520         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
5521         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
5522         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
5523         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
5524         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
5525         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
5526         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
5527         resource.h.
5528         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
5529         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
5530         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
5531         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
5532         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
5533         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
5534         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
5535         sigaction.h.
5536         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
5537         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
5538         siginfo.h.
5539         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
5540         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
5541         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
5542         socket.h.
5543         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
5544         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
5545         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
5546         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
5547         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
5548         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
5549         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
5550         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
5551         procfs.h.
5552         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
5553         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
5554         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
5555         ucontext.h.
5556         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
5557         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
5559 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
5561         * Versions.def (libc): Add GLIBC_2.3.
5562         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
5563         * stdlib/canonicalize.c: Add compatibility version for realpath
5564         and make new code available in GLIBC_2.3.
5566 2002-07-06  Bruno Haible  <bruno@clisp.org>
5568         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
5570 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
5572         * resolv/res_hconf.c (_res_hconf_init): Move code into new
5573         function do_init.  Use __libc_once.
5574         (do_init): New function.
5576         * iconvdata/iso8859-11.h: Removed.
5577         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
5578         (distribute): Remove iso8859-11.h.
5579         * iconvdata/tst-tables.sh: Add ISO-8859-11.
5581         * stdio-common/vfscanf.c (inchar): Restore errno from previous
5582         underflow operation if c == (W)EOF.
5584 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5586         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
5587         non-zero, adjust exponent.
5588         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
5589         Remove NO_LONG_DOUBLE aliases.
5590         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
5591         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
5592         (__log1pl): Raise divide by zero and invalid exceptions when needed.
5593         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
5594         1**y and -1**+-Inf.
5595         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
5596         Fix BITS_PER_MP_LIMB 32 extraction.
5597         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
5598         exceptions for qNaNs.
5599         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
5600         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
5601         Raise exceptions when needed.  Don't recurse unnecessarily.
5602         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
5603         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
5604         exceptions for qNaNs.
5605         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
5606         to fix *quo return value sign.
5607         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
5608         case -Inf argument.
5609         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
5611 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5613         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
5614         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
5615         -DNDEBUG.
5617 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5619         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
5620         the result.
5622         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
5623         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
5625         * Versions.def (libthread_db): Add GLIBC_2.3.
5627 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
5629         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
5630         new stream if possible.
5631         * libio/freopen64.c (freopen64): Likewise.
5632         * libio/Makefile (tests): Add tst-freopen.
5633         * libio/tst-freopen.c: New file.
5635 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5637         * libio/stdio.h (obstack_printf): Add format attribute.
5638         (obstack_vprintf): Likewise.
5640 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5642         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
5643         resp. 16 bytes on 32-bit resp. 64-bit platforms.
5644         (re_charset_t, re_string_t): Reorder structure members for 64-bit
5645         architectures.
5647 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5649         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
5650         (init_dfa): ...here.
5652 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5654         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
5655         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
5656         nodes in parse trees.
5657         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
5658         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
5659         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
5660         nodes which can epsilon transit.
5661         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
5662         to IS_EPSILON_NODE macro.
5663         * posix/regexec.c (update_regs): New function to update registers
5664         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
5665         (proceed_next_node): Use the entities of the nodes to determine
5666         whether the node can transit to.
5667         (set_regs): Use update_regs function to update registers.
5669 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5671         * posix/bug-regex4.c (main): Remove duplicate setlocale.
5672         * posix/bug-regex6.c: New file.
5673         * posix/Makefile (tests): Add bug-regex6.
5674         (bug-regex6-ENV): Set LOCPATH.
5676 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5678         * Versions.def [libpthread]: Add GLIBC_2.2.6.
5679         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
5681 2002-07-06  Bruno Haible  <bruno@clisp.org>
5683         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
5685 2002-07-06  Bruno Haible  <bruno@clisp.org>
5687         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
5688         declarations.
5690         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
5692         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
5694         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
5695         not _UTSNAME_H.
5696         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
5698         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
5699         * sysdeps/generic/bits/ustat.h: Likewise.
5701         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5703 2002-07-08  Andreas Jaeger  <aj@suse.de>
5705         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5707 2002-07-08  Andreas Jaeger  <aj@suse.de>
5709         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5711 2002-07-06  Andreas Jaeger  <aj@suse.de>
5713         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5714         * sysdeps/x86_64/fpu/s_copysign.S: New file.
5715         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5716         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5717         * sysdeps/x86_64/fpu/s_finitel.S: New file.
5718         * sysdeps/x86_64/fpu/s_fmax.S: New file.
5719         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5720         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5721         * sysdeps/x86_64/fpu/s_fmin.S: New file.
5722         * sysdeps/x86_64/fpu/s_fminf.S: New file.
5723         * sysdeps/x86_64/fpu/s_fminl.S: New file.
5725 2002-06-05  Brian Youmans <3diff@gnu.org>
5727         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5728         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5729         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5730         * sysdeps/ia64/fpu/e_asin.S: Likewise.
5731         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5732         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5733         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5734         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5735         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5736         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5737         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5738         * sysdeps/ia64/fpu/e_exp.S: Likewise.
5739         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5740         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5741         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5742         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5743         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5744         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5745         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5746         * sysdeps/ia64/fpu/e_log.S: Likewise.
5747         * sysdeps/ia64/fpu/e_logf.S: Likewise.
5748         * sysdeps/ia64/fpu/e_pow.S: Likewise.
5749         * sysdeps/ia64/fpu/e_powf.S: Likewise.
5750         * sysdeps/ia64/fpu/e_powl.S: Likewise.
5751         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5752         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5753         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5754         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5755         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5756         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5757         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5758         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5759         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5760         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5761         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5762         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5763         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5764         * sysdeps/ia64/fpu/libm_error.c: Likewise.
5765         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5766         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5767         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5768         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5769         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5770         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5771         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5772         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5773         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5774         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5775         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5776         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5777         * sysdeps/ia64/fpu/s_logb.S: Likewise.
5778         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5779         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5780         * sysdeps/ia64/fpu/s_modf.S: Likewise.
5781         * sysdeps/ia64/fpu/s_modff.S: Likewise.
5782         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5783         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5784         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5785         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5786         * sysdeps/ia64/fpu/s_rint.S: Likewise.
5787         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5788         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5789         * sysdeps/ia64/fpu/s_round.S: Likewise.
5790         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5791         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5792         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5793         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5794         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5795         * sysdeps/ia64/fpu/s_significand.S: Likewise.
5796         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5797         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5798         * sysdeps/ia64/fpu/s_tan.S: Likewise.
5799         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5800         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5801         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5802         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5803         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5804         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5805         reflect IBM donation of math library to FSF
5806         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5807         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5808         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5809         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5810         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5811         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5812         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5813         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5814         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5815         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5816         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5817         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5818         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5819         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5820         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5821         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5822         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5823         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5824         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5825         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5826         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5827         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5828         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5829         * sysdeps/vax/__longjmp.c: Likewise.
5830         * sysdeps/vax/setjmp.c: Likewise.
5831         * libio/filedoalloc.c: Fixed BSD copying permission notice to
5832         remove advertising clause
5833         * sysdeps/vax/htonl.s: Likewise.
5834         * sysdeps/vax/htons.s: Likewise.
5835         * libio/wfiledoalloc.c: Likewise.
5836         * stdlib/random.c: Likewise.
5837         * stdlib/random_r.c: Likewise.
5838         * sysdeps/mach/sys/reboot.h: Likewise.
5839         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5840         * sysdeps/posix/getaddrinfo.c: Likewise.
5841         * sunrpc/des_impl.c: Updated license permission notice to Lesser
5842         GPL and corrected pointer to point to the correct license.
5844 2002-07-04  Andreas Jaeger  <aj@suse.de>
5846         * scripts/config.guess: New upstream version.
5847         * scripts/config.sub: Likewise.
5849 2002-07-02  Andreas Schwab  <schwab@suse.de>
5851         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5852         in parallel to bumping up the buffer pointer.
5854 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5856         * math/libm-test.inc (acos_test): Add missing L suffix for
5857         expected result.
5858         (cpow_test): Likewise.
5859         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5860         error for acos (0.0625).
5862 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5864         * locale/iso-639.def: Add entry for Ganda.
5865         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5866         definition.
5867         (address_finish): Handle entries with two letter ISO 639 code.
5869         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5870         directory if it existed before.
5871         * iconv/iconvconfig.c: Implement --prefix option.
5873         * math/libm-test.inc (cexp_test): Add missing L suffix for
5874         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
5875         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5876         1.25 i).
5878 2002-05-29  H.J. Lu  <hjl@gnu.org>
5880         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5881         is turned on.
5883 2002-05-28  H.J. Lu  <hjl@gnu.org>
5885         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5886         are not dlopened on the dependency list of a dlopened object.
5888 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5890         * elf/dl-lookup.c (add_dependency): It is not necessary to add
5891         dependencies if they are created between objects which are created
5892         while processing RTLD_NOW for objects loaded as part of the same
5893         dlopen call.
5895 2002-06-14  H.J. Lu  <hjl@gnu.org>
5897         * elf/Makefile (tests): Add circleload1.
5898         (modules-names): Add circlemod1, circlemod2, circlemod3,
5899         circlemod1a, circlemod2a and circlemod3a.
5900         ($(objpfx)circleload1): New target.
5901         ($(objpfx)circleload1.out): Likewise.
5902         ($(objpfx)circlemod1.so): Likewise.
5903         ($(objpfx)circlemod2.so): Likewise.
5904         ($(objpfx)circlemod1a.so): Likewise.
5905         ($(objpfx)circlemod2a.so): Likewise.
5906         * elf/circleload1.c: New file.
5907         * elf/circlemod1.c: New file.
5908         * elf/circlemod1a.c: New file.
5909         * elf/circlemod2.c: New file.
5910         * elf/circlemod2a.c: New file.
5911         * elf/circlemod3.c: New file.
5912         * elf/circlemod3a.c: New file.
5914 2002-06-18  Amos Waterland  <apw@us.ibm.com>
5916         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5917         file descriptor.
5918         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5919         add check for fd not open for writing.
5921         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5922         completed element(s) and do not suspend thread if so.  Patch
5923         heavily modified by drepper.
5925         * rt/tst-aio7.c: New file.  Regression test for problems which the
5926         above three changes fix.
5927         * rt/Makefile (tests): Add tst-aio7.
5929 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
5931         * rt/tst-aio6.c: Fix comment.
5933         * catgets/gencat.c (read_input_file): Handle more than one slash
5934         at end of line correctly [PR libc/3926].
5935         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5937         * catgets/sample.SJIS: Add test case for above bug.
5938         * catgets/test-gencat.c: Adjust test code.
5939         * catgets/test-gencat.sh: Adjust expected results.
5941         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5942         to skip relative relocations.
5943         Patch by Geoff Keating <geoffk@redhat.com>.
5945 2002-05-26  Bruno Haible  <bruno@clisp.org>
5947         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5948         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5949         All callers changed.
5950         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5951         STANDARD_FROM_LOOP_ERR_HANDLER.
5952         (utf8_internal_loop): Likewise.
5953         (ucs2_internal_loop): Likewise.
5954         (internal_ucs2_loop): Perform error handling like in
5955         STANDARD_FROM_LOOP_ERR_HANDLER.
5956         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5957         in STANDARD_FROM_LOOP_ERR_HANDLER.
5958         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5959         handling.
5960         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5961         in STANDARD_FROM_LOOP_ERR_HANDLER.
5962         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5963         handling.
5964         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5965         in STANDARD_FROM_LOOP_ERR_HANDLER.
5966         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5967         handling.
5968         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5969         STANDARD_FROM_LOOP_ERR_HANDLER.
5970         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5971         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5972         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5973         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5974         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5975         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5976         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5977         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5978         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5979         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5980         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5981         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5982         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5983         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5984         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5985         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5986         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5987         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5988         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5989         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5990         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5991         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5992         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5993         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5994         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5995         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5996         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5997         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5998         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
5999         an error, still set result = __GCONV_ILLEGAL_INPUT.
6000         (BODY for TO_LOOP): Likewise.
6001         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
6002         STANDARD_FROM_LOOP_ERR_HANDLER.
6003         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6004         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
6005         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
6006         handling.
6007         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6008         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
6009         STANDARD_FROM_LOOP_ERR_HANDLER.
6010         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6011         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
6012         STANDARD_FROM_LOOP_ERR_HANDLER.
6013         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6014         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
6015         STANDARD_FROM_LOOP_ERR_HANDLER.
6016         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6017         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
6018         STANDARD_FROM_LOOP_ERR_HANDLER.
6019         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6020         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
6021         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
6022         handling.
6023         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
6024         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
6025         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
6026         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
6028 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6030         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
6031         labels in assembler instructions.
6033 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
6035         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
6036         not enough content is available.
6037         * libio/tst-eof.c: New file.
6038         * libio/Makefile (tests): Add tst-eof.
6040         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
6041         update atime.
6042         * libio/tst-atime.c: New file.
6043         * libio/Makefile (tests): Add tst-atime.
6045         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
6046         handling of overly long words.
6048 2002-06-25  Andreas Jaeger  <aj@suse.de>
6050         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
6051         to not use 32-bit pc relative relocations.
6052         (elf_machine_dynamic): Likewise.
6054 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
6056         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
6057         (__GETDENTS): Check for failed getdents64 syscall.
6058         * dirent/Makefile (tests): Add bug-readdir1.
6059         * dirent/bug-readdir1.c: New file.
6061 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
6063         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
6064         lookups.
6065         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
6066         code.  Print TLS modid and offset for modules containing PT_TLS
6067         segments.
6069 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
6071         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
6072         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
6073         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
6074         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
6076 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
6078         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
6079         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
6080         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
6081         * nss/getXXent_r.c (NEW, NEW1): Define.
6082         (NEW (REENTRANT_GETNAME)): Strong alias to
6083         INTERNAL (REENTRANT_GETNAME).
6084         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
6086 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
6088         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
6089         (_IO_file_jumps_mmap): Use it.
6090         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
6091         * libio/libioP.h: Remove _IO_wdefault_setbuf and
6092         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
6093         prototype.
6094         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
6095         (_IO_wfile_jumps_mmap): Don't use it anymore.
6096         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
6097         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
6098         _IO_wdefault_setbuf.
6099         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
6100         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
6101         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
6103 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
6105         * libio/Makefile (tests): Add tst-mmap-setvbuf.
6106         * libio/tst-mmap-setvbuf.c: New test.
6108 2002-06-21  Andreas Jaeger  <aj@suse.de>
6110         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
6112 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
6114         * include/unistd.h (__fork_internal): Remove.
6115         (__fork): Don't define to __fork_internal.
6116         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
6117         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
6118         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
6119         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
6120         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
6122 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
6124         * po/hr.po: New file.
6126 2002-06-11  Wolfram Gloger  <wg@malloc.de>
6128         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
6129         Reported by Michael Meissner <meissner@redhat.com>.
6131 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
6133         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
6134         Patch by Hans Boehm <hans_boehm@hp.com>.
6136 2002-06-20  Andreas Jaeger  <aj@suse.de>
6138         * math/libm-test.inc: Use exact values as input parameters,
6139         compute output parameters with 36 digits for 128-bit long doubles.
6140         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
6141         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
6142         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
6144 2002-06-13  Stephen L Moshier  <steve@moshier.net>
6146         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
6147         argument or result is subnormal.
6149 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
6151         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
6152         quotient.
6153         * sysdeps/i386/fpu/s_remquof.S: Likewise.
6154         * sysdeps/i386/fpu/s_remquol.S: Likewise.
6156         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
6158 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
6160         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
6161         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
6162         Reported by Peter A. Buhr.
6164 2002-06-15  Roland McGrath  <roland@frob.com>
6166         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
6167         warning.
6169         * sysdeps/mach/hurd/getcwd.c
6170         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
6172         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
6173         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
6175         * sysdeps/alpha/divrem.h: Use local label instead of global one for
6176         jump to local subroutine.
6178 2002-06-14  Roland McGrath  <roland@frob.com>
6180         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
6181         * sysdeps/mach/hurd/Makeconfig: ... here.
6183 2002-06-13  Andreas Schwab  <schwab@suse.de>
6185         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
6186         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6187         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
6189 2002-06-13  Roland McGrath  <roland@frob.com>
6191         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
6192         * hurd/hurdstartup.c (_hurd_startup): Likewise.
6193         Use intptr_t instead of int for argc in stack layout.
6194         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
6195         (_dl_init_first): Likewise.
6196         (_hurd_stack_setup): Likewise.
6197         (init1): Add a cast.
6198         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
6200         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
6201         argument to pfinet_siocgifconf RPC.
6203 2002-06-13  Andreas Schwab  <schwab@suse.de>
6205         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
6206         expansion order.
6208 2002-06-12  Roland McGrath  <roland@frob.com>
6210         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
6211         if already defined.
6212         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
6213         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
6215 2002-06-11  Roland McGrath  <roland@frob.com>
6217         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
6218         file on [!RTLD_STAT64].
6219         * sysdeps/mach/hurd/fxstat64.c: Likewise.
6221         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
6222         (__fdopen): Use INTUSE.
6223         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
6225         * stdio-common/tmpfile64.c: File removed.
6226         * sysdeps/generic/tmpfile64.c: New file.
6227         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
6228         if not already defined.
6229         (tmpfile): Use it in place of __GT_FILE.
6231         * include/unistd.h: Declare __chown_internal.
6233         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
6234         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
6236 2002-06-09  Roland McGrath  <roland@frob.com>
6238         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
6239         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
6240         value of HURD_INTERFACE_VERSION >= 20020609.
6241         * sysdeps/mach/hurd/configure: Regenerated.
6242         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
6243         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
6244         convert a struct stat64 into a struct stat and return 0 or -1
6245         with errno set to EOVERFLOW.
6246         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
6247         for struct statfs64 to struct statfs.
6248         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
6249         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
6250         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
6251         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
6252         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
6253         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
6254         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
6255         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
6256         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
6257         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
6258         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
6259         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
6260         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
6261         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
6262         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
6263         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
6264         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
6265         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
6266         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
6267         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
6268         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
6269         Use struct stat64 for io_stat argument.
6270         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
6271         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
6272         to io_seek.
6273         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
6274         * hurd/fd-write.c (_hurd_fd_write): Likewise.
6275         * hurd/hurd/fd.h: Update decls.
6276         * sysdeps/mach/hurd/getcwd.c
6277         (_hurd_canonicalize_directory_name_internal): Use ino64_t
6278         and struct dirent64.
6279         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
6280         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
6281         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
6282         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
6284 2002-06-08  Roland McGrath  <roland@frob.com>
6286         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
6287         instead of unsigned long int for __allocation and __size members.
6289 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
6291         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
6292         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
6293         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
6294         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
6296 2002-06-07  Roland McGrath  <roland@frob.com>
6298         * sysdeps/mach/hurd/bits/environments.h: File removed.
6300 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
6302         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
6303         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
6304         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
6305         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
6306         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
6307         (sendfile64): Likewise.
6308         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
6309         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
6310         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
6311         Likewise.
6312         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
6314         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
6315         already defined.
6317 2002-06-04  Bruno Haible  <bruno@clisp.org>
6319         * sysdeps/cris/stackinfo.h: New file.
6321         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
6322         to an integer type before performing bit operations on it.
6324 2002-06-05  Roland McGrath  <roland@frob.com>
6326         * sysdeps/generic/sendfile.c: Include <errno.h>.
6327         * sysdeps/generic/sendfile64.c: Likewise.
6329         * io/Makefile (routines): Add sendfile and sendfile64.
6330         (headers): Add sys/sendfile.h to the list.
6331         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
6332         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
6333         * io/sys/sendfile.h: ... here.
6334         * sysdeps/generic/sendfile.c: New file.
6335         * sysdeps/generic/sendfile64.c: New file.
6337         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
6338         Move sendfile, sendfile64 to ...
6339         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
6340         * sysdeps/mach/hurd/sendfile.c: New file.
6341         * sysdeps/mach/hurd/sendfile64.c: New file.
6343         * sysdeps/mach/nanosleep.c: New file.
6345 2002-06-04  Roland McGrath  <roland@frob.com>
6347         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
6348         * sysdeps/alpha/elf/configure: New file (generated).
6350 2002-06-02  Roland McGrath  <roland@frob.com>
6352         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
6354 2002-06-01  Roland McGrath  <roland@frob.com>
6356         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
6357         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
6359 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
6361         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
6362         Add nsmap.
6363         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
6364         Remove nstimes setting.
6365         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
6366         * resolv/res_send.c (res_nsend): Don't close unconditionally if
6367         there is mix of IPv6 and IPv4 nameservers.
6368         Use nsmap array to find free slots and preserve nameserver ordering.
6369         Fix RES_ROTATE.
6371 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
6373         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
6374         use this header with LFS.
6376         * po/sk.po: Update from translation team.
6378 2002-05-28  Andreas Schwab  <schwab@suse.de>
6380         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
6381         message when finding object of wrong class.
6383 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
6385         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
6386         Patch by <radu@netsoft.ro>.
6388 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
6390         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
6391         Add readahead.
6392         * sysdeps/unix/sysv/linux/readahead.c: New file.
6393         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
6394         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
6395         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
6396         Add sendfile64 alias to sendfile syscall.
6397         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6398         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6399         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6400         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
6401         syscall.
6403         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
6404         special section for PIC register loading.
6405         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
6407         * config.h.in: Define HAVE_HIDDEN.
6408         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
6410         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
6412 2002-05-28  Roland McGrath  <roland@frob.com>
6414         * sysdeps/mach/alpha/setfpucw.c: New file.
6416 2002-05-26  Roland McGrath  <roland@frob.com>
6418         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
6419         Use integer_t instead of int for IOC_VOID case.
6421 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
6423         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
6425 2002-05-26  Bruno Haible  <bruno@clisp.org>
6427         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
6428         end of the ISO-8859-7 from idx table.
6430 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
6432         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
6434 2002-05-24  David S. Miller  <davem@redhat.com>
6436         * string/bits/string2.h (memset): Do not try to optimize when
6437         not _STRING_ARCH_unaligned if GCC will do the right thing.
6439 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
6441         * posix/regex.c: Define `inline' as a macro into nothing for the
6442         compilers which lack the keyword.
6443         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
6444         for the compatibility of gawk.
6445         * posix/regcomp.c: Add fake implementation of isblank() for the
6446         environments which lack the function.
6447         Don't use free_charset() in case of non-i18n envs.
6448         (build_range_exp): Don't use i18n related code in case of non-i18n
6449         envs.
6450         (build_collating_symbol): Likewise.
6451         (build_equiv_class): Likewise.
6452         (build_charclass): Likewise.
6453         (re_compile_fastmap_iter): Likewise.
6454         (parse_bracket_exp): Likewise.
6455         (build_word_op): Likewise.
6456         (regfree): Don't use free_charset() in case of non-i18n envs.
6457         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
6458         re_token_type_t in case of non-i18n envs.
6459         Don't define re_charset_t in case of non-i18n envs.
6460         Change the type of wcs of re_string_t from wchar_t to wint_t,
6461         since we store also WEOF.
6462         * posix/regex_internal.c: (re_string_realloc_buffers): Change
6463         the type of wcs of re_string_t from wchar_t to wint_t.
6464         (re_string_reconstruct): Likewise.
6465         (create_ci_newstate): Don't use i18n related code in case of
6466         non-i18n envs.
6467         (create_cd_newstate): Likewise.
6469 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
6471         * iconv/loop.c: Fix typo.
6473 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
6475         * inet/ether_line.c (ether_line): Fix a typo causing only
6476         lower 4 bits of each ethernet address byte being assigned.
6477         Don't modify what line points to.
6478         * inet/tst-ether_aton.c (main): Add ether_line tests.
6480 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
6482         * manual/filesys.texi: Don't make readlink example leak memory
6483         when readlink fails.
6485 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
6487         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
6488         some more security checks.
6490 2002-05-17  David S. Miller  <davem@redhat.com>
6492         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
6494 2002-05-16  David S. Miller  <davem@redhat.com>
6496         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
6497         (elf_machine_dynamic): Use it to force PIC register to be loaded.
6498         (elf_machine_load_address): Likewise.
6499         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
6501         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
6502         is unaligned, do not forget to fully initialize %g1 magic value.
6504         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
6505         register definitions and provide 32-bit variants of structures
6506         during 64-bit builds.
6508         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
6509         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
6510         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
6511         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
6512         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
6513         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
6514         Do not clear implicit one bit here, it must be done post-rounding.
6515         Only pad to the left using left shift if value uses less than the
6516         available fractional bits.
6518 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6520         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
6521         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
6522         (shared-only-routines): Likewise.
6523         * sysdeps/powerpc/libgcc-compat.c: New file.
6524         * sysdeps/wordsize-32/cmpdi2.c: Removed.
6525         * sysdeps/wordsize-32/fixdfdi.c: Removed.
6526         * sysdeps/wordsize-32/fixsfdi.c: Removed.
6527         * sysdeps/wordsize-32/shdi3.c: Removed.
6529 2002-05-16  Bruno Haible  <bruno@clisp.org>
6531         * MakeTAGS (libc.pot): Don't sort the output.
6532         * po/header.pot: Update to match xgettext 0.11 output.
6534 2002-05-16  Bruno Haible  <bruno@clisp.org>
6536         * MakeTAGS (subdirs): Remove duplicates.
6538 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
6540         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
6541         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
6542         alias.
6544 2002-05-19  Andreas Jaeger  <aj@suse.de>
6546         * sysdeps/unix/sysv/linux/configure.in: Warn against an
6547         installation in /usr/local.
6549 2002-05-16  Bruno Haible  <bruno@clisp.org>
6551         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
6552         string as argument of #error.
6554 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
6556         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
6557         don't define static.  Remove old __realpath function.  TC1 of
6558         POSIX 2001 will allow the second parameter to be NULL.
6559         * stdlib/test-canon.c: Comment out test for NULL as second
6560         parameter of realpath.
6562         * time/offtime.c (__offtime): Set errno if overflow is detected.
6564         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
6565         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
6566         dl-brk and dl-sbrk.
6568         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
6569         (fdimf): Likewise.
6571 2002-05-15  Roland McGrath  <roland@frob.com>
6573         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
6575 2002-05-12  Bruno Haible  <bruno@clisp.org>
6577         * iconvdata/testdata/EUC-JISX0213: New file.
6578         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
6579         * iconvdata/testdata/SHIFT_JISX0213: New file.
6580         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
6581         * iconvdata/testdata/ISO-2022-JP-3: New file.
6582         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
6583         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
6584         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
6585         contains comments indicating precomposed characters.
6587 2002-04-21  Bruno Haible  <bruno@clisp.org>
6589         * iconvdata/iso-2022-jp-3.c: New file.
6590         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
6591         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
6592         (LDFLAGS-ISO-2022-JP-3.so): New variable.
6593         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
6594         (distribute): Add iso-2022-jp-3.c.
6596 2002-05-12  Bruno Haible  <bruno@clisp.org>
6598         * iconvdata/tst-table-to.c (main): Restore handling of
6599         transliterations, broken by last patch.
6601 2002-05-12  Bruno Haible  <bruno@clisp.org>
6603         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
6605 2002-05-12  Bruno Haible  <bruno@clisp.org>
6607         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
6608         when there is not enough room in the output buffer.
6609         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
6611 2002-04-20  Bruno Haible  <bruno@clisp.org>
6613         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
6614         macros.
6615         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6616         Also make this macro work if FROM_DIRECTION evaluates to 0.
6617         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6618         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
6619         of consume_incomplete.
6620         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6621         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
6622         4, not 8.
6623         * iconvdata/cp1258.c: Likewise.
6624         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6625         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
6626         not 2.
6627         * iconvdata/ibm933.c: Likewise.
6628         * iconvdata/ibm935.c: Likewise.
6629         * iconvdata/ibm937.c: Likewise.
6630         * iconvdata/ibm939.c: Likewise.
6631         * iconvdata/iso-2022-cn.c: Define
6632         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6633         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
6634         * iconvdata/iso-2022-cn-ext.c: Likewise.
6635         * iconvdata/iso-2022-jp.c: Define
6636         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6637         {MIN,MAX}_NEEDED_{FROM,TO}.
6638         * iconvdata/tcvn5712-1.c: Define
6639         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6640         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
6641         * iconvdata/euc-jisx0213.c: Define
6642         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6643         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
6644         * iconvdata/shift_jisx0213.c: Likewise.
6646 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6648         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
6649         shdi3, fixdfdi, fixsfdi in csu dir.
6650         (shared-only-routines): Likewise.
6651         * sysdeps/wordsize-32/cmpdi2.c: New file.
6652         * sysdeps/wordsize-32/shdi3.c: New file.
6653         * sysdeps/wordsize-32/fixdfdi.c: New file.
6654         * sysdeps/wordsize-32/fixsfdi.c: New file.
6655         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
6656         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
6657         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
6659         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
6660         Only use va_arg if the argument will be used [PR libc/3259].
6662 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
6664         * catgets/catgets.c (catopen): Free buffer if internal catalog
6665         open fails.
6667 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6669         * debug/xtrace.sh: Make more robust.  For realtime tracking use
6670         non-buffering methods.
6671         * debug/pcprofiledump.c: Implement -u option.
6672         Patch by Roger Luethi <rl@hellgate.ch>.
6674 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
6676         * include/netinet/in.h (bindresvport_internal): Add prototype.
6677         * include/rpc/auth.h  (authunix_create_internal,
6678         authunix_create_default_internal, authnone_create_internal,
6679         authdes_pk_create_internal): Add prototypes.
6680         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
6681         clntudp_create_internal, clntudp_bufcreate_internal,
6682         clntunix_create_internal): Add prototypes.
6683         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
6684         svc_getreq_internal, svc_getreq_common_internal,
6685         svc_getreqset_internal, svc_getreq_poll_internal,
6686         svc_register_internal, svc_unregister_internal,
6687         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
6688         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
6689         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
6690         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
6691         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
6692         * inet/rcmd.c (rcmd_af): Use __listen.
6693         (rresvport_af): Use __bind.
6694         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
6695         authunix_create, authunix_create_default, authnone_create,
6696         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
6697         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
6698         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
6699         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
6700         _authenticate, add INTDEF after such function definitions.
6701         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6702         __setsockopt, __getsockname instead of non-__ variants.
6703         * sunrpc/pmap_rmt.c: Likewise.
6704         * sunrpc/rtime.c: Likewise.
6705         * sunrpc/svc_udp.c: Likewise.
6706         * sunrpc/clnt_unix.c: Likewise.
6707         * sunrpc/svc_unix.c: Likewise.
6708         * sunrpc/bindrsvprt.c: Likewise.
6709         * sunrpc/svc_tcp.c: Likewise.
6710         * sunrpc/auth_none.c: Likewise.
6711         * sunrpc/clnt_raw.c: Likewise.
6712         * sunrpc/clnt_tcp.c: Likewise.
6713         * sunrpc/auth_unix.c: Likewise.
6714         * sunrpc/key_call.c: Likewise.
6715         * sunrpc/clnt_gen.c: Likewise.
6716         * sunrpc/pm_getmaps.c: Likewise.
6717         * sunrpc/clnt_simp.c: Likewise.
6718         * sunrpc/pmap_clnt.c: Likewise.
6719         * sunrpc/svc_run.c: Likewise.
6720         * sunrpc/svc.c: Likewise.
6721         * sunrpc/svc_simple.c: Likewise.
6722         * sunrpc/pm_getport.c: Likewise.
6723         * sunrpc/auth_des.c: Likewise.
6724         * sunrpc/svc_auth.c: Likewise.
6725         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6726         __register_frame_info_table_bases, __deregister_frame_info_bases):
6727         Add INTDEF.
6728         (__register_frame_info_bases_internal,
6729         __register_frame_info_table_bases_internal,
6730         __deregister_frame_info_bases_internal): Add prototypes.
6731         (__register_frame_info, __register_frame): Use INTUSE in call to
6732         __register_frame_info_bases.
6733         (__register_frame_info_table): Similarly.
6734         (__deregister_frame_info, __deregister_frame): Similarly.
6735         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6736         sendto as weak alias.
6737         * sysdeps/mach/hurd/sendto.c: Likewise.
6738         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6739         recvfrom as weak alias.
6740         * sysdeps/mach/hurd/recvfrom.c: Likewise.
6741         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6742         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6743         recvmsg as weak alias.
6744         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6745         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6746         sendmsg as weak alias.
6747         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6748         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6749         setsockopt, add setsockopt as weak alias.
6750         * sysdeps/mach/hurd/setsockopt.c: Likewise.
6751         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6752         weak alias.
6753         * sysdeps/mach/hurd/bind.c: Likewise.
6754         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6755         as weak alias.
6756         * sysdeps/mach/hurd/listen.c: Likewise.
6757         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6758         getsockname, add getsockname as weak alias.
6759         * sysdeps/mach/hurd/getsockname.c: Likewise.
6760         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6761         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6762         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6763         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6764         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6765         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6766         Add aliases.
6767         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6768         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6769         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6770         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6771         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6772         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6773         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6774         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6775         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6776         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6777         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6778         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6780 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6782         * locale/programs/localedef.h (show_archive_content): Add verbose
6783         argument.
6784         * locale/programs/localedef.c (main): Adjust caller.
6785         * locale/programs/locarchive.c (struct nameent, struct dataent): New
6786         types.
6787         (nameentcmp, dataentcmp): New functions.
6788         (xstrcmp): Remove.
6789         (show_archive_content): Print verbose listing with --list-archive -v.
6791 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6793         * locale/programs/locarchive.c (open_archive): Take extra argument
6794         readonly.  If true open file with O_RDONLY and don't create the
6795         archive if it doesn't exist.
6796         Adapt all callers.
6797         (close_archive): Don't do anything if fd element is -1.
6798         * locale/programs/localedef.h (open_archive): Adjust prototype.
6799         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6800         call.
6802         * malloc/malloc.c (__posix_memalign): Correct check for size of
6803         alignment value [PR libc/3444].
6805         * include/stdio.h: Remove references to old stdio implementation.
6807         * libio/Makefile (bug-ungetwc2-ENV): Define.
6809 2002-05-13  Roland McGrath  <roland@frob.com>
6811         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6813         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6815 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
6817         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6818         Allocate three, not two, more than LEN when appending '/.'.
6819         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
6820         if NAME ends with '/.' if it is shorter than 2 chars.
6822 2002-05-12  Roland McGrath  <roland@frob.com>
6824         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6825         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6827         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6828         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6830 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6832         * sysdeps/ia64/Makefile: Remove extra endif.
6833         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6835 2002-05-10  Andreas Schwab  <schwab@suse.de>
6837         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6839 2002-05-09  Andreas Jaeger  <aj@suse.de>
6841         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6842         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6843         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6845         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6846         * sysdeps/wordsize-64/glob.c: ...here.
6847         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6848         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6849         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6851 2002-05-08  Roland McGrath  <roland@frob.com>
6853         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6854         O_NOTRANS flag in "." lookup.
6856 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
6858         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6860 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
6862         * locale/duplocale.c (__duplocale): Update special members only
6863         when allocation succeeded.
6865 2002-05-03  Roland McGrath  <roland@frob.com>
6867         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6868         we can only build libc.so.0.3(GLIBC_2.2.6) now.
6870 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
6872         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6873         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6874         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6875         * sysdeps/ia64/ia64libgcc.S: New file.
6877 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
6879         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6881         * malloc/memusage.c: Distinguish anonymous mmap.
6883 2002-05-01  Roland McGrath  <roland@frob.com>
6885         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6886         and use INTDEF on it.
6887         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6889         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6891         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6893 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
6895         * malloc/memusage.c: Add support for tracking mmap & friends.
6896         * malloc/memusage.sh: Implement -m/--mmap option.
6898 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6900         * locale/programs/locarchive.c (create_archive): Add archivefname
6901         argument, create fname from it.
6902         (enlarge_archive): Honour output_prefix.
6903         (open_archive): Likewise.
6905 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6907         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6908         too many stpcpy macros.
6910 2002-04-26  Bruno Haible  <bruno@clisp.org>
6912         * locale/programs/ld-collate.c (collate_read): Cast first argument
6913         for "%.*s" to int.
6915 2002-04-26  Bruno Haible  <bruno@clisp.org>
6917         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6918         __dcngettext_internal): New declarations.
6919         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6920         attribute declarations.
6922 2002-04-30  Roland McGrath  <roland@frob.com>
6924         Removed old GNU stdio implementation; GNU libio is now the only option.
6925         * configure.in: Removed --enable-libio option and @stdio@ subst var.
6926         Define USE_IN_LIBIO unconditionally.
6927         * configure: Regenerated.
6928         * Makeconfig (stdio): Set to libio by default.
6929         * config.make.in (stdio): Variable removed.
6930         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6931         * sysdeps/unix/sysv/linux/configure: Regenerated.
6932         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6933         * sysdeps/mach/hurd/configure: Regenerated.
6934         * stdio/.cvsignore: File removed.
6935         * stdio/Makefile: File removed.
6936         * stdio/Versions: File removed.
6937         * stdio/__fbufsize.c: File removed.
6938         * stdio/__flbf.c: File removed.
6939         * stdio/__fpending.c: File removed.
6940         * stdio/__fpurge.c: File removed.
6941         * stdio/__freadable.c: File removed.
6942         * stdio/__freading.c: File removed.
6943         * stdio/__fsetlocking.c: File removed.
6944         * stdio/__fwritable.c: File removed.
6945         * stdio/__fwriting.c: File removed.
6946         * stdio/clearerr.c: File removed.
6947         * stdio/fclose.c: File removed.
6948         * stdio/fcloseall.c: File removed.
6949         * stdio/feof.c: File removed.
6950         * stdio/ferror.c: File removed.
6951         * stdio/fflush.c: File removed.
6952         * stdio/fgetc.c: File removed.
6953         * stdio/fgetpos.c: File removed.
6954         * stdio/fgets.c: File removed.
6955         * stdio/fileno.c: File removed.
6956         * stdio/fmemopen.c: File removed.
6957         * stdio/fopen.c: File removed.
6958         * stdio/fopncook.c: File removed.
6959         * stdio/fputc.c: File removed.
6960         * stdio/fputs.c: File removed.
6961         * stdio/fread.c: File removed.
6962         * stdio/freopen.c: File removed.
6963         * stdio/fseek.c: File removed.
6964         * stdio/fsetpos.c: File removed.
6965         * stdio/ftell.c: File removed.
6966         * stdio/fwrite.c: File removed.
6967         * stdio/getc.c: File removed.
6968         * stdio/getchar.c: File removed.
6969         * stdio/getdelim.c: File removed.
6970         * stdio/gets.c: File removed.
6971         * stdio/glue.c: File removed.
6972         * stdio/internals.c: File removed.
6973         * stdio/linewrap.c: File removed.
6974         * stdio/linewrap.h: File removed.
6975         * stdio/memstream.c: File removed.
6976         * stdio/newstream.c: File removed.
6977         * stdio/obstream.c: File removed.
6978         * stdio/putc.c: File removed.
6979         * stdio/putchar.c: File removed.
6980         * stdio/puts.c: File removed.
6981         * stdio/rewind.c: File removed.
6982         * stdio/setbuf.c: File removed.
6983         * stdio/setbuffer.c: File removed.
6984         * stdio/setlinebuf.c: File removed.
6985         * stdio/setvbuf.c: File removed.
6986         * stdio/stdio.h: File removed.
6987         * stdio/ungetc.c: File removed.
6988         * stdio/vasprintf.c: File removed.
6989         * stdio/vscanf.c: File removed.
6990         * stdio/vsnprintf.c: File removed.
6991         * stdio/vsprintf.c: File removed.
6992         * stdio/vsscanf.c: File removed.
6993         * sysdeps/generic/defs.c: File removed.
6994         * sysdeps/generic/fdopen.c: File removed.
6995         * sysdeps/generic/pipestream.c: File removed.
6996         * sysdeps/generic/stdio_init.c: File removed.
6997         * sysdeps/generic/sysd-stdio.c: File removed.
6998         * sysdeps/generic/vdprintf.c: File removed.
6999         * sysdeps/mach/hurd/defs.c: File removed.
7000         * sysdeps/mach/hurd/fdopen.c: File removed.
7001         * sysdeps/mach/hurd/pipestream.c: File removed.
7002         * sysdeps/mach/hurd/stdio_init.c: File removed.
7003         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
7004         * sysdeps/mach/hurd/vdprintf.c: File removed.
7005         * sysdeps/posix/defs.c: File removed.
7006         * sysdeps/posix/fdopen.c: File removed.
7007         * sysdeps/posix/pipestream.c: File removed.
7008         * sysdeps/posix/stdio_init.c: File removed.
7009         * sysdeps/posix/vdprintf.c: File removed.
7010         * sysdeps/unix/pipestream.c: File removed.
7011         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
7012         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
7013         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
7015 2002-04-29  Roland McGrath  <roland@frob.com>
7017         * include/libc-symbols.h (link_warning): Use `unused' attribute.
7019 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
7021         * sysdeps/generic/tls.h: Describe what must be defined.
7023         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
7024         glob_in_dir [PR libc/3385].
7025         * posix/globtest.sh: Add test case.
7027         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
7028         //TRANSLIT twice.
7030 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
7032         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
7033         _internal symbol handling.
7034         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
7036 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
7038         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
7039         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
7041 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
7043         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
7044         not _LIBC and RE_ENABLE_I18N.
7045         (build_range_exp): Implement for not _LIBC.
7046         (build_collating_symbol): Likewise.
7047         (parse_bracket_exp): Unify redundant error handlings.
7048         Don't erase mbcset for non matching list in multibyte envs.
7049         (build_word_op): Add '_' to matching list for \w operator.
7050         * posix/regex_internal.c (re_string_construct): Invoke
7051         build_upper_buffer in case of not RE_ENABLE_I18N.
7052         (re_string_reconstruct): Don't touch cur_state in case of not
7053         RE_ENABLE_I18N.
7054         * posix/regex_internal.h (attribute_hidden): New macro in case of
7055         not _LIBC.
7056         (re_charset_t): Define range_starts/ends in case of not _LIBC.
7057         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
7058         RE_ENABLE_I18N.
7059         (transit_state_mb): Likewise.
7060         (check_node_accept_bytes): Implement the code evaluating range
7061         expression in case of not _LIBC.
7062         (find_collation_sequence_value): Hide in case of not _LIBC.
7064 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
7066         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
7067         i386/semctl.c.
7068         (__old_semctl, __new_semctl): Only use va_arg if the argument will
7069         be used.
7071 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
7073         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
7075         * sysdeps/ia64/strncpy.S: Fix recovery code.
7076         Patch by David Mosberger <davidm@hpl.hp.com>.
7078 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
7080         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
7081         GLIBC_2.2.6.
7083 2002-04-14  Bruno Haible  <bruno@clisp.org>
7085         * posix/regex.c (re_max_failures): Add back symbol for binary
7086         compatibility.
7088 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
7090         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
7091         of buffer building functions.
7092         * posix/regex_internal.c (re_string_allocate): New function.
7093         (re_string_realloc_buffers): New function.
7094         (re_string_skip_chars): New function.
7095         (re_string_reconstruct): New function.
7096         (re_string_construct): Adapt it to new interface of buffer building
7097         functions.
7098         (re_string_construct_common): Likewise.
7099         (build_wcs_buffer): Likewise.
7100         (build_wcs_upper_buffer): Likewise.
7101         (build_upper_buffer): Likewise.
7102         (re_string_translate_buffer): Likewise.
7103         (re_string_context_at): Adapt it to variable length buffers.
7104         * posix/regex_internal.h (re_string_t): Add new fields to handle
7105         variable length buffers.
7106         (re_match_context_t): Likewise.
7107         * posix/regexec.c (re_search_internal): Adapt it to new interface
7108         of re_string_t and re_match_context_t.
7109         (acquire_init_state_context): Likewise.
7110         (check_matching): Likewise.
7111         (check_halt_state_context): Likewise.
7112         (proceed_next_node): Likewise.
7113         (set_regs): Likewise.
7114         (sift_states_backward): Likewise.
7115         (clean_state_log_if_need): Likewise.
7116         (sift_states_iter_mb): Likewise.
7117         (sift_states_iter_bkref): Likewise.
7118         (add_epsilon_backreference): Likewise.
7119         (transit_state): Likewise.
7120         (transit_state_sb): Likewise.
7121         (transit_state_mb): Likewise.
7122         (transit_state_bkref): Likewise.
7123         (transit_state_bkref_loop): Likewise.
7124         (check_node_accept): Likewise.
7125         (match_ctx_init): Likewise.
7126         (extend_buffers): New function.
7128 2002-04-21  Bruno Haible  <bruno@clisp.org>
7130         * iconvdata/tst-table.sh: For the second check, use the truncated
7131         GB18030 charmap table, like for the first check.
7133 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
7135         * elf/dl-load.c (open_verify): Correct __lseek parameters.
7136         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
7138 2002-04-23  H.J. Lu  <hjl@gnu.org>
7140         * include/math.h (isfinite): Fix a typo.
7142 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
7144         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
7145         which is created by the test suite.
7147 2002-04-20  Bruno Haible  <bruno@clisp.org>
7149         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
7150         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
7152 2002-04-20  Bruno Haible  <bruno@clisp.org>
7154         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
7155         to avoid gcc warning.
7157 2002-04-20  Bruno Haible  <bruno@clisp.org>
7159         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
7160         of data->__statep->__count.
7162 2002-04-20  Bruno Haible  <bruno@clisp.org>
7164         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
7165         tag characters.
7166         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
7168 2002-04-24  Roland McGrath  <roland@frob.com>
7170         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
7171         use END macro instead of our own .end directive.
7172         Use `callsys' insn mnemonic instead of `call_pal'.
7174         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
7176         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
7177         macro; we need this for Hurd.
7179         Log entry was missing for 2002/03/24 commit of rev 1.8,
7180         goes with 2002-03-17 changes.
7181         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
7182         (sysdep_routines): Append ioperm here.
7183         (sysdep_headers): Append sys/io.h here.
7185 2002-04-23  Roland McGrath  <roland@frob.com>
7187         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
7188         * sysdeps/mach/hurd/sendto.c: Likewise.
7189         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
7190         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
7191         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
7193 2002-04-22  Roland McGrath  <roland@frob.com>
7195         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
7196         failure from i386_io_perm_* RPCs to ENOSYS.
7198 2002-04-22  Andreas Jaeger  <aj@suse.de>
7200         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
7202         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
7204         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
7205         register instead of destroying %rbx.
7207 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
7209         * string/string.h: Declare strerror_r also for XPG6.
7211 2002-04-19  Roland McGrath  <roland@frob.com>
7213         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
7215 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
7217         * Makefile: Add handling of xtests and xcheck targets.
7218         * MakeTAGS: Likewise.
7219         * Makeconfig: Likewise.
7220         * Makerules: Likewise.
7221         * Rules: Likewise.
7222         * manual/Makefile: Likewise.
7223         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
7224         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
7226 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
7228         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
7229         authnone_private_s.
7230         * sunrpc/auth_none.c: Include bits/libc-lock.h.
7231         Delete #ifdef _RPC_THREAD_SAFE_ block.
7232         (authnone_private): Make a struct, not a pointer to struct.
7233         (authnone_private_guard): New once-control variable.
7234         (authnone_create_once): New function, split out of
7235         authnone_create.  No need to allocate memory.
7236         (authnone_create): Just call authnone_create_once via
7237         __libc_once, then return &authnone_private->no_client.
7238         (authnone_marshal): Access private data via CLIENT argument,
7239         not authnone_private pointer.
7240         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
7241         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
7242         authnone_private_s.
7244 2002-04-12  H.J. Lu  <hjl@gnu.org>
7246         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
7248 2002-04-18  Bruno Haible  <bruno@clisp.org>
7250         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
7251         FROM_DIRECTION): Make the FROM direction stateless.
7252         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
7253         FROM_DIRECTION): Likewise.
7255 2002-04-15  Bruno Haible  <bruno@clisp.org>
7257         * iconvdata/JISX0213.TXT: New file.
7258         * iconvdata/jisx0213.h: New file.
7259         * iconvdata/jisx0213.c: New file.
7260         * iconvdata/euc-jisx0213.c: New file.
7261         * iconvdata/shift_jisx0213.c: New file.
7262         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
7263         * iconvdata/EUC-JISX0213.precomposed: New file.
7264         * iconvdata/SHIFT_JISX0213.precomposed: New file.
7265         * iconvdata/SHIFT_JISX0213.irreversible: New file.
7266         * iconvdata/tst-table-to.c (main): Make it work for encodings for
7267         which the "to" direction is stateful.
7268         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
7269         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
7270         SHIFT_JISX0213.
7271         (libJISX0213-routines): New variable.
7272         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
7273         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
7274         (LDFLAGS-libJISX0213.so): New variable.
7275         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
7276         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
7277         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
7279 2002-04-15  Bruno Haible  <bruno@clisp.org>
7281         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
7282         uint32_t.  Update to Unicode 3.2.
7283         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
7284         (BODY for TO_LOOP): Handle the ASCII range specially.
7285         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
7286         * iconvdata/testdata/BIG5HKSCS: Remove a character.
7287         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
7289 2002-04-15  Bruno Haible  <bruno@clisp.org>
7291         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
7292         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
7294 2002-04-15  Bruno Haible  <bruno@clisp.org>
7296         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
7297         (ucs4_to_cns11643): Update.
7298         * iconvdata/cns11643.c: Update to Unicode 3.2.
7299         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
7300         __cns11643_from_ucs4p2_tab): Regenerated.
7301         (__cns11643_from_ucs4p2c_tab): New array.
7302         * iconvdata/cvs11643l1.c: Update comments.
7303         * iconvdata/EUC-TW.irreversible: Remove two entries.
7305 2002-04-15  Bruno Haible  <bruno@clisp.org>
7307         * locale/C-translit.h.in: Update to Unicode 3.2.
7308         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
7309         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
7311 2002-04-15  Bruno Haible  <bruno@clisp.org>
7313         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
7314         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
7316 2002-04-15  Bruno Haible  <bruno@clisp.org>
7318         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
7319         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
7320         always one byte, not 0 bytes in some cases and 2 bytes in others.
7322         * iconvdata/tst-table-from.c (main): Correct the usage message.
7324 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
7326         * posix/regcomp.c (parse_expression): Fix incorrect error code.
7327         (parse_dup_op): Fix error handling like "a{}".
7328         (parse_bracket_exp): Add error handling.
7329         (fetch_number): Add error handling for "a{<very_large_number>}".
7331 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
7333         * posix/regcomp.c (parse_bracket_symbol): Add error handling
7334         in case that the symbol name is too long.
7335         (build_charclass): Handle [:lower:]/[:uppper:] correctly
7336         in case of REG_ICASE.
7338 2002-04-19  Andreas Jaeger  <aj@suse.de>
7340         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
7341         <hartvige@mips.com>.
7343 2002-04-15  H.J. Lu  <hjl@gnu.org>
7345         * include/math.h (__finitel_internal): Declare only if
7346         __NO_LONG_DOUBLE_MATH is not defined.
7347         (__isinfl_internal): Likewise.
7348         (__isnanl_internal): Likewise.
7350         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
7351         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
7352         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
7353         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
7354         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7355         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
7356         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7358         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
7359         __fcntl_internal.
7361         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
7362         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
7364 2002-04-15  Bruno Haible  <bruno@clisp.org>
7366         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
7367         (BODY for TO_LOOP): Likewise.
7368         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
7369         * iconvdata/tst-table.sh: Add support for encodings which contain
7370         precomposed Unicode characters, known to the iconv converter in both
7371         directions but not listed in the charmap.
7372         * iconvdata/IBM856.irreversible: New file.
7373         * iconvdata/IBM922.irreversible: New file.
7374         * iconvdata/IBM1132.irreversible: New file.
7375         * iconvdata/IBM1133.irreversible: New file.
7376         * iconvdata/IBM1160.irreversible: New file.
7377         * iconvdata/IBM1161.irreversible: New file.
7378         * iconvdata/IBM1163.irreversible: New file.
7379         * iconvdata/IBM1164.irreversible: New file.
7380         * iconvdata/ARMSCII-8.irreversible: New file.
7381         * iconvdata/TCVN5712-1.precomposed: New file.
7382         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
7383         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
7384         ARMSCII-8, TCVN5712-1.
7385         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
7386         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
7387         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
7388         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
7390 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
7392         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
7393         for EVENING69.  Include offsets in TZ environment variable.
7395 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
7397         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
7398         avoid compiler warnings.
7400         * locale/programs/localedef.c (main): Always call
7401         construct_output_path.
7403         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
7405         * locale/programs/locfile.c (to_archive): New variable.  To collect
7406         data which has to be added to the locale archive.
7407         (write_all_categories): Take new third parameter with locale name.
7408         Unless no_archive flag set add new locale data to the archive
7409         (write_locale_data): Unless no-archive flag set store generated data
7410         in to_archive data structure instead of generation output file.
7411         Add new parameter with locale category index.
7412         * locale/programs/locfile.h: Add new parameters in declaractions of
7413         write_all_categories and write_locale_data.
7414         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
7415         --add-to-archive, and --delete-from-archive options.  Pass extra
7416         parameter to write_all_categories.
7417         * locale/programs/localedef.h: Add prototypes for functions in
7418         locarchive.c.
7419         * locale/locarchive.h: New file.
7420         * locale/programs/locarchive.c: New file.
7421         * locale/Makefile (distribute): Add programs/locarchive.c and
7422         locarchive.h.
7423         (localedef-modules): Add md5 and locarchive.
7424         Add vpath to crypt subdir for md5.c.
7426         * locale/programs/ld-address.c: Pass locale category ID as new second
7427         parameter to write_locale_data.
7428         * locale/programs/ld-collate.c: Likewise.
7429         * locale/programs/ld-ctype.c: Likewise.
7430         * locale/programs/ld-identification.c: Likewise.
7431         * locale/programs/ld-measurement.c: Likewise.
7432         * locale/programs/ld-messages.c: Likewise.
7433         * locale/programs/ld-monetary.c: Likewise.
7434         * locale/programs/ld-name.c: Likewise.
7435         * locale/programs/ld-numeric.c: Likewise.
7436         * locale/programs/ld-paper.c: Likewise.
7437         * locale/programs/ld-telephone.c: Likewise.
7438         * locale/programs/ld-time.c: Likewise.
7440         * locale/simple-hash.c: Move compute_hashval function from here...
7441         * locale/hashval.h: ...to here.  New file.
7442         * locale/simple-hash.h: Add prototype for compute_hashval.
7444         * include/libintl.h: Minor cleanups.
7446 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
7448         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
7450 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
7452         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
7454 2002-04-14  Bruno Haible  <bruno@clisp.org>
7456         * locale/programs/charmap.c (charmap_read): Don't access result if
7457         result == NULL.
7459 2002-02-17  Andreas Schwab  <schwab@suse.de>
7461         * elf/reldep7.c: New file.
7462         * elf/reldep7mod1.c: New file.
7463         * elf/reldep7mod2.c: New file.
7464         * elf/Makefile: Add rules to build and run reldep7.
7466 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
7468         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
7469         the end of the function.  Pass original flags to recursive call if
7470         add_dependency failed.
7471         (_dl_lookup_versioned_symbol): Likewise.
7473 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
7475         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
7476         early, but check whether it overflowed afterwards.
7477         * time/tst-mktime.c (main): Add new tests.
7479 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
7481         * debug/xtrace.sh: Fix program name in help message.
7482         Patch by Roger Luethi <rl@hellgate.ch>.
7484         * include/sys/stat.h: Add prototypes for __lxstat_internal and
7485         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
7486         NOT_IN_libc.
7487         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
7488         * sysdeps/mach/hurd/lxstat.c: Likewise.
7489         * sysdeps/unix/common/lxstat.c: Likewise.
7490         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
7491         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
7492         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
7493         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
7494         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
7495         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
7496         * sysdeps/mach/hurd/lxstat64.c: Likewise.
7497         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
7498         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
7500         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
7501         prototypes.  Add __mbrlen and __mbrtowc macros.
7502         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
7503         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
7505         * include/unistd.h: Add prototype for __write_internal and add
7506         __libc_write macro is SHARED.
7507         * sysdeps/generic/write.c: Use INTDEF for __write.
7508         * sysdeps/mach/hurd/write.c: Likewise.
7509         * sysdeps/unix/sysv/aix/write.c: Likewise.
7510         * sysdeps/unix/syscalls.list: Add __libc_write alias.
7512         * assert/assert.c: Replace STR_N_SIZE with something usable in
7513         macro arguments.
7514         * assert/assert-perr.c: Likewise.
7516         * include/sys/socket.h: Declare __libc_sa_len_internal and define
7517         SA_LEN macro to use it if not NOT_IN_libc.
7518         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
7520         * include/fcntl.h: Declare __open_internal and define __open and
7521         __libc_open macros if not NOT_IN_libc.
7522         * sysdeps/generic/open.c: Use INTDEF for __open.
7523         * sysdeps/mach/hurd/open.c: Likewise.
7524         * sysdeps/unix/sysv/aix/open.c: Likewise.
7525         * sysdeps/unix/syscalls.list: Add __open_internal alias.
7527         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
7528         has correct number.
7530         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
7531         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
7532         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7533         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7535         * include/wctype.h: Declare __iswalpha_l_internal,
7536         __iswdigit_l_internal, __iswspace_l_internal,
7537         __iswxdigit_l_internal, and __iswctype_internal.  Define
7538         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
7539         __iswxdigit_l macros if not NOT_IN_libc.
7540         * wctype/iswctype.c: Use INTDEF for __iswctype.
7541         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
7543         * include/math.h: Declare __isinf_internal, __isinfl_internal,
7544         __isnan_internal, and __isnanl_internal.
7545         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
7546         __isnan, and __isnanl.
7547         * stdio-common/printf_size.c: Likewise.
7548         * sysdeps/generic/printf_fphex.c: Likewise.
7549         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
7550         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7551         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
7552         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
7553         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
7554         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7555         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
7556         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7557         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
7558         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7559         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
7560         * sysdeps/m68k/s_isinfl.c: Likewise.
7561         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
7562         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
7564         * include/sys/time.h: Declare __gettimeofday_internal and define
7565         __gettimeofday macro if not NOT_IN_libc.
7566         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
7567         * sysdeps/mach/gettimeofday.c: Likewise.
7568         * sysdeps/posix/gettimeofday.c: Likewise.
7569         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
7570         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
7571         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
7572         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
7574         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
7575         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
7576         Remove __lstat and __fstat inline functions.
7577         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
7578         * sysdeps/mach/hurd/fxstat.c: Likewise.
7579         * sysdeps/unix/fxstat.c: Likewise.
7580         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
7581         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
7582         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
7583         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
7584         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
7585         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
7586         * sysdeps/mach/hurd/fxstat64.c: Likewise.
7587         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
7588         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
7590         * include/unistd.h: Declare __getpid_internal and define
7591         __getpid macro if not NOT_IN_libc.
7592         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
7593         * sysdeps/generic/getpid.c: Likewise.
7594         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
7595         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
7597         * include/unistd.h: Declare __getpgid_internal and define
7598         __getpgid macro if not NOT_IN_libc.
7599         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
7600         * sysdeps/mach/hurd/getpgid.c: Likewise.
7601         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
7602         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
7603         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
7604         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
7606         * include/unistd.h: Declare __getpagesize_internal and define
7607         __getpagesize macro if not NOT_IN_libc.
7608         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
7609         __getpagesize.
7610         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
7611         * sysdeps/mach/getpagesize.c: Likewise.
7612         * sysdeps/posix/getpagesize.c: Likewise.
7613         * sysdeps/unix/getpagesize.c: Likewise.
7614         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
7615         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7616         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
7617         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
7619 2002-04-13  Andreas Jaeger  <aj@suse.de>
7621         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
7622         as clobber to reduce register pressure.
7623         (__strpbrk_cg): Likewise.
7624         (__mempcpy_by4): Likewise.
7625         (__strstr_cg): Likewise.
7626         Add prototype for __memrchr.
7628 2002-04-13  Andreas Schwab  <schwab@suse.de>
7630         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
7631         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
7632         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
7634 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
7636         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
7637         check whether the caller prefers getting the most recent version of
7638         a symbol of the earliest version.
7639         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
7640         _dl_do_lookup to also take the new parameter and pass it on.
7641         Change 'explicit' parameter of _dl_lookup_symbol and
7642         _dl_lookup_versioned_symbol to flags.  Adjust tests.
7643         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7644         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
7645         _dl_lookup_versioned_symbol.
7646         * elf/dl-reloc.c: Likewise.
7647         * elf/dl-runtime.c: Likewise.
7648         * elf/dl-sym.c: Likewise.
7649         * sysdeps/mips/dl-machine.h: Likewise.
7651 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7653         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
7654         in a token.
7655         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
7657 2002-04-10  Andreas Jaeger  <aj@suse.de>
7659         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
7661         * include/argz.h: Remove extra char from last patch.
7663 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
7665         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
7666         * sysdeps/unix/sysv/aix/chown.c: Likewise.
7667         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
7668         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
7669         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7670         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
7671         __chown_internal.
7672         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
7674         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
7675         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
7676         * intl/ngettext.c: Likewise.
7678         * include/sys/socket.h: Declare __connect_internal and define
7679         __connect macro if not NOT_IN_libc.
7680         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
7681         * sysdeps/unix/sysv/aix/connect.c: Likewise.
7682         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
7684         * include/unistd.h: Declare __close_internal and define __close macro
7685         if not NOT_IN_libc.
7686         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
7687         WJUMP3): Add extra parenthesis to avoid expanding element names with
7688         macors like __close.
7689         * sysdeps/unix/syscalls.list: Add __close_internal alias.
7691         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
7692         if not NOT_IN_libc.
7693         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
7694         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
7695         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
7697         * include/unistd.h: Declare __fork_internal and define __fork macro
7698         if not NOT_IN_libc.
7699         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
7700         * sysdeps/unix/sysv/aix/fork.c: Likewise.
7701         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7703         * include/stdio_ext.h: Declare __fsetlocking_internal and define
7704         __fsetlocking macro to use it if not NOT_IN_libc.
7705         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7707         * libio/__fbufsize.c: Correct copyright.
7708         * libio/__flbf.c: Likewise.
7709         * libio/__fpending.c: Likewise.
7710         * libio/__fpurge.c: Likewise.
7711         * libio/__freadable.c: Likewise.
7712         * libio/__freading.c: Likewise.
7713         * libio/__fsetlocking.c: Likewise.
7714         * libio/__fwritable.c: Likewise.
7715         * libio/__fwriting.c: Likewise.
7717         * include/stdio.h: Declare __asprintf_internal and define __asprintf
7718         macro to use it if not NOT_IN_libc.
7719         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7721         * include/mntent.h: Declare __setmntent_internal,
7722         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
7723         __getmntent_r, and __endmntent macros to use these functions if not
7724         NOT_IN_libc.
7725         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7726         __endmntent.
7728         * include/math.h: Declare __finite_internal, __finitef_internal, and
7729         __finitel_internal.  Redefine isfinite macro if in libc or libm using
7730         these functions.
7731         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7732         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7733         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7734         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7735         * sysdeps/i386/fpu/s_finitef.S: Likewise.
7736         * sysdeps/i386/fpu/s_finitel.S: Likewise.
7737         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7738         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7739         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7740         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7742         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
7743         to use this function if not NOT_IN_libc.
7744         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7745         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7746         * sysdeps/mach/hurd/fcntl.c: Likewise.
7747         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7748         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7750         * include/argz.h: Declare __argz_count_internal and
7751         __argz_stringify_internal.
7752         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7753         __argz_stringify.
7754         * string/argz-count.c: Use INTDEF for __argz_count.
7755         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7757         * include/stdlib.h: Declare __cxa_atexit_internal and define
7758         __cxa_atexit macro if not NOT_IN_libc.
7759         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7760         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7762         * assert/assert.c: Use INTDEF for __assert_fail.
7763         * assert/__assert.c: Use INTUSE for call to __assert_fail.
7764         * include/assert.h: Declare __assert_fail_internal.
7766         * extra-lib.mk: Mark assignment to lib with override.
7768 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7770         * Makerules: Use cppflags-iterator.mk to add defines for all test
7771         source files.
7773 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
7775         * elf/elf.h: Define R_SH_TLS_xxx macros.
7776         * elf/rtld.c: Remove an extra parenthesis.
7777         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7778         TLS_GD macros.
7779         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7780         * sysdeps/sh/dl-lookupcfg.h: New file.
7781         * sysdeps/sh/dl-tls.h: New file.
7782         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7783         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7784         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7785         R_SH_TLS_TPOFF32 relocations.
7787 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7789         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7790         of NOT_IN_LIBC.
7791         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7792         * include/stdlib.h: Likewise.
7794 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
7796         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7797         instead of _RTLD_LOCAL.
7798         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7799         * include/unistd.h: Likewise.
7800         * sysdeps/generic/ldsodefs.h: Likewise.
7802         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7803         if in libc or ld.so.
7805 2002-04-08  Andreas Jaeger  <aj@suse.de>
7807         * elf/cache.c (print_entry): Support x86-64.
7809 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7811         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7812         with one accessing the locale data structures directly.
7813         * stdio-common/printf-prs.c: Include localeinfo.h for new
7814         MB_CUR_MAX definition.
7816         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7817         is the name of the source file without extension.
7818         * Makefile (distribute): Add cppflags-iterator.mk.
7819         * cppflags-iterator.mk: New file.
7820         * extra-lib.mk: For the sources of the library run
7821         cppflags-iterator.mk.
7823         * include/libintl.h: Declare __dcgettext_internal and
7824         _libc_intl_domainname_internal.  Define __dcgettext using these
7825         two symbols if used in libc itself.
7826         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7827         _libc_intl_domainname_internal.
7828         * argp/argp-parse.c: Likewise.
7829         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7830         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7831         * intl/gettext.c: Likewise.
7832         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7833         alias.
7834         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7835         __dcgettext.
7836         * posix/regex_internal.c (gettext): Likewise.
7838 2002-04-08  Andreas Jaeger  <aj@suse.de>
7840         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7842         * sysdeps/x86_64/fpu/s_llrint.S: New file.
7843         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7844         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7845         * sysdeps/x86_64/fpu/s_lrint.S: New file.
7846         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7847         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7849 2002-04-08  Roland McGrath  <roland@frob.com>
7851         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7852         widening __hurd_fail value.
7854 2002-04-07  Roland McGrath  <roland@frob.com>
7856         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7857         <mach/machine/alpha_instruction.h>.
7858         (_hurd_setup_sighandler): Take proper arguments for current decls.
7859         Update code to use _hurdsig_catch_fault.
7860         Use `callsys' instruction instead of `call_pal'.
7861         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7863         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7864         (ALIGN, at, AT, fp): New macros.
7866 2002-04-06  Roland McGrath  <roland@frob.com>
7868         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7870         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7871         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7873         * sysdeps/mach/hurd/bind.c: Use prototype definition.
7874         * sysdeps/mach/hurd/connect.c: Likewise.
7875         * sysdeps/mach/hurd/getsockopt.c: Likewise.
7876         * sysdeps/mach/hurd/setsockopt.c: Likewise.
7878         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7879         __msg_sig_post RPC.
7881         * hurd/catch-exc.c: Use integer_t instead of int.
7882         * hurd/hurdfault.c: Likewise.
7884         * sysdeps/mach/hurd/alpha/exc2signal.c
7885         (_hurd_exception2signal): Rewritten.
7886         * sysdeps/mach/hurd/alpha/longjmp-ts.c
7887         (_hurd_longjmp_thread_state): Rewritten.
7889 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
7891         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7892         DB_LOOKUP_FCT prototype.
7893         * nss/getXXent_r.c: Likewise.
7894         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7895         * inet/getaliasname_r.c: Likewise.
7896         * inet/getnetbyad_r.c: Likewise.
7897         * inet/getnetbynm_r.c: Likewise.
7898         * inet/getnetent_r.c: Likewise.
7899         * inet/getproto_r.c: Likewise.
7900         * inet/getprtent_r.c: Likewise.
7901         * inet/getprtname_r.c: Likewise.
7902         * inet/getrpcbyname_r.c: Likewise.
7903         * inet/getrpcbynumber_r.c: Likewise.
7904         * inet/getrpcent_r.c: Likewise.
7905         * inet/getservent_r.c: Likewise.
7906         * inet/getsrvbynm_r.c: Likewise.
7907         * inet/getsrvbypt_r.c: Likewise.
7908         * shadow/getspent_r.c: Likewise.
7909         * shadow/getspnam_r.c: Likewise.
7911         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7913         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7914         Use i686-friendly PIC code.
7915         * sysdeps/i386/elf/setjmp.S: Likewise.
7917         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7919         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7920         list.
7921         * elf/Versions: Remove it here.
7923 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
7925         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7926         direction.  Reported by H . J . Lu <hjl@lucon.org>.
7928 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7930         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7931         test just before the test runs.
7932         * intl/tst-translit.sh: Likewise.
7933         * intl/tst-codeset.sh: Likewise.
7935         * timezone/zic.c: Update from tzcode2002c.
7936         * timezone/asia: Update from tzdata2002c.
7937         * timezone/backward: Likewise.
7938         * timezone/europe: Likewise.
7939         * timezone/northamerica: Likewise.
7940         * timezone/northamerica: Likewise.
7941         * timezone/northamerica: Likewise.
7942         * timezone/southamerica: Likewise.
7943         * timezone/zone.tab: Likewise.
7945 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
7947         * sysdeps/generic/brk.c (__curbrk): Declare.
7948         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7949         * sysdeps/generic/dl-sbrk.c: Likewise.
7950         * sysdeps/unix/arm/dl-brk.S: New file.
7951         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7952         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7953         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7954         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7955         * sysdeps/unix/i386/dl-brk.S: New file.
7956         * sysdeps/unix/mips/dl-brk.S: New file.
7957         * sysdeps/unix/sparc/dl-brk.S: New file.
7958         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7959         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7960         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7961         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7963 2002-04-03  Andreas Schwab  <schwab@suse.de>
7965         * Makefile (headers): Add gnu/lib-names.h here instead of
7966         install-others.
7967         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7968         installation rule.
7969         (install-headers): Add dependency on install-headers-nosubdir.
7970         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7971         instead of install-others.
7972         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7973         installation rule.
7975 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7977         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7978         Reported by Sam Roberts <sroberts@uniserve.com>.
7980 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7982         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7983         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7984         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7985         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7987 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
7989         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7990         (RTLD_START): Ditto.
7991         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7992         dependency violation.
7994 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7996         * time/mktime.c (__mktime_internal): Move check for year < 70 below
7997         all variable declarations.
7999 2002-04-04  Andreas Schwab  <schwab@suse.de>
8001         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
8003 2002-04-04  Andreas Jaeger  <aj@suse.de>
8005         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
8006         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
8008         * sysdeps/x86_64/fpu/s_fabs.c: New file.
8009         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
8010         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
8012         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
8014         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
8016         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
8017         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
8019         * configure.in: Handle all mips entries the same.
8021         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
8022         * sysdeps/mips/mips3/*: Likewise.
8023         * sysdeps/mips/p40/bits/endian.h: Likewise.
8025 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
8027         * misc/dirname.c (dirname): Ignore trailing slashes at end of
8028         non-null result [PR libc/2600].
8030         * misc/tst-dirname.c: Add more tests.
8032 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
8034         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
8035         define a code_set_name provide one based on the filename.
8037         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
8039 2001-12-28  Andreas Jaeger  <aj@suse.de>
8041         * time/mktime.c (__mktime_internal): Check for year < 70
8042         [PR libc/2738].
8044 2002-04-03  Andreas Jaeger  <aj@suse.de>
8046         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
8047         shmat.
8048         Reported by Andi Kleen <ak@suse.de>.
8050 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
8052         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
8053         * sysdeps/generic/w_lgammaf.c: Likewise.
8054         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
8056         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
8057         Adjust for new output format of the backtrace functions.
8059         * misc/syslog.c (vsyslog): Only use cleanup handler if
8060         _LIBC_REENTRANT is defined [PR libc/2924].
8062         * libio/Makefile (tests): Add bug-ungetwc2.
8063         * libio/bug-ungetwc2.c: New file.
8065         * manual/install.texi: Typographical and grammatical cleanup.
8066         Patch by Dennis Grace <dgrace@us.ibm.com>.
8068         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
8069         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
8071         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
8072         always "&".  Adjust callers.
8073         Add "_" prefix to several generated definitions.
8074         Patch by paul@serice.net [PR libc/3158].
8076 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8078         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
8079         size of _dl_arm_cap_flags.
8080         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
8082         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
8083         Define as 8.
8085 2002-03-22  H.J. Lu  <hjl@gnu.org>
8087         * scripts/firstversions.awk: Check the first version.
8089 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8091         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
8092         dependencies must be stable to work correctly.
8093         Reported by martin.lubich@datacon.at.
8095         * libio/bug-ungetwc1.c: New file.
8096         * libio/Makefile (tests): Add bug-ungetwc1.
8098         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
8099         if stream was last used for writing.
8101         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
8102         number [PR libc/3111].
8104         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
8105         to ...
8106         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
8108 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
8110         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
8111         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
8112         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
8113         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
8114         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
8116 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
8118         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
8119         dynamic tags.
8121 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8123         * sysdeps/i386/fpu/s_fabs.S: New file.
8124         * sysdeps/i386/fpu/s_fabsf.S: New file.
8125         * sysdeps/i386/fpu/s_fabsl.S: New file.
8126         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
8127         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
8128         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
8130 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8132         * rt/tst-shm.c (do_test): Add one more test for size of shared
8133         memory object.
8135 2002-03-29  Wolfram Gloger  <wg@malloc.de>
8137         * malloc/malloc.c: Add short description and prototypes for
8138         malloc_get_state, malloc_set_state and posix_memalign, for
8139         consistency and to avoid warnings with -Wstrict-prototypes.
8140         Reported by Andreas Jaeger <aj@suse.de>.
8142 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8144         * po/gl.po: Update from translation team.
8146 2002-03-31  Roland McGrath  <roland@frob.com>
8148         * hurd/hurdselect.c (_hurd_select): Fix
8149         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
8150         Use a union rather than casts to compare mach_msg_type_t as int.
8152 2002-03-25  Roland McGrath  <roland@frob.com>
8154         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
8155         check off the end of NAME when it's shorter than 2 chars.
8156         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
8158 2002-03-17  Roland McGrath  <roland@frob.com>
8160         * sysdeps/mach/hurd/i386/sys/io.h: New file.
8161         * sysdeps/mach/hurd/i386/ioperm.c: New file.
8162         * sysdeps/mach/hurd/i386/Dist: Add them.
8163         * sysdeps/mach/hurd/i386/Versions
8164         (libc: GLIBC_2.2.6): New set, add ioperm.
8165         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
8166         (mach_interface_list): Check for mach_i386.defs.
8167         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
8168         * sysdeps/mach/configure: Regenerated.
8170 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
8172         * po/fr.po: Update from translation team.
8174 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8176         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
8177         getpriority from syscalls list.
8179 2002-03-28  Andreas Jaeger  <aj@suse.de>
8181         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
8182         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
8183         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
8184         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
8186 2002-03-27  Andreas Jaeger  <aj@suse.de>
8188         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8189         sigcontext): Follow further kernel change.
8191         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
8192         kernel change.
8194         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
8195         Change for struct sigcontext change.
8197         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
8198         Follow changes in struct sigcontext.
8200         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
8201         sysycall, use wrapper instead.
8203 2002-03-26  Andreas Jaeger  <aj@suse.de>
8205         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
8206         read and write accesses as detailed as possible.
8207         (__memcpy_by2): Likewise.
8208         (__memcpy_g): Likewise.
8209         (memmove): Likewise.
8210         (memcmp): Likewise.
8211         (__memset_ccn_by4): Likewise.
8212         (__memset_ccn_by2): Likewise.
8213         (__memset_gcn_by4): Likewise.
8214         (__memset_gcn_by2): Likewise.
8215         (memchr): Likewise.
8216         (__memrchr): Likewise.
8217         (rawmemchr): Likewise.
8218         (__strlen_g): Likewise.
8219         (__strcpy_g): Likewise.
8220         (__mempcpy_by4): Likewise.
8221         (__mempcpy_by2): Likewise.
8222         (__mempcpy_byn): Likewise.
8223         (__stpcpy_g): Likewise.
8224         (__strncpy_by4): Likewise.
8225         (__strncpy_by2): Likewise.
8226         (__strncpy_byn): Likewise.
8227         (__strncpy_gg): Likewise.
8228         (__strcat_c): Likewise.
8229         (__strcat_g): Likewise.
8230         (__strncat_g): Likewise.
8231         (__strcmp_gg): Likewise.
8232         (__strncmp_g): Likewise.
8233         (__strchr_c): Likewise.
8234         (__strchr_g): Likewise.
8235         (__strchrnul_c): Likewise.
8236         (__strchrnul_g): Likewise.
8237         (__strrchr_c): Likewise.
8238         (__strrchr_g): Likewise.
8239         (__strrchr_c): Likewise.
8240         (__strrchr_g): Likewise.
8241         (__strcspn_c1): Likewise.
8242         (__strcspn_cg): Likewise.
8243         (__strcspn_g): Likewise.
8244         (__strcspn_g): Likewise.
8245         (__strspn_c1): Likewise.
8246         (__strspn_cg): Likewise.
8247         (__strspn_g): Likewise.
8248         (__strspn_g): Likewise.
8249         (__strpbrk_cg): Likewise.
8250         (__strpbrk_g): Likewise.
8251         (__strstr_cg): Likewise.
8252         (__strstr_g): Likewise.
8254         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
8255         Michal Ludvig <mludvig@suse.cz>.
8257         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
8258         compatibilty, adjust for kernel changes.
8260         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8261         sigcontext): Adjust for kernel changes.
8263 2002-03-25  Andreas Jaeger  <aj@suse.de>
8265         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
8266         little endian.
8267         Reported by Artur Zaprzala <zybi@talex.com.pl>.
8269 2002-03-24  Andreas Jaeger  <aj@suse.de>
8271         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
8273         * stdio-common/tst-fdopen.c (main): Remove unused variable.
8275         * iconv/tst-iconv3.c (main): Use correct printf strings.
8277 2002-03-18  Roland McGrath  <roland@frob.com>
8279         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
8280         (CMGROUP_MAX): New macro.
8282 2002-03-23  Roland McGrath  <roland@frob.com>
8284         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
8285         * sysdeps/posix/shm_unlink.c: Likewise.
8287 2002-03-22  Roland McGrath  <roland@frob.com>
8289         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
8290         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
8291         under --enable-libio.
8292         * sysdeps/mach/hurd/configure: Regenerated.
8294 2002-03-23  Roland McGrath  <roland@frob.com>
8296         * sysdeps/mach/hurd/i386/Makefile
8297         (sysdep_routines, shared-only-routines): Don't add framestate,
8298         reverting 2001-10-02 change.
8299         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
8300         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
8301         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8302         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8303         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
8304         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
8305         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8306         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
8307         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
8308         Do it here instead, only if [$(unwind-find-fde) = yes].
8310 2002-03-23  Andreas Jaeger  <aj@suse.de>
8312         * signal/signal.h: Fix typo. Patch by Steve Kemp
8313         <skx@tardis.ed.ac.uk>.
8315 2002-03-22  Andreas Jaeger  <aj@suse.de>
8317         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
8318         getresuid.
8320         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8321         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
8322         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8323         user_fpregs_struct): Rename fwd.
8325         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
8326         Follow sigcontext changes.
8328 2002-03-22  Andreas Jaeger  <aj@suse.de>
8330         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
8331         changes for NaNs on MIPS.
8332         Patch by Hartvig Ekner <hartvige@mips.com>.
8334 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
8336         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
8337         Use realloc if too large.
8338         (addgrbyid): Likewise.
8339         * nscd/hstcache.c (addhstbyname): Likewise.
8340         (addhstbyaddr): Likewise.
8341         (addhstbynamev6): Likewise.
8342         (addhstbyaddrv6): Likewise.
8343         * nscd/pwdcache.c (addpwbyname): Likewise.
8344         (addpwbyuid): Likewise.
8346 2002-03-21  Andreas Jaeger  <aj@suse.de>
8348         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8349         _fpstate): Add separate struct for x86-64.
8351         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8352         user_fpregs_struct): Change member names to follow kernel.
8354 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
8356         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
8357         Correctly close the UDP connection right away [PR libc/3120].
8359 2002-03-20  Andreas Jaeger  <aj@suse.de>
8361         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8362         user_fpregs_struct): Fix for changed kernel struct.
8363         (struct user_regs_struct): Likewise.
8364         (struct user): Likewise.
8365         Add 32-bit x86 compatibility.
8367         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
8369 2002-03-19  Andreas Jaeger  <aj@suse.de>
8371         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
8373 2002-03-18  Andreas Jaeger  <aj@suse.de>
8375         * iconvdata/Makefile: Only run tests when shared libs are
8376         available.
8378 2002-03-17  Andreas Jaeger  <aj@suse.de>
8380         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
8382         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
8384         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
8385         bits.
8387         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
8388         (CAUSE_SHIFT): New macro.
8389         Patch by Hartvig Ekner <hartvige@mips.com>.
8391         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
8392         * sysdeps/generic/unwind-pe.h: Likewise.
8394         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
8395         type to _IO_setb.
8397         * libio/stdio.c (AL2): Define variant when visibility attribute is
8398         not supported.
8400         * include/libc-symbols.h (_INTVARDEF): Define variant when
8401         visibility attribute is not supported.
8403 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
8405         * po/fr.po: Update from translation team.
8407 2002-02-25  Bruno Haible  <bruno@clisp.org>
8409         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
8411 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
8413         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
8414         buffers if _IO_file_attach failed.
8416         * libio/fileops.c (_IO_file_open): Close file descriptor if
8417         _IO_SEEKOFF call failed.
8419 2002-03-15  H.J. Lu  <hjl@gnu.org>
8420             Ulrich Drepper  <drepper@redhat.com>
8422         * configure.in: Check for availability of
8423         init_array/fini_array/preinit_array handling in binutils.
8424         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
8425         * config.make.in (have-initfini-array): New variable.
8427 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
8429         * stdio-common/tst-printf.c (main): Comment out one test which
8430         checked the compiler's ability to fold floating-point constants
8431         but not really printf.
8432         (rfg3): Make s const.
8433         * stdio-common/tst-printf.sh: Adjust for removed test.
8435         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
8436         internal function.  Adjust for internal_function calling convention.
8437         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
8438         as internal_function.
8440         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
8441         hidden.
8443         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
8444         declaration and definition.
8445         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
8446         declaration.
8447         * nss/getXXent_r.c: Likewise.
8448         * nss/nsswitch.h (db_lookup_function): Add internal_function to
8449         definition.
8451         * include/time.h: Declare __localtime_r as hidden.
8453         * include/aliases.h: Declare __getaliasent_r as hidden.
8454         * include/grp.h: Declare __getgrent_r as hidden.
8455         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
8456         __getservent_r, and __getprotoent_r as hidden.
8457         * include/pwd.h: Declare __getpwent_r as hidden.
8458         * include/shadow.h: Declare __getspent_r as hidden.
8459         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
8461         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
8462         and __gconv_transliterate as hidden.
8463         Add internal_function to __gconv_get_path declaration.
8464         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
8465         definition.  Add attribute_hidden to __gconv_read_conf definition.
8467 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
8469         * elf/rtld.c: Declare _environ as hidden.
8470         * sysdeps/generic/dl-environ.c: Likewise.
8471         * sysdeps/generic/dl-sysdep.c: Likewise.
8473         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
8474         _dl_mcount_internal as hidden.
8476         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
8477         * sysdeps/generic/dl-brk.c: New file.
8478         * sysdeps/generic/dl-sbrk.c: New file.
8479         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
8480         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
8482         * elf/dl-minimal.c (malloc): Declare _end as hidden.
8483         (__errno_location): New function.  Declare errno as hidden.
8484         * elf/rtld.c (_dl_argc): Define as hidden.
8485         (_dl_skip_args): Define as hidden.
8486         (_begin, _end): Declare as hidden.
8487         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
8488         * sysdeps/generic/entry.h (_start): Declare as hidden.
8489         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
8490         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
8491         _dl_runtime_resolve and _dl_runtime_profile as hidden.
8492         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
8494 2002-03-14  Roland McGrath  <roland@frob.com>
8496         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
8498         * Makeconfig (%.v.i, %.v): New implicit rules.
8499         (preprocess-versions): Variable removed.
8500         ($(common-objpfx)shlib-versions.v.i): New target giving just the
8501         shlib-versions input files as dependencies.
8502         ($(common-objpfx)soversions.i): Depend on that instead of the input
8503         files.  Use it as input instead of using a pipeline.
8504         (postclean-generated): Append soversions.i, shlib-versions.v, and
8505         shlib-versions.v.i here.
8506         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
8507         the Versions.def input files as dependencies.
8508         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
8509         ($(common-objpfx)Versions.all): Depend on that instead of the input
8510         files.  Use it as input instead of using a pipeline.
8511         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
8512         (postclean-generated): Append those .v and .v.i files here.
8514 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
8516         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
8517         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
8518         Remove.
8520 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
8522         * sysdeps/generic/mp_clz_tab.c: New file.
8523         * sysdeps/i386/mp_clz_tab.c: New file.
8524         * sysdeps/hppa/mp_clz_tab.c: New file.
8525         * sysdeps/powerpc/mp_clz_tab.c: New file.
8526         * stdlib/Makefile (aux): Revert last patch.
8527         * math/Makefile (gmp-objs): Likewise.
8529 2002-03-13  Paul Eggert  <eggert@twinsun.com>
8531         * time/strftime.c: Comment fixes for references to obsolescent
8532         standards, In most cases the simplest fix is to remove the
8533         confusing comments.  Cross-referencing all the standards properly
8534         is a bit of a pain, and it should be enough to put that info in
8535         the documentation as I did in my recent time.texi patch.
8537 2002-03-13  Paul Eggert  <eggert@twinsun.com>
8539         * manual/time.texi (Formatting Calendar Time):
8540         ISO C99 also specifies the E and O modifiers.
8541         %P is a GNU extension, and is not in ISO C99.
8542         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
8543         %T is also in ISO C99.
8544         The RFC 822 example is not valid in arbitrary locales.
8545         Reword the POSIX.2 wording slightly, to make it a bit clearer
8546         that POSIX.2 formats are also supported by later POSIX versions.
8547         If a format was introduced in ISO C99 it is also required by
8548         POSIX.1-2001.
8550 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
8552         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
8553         _sys_nerr_internal with INTVARDEF2.
8554         * include/libc-symbols.h (INTVARDEF2): New macro.
8555         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
8556         (_sys_nerr_internal): Library.
8558         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
8559         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
8561         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
8563 2002-03-13  Wolfram Gloger  <wg@malloc.de>
8565         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
8567 2002-03-02  Andreas Schwab  <schwab@suse.de>
8569         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
8570         'h' flag and positional arg.
8571         * stdio-common/tst-printf.c (rfg3): New function to test
8572         positional arguments.
8573         (main): Fix some warnings.
8575 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
8577         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
8578         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8580 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
8582         * grp/initgroups.c (__nss_group_data): Declare as hidden.
8584         * include/locale.h (_nl_C_locobj): Declare as hidden.
8586         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
8587         * time/strptime.c (_nl_C_LC_TIME): Likewise.
8589         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
8591         * include/sys/gmon.h: Declare _gmonparam as hidden.
8593         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
8594         (__ctype32_wctrans): Likewise.
8595         (__ctype32_width): Likewise.
8597         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
8598         use of __ttyname.
8600         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
8601         Define as hidden.
8602         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
8603         hidden.  Change all users of these variables.
8605         * posix/regex_internal.h (__re_error_msgid): Renamed from
8606         re_error_msgid.  Declare as hidden.
8607         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
8608         hidden.
8610         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
8611         (__printf_function_table): Likewise.
8612         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
8613         hidden.
8614         (__printf_function_table): Likewise.
8616         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
8617         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
8619         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
8620         * nss/nsswitch.c: Declare _nss_*_database as hidden.
8622         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
8623         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
8625 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
8627         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
8628         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8629         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8630         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8631         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8632         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8633         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8634         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8635         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
8636         _nl_C_LC_CTYPE_width: Declare as hidden.
8637         * include/locale.h: Declare _nl_locale_file_list.
8638         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
8639         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
8640         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
8641         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
8642         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
8643         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
8644         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
8645         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
8646         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
8647         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
8648         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
8649         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
8650         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8651         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8652         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8653         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8654         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8655         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8656         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8657         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
8658         _nl_C_LC_CTYPE_width, and as hidden.
8659         * locale/findlocale.c: Declare _nl_C as hidden.
8660         * locale/newlocale.c: Likewise.
8661         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
8662         _nl_locale_file_list.
8663         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
8664         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
8665         Define _nl_C_locobj as hidden.
8667         * malloc/mtrace.c (_mtrace_file): Define as hidden.
8668         (_mtrace_line): Likewise.
8670         * include/time.h: Declare __mon_yday as hidden.
8671         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
8673         * libio/libioP.h: Declare __libio_codecvt as hidden.
8674         * libio/fileops.c: Declare __libio_translit as hidden.
8675         * libio/iofwide.c: Define __libio_translit as hidden.
8677         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
8678         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
8679         * login/getutline_r.c: Likewise.
8680         * login/utmpname.c: Likewise.
8682         * login/utmp-private.h: Declare __libc_utmp_file_functions,
8683         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
8684         __libc_utmp_file_name as hidden.
8686         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
8687         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
8688         * locale/freelocale.c: Likewise.
8689         * locale/lc-time.c: Likewise.
8691         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
8692         (__libc_ptyname2): Likewise.
8693         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
8694         hidden.
8695         (__libc_ptyname2): Likewise.
8697         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
8698         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
8699         * sysdeps/generic/init-first.c: Likewise.
8700         * sysdeps/i386/init-first.c: Likewise.
8701         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8702         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8703         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8704         * sysdeps/sh/init-first.c: Likewise.
8705         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8706         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8708         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8709         (_itowa_upper_digits): Likewise.
8711         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8712         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8713         as hidden.
8715         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8716         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8717         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8718         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8720         * gmon/gmon.c (__bb_head): Define as hidden.
8721         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8723         * argp/argp-parse.c (_argp_hang): Define as static.
8725         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8726         handling in latest compilers.
8728         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8729         define alias.
8730         * libio/fileops.c (_IO_file_jumps): Likewise.
8731         * libio/stdfiles.c (_IO_list_all): Likewise.
8732         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8734         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8735         include/malloc.h.
8736         * include/malloc.h: Add __libc_malloc_initialized declaration
8737         here.  Mark variable hidden.
8738         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8740         * elf/dl-open.c (__libc_argc): Declare as hidden.
8741         (__libc_argv): Likewise.
8742         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8743         (__libc_argv): Likewise.
8744         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8745         __libc_argv as hidden.
8746         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8747         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8748         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8749         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8751         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8752         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8753         * stdlib/erand48.c: Likewise.
8754         * stdlib/jrand48.c: Likewise.
8755         * stdlib/lcong48.c: Likewise.
8756         * stdlib/lrand48.c: Likewise.
8757         * stdlib/mrand48.c: Likewise.
8758         * stdlib/nrand48.c: Likewise.
8759         * stdlib/seed48.c: Likewise.
8760         * stdlib/srand48.c: Likewise.
8762         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8763         (_itoa_lower_digits_internal): New declaration.
8764         (_itoa_upper_digits_internal): New declaration.
8765         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8766         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8767         (_itoa_upper_digits_internal): New declaration.
8768         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8769         _itoa_lower_digits.
8770         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8771         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8773         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8774         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8776         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8777         (_itowa_lower_digits): Likewise.
8778         (_itowa_upper_digits): Likewise.
8779         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8780         (_itowa_upper_digits): Likewise.
8782         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8783         not already defined.
8784         (GERMANIC_PLURAL): Declare as hidden.
8786         * posix/getopt.c (__getopt_initialized): Declare as hidden.
8787         (attribute_hidden): Define as empty macro if not already defined.
8789         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8790         (__gconv_max_path_elem_len): Likewise.
8791         (__gconv_path_envvar): Likewise.
8793         * math/Makefile (gmp-objs): Remove mp_clz_tab.
8794         * stdlib/Makefile (aux): Remove mp_clz_tab.
8795         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
8797         * stdlib/exit.h (__exit_funcs): Declare as hidden.
8799         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8801         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8802         _nl_category_names, _nl_category_name_sizes, _nl_current,
8803         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8805         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8806         (_nl_current_default_domain): Likewise
8807         (_nl_state_lock): Likewise.
8808         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8809         (_nl_current_default_domain): Likewise
8810         (_nl_state_lock): Likewise.
8811         * intl/bindtextdom.c (_nl_state_lock): Likewise.
8813         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8814         (_fpioconst_pow10): Likewise.
8816         * include/time.h (_tmbuf): Add attribute_hidden.
8818         * time/tzset.c (tzstring_list): Define as static.
8820         * include/time.h: Add attribute_hidden to __tzname_cur_max and
8821         __use_tzfile declaration.
8823         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8824         and __wcsmbs_last_locale declaration.
8826 2002-02-25  Paul Eggert  <eggert@twinsun.com>
8828         * timezone/Makefile (tzbases): Move systemv from here...
8829         (tzlinks): to here, since the entries in systemv were all changed
8830         from Zone to Link lines in tz-2001a.  Bug reported (and patch
8831         tested) by Peter Breitenlohner.
8833 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
8835         * time/tst-posixtz.c (tests): Add new tests.
8836         (main): Test whether tzset() sets daylight properly.
8838 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8840         * time/tzset.c (tz_compute): Move __daylight, __tzname and
8841         __tzname_cur_max setting...
8842         (tzset_internal): ...here.
8844 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8846         * time/tzset.c (compute_change): Don't return any value.
8847         (tz_compute): Likewise.  Don't handle southern hemisphere here.
8848         (__tz_convert): But here.
8850 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8852         * manual/examples/mkfsock.c: Include <string.h> as well.
8853         Patch by Alain De Carolis <alaind@wseurope.com>.
8855 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
8857         * posix/regexec.c (re_match): Fix incorrect register sizes.
8858         (re_search): Likewise.
8860 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8862         * posix/regcomp.c (regfree): Remove a disused condition.
8863         * posix/regex_internal.c (re_acquire_state): Likewise.
8864         (re_acquire_state_context): Likewise.
8865         (register_state): Remove a redundant malloc invocation.
8866         * posix/regex_internal.h: (re_state_table_entry): Simplify
8867         the structure.
8869 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8871         * posix/regcomp.c (regcomp): Add __builtin_expect to error
8872         handling conditions.
8873         (regerror): Likewise.
8874         (regfree): Likewise.
8875         (re_compile_internal): Likewise.
8876         (init_dfa): Likewise.
8877         (init_word_char): Likewise.
8878         (create_initial_state): Likewise.
8879         (analyze): Likewise.
8880         (analyze_tree): Likewise.
8881         (duplicate_node): Likewise.
8882         (calc_eclosure): Likewise.
8883         (calc_eclosure_iter): Likewise.
8884         (parse): Likewise.
8885         (parse_reg_exp): Likewise.
8886         (parse_branch): Likewise.
8887         (parse_expression): Likewise.
8888         (parse_subexp): Likewise.
8889         (parse_dup_op): Likewise.
8890         (parse_bracket_exp): Likewise.
8891         (build_equiv_class): Likewise.
8892         (build_charclass): Likewise.
8893         (build_word_op): Likewise.
8894         (fetch_number): Likewise.
8895         (create_tree): Likewise.
8896         (duplicate_tree): Likewise.
8897         * posix/regex.c (BE): New macro.
8898         * posix/regexec.c (re_match): Add __builtin_expect to error
8899         handling conditions.
8900         (re_match_2): Likewise.
8901         (re_search): Likewise.
8902         (re_search_internal): Likewise.
8903         (check_matching): Likewise.
8904         (proceed_next_node): Likewise.
8905         (set_regs): Likewise.
8906         (sift_states_backward): Likewise.
8907         (add_epsilon_backreference): Likewise.
8908         (transit_state): Likewise.
8909         (transit_state_sb): Likewise.
8910         (transit_state_mb): Likewise.
8911         (transit_state_bkref): Likewise.
8912         (transit_state_bkref_loop): Likewise.
8913         (build_trtable): Likewise.
8914         (group_nodes_into_DFAstates): Likewise.
8915         (match_ctx_init): Likewise.
8916         (match_ctx_add_entry): Likewise.
8917         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8918         to error handling conditions.
8919         (re_string_construct_toupper): Likewise.
8920         (build_wcs_buffer): Likewise.
8921         (build_wcs_upper_buffer): Likewise.
8922         (build_upper_buffer): Likewise.
8923         (re_string_translate_buffer): Likewise.
8924         (re_node_set_alloc): Likewise.
8925         (re_node_set_init_1): Likewise.
8926         (re_node_set_init_2): Likewise.
8927         (re_node_set_init_copy): Likewise.
8928         (re_node_set_intersect): Likewise.
8929         (re_node_set_init_union): Likewise.
8930         (re_node_set_merge): Likewise.
8931         (re_node_set_insert): Likewise.
8932         (re_dfa_add_node): Likewise.
8933         (re_acquire_state): Likewise.
8934         (re_acquire_state_context): Likewise.
8935         (create_new_state_common): Likewise.
8936         (register_state): Likewise.
8937         (create_ci_new_state): Likewise.
8938         (create_cd_new_state): Likewise.
8939         (re_string_context_at): Remove redundant condition.
8941 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8943         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8945         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8947 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
8949         * sysdeps/i386/elf/configure.in: Fix comment.
8951         * sysdeps/sparc/sparc64/configure.in: New file.
8952         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8953         if .dynamic comes before .got.
8954         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8956         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8957         HP_TIMING_ACCUM): Fix typos.
8959 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8961         * string/strfry.c: Add some more randomness to the seed.
8962         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8964         * po/es.po: Update from translation team.
8965         * po/fr.po: Likewise.
8967         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8969         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8970         when determining type of format.
8971         Patch by James Antill <james@anqd.org> [PR libc/2787].
8973 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
8975         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8977 2002-03-11  Roland McGrath  <roland@frob.com>
8979         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8981         * Versions.def (libc): Add GLIBC_2.2.6.
8982         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8983         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8984         __errno_location instead of __hurd_errno_location, and don't inline it.
8985         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8986         * hurd/errno.c: New file.
8987         * hurd/Makefile (routines): Add errno.
8989 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8991         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8992         ridiculously large widths and precisions [PR libc/3026].
8994 2002-03-11  Andreas Jaeger  <aj@suse.de>
8996         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8997         support.
8998         Patch by Susanne Oberhauser <froh@SuSE.de>.
9000 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
9002         * inet/rexec.c (ahostbuf): Define as static.
9004         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
9005         (__ctype32_wctrans): Likewise.
9006         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
9007         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
9008         (__ctype32_wctrans): Likewise.
9009         (__ctype32_width): Likewise.
9011         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
9012         They were never exported anyway.
9014         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
9015         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
9016         exported.
9017         * include/sys/gmon.h: Declare _gmonparam.
9019         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
9020         symbols for getdents64.  They were never exported.
9022 2002-03-09  Roland McGrath  <roland@frob.com>
9024         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
9025         Reported by Jon Arney <jarney1@cox.net>.
9027 2002-02-23  Roland McGrath  <roland@frob.com>
9029         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
9030         declaration.
9031         (__hurd_errno_location): Function removed.
9033 2002-03-06  Andreas Jaeger  <aj@suse.de>
9035         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
9036         32-bit.
9038 2002-03-04  Andreas Jaeger  <aj@suse.de>
9040         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
9042         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
9043         x86-64.
9045         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
9047         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
9049         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
9051         * sysdeps/x86_64/bits/setjmp.h: New file.
9053         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
9055         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
9057         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
9058         for x86.
9059         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
9060         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
9062 2002-02-28  Bo Thorsen  <bo@suse.de>
9064         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
9065         version.
9067 2002-03-03  Andreas Jaeger  <aj@suse.de>
9069         * sysdeps/x86_64/bits/wordsize.h: New file.
9071         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
9072         * elf/tst-tlsmod1.c: Likewise.
9074         * posix/regcomp.c: Get regex.h from include dir for internal
9075         prototypes.
9077         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
9078         to libc-internal.h and include it.
9079         * include/libc-internal.h: Add __init_misc.
9081         * misc/init-misc.c: Include libc-internal.h for prototypes.
9083         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
9085         * misc/error.c [_LIBC]: Include libioP.h for prototype of
9086         _IO_putc_internal.
9088 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
9090         * posix/regcomp.c: Compatibility changes to allow using the code
9091         outside glibc.
9093 2002-02-28  Hartvig Ekner <hartvige@mips.com>
9095         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
9096         compiled non-PIC.
9098 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
9100         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
9101         of .str elements in the returned data structure.
9103         * elf/elf.h: Add Alpha TLS bits.
9105 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
9107         * sysdeps/unix/sysv/linux/nice.c: New file.
9109 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
9111         * elf/Makefile (dl-routines): Add dl-origin.
9112         (elide-routines.os): Add dl-origin.
9113         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
9114         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
9115         _dl_debug_state.
9116         * include/libc-symbols.c: Define attribute_hidden depending on
9117         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
9119         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
9120         * elf/dl-load.c: Likewise.
9121         * elf/rtld.c: Likewise.
9122         * include/unistd.h: Declare __libc_enable_secure_internal.
9123         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
9124         Use INTUSE with __libc_enable_secure.
9125         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
9127         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
9128         * elf/dl-error.c: Likewise,
9129         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
9131         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
9132         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
9133         function definition.  Use INTDEF with _dl_get_origin.
9134         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9136         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
9137         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
9139         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
9140         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
9141         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
9143         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
9144         * elf/dl-deps.c: Likewise.
9145         * elf/dl-error.c: Likewise.
9146         * elf/dl-fini.c: Likewise.
9147         * elf/dl-init.c: Likewise.
9148         * elf/dl-load.c: Likewise.
9149         * elf/dl-lookup.c: Likewise.
9150         * elf/dl-reloc.c: Likewise.
9151         * elf/dl-version.c: Likewise.
9152         * elf/do-lookup.h: Likewise.
9153         * sysdeps/arm/dl-machine.h: Likewise.
9154         * sysdeps/cris/dl-machine.h: Likewise.
9155         * sysdeps/hppa/dl-machine.h: Likewise.
9156         * sysdeps/i386/dl-machine.h: Likewise.
9157         * sysdeps/m68k/dl-machine.h: Likewise.
9158         * sysdeps/powerpc/dl-machine.h: Likewise.
9159         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9160         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9161         * sysdeps/sh/dl-machine.h: Likewise.
9162         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
9163         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
9164         * sysdeps/x86_64/dl-machine.h: Likewise.
9165         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
9166         _dl_argv[0].  Use INTUSE with _dl_argv.
9167         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
9168         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
9170 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
9172         * elf/rtld.c (_rtld_global): Remove .protected.
9173         (_rtld_local): Strong alias to _rtld_global.
9174         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
9175         only .os object.
9176         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
9177         _rtld_local instead of _rtld_global.
9178         (_rtld_local): Add hidden extern, possibly in .sdata section.
9179         * configure.in: Add tests for visibility attribute and .sdata.
9180         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
9181         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
9182         * sysdeps/arm/dl-machine.h: Likewise.
9183         * sysdeps/generic/ldsodefs.h: Likewise.
9184         * sysdeps/hppa/dl-machine.h: Likewise.
9185         * sysdeps/cris/dl-machine.h: Likewise.
9186         * sysdeps/i386/dl-machine.h: Likewise.
9187         * sysdeps/ia64/dl-machine.h: Likewise.
9188         * sysdeps/m68k/dl-machine.h: Likewise.
9189         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9190         * sysdeps/mips/dl-machine.h: Likewise.
9191         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9192         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9193         * sysdeps/sh/dl-machine.h: Likewise.
9194         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9195         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9196         * sysdeps/x86_64/dl-machine.h: Likewise.
9198 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
9200         * login/login.c (login): Always initialize ut_line field
9201         [PR libc/2991].
9203 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
9205         * sysdeps/i386/Makefile (sysdep_routines): Add
9206         divdi3 in csu dir.
9207         (shared-only-routines): Likewise.
9208         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
9209         (shared-only-routines): Likewise.
9210         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
9211         (shared-only-routines): Likewise.
9212         * sysdeps/wordsize-32/divdi3.c: New file.
9214 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
9216         * locale/iso-4217.def: Remove obsolete currencies for countries
9217         with Euro.
9219 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
9221         * posix/regcomp.c (regcomp): Remove a redundant condition.
9222         (init_word_char): Add a check on malloc failure.
9223         (create_initial_state): Likewise.
9224         (duplicate_node): Likewise.
9225         (calc_eclosure): Likewise.
9226         (calc_eclosure_iter): Likewise.
9227         (parse_expression): Likewise.
9228         (parse_bracket_exp): Remove unnecessary malloc invocations.
9229         (build_equiv_class): Likewise.
9230         (build_charclass): Likewise.
9231         * posix/regex_internal.c (re_node_set_intersect): Add a check
9232         on malloc failure.
9233         (re_node_set_add_intersect): Likewise.
9234         (re_node_set_merge): Likewise.
9235         (re_acquire_state): Likewise.
9236         (re_acquire_state_context): Likewise.
9237         (create_newstate_common): Likewise.
9238         (register_state): Likewise.
9239         (create_ci_newstate): Likewise.
9240         (create_cd_newstate): Likewise.
9241         * posix/regex_internal.h: Fix prototypes of re_acquire_state
9242         and re_acquire_state_context.
9243         * posix/regexec.c (regexec): Suit it to the error handling of
9244         re_search_internal.
9245         (re_match): Likewise.
9246         (re_search): Likewise.
9247         (re_search_internal): Add a check on malloc failure.
9248         (acquire_init_state_context): Likewise.
9249         (check_matching): Likewise.
9250         (proceed_next_node): Likewise.
9251         (set_regs): Likewise.
9252         (sift_states_backward): Likewise.
9253         (sift_states_iter_bkref): Likewise.
9254         (add_epsilon_backreference): Likewise.
9255         (transit_state): Likewise.
9256         (transit_state_sb): Likewise.
9257         (transit_state_mb): Likewise.
9258         (transit_state_bkref_loop): Likewise.
9259         (build_trtable): Likewise.
9260         (group_nodes_into_DFAstates): Likewise.
9261         (match_ctx_init): Likewise.
9262         (match_ctx_add_entry): Likewise.
9264 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
9266         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
9267         l_libname if profiling is enabled [PR libc/2916].
9269         * sysdeps/ia64/dl-tls.h: New file.
9271 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
9273         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
9274         Work around an Alpha gas bug.
9276 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
9278         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
9279         uses read to load the catalog.
9280         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
9282 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
9284         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
9285         regex_internal.c, and regex_internal.h.
9286         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
9287         * posix/regex.c: Complete rewrite.
9288         * posix/regexec.c: New file.
9289         * posix/regcomp.c: New file.
9290         * posix/regex_internal.c: New file.
9291         * posix/regex_internal.h: New file.
9292         * posix/regex.h (RE_ICASE): New macro.
9293         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
9295         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
9296         ungetwc.  It's a macro.
9297         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
9298         implementation.
9299         Reported by Jason Merrill <jason@redhat.com>.
9301 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
9303         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
9304         position to fp->_offset if it is set.
9305         * stdio-common/Makefile (tests): Add tst-fdopen.
9306         * stdio-common/tst-fdopen.c: New test.
9308 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
9310         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
9311         * stdio-common/tst-ungetc.c (main): Add another test.
9313 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
9315         * assert/assert-perr.c: Use INTUSE to reference functions and variables
9316         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
9317         aliases.  Add prototypes for the new aliases.
9318         * assert/assert.c: Likewise.
9319         * include/libc-symbols.h: Likewise.
9320         * include/stdio.h: Likewise.
9321         * include/netinet/in.h: Likewise.
9322         * include/rpc/auth.h: Likewise.
9323         * include/rpc/auth_unix.h: Likewise.
9324         * include/rpc/key_prot.h: Likewise.
9325         * include/rpc/pmap_prot.h: Likewise.
9326         * include/rpc/pmap_rmt.h: Likewise.
9327         * include/rpc/rpc_msg.h: Likewise.
9328         * include/rpc/xdr.h: Likewise.
9329         * inet/gethstbyad_r.c: Likewise.
9330         * inet/gethstbynm2_r.c: Likewise.
9331         * inet/gethstbynm_r.c: Likewise.
9332         * inet/gethstent_r.c: Likewise.
9333         * inet/in6_addr.c: Likewise.
9334         * libio/__fpurge.c: Likewise.
9335         * libio/filedoalloc.c: Likewise.
9336         * libio/fileops.c: Likewise.
9337         * libio/ftello.c: Likewise.
9338         * libio/ftello64.c: Likewise.
9339         * libio/genops.c: Likewise.
9340         * libio/iofclose.c: Likewise.
9341         * libio/iofdopen.c: Likewise.
9342         * libio/iofflush.c: Likewise.
9343         * libio/iofflush_u.c: Likewise.
9344         * libio/iofgetpos.c: Likewise.
9345         * libio/iofgetpos64.c: Likewise.
9346         * libio/iofgets.c: Likewise.
9347         * libio/iofgets_u.c: Likewise.
9348         * libio/iofopen.c: Likewise.
9349         * libio/iofopncook.c: Likewise.
9350         * libio/iofputs.c: Likewise.
9351         * libio/iofread.c: Likewise.
9352         * libio/iofread_u.c: Likewise.
9353         * libio/iofsetpos.c: Likewise.
9354         * libio/iofsetpos64.c: Likewise.
9355         * libio/ioftell.c: Likewise.
9356         * libio/iofwrite.c: Likewise.
9357         * libio/iogetline.c: Likewise.
9358         * libio/iogets.c: Likewise.
9359         * libio/iogetwline.c: Likewise.
9360         * libio/iolibio.h: Likewise.
9361         * libio/iopadn.c: Likewise.
9362         * libio/iopopen.c: Likewise.
9363         * libio/ioseekoff.c: Likewise.
9364         * libio/ioseekpos.c: Likewise.
9365         * libio/iosetbuffer.c: Likewise.
9366         * libio/iosetvbuf.c: Likewise.
9367         * libio/ioungetc.c: Likewise.
9368         * libio/ioungetwc.c: Likewise.
9369         * libio/iovdprintf.c: Likewise.
9370         * libio/iovsprintf.c: Likewise.
9371         * libio/iovsscanf.c: Likewise.
9372         * libio/libioP.h: Likewise.
9373         * libio/memstream.c: Likewise.
9374         * libio/obprintf.c: Likewise.
9375         * libio/oldfileops.c: Likewise.
9376         * libio/oldiofclose.c: Likewise.
9377         * libio/oldiofdopen.c: Likewise.
9378         * libio/oldiofgetpos.c: Likewise.
9379         * libio/oldiofgetpos64.c: Likewise.
9380         * libio/oldiofopen.c: Likewise.
9381         * libio/oldiofsetpos.c: Likewise.
9382         * libio/oldiofsetpos64.c: Likewise.
9383         * libio/oldiopopen.c: Likewise.
9384         * libio/oldstdfiles.c: Likewise.
9385         * libio/putc.c: Likewise.
9386         * libio/setbuf.c: Likewise.
9387         * libio/setlinebuf.c: Likewise.
9388         * libio/stdfiles.c: Likewise.
9389         * libio/stdio.c: Likewise.
9390         * libio/strops.c: Likewise.
9391         * libio/vasprintf.c: Likewise.
9392         * libio/vscanf.c: Likewise.
9393         * libio/vsnprintf.c: Likewise.
9394         * libio/vswprintf.c: Likewise.
9395         * libio/wfiledoalloc.c: Likewise.
9396         * libio/wfileops.c: Likewise.
9397         * libio/wgenops.c: Likewise.
9398         * libio/wstrops.c: Likewise.
9399         * malloc/mtrace.c: Likewise.
9400         * misc/error.c: Likewise.
9401         * misc/syslog.c: Likewise.
9402         * nss/getXXbyYY_r.c: Likewise.
9403         * nss/getXXent_r.c: Likewise.
9404         * nss/hosts-lookup.c: Likewise.
9405         * stdio-common/getw.c
9406         * stdio-common/printf-prs.c: Likewise.
9407         * stdio-common/printf_fp.c: Likewise.
9408         * stdio-common/printf_size.c: Likewise.
9409         * stdio-common/putw.c: Likewise.
9410         * stdio-common/scanf.c: Likewise.
9411         * stdio-common/sprintf.c: Likewise.
9412         * stdio-common/tmpfile64.c: Likewise.
9413         * stdio-common/vfprintf.c: Likewise.
9414         * stdio-common/vfscanf.c: Likewise.
9415         * stdlib/strfmon.c: Likewise.
9416         * sunrpc/auth_des.c: Likewise.
9417         * sunrpc/auth_none.c: Likewise.
9418         * sunrpc/auth_unix.c: Likewise.
9419         * sunrpc/authdes_prot.c: Likewise.
9420         * sunrpc/authuxprot.c: Likewise.
9421         * sunrpc/clnt_perr.c: Likewise.
9422         * sunrpc/clnt_raw.c: Likewise.
9423         * sunrpc/clnt_tcp.c: Likewise.
9424         * sunrpc/clnt_udp.c: Likewise.
9425         * sunrpc/clnt_unix.c: Likewise.
9426         * sunrpc/key_call.c: Likewise.
9427         * sunrpc/key_prot.c: Likewise.
9428         * sunrpc/openchild.c: Likewise.
9429         * sunrpc/pm_getmaps.c: Likewise.
9430         * sunrpc/pm_getport.c: Likewise.
9431         * sunrpc/pmap_clnt.c: Likewise.
9432         * sunrpc/pmap_prot.c: Likewise.
9433         * sunrpc/pmap_prot2.c: Likewise.
9434         * sunrpc/pmap_rmt.c: Likewise.
9435         * sunrpc/rpc_cmsg.c: Likewise.
9436         * sunrpc/rpc_prot.c: Likewise.
9437         * sunrpc/svc_authux.c: Likewise.
9438         * sunrpc/svc_raw.c: Likewise.
9439         * sunrpc/svc_simple.c: Likewise.
9440         * sunrpc/svc_tcp.c: Likewise.
9441         * sunrpc/svc_udp.c: Likewise.
9442         * sunrpc/svc_unix.c: Likewise.
9443         * sunrpc/xdr.c: Likewise.
9444         * sunrpc/xdr_array.c: Likewise.
9445         * sunrpc/xdr_mem.c: Likewise.
9446         * sunrpc/xdr_rec.c: Likewise.
9447         * sunrpc/xdr_ref.c: Likewise.
9448         * sunrpc/xdr_stdio.c: Likewise.
9449         * sysdeps/generic/_strerror.c: Likewise.
9450         * sysdeps/generic/printf_fphex.c: Likewise.
9451         * sysdeps/generic/tmpfile.c: Likewise.
9452         * sysdeps/gnu/errlist.awk: Likewise.
9453         * sysdeps/gnu/errlist.c: Likewise.
9455         * libio/Makefile (routines): Remove iosprint.
9456         * libio/iosprintf.c: Removed
9459 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
9461         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
9462         non_dynamic_init and exported now.
9463         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
9464         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
9465         !SHARED.
9466         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
9467         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
9468         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
9470 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
9472         * elf/dl-close.c (free_slotinfo): Check for end of list and return
9473         true in this case.
9475         * locale/iso-639.def: Add language codes for Walloon.
9477         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
9478         total number of relocations performed.
9480         * elf/sprof.c (load_profdata): If do_test provide information as
9481         to why loading failed.
9482         * elf/dl-profile.c (_dl_start_profile): Initialize all of
9483         hist_hdr.dimen.
9485         * csu/set-init.c: Moved to...
9486         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
9487         * csu/Makefile: Don't compile set-init.
9488         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
9489         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
9490         to __libc_init.
9491         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
9492         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
9493         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
9494         __libc_init.
9495         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
9496         __libc_subinit.
9498 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
9500         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
9501         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
9502         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
9503         (_dl_deallocate_tls): New function.
9504         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
9505         _dl_deallocate_tls.
9507 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
9509         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
9510         * stdio-common/tst-fseek.c (main): Add test for this.
9512 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
9514         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
9516 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
9518         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
9519         pointer before dereferencing.
9521 2002-02-18  Roland McGrath  <roland@frob.com>
9523         * sysdeps/mach/hurd/times.c: Fix typo in last change.
9525         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
9526         Use task_policy in place of task_priority.
9528         * sysdeps/generic/bits/mman.h
9529         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
9530         * sysdeps/mach/msync.c: New file.
9532         * sysdeps/mach/powerpc/syscall.S: New file.
9534         * mach/msg.c [MACH_MSG_OVERWRITE]
9535         (__mach_msg_trap, __mach_msg_overwrite): New functions.
9536         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
9538         * sysdeps/mach/configure.in: Check for clock.defs to put into
9539         mach_interface_list.
9540         * sysdeps/mach/configure: Regenerated.
9542         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
9543         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
9544         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
9545         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
9546         (mach-shortcuts): Add device_read_overwrite_request,
9547         device_read_overwrite, vm_read_overwrite, thread_switch.
9549         * configure.in (base_machine): Set to $machine by default.
9550         * configure: Regenerated.
9552         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
9553         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
9554         * sysdeps/mach/configure: Regenerated.
9555         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
9557         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
9559         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
9561         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
9562         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
9564 2002-02-17  Roland McGrath  <roland@frob.com>
9566         * sysdeps/mach/hurd/times.c
9567         [NO_CREATION_TIME] (startup_time): New static variable.
9568         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
9569         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
9570         creation_time from task_basic_info.
9571         (__times): Use __gettimeofday instead of __host_get_time.
9573         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
9574         Use untyped Mach IPC message format.
9576         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
9578         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
9579         _S_catch_exception_raise_state_identity,
9580         _hurdsig_fault_catch_exception_raise_state,
9581         _hurdsig_fault_catch_exception_raise_state_identity.
9583         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
9585         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
9586         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
9588         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
9589         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
9591         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
9592         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
9593         them as no-op macros.
9594         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
9595         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
9597         * sysdeps/powerpc/dl-machine.h
9598         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
9600         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
9601         Use untyped Mach IPC message format.
9603         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
9604         Handle untyped Mach IPC message formats.
9606         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
9607         Expect different argument conventions when this is defined.
9608         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
9609         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
9610         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
9611         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
9612         for OSF Mach variant.
9613         (faulted): Use mig_reply_error_t for REPLY.
9614         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
9615         in __thread_set_exception_ports call.
9616         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
9617         __mach_port_set_attributes in place of __mach_port_set_qlimit.
9619         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
9620         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
9621         on Darwin, which includes bogons.
9623         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
9624         variable LOADBASE so it's not declared when it's not used.
9626 2002-02-16  Roland McGrath  <roland@frob.com>
9628         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
9629         to use BI.creation_time.
9631         * mach/Machrules (MIG): Add -x c to CPP value passed down.
9633         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
9634         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
9635         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
9636         host_page_size instead of vm_statistics.
9638         * sysdeps/mach/Makefile (mach-before-compile): Don't include
9639         mach_interface.h here, since not all variants use that name.
9641         * sysdeps/mach/configure.in: Add some checks for Mach headers
9642         to ensure a sane installation.
9643         (mach_interface_list): Define this variable by checking for .defs
9644         files found in various variants.
9645         * configure.in (mach_interface_list): AC_SUBST this.
9646         * config.make.in (mach-interface-list): New substituted variable.
9647         * mach/Makefile (user-interfaces): Define this using the value
9648         of $(mach-interface-list) instead of mach, mach4.
9649         Updated other references to mach_interface to use it as well.
9651         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
9653         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
9654         mig_reply_error_t for OSF Mach variant.
9656         * mach/Makefile (routines): Remove bootprivport.
9657         * mach/bootprivport.c: File removed.  It has never been used.
9659         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
9660         Grok the OSF flavor of message format.
9661         (mach_msg_destroy_port): For MAKE_SEND and
9662         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
9663         no-senders notification.
9665 2002-02-06  Roland McGrath  <roland@frob.com>
9667         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
9668         to here if 2.0 compatibility enabled ...
9669         (libc: GLIBC_2.1.3): ... from here.
9671 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
9673         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
9674         generation counter.
9675         * elf/dl-close.c (_dl_close): Likewise.
9677 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
9679         * elf/Makefile: Add rules to build and run tst-tls8.
9680         * elf/tst-tls8.c: New file.
9681         * elf/tst-tlsmod4.c: New file.
9683         * stdlib/test-a64l.c (tests): Add more test cases.
9685         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
9686         Reported by Walter Harms <WHarms@bfs.de>.
9688 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
9690         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
9691         definitions for struct sigcontext.
9692         Suggested by David Mosberger-Tang.
9694 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9696         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
9697         for removing reference of module in slotinfo list.
9698         (_dl_close): Use remove_slotinfo.
9699         * sysdeps/generic/dl-tls.c: General pretty printing.
9700         (oom): Define only if SHARED.
9701         (_dl_next_tls_modid): Correct starting point for the case we assume
9702         there is a gap.  Add missing instruction grouping (doh!).  Correct
9703         tests for reaching maximum index.
9704         * elf/Makefile: Add rules to build and run tst-tls7.
9705         * elf/tst-tls7.c: New file.
9706         * elf/tst-tlsmod3.c: New file.
9708         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9709         USE_TLS.
9710         * elf/tst-tlsmod2.c: Likewise.
9712         * elf/dl-close.c (_dl_close): When closing an object using TLS
9713         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9714         true.  Increment dl_tls_generation only if we closed any TLS-using
9715         object.
9716         * elf/tst-tls6.c: New file.
9717         * elf/Makefile: Add rules to build and run tst-tls6.
9719         * po/da.po: Update from translation team.
9721         * locale/categories.def: Fix typo [PR libc/2948].
9722         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9723         [PR libc/2949].
9724         * locale/iso-4217.def: Update from official version [PR libc/2950].
9725         * glibcbug.in: Honor TMPDIR [PR libc/2951].
9726         * locale/programs/ld-collate.c (collate_finish): Bail out with a
9727         message if input is too confusion instead of using assert.
9728         (collate_read): Don't crash on unknown symbol [PR libc/2952].
9729         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9731         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9732         * elf/tst-tls2.c: Likewise.
9733         * elf/tst-tls3.c: Likewise.
9735 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
9737         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9739 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9741         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9742         if this is really necessary.
9744         * elf/dl-close.c (_dl_close): Implement freeing entries in the
9745         slotinfo array.
9746         (free_mem): Free memory for the slotinfo array if possible.
9748 2002-02-12  Andreas Schwab  <schwab@suse.de>
9750         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9752 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
9754         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9755         TLS_DTV_UNALLOCATE.
9756         (oom): New function.
9757         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9758         (_dl_determine_tlsoffset): Likewise.
9759         (_dl_allocate_tls): Likewise.
9760         (__TLS_GET_ADDR): Define if not already defined.
9761         (_dl_tls_symaddr): New function.
9762         (allocate_and_init): New function.
9763         (__tls_get_addr): Actually implement handling of generation counter
9764         and deferred allocation.
9765         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9766         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9767         _dl_tls_generation.
9768         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9769         Declare _dl_tls_symaddr.
9770         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9771         SHARED.
9772         * include/link.h (struct link_map):  Remove l_tls_nextimage and
9773         l_tls_previmage.
9774         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9775         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9776         (_dl_vsym): Likewise.
9777         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9778         layout.
9779         (dl_main): Allow PT_TLS be present for empty segment.  Remove
9780         nextimage list handling.  Instead add all modules using TLS to
9781         dl_tls_dtv_slotinfo_list.
9782         * elf/dl-open.c (dl_open_worker): After successfully loading all
9783         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9784         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9785         empty segment don't do anything.  Remove handling of initimage list.
9786         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9787         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9788         * elf/dl-minimal.c: Define __libc_memalign.
9789         * elf/dl-support.c: Remove _dl_initimage_list.  Add
9790         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9791         _dl_tls_generation.
9792         * include/stdlib.h: Declare __libc_memalign.
9794         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9795         * elf/tst-tls4.c: New file.
9796         * elf/tst-tls5.c: New file.
9797         * elf/tst-tlsmod2.c: New file.
9799         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9801         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9803         * elf/tst-tls1.c: Use test-skeleton.c.
9804         * elf/tst-tls2.c: Likewise.
9805         * elf/tst-tls3.c: Likewise.
9807         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9809 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
9811         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9813 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
9815         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9817         * elf/tst-tls3.c: New file.
9818         * elf/tst-tlsmod1.c: New file.
9819         * elf/Makefile: Add rules to build and run tst-tls3.
9821         * sysdeps/i386/dl-machine.h: Include <tls.h>.
9822         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9823         TLS relocations.
9825         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9827         * po/fr.po: Update from translation team.
9829         * elf/tls-macros.h: Add alternative macros for use in PIC.
9831         * elf/dl-lookup.c: Include <tls.h>.
9832         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9834         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9835         required by passing pointer to last element of the list.
9837         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9838         l_tls_initimage to a place where it actually is performed.
9840         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9841         after globfree() calls.
9843         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9844         (openaux): Pass open_mode as new last argument to _dl_map_object.
9845         (_dl_map_object_deps): Add new argument open_mode.  Initialize
9846         open_mode element of args variable with it.
9847         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9848         _dl_map_object_deps.
9849         * elf/rtld.c (dl_main): Add zero as last parameter to
9850         _dl_map_object_deps call.
9851         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9852         * elf/nodlopen2.c: New file.
9853         * elf/nodlopenmod2.c: New file.
9854         * elf/Makefile: Add rules to build and run nodlopen2.
9856         * elf/tst-tls1.c: Move TLS helper macros to...
9857         * elf/tls-macros.h: ...here.  New file.
9858         * elf/tst-tls2.c: New file.
9859         * elf/Makefile (tests): Add tst-tls2.
9860         (distribute): Add tls-macros.h.
9862         * po/sv.po: Update from translation team.
9864         * elf/tst-tls1.c (main): Add complete set of tests.  Split
9865         architecture specific definitions from the actual test code.
9867         * po/tr.po: Update from translation team.
9869 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
9871         * elf/Makefile (tests): Add tst-tls1.
9872         * elf/tst-tls1.c: New file.
9874         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9875         alignment of TCB for now.
9877         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9878         initialization image for the application itself.
9880         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9881         loop to initialize TLS block.
9883 2002-02-08  Richard Henderson  <rth@redhat.com>
9885         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9886         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9888         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9890 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
9892         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9894 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
9896         * po/ca.po: Update from translation team.
9897         * po/sk.po: Likewise.
9899         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9900         (dl_main): Move dtv/static TLS handling before relocation.
9901         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
9902         TLS_INIT_TP to allocate and install the dtv/static TLS block.
9903         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9904         so far uses TLS initialize GL(dl_tls_static_size) and
9905         GL(dl_tls_static_align) to account for the TCB.
9906         (_dl_allocate_tls): New function.
9907         * sysdeps/generic/ldsodefs.h (rtld_global): Add
9908         _dl_initial_dtv_malloced.
9910         * configure.in: Test for __builtin_memset more realistically.
9912         * csu/version.c (banner): If TLS support is available say so.
9914 2002-02-04  H.J. Lu  <hjl@gnu.org>
9916         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9917         __attribute_used__.
9918         (__dl_runtime_resolve): Likewise.
9920         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9921         declaration.
9923 2001-11-15  H.J. Lu  <hjl@gnu.org>
9925         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9926         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9928         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9930 2002-02-07  H.J. Lu  <hjl@gnu.org>
9932         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9933         ".set noreorder".
9934         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9935         Likewise.
9937 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9939         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9941         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9942         ___tls_get_addr_internal.
9943         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9945         * po/ko.po: Update from translation team.
9947 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
9949         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9950         attribute, change __pad{1,2} type to unsigned int.
9951         (struct stat64): Remove packed attribute.
9953 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9955         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9957 2002-02-07  Andreas Schwab  <schwab@suse.de>
9959         * configure.in: Fix check for -zcombreloc.
9961 2002-02-06  H.J. Lu  <hjl@gnu.org>
9963         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9964         * configure.in: Check if __builtin_memset really works.
9965         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9966         __GNUC_PREREQ (2, 96) before using __builtin_memset.
9968 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9970         * io/bug-ftw3.c (main): Don't try the test if root.
9972 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9974         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9975         constraints.
9976         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9977         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9978         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9979         Likewise.
9980         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9981         a weak alias for __clone.
9982         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9983         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9984         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9985         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9986         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9987         a weak alias for __mmap64.
9989 2002-02-05  H.J. Lu  <hjl@gnu.org>
9991         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9992         (atomic_add): Likewise.
9993         (compare_and_swap): Likewise.
9994         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9996 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9998         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
10000         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
10001         alignment of the TCB and store total size and alignment of static
10002         TLS block in _dl_tls_static_size and _dl_tls_static_align.
10003         tls_index is a typedef.
10004         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
10005         _dl_tls_static_align.
10006         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
10007         * elf/dl-support.c: Define _dl_tls_static_size and
10008         _dl_tls_static_align.
10010 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
10012         * configure.in: Add --without-tls option.
10013         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
10014         --without-tls is given.
10016         * sysdeps/generic/dl-tls.c: Include <tls.h>.
10018         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
10020 2002-02-06  Roland McGrath  <roland@frob.com>
10022         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
10023         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
10025         * scripts/versions.awk: Improve error message for missing version.
10026         Each version inherits from the last one only if they have the same
10027         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
10028         but not GLIBC_x and FOO_y.
10030         * scripts/firstversions.awk: Handle libraries that don't have each
10031         particular version named in the third column of shlib-versions.
10033         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
10035 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
10037         * Versions.def [ld]: Add GLIBC_2.3.
10038         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
10039         * elf/Makefile (dl-routines): Add dl-tls.
10040         (distribute): Add dl-tls.h.
10041         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
10042         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
10043         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
10044         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
10045         along with the other info in the link map.  Change queueing of init
10046         images for double linked list.  Use _dl_next_tls_modid to compute
10047         l_tls_modid.
10048         * elf/rtld.c (_dl_start_final): Store alignment requirement
10049         along with the other info in rtld map and executable map.
10050         (dl_main): Add ld.so to the init image list if necessary.  Compute
10051         final module ID with _dl_next_tls_modid.
10052         * include/link.h (struct link_map): Add l_tls_previmage and
10053         l_tls_align.
10054         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
10055         * sysdeps/i386/elf/Versions: New file.
10056         * sysdeps/generic/dl-tls.c: New file.
10057         * sysdeps/generic/dl-tls.h: New file.
10058         * sysdeps/i386/dl-tls.h: New file.
10060 2002-02-06  Roland McGrath  <roland@frob.com>
10062         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
10063         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
10065 2002-01-05  Roland McGrath  <roland@frob.com>
10067         * sysdeps/mach/configure.in: New file.
10068         * sysdeps/mach/configure: New generated file.
10070         * mach/Makefile (user-interfaces): Remove default_pager_helper.
10071         It has never been used by anything.
10073 2002-02-06  H.J. Lu  <hjl@gnu.org>
10075         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
10076         is included.
10078 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
10080         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
10081         attribute((packed)) to counter stupid people misusing gcc options.
10082         (struct stat64): Likewise.
10084 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
10086         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
10087         the variables which are used as booleans.
10089 2002-02-06  Andreas Jaeger  <aj@suse.de>
10091         * include/libc-symbols.h (INTUSE): Renamed from INT.
10092         * elf/dl-deps.c: Change users.
10093         * sysdeps/generic/dl-sysdep.c: Likewise.
10094         * sysdeps/generic/dl-cache.c: Likewise.
10095         * elf/dl-reloc.c: Likewise.
10096         * elf/rtld.c: Likewise.
10097         * elf/dl-version.c: Likewise.
10098         * elf/dl-load.c: Likewise.
10099         * elf/dl-dst.h: Likewise.
10100         * elf/dl-init.c: Likewise.
10101         * elf/dl-error.c: Likewise.
10102         * elf/dl-fini.c: Likewise.
10103         * elf/dl-runtime.c: Likewise.
10104         * elf/do-lookup.h: Likewise.
10106         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
10107         definition.
10108         * stdio-common/_itowa.h: Likewise.
10110 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
10112         * elf/dl-minimal.c: Define _itoa_lower_digits.
10114         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
10115         DT_FLAGS set.
10117         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
10118         loading modules with the DF_STATIC_TLS flag set.
10119         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
10120         element.
10121         * include/link.h (struct link_map): Add l_flags field.
10122         * elf/elf.h (DF_STATIC_TLS): New definition.
10124         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
10125         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
10127         * elf/rtld.c (process_dl_debug): Correct printing help message.
10128         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
10129         for %s.
10131         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
10132         definition and pass &errno in use of this variable.
10133         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
10135 2002-02-04  Andreas Schwab  <schwab@suse.de>
10137         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
10138         * locale/programs/charmap-dir.c: Wrap calls that output messages
10139         with WITH_CUR_LOCALE.  Include "localedef.h" first.
10140         * locale/programs/charmap.c: Likewise.
10141         * locale/programs/ld-address.c: Likewise.
10142         * locale/programs/ld-collate.c: Likewise.
10143         * locale/programs/ld-ctype.c: Likewise.
10144         * locale/programs/ld-identification.c: Likewise.
10145         * locale/programs/ld-measurement.c: Likewise.
10146         * locale/programs/ld-messages.c: Likewise.
10147         * locale/programs/ld-monetary.c: Likewise.
10148         * locale/programs/ld-name.c: Likewise.
10149         * locale/programs/ld-numeric.c: Likewise.
10150         * locale/programs/ld-paper.c: Likewise.
10151         * locale/programs/ld-telephone.c: Likewise.
10152         * locale/programs/ld-time.c: Likewise.
10153         * locale/programs/linereader.c: Likewise.
10154         * locale/programs/linereader.h: Likewise.
10155         * locale/programs/localedef.c: Likewise.
10156         * locale/programs/locfile.c: Likewise.
10157         * locale/programs/repertoire.c: Likewise.
10159 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
10161         * elf/rtld.c (_dl_start_final): Determine load address to locate
10162         ehdr with GL(dl_rtld_map).l_map_start.
10164         * po/ca.po: Update from translation team.
10166         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
10167         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
10168         header entry.
10169         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10170         _dl_tls_module_cnt.
10171         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
10173 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
10175         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
10176         * include/link.h (struct link_map): Add various members for TLS
10177         information.
10178         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
10179         _rtld_tlsoffset, add _dl_initimage_list.
10180         * sysdeps/i386/dl-lookupcfg.h: New file.
10181         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
10182         TLS relocation.  When using TLS we now use RESOLVE_MAP.
10183         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
10184         is used.
10186         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
10187         unused.
10189         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
10190         thread-pointer as soon as possible.
10191         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
10192         elements in rtld_global.
10193         * sysdeps/generic/tls.h: New file.
10194         * elf/Makefile (distribute): Add tls.h.
10195         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
10196         relocations.  Not complete yet.
10198         * resolv/resolv.h: Allow user to define __need_res_state and only
10199         define __res_start structure then.
10200         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
10202         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
10203         dl_cpuclock_offset initialization to _dl_start_final.
10204         (_dl_show_auxv): Avoid unnecessary sign extension.
10205         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
10207 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
10209         * config.h.in: Add HAVE_TLS_SUPPORT.
10210         * sysdeps/i386/elf/configure.in: New file.
10212 2002-02-03  Andreas Schwab  <schwab@suse.de>
10214         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
10215         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
10217 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
10219         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
10220         alloca if the memory reqirements are too high.
10222 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
10224         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
10225         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
10226         the former is available anyway and speed isn't important here.
10227         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
10228         * elf/dl-version.c (match_symbol): Likewise.
10229         (_dl_check_map_versions): Likewise.
10230         * elf/rtld.c (process_envvars): Likewise.
10231         (print_statistics): Likewise.
10232         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
10233         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
10234         bases.  Add assert to catch uses of unimplemented features.
10235         (__strsep): Add assert to catch uses of unimplemented features.
10236         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
10237         and avoid inline optimization.
10238         * elf/rtld.c (process_envvars): Likewise.
10239         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
10240         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
10241         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
10243 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10245         * stdio-common/_itoa.h: Minor simplifications of the code.
10246         * stdio-common/_itoa.c: Likewise.
10248         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
10249         instead of _dl_printf for debugging info output.
10251         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
10252         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
10254 2002-02-01  H.J. Lu  <hjl@gnu.org>
10256         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
10257         (atomic_add): Likewise.
10258         (compare_and_swap): Return 0 only when failed to compare. Use
10259         branch likely.
10261         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
10262         branch likely.
10264 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
10266         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
10268 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10270         * elf/dl-minimal.c (__strsep): New minimal implementation.
10272 2002-02-02  Paul Eggert  <eggert@twinsun.com>
10274         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
10275         (__mktime_internal): If no tm_isdst is requested, prefer solutions
10276         with tm_isdst > 0 when the requested time falls within a
10277         spring-forward gap [PR libc/2894].
10279 2002-02-03  Andreas Schwab  <schwab@suse.de>
10281         * stdio-common/tst-rndseek.c: Increase timeout.
10283 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10285         Change ld.so to not use functions which are exported.  One cannot
10286         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
10287         definitions.
10288         * include/libc-symbols.h: Define INT and INTDEF.
10289         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
10290         _dl_signal_error_internal, _dl_map_object_internal,
10291         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
10292         _dl_lookup_versioned_symbol_internal,
10293         _dl_relocate_object_internal, _dl_debug_state_internal,
10294         _dl_start_profile_internal, and _dl_unload_cache_internal.
10295         * include/dlfcn.h: Declare _dl_catch_error_internal.
10296         * elf/rtld.c: Use INT for calls to any of the *_internal functions
10297         above.  Add INTDEF to function definitions.
10298         * elf/dl-debug.c: Likewise.
10299         * elf/dl-deps.c: Likewise.
10300         * elf/dl-dst.h: Likewise.
10301         * elf/dl-error.c: Likewise.
10302         * elf/dl-fini.c: Likewise.
10303         * elf/dl-init.c: Likewise.
10304         * elf/dl-load.c: Likewise.
10305         * elf/dl-lookup.c: Likewise.
10306         * elf/dl-misc.c: Likewise.
10307         * elf/dl-open.c: Likewise.
10308         * elf/dl-profile.c: Likewise.
10309         * elf/dl-reloc.c: Likewise.
10310         * elf/dl-runtime.c: Likewise.
10311         * elf/dl-version.c: Likewise.
10312         * elf/do-lookup.h: Likewise.
10313         * sysdeps/generic/dl-cache.c: Likewise.
10314         * sysdeps/generic/dl-sysdep.c: Likewise.
10315         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
10316         instead of _dl_init.
10317         * sysdeps/arm/dl-machine.h: Likewise.
10318         * sysdeps/cris/dl-machine.h: Likewise.
10319         * sysdeps/hppa/dl-machine.h: Likewise.
10320         * sysdeps/i386/dl-machine.h: Likewise.
10321         * sysdeps/ia64/dl-machine.h: Likewise.
10322         * sysdeps/m68k/dl-machine.h: Likewise.
10323         * sysdeps/mips/dl-machine.h: Likewise.
10324         * sysdeps/mips/mips64/dl-machine.h: Likewise.
10325         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10326         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10327         * sysdeps/sh/dl-machine.h: Likewise.
10328         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10329         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10330         * sysdeps/x86_64/dl-machine.h: Likewise.
10331         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
10333         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
10334         and _dl_debug_initialize.
10336         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
10337         more information.
10338         * elf/rtld.c (dl_main): Avoid strrchr.
10339         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
10340         result of readlink.  Search from the back for '/'.
10342         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
10343         strncpy if possible.
10345         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
10346         strncmp.
10347         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
10348         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
10349         strspn, and strcspn.
10350         (process_envvars): Don't use strcspn.
10352         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
10353         (_dl_dst_substitute): Likewise.
10355 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10357         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
10358         code which is never used when relocating ld.so itself.
10360         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
10361         starting ld.so itself.  Move l_addr variable initialization closer
10362         to use.
10363         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
10365 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
10367         * Versions.def (libc): Add GLIBC_PRIVATE.
10368         (libdb, libnss_db, libdb1): Remove.
10369         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
10370         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
10371         (libpthread): Add GLIBC_PRIVATE.
10372         (libresolv): Likewise, remove GLIBC_2.1.
10373         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
10374         GLIBC_2.2.3, GLIBC_2.3.
10375         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
10376         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
10377         _dl_sym, _dl_vsym): Likewise.
10378         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
10379         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
10380         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
10381         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
10382         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
10383         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
10384         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
10385         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
10386         Likewise.
10387         (_dl_object_relocation_scope): Remove.
10388         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
10389         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
10390         __gconv_cache): Move to GLIBC_PRIVATE.
10391         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
10392         __internal_setnetgrent): Likewise.
10393         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
10394         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
10395         * locale/Versions (__collate_element_hash, __collate_element_strings,
10396         __collate_symbol_classes, __collate_symbol_hash,
10397         __collate_symbol_strings, _nl_current_LC_COLLATE,
10398         _nl_current_LC_CTYPE): Likewise.
10399         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
10400         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
10401         (libnss_nis, libnss_nisplus): Likewise.
10402         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
10403         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
10404         (libnss_files): Move all symbols to GLIBC_PRIVATE.
10405         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
10406         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
10407         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
10408         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
10409         __ns_get16, __ns_samename): Likewise.
10410         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
10411         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
10412         GLIBC_PRIVATE.
10413         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
10414         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
10415         __libc_connect): Likewise.
10416         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
10417         Likewise.
10418         * stdlib/Versions (__libc_system): Likewise.
10419         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
10420         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
10421         * sysdeps/ia64/fpu/Versions: Likewise.
10422         * sysdeps/ia64/Versions: Likewise.
10423         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
10424         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
10425         to GLIBC_PRIVATE.
10426         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
10427         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
10428         __libc_sigaction): Likewise.
10429         * termios/Versions (__libc_tcdrain): Likewise.
10431         * misc/sys/cdefs (__attribute_noinline__): Define.
10432         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
10433         __attribute_noinline__.
10435         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
10436         * elf/dl-xstat64.c: New file.
10437         * elf/dl-fxstat64.c: New file.
10438         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
10439         don't export __fxstat64 at multiple versions.
10440         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
10441         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
10443 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
10445         * locale/program/ld-collate.c (collate_finish): Assign a wide
10446         char collation sequence value to multi character collating
10447         elements, and avoid over writing by non-character elements.
10449 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10451         * elf/Makefile (distribute): Add dl-procinfo.c.
10452         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
10453         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
10455 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
10457         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
10458         definition.
10459         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
10460         _rtld_global struct.
10461         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10462         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
10463         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10464         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
10465         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
10466         _dl_fpu_control_set): Remove unused externs.
10467         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
10468         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
10469         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
10470         related variables in _rtld_global struct.
10471         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
10472         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
10473         unused extern.
10475 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10477         * sysdeps/generic/dl-procinfo.c: New file.
10479 2002-02-01  Andreas Schwab  <schwab@suse.de>
10481         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
10483 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10485         * elf/rtld.c (_dl_start): Mark as internal_function.
10486         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
10487         in register.
10488         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
10489         General pretty printing.
10491 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
10493         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
10494         * elf/dl-reloc.c: Pretty printing.
10495         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
10496         procinfo-related variables in rtld_global struct.
10497         * elf/dl-support.c: Likewise.
10498         * elf/rtld.c: Likewise.
10499         * sysdeps/i386/i686/Makefile: Likewise.
10500         * sysdeps/i386/i686/hp-timing.c: Likewise.
10501         * sysdeps/i386/i686/hp-timing.h: Likewise.
10502         * sysdeps/ia64/Makefile: Likewise.
10503         * sysdeps/ia64/hp-timing.c: Likewise.
10504         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
10505         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
10506         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
10507         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
10508         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10509         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
10510         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
10511         * sysdeps/x86_64/Makefile: Likewise.
10513         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
10514         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
10515         _dl_debug_fd to rtld_global.
10516         * elf/Versions: Likewise.
10517         * elf/dl-close.c: Likewise.
10518         * elf/dl-iteratephdr.c: Likewise.
10519         * elf/dl-lookup.c: Likewise.
10520         * elf/dl-misc.c: Likewise.
10521         * elf/dl-open.c: Likewise.
10522         * elf/dl-support.c: Likewise.
10523         * elf/do-lookup.h: Likewise.
10524         * elf/rtld.c: Likewise.
10525         * sysdeps/generic/dl-cache.c: Likewise.
10526         * sysdeps/generic/dl-sysdep.c: Likewise.
10527         * sysdeps/ia64/Versions: Likewise.
10528         * sysdeps/unix/clock_gettime.c: Likewise.
10529         * sysdeps/unix/clock_settime.c: Likewise.
10530         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10531         * sysdeps/sparc/Versions: Removed.
10532         * sysdeps/i386/i686/Versions : Removed.
10533         * sysdeps/x86_64/Versions: Removed.
10534         * configure.in: Define HAVE_PROTECTED if .protected is available.
10535         * config.h.in: Add entry for HAVE_PROTECTED.
10537 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
10539         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
10540         code in struct _rtld_global.  Export this struct, remove all
10541         exports for the signal variables.
10542         * sysdeps/arm/dl-machine: Likewise.
10543         * sysdeps/generic/dl-origin: Likewise.
10544         * sysdeps/generic/dl-sysdep: Likewise.
10545         * sysdeps/generic/dl-cache: Likewise.
10546         * sysdeps/hppa/dl-fptr: Likewise.
10547         * sysdeps/hppa/dl-machine: Likewise.
10548         * sysdeps/cris/dl-machine: Likewise.
10549         * sysdeps/i386/dl-machine: Likewise.
10550         * sysdeps/ia64/dl-machine: Likewise.
10551         * sysdeps/m68k/dl-machine: Likewise.
10552         * sysdeps/mach/hurd/dl-sysdep: Likewise.
10553         * sysdeps/mips/mips64/dl-machine: Likewise.
10554         * sysdeps/mips/dl-machine: Likewise.
10555         * sysdeps/powerpc/elf/libc-start: Likewise.
10556         * sysdeps/powerpc/dl-machine: Likewise.
10557         * sysdeps/powerpc/dl-start: Likewise.
10558         * sysdeps/sparc/sparc32/dl-machine: Likewise.
10559         * sysdeps/sparc/sparc64/dl-machine: Likewise.
10560         * sysdeps/sh/dl-machine: Likewise.
10561         * sysdeps/s390/s390-32/dl-machine: Likewise.
10562         * sysdeps/s390/s390-64/dl-machine: Likewise.
10563         * sysdeps/unix/sysv/aix/libc-start: Likewise.
10564         * sysdeps/unix/sysv/aix/start-libc: Likewise.
10565         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
10566         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
10567         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
10568         * sysdeps/x86_64/dl-machine: Likewise.
10570 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
10572         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
10573         are too high.
10575 2002-01-31  Andreas Schwab  <schwab@suse.de>
10577         * sysdeps/posix/readv.c: Check for ssize_t overflow.
10579 2002-01-31  Andreas Schwab  <schwab@suse.de>
10581         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
10582         reference to _dl_pagesize.
10584 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
10586         * Versions.def [ld]: Add GLIBC_2.3.
10587         * elf/dl-addr.c: Move global variables for SHARED code in struct
10588         _rtld_global.  Export this struct, remove all exports for the
10589         signal variables.
10590         * elf/dl-close.c: Likewise.
10591         * elf/dl-conflict.c: Likewise.
10592         * elf/dl-debug.c: Likewise.
10593         * elf/dl-deps.c: Likewise.
10594         * elf/dl-dst.h: Likewise.
10595         * elf/dl-error.c: Likewise.
10596         * elf/dl-fini.c: Likewise.
10597         * elf/dl-init.c: Likewise.
10598         * elf/dl-iteratephdr.c: Likewise.
10599         * elf/dl-libc.c: Likewise.
10600         * elf/dl-load.c: Likewise.
10601         * elf/dl-lookup.c: Likewise.
10602         * elf/dl-minimal.c: Likewise.
10603         * elf/dl-object.c: Likewise.
10604         * elf/dl-open.c: Likewise.
10605         * elf/dl-profile.c: Likewise.
10606         * elf/dl-profstub.c: Likewise.
10607         * elf/dl-reloc.c: Likewise.
10608         * elf/dl-runtime.c: Likewise.
10609         * elf/dl-support.c: Likewise.
10610         * elf/dl-sym.c: Likewise.
10611         * elf/dl-version.c: Likewise.
10612         * elf/do-lookup.h: Likewise.
10613         * elf/do-rel.h: Likewise.
10614         * elf/dynamic-link.h: Likewise.
10615         * elf/rtld.c: Likewise.
10616         * sysdeps/generic/dl-cache.c: Likewise.
10617         * sysdeps/generic/dl-sysdep.c: Likewise.
10618         * sysdeps/generic/ldsodefs.h: Likewise.
10619         * sysdeps/generic/libc-start.c: Likewise.
10620         * sysdeps/i386/dl-machine.h: Likewise.
10621         * sysdeps/ia64/dl-fptr.c: Likewise.
10622         * sysdeps/ia64/dl-machine.h: Likewise.
10623         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
10624         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10625         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
10626         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
10627         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
10628         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
10629         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
10630         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
10632 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10634         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
10635         to avoid warning
10636         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
10638         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
10639         SHARED version.
10640         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
10642         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
10644 2002-01-29  Ben Collins  <bcollins@debian.org>
10646         * string/bits/string2.h (__mempcpy): Protect size arg for
10647         addition when using __builtin_memcpy.
10649 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10651         * stdlib/Makefile (tests): Add tst-qsort.
10652         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
10654         * manual/signal.texi (Process Signal Mask): Document that
10655         pthread_sigmask, not sigprocmask, must be used in MT programs.
10656         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
10658         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
10659         found.
10660         * misc/Makefile (tests): Add tst-hsearch.
10661         * misc/tst-hsearch.c: New file.
10663 2002-01-18  Wolfram Gloger  <wg@malloc.de>
10665         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
10666         * malloc/malloc.h: Likewise.
10667         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
10668         * malloc/arena.c: New file.
10669         * malloc/hooks.c: New file.
10670         * malloc/tst-mallocstate.c: New file.
10671         * malloc/Makefile: Add new testcase tst-mallocstate.
10672         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
10674 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10676         * stdlib/msort.c: Remove last patch.  The optimization violates the
10677         same rule which qsort.c had problems with.
10679 2002-01-27  Paul Eggert  <eggert@twinsun.com>
10681         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
10682         to a pivot element that lies outside the array to be sorted, as
10683         ISO C99 requires that the comparison function be called only with
10684         addresses of array elements [PR libc/2880].
10686 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10688         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
10689         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
10691         * timezone/asia: Update from tzdata2002b.
10692         * timezone/australasia: Likewise.
10693         * timezone/backward: Likewise.
10694         * timezone/europe: Likewise.
10695         * timezone/leapseconds: Likewise.
10696         * timezone/iso3166.tab: Likewise.
10697         * timezone/zone.tab: Likewise.
10699 2002-01-23  Richard Henderson  <rth@redhat.com>
10701         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10703 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10705         * string/strxfrm.c: Allocate one more byte for rulearr and clear
10706         this element [PR libc/2855].
10708         * string/strcoll.c: Handle zero-length arguments specially
10709         [PR libc/2856].
10711 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
10713         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10714         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10715         short lengths and constant src.
10716         (strcpy): Don't optimize for gcc 3.0+.
10717         (__stpcpy): For gcc 3.0+, don't use
10718         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10719         for short string literal src.
10721 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10723         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10724         Set for arm, too.
10726 2001-01-22  Paul Eggert  <eggert@twinsun.com>
10728         * manual/llio.texi (Linked Channels, Cleaning Streams):
10729         Make it clearer that a just-opened input stream might need cleaning.
10731 2002-01-21  H.J. Lu  <hjl@gnu.org>
10733         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10734         Don't use label at end of compound statement.
10736 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
10738         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10739         Remove test for negative integer arg; sin_pi does it correctly.
10741 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
10743         * nscd/Makefile (distribute): Filter out xmalloc.c.
10745 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
10747         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10748         Set offset if read end wasn't the buffer end.
10749         (_IO_file_seekoff_mmap): New function.
10750         (_IO_file_xsgetn_mmap): New function.
10751         (_IO_file_jumps_mmap): Use the two new functions.
10752         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10753         != end buffer.
10754         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10755         _IO_file_underflow_mmap.
10756         * libio/iofopen.c: Don't position file descriptor at end of file.
10757         * libio/tst-widetext.c: Improve error messages.
10758         * stdio-common/tst-rndseek.c: Likewise.
10760 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
10762         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10763         end of enum for !_GNU_SOURCE.
10764         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10765         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10766         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10767         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10768         values unless _GNU_SOURCE.
10770         * iconvdata/tcvn5712-1.c: Minor cleanups.
10772 2002-01-18  Andreas Schwab  <schwab@suse.de>
10774         * sysdeps/unix/sysv/linux/configure.in
10775         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10777 2002-01-16  Roger Sayle  <roger@eyesopen.com>
10779         * stdlib/msort.c (msort_with_tmp): Replace implementation with
10780         more efficient "Towers of Hanoi" mergesort.
10781         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10782         for generic, sizeof(int) and sizeof(long) variants respectively.
10784 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
10786         * manual/syslog.texi (openlog): Describe possible problems with
10787         first parameter.
10788         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10790         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
10791         * nscd/connections.c (begin_drop_privileges): New function.
10792         (finish_drop_privileges): New function.
10793         (nscd_init): Call the new functions which also install all groups
10794         for the server user.
10795         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10796         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10798 2002-01-17  H.J. Lu  <hjl@gnu.org>
10800         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10801         `const' from `got'.
10803 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10805         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10806         instructions for pointer operations.
10807         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10809 2002-01-17  Andreas Jaeger  <aj@suse.de>
10811         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10812         __uint128_t build-in.
10814         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10815         PowerPC, sync with 2.2 branch.
10817 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10819         * posix/getconf.c: Update copyright year.
10820         * nss/getent.c: Likewise.
10821         * nscd/nscd_nischeck.c: Likewise.
10822         * iconv/iconvconfig.c: Likewise.
10823         * iconv/iconv_prog.c: Likewise.
10824         * elf/ldconfig.c: Likewise.
10825         * catgets/gencat.c: Likewise.
10826         * csu/version.c: Likewise.
10827         * elf/ldd.bash.in: Likewise.
10828         * elf/sprof.c (print_version): Likewise.
10829         * locale/programs/locale.c: Likewise.
10830         * locale/programs/localedef.c: Likewise.
10831         * nscd/nscd.c (print_version): Likewise.
10832         * debug/xtrace.sh: Likewise.
10833         * malloc/memusage.sh: Likewise.
10834         * malloc/mtrace.pl: Likewise.
10836 2002-01-16  Andreas Schwab  <schwab@suse.de>
10838         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10839         reliably remove "-ia64" from rtld name.
10841 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10843         * iconvdata/gb18030.c: Bug fixes and support for more characters.
10844         Patch by Yu Shao <yshao@redhat.com>.
10846 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10848         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10849         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10850         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10852 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10854         * sysdeps/s390/fpu/libm-test-ulps: Update.
10856 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
10858         * elf/elf.h: Update x86 relocations.
10860 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10862         * locale/programs/charmap.c (new_width): Check whether byte
10863         sequences for both ends of range have the same length.
10865 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10867         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10869 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10871         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10872         string literals.
10873         (__full_ieee754_sqrt): Add __attribute_used__.
10875 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10877         * sysdeps/generic/group_member.c (__group_member): Also check
10878         groups[0] [PR libc/2781].
10880 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
10882         * Makefile (distribute): Add scripts/cpp.
10883         * elf/Makefile (distribute): Add reldep6mod[01234].c,
10884         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10885         unwind-dw2-fde.h, and dwarf2.h.
10886         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10887         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10888         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10889         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10891 2002-01-07  Roland McGrath  <roland@frob.com>
10893         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10894         volatile on type of ARGC so the compiler doesn't get clever.
10896 2002-01-07  Andreas Jaeger  <aj@suse.de>
10898         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10899         * sysdeps/i386/bits/byteswap.h: Likewise.
10900         * sysdeps/ia64/bits/byteswap.h: Likewise.
10901         * sysdeps/m68k/bits/byteswap.h: Likewise.
10902         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10903         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10905 2002-01-02  Bruno Haible  <bruno@clisp.org>
10907         * intl/plural.y: Fix %expect count.
10909 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10911         * elf/Makefile (routines, shared-only-routines): Add
10912         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10913         * elf/elf.h (PT_GNU_EH_FRAME): Define.
10914         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10915         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10916         Optimize if .eh_frame section contains no FDEs.
10917         (__register_frame, __deregister_frame_info_bases,
10918         __deregister_frame): Likewise.
10919         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10920         DW_CFA_restore handling.
10922 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
10924         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10926         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10927         for x < 0.25 and restore original range reduction method.
10928         (__ieee754_lgammal_r): Make sure signgam is set before returning.
10930 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
10932         * libio/fileops.c (_IO_file_underflow_mmap): New function.
10933         (_IO_file_close_mmap): New function.
10934         (_IO_file_jumps_mmap): New variable.
10935         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10936         trying to convert rest of byte buffer.
10937         (_IO_wfile_underflow_mmap): New function.
10938         (_IO_wfile_jumps_mmap): New variable.
10939         * libio/iofopen.c (__fopen_maybe_mmap): New function.
10940         (__fopen_internal): New function.  Split out from _IO_new_fopen.
10941         (_IO_new_fopen): Call __fopen_internal.
10942         * libio/iofopen64.c: Just call __fopen_internal.
10943         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10944         successfully.
10945         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10946         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10947         _IO_file_close_mmap.
10949         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10950         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10952         * stdio-common/Makefile (tests): Add tst-rndseek.
10953         * stdio-common/tst-rndseek.c: New file.
10955 2002-01-05  Roland McGrath  <roland@frob.com>
10957         * config.h.in (HAVE_MIG_RETCODE): New #undef.
10958         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10959         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10960         * sysdeps/mach/hurd/configure: Regenerated.
10962 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
10964         * elf/elf.h: Add more TLS definitions.
10966 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
10968         * include/features.h (__GLIBC_MINOR__): Bump to 3.
10970 2002-01-02  Roland McGrath  <roland@frob.com>
10972         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10973         __sigisemptyset.  Don't use MASK uninitialized.
10975         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10976         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10977         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10978         __sigdelset, __sigaddset, __sigorset.
10980         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10981         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10983         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10984         _hurd_ports is null.
10986         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10987         for old CMU and new OSF Mach interface flavors.
10988         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10989         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10991         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10993         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10994         Pass extra arguments to task_create for OSF variant.
10995         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10997         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10998         conditional on [HAVE_AUX_VECTOR].
11000         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
11001         mach_msg_timeout_t as type of final argument.
11003         * hurd/privports.c (__get_privileged_ports):
11004         Change host_priv_t to mach_port_t in argument type.
11005         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
11006         Update decls.
11008         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
11009         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
11010         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
11011         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
11012         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
11013         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
11015 2002-01-01  Roland McGrath  <roland@frob.com>
11017         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
11019 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
11021         * include/stdlib.h: Define inlines for the _l variants of the strto*
11022         functions.
11024 2002-01-01  Roland McGrath  <roland@frob.com>
11026         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
11028         * mach/Machrules (MIG): Set CPP as well as CC.
11030 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
11032         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
11033         locale to parse /proc/loadavg [PR libc/2760].
11035 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
11037         * elf/dl-conflict.c: Include sys/param.h.
11038         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
11039         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
11040         warning.
11041         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
11042         literals to avoid warnings.
11044 2001-12-31  Andreas Jaeger  <aj@suse.de>
11046         * configure.in: Don't check for gsed since we do not use it anywhere.
11048 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
11050         * io/fts.c: Update from BSD to fix memory leaks.
11052 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
11054         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
11055         * elf/chroot_canon.c: Likewise.
11056         * elf/dl-object.c: Likewise.
11057         * iconv/iconv_charmap.c: Likewise.
11058         * iconv/iconv_prog.c: Likewise.
11059         * libio/iogetdelim.c: Likewise.
11060         * locale/lc-time.c: Likewise.
11061         * stdlib/canonicalize.c: Likewise.
11062         * sunrpc/svc.c: Likewise.
11063         * sysdeps/generic/glob.c: Likewise.
11065 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11067         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
11068         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
11069         remove high order bit from the program counter.
11070         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
11072 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11074         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
11075         unnecessary code and add missing reloc types.
11076         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
11077         case for reloc type R_390_NONE.
11079 2001-12-28  Andreas Jaeger  <aj@suse.de>
11081         * io/bug-ftw3.c: Include string.h for prototypes.
11083         * crypt/md5test.c (main): Remove unused variable.
11085         * dlfcn/modstatic.c: Add prototype to avoid warning.
11087 2001-12-26  Roland McGrath  <roland@frob.com>
11089         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
11090         check only (SS->pending & MASK) for the signal to return.
11091         From Jeroen Dekkers <jeroen@dekkers.cx>.
11093 2001-12-22  Roland McGrath  <roland@frob.com>
11095         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
11096         Use preprocessor #if conditionals instead of `if' to avoid
11097         warnings about divide by zero in dead code.
11099         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
11100         _hurd_port_init, and __hurd_self_sigstate.
11102         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
11104 2001-12-21  Andreas Jaeger  <aj@suse.de>
11106         * elf/dblloadmod1.c: Add prototype to avoid warning.
11107         * elf/dblloadmod2.c: Likewise.
11108         * elf/dblloadmod3.c: Likewise.
11109         * elf/reldepmod5.c: Likewise.
11110         * elf/reldepmod6.c: Likewise.
11112         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
11113         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
11114         used on all architectures.
11116         * sunrpc/svc_tcp.c: Add noreturn attribute for
11117         svctcp_rendezvous_abort.
11118         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
11120         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
11121         to avoid warning.
11123 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
11125         * manual/llio.texi (aio_fsync): Fix a typo.
11126         Patch by Tammy Fox <tfox@redhat.com>.
11128 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
11130         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
11131         stack bias from child stack pointer before passing it to clone syscall.
11133 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
11135         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
11136         _SC_TZNAME_MAX.
11137         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
11138         Reported by Thorsten Kukuk <kukuk@suse.de>.
11140         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
11141         add some casts.
11143         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
11145 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
11147         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
11148         conforming: return EBADF if file descriptor is invalid and EINVAL
11149         if file descriptor is no valid tty.
11150         * login/tst-grantpt.c: New file.
11151         * login/Makefile (tests): Add tst-grantpt.
11153 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
11155         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
11156         different than implemented in last patch.
11157         * io/bug-ftw3.c: Adjust test for changed handling of
11158         inaccessibility of toplevel dir.
11160 2001-12-16  Roland McGrath  <roland@frob.com>
11162         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
11163         * grp/initgroups.c (internal_getgrouplist): Likewise.
11165         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
11166         `default:' to silence new GCC warning.
11167         Rewrite cast of lvalue to silence new GCC warning.
11169         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
11171         * sysdeps/mach/hurd/spawni.c: New file, by me with a
11172         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
11174 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
11176         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
11177         Patch by Stephen R. van den Berg.
11179         * crypt/md5.h: Define md5_uintptr.
11181 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
11183         * libio/tst_swprintf.c (main): Add test for string argument with
11184         zero precision.
11185         * stdio-common/Makefile (tests): Add tst-sprintf.
11186         * stdio-common/tst-sprintf.c: New file.
11188 2001-12-13  Andreas Schwab  <schwab@suse.de>
11190         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
11191         zero precision with wide character string format.
11193 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
11195         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
11196         but have a user supplied buffer, return the empty buffer, not NULL.
11198 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
11200         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
11201         Patch by Eric Sharkey <sharkey@netrics.com>.
11203         * crypt/md5test.c (main): Add test for multiple calls to
11204         __md5_process_bytes to itererate over input string.
11206 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
11208         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
11209         from __nis_findfastest.  Take timeout value from parameter.
11210         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
11211         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
11212         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
11214 2001-12-12  Andreas Jaeger  <aj@suse.de>
11216         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
11217         combreloc test so that it works in this case.
11219         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
11221 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
11223         * sysdeps/sh/Makefile: New file.
11224         * sysdeps/sh/_mcount.S: New file.
11225         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
11226         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
11228 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
11230         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
11231         limitation [PR libc/2564].
11233 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
11235         * elf/Makefile (dl-routines): Add conflict.
11236         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
11237         (ld.so): Add _begin local symbol.
11238         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
11239         Define.
11240         * elf/dl-deps.c (_dl_build_local_scope): New function.
11241         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
11242         of all libraries.
11243         * elf/do-rel.h (VALIDX): Define.
11244         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
11245         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
11246         can be skipped.
11247         * elf/dl-conflict.c: New file.
11248         * elf/dl-lookup.c (_dl_debug_bindings): New function.
11249         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
11250         non-NULL.
11251         (_dl_lookup_symbol_skip): Likewise.
11252         (_dl_lookup_versioned_symbol): Likewise.
11253         (_dl_lookup_versioned_symbol_skip): Likewise.
11254         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
11255         define to ElfW(Rel).
11256         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
11257         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
11258         ranges.
11259         Don't adjust address dynamic tags if l_addr is 0.
11260         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
11261         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
11262         (VALIDX, ADDRIDX): Define.
11263         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
11264         (dl_main): Print library list for LD_TRACE_PRELINKING.
11265         If prelinking information can be used, skip relocating libraries and
11266         call _dl_resolve_conflicts instead.
11267         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
11268         * elf/dl-load.c (_dl_map_object): Don't create fake libs
11269         if LD_TRACE_PRELINKING.
11270         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
11271         + DT_ADDRNUM.
11272         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
11273         (DL_DEBUG_PRELINK): Define.
11274         (_dl_resolve_conflicts): Add prototype.
11276         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
11277         .plt for prelinked libraries where prelinking info cannot be used.
11278         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
11279         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
11280         * sysdeps/arm/bits/link.h: New file.
11281         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
11282         content of .got[1].
11283         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
11284         (ELF_MACHINE_PLT_REL): Define.
11285         (elf_machine_rela, elf_machine_rela_relative): New functions.
11286         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
11287         of adjusting it if prelinked and prelinking cannot be used.
11288         * sysdeps/i386/bits/link.h: New file.
11289         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
11290         content of .got[1].
11291         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
11292         (ELF_MACHINE_PLT_REL): Define.
11293         (elf_machine_rela, elf_machine_rela_relative): New functions.
11294         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
11295         of adjusting it if prelinked and prelinking cannot be used.
11296         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
11297         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
11298         to find out map for R_PPC_JMP_SLOT relocs.
11299         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
11300         (OPCODE_BA): Define.
11301         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
11302         libraries where prelinking info cannot be used.
11303         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
11304         (elf_machine_fixup_plt): Call sparc_fixup_plt.
11305         (elf_machine_rela): Set value to 0 if relocating conflicts.
11306         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
11307         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
11308         (sparc64_fixup_plt): Fix a typo.
11309         (elf_machine_rela): Set value to 0 if relocating conflicts.
11310         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
11311         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
11312         libraries where prelinking info cannot be used.
11313         * sysdeps/sh/bits/link.h: New file.
11314         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
11315         content of .got[1].
11316         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
11317         of adjusting it if prelinked and prelinking cannot be used.
11318         * sysdeps/s390/s390-32/bits/link.h: New file.
11319         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
11320         Save original content of .got[1].
11321         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
11322         of adjusting it if prelinked and prelinking cannot be used.
11323         * sysdeps/s390/s390-64/bits/link.h: New file.
11324         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
11325         Save original content of .got[1].
11326         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
11327         of adjusting it if prelinked and prelinking cannot be used.
11328         * sysdeps/x86_64/bits/link.h: New file.
11329         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
11330         Save original content of .got[1].
11331         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
11332         of adjusting it if prelinked and prelinking cannot be used.
11334 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
11336         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
11337         where appropriate instead of numbers.  Little optimizations.
11339 2001-12-10  Roland McGrath  <roland@frob.com>
11341         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
11342         set it.
11344         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
11345         set to GLIBC_2.2.5, not GLIBC_2.2.4.
11347         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
11348         Fix conditionals so this is set by default for stdio and not for libio.
11349         * sysdeps/mach/hurd/configure: Regenerated.
11351 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
11353         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
11355 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
11357         * io/Makefile (tests): Add bug-ftw3.
11358         * io/bug-ftw3.c: New file.
11360         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
11361         matches and GLOB_NOCHECK is set.
11362         * posix/globtest.sh: Correct expected result for NOCHECK test.
11364         * po/ca.po: Update from translation team.
11366 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
11368         Implement transliteration of characters in strings of the locale
11369         definitions.
11370         * locale/programs/linereader.c: Adjust for additional parameter to
11371         lr_token.
11372         (get_string): If character <Uxxxx> is not found try to transliterate
11373         it.
11374         * locale/programs/ld-ctype.c: Adjust for additional parameter to
11375         lr_token.  Add const to charmap parameter of all functions.
11376         (find_translit, find_translit2): New functions.
11377         * locale/programs/charmap.c: Adjust for additional parameter to
11378         lr_token.
11379         * locale/programs/repertoire.c: Likewise.
11380         * locale/programs/linereader.h: Likewise.
11381         * locale/programs/ld-address.c: Likewise.  Add const to charmap
11382         parameter of all functions.
11383         * locale/programs/ld-collate.c: Likewise.
11384         * locale/programs/ld-identification.c: Likewise.
11385         * locale/programs/ld-measurement.c: Likewise.
11386         * locale/programs/ld-messages.c: Likewise.
11387         * locale/programs/ld-monetary.c: Likewise.
11388         * locale/programs/ld-name.c: Likewise.
11389         * locale/programs/ld-numeric.c: Likewise.
11390         * locale/programs/ld-paper.c: Likewise.
11391         * locale/programs/ld-paper.c: Likewise.
11392         * locale/programs/ld-telephone.c: Likewise.
11393         * locale/programs/ld-time.c: Likewise.
11394         * locale/programs/locfile.c: Likewise.
11395         * locale/programs/localedef.c: Likewise.
11396         * locale/programs/localedef.h: Likewise.
11397         * locale/programs/locfile.h: Likewise.  Add declaration for
11398         find_translit.
11399         * locale/programs/simple-hash.c: Add const to first parameter of
11400         find_entry, iterate_table, and lookup.
11401         * locale/programs/simple-hash.h: Likewise.
11402         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
11403         instead.
11404         * include/locale.h: Define __LC_LAST.
11405         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
11407 2001-12-07  Geoff Keating  <geoffk@redhat.com>
11409         * sysdeps/powerpc/Dist: Update for recent FP changes.
11410         * sysdeps/powerpc/fpu/Dist: Likewise.
11412 2001-12-07  Andreas Schwab  <schwab@suse.de>
11414         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
11416 2001-12-06  Geoff Keating  <geoffk@redhat.com>
11418         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
11419         save/restore functions here.
11420         (libm-support): Don't define these functions here.
11421         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
11422         functions here.
11423         * sysdeps/powerpc/fe_nomask.c: Move to...
11424         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
11425         * sysdeps/powerpc/fprrest.S: Move to...
11426         * sysdeps/powerpc/fpu/fprrest.S: ... here.
11427         * sysdeps/powerpc/fprsave.S: Move to...
11428         * sysdeps/powerpc/fpu/fprsave.S: ... here.
11430 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
11432         * sysdeps/unix/sysv/linux/opensock.c: New file.
11434 2001-12-06  Geoff Keating  <geoffk@redhat.com>
11436         * config.make.in (with-fp): Define from configure.
11437         * configure.in: Substitute with_fp.
11438         * configure: Regenerate.
11439         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
11440         specified, and don't change FPU environment.
11442 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
11444         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
11445         * assert/assert.c: Check result of __asprintf call and don't use
11446         string if it failed.
11447         * assert/assert-perr.c: Likewise.
11448         * inet/rcmd.c: Likewise.
11449         * locale/programs/localedef.c (main): Check result of
11450         construct_output_path and exit if it failed.
11451         (construct_output_path): Check result of asprintf and mkdir calls and
11452         fail if they failed.
11453         * posix/getopt.c: Check result of __asprintf calls and fail if
11454         they failed.
11455         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
11457 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11459         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
11460         patch.
11461         * sysdeps/generic/strncase.c: Likewise.
11462         * string/tester.c: Add tests for strcasecmp and strncasecmp.
11464 2001-12-05  Geoff Keating  <geoffk@redhat.com>
11466         * scripts/cpp: Test the exit status from 'type', not 'awk'.
11468         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
11469         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
11470         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
11471         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
11472         * sysdeps/powerpc/fclrexcpt.c: Move to...
11473         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
11474         * sysdeps/powerpc/fpu_control.h: Move to...
11475         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
11477 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11479         * iconvdata/ibm1129.h: Remove duplicate mappings.
11480         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
11481         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
11482         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11484         * timezone/zic.c: Fix handling of turnaround times.
11485         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
11487 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
11489         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
11490         overflow problem.
11492 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11494         * posix/regex.c: For use outside glibc defined bounded pointer
11495         macros here.  Patch by Jim Meyering <jim@meyering.net>.
11497         * iconvdata/Makefile (modules): Add TCVN5712-1.
11498         * iconvdata/TESTS: Add TCVN5712-1.
11499         * iconvdata/gconv-modules: Likewise.
11500         * iconvdata/tcvn5712-1.c: New file.
11501         * iconvdata/testdata/TCVN-5712: New file.
11502         * iconvdata/testdata/TCVN-5712..UTF8: New file.
11504 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
11506         * iconvdata/cp1258.c: Optimize conversion from UCS4.
11508 2001-12-02  Roland McGrath  <roland@frob.com>
11510         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
11512         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
11513         Reported by Jeff Bailey <jbailey@nisa.net>.
11515         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
11516         Reported by Jeff Bailey <jbailey@nisa.net>.
11518         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
11519         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
11520         Reported by Jeff Bailey <jbailey@nisa.net>.
11522 2001-12-01  Roland McGrath  <roland@frob.com>
11524         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
11525         missing backslash in test arguments.
11526         * sysdeps/mach/hurd/configure: Regenerated.
11528 2001-11-26  Roland McGrath  <roland@frob.com>
11530         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
11531         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
11533 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
11535         * iconvdata/Makefile (modules): Add ARMSCII-8.
11536         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
11537         * iconvdata/armscii-8.c: New file.
11539 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
11541         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
11542         don't match, fix {{a,b},c} globbing, clean up.
11543         Patch by Flavio Veloso <flaviovs@magnux.com>.
11544         * posix/globtest.sh: Add new tests.
11546 2001-11-29  Andreas Jaeger  <aj@suse.de>
11548         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
11549         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
11551         * sysdeps/generic/abort.c: Include libioP.h for
11552         _IO_flush_all_lockp prototype.
11554 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
11556         * posix/regex.h: Define __restrict_arr correctly.
11558 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11560         * iconvdata/ibm1163.c: New file.
11561         * iconvdata/ibm1163.h: New file.
11562         * iconvdata/ibm1164.c: New file.
11563         * iconvdata/ibm1164.h: New file.
11564         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
11565         * iconvdata/Makefile: Likewise.
11566         * iconvdata/testdata/IBM1163: New file.
11567         * iconvdata/testdata/IBM1163..UTF8: New file.
11568         * iconvdata/testdata/IBM1164: New file.
11569         * iconvdata/testdata/IBM1164..UTF8: New file.
11570         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11572         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
11573         * iconvdata/ibm1124.h: Likewise.
11574         * iconvdata/ibm1132.h: Likewise.
11575         * iconvdata/ibm1133.h: Likewise.
11576         * iconvdata/ibm1160.h: Likewise.
11577         * iconvdata/ibm1161.h: Likewise.
11578         * iconvdata/ibm1162.h: Likewise.
11579         * iconvdata/ibm856.h: Likewise.
11580         * iconvdata/ibm922.h: Likewise.
11581         * iconvdata/ibm930.h: Likewise.
11582         * iconvdata/ibm932.h: Likewise.
11583         * iconvdata/ibm933.h: Likewise.
11584         * iconvdata/ibm935.h: Likewise.
11585         * iconvdata/ibm937.h: Likewise.
11586         * iconvdata/ibm939.h: Likewise.
11587         * iconvdata/ibm943.h: Likewise.
11588         * iconvdata/ibm930.c: Pretty printing.
11589         * iconvdata/ibm937.c: Avoid access accross array boundary.
11591         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
11592         the current locale's codeset.
11593         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
11594         empty input string.
11595         * iconv/iconv_prog.c: Pass empty strings as default value for to-
11596         and from-charset.  Don't determine locale's charset here.
11598         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
11599         as the old _IO_flush_all but lock only if parameter is nonzero.
11600         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
11601         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
11602         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
11603         if libio is used [PR libc/2575].
11605 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
11607         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
11608         __signbitl): Only define for ISO C99.
11610 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11612         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
11613         herrnop to NETDB_INTERNAL if we run out of buffer space.
11615 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11617         * nss/nss_files/files-XXX.c (internal_getent): Correct input
11618         overflow test for platforms with signed char.
11619         Reported by Andrew Haley <aph@cambridge.redhat.com>.
11621 2001-11-28  Bruno Haible  <bruno@clisp.org>
11623         * locale/programs/simple-hash.c (lookup_2): Remove function.
11624         (insert_entry_2): Call lookup instead of lookup_2.
11626 2001-03-04  Bruno Haible  <bruno@clisp.org>
11628         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
11630 2001-10-31  Bruno Haible  <bruno@clisp.org>
11632         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
11634 2001-03-21  Bruno Haible  <bruno@clisp.org>
11636         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
11637         chokes on empty macro arguments.
11638         * intl/plural.y: Add #pragma for alloca on AIX 3.
11640 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11642         * intl/dcigettext.c (guess_category_value): Only implement for
11643         glibc.  Otherwise rely on function _nl_locale_name which isn't
11644         present in the glibc sources.
11646 2001-09-24  Bruno Haible  <bruno@clisp.org>
11648         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
11649         transliteration when building on a glibc system but outside glibc.
11651 2001-09-22  Bruno Haible  <bruno@clisp.org>
11653         * intl/plural-eval.c: New file, extracted from dcigettext.c.
11654         * intl/dcigettext.c (plural_eval): Remove function, moved to
11655         intl/plural-eval.c.
11656         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
11657         Include plural-eval.c.
11659 2001-09-22  Bruno Haible  <bruno@clisp.org>
11661         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
11662         don't start with a digit; nplurals must be positive.
11664 2001-09-02  Bruno Haible  <bruno@clisp.org>
11666         * intl/plural-exp.h: New file, extracted from gettextP.h.
11667         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
11668         * intl/gettextP.h (struct expression, struct parse_args,
11669         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
11670         * intl/loadmsgcat.c: Include plural-exp.h.
11671         (PLURAL_PARSE): Move macro to plural-exp.h.
11672         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
11673         plural-exp.c.
11674         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
11675         EXTRACT_PLURAL_EXPRESSION.
11676         (_nl_unload_domain): Update.
11677         * intl/dcigettext.c: Include plural-exp.h.
11678         * intl/plural.y: Include plural-exp.h, not gettextP.h.
11679         (FREE_EXPRESSION): Move macro to plural-exp.h.
11680         * intl/Makefile (routines): Add plural-exp.
11681         (distribute): Add plural-exp.h.
11683 2001-07-28  Bruno Haible  <bruno@clisp.org>
11685         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
11686         isdigit, tolower argument to 'unsigned char'.
11687         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
11688         'unsigned char'.
11689         * intl/localealias.c (read_alias_file): Cast isspace argument to
11690         'unsigned char'.
11692 2001-10-20  Bruno Haible  <bruno@clisp.org>
11694         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
11695         anyway.)
11696         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
11697         with the variable 'index' in plural_lookup.
11698         * intl/l10nflist.c (strchr): Likewise.
11699         * intl/localealias.c (strchr): Likewise.
11701         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11702         * intl/bindtextdom.c: Likewise.
11703         * intl/dcigettext.c: Likewise.
11704         * intl/dgettext.c: Likewise.
11705         * intl/dngettext.c: Likewise.
11706         * intl/explodename.c: Likewise.
11707         * intl/finddomain.c: Likewise.
11708         * intl/gettext.c: Likewise.
11709         * intl/l10nflist.c: Likewise.
11710         * intl/loadmsgcat.c: Likewise.
11711         * intl/localealias.c: Likewise.
11712         * intl/ngettext.c: Likewise.
11713         * intl/textdomain.c: Likewise.
11714         * intl/gettext.h: Assume <limits.h> exists.
11716 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11718         * stdio-common/Makefile (tests): Add scanf11.
11719         * stdio-common/scanf11.c: New file.
11721 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11723         * version.h (RELEASE): Define as development.
11724         (VERSION): Set to 2.2.90.
11726 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11728         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11729         * nis/nss_nis/nis-grp.c: Likewise.
11730         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11732         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11733         * nis/nss_nis/nis-pwd.c: Likewise.
11734         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11736         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11737         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11738         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11740         * nscd/grpcache.c: Use strtoul instead of atol.
11741         * nscd/pwdcache.c: Likewise.
11742         * nss/getent.c: Likewise.
11744 2001-11-27  Paul Eggert  <eggert@twinsun.com>
11746         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11747         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11749 2001-11-19  Bruno Haible  <bruno@clisp.org>
11751         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11752         90%.
11753         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11754         improves the quality of the hash function, especially for short
11755         strings.
11757 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11759         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11760         are found call conv_error and not input_error [PR libc/2669].
11762         * math/bits/mathcalls.h: Mark ceil and floor as const.
11763         Reported by David Mosberger.
11765 2001-11-21  Jim Meyering  <meyering@lucent.com>
11767         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11768         Define to be __-prefixed.
11769         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11771 2001-11-26  Andreas Jaeger  <aj@suse.de>
11773         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11774         avoid warning.
11776 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
11778         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11779         initialization.
11781         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11782         unused variables.  Fix threshold for returning 1.0.
11784         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11785         argument.
11787         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11788         remove unused variables.
11790         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11792         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11793         include local math header files.
11795 2001-11-22  Andreas Jaeger  <aj@suse.de>
11797         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11798         avoid warning.
11800 2001-11-21  Andreas Jaeger  <aj@suse.de>
11802         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11804         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11805         sys/debugreg.h
11807 2001-11-15  Andreas Jaeger  <aj@suse.de>
11809         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11810         compilers that support it.
11812         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11813         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11814         * stdlib/stdlib.h: Likewise.
11816 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
11818         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11819         statement with gotos.
11820         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11822 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
11824         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11826 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
11828         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11830 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
11831             H.J. Lu  <hjl@gnu.org>
11833         * Versions.def (libc): Add GCC_3.0.
11834         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11835         if gcc supports this flag.
11836         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11837         (gcc3): Allow glibc to be compiled with gcc 3.x.
11838         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11839         * config.make.in (static-libgcc, unwind-find-fde): Add.
11840         * Makerules (build-shlib-helper, build-module-helper): Use it.
11841         * scripts/versions.awk: Make sure GLIBC_ versions come first.
11842         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11843         necessary.
11844         (_fini): Call __deregister_frame_info_bases if
11845         __register_frame_info_bases was used to register.
11846         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11847         for GLIBC_2.0.
11848         (__register_frame_info_bases, __register_frame_info_table_bases,
11849         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11850         * elf/Makefile (routines): Add unwind-dw2-fde.
11851         (shared-only-routines): Add unwind-dw2-fde.
11852         * sysdeps/alpha/gccframe.h: New file.
11853         * sysdeps/arm/gccframe.h: New file.
11854         * sysdeps/generic/framestate.c: New file.
11855         * sysdeps/generic/dwarf2.h: New file.
11856         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11857         * sysdeps/generic/unwind-dw2-fde.c: New file.
11858         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11859         * sysdeps/generic/unwind-dw2-fde.h: New file.
11860         * sysdeps/generic/unwind-dw2.c: New file.
11861         * sysdeps/generic/unwind-pe.h: New file.
11862         * sysdeps/generic/unwind.h: New file.
11863         * sysdeps/hppa/gccframe.h: New file.
11864         * sysdeps/i386/gccframe.h: New file.
11865         * sysdeps/m68k/gccframe.h: New file.
11866         * sysdeps/mips/gccframe.h: New file.
11867         * sysdeps/powerpc/gccframe.h: New file.
11868         * sysdeps/s390/gccframe.h: New file.
11869         * sysdeps/sh/gccframe.h: New file.
11870         * sysdeps/sparc/gccframe.h: New file.
11871         * sysdeps/vax/gccframe.h: New file.
11872         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11873         Set on all architectures except ia64.
11874         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11875         for i386.
11876         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11877         __deregister_frame_info): Move to elf/Versions.
11878         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11879         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11880         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11881         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11882         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11883         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11884         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11885         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11886         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11887         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11888         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11889         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11890         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11891         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11892         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11893         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11894         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11895         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11897 2001-11-15  Jeff Law  <law@redhat.com>
11899         * posix/regex.c (uintptr_t): Do not provide a definition if the
11900         system provided one.
11902 2001-11-13  Roland McGrath  <roland@frob.com>
11904         * stdio-common/tmpfile.c: Moved to ...
11905         * sysdeps/generic/tmpfile.c: ... here.
11906         * sysdeps/mach/hurd/tmpfile.c: New file.
11908         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11909         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11910         (fopenport): Define as weak alias.
11912         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11913         * libio/libioP.h: ... to here.
11915 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
11917         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11918         program header twice.  Construct list with the needed information.
11920 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
11922         * po/ca.po: Update from translation team.
11924         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11925         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
11926         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11927         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11929 2001-11-10  Andreas Jaeger  <aj@suse.de>
11931         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11932         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11933         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11935 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11937         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11938         correctly.
11939         * elf/dl-load.c (is_dst): New function.
11940         (_dl_dst_count): Use is_dst to check for DST variable.
11941         (_dl_dst_substitute): Likewise.
11943 2001-11-09  Roland McGrath  <roland@frob.com>
11945         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11946         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11947         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11948         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11949         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11950         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11951         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11952         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11953         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11954         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11955         * sysdeps/mach/hurd/powerpc/Dist: New file.
11957         * hurd/privports.c (__get_privileged_ports):
11958         Only contact the proc server if necessary for this call.
11959         Suggested by Neal H Walfield <neal@cs.uml.edu>.
11960         Check error return for mach_port_mod_refs.
11962 2001-11-09  Andreas Schwab  <schwab@suse.de>
11964         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11966 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11968         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
11969         object is always the last in the list.
11970         (_dl_map_object_from_fd): Delete code to remove from object list
11971         when DF_1_NOOPEN is seen.  This is done in lose.
11973 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
11975         * elf/dl-object.c (_dl_new_object): Various small optimizations.
11977 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
11979         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11980         HWCAP_CHECK macro code.
11982         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11983         Now returns MAP_FAILED on error.
11984         * elf/rtld.c: Adjust caller.
11985         * sysdeps/generic/dl-cache.c: Likewise.
11986         * sysdeps/generic/ldsodefs.h: Adjust description.
11988         * elf/dl-version.c (match_symbol): Optimize error handling for size.
11989         (_dl_check_map_versions): Likewise.
11991 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11993         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11994         _dl_signal_error directly, always use lose.  Set fd to -1 after
11995         file is closed.
11996         (lose): Don't call close if fd == -1.
11998 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
12000         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
12001          Also fix typo @code {mbsinit} to @code{mbsinit}.
12003 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
12005         * elf/dl-profile.c: Replace state variable with simple flag named
12006         running.  Remove commented-out code.
12008         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
12009         (_dl_init_paths): Likewise.
12010         (_dl_map_object_from_fd): Likewise.
12011         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
12013 2001-11-06  Roland McGrath  <roland@frob.com>
12015         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
12016         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
12018         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
12019         sysdeps/powerpc/elf/sysdep.h.
12020         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
12022 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
12024         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
12025         speed.
12026         (process_envvars): Some more optimizations.
12027         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
12029         * elf/elf.h: Add dynamic tag definitions for prelinking.
12031         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
12032         Rewrite code to remove environment varables for SUID binaries.
12033         Small optimization in LD_PROFILE handling.
12034         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
12035         changes.
12036         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
12038         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
12040         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
12041         strings.  Change type of second parameter.
12042         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
12043         for last change.
12045         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
12047 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
12049         * manual/string.texi: Fix typos.
12050         * manual/examples/argp-ex2.c: Likewise.
12052 2001-11-05  Roland McGrath  <roland@frob.com>
12054         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
12055         the more-specific unix/sysv/linux/powerpc file and breaks everything.
12056         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
12057         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
12058         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
12059         here, put under [__ELF__].
12061 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
12063         * manual/charset.texi: Extensive editing work.
12064         * manual/nss.texi: Likewise.
12065         Changes by Dennis Grace <dgrace@us.ibm.com>.
12067 2001-11-04  Roland McGrath  <roland@frob.com>
12069         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
12070         parameter to dir_mkfile.
12072 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
12074         * string/bits/string2.h (__strndup): If n is smaller than len, set
12075         len to n + 1.
12076         * string/tester.c (test_strndup): New function.
12077         (main): Call it.
12079 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
12081         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
12083         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
12084         * scripts/cpp: New file.
12086         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
12087         for rtld_search_dirs content.  Minor optimizations.
12089 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
12091         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
12092         avoiding unnecessary duplication.
12094 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
12096         * elf/dl-load.c (_dl_map_object): If library was found using
12097         LD_LIBRARY_PATH, don't try RUNPATH list.
12099 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12101         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
12102         Correct second argument of register_dump call.
12103         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
12104         Likewise.
12106 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
12108         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
12109         modules.
12110         * iconvdata/TESTS: Likewise.
12111         * iconvdata/gconv-modules: Likewise.
12112         * iconvdata/ibm1132.c: New file.
12113         * iconvdata/ibm1132.h: New file.
12114         * iconvdata/ibm1133.c: New file.
12115         * iconvdata/ibm1133.h: New file.
12116         * iconvdata/ibm1162.c: New file.
12117         * iconvdata/ibm1162.h: New file.
12118         * iconvdata/testdata/IBM1132: New file.
12119         * iconvdata/testdata/IBM1132..UTF8: New file.
12120         * iconvdata/testdata/IBM1133: New file.
12121         * iconvdata/testdata/IBM1133..UTF8: New file.
12122         * iconvdata/testdata/IBM1162: New file.
12123         * iconvdata/testdata/IBM1162..UTF8: New file.
12124         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
12126         * string/string.h: Fix typo in comment.
12127         * wcsmbs/wchar.h: Likewise.
12129 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
12131         * manual/getopt.texi (getopt_long, getopt_long_only): Include
12132         const in type of longopts parameter.
12134 2001-10-29  Andreas Jaeger  <aj@suse.de>
12136         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
12138 2001-10-29  Kevin Ryde  <user42@zip.com.au>
12140         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
12141         output, clarify `#' behaviour on 0.
12142         (Floating-Point Conversions): Clarify that %g only uses %e when
12143         the exponent would be greater than 1.
12145 2001-10-28  Roland McGrath  <roland@frob.com>
12147         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
12148         * sysdeps/mach/powerpc/machine-sp.h: New file.
12149         * sysdeps/mach/powerpc/sysdep.h: New file.
12150         * sysdeps/mach/powerpc/thread_state.h: New file.
12152         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
12153         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
12154         expect to need the same thing on every platform.
12156         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
12157         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
12159         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
12160         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
12161         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
12162         Move all these assembly-related definitions to ...
12163         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
12165         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
12166         by Peter Bruin <pjbruin@dds.nl>.
12168         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
12169         packing results for a `poll' call.
12171 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
12173         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
12174         correctly.
12175         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
12176         bracket expression.
12178         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12179         nrules value.
12180         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
12182 2001-10-24  H.J. Lu  <hjl@gnu.org>
12184         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
12185         Use __BEGIN_DECLS/__END_DECLS around prototypes.
12186         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
12188 2001-10-21  Jim Meyering  <meyering@lucent.com>
12190         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
12191         this code would end up calling gettext even in packages built
12192         with --disable-nls.
12193         * posix/getopt.c (_): Likewise.
12194         * posix/regex.c (_): Likewise.
12196 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
12198         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
12199         lookup not ip6.int.
12200         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
12201         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
12203 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
12205         * misc/sys/cdefs.h (__attribute_used__): Define.
12206         * elf/rtld.c (_dl_start): Add __attribute_used__.
12207         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
12209 2001-10-25  Andreas Schwab  <schwab@suse.de>
12211         * stdlib/a64l.c: Expect least significant digit first.
12212         * stdlib/l64a.c: Produce least significant digit first.
12213         * stdlib/Makefile (tests): Add test-a64l.
12214         * stdlib/test-a64l.c: New file.
12215         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
12217 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
12219         * po/sk.po: Update from translation team.
12221 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
12223         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
12225 2001-10-18  Andreas Schwab  <schwab@suse.de>
12227         * math/libm-test.inc (print_ulps): Print ulp values rounded to
12228         next whole number.
12229         (print_function_ulps): Likewise.
12230         (print_complex_function_ulps): Likewise.
12231         (print_max_error): Likewise.
12232         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
12234 2001-10-16  Andreas Schwab  <schwab@suse.de>
12236         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
12237         implementation.
12239         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
12240         BSD_SETJMP or BSD__SETJMP is defined, resp.
12241         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
12242         a tail call to __sigsetjmp that would require extending the
12243         caller's frame.
12244         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
12245         * sysdeps/m68k/bsd-setjmp.S: Deleted.
12246         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
12247         Reported by Jes Sorensen <jes@trained-monkey.org>.
12249 2001-10-16  Andreas Jaeger  <aj@suse.de>
12251         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
12252         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
12253         close PR libc/2589.
12255 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
12257         * po/ca.po: New file.  Contributed by the translation team.
12259 2001-10-15  Ralf Baechle  <ralf@gnu.org>
12261         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
12262         a varargs prototype.  Remove dependency from kernel header files.
12264         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
12265         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
12267 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
12269         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
12270         to generate hexadecimal identifier.
12271         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
12273 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
12275         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
12277 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
12279         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
12280         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
12281         Contributed by Stephen L Moshier <moshier@mediaone.net>.
12283         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
12284         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12285         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
12286         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
12287         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
12288         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
12290         * timezone/africa: Update from tzdata2001d.
12291         * timezone/asia: Likewise.
12292         * timezone/australasia: Likewise.
12293         * timezone/backward: Likewise.
12294         * timezone/europe: Likewise.
12295         * timezone/leapseconds: Likewise.
12296         * timezone/northamerica: Likewise.
12297         * timezone/southamerica: Likewise.
12298         * timezone/zone.tab: Likewise.
12300 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12302         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
12303         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
12305 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
12307         * elf/elf.h (PT_TLS): New definition.
12309 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
12311         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
12312         bits/errno.h
12314 2001-10-07  Roland McGrath  <roland@frob.com>
12316         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
12318 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
12320         * elf/elf.h: Add more ELFOSABI_* constants.
12322 2001-10-04  Ben Collins  <bcollins@debian.org>
12324         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
12325         decleration of __need_wchar_t.
12327 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
12329         * string/bits/string2.h (__strsep_g): Add prototype.
12330         (__strsep): Use it.
12331         * string/Versions (__strsep): Remove.
12332         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
12334 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
12336         * manua/llio.texi: Clarify file references added by mmap.
12337         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
12339 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
12341         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
12342         Add sc_loadrs and sc_rbs_bas to match current kernel.
12344 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
12346         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
12348         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
12350 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
12352         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
12353         object has been bumped because of relocation dependency, avoid
12354         duplicates in l_scope.
12355         (show_scope): Fix typos.
12356         * elf/Makefile: Add rules to build and run reldep6.
12357         * elf/reldep6.c: New file.
12358         * elf/reldep6mod0.c: New file.
12359         * elf/reldep6mod1.c: New file.
12360         * elf/reldep6mod2.c: New file.
12361         * elf/reldep6mod3.c: New file.
12362         * elf/reldep6mod4.c: New file.
12364 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
12366         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
12367         sparc64_fixup_plt.
12368         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
12369         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
12370         for non-lazy binding. Fix .plt[32768+] handling.
12371         (elf_machine_plt_value): Don't add addend.
12372         (elf_machine_rela): Call sparc64_fixup_plt instead of
12373         elf_machine_fixup_plt.
12374         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
12375         dynamic linker at 0xfffff800XXXXXXXX.
12377         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
12379 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
12381         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
12383 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
12385         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
12386         declare __cmsg_data field if its size would be bigger than 0.
12387         (CMSG_DATA): Adjust accordingly.
12388         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
12389         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
12390         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
12391         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
12392         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12393         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
12394         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12396 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
12398         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
12399         * iconvdata/testdata/IBM1160: New file.
12400         * iconvdata/testdata/IBM1160..UTF8: New file.
12401         * iconvdata/testdata/IBM1161: New file.
12402         * iconvdata/testdata/IBM1161..UTF8: New file.
12403         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
12405 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
12407         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
12408         UL_SETFSIZE computations better.
12410         * rt/Makefile: Remove use of filter for librt again.
12412         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
12413         UL_SETFSIZE computations better.
12415         * string/Versions: Export __strsep for GLIBC_2.2.5.
12416         * string/bits/string2.h: Define all __STRING_INLINE functions if
12417         _FORCE_INLINES is defined.
12418         Use int instead of char of parameter types.
12419         (__strsep): Don't use __strsep_g.  Don't define it.
12420         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
12421         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
12422         __strcpy_small.
12423         (__stpcpy_a_small): Renamed from __stpcpy_small.
12424         (__strcspn_c1): Don't define if _FORCE_INLINES.
12425         (__strspn_c1): Likewise.
12427 2001-09-22  Ben Collins  <bcollins@debian.org>
12429         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
12430         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
12431         * sysdeps/ia64/bits/sigaction.h: Likewise.
12432         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
12434 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
12436         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
12438 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
12440         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
12442 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
12444         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
12446 2001-09-20  H.J. Lu  <hjl@gnu.org>
12448         * include/dlfcn.h (__RTLD_SPROF): New definiton.
12449         * elf/dl-open.c (dl_open_worker): Return immediately after loading
12450         for __RTLD_SPROF.
12451         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
12452         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
12454 2001-09-20  H.J. Lu  <hjl@gnu.org>
12456         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
12457         don't add 1.
12459 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
12461         * nss/getent.c: Accept -s parameter to overwrite rules in
12462         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
12464         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
12465         with as many ".0" as necessary to form a complete address
12466         inet_network understands.
12468         * nss/getent.c: Various cleanups.  Use simpler and fewer function
12469         calls.
12471 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12473         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
12474         _JMPBUF_UNWINDS.
12475         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
12477 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
12479         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
12480         IBM1161.
12481         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
12482         * iconvdata/ibm1160.c: New file.
12483         * iconvdata/ibm1160.h: New file.
12484         * iconvdata/ibm1161.c: New file.
12485         * iconvdata/ibm1161.h: New file.
12486         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
12488 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
12490         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
12491         difference between base address and first PT_LOAD's virtual address,
12492         not the base address.
12494 2001-09-11  Tom Rix  <trix@redhat.com>
12496         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
12497         ifdef for __getopt_clean_environment.
12498         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
12500 2001-09-22  Andreas Jaeger  <aj@suse.de>
12502         * elf/reldep4.c (main): Add proper prototype to fix warning.
12504         * elf/reldep5.c (main): Remove unused variable.
12506         * math/math_private.h: Add prototypes.
12508 2001-09-21  Andreas Jaeger  <aj@suse.de>
12510         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
12511         * sysdeps/x86_64/Dist: New file.
12512         * sysdeps/x86_64/soft-fp/Dist: New file.
12514         * sysdeps/gnu/Dist: Remove eval.c.
12516 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
12518         * malloc/memusage.c (realloc): Don't count already allocated
12519         memory in the sums.
12520         (me): Always use dlsym() to find the real implementations.
12522         * malloc/memusage.sh: Make -n option actually do something.
12524 2001-09-20  Andreas Jaeger  <aj@suse.de>
12526         * elf/elf.h (R_390_NUM): Correct value.
12528         * Versions.def: Add missing versions 2.2.3 for libthread_db and
12529         libpthread.
12531         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
12532         for x86-64, install x86-64 into */lib64.
12534         * shlib-versions: Add x86-64.
12536         * elf/elf.h: Add x86-64 relocations.
12538 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
12540         * po/fr.po: Update from translation team.
12542 2001-09-19  Andreas Jaeger  <aj@suse.de>
12544         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
12545         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
12546         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
12547         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
12548         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
12549         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
12550         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
12551         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
12552         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
12553         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
12554         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
12555         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
12556         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
12557         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
12558         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
12559         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
12560         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
12561         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
12562         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
12563         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
12564         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
12565         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
12566         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
12567         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
12568         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
12569         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
12570         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
12571         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
12572         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
12573         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
12574         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
12575         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
12576         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
12577         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
12578         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
12579         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
12580         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
12581         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
12582         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
12583         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
12584         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
12585         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
12586         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
12587         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
12588         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
12589         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
12590         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
12591         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
12592         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
12593         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
12594         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
12595         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
12596         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
12597         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
12598         * sysdeps/unix/x86_64/sysdep.S: New file.
12599         * sysdeps/unix/x86_64/sysdep.h: New file.
12600         * sysdeps/x86_64/Implies: New file.
12601         * sysdeps/x86_64/Makefile: New file.
12602         * sysdeps/x86_64/Versions: New file.
12603         * sysdeps/x86_64/__longjmp.S: New file.
12604         * sysdeps/x86_64/abort-instr.h: New file.
12605         * sysdeps/x86_64/atomicity.h: New file.
12606         * sysdeps/x86_64/bits/endian.h: New file.
12607         * sysdeps/x86_64/bits/setjmp.h: New file.
12608         * sysdeps/x86_64/bits/string.h: New file.
12609         * sysdeps/x86_64/bp-asm.h: New file.
12610         * sysdeps/x86_64/bsd-_setjmp.S: New file.
12611         * sysdeps/x86_64/bsd-setjmp.S: New file.
12612         * sysdeps/x86_64/dl-machine.h: New file.
12613         * sysdeps/x86_64/elf/initfini.c: New file.
12614         * sysdeps/x86_64/elf/start.S: New file.
12615         * sysdeps/x86_64/ffs.c: New file.
12616         * sysdeps/x86_64/ffsll.c: New file.
12617         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
12618         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
12619         * sysdeps/x86_64/fpu/e_acosl.c: New file.
12620         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
12621         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
12622         * sysdeps/x86_64/fpu/e_expl.c: New file.
12623         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
12624         * sysdeps/x86_64/fpu/e_log10l.S: New file.
12625         * sysdeps/x86_64/fpu/e_log2l.S: New file.
12626         * sysdeps/x86_64/fpu/e_logl.S: New file.
12627         * sysdeps/x86_64/fpu/e_powl.S: New file.
12628         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
12629         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
12630         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
12631         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
12632         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
12633         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
12634         * sysdeps/x86_64/fpu/fegetenv.c: New file.
12635         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
12636         * sysdeps/x86_64/fpu/fegetround.c: New file.
12637         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
12638         * sysdeps/x86_64/fpu/fesetenv.c: New file.
12639         * sysdeps/x86_64/fpu/fesetround.c: New file.
12640         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
12641         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
12642         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
12643         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
12644         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
12645         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
12646         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
12647         * sysdeps/x86_64/fpu/s_atanl.c: New file.
12648         * sysdeps/x86_64/fpu/s_cosl.S: New file.
12649         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
12650         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
12651         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
12652         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
12653         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
12654         * sysdeps/x86_64/fpu/s_logbl.c: New file.
12655         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
12656         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
12657         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
12658         * sysdeps/x86_64/fpu/s_rintl.c: New file.
12659         * sysdeps/x86_64/fpu/s_significandl.c: New file.
12660         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
12661         * sysdeps/x86_64/fpu/s_sinl.S: New file.
12662         * sysdeps/x86_64/fpu/s_tanl.S: New file.
12663         * sysdeps/x86_64/gmp-mparam.h: New file.
12664         * sysdeps/x86_64/hp-timing.c: New file.
12665         * sysdeps/x86_64/hp-timing.h: New file.
12666         * sysdeps/x86_64/htonl.S: New file.
12667         * sysdeps/x86_64/memusage.h: New file.
12668         * sysdeps/x86_64/setjmp.S: New file.
12669         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
12670         * sysdeps/x86_64/stackinfo.h: New file.
12671         * sysdeps/x86_64/sysdep.h: New file.
12672         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
12674         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
12675         L Moshier.
12677 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12679         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
12680         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
12682 2001-09-18  Andreas Schwab  <schwab@suse.de>
12684         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
12685         list, now that l_scope is a pointer.
12687         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
12688         scope list.
12690 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12692         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
12693         (elf_machine_rela_relative): Add a missing declaration.
12695 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
12697         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
12698         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
12699         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
12700         ldd-rewrite scripts.
12702 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12704         * elf/ldd.bash.in: Update copyright message.
12706 2001-09-17  H.J. Lu  <hjl@gnu.org>
12708         * hurd/hurdmalloc.c (bcopy): Removed.
12709         (realloc): Replace bcopy with memcpy.
12710         * hurd/path-lookup.c (file_name_path_scan): Likewise.
12711         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12712         * sunrpc/rpcinfo.c (pmapdump): Likewise.
12714         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12715         (gethostbyaddr): Likewise.
12716         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12718 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12720         * sysdeps/gnu/eval.c: Removed.
12722 2001-09-18  Andreas Jaeger  <aj@suse.de>
12724         * sysdeps/i386/fpu/s_logbl.S: Move to ...
12725         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12727         * sysdeps/i386/fpu/s_rintl.S: Move to ...
12728         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12730         * sysdeps/i386/fpu/s_significandl.S: Move to ...
12731         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12733 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
12735         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12736         nrules value.
12738 2001-09-14  H.J. Lu  <hjl@gnu.org>
12740         * sysdeps/mips/fpu/libm-test-ulps: Updated.
12742 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
12744         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12745         Patch by Florian La Roche <laroche@redhat.com>.
12747         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12749         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12750         ETHER_CRC_LEN.
12752 2001-09-14  Andreas Schwab  <schwab@suse.de>
12754         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
12755         Sumner <bls@sgi.com>.
12756         * posix/execlp.c: Likewise.
12758 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
12760         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12761         is already found earlier in the search scope.
12763 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
12765         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12766         filter.
12768 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
12770         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12772 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
12774         * config.h.in: Enforce optimization to be used.
12775         * Makeconfig (preprocess-versions): Define ASSEMBLER.
12776         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12777         * posix/Makefile (annexc-CFLAGS): Define to -O.
12778         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12780 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
12782         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12783         Patch by Stephan Kulow.
12785 2001-09-08  Ben Collins  <bcollins@debian.org>
12787         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12788         usage of RESOLVE() (r_type, not reloc->r_type).
12790 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12792         * elf/dl-object.c: Avoid allocating extra memory block for name.
12793         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12794         allocated separately.
12795         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12797 2001-09-08  H.J. Lu  <hjl@gnu.org>
12799         * po/zh_TW.po: Fix a typo.
12801 2001-09-07  Tom Rix  <trix@redhat.com>
12803         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12805 2001-08-26  Tom Rix  <trix@redhat.com>
12807         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12808         command line options.
12809         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12810         * sysdeps/unix/sysv/aix/start.c: Removed.
12811         * sysdeps/unix/sysv/aix/start-libc.c: New file.
12812         * sysdeps/unix/sysv/aix/init-first.c: New file.
12813         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12815 2001-09-08  Ben Collins  <bcollins@debian.org>
12817         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12818         * sysdeps/generic/dl-machine.h: Likewise.
12819         * sysdeps/hppa/dl-fptr.c: Likewise.
12820         * sysdeps/ia64/dl-fptr.c: Likewise.
12821         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12822         * sysdeps/mips/dl-machine.h: Likewise.
12823         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12824         * sysdeps/powerpc/dl-machine.c: Likewise.
12826 2001-09-07  Ben Collins  <bcollins@debian.org>
12828         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12830         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12832 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12834         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12835         dependencies if necessary.
12837         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12838         loaded directly) determine length if l_initfini list by iterating
12839         over its elements.  Minor optimizations.
12840         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12841         for dependency objects.
12842         If object was already loaded check whether any of the dependencies
12843         is already on the relocation dependency list.  If yes, remove the
12844         latter.  Minor optimizations.
12845         * elf/dl-lookup.c (add_dependency): Add check for self reference of
12846         maps here.  Search l_initfini list only if the object was loaded
12847         directly and not only as a dependency.
12848         (_dl_lookup_symbol): Add relocation dependency also if object
12849         is not in global scope.  Remove test for self-reference here.
12850         (_dl_lookup_versioned_symbol): Likewise.
12851         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
12852         element of first name record.
12853         * elf/loadtest.c: Add some more test to recognize early if an object
12854         wasn't unloaded.
12855         * elf/Makefile: Add rules to build and run reldep5.
12856         * elf/reldep5.c: New file.
12857         * elf/reldepmod5.c: New file.
12858         * elf/reldepmod6.c: New file.
12860         * elf/reldep2.c: Fix typo.
12862 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
12864         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12865         elements.  Change l_scope to be a pointer only.
12866         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12867         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12868         here add searchlist of newly open file to the dependency's scope.
12869         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12870         only searchlist from its scope.  Free own scope array if necessary.
12871         * elf/Makefile (tests): Add dblload and dblunload now.
12873 2001-09-06  Andreas Jaeger  <aj@suse.de>
12875         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12876         Stephen L Moshier.
12878 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
12880         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
12881         they both fail.
12882         * elf/dblload.c: New file.
12883         * elf/dblloadmod1.c: New file.
12884         * elf/dblloadmod2.c: New file.
12885         * elf/dblloadmod3.c: New file.
12886         * elf/dblunload.c: New file.
12888 2001-09-04  Richard Henderson  <rth@redhat.com>
12890         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12891         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12893 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12895         Correct very misleading message for error in failed runtime relocation.
12896         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12897         place of the error.
12898         (_dl_signal_cerror): Likewise.
12899         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12900         * elf/dl-close.c: Likewise.
12901         * elf/dl-deps.c: Likewise.
12902         * elf/dl-load.c: Likewise.
12903         * elf/dl-lookup.c: Likewise.
12904         * elf/dl-open.c: Likewise.
12905         * elf/dl-reloc.c: Likewise.
12906         * elf/dl-sym.c: Likewise.
12907         * elf/dl-version.c: Likewise.
12908         * sysdeps/generic/dl-sysdep.c: Likewise.
12910 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12912         * iconv/strtab.c (strtabinit): Initialize null Strent.
12913         (newstring): Move len == 0 handling...
12914         (strtabadd): ...here.
12915         If len == 1, return null Strent.
12916         When inserting a suffix of an existing string, check if
12917         it is not equal to some suffix already recorded.
12918         Copy left and right members over if adding longer string.
12920 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12922         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12924         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12925         (__syscall_gethostname): Add prototype.
12927 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12929         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12931 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
12933         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12935 2001-08-27  Roland McGrath  <roland@frob.com>
12937         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12938         short, copy that much into NAME anyway before returning error.
12940 2001-09-01  Richard Henderson  <rth@redhat.com>
12942         * sysdeps/alpha/elf/Dist: Remove file.
12943         * sysdeps/alpha/elf/Makefile: Remove file.
12944         * sysdeps/alpha/elf/crtbegin.S: Remove file.
12945         * sysdeps/alpha/elf/crtend.S: Remove file.
12946         * sysdeps/alpha/elf/initfini.c: New file.
12948 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
12950         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12951         * iconv/tst-iconv3.c: Likewise.
12953 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
12955         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12957 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
12959         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12960         export it.
12961         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12962         * iconv/iconv_prog.c (insert_cache): New function.
12963         (print_known_names): If cache is used call insert_cache to use the
12964         information from the cache [PR libc/2509].
12966 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
12968         * time/strptime.c (strptime_internal): Recognize 'l' format and
12969         handle it like 'I' for symmetry with strftime.
12971 2001-08-31  Richard Henderson  <rth@redhat.com>
12973         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12974         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12975         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12976         (print_statistics): Make scalar unsigned long long.
12977         * sysdeps/alpha/hp-timing.h: New file.
12979 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12981         * stdio-common/perror.c (perror): Save errno early, pass it
12982         down to perror_internal.
12983         (perror_internal): Add errnum argument.
12985 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12987         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12988         Don't add old memory content for R_ALPHA_REFQUAD.
12990 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12992         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12993         memory correctly.
12995         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12996         instead of open, __close instead of close, __getpagesize instead
12997         of getpagesize.
12999         * string/argz-stringify.c (__argz_stringify): Use __strnlen
13000         instead of strnlen.
13001         * include/string.h (strndupa): Redefine here to use __strnlen
13002         instead of strnlen.
13003         * string/strndup.c (__strndup): Use __strnlen not strnlen.
13005         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
13006         connected).
13008 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
13010         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
13011         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
13012         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
13013         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
13014         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
13015         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
13016         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
13018 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
13020         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
13022 2001-08-30  Andreas Jaeger  <aj@suse.de>
13024         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
13025         contributed Stephen L Moshier.
13027 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
13029         * sunrpc/etc.rpc (sgi_fam): Add.
13031 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
13033         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
13035 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
13037         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
13038         first is from a previous call.
13039         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
13041 2001-08-29  Andreas Schwab  <schwab@suse.de>
13043         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
13045 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
13047         * config.make.in (INSTALL_SCRIPT): Define.
13048         * Makeconfig (INSTALL_SCRIPT): Define.
13049         * Makerules (do-install-script): New macro to install scripts using
13050         INSTALL_SCRIPT.
13051         (install-bin-script): New rule to install scripts with
13052         do-install-script.
13053         (install-bin-script-nosubdir): New rule.
13054         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
13055         (distinfo-vars): Add $(install-bin-script).
13056         * Rules (others): Likewise.
13057         * Makefile (glibcbug): Install with install-bin-script.
13058         * debug/Makefile (xtrace): Likewise.
13059         (catchsegv): Likewise.
13060         * elf/Makefile (ldd): Likewise.
13061         * malloc/Makefile (mtrace): Likewise.
13062         * timezone/Makefile (tzselect): Likewise.
13064 2001-08-29  H.J. Lu  <hjl@gnu.org>
13066         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
13067         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
13068         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
13070 2001-08-29  Andreas Schwab  <schwab@suse.de>
13072         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
13074 2001-08-28  H.J. Lu  <hjl@gnu.org>
13076         * Makeconfig (combreloc-LDFLAGS): New variable.
13077         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
13078         * config.make.in (have-z-combreloc): New variable.
13079         * configure.in: Substitute libc_cv_z_combreloc.
13081 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
13083         * po/sv.po: Update from translation team.
13084         * po/fr.po: Likewise.
13085         * po/da.po: Likewise.
13087 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
13089         * Makerules: Fix a typo: MD% -> MD5.
13091 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
13093         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
13094         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
13096 2001-08-28  Andreas Jaeger  <aj@suse.de>
13098         * manual/libc-texinfo.sh: Add entry about free manuals.
13100         * manual/contrib.texi (Contributors): Fix cross reference.
13102         * manual/libc.texinfo (Copying): Include freemanuals.
13104         * manual/Makefile (appendices): Add freemanuals.
13106         * manual/freemanuals.texi: New file.
13107         Patch by Brian Youmans <3diff@gnu.org>.
13109         * manual/libm-err-tab.pl: Pretty print more platforms, print a
13110         smaller table.
13112         * manual/math.texi (Errors in Math Functions): Fix grammar, start
13113         table on separate page.
13114         Patch by Brian Youmans <3diff@gnu.org>.
13116 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
13118         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
13119         the connection went down after we first used it try to connect
13120         again and resend the message before printing to the console.
13121         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
13123 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
13125         * string/tst-strlen.c (main): Test strnlen (, -1) too.
13126         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
13127         bit set.
13129 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
13131         * iconv/strtab.c (searchstring): Use correct length for comparison.
13132         (strtabadd): Account total size correct if new string has old string as
13133         substring.
13135 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
13137         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
13139 2001-08-27  Andreas Jaeger  <aj@suse.de>
13141         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
13143         * math/libm-test.inc (j0_test): Add extra tests.
13144         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
13145         not x, in Hankel approximation.
13146         Patches by Stephen L Moshier.
13148 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
13150         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
13151         link_map.
13153         * configure.in: Fix test for .rela.dyn section.
13155         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
13157 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
13159         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
13160         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
13161         Pass type_class to _dl_lookup_*.
13162         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
13163         Pass around just type_class instead of noexec, noplt pair.
13164         (_dl_lookup_versioned_symbol): Likewise.
13165         (_dl_lookup_symbol_skip): Pass around just type_class instead of
13166         noexec, noplt pair.
13167         (_dl_lookup_versioned_symbol_skip): Likewise.
13168         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
13169         * elf/do-lookup.h (do_lookup): Likewise.
13170         * include/link.h (struct link_map): Replace noexec and noplt fields
13171         in l_lookup_cache with type_class field.
13172         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
13173         ELF_RTYPE_CLASS_COPY): Define.
13174         Adjust prototypes for _dl_lookup_symbol and
13175         _dl_lookup_versioned_symbol.
13176         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
13177         elf_machine_lookup_noexec_p): Remove.
13178         (elf_machine_type_class): Define.
13179         * sysdeps/arm/dl-machine.h: Likewise.
13180         * sysdeps/hppa/dl-machine.h: Likewise.
13181         * sysdeps/cris/dl-machine.h: Likewise.
13182         * sysdeps/i386/dl-machine.h: Likewise.
13183         * sysdeps/ia64/dl-machine.h: Likewise.
13184         * sysdeps/m68k/dl-machine.h: Likewise.
13185         * sysdeps/mips/mips64/dl-machine.h: Likewise.
13186         * sysdeps/mips/dl-machine.h: Likewise.
13187         * sysdeps/powerpc/dl-machine.h: Likewise.
13188         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13189         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13190         * sysdeps/sh/dl-machine.h: Likewise.
13191         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13192         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13194 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
13196         * manual/message.texi (Advanced gettext functions): Change
13197         description of plural forms for Slovak.
13198         Reported by Marcel Telka <marcel@telka.sk>.
13200         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
13201         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
13203 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
13205         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
13206         typo.  Patch by Florian La Roche <laroche@redhat.com>.
13208 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
13210         * include/link.h (struct link_map): Add l_lookup_cache element.
13211         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
13212         (RESOLVE_MAP): Likewise.
13213         (_dl_relocate_object): Remove cache initialization.
13214         * elf/dl-lookup.c: Rip out cache handling code.
13215         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
13216         declarations.
13218         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
13219         remove some __builtin_expect.
13220         (_dl_lookup_versioned_symbol): Likewise.
13222         * config.h.in: Add HAVE_Z_COMBRELOC.
13223         * configure.in: Add test for -z combreloc.
13225         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
13226         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
13227         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
13228         case to almost no code.
13230 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
13232         * po/tr.po: Update from translation team.
13234 2001-08-24  Andreas Jaeger  <aj@suse.de>
13236         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
13237         make clean works.
13239 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13241         * elf/rtld.c (print_statistics): Printf % after percent values.
13242         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
13244         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
13245         don't have to compute the hash value and initialize current_value.
13246         Move reference_name variable to where it is needed.
13247         (_dl_lookup_versioned_symbol): Likewise.
13249 2001-08-24  Roland McGrath  <roland@frob.com>
13251         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
13252         Just test that strerror returns non-null for a few errno codes.
13254 2001-08-23  Roland McGrath  <roland@frob.com>
13256         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
13257         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
13259         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
13261         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
13262         __mach_reply_port.
13264 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13266         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
13267         returns NULL.
13269         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
13270         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
13271         doesn't do it.
13272         * elf/rtld.c: Include <sys/param.h>.
13273         * elf/dl-reloc.c: Likewise.
13275 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
13277         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
13278         empty to prevent junk from being generated.
13279         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
13281 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
13283         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
13284         records.  Rename endrel to relative, initialize it to r, and use it
13285         in elf_machine_rel_relative calls.  Point r after relative relocs.
13287 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13289         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
13290         of R_386_NONE.
13292 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
13294         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
13295         necessary.  Undefine newly defined macros at the end.
13296         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
13297         Rename from elf_machine_rel_relative.
13298         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
13299         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
13300         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
13301         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
13302         Likewise.
13303         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
13304         Likewise.
13305         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
13306         Fix argument types.
13307         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
13308         Fix argument types.
13309         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
13310         Likewise.  Fix argument types.
13311         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
13312         Likewise.  Fix argument types.
13313         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
13314         Fix argument types.
13315         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
13316         ElfW(Rel) in argument.
13317         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
13318         function.
13320 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
13322         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
13324 2001-08-24  Andreas Jaeger  <aj@suse.de>
13326         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
13327         Stephen L Moshier <moshier@mediaone.net>.
13329 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13331         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
13332         first if RELCOUNT is set.
13334         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
13335         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
13336         elf_machine_rel_relative.
13337         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
13338         Minor optimizations.
13339         * sysdeps/arm/dl-machine.h: Likewise.
13340         * sysdeps/cris/dl-machine.h: Likewise.
13341         * sysdeps/hppa/dl-machine.h: Likewise.
13342         * sysdeps/i386/dl-machine.h: Likewise.
13343         * sysdeps/ia64/dl-machine.h: Likewise.
13344         * sysdeps/m68k/dl-machine.h: Likewise.
13345         * sysdeps/mips/dl-machine.h: Likewise.
13346         * sysdeps/powerpc/dl-machine.h: Likewise.
13347         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13348         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13349         * sysdeps/sh/dl-machine.h: Likewise.
13350         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13351         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13353 2001-08-23  Roland McGrath  <roland@frob.com>
13355         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
13357         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
13358         sysdeps/mach version.  Implement counting ("recursive") mutexes
13359         on top of cthreads mutexes.
13360         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
13362         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
13363         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
13364         (__libc_cleanup_region_start, __libc_cleanup_region_end,
13365         __libc_clean_end): Define these to call the cleanup function after
13366         normal exit when they're supposed to.
13368         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
13369         Take new first arg DOIT, a boolean saying whether to really install
13370         any cleanup handler.
13371         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
13372         (__libc_cleanup_end): Likewise.
13373         * sysdeps/generic/bits/libc-lock.h: Same changes.
13374         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
13375         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
13376         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
13377         Likewise.
13378         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
13379         * sysdeps/generic/bits/stdio-lock.h
13380         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
13382 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13384         * elf/ldconfig.c (search_dir): Remove stale symlinks.
13386 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13388         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
13389         functions.
13390         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
13391         lookups in cache.
13392         (_dl_lookup_versioned_symbol): Likewise.
13393         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
13394         relocation lookup.
13395         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
13396         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
13397         (lookup_cache, lookup_cache_versioned): Add declarations.
13399 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
13401         * stdlib/tst-random.c (main): Swap parameters in fail call.
13402         Patch by Pete Bevin <pete@petebevin.com>.
13404 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13406         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
13408 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
13410         * malloc/obstack.c: Indent preprocessor directives.
13411         Patch by Jim Meyering <meyering@ascend.com>.
13413         * po/ja.po: Update from translation team.
13415 2001-08-23  Roland McGrath  <roland@frob.com>
13417         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
13419         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
13420         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
13422 2001-08-22  Roland McGrath  <roland@frob.com>
13424         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
13425         __libc_lock_define_recursive.
13426         * elf/dl-open.c: Don't declare it here any more.
13427         * elf/dl-close.c: Likewise.
13428         * elf/dl-lookup.c: Likewise.
13429         * elf/dl-iteratephdr.c: Likewise.
13430         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
13431         __libc_lock_unlock_recursive.
13432         * elf/dl-close.c (_dl_close): Likewise
13433         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
13434         * elf/dl-open.c (_dl_open): Likewise
13436         * sysdeps/generic/bits/libc-lock.h
13437         (__libc_lock_define_recursive): New macro.
13438         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
13439         (_IO_lock_lock): Use __libc_lock_lock_recursive.
13440         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
13442         * conform/conformtest.pl (checknamespace): Sort the output list.
13444         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
13445         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
13446         definitions conditional on [__USE_XOPEN].
13448         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
13449         these unconditionally, not only use [__USE_BSD], so as to match
13450         the sysdeps/unix/sysv/linux files.
13452 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13454         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
13455         avoid warnings.
13457         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
13458         DL_LOOKUP_ADDRESS.
13460 2001-08-22  Roland McGrath  <roland@frob.com>
13462         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
13463         conditionalization of sa_handler/sa_sigaction member types to
13464         match the sysdeps/unix/sysv/linux file.
13466 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13468         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
13469         symbol sizes a bit better.
13471         * sysdeps/ia64/strncpy.S: Complete rewrite.
13472         Contributed by Jakub Jelinek <jakub@redhat.com>.
13474         * string/stratcliff.c (main): Add strncpy test.
13476 2001-08-22  Roland McGrath  <roland@frob.com>
13478         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
13479         and don't declare unsetenv or _environ directly.
13480         (unsetenv): Return int, not void.  Use __environ instead of _environ.
13482 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
13484         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
13485         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
13486         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
13487         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
13488         test for cmsg struct size.
13490 2001-04-23  Paul Eggert  <eggert@twinsun.com>
13492         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
13493         Rename __argc to ___argc in prototypes to avoid compatibility
13494         problems with systems that reserve the identifier "__argc".
13495         Similarly for __argv.
13497 2001-08-21  Roland McGrath  <roland@frob.com>
13499         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
13501         * mach/Makefile (tests): Removed.
13502         * mach/hello.c: File removed.
13504 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13506         * po/sv.po: Update from translation team.
13508         * stdio-common/vfscanf.c: Fix handling of %l[].
13509         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
13511         * libio/Makefile (tests): Add tst-sscanf.
13512         * libio/tst-sscanf.c: New file.
13514         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
13515         * malloc/mtrace.c (tr_where): dli_sname always points to a
13516         non-empty string if != NULL.
13517         Reported by Tim Janik <timj@gtk.org>.
13519 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
13521         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
13522         buf.  Free resources on failure.
13523         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
13524         (makefd_xprt): Likewise.
13525         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
13526         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
13527         * sunrpc/auth_unix.c (authunix_create): Likewise.
13529 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
13531         * string/strnlen.c: Remove.
13532         * sysdeps/generic/strnlen.c: New file.
13533         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
13535 2001-08-21  Roland McGrath  <roland@frob.com>
13537         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
13538         as a macro, not an extern inline function.
13540         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
13541         * Versions.def (libc): Add GLIBC_2.2.5 set.
13542         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
13543         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
13545 2001-08-20  Roland McGrath  <roland@frob.com>
13547         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
13548         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
13550 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
13552         * string/bits/string2.h: Remove strnlen optimization here.
13553         * sysdeps/i386/i486/bits/string.h: Add it here.
13555 2001-08-21  Wolfram Gloger  <wg@malloc.de>
13557         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
13559 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
13561         * po/gl.po: Update from translation team.
13563 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13565         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
13566         * misc/err.c (convert_and_print): Likewise.
13568         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
13569         function calls.
13571 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13573         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
13574         change of the gregset_t type.
13575         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13577 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
13579         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
13581 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13583         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
13585         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
13587 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
13589         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
13590         before calling the cthreads initialization code.
13592 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13594         * argp/argp-help.c: Fix two problems introduced in last change.
13596         * include/dirent.h: Include <dirstream.h> first.
13598 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
13600         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
13602         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
13603         * sunrpc/xdr_rec.c: Likewise.
13604         * sunrpc/xdr_mem.c: Likewise.
13605         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
13606         * sunrpc/rpc_cmsg.c: Likewise.
13607         * sunrpc/getrpcport.c (getrpcport): Likewise.
13608         * sunrpc/clnt_simp.c (callrpc): Likewise.
13609         * sunrpc/clnt_gen.c (clnt_create): Likewise.
13610         * string/envz.c: Likewise.
13612         * po/ko.po: Update from translation team.
13614         * argp/argp-help.c: Handle wide oriented stderr stream.
13616 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
13618         * sysdeps/generic/strtol.c: Little optimizations.  Add some
13619         __builtin_expect.
13621         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
13623         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
13624         * wcsmbs/wcwidth.c (wcwdith): Likewise.
13625         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
13627         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
13629         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
13631         * time/time.h (struct timespec): Use __time_t for tv_sec element.
13633         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
13634         wchar_t for function declarations and defintions.
13636         * misc/sys/select.h: Define __need_time_t before including <time.h>.
13637         Define suseconds_t if it hasn't happened yet.
13639         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
13641         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
13643         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
13644         <stddef.h>.
13646         * conform/data/stddef.h-data: Remove wint_t.
13648         * conform/conformtest.pl: Change namespace test to take #undef
13649         lines into account.
13651         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
13653         * conform/data/sys/socket.h-data: Add sockatmark.
13655 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13657         * io/fts.c: Update from recent BSD source.
13659 2001-08-17  Roland McGrath  <roland@frob.com>
13661         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
13662         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
13663         Likewise.
13665 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13667         * locale/duplocale.c (__duplocale): Also initialize the special
13668         __ctype_* elements.
13670         * conform/data/netdb.h-data: Adjust gai_strerror return type.
13672 2001-08-17  Andreas Jaeger  <aj@suse.de>
13674         * misc/getpass.c: Include wchar.h for prototypes.
13675         * malloc/obstack.c: Likewise.
13677 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13679         * sunrpc/svc_simple.c (universal): Use __write instead of write.
13681         * wcsmbs/wcscoll.c: Also define __wcscoll.
13682         * include/wchar.h: Declare __wcscoll.
13684         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
13685         * libio/vwprintf.c: Likewise.
13686         * libio/wprintf.c: Likewise.
13688         * iconv/gconv_cache.c: Use __munmap instead of munmap.
13690 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
13692         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
13693         instead of mbrtowc.
13694         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
13695         wcslen, and __wcscoll instead of wcscoll.
13697         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
13699         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
13700         __getuid instead of getuid.
13702         * stdio-common/perror.c (perror): Use __close instead of close.
13703         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13704         * libio/freopen.c (freopen): Likewise.
13705         * libio/freopen64.c (freopen64): Likewise.
13707         * libio/tst-ungetwc2.c (main): Define str const.
13709         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13710         * libio/fwprintf.c: Also define __fwprintf.
13711         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13712         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13713         * assert/assert-perr.c: Likewise.
13714         * assert/assert.c: Likewise.
13715         * gmon/gmon.c: Likewise.
13716         * inet/rcmd.c: Likewise.
13717         * malloc/obstack.c: Likewise.
13718         * misc/err.c: Likewise.
13719         * misc/error.c: Likewise.
13720         * misc/getpass.c: Likewise.
13721         * posix/getopt.c: Likewise.
13722         * resolv/res_hconf.c: Likewise.
13723         * stdio-common/perror.c: Likewise.
13724         * stdio-common/psignal.c: Likewise.
13725         * stdlib/fmtmsg.c: Likewise.
13726         * sunrpc/auth_unix.c: Likewise.
13727         * sunrpc/clnt_perr.c: Likewise.
13728         * sunrpc/clnt_tcp.c: Likewise.
13729         * sunrpc/clnt_udp.c: Likewise.
13730         * sunrpc/clnt_unix.c: Likewise.
13731         * sunrpc/svc_simple.c: Likewise.
13732         * sunrpc/svc_tcp.c: Likewise.
13733         * sunrpc/svc_udp.c: Likewise.
13734         * sunrpc/svc_unix.c: Likewise.
13735         * sunrpc/xdr.c: Likewise.
13736         * sunrpc/xdr_array.c: Likewise.
13737         * sunrpc/xdr_rec.c: Likewise.
13738         * sunrpc/xdr_ref.c: Likewise.
13739         * sysdeps/generic/wordexp.c: Likewise.
13741         * po/it.po: Update from translation team.
13743         * misc/err.c: Handle wide oriented stderr stream.
13745 2001-08-14  Tom Rix  <trix@redhat.com>
13747         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13748         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13750 2001-08-13  Tom Rix  <trix@redhat.com>
13752         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13753         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13754         and __intptr_t.
13756 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13758         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13759         Store the access registers to the ucontext structure.
13760         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13761         Likewise.
13763         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13764         Load the access registers from the ucontext structure.
13765         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13766         Likewise.
13768         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13769         offsets to the new ucontext layout.
13770         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13772         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13773         of the ucontext structure.
13774         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13776 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
13778         * misc/error.c (error): Handle wide oriented stderr stream correctly.
13779         (error_at_line): Likewise.
13781         * stdio-common/perror.c (perror): Implement according to standard.
13782         The stream orientation must not be changed if the stream was not
13783         oriented before the call.
13784         * stdio-common/Makefile (tests): Add tst-perror.
13785         * stdio-common/tst-perror.c: New file.
13788 See ChangeLog.12 for earlier changes.