Update.
[glibc.git] / ChangeLog
blobc8c4ec982b20bb62aff0ad36683095bad1c24fac
1 2002-10-02  Ulrich Drepper  <drepper@redhat.com>
3         * version.h (VERSION): Bump to 2.3.
5         * elf/Makefile (distribute): Add tst-tlsmod1.c, tst-tlsmod2.c,
6         tst-tlsmod3.c, tst-tlsmod4.c, circlemod1.c, circlemod1a.c,
7         circlemod2.c, circlemod2a.c, circlemod3.c, circlemod3a.c,
8         and nodlopenmod2.c.
10         * login/Makefile (distribute): Add utmp-equal.h.
12         * iconvdata/Makefile (distribute): Add TSCII.precomposed and
13         TSCII.irreversible.
15         * Make-dist (dist): Create .bz2 file.  Add rule to create .bz2
16         files.
17         Also distribute xtests sources.
19 2002-10-02  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
21         * elf/elf.h: Change TLS ELF relocation numbers.
22         * elf/tls-macros.h: Fix code sequences for SH TLS_LD and TLS_GD
23         macros.
24         * sysdeps/sh/dl-machine.h (dl_machine_rela) [case R_SH_TLS_TPOFF32]:
25         Use addend.
26         * sysdeps/sh/elf/initfini.c: Move __fpscr_values to...
27         * sysdeps/sh/elf/start.S: ...here.
29 2002-10-01  Jakub Jelinek  <jakub@redhat.com>
31         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ,
32         SIGSTKSZ): Changed to match kernel.
33         * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h: New file.
35 2002-10-01  Carlos O'Donell  <carlos@baldric.uwo.ca>
37         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
38         [__USE_GNU] (F_SETLEASE, F_GETLEASE, F_NOTIFY): New macros.
39         [__USE_GNU] (DN_ACCESS, DN_MODIFY, DN_CREATE, DN_DELETE, DN_RENAME,
40         DN_ATTRIB, DN_MULTISHOT): New macros.
42 2002-02-08  Randolph Chung  <tausq@debian.org>
44         * sysdeps/hppa/elf/start.S: Define __data_start.
46 2002-10-01  Isamu Hasegawa  <isamu@yamato.ibm.com>
48         * posix/regex_internal.c (re_string_reconstruct): Reset the member
49         LEN and STOP.
50         * posix/regexec.c (re_search_stub): Remove incorrect condition of
51         "range < 0".
52         Round RANGE in case that it is too small.
54 2002-10-01  Roland McGrath  <roland@frob.com>
56         * config.h.in (NO_HIDDEN): New #undef.
57         * include/libc-symbols.h [! NO_HIDDEN]: Add this condition to
58         nonempty definitions of hidden_proto et al.
59         * configure.in: Grok --disable-hidden-plt to define NO_HIDDEN.
60         * configure: Regenerated.
61         * sysdeps/mach/hurd/configure.in: Always define NO_HIDDEN.
62         * sysdeps/mach/hurd/configure: Regenerated.
64 2002-09-19  David Mosberger  <davidm@hpl.hp.com>
66         * sysdeps/ia64/dl-fptr.c (make_fdesc): Load address of "local" via
67         a 64-bit gp-relative address to enable binaries with large data
68         sections.
70 2002-09-30  Ulrich Drepper  <drepper@redhat.com>
72         * stdlib/cxa_finalize.c (__cxa_finalize): Call UNREGISTER_ATFORK
73         if it is defined.
74         * posix/Makefile (distribute): Add fork.h.
75         * sysdeps/generic/fork.h: New file.
77 2002-09-29  Bruno Haible  <bruno@clisp.org>
79         * sysdeps/generic/utmp_file.c (LOCKING_FAILED): New macro.
80         (UNLOCK_FILE): Add a label.
81         (getutent_r_file, internal_getut_r, getutline_r_file, pututline_file,
82         updwtmp_file): Shut off the alarm clock when locking failed.
84 2002-09-30  Isamu Hasegawa  <isamu@yamato.ibm.com>
86         * posix/regex_internal.h (re_match_context_t): Add a new member.
87         (re_fail_stack_ent_t): New structure.
88         (re_fail_stack_t): Likewise.
89         * posix/regexec.c (re_search_internal): Use the new member of
90         re_match_context_t.
91         Use fail stack only if it has back references and there are plural
92         matching candidates.
93         (proceed_next_node): Use fail stack if it is indicated.
94         (set_regs): Likewise.
95         (push_fail_stack): New function.
96         (pop_fail_stack): New function.
97         (check_dst_limits): Likewise.
98         (check_dst_limits_calc_pos): Likewise.
99         (search_subexp): Check the limitations on the top of subexpressions.
100         (sift_states_bkref): Check the limitations of the destination node.
101         Reuse the array sctx->sifted_states.
103 2002-09-30  Ulrich Drepper  <drepper@redhat.com>
105         * stdio-common/printf_fp.c: Shuffle a few lines around to help the
106         compiler optimizing.  No semantical changes intended.
108 2002-09-30  Jakub Jelinek  <jakub@redhat.com>
110         * sysdeps/ia64/strncpy.S: Only segfault in .recovery2 if some bits
111         from the next quad are needed.
113 2002-09-30  Roland McGrath  <roland@redhat.com>
115         * elf/tls-macros.h (TLS_LD, TLS_GD): Use call insn, not callq.
117         * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD] [! PIC]:
118         Use direct-%fs form of TLS access for errno.
120         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: File removed, since
121         the i386 version has all the same asm now.
123         * sysdeps/i386/elf/configure.in: Add @GOTNTPOFF and @NTPOFF uses to
124         the TLS support check.
125         * sysdeps/i386/elf/configure: Regenerated.
127         * sysdeps/unix/sysv/linux/i386/sysdep.h [USE_TLS && HAVE___THREAD]
128         (SYSCALL_ERROR_HANDLER): Use direct-%gs form of TLS access for errno.
130         * sysdeps/unix/i386/sysdep.S (syscall_error)
131         [USE_TLS && HAVE___THREAD]: Use TLS access for errno.
133         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
134         [USE_TLS && HAVE___THREAD] (SYSCALL_ERROR_HANDLER): Use TLS access.
136         * rt/tst-aio7.c (do_test): Don't read from stdin, which could be the
137         terminal when the test is running in a background job.  Instead, make
138         a pipe and read from its read half while never writing anything to it.
140 2002-09-30  Andreas Jaeger  <aj@suse.de>
142         * stdlib/tst-bsearch.c (main): Fix format strings.
143         * stdio-common/tst-rndseek.c (do_test): Likewise.
144         * libio/tst_swprintf.c (main): Likewise.
145         * catgets/tst-catgets.c (main): Likewise.
146         * libio/tst-fgetws.c (main): Likewise.
147         * posix/tst-mmap.c (main): Likewise.
148         * posix/bug-regex12.c (main): Likewise.
149         * posix/bug-regex11.c (main): Likewise.
150         * io/tst-getcwd.c (do_test): Likewise.
152         * iconvdata/tst-e2big.c (test): Use %td in printf for ptrdiff_t.
154         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
155         Store 4 bytes into errno, not 8 bytes.
157 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
159         * posix/regexec.c (sift_states_bkref): Remove ret variable.  Use
160         err instead.
162 2002-09-29  Roland McGrath  <roland@redhat.com>
164         * test-skeleton.c (timeout_handler): Use WUNTRACED flag in waitpid.
165         Examine the child's status and print something different if it wasn't
166         just killed by our SIGKILL.
167         (main): In the child process call setpgid to put it in its own pgrp.
169 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
171         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): The return value
172         semantics for sigtimedwait is different.  Rework the return value
173         handling and don't pass in a siginfo variable.
175 2002-09-29  Roland McGrath  <roland@redhat.com>
177         * malloc/malloc.c [! MALLOC_DEBUG] (assert): #undef before defining.
179         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.2.6): Add __errno_location.
181         * sysdeps/unix/sysv/linux/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]:
182         Define errno in .tbss.
183         * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]: Use TLS
184         access for setting errno.
186         * sysdeps/unix/x86_64/sysdep.S: Store 32 bits at errno, not 64 bits.
187         AFAICT, it was just blind luck that the word following errno in .bss
188         was just alignment padding and not some other variable to be clobbered.
190 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
192         * sysdeps/unix/sysv/linux/kernel-features.h
193         (__ASSUME_SETRESUID_SYSCALL): On the sparc, define to 1, not empty.
195 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
197         * nss/bug-erange.c (main): Don't fail if /etc/resolv.conf doesn't
198         exist.
200 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
202         * nss/Makefile: Move bug-erange from tests to xtests.
204 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
206         * stdlib/longlong.h (__udiv_qrnnd): Remove PARAMS from prototype.
208 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
210         * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall0): Make asm
211         volatile.
212         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
213         inline_syscall5, inline_syscall6): Likewise.
214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
215         Likewise.
216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (INLINE_SYSCALL):
217         Likewise.
219 2002-09-29  Roland McGrath  <roland@redhat.com>
221         * configure.in (libc_cv_ranlib_necessary check): Put the .o file in
222         the archive, not the .c file.
223         * configure: Regenerated.
225 2002-09-29  Roland McGrath  <roland@redhat.com>
227         * configure: Regenerated after aclocal.m4 change.
229         * sysdeps/x86_64/sysdep.h [HAVE_ELF] (L): Define with .L##name form.
230         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (L): Don't define it here.
232         * sysdeps/generic/dl-lookupcfg.h [USE_TLS] (DL_LOOKUP_RETURNS_MAP):
233         Define it, because _dl_sym presumes it (for any platform).
235         * sysdeps/x86_64/dl-tls.h: New file.
237         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add a cast.
239         * sysdeps/x86_64/elf/configure.in: New file.
240         * sysdeps/x86_64/elf/configure: New generated file.
242 2002-09-28  Roland McGrath  <roland@redhat.com>
244         * elf/rtld.c (_dl_start): Fix conditional for declaring CNT.
246         * aclocal.m4 (LIBC_PROG_BINUTILS): Don't clobber $RANLIB with ranlib
247         before we check it.
249 2002-09-28  Ulrich Drepper  <drepper@redhat.com>
251         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __syscall_exit
252         entry point.
254 2002-09-28  Jakub Jelinek  <jakub@redhat.com>
256         * posix/bug-regex11.c (tests): Add flags field.
257         (main): Avoid warnings.  Use test[i].flags.  Return nonzero
258         if any of the tests failed.
259         * posix/bug-regex12.c: New file.
260         * posix/Makefile (tests): Add bug-regex12.
262 2002-03-02  Thorsten Kukuk  <kukuk@suse.de>
264         * sysdeps/unix/nice.c (nice): Use getpriority() for the return value.
266 2002-09-28  Jeff Bailey  <jbailey@gnu.org>
268         * sysdeps/unix/sysv/sysv4/solaris2/configure.in: Delete.
269         * sysdeps/unix/sysv/aix/configure.in: Update comment and remove
270         stdio=libio setting.
272 2002-09-28  Roland McGrath  <roland@redhat.com>
274         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Use INTUSE for
275         _dl_signal_error.
276         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Likewise.
277         * sysdeps/powerpc/powerpc64/dl-machine.c
278         (_dl_reloc_overflow): Likewise.
279         * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
280         (elf_machine_rela): Likewise.
282 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
284         * include/libc-symbols.h (__hidden_dot_weak1): Fix typo.  Replace
285         ASM_GLOBAL_DIRECTIVE with .weak.
287 2002-09-28  Andreas Jaeger  <aj@suse.de>
289         * sysdeps/unix/sysv/linux/mips/truncate64.c (truncate64): Fix
290         number of args to syscall.
291         * sysdeps/unix/sysv/linux/mips/ftruncate64.c (__ftruncate64): Likewise.
292         Patch by Guido Guenther <agx@sigxcpu.org>.
294 2002-09-27  Roland McGrath  <roland@redhat.com>
296         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_pread, __NR_pwrite):
297         Define these to __NR_pread64, __NR_pwrite64 if not defined.
299         * sysdeps/unix/sysv/linux/powerpc/lchown.S
300         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Use this condition
301         on chown compatibility symbol; use compat_symbol, not symbol_version.
303 2002-09-27  Isamu Hasegawa  <isamu@yamato.ibm.com>
305         * posix/regcomp.c (reg_free): Free the debug area.
306         (re_compile_internal): Allocate debug area for the input string.
307         (create_initial_state): Check the back references in initial states
308         if they are really match null string in the initial state.
309         (parse_reg_exp): Mark the dfa that the dfa can have plural matchings.
310         (parse_expression): Likewise.
311         (parse_bracket_exp): Likewise.
312         * posix/regex_internal.c (re_node_set_intersect): Remove unused
313         function.
314         (re_node_set_contains): Change to return the index of node.
315         * posix/regex_internal.h (re_backref_cache_entry): Change the members.
316         (re_match_context_t): Likewise.
317         (struct re_dfa_t): Likewise.
318         (re_sift_context_t): New structure.
319         * posix/regexec.c (match_ctx_clear_flag): New function.
320         (sift_ctx_init): Likewise.
321         (update_cur_sifted_state): Likewise.
322         (add_epsilon_src_nodes): Likewise.
323         (sub_epsilon_src_nodes): Likewise.
324         (check_subexp_limits): Likewise.
325         (search_subexp): Likewise.
326         (sift_states_bkref): Likewise.
327         (merge_state_array): Likewise.
328         (sift_states_iter_bkref): Remove unused function.
329         (add_epsilon_backreference): Remove unused function.
330         (re_search_internal): Adapt new members and interfaces.
331         (check_matching): Check the back references in initial states
332         if they are really match null string in the initial state.
333         (proceed_next_node): Change the evaluation of back references,
334         since we have real registers here.
335         (set_regs): Adapt new interface of proceed_next_node.
336         (sift_states_backward): Add invocation of update_cur_sifted_state
337         instead of add_epsilon_backreference.
338         Add a sentinel to the outermost while loop.
339         Move the handling of back references to sift_states_bkref function,
340         since we can't handle some back references (e.g. a back reference
341         which match NULL string) here.
342         (transit_state_mb): Handle the new member max_mb_elem_len.
343         (transit_state_bkref_loop): Move the evaluation of back references to
344         search_subexp function, since we can't evaluate some back references
345         (e.g. a back reference which can have plural matchings) here.
346         (match_ctx_init): Adapt the new member.
347         (match_ctx_add_entry): Adapt the new members.
349 2002-09-25  Alan Modra  <amodra@bigpond.net.au>
351         * elf/do-rel.h: Define macro DO_ELF_MACHINE_REL_RELATIVE for
352         'elf_machine_rel_relative'
353         (elf_dynamic_do_rel): Call DO_ELF_MACHINE_REL_RELATIVE macro
354         instead of 'elf_machine_rel_relative'.
355         * sysdeps/hppa/dl-machine.h:
356         Define macro DO_ELF_MACHINE_REL_RELATIVE for
357         'elf_machine_rel_relative' with extra map parameter
358         required by HPPA.
359         (elf_machine_rela_relative): Add plt relocation changes.
361 2001-11-14  Matthew Wilcox  <willy@debian.org>
363         * sysdeps/unix/sysv/linux/hppa/bits/ipc.h: New file.
364         * sysdeps/unix/sysv/linux/hppa/bits/msq.h: New file.
365         * sysdeps/unix/sysv/linux/hppa/bits/sem.h: New file.
366         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: New file.
368 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
370         * sysdeps/powerpc/powerpc32/Makefile: Fix typo in comment.
372         * sysdeps/powerpc/powerpc64/Makefile
373         [$(build-shared) = yes] (pic-ccflag): Define it.
374         [$(subdir) = csu] (CFLAGS-initfini.s): Add -fpic here too.
376 2002-09-27  Roland McGrath  <roland@redhat.com>
378         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Remove
379         unneeded TLS cases.
381 2002-09-27  Jakub Jelinek  <jakub@redhat.com>
383         * elf/dl-addr.c (_dl_addr): Set dli_fbase to l_map_start
384         unconditionally.  Set dli_fname to _dl_argv[0] only for main program.
386 2002-09-27  Roland McGrath  <roland@redhat.com>
388         * elf/dl-addr.c (_dl_addr): Add a cast.
390         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [USE_TLS]: Handle new
391         TLS relocs R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, and R_X86_64_TPOFF64.
393         * elf/elf.h (R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, R_X86_64_TPOFF64,
394         R_X86_64_TLSGD, R_X86_64_TLSLD, R_X86_64_DTPOFF32,
395         R_x86_64_GOTTPOFF, R_X86_64_TPOFF32): New macros.
396         (R_X86_64_NUM): Update the value.
398 2002-09-24  Jakub Jelinek  <jakub@redhat.com>
400         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_load_address): Don't
401         rely on *r_offset of R_SPARC_RELATIVE reloc in .got to contain the
402         addend.
403         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Use
404         the same l_addr computation.
405         * sysdeps/sparc/sparc64/configure.in: Removed.
406         * sysdeps/sparc/sparc64/configure: Removed.
407         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Remove.
409 2002-09-26  Ulrich Drepper  <drepper@redhat.com>
411         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_HASH entry
412         if necessary.
413         * elf/dl-lookup.c (_dl_setup_hash): DT_HASH entry is already relocated.
414         * elf/dl-addr.c (_dl_addr): Use .hash[1] entry to determine end of the
415         symbol table if necessary.
417 2002-09-26  Roland McGrath  <roland@redhat.com>
419         * stdlib/longlong.h: Replaced with current version from GCC mainline,
420         last modified 2002-09-22  Kazu Hirata  <kazu@cs.umass.edu>.
422 2002-09-25  Andreas Jaeger  <aj@suse.de>
424         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add syscall_exit.
425         Patch by Guido Guenther <agx@sigxcpu.org>.
427 2002-09-25  Roland McGrath  <roland@redhat.com>
429         * Makeconfig (%.v.i pattern rule): Use $(CPPFLAGS).
431 2002-09-24  Ulrich Drepper  <drepper@redhat.com>
433         * sysdeps/unix/sysv/linux/configure.in: Recognize nptl add-on name.
435 2002-09-24  Roland McGrath  <roland@redhat.com>
437         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Move __libc_read,
438         __libc_write, __libc_lseek64, to ...
439         (ld: GLIBC_PRIVATE): ... here.
441         * csu/Versions: Use %include <tls.h> to get USE_TLS defined.
442         (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _errno, errno.
443         (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put errno here instead.
444         * resolv/Versions: Use %include <tls.h> to get USE_TLS defined.
445         (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _h_errno, h_errno,
446         and _res.
447         (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put h_errno, _res here.
449         * elf/tls-macros.h [__x86_64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
450         New macros for x86-64.
452         * sysdeps/unix/sysv/linux/alpha/bits/time.h: File removed.
453         It was indentical to the linux/bits/time.h file.
455         * nscd/nscd_gethst_r.c (nscd_gethst_r): Add a cast to silence warning.
457         * resolv/gethnamaddr.c (gethostbyaddr): Use socklen_t for SIZE.
459 2002-09-23  Ulrich Drepper  <drepper@redhat.com>
461         * po/zh_CN.po: New file.
463 2002-09-23  Roland McGrath  <roland@redhat.com>
465         * posix/unistd.h: Test [__USE_UNIX98] instead of [__USE_OPEN2K]
466         for gethostname declaration.
468         * catgets/open_catalog.c (__open_catalog): Don't use a value type
469         as the __builtin_expect expression, just the Boolean value.
471         * sysdeps/generic/wordexp.c (parse_glob): int -> size_t for counter.
472         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
473         * resolv/res_hconf.c (arg_service_list, parse_line): Likewise.
474         * iconvdata/tst-loading.c (main): Likewise.
475         * catgets/tst-catgets.c (main): Likewise.
476         * stdlib/tst-xpg-basename.c (main): Likewise.
477         * stdlib/tst-bsearch.c (main): Likewise.
478         * stdio-common/test-vfprintf.c (main): Likewise.
479         * stdio-common/tst-rndseek.c (do_test): Likewise.
480         * libio/tst_swprintf.c (main): Likewise.
481         * libio/tst-fgetws.c (main): Likewise.
482         * wcsmbs/tst-mbrtowc.c (check_ascii): Likewise.
483         * time/tst-posixtz.c (main): Likewise.
484         * time/tst-strptime.c (test_tm): Likewise.
485         * time/tst-strptime.c (main): Likewise.
486         * time/tst-getdate.c (main): Likewise.
487         * posix/tst-mmap.c (main): Likewise.
488         * posix/tst-getaddrinfo.c (do_test): Likewise.
489         * io/tst-getcwd.c (do_test): Likewise.
490         * resolv/tst-aton.c (main): Likewise.
491         * inet/tst-network.c (main): Likewise.
492         * libio/tst-fgetws.c (main): Likewise.
493         * sysdeps/posix/sprofil.c (add_region): int -> unsigned int for I.
494         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): int -> unsigned int
495         for PTYNO.
497         * stdlib/msort.c (qsort): Add a cast to silence warning.
498         * stdio-common/vfprintf.c (process_string_arg): Likewise.
499         * libio/oldfileops.c (_IO_old_do_write): Likewise.
500         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Likewise.
501         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
502         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
503         * argp/argp-fmtstream.c (__argp_fmtstream_printf): Likewise.
504         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
505         * sysdeps/unix/grantpt.c (grantpt): Likewise.
506         * libio/tst-widetext.c (main): Likewise.
507         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
508         * rt/tst-aio.c (test_file): Likewise.
509         * rt/tst-aio64.c (test_file): Likewise.
510         * resolv/tst-aton.c (main): Likewise.
512         * catgets/catgetsinfo.h (CATGETS_MAGIC): Use U suffix on the constant.
514         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Cast to int32_t
515         instead of uint32_t in these macros.
517 2002-09-22  Bruno Haible  <bruno@clisp.org>
519         * iconv/iconv_prog.c (main): Provide an error message that identifies
520         the wrong encoding.
522         * iconvdata/tscii.c: New file.
523         * iconvdata/testdata/TSCII: New file.
524         * iconvdata/testdata/TSCII..UTF8: New file.
525         * iconvdata/TSCII.precomposed: New file.
526         * iconvdata/TSCII.irreversible: New file.
527         * iconvdata/gconv-modules (TSCII): New module.
528         * iconvdata/Makefile (modules): Add TSCII.
529         (distribute): Add tscii.c.
530         * iconvdata/tst-table-from.c (try, utf8_decode, main): Double output
531         buffer size.
532         * iconvdata/tst-tables.sh: Add TSCII.
533         * iconvdata/TESTS: Add TSCII.
535         Revert 2002-04-18 patch.
536         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
537         FROM_DIRECTION): Make the FROM direction stateful again.
538         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
539         FROM_DIRECTION): Likewise.
541         * iconvdata/tst-e2big.c: New file.
542         * iconvdata/Makefile (tests): Add tst-e2big.
544 2002-09-23  Roland McGrath  <roland@redhat.com>
546         * elf/Makefile (test-extras): Define this instead of test-srcs.
547         * Makerules (all-nonlib): Include $(test-extras) too.
549 2002-09-21  Carlos O'Donell  <carlos@baldric.uwo.ca>
551         * sysdeps/hppa/abort-instr.h: New file.
553 2002-09-22  Roland McGrath  <roland@frob.com>
555         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Remove duplicate entry.
557         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Add alias __GI__exit.
559 2002-09-22  Andreas Schwab  <schwab@suse.de>
561         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Append, not overwrite.
563         * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal)
564         (isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]:
565         Use GCC builtins.
567 2002-09-21  Roland McGrath  <roland@redhat.com>
569         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM):
570         Correct the value so it covers all platforms, and is computed
571         from _DL_PLATFORMS_COUNT rather than hard-wired.
572         From Andrew Suffield <asuffield@debian.org>.
574 2002-09-20  Ulrich Drepper  <drepper@redhat.com>
576         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
577         locking when using mount tab file.
578         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
579         * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
580         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
582         * elf/dl-init.c (_dl_init): Fix test of the size of the
583         preinit_array section.
584         (call_init): Optimize access to DT_INIT_ARRAY entry a bit.
585         Reported by Brian Cabral <cabral@ikuni.com>.
587 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
589         * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros.
590         * sysdeps/powerpc/powerpc32/sysdep.h: New file.  Define powerpc32
591         specific macros copied from sysdeps/powerpc/sysdep.h.
592         * sysdeps/powerpc/powerpc64/sysdep.h: New file.  Define powerpc64
593         specific macros.
594         * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>.
595         [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h.
596         [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h.
598 2002-09-19  Bruno Haible  <bruno@clisp.org>
600         * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
601         returning.
603 2002-09-17  Bruno Haible  <bruno@clisp.org>
605         * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
606         * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
607         also on platforms with !HAVE_UT_TYPE.
608         (proc_utmp_eq): Remove function.
609         (internal_getut_r, pututline_file): Call __utmp_equal instead.
611 2002-09-20  Bruno Haible  <bruno@clisp.org>
613         * abi-tags: Add support for FreeBSD with ABI OS value 3.
614         * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
616 2002-09-20  Roland McGrath  <roland@redhat.com>
618         * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
619         (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
620         terms of __WORDSIZE.
621         * sysdeps/x86_64/gmp-mparam.h: File removed.
622         * sysdeps/sparc/gmp-mparam.h: File removed.
623         * sysdeps/mips/mips64/gmp-mparam.h: File removed.
624         * sysdeps/ia64/gmp-mparam.h: File removed.
625         * sysdeps/alpha/gmp-mparam.h: File removed.
627 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
629         * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
630         load, so as to work on both 32-bit and 64-bit.  Remove unnecessary
631         casts.  Align __libc_stack_end to 8 bytes.
633 2002-09-20  Roland McGrath  <roland@redhat.com>
635         * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
636         instead of asm for lrintf, __lrintf aliases.
638         * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
639         int array for 32-/64-bit compatibility.
640         From Steven Munroe  <sjmunroe@us.ibm.com>.
642 2002-09-17  Bruno Haible  <bruno@clisp.org>
644         * sysdeps/generic/ifreq.h (__if_nextreq): New function.
645         * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
646         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
647         * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
648         for iterating through the list of interfaces.
649         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
651 2002-09-20  Roland McGrath  <roland@redhat.com>
653         * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
654         Reported by Bruno Haible <bruno@clisp.org>.
656         * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
658         * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
659         * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
660         isatty unmodified.  Reported by Bruno Haible <bruno@clisp.org>.
662 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
664         * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
665         * sysdeps/powerpc/bits/wordsize.h: New file.
666         * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
667         array to int array for 32-/64-bit compatibility.
669 2002-09-20  Roland McGrath  <roland@redhat.com>
671         * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
673         * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
674         Reported by Bruno Haible <bruno@clisp.org>.
676         * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
677         before doubling RQ_LEN.
678         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
679         Reported by Bruno Haible <bruno@clisp.org>.
681 2002-09-18  Bruno Haible  <bruno@clisp.org>
683         * login/logout.c (logout): Don't assume ut_time has the same size as
684         a time_t.
685         * login/logwtmp.c (logwtmp): Likewise.
687         * sysdeps/pthread/configure: New file, moved here from
688         linuxthreads/sysdeps/unix/sysv/linux/configure.
690 2002-09-19  Ulrich Drepper  <drepper@redhat.com>
692         * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
693         (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
694         Reported by Glen Nakamura <glen@imodulo.com>.
696 2002-09-19  Neal H. Walfield  <neal@cs.uml.edu>
698         * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
699         thread's sigstate data structure if it has been allocated.
701 2002-09-19  Roland McGrath  <roland@redhat.com>
703         * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
704         [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
706 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
708         * version.h (VERSION): Bump to 2.2.94.
710         * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
711         * sysdeps/powerpc/powerpc32/fpu/Dist: ...here.  New file.
712         * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
713         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
715         * sysdeps/i386/Makefile: Remove obsolete db2 rules.
717         * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
719         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
721         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
723 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
725         * sysdeps/wordsize-32/Makefile: New file.
726         * sysdeps/arm/Makefile: Removed.
727         * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
728         Don't add divdi3 here.
729         * sysdeps/m68k/Makefile: Likewise.
730         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
731         * sysdeps/sh/Makefile: Likewise.
732         * sysdeps/s390/s390-32/Makefile: Likewise.
734 2002-09-18  Roland McGrath  <roland@redhat.com>
736         * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
737         the __ctype_* compat symbols, so the relocs generated bind to the
738         right versioned global symbol in the shared object.
740         * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
741         from the value taken from the DT_VERSYM table.
742         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
743         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
744         (RESOLVE_GOTSYM): Likewise.
746         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
747         Add libc_hidden_def.
748         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
749         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
750         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
751         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
752         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
753         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
754         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
755         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
757 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
759         * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
761         * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
762         define sigaction and __sigaction as wrappers around
763         __libc_sigaction which rejects changing SIGCANCEL.
764         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
766         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
767         SETTID/CLEARTID.
769         * signal/allocrtsig.c: Move to...
770         * sysdeps/generic/allocrtsig.c: ...here.  New file.
772 2002-09-17  Jakub Jelinek  <jakub@redhat.com>
774         * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
776         * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
777         R_386_TLS_LE): Define.
778         (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
779         comments.
780         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
781         ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
782         (elf_machine_rel): Handle R_386_TLS_TPOFF.
783         (elf_machine_rela): Likewise.
784         Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
786 2002-09-17  Roland McGrath  <roland@redhat.com>
788         * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
789         file-specific variable override so it compiles properly when using
790         --with-headers.
792 2002-09-17  Steven Munroe  <sjmunroe@us.ibm.com>
794         Ported to PowerPC64 running Linux.
795         * sysdeps/powerpc/powerpc64/Dist: New file.
796         * sysdeps/powerpc/powerpc64/Implies: New file.
797         * sysdeps/powerpc/powerpc64/Makefile: New file.
798         * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
799         * sysdeps/powerpc/powerpc64/atomicity.h: New file.
800         * sysdeps/powerpc/powerpc64/backtrace.c: New file.
801         * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
802         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
803         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
804         * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
805         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
806         * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
807         * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
808         * sysdeps/powerpc/powerpc64/memset.S: New file.
809         * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
810         * sysdeps/powerpc/powerpc64/register-dump.h: New file.
811         * sysdeps/powerpc/powerpc64/setjmp.S: New file.
812         * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
813         * sysdeps/powerpc/powerpc64/strchr.S: New file.
814         * sysdeps/powerpc/powerpc64/strcmp.S: New file.
815         * sysdeps/powerpc/powerpc64/strcpy.S: New file.
816         * sysdeps/powerpc/powerpc64/strlen.S: New file.
817         * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
818         * sysdeps/powerpc/powerpc64/elf/start.S: New file.
819         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
820         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
824         * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
829         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
830         (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
831         various gcc versions.  Dot names required for powerpc64.
832         [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
833         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
834         C_SYMBOL_DOT_NAME(alias).
835         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
836         original strong_alias macro.
837         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
838         C_SYMBOL_DOT_NAME(alias).
839         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
840         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
841         '.'ed name.
842         Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
843         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro.  Generate
844         .global C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
845         (hidden_def): Append hidden_dot_def1 macro to definition.
846         (hidden_ver): Append hidden_dot_def1 macro to definition.
847         (hidden_data_def): New macro.  Same as original hidden_def macro.
848         (hidden_data_ver): New macro.  Same as original hidden_ver macro.
849         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro.  Generate
850         .weakext C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
851         (hidden_weak): Append hidden_dot_weak1 macro to definition.
852         (hidden_data_weak): New macro.  Same as original hidden_weak macro.
853         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
854         Otherwise defined as __GI_name.
855         (libc_hidden_data_def): New macro.  Use hidden_data_def.
856         (libc_hidden_data_weak): New macro.  Use hidden_data_weak.
857         (libc_hidden_data_ver): New macro.  Use hidden_data_ver.
858         (rtld_hidden_data_def): New macro.  Use hidden_data_def.
859         (rtld_hidden_data_weak): New macro.  Use hidden_data_weak.
860         (rtld_hidden_data_ver): New macro.  Use hidden_data_ver.
861         (libm_hidden_data_def): New macro.  Use hidden_data_def.
862         (libm_hidden_data_weak): New macro.  Use hidden_data_weak.
863         (libm_hidden_data_ver): New macro.  Use hidden_data_ver.
864         * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
866 2002-09-17  Ulrich Drepper  <drepper@redhat.com>
868         * include/libc-symbols.h: Change *hidden_proto macros to accept
869         option parameters and pass those to the attribute definition.
870         * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
872         * include/unistd.h: Declare __libc_pause.
874         * include/sys/socket.h: Declare __libc_send, __libc_recv,
875         __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
877         * include/unistd.h: Declare __libc_fork.
879 2002-09-17  Roland McGrath  <roland@redhat.com>
881         * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
882         (passwd2des): Define it as an alias.
883         (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
885 2002-09-12  Bruno Haible  <bruno@clisp.org>
887         * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
888         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
890         * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
891         * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
893 2002-09-05  Steven Munroe  <sjmunroe@us.ibm.com>
895         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
896         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
897         __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
898         PowerPC64 does not have separate 64-bit syscalls.
900 2002-09-16  Roland McGrath  <roland@redhat.com>
902         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
904         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
905         New macro.
907         * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
909         * include/unistd.h: Uncomment libc_hidden_proto for _exit.
910         * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
911         * sysdeps/generic/_exit.c: Likewise.
913 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
915         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
917         * elf/rtld.c (struct dl_start_final_info): New.
918         (_dl_start_final): Change second argument to struct
919         dl_start_final_info *.  Set start_time from info.
920         (_dl_start): Remove bootstrap_map variable, add info.
921         Define bootstrap_map as macro.  If not DONT_USE_BOOTSTRAP_MAP,
922         store HP_TIMING_NOW result into info.start_time.
924 2002-09-16  Andreas Jaeger  <aj@suse.de>
926         * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
927         to _Exit.
928         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
930 2002-09-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
932         * sysdeps/powerpc/abort-instr.h: New file.
934 2002-09-14  Ulrich Drepper  <drepper@redhat.com>
936         * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
937         comment.
939         * test-skeleton.c (main): Provide more information in case waitpid
940         fails.
942         * include/unistd.h: Declare __exit_thread.
943         * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
944         Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
945         * sysdeps/unix/sysv/linux/exit-thread.S: New file.
946         * sysdeps/unix/sysv/linux/_exit.c: New file.
947         * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
948         * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
949         Add exit-thread.
951         * configure.in: Add dl_iterate_phdr to test using -nostdlib.
953 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
955         * sysdeps/i386/dl-machine.h (elf_machine_rel)
956         (case R_386_TLS_DTPMOD32): Don't use addend.
957         [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
958         (elf_machine_rela): Add support for TLS relocs.
960 2002-09-14  Roland McGrath  <roland@redhat.com>
962         * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
964 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
966         * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
967         specific asm macros for multiple percision integer math.
969 2002-06-04  Steven Munroe  <sjmunroe@us.ibm.com>
971         * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
972         * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
973         Remove per-machine conditionals for FLAG_* cases.
974         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
975         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
978 2002-09-10  Alan Modra <amodra@bigpond.net.au>
980         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
981         defined in entry.h.
982         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
983         lowest address for profiling in  __monstartup call.
984         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
986 2002-09-14  Roland McGrath  <roland@redhat.com>
988         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
989         instead of __NR_pread.
990         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
991         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
992         instead of __NR_pwrite.
993         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
995 2002-09-13  Roland McGrath  <roland@redhat.com>
997         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
999 2002-09-13  Andreas Jaeger  <aj@suse.de>
1001         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
1002         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
1004 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
1006         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
1008 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
1010         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
1011         reading the headers.
1013 2002-09-12  Roland McGrath  <roland@redhat.com>
1015         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
1016         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
1017         find the ELF header.
1019         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
1020         executable if needed, in case it's actually a shared object.
1022 2002-09-11  Roland McGrath  <roland@redhat.com>
1024         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
1025         l_map_start to adjust l_tls_initimage.
1027         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
1028         when using h_errno and it's not set to NETDB_INTERNAL.
1029         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
1031         * Makefile ($(common-objpfx)testrun.sh): New target.
1032         (others): Depend on it.
1033         (postclean-generated): Append it.
1035         * nss/bug-erange.c: New file.
1036         * nss/Makefile (tests): Add it.
1038         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
1039         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
1041         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
1042         strncmp, keeps the code smaller for a non-performance-critical case.
1044         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
1045         no longer wrongly matches arbitrary prefixes of NAME.
1046         Reported by Jakub Jelinek <jakub@redhat.com>.
1048 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
1050         * posix/bug-regex11.c (tests): New array.
1051         (main): Rewritten to run more different tests.
1053 2002-09-10  Roland McGrath  <roland@redhat.com>
1055         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
1056         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
1057         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
1059         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
1060         well so we don't get it declared by include/math.h's hidden_proto.
1061         Then do hidden_proto for __isnanf locally so hidden_def works right.
1063         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
1064         a cast to turn nl_langinfo return value into an integer.
1066 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
1068         * posix/regexec.c (build_trtable): Fix the destination of
1069         newline to prevent wrong states from overwriting.
1070         Append break statements to optimization.
1072 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
1074         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
1075         (build_range_exp): Add castings to strlen invocations.
1076         (build_collating_symbol): Restore the type of characters from "char"
1077         to "unsigned char", and supplement castings.
1078         (build_collating_symbol): Likewise.
1079         (build_equiv_class): Likewise.
1080         (build_charclass): Likewise.
1081         (seek_collating_symbol_entry): Likewise.
1082         (parse_bracket_exp): Likewise.
1083         (build_word_op): Supplement a casting.
1084         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
1085         (re_string_allocate): Fix castings.
1086         (re_string_construct): Likewise.
1087         (re_string_construct_common): Likewise.
1088         (re_string_realloc_buffers): Likewise.
1089         (build_wcs_buffer): Likewise.
1090         (build_wcs_upper_buffer): Likewise.
1091         (re_string_skip_chars): Likewise.
1092         (re_string_reconstruct): Likewise.
1093         * posix/regex_internal.h: Restore the type of characters in
1094         re_string_t and bracket_elem_t from "char" to "unsigned char".
1095         (re_string_elem_size_at): Fix castings.
1096         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
1097         (transit_state_bkref_loop): Restore the type of characters from
1098         "char" to "unsigned char", and append a cast to "char*" pointer in
1099         array subscript.
1100         (check_node_accept_bytes): Likewise.
1101         (find_collation_sequence_value): Likewise.
1103 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
1105         * sysdeps/mips/memcpy.S: New file.
1106         * sysdeps/mips/memset.S: New file.
1107         * sysdeps/mips/fpu/e_sqrt.c:  New file.
1108         * sysdeps/mips/fpu/e_sqrtf.c: New file.
1110         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
1111         functional before. Also removed all SHLIB_COMPAT stuff.
1112         * fpu/fegetenv.c: Likewise.
1113         * fpu/fesetenv.c:: Likewise.
1114         * fpu/feupdateenv.c: Likewise.
1115         * fpu/fgetexcptflg.c: Likewise.
1116         * fpu/fraiseexcpt.c: Likewise.
1118         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
1120 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
1122         * include/math.h (__finite_internal, __finitef_internal,
1123         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
1124         (isfinite): Remove.
1125         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
1126         __isinfl, __isnanl): Add hidden_proto.
1127         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
1128         libm_hidden_proto.
1129         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
1130         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
1131         __is{inf,nan} calls.
1132         * stdio-common/printf_size.c (printf_size): Likewise.
1133         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
1134         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
1135         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
1136         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
1137         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
1138         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
1139         (__finite): Add hidden_def.
1140         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
1141         (__finitef): Add hidden_def.
1142         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
1143         (__finitel): Add hidden_def.
1144         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
1145         hidden_def.
1146         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
1147         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
1148         libm_hidden_def.
1149         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
1150         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
1151         hidden_def.
1152         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
1153         (__isinfl): Remove INTDEF.
1154         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
1155         hidden_def.
1156         (__isnanl): Remove INTDEF.
1157         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
1158         libm_hidden_def.
1159         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
1160         instead of sin and cos.
1161         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
1162         Add hidden_def.
1163         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
1164         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
1165         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
1166         libm_hidden_def.
1167         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
1168         Add hidden_def.
1169         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
1170         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
1171         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
1172         libm_hidden_def.
1173         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
1174         libm_hidden_def.
1175         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
1176         Add hidden_def.
1177         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
1178         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
1179         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
1180         libm_hidden_def.
1181         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
1182         __finitel_internal): Remove aliases.
1183         (__finite, __finitef, __finitel): Add hidden_def.
1184         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
1185         __isnanl_internal): Remove aliases.
1186         (__isnan, __isnanf, __isnanl): Add hidden_def.
1187         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
1188         __isinfl_internal): Remove aliases.
1189         (__isinf, __isinff, __isinfl): Add hidden_def.
1190         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
1191         __fpclassifyl): Add libm_hidden_def.
1192         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
1193         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
1194         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
1195         (hidden_defx): Define and use.
1196         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
1197         libm_hidden_def.
1198         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
1199         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
1200         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
1201         Remove INTDEF.
1202         (__isnan, __isnanf): Add hidden_def.
1203         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
1204         (__finitel): Add libm_hidden_def.
1205         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
1207         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
1208         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
1209         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1210         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
1211         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1212         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
1213         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
1214         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
1215         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1216         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
1217         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1218         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
1219         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1220         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
1221         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1222         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
1223         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1224         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
1225         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1226         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
1227         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1228         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
1229         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1230         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
1231         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1232         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
1233         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1235 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
1237         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
1239 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
1241         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
1242         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
1244 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
1246         * string/stratcliff.c: Some more strncpy tests.
1247         Patch by Daniel Jacobowitz <drow@mvista.com>.
1249 2002-09-08  Roland McGrath  <roland@redhat.com>
1251         * resolv/resolv.h: Include <sys/types.h> for u_long even in
1252         the [__need_res_state] case.
1253         Reported by Bruno Haible <bruno@clisp.org>.
1255 2002-09-04  Bruno Haible  <bruno@clisp.org>
1257         * sysdeps/generic/bits/ustat.h: Comment fix.
1258         * io/sys/sendfile.h: Comment fix.
1259         * sysdeps/posix/pread.c: Comment fix.
1260         * sysdeps/posix/pread64.c: Comment fix.
1261         * sysdeps/posix/pwrite.c: Comment fix.
1262         * sysdeps/posix/pwrite64.c: Comment fix.
1264 2002-09-06  Roland McGrath  <roland@redhat.com>
1266         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
1267         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
1268         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
1269         (_UTSNAME_MACHINE_LENGTH): Likewise.
1270         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
1272 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
1274         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
1275         test for filesystem type name of mount points.
1277         * include/errno.h: Use errno definition with __thread for now only
1278         in libc and ld.so.
1280         * test-skeleton.c (main): Improve error message for unexpected
1281         signal case.
1283 2002-09-05  Roland McGrath  <roland@redhat.com>
1285         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
1286         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1288 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
1290         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
1291         case of failure.
1293 2002-09-04  Bruno Haible  <bruno@clisp.org>
1295         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
1296         sigset_get_old_mask): Turn into inline functions.
1297         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
1298         sigset_get_old_mask): Likewise.
1299         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
1300         sigset_get_old_mask): Likewise.
1301         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
1302         syntax.
1304         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
1306         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
1307         default definitions.
1308         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
1309         _sys_nerr_internal instead of _sys_nerr.
1311         * nscd/connections.c (handle_request): Declare CALLER inside #if.
1313 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
1315         * sysdeps/powerpc/__longjmp.S: Moved to...
1316         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
1317         * sysdeps/powerpc/add_n.S: Moved to...
1318         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
1319         * sysdeps/powerpc/addmul_1.S: Moved to...
1320         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
1321         * sysdeps/powerpc/atomicity.h: Moved to...
1322         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
1323         * sysdeps/powerpc/backtrace.c: Moved to...
1324         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
1325         * sysdeps/powerpc/bp-asm.h: Moved to...
1326         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
1327         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
1328         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
1329         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
1330         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
1331         * sysdeps/powerpc/dl-machine.c: Moved to...
1332         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
1333         * sysdeps/powerpc/dl-machine.h: Moved to...
1334         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
1335         * sysdeps/powerpc/dl-start.S: Moved to...
1336         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
1337         * sysdeps/powerpc/gprrest0.S: Moved to...
1338         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
1339         * sysdeps/powerpc/gprrest1.S: Moved to...
1340         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
1341         * sysdeps/powerpc/gprsave0.S: Moved to...
1342         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
1343         * sysdeps/powerpc/gprsave1.S: Moved to...
1344         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
1345         * sysdeps/powerpc/lshift.S: Moved to...
1346         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
1347         * sysdeps/powerpc/memset.S: Moved to...
1348         * sysdeps/powerpc/powerpc32/memset.S: ...here.
1349         * sysdeps/powerpc/mul_1.S: Moved to...
1350         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
1351         * sysdeps/powerpc/ppc-mcount.S: Moved to...
1352         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
1353         * sysdeps/powerpc/register-dump.h: Moved to...
1354         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
1355         * sysdeps/powerpc/rshift.S: Moved to...
1356         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
1357         * sysdeps/powerpc/setjmp.S: Moved to...
1358         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
1359         * sysdeps/powerpc/stpcpy.S: Moved to...
1360         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
1361         * sysdeps/powerpc/strchr.S: Moved to...
1362         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
1363         * sysdeps/powerpc/strcmp.S: Moved to...
1364         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
1365         * sysdeps/powerpc/strcpy.S: Moved to...
1366         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
1367         * sysdeps/powerpc/strlen.S: Moved to...
1368         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
1369         * sysdeps/powerpc/sub_n.S: Moved to...
1370         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
1371         * sysdeps/powerpc/submul_1.S: Moved to...
1372         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
1373         * sysdeps/powerpc/elf/bzero.S: Moved to...
1374         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
1375         * sysdeps/powerpc/elf/start.S: Moved to...
1376         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
1377         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
1378         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
1379         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
1380         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
1381         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
1382         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
1383         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
1384         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
1385         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
1386         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
1387         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
1388         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
1389         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
1390         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
1391         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
1392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
1393         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
1394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
1395         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
1396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
1397         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
1398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
1399         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
1400         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
1401         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
1402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
1403         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
1404         powerpc/powerpc64.
1406 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
1408         * FAQ.in: Add powerpc64 to supported targets list. Also state the
1409         minimum gcc version is 3.2
1410         * README: Add powerpc64 to supported targets list.
1411         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
1412         Add powerpc64 and machine=powerpc/powerpc64.
1413         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
1414         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
1415         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
1416         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
1417         * sysdeps/powerpc/powerpc32/Dist: New file.
1418         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
1419         * sysdeps/powerpc/powerpc32/Implies: New file.
1420         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
1421         ($(with-fp) = no): Move test to powerpc32/Makefile.
1422         ($(subdir) = misc): Move to powerpc32/Makefile.
1423         ($(build-shared) = yes): Move to powerpc32/Makefile.
1424         ($(subdir) = csu): Move to powerpc32/Makefile.
1425         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
1426         * sysdeps/powerpc/powerpc32/Makefile: New file.
1427         * sysdeps/powerpc/Versions: Remove libgcc functions.
1428         * sysdeps/powerpc/powerpc32/Versions: New file.
1429         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
1430         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
1431         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
1432         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
1433         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
1434         ($machine): Add powerpc/powerpc64 to if ... | for
1435         libc_cv_slibdir=/libc64.
1436         (powerpc*): Set ldd_rewrite_script.
1437         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
1438         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
1439         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
1440         Add clone.S.
1441         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
1442         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
1443         functions.  Remove GLIBC_2.2 functions except getrlimit and
1444         setrlimit.  Moved them to ...
1445         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
1447 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
1449         * libio/tst-atime.c: Include <errno.h>.
1450         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
1452 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
1454         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
1455         warnings of some compilers.
1456         (build_collating_symbol): Change the type of characters from
1457         "unsigned char" to "char", and append a cast to "char*" pointer in
1458         array subscript.
1459         (build_collating_symbol): Likewise.
1460         (build_equiv_class): Likewise.
1461         (build_charclass): Likewise.
1462         (re_compile_pattern): Remove incorrect cast.
1463         (re_compile_fastmap_iter): Change the type of characters from
1464         "unsigned char" to "char", and append a cast to "char*" pointer
1465         in array subscript.
1466         (parse_bracket_exp): Likewise.
1467         * posix/regex_internal.c (re_string_construct_common): Likewise.
1468         (re_string_allocate): Likewise.
1469         (re_string_construct): Likewise.
1470         (re_string_realloc_buffers): Likewise.
1471         (build_wcs_buffer): Likewise.
1472         (re_string_reconstruct): Likewise.
1473         * posix/regex_internal.h: Change the type of characters in
1474         re_string_t and bracket_elem_t from "unsigned char" to "char".
1475         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
1476         warnings of some compilers.
1477         (transit_state_bkref_loop): Change the type of characters from
1478         "unsigned char" to "char", and append a cast to "char*" pointer in
1479         array subscript.
1480         (check_node_accept_bytes): Likewise.
1481         (find_collation_sequence_value): Likewise.
1483 2002-09-04  Roland McGrath  <roland@redhat.com>
1485         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
1486         from 1024 to 65536, to avoid buffer overrun.
1488 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
1490         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
1492 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
1494         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
1495         for filesystem.
1497 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
1499         * posix/bug-regex11.c: New test.
1500         * posix/Makefile (tests): Add bug-regex11.
1502 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
1504         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
1505         newlocale.
1507 2002-09-02  Roland McGrath  <roland@redhat.com>
1509         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
1510         __pthread_initialize_minimal and __libc_check_standard_fds to
1511         match the generic version.
1513         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
1514         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
1516         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
1517         warnings on platorms where char is unsigned.
1519 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
1521         * version.h (VERSION): Bump to 2.2.93.
1523         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
1525 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
1527         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
1528         as relocated.
1530 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
1532         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
1534 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
1536         * locale/localeinfo.h (struct locale_data): Add private.ctype.
1537         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
1538         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
1539         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
1540         (__wcsmbs_load_conv): Remove const from argument.
1541         (_nl_cleanup_ctype): New proto.
1542         (get_gconv_fcts): New function.
1543         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
1544         (__wcsmbs_to_wc): Rename back to...
1545         (to_wc): ... this.
1546         (__wcsmbs_gconv_fcts): Rename to...
1547         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
1548         (lock): Removed.
1549         (__libc_setlocale_lock): New extern.
1550         (__wcsmbs_load_conv): Remove const from argument.
1551         Initialize new_category->private.ctype instead of a global
1552         variable.
1553         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
1554         update_function_ptrs.  No locking is necessary.
1555         (_nl_cleanup_ctype): New function.
1556         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
1557         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
1558         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1559         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
1560         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
1561         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
1562         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
1563         * wcsmbs/wctob.c (wctob): Likewise.
1564         * stdlib/mblen.c (mblen): Likewise.
1565         * stdlib/mbtowc.c (mbtowc): Likewise.
1566         * stdlib/wctomb.c (wctomb): Likewise.
1567         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
1568         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
1569         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
1570         Removed.
1572 2002-09-02  Roland McGrath  <roland@frob.com>
1574         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
1576 2002-09-01  Roland McGrath  <roland@redhat.com>
1578         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
1579         Variable declarations removed.
1580         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
1581         these functions to replace them.
1582         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
1583         functions plus an indirection rather than the old global variables.
1584         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
1585         Macros removed.
1586         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
1587         inline functions.
1588         * ctype/ctype-info.c: Revert last reversion back the other way.
1589         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
1590         Define real function versions of include/ctype.h inlines here.
1591         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
1592         __ctype_tolower_loc, __ctype_toupper_loc.
1593         * locale/lc-ctype.c: Revert last reversion back the other way.
1594         (_nl_postload_ctype): If current thread uses the global locale,
1595         update its tsd vars.
1596         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
1597         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
1598         CTYPE_TOLOWER, CTYPE_TOUPPER.
1600         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
1601         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
1602         from __libc_tsd_threadvar_location.
1603         (__libc_tsd_set, __libc_tsd_get): Update uses.
1605 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
1607         * ctype/ctype.h: Undo the patch before the last one.  Put back the
1608         macro definitions for the standard functions to access the
1609         classification and mapping arrays.
1610         * include/ctype.h: Partly revert last patch.  Move the macro
1611         definitions for the exported functions back to the public header.
1612         #undef all the macros defined here before redefining.
1613         * ctype/ctype-info.c: Revert last patch.
1614         * locale/lc-ctype.c: Revert last patch.
1616         * ctype/Makefile (routines): Add isctype.
1617         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
1618         * ctype/ctype.h: Add declaration of isctype.
1619         * include/ctype.h: Declare __isctype.
1620         * ctype/isctype.c: New file.
1622 2002-09-01  Roland McGrath  <roland@redhat.com>
1624         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
1625         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1627         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1629         * locale/findlocale.c (_nl_remove_locale): Don't search in
1630         _nl_locale_file_list if DATA->alloc is ld_archive.
1631         Use _nl_unload_locale to do the rest of the work.
1633         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1634         of new structure to UNDELETABLE.
1636         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1637         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1638         towlower, towupper): Macros removed.
1639         * ctype/ctype.h (__tobody): Put parens around macro argument.
1640         (__isctype): Macro removed.
1641         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1642         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1643         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1644         tolower, toupper): Macros and inlines removed.
1645         * include/ctype.h [! NOT_IN_libc]
1646         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1647         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1648         tolower, toupper): Define here instead, using _NL_CURRENT.
1649         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1650         using _NL_CURRENT.
1651         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1652         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1653         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1654         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1655         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1656         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1657         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
1658         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1659         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1660         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1661         (ISSORTMASK): Update use.
1662         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1663         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1664         (_nss_files_getENTNAME_r): Likewise.
1665         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1666         Likewise.
1668         * Makerules (all-nonlib): Renamed from all-tests.
1669         Include $(others) here too.
1670         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1671         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1672         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1673         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1674         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
1675         the program modules via cppflags-iterator.mk.
1676         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1677         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1679 2002-08-31  Roland McGrath  <roland@redhat.com>
1681         * posix/tst-getconf.sh: If no third arg, work with static linking.
1683         * locale/categories.def (LC_TIME): No more _nl_postload_time.
1685         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1686         [_NL_CURRENT_INDIRECT].
1688 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1690         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1692 2002-08-31  Roland McGrath  <roland@redhat.com>
1694         * locale/newlocale.c (__newlocale): Don't use strdup for names.
1695         Instead, make the single allocation of the structure larger to hold
1696         the name strings.
1697         * locale/duplocale.c (__duplocale): Don't strdup names individually.
1698         Instead, calculate size for a single allocation and copy into it.
1699         * locale/freelocale.c (__freelocale): Don't free names individually.
1701         * locale/newlocale.c (__newlocale): Don't leak old data or names.
1703         * locale/xlocale.h (__locale_struct): Move __names member last,
1704         for binary compatibility.
1706         * locale/duplocale.c (__duplocale): Free names from the right array.
1708         * locale/uselocale.c (__uselocale): Return previous locale when
1709         setting a new one.
1711         * locale/newlocale.c: Commit changes from 2002-08-30
1712         batch where I failed to commit this file:
1713         (__newlocale): Fill in __names array.
1715 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1717         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1718         errlist-compat.c if versioning==yes.
1720 2002-08-31  Andreas Jaeger  <aj@suse.de>
1722         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1723         external functions with hidden attribute.
1724         (elf_machine_rela): Optimize.
1726         * sysdeps/x86_64/memset.S: New file.
1727         * sysdeps/x86_64/bzero.S: New file.
1728         * sysdeps/x86_64/stpcpy.S: New file.
1729         * sysdeps/x86_64/strcat.S: New file.
1730         * sysdeps/x86_64/strchr.S: New file.
1731         * sysdeps/x86_64/strcpy.S: New file.
1732         * sysdeps/x86_64/strcspn.S: New file.
1733         * sysdeps/x86_64/strlen.S: New file.
1734         * sysdeps/x86_64/strpbrk.S: New file.
1735         * sysdeps/x86_64/strspn.S: New file.
1736         * sysdeps/x86_64/strcmp.S: New file.
1737         * sysdeps/x86_64/strtok_r.S: New file.
1738         * sysdeps/x86_64/strtok.S: New file.
1739         * sysdeps/x86_64/memcpy.S: New file.
1740         * sysdeps/x86_64/mempcpy.S: New file.
1742         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1744         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1746 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1748         * stdio-common/Makefile (generated): Add errlist-compat.c.
1750         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1752         * locale/localeinfo.h: Pretty printing.
1754         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1755         form_number handling.
1757 2002-08-31  Andreas Jaeger  <aj@suse.de>
1759         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1760         double tests.
1762         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1763         __start_context.
1765         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1767         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1769         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1770         registers used for passing args.
1772         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1773         all needed registers.
1775         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1776         registers.
1778         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1779         registers.
1781 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
1783         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1784         always_inline attribute.
1786 2002-08-30  Roland McGrath  <roland@redhat.com>
1788         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1789         presume it's the stub and bail without error.
1791         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1792         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1794         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1796         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1797         macros replace the i686 versions for 64-bit mode.
1799         * locale/duplocale.c: Include <string.h>.
1801         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1802         [_LIBC] (category_to_name): Don't define the function.  Instead
1803         define a macro using _nl_category_names.
1805         * locale/xlocale.h (struct __locale_struct): New member `__names'.
1806         * locale/xlocale.c (_nl_C_locobj): Update initializer.
1807         * locale/global-locale.c (_nl_global_locale): Likewise.
1808         * locale/duplocale.c (__duplocale): strdup __names elements.
1809         * locale/freelocale.c (__freelocale): Free __names elements.
1810         * locale/localename.c (_nl_current_names): Variable removed.
1811         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1812         * locale/localeinfo.h (_nl_current_names): Removed decl.
1813         * locale/setlocale.c: Use _nl_global_locale->__names in place of
1814         _nl_current_names throughout.
1816         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1818         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1819         and sys_nerr in the output file.
1821         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1822         * scripts/cpp: Just use the environment variable.
1824         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1825         * libio/tst-mmap-offend.c (do_test): Likewise.
1826         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1827         * libio/tst-mmap-eofsync.c (do_test): Likewise.
1828         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1830         * locale/localename.c: If the current locale is the global locale, use
1831         _nl_current_names; otherwise use the locale object.
1833 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1835         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1836         'm' to enable mmap I/O.
1837         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
1838         former wasn't used (anymore?).
1839         (_IO_FLAGS2_MMAP): New define.
1840         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1841         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1842         _IO_FLAGS2_MMAP bit is set.
1843         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1844         Enable mmap-using mode only if 'm' was set.
1846 2002-08-29  Roland McGrath  <roland@frob.com>
1848         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1850         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1851         Change argument type from int to intptr_t.
1853         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1854         initializer on [! _HURD_THREADVAR_H] (bad kludge).
1855         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1856         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1857         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
1859         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1861         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1863         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1865         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1866         * assert/assert-perr.c: Add libc_hidden_def.
1867         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1869         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1870         found at all.
1871         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
1872         sys_errlist stuff to ...
1873         * sysdeps/unix/sysv/linux/Versions: ... here.
1875         * mach/mach.h: Include <features.h>.
1877 2002-08-29  Roland McGrath  <roland@redhat.com>
1879         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1880         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1881         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1883         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1885         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1886         (norm_add_slashes): alloca -> __alloca
1888 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
1890         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1891         string_malloced, it is unlikely to be set.
1892         Only call free with non-NULL workspace.
1893         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1894         -mcpu=ultrasparc, not only tune for it.
1895         (ASFLAGS*): Set unconditionally.
1897         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1898         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
1899         p_vaddr/p_offset when computing LOADADDR.
1901 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1903         * version.h (VERSION): Bump to 2.2.92.
1905         * time/Makefile (tst-ftime_l-ENV): New variable.
1907         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1909         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1910         <U017A>, <U017D> and <U0179>. Add missing mappings.
1911         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1913         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1914         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
1915         (struct tostruct): Use ACRINDEX as type for link field.
1916         (statuc gmonparam): Likewise for froms.
1917         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1918         kcount and froms.
1919         (write_call_graph): Use correct type for from_index and to_index.
1920         * gmon/mcount.c: Use correct types for frompcindex and toindex
1921         variables.
1922         Patches by Dan Kegel <dank@kegel.com>.
1924         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1925         canonical name.
1927         * time/strptime.c (ISSPACE): New #define.  Use isspace or
1928         __isspace_l.  Replace calls to isspace.
1929         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1931 2002-08-29  Roland McGrath  <roland@redhat.com>
1933         * string/tst-strxfrm.c: Remove __ from function names.
1935 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1937         * include/wchar.h: Declare __mbsrtowcs_l.
1938         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1939         * wcsmbs/mbsrtowcs.c: Add support for compilation with
1940         USE_IN_EXTENDED_LOCALE_MODEL.
1941         * wcsmbs/mbsrtowcs_l: New file.
1942         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
1943         define as static.  Change all uses.
1944         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
1945         Change all callers.
1946         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1947         * time/strftime.c: When translating for the extended locale model
1948         use the _l functions.
1949         * time/Makefile (tests): Add tst-ftime_l.
1950         * time/tst-ftime_l.c: New file.
1952 2002-08-28  Roland McGrath  <roland@redhat.com>
1954         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1955         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1956         from _nl_find_locale ok if for _nl_C_name.
1958         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1959         iterator to refer to each category's _nl_current_LC_FOO symbol, so
1960         we know they are all linked in.
1962         * NEWS: Added 2.2.6 text from 2.2 branch version.
1964         * time/strptime.c (strptime_internal): Remove spurious const.
1966         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1967         _nl_select_era_entry): Moved to ...
1968         * time/era.c: ... here, new file.
1969         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1970         Add internal_function to definitions.  Take an additional argument
1971         giving the `struct locale_data *' to use.
1972         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1973         _nl_parse_alt_digit): Moved to ...
1974         * time/alt_digit.c: ... here, new file.
1975         * time/lc-time-cleanup.c: New file.
1976         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1977         * locale/localeinfo.h (_nl_postload_time): Remove decl.
1978         (_nl_cleanup_time): Declare it.
1979         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1980         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1981         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1982         * time/strftime.c: Pass locale data to helper functions.
1983         * time/strptime.c: Likewise.
1985         * locale/localeinfo.h (struct locale_data): New member `private'
1986         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1987         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1988         * locale/C-collate.c: Update initializer.
1989         * locale/C-identification.c: Likewise.
1990         * locale/C-measurement.c: Likewise.
1991         * locale/C-telephone.c: Likewise.
1992         * locale/C-address.c: Likewise.
1993         * locale/C-name.c: Likewise.
1994         * locale/C-paper.c: Likewise.
1995         * locale/C-time.c: Likewise.
1996         * locale/C-numeric.c: Likewise.
1997         * locale/C-monetary.c: Likewise.
1998         * locale/C-messages.c : Likewise.
1999         * locale/C-ctype.c: Likewise.
2001         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
2002         Redefine this too.
2004 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2006         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
2007         (_rtld_global): Use it.
2009         * sysdeps/gnu/Dist: Remove errlist-compat.c.
2010         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
2011         object directory.  Pass all Versions files to the awk script.
2012         * sysdeps/gnu/errlist-compat.c: Removed.
2013         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
2014         first Versions file in the search path which has them.
2015         Allow multiple errlist symbol versions to have the same count of
2016         errors.
2017         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
2018         of "errlist-compat.c".
2019         * sysdeps/gnu/errlist.c: Regenerated.
2020         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
2021         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
2022         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2023         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
2024         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
2025         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
2026         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
2027         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
2028         ECANCELLED if not defined by kernel headers.
2029         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
2030         already defined by kernel headers.
2031         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
2032         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
2033         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
2034         is a macro.
2035         * Versions.def (GLIBC_2.3) [librt]: Add.
2037         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
2039 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2041         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
2042         missing comma to .type directive.
2044 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2046         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
2047         unconditionally.
2048         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
2049         check.
2050         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
2052 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2054         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
2055         check to close_and_out close.  Replace return NULL statements where
2056         fd might be >= 0 with goto close_and_out.  Close the file descriptor
2057         when it is no longer needed.
2059 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2061         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
2062         string constants.
2063         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2064         * sysdeps/arm/dl-machine.h: Likewise.
2065         * sysdeps/cris/dl-machine.h: Likewise.
2066         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
2067         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
2069 2002-08-28  Roland McGrath  <roland@redhat.com>
2071         * Makeconfig (default_cflags): Revert unintended change.
2073 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2075         * version.h (VERSION): Bump to 2.2.91.
2077         * configure.in: Disable TLS support by default for now.
2079         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
2081         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
2082         warnings.
2084         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
2086         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
2087         fprintf/fwprintf calls.
2089 2002-08-28  Roland McGrath  <roland@redhat.com>
2091         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
2092         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
2094         * locale/setlocale.c: Declare postload functions weak.
2096         * elf/tst-tls1-static.c: New file.
2097         * elf/tst-tls2-static.c: New file.
2098         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
2100         Make uselocale support static linking.
2101         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
2102         This file again just defines _nl_C_locobj.
2103         (_nl_C_locobj): Use a categories.def iterator in the initializer.
2104         * locale/global-locale.c: New file.  Define _nl_global_locale here,
2105         using all weak references in the initializer.
2106         * locale/Makefile (aux): Add global-locale.
2107         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
2108         these unconditional, along with the tsd decl.
2109         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
2110         Define it under these conditions.
2111         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
2112         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
2113         `extern __thread struct locale_data *const *'.
2114         [NL_CURRENT_INDIRECT]
2115         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
2116         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
2117         the thread variable _nl_current_LC_FOO and also a special absolute
2118         symbol _nl_current_LC_FOO_used.
2119         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
2120         Set each _nl_current_LC_FOO symbol to point into the new locale,
2121         using weak references to test if _nl_current_LC_FOO_used was linked in.
2122         * locale/setlocale.c [! SHARED]: Replace this conditional ...
2123         [NL_CURRENT_INDIRECT]: ... with this one.
2124         (_nl_current, _nl_C): Variables removed.
2125         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
2126         weak references to _nl_current_LC_FOO_used.
2127         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
2128         (free_category): New function, broken out of ...
2129         (free_mem): ... here.  Call that.
2130         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
2131         instead of a loop.
2133         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
2134         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
2135         it is already absolute.
2137         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
2138         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
2139         [$(build-static) = yes] (tests-static): New variable.
2140         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
2142 2002-08-26  Christoph Hellwig  <hch@lst.de>
2144         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
2145         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
2147 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2149         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
2151         * sysdeps/s390/Dist: Add bits/link.h.
2153         * sysdeps/sh/Dist: New file.
2155         * sysdeps/ia64/Dist: Add ia64libgcc.S.
2157         * sysdeps/wordsize-32/Dist: New file.
2159         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
2160         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
2161         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
2163         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
2164         sys/personality.h.
2166         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
2167         sparc/dl-brk.S.
2169         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
2171         * sysdeps/unix/bsd/sun/Dist: New file.
2173         * sysdeps/unix/bsd/osf/Dist: New file.
2175         * sysdeps/unix/bsd/hp/Dist: New file.
2177         * sysdeps/unix/arm/Dist: New file.
2179         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
2181         * sysdeps/mach/hurd/Dist: Add set-init.c.
2183         * sysdeps/i386/Dist: Add bits/link.h.
2185         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
2187         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
2189         * locale/Makefile (distribute): Add hashval.h.
2191         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
2193         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
2195         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
2196         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
2197         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
2198         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
2199         implementations.
2200         * libio/stdio.h: Likewise.
2201         * locale/locale.h: Likewise.
2202         * math/math.h: Likewise.
2203         * math/bits/mathcalls.h: Likewise.
2204         * setjmp/setjmp.h: Likewise.
2205         * signal/signal.h: Likewise.
2206         * stdlib/stdlib.h: Likewise.
2207         * string/string.h: Likewise.
2208         * time/time.h: Likewise.
2209         * wcsmbs/wchar.h: Likewise.
2210         * wctype/wctype.h: Likewise.
2212 2002-08-28  Roland McGrath  <roland@redhat.com>
2214         * locale/tst-C-locale.c (run_test): Remove __ from function names.
2216 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2217             Roland McGrath <roland@redhat.com>
2219         * locale/hashval.h (compute_hashval): Use prototype defn.
2220         (hashval_t): New macro, defined to unsigned long int
2221         if not already defined.
2222         (compute_hashval): Return hashval_t instead of unsigned long int.
2223         * locale/loadarchive.c (hashval_t): New macro.
2224         * locale/programs/locarchive.c: Include hashval.h directly instead
2225         of simple-hash.h.
2226         (compute_hashval, hashval_t): Define these macros first.
2227         (insert_name): Use archive_hashval instead of compute_hashval.
2228         (add_locale, delete_locales_from_archive): Likewise.
2230 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2232         * locale/programs/locarchive.c (insert_name): Suppress warnings about
2233         hash collisions if be_quiet.
2235 2002-08-27  Roland McGrath  <roland@redhat.com>
2237         * locale/locale.h (__newlocale, __duplocale, __freelocale,
2238         __uselocale): Don't declare these any more.
2239         * include/locale.h (__uselocale): Declare here instead, using __typeof.
2241         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
2242         and treat it as an EOF return.
2243         * sysdeps/unix/readdir_r.c: Likewise.
2245         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
2246         From Alexandre Oliva <aoliva@redhat.com>.
2247         * sysdeps/gnu/errlist-compat.c: Regenerated.
2249 2002-08-27  Brian Youmans  <3diff@gnu.org>
2251         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
2252         wording at request of copyright holder Stephen Moshier.
2253         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2254         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2255         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2256         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2257         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2258         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2259         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2260         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2261         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2262         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2263         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2264         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2265         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2266         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2268 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2270         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
2271         * ctype/ctype-extn.c (isblank_l): Add weak alias.
2272         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
2273         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
2274         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
2275         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
2276         * wctype/iswctype_l.c (iswctype_l): Likewise.
2278 2002-08-27  Roland McGrath  <roland@redhat.com>
2280         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
2282         * ctype/ctype.h (__exctype_l): Don't declare __ name.
2283         * stdlib/stdlib.h: Don't declare __*_l names.
2284         * include/stdlib.h: Declare them here instead.
2285         * include/string.h: Don't declare __*_l names.
2286         * string/string.h: Declare them here instead.
2287         * time/time.h: Don't declare __*_l names.
2288         * include/time.h: Declare them here instead.
2289         * wcsmbs/wchar.h: Don't declare __*_l names.
2290         * include/wchar.h: Declare them here instead.
2291         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
2292         Don't declare __*_l names.
2293         * include/wctype.h: Declare them here instead.
2294         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
2295         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
2296         * locale/langinfo.h: Don't declare __nl_langinfo_l.
2297         * include/langinfo.h: Declare it here with __typeof.
2299         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
2300         instead, taking an extra __locale_t argument.
2301         * time/Makefile (routines): Add strptime_l.
2302         * time/time.h (__strptime_l, strptime_l): Declare them.
2303         * time/strptime_l.c: New file.
2305         * time/time.h (__strftime_l, strftime_l): Declare them.
2306         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
2307         * time/strftime_l.c: New file.
2308         * time/wcsftime_l.c: New file.
2309         * time/Makefile (routines): Add strftime_l, wcsftime_l.
2310         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
2311         strftime_l, wcsftime_l.
2312         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
2313         or __wcsftime_l instead, taking an extra __locale_t argument.
2315         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
2316         (libc: GLIBC_2.3): ... here.
2318 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
2320         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
2322         * Makefile (distribute): Add LICENSES.
2324         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
2325         sys/debugreg.h.
2327         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
2329         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
2331         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
2333         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
2335         * sysdeps/mach/hurd/alpha/Dist: New file.
2337         * sysdeps/arm/Dist: Add bits/link.h.
2339         * sunrpc/Makefile: Distribute thrsvc.
2341         * stdio-common/Makefile: Remove more left-overs from old stdio.
2343         * include/linewrap.h: Removed.
2345         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
2347         * intl/Makefile (distribute): Add plural-eval.c.
2349 2002-08-27  Roland McGrath  <roland@redhat.com>
2351         * manual/sysinfo.texi (Mount Information): Correct file name to macro
2352         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
2353         Say mtab is in either /var/run or /etc.
2355 2002-08-26  Roland McGrath  <roland@redhat.com>
2357         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
2358         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
2360         * sysdeps/gnu/Versions: New file.
2361         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
2362         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
2363         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
2364         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
2365         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
2366         and _sys_nerr_internal instead of anything else.  Make it include
2367         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
2368         Make it emit some asm magic if [EMIT_ERR_MAX].
2369         * sysdeps/gnu/errlist.c: Regenerated.
2370         * sysdeps/gnu/errlist-compat.awk: New file.
2371         * sysdeps/gnu/errlist-compat.c: New file (generated).
2372         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
2373         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
2374         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
2375         (SYS_ERRLIST, SYS_NERR): Macros removed.
2376         (sys_nerr, _sys_nerr): Remove these weak aliases.
2377         * sysdeps/unix/sysv/linux/errlist.c: File removed.
2378         * sysdeps/unix/sysv/linux/errlist.h: File removed.
2379         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
2381         * include/libc-symbols.h (declare_symbol): New macro.
2382         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
2383         * configure.in: New check to define it.
2384         * configure: Regenerated.
2386 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
2388         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
2389         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
2391         * Make-dist: Remove traces of old stdio.
2392         * Makeconfig: Likewise.
2394         * locale/Makefile (localedef-aux): New variable.  Only md5
2395         assigned to it.  These files are not ddistributed in this directory.
2397         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
2398         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
2399         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
2401         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
2403         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
2404         set h_errno to NO_RECOVERY [PR libc/4360].
2406 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2408         * libio/Makefile (tests): Add bug-fopena+.
2409         * libio/bug-fopena+.c: New file.
2410         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
2411         file for _IO_IS_APPENDING if file isn't opened for reading, too.
2413         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
2415         * locale/xlocale.c: Fix the last change.  The variable still has
2416         to end in _data.
2417         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
2418         (__libc_tsd_set): Add _data prefix to variable name.
2420 2002-08-26  Roland McGrath  <roland@redhat.com>
2422         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
2423         macro with inline function.
2424         (sigset_get_old_mask): Likewise.
2425         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
2426         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2427         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2428         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
2429         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
2430         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
2431         values.
2432         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
2433         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
2435 2002-07-06  Bruno Haible  <bruno@clisp.org>
2437         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
2438         sigset_get_old_mask): Make it work with larger sigset_t.
2439         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
2440         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2441         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2443 2002-08-26  Roland McGrath  <roland@redhat.com>
2445         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
2446         * manual/filesys.texi (File Times): Document lutimes and futimes.
2447         * misc/Makefile (routines): Add them.
2448         * misc/Versions (libc: GLIBC_2.3): Likewise.
2449         * sysdeps/generic/lutimes.c: New file.
2450         * sysdeps/generic/futimes.c: New file.
2451         * sysdeps/mach/hurd/lutimes.c: New file.
2452         * sysdeps/mach/hurd/futimes.c: New file.
2454         * manual/filesys.texi (File Times): Add explicit note about null
2455         pointer argument to utimes.
2457 2002-08-26  Roland McGrath  <roland@frob.com>
2459         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
2460         (__ifreq): Add a cast.  Remove an unused variable.
2462         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
2463         _HURD_THREADVAR_LOCALE.
2465 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
2467         * posix/regexec.c (re_search_stub): Return correct match length
2468         if start != 0.
2469         * posix/bug-regex10.c: New test.
2470         * posix/Makefile (tests): Add bug-regex10.
2472 2002-08-26  Brian Youmans  <3diff@gnu.org>
2474         * COPYING.LIB: Replaced with fresh copy from
2475         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
2476         suggested copying permission notice now says version 2.1 instead
2477         of version 2.
2479         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
2480         from Library GPL.
2481         * crypt/crypt_util.c: Likewise.
2482         * crypt/ufc.c: Likewise.
2483         * elf/dl-conflict.c: Likewise.
2484         * elf/dl-iteratephdr.c: Likewise.
2485         * iconv/iconvconfig.h: Likewise.
2486         * malloc/arena.c: Likewise.
2487         * malloc/hooks.c: Likewise.
2488         * malloc/malloc.c: Likewise.
2489         * posix/glob/Makefile.ami: Likewise.
2490         * posix/glob/Makefile.in: Likewise.
2491         * stdlib/gmp-impl.h: Likewise.
2492         * stdlib/gmp.h: Likewise.
2493         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
2494         * sysdeps/generic/strnlen.c: Likewise.
2495         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
2496         * sysdeps/mach/hurd/recvmsg.c: Likewise.
2497         * sysdeps/mach/hurd/sendmsg.c: Likewise.
2498         * sysdeps/mach/hurd/spawni.c: Likewise.
2499         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
2500         * sysdeps/mach/powerpc/sysdep.h: Likewise.
2501         * sysdeps/mach/powerpc/thread_state.h: Likewise.
2502         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
2503         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
2504         * sysdeps/x86_64/gmp-mparam.h: Likewise.
2506         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
2507         Lesser GPL copying permission notice from 2 to 2.1.
2508         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
2509         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
2510         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2511         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
2512         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2513         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2514         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2515         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2516         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2517         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2518         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2519         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2520         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2521         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2522         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2523         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2524         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2525         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2526         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2527         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2528         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2529         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2530         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2531         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2532         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2533         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2534         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2535         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2536         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2537         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2538         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2539         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2540         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2541         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2542         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2543         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2544         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2545         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2546         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2547         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2548         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2549         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2550         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2551         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2552         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2553         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2554         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2555         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2556         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2557         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2558         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2559         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2560         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2561         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2562         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2564         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
2565         Moshier and Lesser GPL copying permission notice, per license from
2566         Moshier.
2567         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2568         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2569         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2570         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2571         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2572         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2573         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2574         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2575         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2576         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2577         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2578         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2579         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2580         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2582         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
2583         notice, per license from copyright holder Stephen Moshier.
2584         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2585         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2586         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2587         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2588         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2589         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2590         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2591         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2592         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2594 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2596         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
2597         (shared-only-routines): Likewise.
2599 2002-08-26  Roland McGrath  <roland@redhat.com>
2601         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
2602         name of "", store a null pointer instead.
2604         * configure.in (elf): Set to yes for freebsd*, netbsd*.
2605         * configure: Regenerated.
2607         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
2608         Initialize this instead of __libc_tsd_LOCALE_data.
2610         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
2611         ptsname_r to EINVAL.
2613         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
2615         * rt/Makefile: Revert last change, it was inappropriate to presume aio
2616         implementations depend on pthreads.
2617         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
2618         * rt/tst-aio64.c (do_test): Likewise.
2619         * rt/tst-aio2.c (do_test): Likewise.
2620         * rt/tst-aio3.c (do_test): Likewise.
2621         * rt/tst-aio4.c (do_test): Likewise.
2622         * rt/tst-aio5.c (do_test): Likewise.
2623         * rt/tst-aio6.c (do_test): Likewise.
2624         * rt/tst-aio7.c (do_test): Likewise.
2626         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2627         void so as to avoid compiler warnings.
2629         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2630         _IO_wide_data_FD, which is never used here.
2632         * libio/iofread.c
2633         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2634         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2635         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2637         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2638         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2640         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2641         (closelog): Likewise.
2643 2002-07-06  Bruno Haible  <bruno@clisp.org>
2645         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2647         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2648         * sysdeps/unix/alpha/pipe.S: ... here.
2649         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2651         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2653         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2654         * sysdeps/unix/i386/fork.S: Likewise.
2655         * sysdeps/unix/i386/pipe.S: Likewise.
2656         * sysdeps/unix/i386/wait.S: Likewise.
2658         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2659         * sysdeps/unix/arm/fork.S: Likewise.
2661         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2662         arguments.
2663         (DO_CALL): Swap argument order.
2664         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2665         arguments.
2666         (DO_CALL): Swap argument order.
2667         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2668         arguments.
2669         (DO_CALL): Swap argument order.
2670         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2671         arguments.
2672         (DO_CALL): Swap argument order.
2673         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2674         arguments.
2675         (DO_CALL): Swap argument order.
2676         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2677         arguments.
2678         (DO_CALL): Swap argument order.
2679         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2680         arguments.
2681         (DO_CALL): Swap argument order.
2683         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2684         (L): Define right for ELF.
2685         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2686         Now defined in sysdeps/i386/sysdep.h.
2688         * sysdeps/posix/readv.c: Ansify function definition.
2689         * sysdeps/posix/writev.c: Likewise.
2691         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2692         have the same size. Avoid direct cast from size_t to off_t.
2694         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2695         nul byte in entry[n].ut_user.
2696         (simulate_logout): Likewise.
2698         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2699         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2700         existence of corresponding members of 'struct utmp'.
2701         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2702         !_HAVE_UT_TYPE.
2704         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2705         allocate a buffer of at least BUFSIZ bytes, not just of
2706         sizeof (struct dirent).
2708         * sysdeps/generic/glob.c: Include <limits.h>.
2709         (NAME_MAX): Define a fallback.
2710         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2711         stack.
2712         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2713         (main): Allocate enough room for a 'struct dirent64' on the stack.
2714         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2715         'struct dirent'.
2717         * sysdeps/unix/sysv/linux/init-first.c: Don't include
2718         kernel-features.h.
2720         * inet/htontest.c: Include <sys/types.h>.
2722         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2724         * include/sys/sysctl.h: Comment fix.
2726         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2727         _dl_load_lock.
2728         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2730         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2732         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2733         (__getpeername): New alias.
2734         (__getsockname): New alias.
2735         (__socket): New alias.
2737         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2739         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2740         (__fcntl_internal): New alias.
2741         (__profil): New alias.
2743 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2745         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2746         entry was for getaddr* lookup or not.  Add only matching cache
2747         entry.  Change all callers [PR libc/4317].
2749         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2750         finding the read position [PR libc/4265].
2751         * libio/Makefile (tests): Add bug-rewind2.
2752         * libio/bug-rewind2.c: New file.
2754         * libio/bug-rewind.c: Fix creation of temp file.
2756 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2758         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2759         neither SUCCESS nor TRYAGAIN [PR libc/4259].
2760         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2761         to ENOENT if no entry is found.
2762         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2763         failure.
2764         * nis/nss_compat/compat-initgroups.c: Likewise.
2765         * nis/nss_compat/compat-pwd.c: Likewise.
2766         * nis/nss_compat/compat-spwd.c: Likewise.
2767         * nis/nss_nis/nis-alias.c: Likewise.
2768         * nis/nss_nis/nis-ethers.c: Likewise.
2769         * nis/nss_nis/nis-grp.c: Likewise.
2770         * nis/nss_nis/nis-hosts.c: Likewise.
2771         * nis/nss_nis/nis-initgroups.c: Likewise.
2772         * nis/nss_nis/nis-netgrp.c: Likewise.
2773         * nis/nss_nis/nis-network.c: Likewise.
2774         * nis/nss_nis/nis-proto.c: Likewise.
2775         * nis/nss_nis/nis-publickey.c: Likewise.
2776         * nis/nss_nis/nis-pwd.c: Likewise.
2777         * nis/nss_nis/nis-rpc.c: Likewise.
2778         * nis/nss_nis/nis-service.c: Likewise.
2779         * nis/nss_nis/nis-spwd.c: Likewise.
2780         * resolv/nss_dns/dns-host.c: Likewise.
2781         * resolv/nss_dns/dns-network.c: Likewise.
2782         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2783         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2784         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2785         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2786         * nis/nss_nisplus/nisplus-network.c: Likewise.
2787         * nis/nss_nisplus/nisplus-proto.c: Likewise.
2788         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2789         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2790         * nis/nss_nisplus/nisplus-service.c: Likewise.
2791         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2792         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2793         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2794         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2795         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2797         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2798         declaring __restore and __restore_rt as hidden (if possible).
2800 2002-08-25  Roland McGrath  <roland@redhat.com>
2802         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2804         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2805         (getutent_r_file, internal_getut_r): Updated all callers.
2806         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2808 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2810         * locale/programs/locale.c: Don't print aliases for non-existing
2811         locales for 'locale -a'.
2812         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2814 2002-07-19  H.J. Lu  <hjl@gnu.org>
2816         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2818 2002-07-16  H.J. Lu  <hjl@gnu.org>
2820         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2821         sys/personality.h.
2822         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2824 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2826         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2827         not moved ahead of the fputs call.
2828         * elf/tst-tlsmod2.c (in_dso): Likewise.
2829         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2830         * elf/tst-tlsmod4.c (in_dso): Likewise.
2832 2002-08-25  Andreas Schwab  <schwab@suse.de>
2834         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2836 2002-08-25  Roland McGrath  <roland@redhat.com>
2838         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2839         resetting handler, to avoid the possibility of a spurious SIGALRM
2840         delivered to the user's handler.
2841         Reported by Amit D. Chaudhary <amitc@brocade.com>,
2843         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
2844         set -fkeep-inline-functions, which is not needed for the current file.
2846         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2847         (_dl_setup_hash): Add attribute_hidden.
2848         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2849         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2850         (_dl_new_object, _dl_map_object_deps): Likewise.
2851         (_dl_map_object_deps_internal): Remove decl.
2852         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2854         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2855         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2856         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2857         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2858         instead relying on the compiler to produce only GOTOFF variable refs.
2860 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2862         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
2864         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2865         inline to avoid defining it in every file which includes this header.
2867         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2868         defining DONT_USE_BOOTSTRAP_MAP.
2870         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2871         * libio/tst-mmap-setvbuf.c (main): Likewise.
2872         * libio/tst-widetext.c (main): Likewise.
2874         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2875         message.
2876         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2877         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2879         * sysdeps/i386/elf/configure.in: Unconditionally define
2880         PI_STATIC_AND_HIDDEN.
2881         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2882         PI_STATIC_AND_HIDDEN is defined as well.
2883         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2885 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
2887         * sysdeps/ia64/bzero.S: Define __bzero as well.
2889         * locale/programs/charmap.c (charmap_new_char): Don't use
2890         ULONG_MAX as maximum UCS4 value.
2892         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2894         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2896         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2897         * malloc/malloc.c (mALLINFo): Likewise.
2899         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2901         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2902         examining result of _IO_do_flush call.
2904         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2905         Use prec not spec when sizing buffers.
2907         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2908         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2909         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2910         * stdio-common/vfscanf.c (inchar): Likewise.
2911         * misc/efgcvt_r.c (fcvt_r): Likewise.
2912         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2913         * elf/readlib.c (process_file): Likewise.
2914         * elf/sprof.c (load_profdata): Likewise.
2915         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2916         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2917         * locale/programs/charmap.c (charmap_read): Likewise.
2918         * libio/fileops.c: Likewise.
2919         * libio/fmemopen.c: Likewise.
2920         * stdlib/strtod.c: Likewise.
2921         * elf/dl-load.c: Likewise.
2922         * iconv/iconvconfig.c: Likewise.
2923         * iconv/iconv_prog.c (process_block): Likewise.
2924         * elf/rtld.c (dl_main): Likewise.
2926         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2927         macro to calm down the compiler.
2929         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2931         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2933         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2934         placement of errno definition.
2935         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2936         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2937         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2938         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2939         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2941         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2942         from 1024 to 65536, to avoid buffer overrun.
2944 2002-08-16  Paul Eggert  <eggert@twinsun.com>
2946         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2947         from 1024 to 65536, to avoid buffer overrun.
2948         * resolv/res_query.c (MAXPACKET): Likewise.
2950 2002-08-24  Andreas Jaeger  <aj@suse.de>
2952         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2954 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
2956         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2957         two52 locally.
2958         (log2): Likewise.
2959         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2960         Patch by Simon Gee <simong@agile.tv>.
2962         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2963         Prefer reading /proc/stat since it is more uniform across
2964         architectures.
2966         * manual/texinfo.tex: Update to latest official version.
2968         * sysvipc/sys/shm.h: Remove SHMLBA definition.
2969         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2970         * sysdeps/gnu/bits/shm.h: Likewise.
2971         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2972         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2973         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2974         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2975         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2976         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2977         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2978         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2979         since this is what the kernel says.
2981         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2982         since ssize_t is needed as well.  Replace const with __const.
2984 2002-08-23  Roland McGrath  <roland@redhat.com>
2986         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2987         __malloc_hook, __realloc_hook, __memalign_hook,
2988         __after_morecore_hook): Variable definitions moved to ...
2989         * malloc/malloc.c: ... here, so as to be before all references.
2991         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2992         global variable reference in an unused asm parameter, to ensure the
2993         compiler has set up the GOT register before we use it.
2995         * malloc/hooks.c: Move variable definitions ahead of uses.
2996         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2997         initializers that make reference to variables they define.
2999 2002-08-23  Andreas Jaeger  <aj@suse.de>
3001         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
3002         alloca, free, qsort.
3004         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
3006         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
3007         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
3009         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
3010         <hch@lst.de>.
3011         * sysdeps/generic/fgetxattr.c: New file.
3012         * sysdeps/generic/flistxattr.c: New file.
3013         * sysdeps/generic/fremovexattr.c: New file.
3014         * sysdeps/generic/fsetxattr.c: New file.
3015         * sysdeps/generic/getxattr.c: New file.
3016         * sysdeps/generic/listxattr.c: New file.
3017         * sysdeps/generic/lgetxattr.c: New file.
3018         * sysdeps/generic/llistxattr.c: New file.
3019         * sysdeps/generic/lremovexattr.c: New file.
3020         * sysdeps/generic/lsetxattr.c: New file.
3021         * sysdeps/generic/removexattr.c: New file.
3022         * sysdeps/generic/setxattr.c: New file.
3023         * misc/Makefile (headers): Add sys/xattr.h.
3024         (routines): Add *xattr calls.
3025         * misc/Versions: Add *xattr calls with version 2.3.
3026         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
3027         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3028         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3029         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
3030         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
3031         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
3032         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
3033         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3035 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
3037         * sysdeps/powerpc/elf/libc-start.c
3038         (__cache_line_size): Declare.
3039         (__aux_init_cache): New function.
3040         (__libc_start_main): Change type of `auxvec' parameter to
3041         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
3042         __aux_init_cache.
3043         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3044         (__cache_line_size): Declare.
3045         (__aux_init_cache): New function.
3046         (DL_PLATFORM_INIT): Define.
3047         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
3048         value to select the correct stride for dcbz.
3050 2002-08-22  Andreas Jaeger  <aj@suse.de>
3052         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
3053         shmat.
3055 2002-08-22  Roland McGrath  <roland@redhat.com>
3057         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
3058         position indicated by locrectab against file bounds before rounding to
3059         page size.  In mapping loop, always set TO before breaking out of
3060         contiguous range coalescing loop.
3062         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
3063         (or MAP_COPY if available) instead of MAP_SHARED.
3065         * scripts/firstversions.awk: When encountering a version newer than
3066         the specified earliest version, be sure to emit the specified earliest
3067         version first if any renaming of an older version to that has been.
3069 2002-08-21  Roland McGrath  <roland@redhat.com>
3071         * configure.in: Make GCC version check require 3.[2-9]* and no others.
3072         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
3073         (Configuring and compiling): Don't mention older GCC versions any more.
3074         * INSTALL: Regenerated.
3076         * manual/install.texi (Configuring and compiling, Installation,
3077         Running make install, Linux): Linux -> GNU/Linux where appropriate.
3079         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
3080         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
3081         and with noinline otherwise.  Remove hack alloca use to prevent
3082         inlining, we can ask for it explicitly nowadays.
3084         * dlfcn/bug-dlsym1.c: New file.
3085         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
3086         * dlfcn/Makefile (distribute): Add them.
3087         (tests): Add bug-dlsym1 here.
3088         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
3089         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
3090         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
3092 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
3094         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
3095         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
3096         before relocation.
3097         (_dl_start): Don't use local bootstrap_map variable if
3098         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
3099         pass bootstrap_map to _dl_start_final in this case either.  Don't
3100         pass start_time to _dl_start_final ever.
3101         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
3103         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
3104         This cripples the scope lists necessary to search for symbols in
3105         dependencies which are not in the global scope.
3107         * include/setjmp.h (__libc_longjmp): Add declaration.
3109 2002-08-21  Andreas Jaeger  <aj@suse.de>
3111         * sysdeps/x86_64/_mcount.S: Fix assembler.
3113         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
3114         with biarch support.
3116 2002-08-21  Andreas Jaeger  <aj@suse.de>
3118         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
3120         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
3122         * sysdeps/x86_64/machine-gmon.h: New file.
3123         * sysdeps/x86_64/_mcount.S: New file.
3125 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
3127         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
3128         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
3129         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
3130         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
3131         to TL_INIT_TP.  Otherwise pass 1.
3132         * include/link.h (struct link_map): Add l_tls_tp_initialized.
3133         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
3135 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
3137         * locale/programs/localedef.c (add_to_readlist): Error about
3138         circular dependencies only if the locale in question hasn't
3139         been finished.
3140         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
3141         CTYPE_LOCALE to load_locale.
3142         * locale/programs/locfile.c (locfile_read): Don't include
3143         unneeded but available locales in locale_mask.
3145         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
3146         print any messages about enlarging archive.
3148 2002-08-20  Brian Youmans  <3diff@gnu.org>
3150         * manual/contrib.texi: Removed licenses, added acknowledgements
3151         for contributions by Intel, IBM, Craig Metz.
3152         * LICENSES: New file, contains the text of all non-FSF licenses in the
3153         distribution that require putting the notice in the accompanying
3154         documentation.
3155         * README.template, README: Mention LICENSES.
3157         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
3158         new one modelled on the modern BSD license, per recent letter
3159         of permission from CMU.
3160         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
3162         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
3163         from IBM to FSF, per the recent Software Letter.  Changed the
3164         distribution terms from GPL to LGPL.
3166         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
3167         copying permission notice (Lesser GPL), per recent IBM Software Letter.
3168         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
3169         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
3170         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
3171         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
3172         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
3173         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
3174         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
3175         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
3177         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
3178         from IBM to FSF, per the recent Software Letter.  Corrected the
3179         text of the copying permission notice to say Lesser GPL instead
3180         of GPL in warranty disclaimer paragraph.
3181         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
3182         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
3183         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
3184         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
3185         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
3186         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
3187         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
3188         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
3189         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
3190         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
3191         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
3192         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
3193         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
3194         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
3195         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
3196         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
3197         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
3198         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
3199         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
3200         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
3201         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
3203         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
3204         permission notice to say Lesser GPL instead of GPL in warranty
3205         disclaimer paragraph.
3206         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
3207         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3208         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3209         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3210         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3211         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3212         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3213         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3214         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3215         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3216         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
3217         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
3218         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
3219         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
3220         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
3221         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
3222         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
3223         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3224         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3225         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3226         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
3227         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
3228         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
3230 2002-08-20  Roland McGrath  <roland@redhat.com>
3232         Fix ABI compatibility with libc compiled with old tools on powerpc.
3233         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3234         and Jack Howarth <howarth@bromo.med.uc.edu>.
3235         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
3236         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
3237         pass -DHAVE_DOT_HIDDEN for these files.
3238         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
3239         __floatdisf.
3240         * sysdeps/powerpc/divdi3.c: New file.
3241         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
3242         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
3244 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
3246         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
3247         partially overlapping mappings.  Remove unneeded (char *) casts.
3248         Never allow duplication of ranges in mapped areas.
3250 2002-08-20  Roland McGrath  <roland@redhat.com>
3252         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
3253         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
3255 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
3257         * include/unistd.h: Don't hide _exit.
3259         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
3260         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
3261         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
3262         argument 1 to TLS_INIT_TP.
3263         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
3265         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
3267         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
3268         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
3269         memory allocation to...
3270         (allocate_dtv): ...here.  New function.
3271         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
3272         call allocate_dtv instead of _dl_allocate_tls_storage.
3273         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
3274         (_dl_get_tls_static_info): New function.
3275         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
3276         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
3278 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
3280         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
3281         immediately if result == NULL.
3283 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
3285         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
3287 2002-08-18  Roland McGrath  <roland@frob.com>
3289         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
3290         instead of __file_name_split.
3291         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
3293         * sysdeps/mach/hurd/dl-sysdep.c
3294         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
3295         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
3297 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
3299         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
3300         in change before last: MAX -> MIN.
3302 2002-08-15  Roland McGrath  <roland@redhat.com>
3304         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
3305         if seek would go past it.
3306         (mmap_remap_check): If file position is at or past EOF after check,
3307         leave read pointers at EOF and don't seek.
3309         * libio/tst-mmap-offend.c: New file.
3310         * libio/Makefile (tests): Add it.
3312         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
3313         the name as passed, rather than the name in the archive dictionary.
3315 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
3317         * csu/Makefile: Define elide-routines.os not static-only-routines.
3319         * include/sched.h (__clone): Add varargs at the end.
3321         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
3322         case.
3323         (TLS_INIT_HELPER): If defined, use it.
3324         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
3326 2002-08-15  Roland McGrath  <roland@redhat.com>
3328         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
3329         on L->l_prev; it can happen under rtld --verify too.
3331         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
3332         header separately, just map an initial window of 2MB from the file
3333         and remap if that is not large enough to cover the whole header.
3335 2002-08-15  Andreas Jaeger  <aj@suse.de>
3337         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
3338         version 2.3.
3339         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3340         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
3341         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
3342         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
3343         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
3344         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3345         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3346         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
3347         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
3348         Patch by Andreas Gruenbacher <agruen@suse.de>.
3350         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
3352 2002-08-14  Roland McGrath  <roland@redhat.com>
3354         * locale/locarchive.h (struct locale_category_data): Give this name to
3355         the type of locale_data_t's elements.
3356         * locale/programs/locarchive.c (cmpcategorysize): New static function.
3357         (add_locale): Use that to sort the categories by size and put all
3358         those that fit into two pages into the LC_ALL block, instead of
3359         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
3360         (show_archive_content): Detect categories inside LC_ALL block
3361         directly, instead of hard-coding.
3362         (oldlocrecentcmp): Compare just on file locations used.
3364 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
3366         * locale/programs/locarchive.c (struct oldlocrecent): New type.
3367         (oldlocrecentcmp): New function.
3368         (enlarge_archive): Re-add locales in the order they were added
3369         to the archive.
3370         (add_locale): Put all the small locale files together, if the small
3371         locale file block would occupy less pages if page size aligned, align
3372         it.
3373         (show_archive_content): Adjust for locale archives optimized for speed.
3375 2002-08-14  Roland McGrath  <roland@frob.com>
3377         * configure.in: Use "MISSING" as not-found value for MIG.
3378         * sysdeps/mach/configure.in: Fatal if mig not found.
3379         * configure, sysdeps/mach/configure: Regenerated.
3381 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
3383         * locale/loadarchive.c (archfname): Add missing slash.
3385         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
3386         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
3388 2002-08-12  Roland McGrath  <roland@redhat.com>
3390         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
3391         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
3392         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
3393         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
3394         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
3395         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
3396         * sysdeps/generic/waitpid.c: Likewise.
3398         * include/net/if.h: New file.  Use libc_hidden_proto
3399         for if_nametoindex and if_indextoname.
3400         * sysdeps/generic/if_index.c: Add libc_hidden_def.
3401         * sysdeps/mach/hurd/if_index.c: Likewise.
3402         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
3404         * include/grp.h (setgroups): Add libc_hidden_proto.
3405         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
3406         * sysdeps/mach/hurd/setgroups.c: Likewise.
3407         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
3408         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3410 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
3412         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
3413         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
3414         * sysdeps/generic/setegid.c (setegid): Likewise.
3415         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
3416         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
3417         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
3418         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
3419         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
3420         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
3421         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
3422         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
3423         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
3424         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
3425         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
3426         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
3427         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
3429         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
3430         __lxstat_internal, __lxstat64_internal): Remove.
3431         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
3432         Add hidden_proto.
3433         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
3434         Remove INTDEF where present, remove #undef at the beginning.
3435         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
3436         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
3437         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
3438         * sysdeps/generic/xstat.c (__xstat): Likewise.
3439         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
3440         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
3441         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
3442         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
3443         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
3444         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
3445         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
3446         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
3447         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
3448         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
3449         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
3450         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
3451         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
3452         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
3453         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
3454         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
3455         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
3456         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
3457         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
3458         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
3459         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
3460         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
3461         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
3462         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3463         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3464         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3465         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
3466         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
3467         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
3468         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3469         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
3470         * sysdeps/unix/xstat.c (__xstat): Likewise.
3472         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
3473         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
3474         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
3475         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
3476         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
3477         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
3478         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
3480         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
3481         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
3482         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
3483         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
3484         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
3485         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
3486         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
3487         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
3488         Likewise.
3489         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
3490         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
3491         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
3492         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
3493         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
3494         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
3495         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
3496         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
3498         * include/string.h (strcoll): Add libc_hidden_proto.
3499         * string/strcoll.c (strcoll): Add libc_hidden_def.
3501         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
3503 2002-08-11  Philip Blundell  <philb@gnu.org>
3505         * sysdeps/arm/Makefile: New file.
3507 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3509         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
3510         by another '|', end of regex or enclosing ')', clear branch.
3511         * posix/bug-regex9.c: New test.
3512         * posix/Makefile (tests): Add bug-regex9.
3514 2002-08-12  Roland McGrath  <roland@redhat.com>
3516         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
3517         start count condition, use TOTAL instead of variable that was never
3518         set.  Fix outer loop termination condition to TOTAL >= after update.
3520         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
3521         dl_tls_static_align and dl_tls_static_nelem.
3523 2002-08-11  Roland McGrath  <roland@redhat.com>
3525         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
3526         of the TLS macros, otherwise the compiler might not have initialized
3527         the PIC register yet when we use the PLT via asm.
3528         * elf/tst-tlsmod3.c (in_dso2): Likewise.
3529         * elf/tst-tlsmod2.c (in_dso): Likewise.
3531         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
3533         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
3534         Evaluate argument exactly once.  Remove __volatile__ from asm's.
3536         * include/unistd.h: Use libc_hidden_proto for getdomainname
3537         and getlogin_r.
3538         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
3539         * sysdeps/mach/hurd/getdomain.c: Likewise.
3540         * sysdeps/unix/getlogin_r.c: Likewise.
3541         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
3542         * sysdeps/generic/getlogin_r.c: Likewise.
3544         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
3545         * sunrpc/rtime.c: Add libc_hidden_def.
3547         * include/string.h: Use libc_hidden_proto for basename.
3548         * string/basename.c [_LIBC]: Add libc_hidden_def.
3550         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
3552         * locale/loadarchive.c: munmap -> __munmap throughout.
3554         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
3555         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
3556         * sysdeps/generic/gai_strerror.c: Likewise.
3558         * include/sys/errno.h: New file.
3560         * include/signal.h: No libc_hidden_proto for raise,
3561         __libc_current_sigrtmin, __libc_current_sigrtmax.
3562         These need to be overridden by linuxthreads.
3563         * sysdeps/posix/raise.c: Reverted.
3564         * sysdeps/generic/raise.c: Reverted.
3565         * signal/allocrtsig.c: Reverted.
3567         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
3569 2002-08-10  Roland McGrath  <roland@redhat.com>
3571         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
3572         * locale/localeinfo.h: Declare it.
3573         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
3574         current locale if it's not in the file list.
3575         Call _nl_archive_subfreeres.
3577 2002-08-10  Andreas Jaeger  <aj@suse.de>
3579         * sysdeps/i386/strchr.S: Add comment.
3581 2002-08-10  Roland McGrath  <roland@redhat.com>
3583         * include/wchar.h (putwc): Use libc_hidden_proto.
3584         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
3585         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
3586         * stdio-common/dprintf.c: Add libc_hidden_def.
3587         * stdio-common/fprintf.c: Likewise.
3588         * stdio-common/sprintf.c: Likewise.
3589         * stdio-common/sscanf.c: Likewise.
3590         * libio/iofwrite.c: Likewise.
3591         * libio/memstream.c: Likewise.
3592         * libio/putwc.c: Likewise.
3593         * stdio-common/perror.c: Likewise.
3594         * sysdeps/posix/remove.c: Likewise.
3595         * sysdeps/generic/remove.c: Likewise.
3596         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
3597         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
3599 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
3601         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3602         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
3603         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3604         towlower, towupper): Add libc_hidden_weak.
3606         * include/bits/dlfcn.h: New file.
3607         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
3609         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
3610         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
3611         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
3612         * include/pwd.h (_nss_files_parse_pwent): Likewise.
3613         * include/shadow.h (_nss_files_parse_spent): Likewise.
3614         * include/netdb.h (_nss_files_parse_protoent,
3615         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
3616         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
3617         (LINE_PARSER): Use it.
3618         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
3619         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
3621         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
3622         #endif.
3624         * manual/debug.texi (%MENU%): Remove trailing dot.
3625         Reported by <hayastan132@hotmail.com>.
3627         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
3628         aliases.
3629         (lseek): Dummy.
3630         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
3631         Likewise.
3633 2002-08-09  Roland McGrath  <roland@redhat.com>
3635         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
3636         name to find codeset name (if any) and normalize it.  If the
3637         normalized name differs, look up only that in the archive.
3638         * locale/programs/locarchive.c (add_locale_to_archive): If the name
3639         contains a codeset, normalize the codeset store only the normalized
3640         name in the archive.  If not, add an alias containing the locale's
3641         normalized codeset name.  Apply codeset name normalization when
3642         matching entries in the alias file.
3644         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3645         decrement HEAD->namehash_used here.
3646         (add_locale): Only need to insert name string when name_offset != 0.
3648         * locale/programs/localedef.c (options): Add -A/--alias-file.
3649         (alias_file): New variable.
3650         (parse_opt): Grok -A, set that.
3651         * locale/programs/localedef.h: Declare it.
3653         * locale/locarchive.h (struct locrecent): Add `refs' member.
3654         * locale/programs/locarchive.c (insert_name): New function, broken out
3655         of ...
3656         (add_locale_to_archive): ... here.  Call that.
3657         (add_alias): New function.
3658         (add_locale): New static function, add_locale_to_archive renamed.
3659         (add_locale_to_archive): Call that and use add_alias to add an alias
3660         for the name with codeset if the given name lacks it.
3661         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3663         * locale/Makefile (routines): Add loadarchive.
3664         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3665         (_nl_load_locale_from_archive): New function.
3666         * locale/localeinfo.h: Declare it.
3667         * locale/findlocale.c (_nl_find_locale): If using default locale path,
3668         try _nl_load_locale_from_archive first.
3670         * locale/loadlocale.c (_nl_intern_locale_data): New function,
3671         broken out of _nl_load_locale.
3672         (_nl_load_locale): Call that.
3673         * locale/localeinfo.h: Declare it.
3674         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3675         (struct locale_data): Remove unused member `options'.
3676         * locale/findlocale.c (_nl_remove_locale): Update uses.
3677         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3678         * locale/C-collate.c: Update initializer.
3679         * locale/C-identification.c: Likewise.
3680         * locale/C-measurement.c: Likewise.
3681         * locale/C-telephone.c: Likewise.
3682         * locale/C-address.c: Likewise.
3683         * locale/C-name.c: Likewise.
3684         * locale/C-paper.c: Likewise.
3685         * locale/C-time.c: Likewise.
3686         * locale/C-numeric.c: Likewise.
3687         * locale/C-monetary.c: Likewise.
3688         * locale/C-messages.c : Likewise.
3689         * locale/C-ctype.c: Likewise.
3691         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3692         use CHAR_BIT instead of BITSPERBYTE.
3694         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3695         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3696         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3697         (_nl_remove_locale): Likewise.
3698         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3700         * locale/findlocale.c (_nl_default_locale_path): New variable.
3701         (_nl_find_locale): If LOCALE_PATH is null, default to that.
3702         * locale/localeinfo.h: Declare it.
3703         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3704         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
3705         * locale/newlocale.c (__newlocale): Likewise.
3707         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3708         * inet/rexec.c (rexec_af): Add libc_hidden_def.
3709         * sysdeps/generic/morecore.c: Likewise.
3710         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3711         (__libc_current_sigrtmax): Likewise.
3713 2002-08-08  Roland McGrath  <roland@redhat.com>
3715         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3716         * catgets/open_catalog.c (__open_catalog): Likewise.
3718         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3719         from typo INITIAL_NUM_NANES.
3720         (create_archive): Update use.
3722 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3724         * sysdeps/unix/sysv/linux/sigwait.c: New file.
3726 2002-08-08  Roland McGrath  <roland@frob.com>
3728         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3730 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3732         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3733         else and undefine after including wcstol_l.c.
3734         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3736 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3738         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3740 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
3742         * configure.in: Make the test for broken_alias_attribute stricter.
3744 2002-05-24  Robert Love  <rml@tech9.net>
3746         * posix/Makefile (routines): Add sched_getaffinity and
3747         sched_setaffinity.
3748         * posix/sched.h: Add declarations for sched_getaffinity and
3749         sched_setaffinity.
3750         * sysdeps/generic/sched_getaffinity.c: New file.
3751         * sysdeps/generic/sched_setaffinity.c: New file.
3752         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3753         sched_setaffinity.
3755 2002-08-06  Andreas Schwab  <schwab@suse.de>
3757         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3759 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3761         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3762         message.
3764         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3765         It is known to be defined.
3767         * include/string.h: Define index and rindex only if _ISOMAC is not
3768         defined.
3770         * elf/rtld.c: Include <errno.h>.
3771         * sysdeps/generic/libc-tls.c: Likewise.
3773 2002-08-07  Roland McGrath  <roland@redhat.com>
3775         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3776         it internally.
3777         (precsize_aton): Likewise.
3779         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3780         the static symbols added in the last change (doofus is me).
3782         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3783         loop to notice missing categories in a composite name.
3785         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3786         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3787         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3788         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3790 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3792         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3794 2002-08-07  Roland McGrath  <roland@redhat.com>
3796         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3797         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3798         Reported by Jakub Jelinek  <jakub@redhat.com>.
3800 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
3802         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3803         division.
3805 2002-08-06  Roland McGrath  <roland@redhat.com>
3807         * include/getopt.h: Put private decls inside [_GETOPT_H].
3808         Use libc_hidden_proto for getopt_long, getopt_long_only.
3809         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3810         Add libc_hidden_def.
3812         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3813         Define as a macro for __dl_iterate_phdr.
3815         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3816         made static.  Add __ name as a strong alias.
3817         (internal_endnetgrent): Likewise.
3818         (internal_getnetgrent_r): Likewise.
3820         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3821         with no __ prefix.
3822         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3823         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3824         all *_l functions with no __ prefix.
3825         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3826         * ctype/ctype_l.c: Likewise.
3827         * locale/nl_langinfo.c: Likewise.
3828         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3829         * stdlib/stdlib.h [__USE_GNU]: Likewise.
3830         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3831         * wctype/wctype.h [__USE_GNU]: Likewise.
3832         * string/strcoll_l.c (strcoll_l): Define as weak alias.
3833         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3834         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3835         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3836         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3837         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3838         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3839         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3840         (__wcscasecmp_l): Add libc_hidden_def.
3841         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3842         (__wcsncasecmp_l): Add libc_hidden_def.
3843         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3844         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3845         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3846         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3847         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3848         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3849         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3850         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3851         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3852         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3853         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3854         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3855         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3856         * wctype/wctype_l.c (wctype_l) Define as weak alias.
3858 2002-08-05  Roland McGrath  <roland@redhat.com>
3860         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3861         netname2user, host2netname, user2netname, key_gendes.
3862         * sunrpc/netname.c: Add libc_hidden_def.
3863         * sunrpc/key_call.c: Likewise.
3865         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3866         freeaddrinfo.
3867         * inet/getnameinfo.c: Add libc_hidden_def.
3868         * sysdeps/generic/getaddrinfo.c: Likewise.
3869         * sysdeps/posix/getaddrinfo.c: Likewise.
3871         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3872         * wcsmbs/wmemchr.c: Add libc_hidden_def.
3873         * wcsmbs/wmemset.c: Add libc_hidden_def.
3875         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3876         (index, rindex): Define as macros for strchr, strrchr.
3878         * string/envz.c (envz_strip): index -> strchr
3880         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3881         * sunrpc/rpc_prot.c: Add libc_hidden_def.
3883         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3884         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3886         * include/stdlib.h: Use libc_hidden_proto for wctomb.
3887         * stdlib/wctomb.c: Add libc_hidden_def.
3889         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3890         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3891         * resolv/herror.c: Likewise.
3892         * inet/rcmd.c: Add libc_hidden_def.
3893         * inet/ruserpass.c: Likewise.
3894         * inet/getnetgrent_r.c: Likewise.
3896         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3897         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
3898         for svcerr_auth, svcerr_noprog, svcerr_progvers.
3899         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3900         libc_hidden_def.
3901         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3902         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3904         * sysdeps/posix/system.c (do_system): New function, guts broken out of
3905         __libc_system.
3906         (__libc_system): Call it, putting just the line == NULL test here.
3908         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3909         variables work right.
3911         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3912         * elf/dl-close.c (_dl_close): Likewise.
3914         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3915         in6addr_any, in6addr_loopback.  Remove decls for
3916         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3917         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3918         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3919         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3920         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3921         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3922         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3923         in6addr_loopback.
3924         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3926         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3927         ether_aton_r.
3928         * inet/ether_aton_r.c: Add libc_hidden_def.
3929         * inet/ether_ntoa_r.c: Likewise.
3931         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3932         xprt_unregister.
3933         * sunrpc/svc.c: Add libc_hidden_def.
3934         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3935         pmap_set, pmap_unset.
3936         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3937         * sunrpc/pm_getport.c: Likewise.
3938         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3939         * sunrpc/publickey.c: Add libc_hidden_def.
3941 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3943         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
3944         the other memset call in this function.
3946         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3947         at correct index.  Clear BSS region now that memalign is used.
3949 2002-08-05  Roland McGrath  <roland@redhat.com>
3951         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3952         * sysdeps/generic/uname.c: Add libc_hidden_def.
3953         * sysdeps/mach/hurd/uname.c: Likewise.
3955 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
3957         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3958         wcspbrk): Add libc_hidden_proto.
3959         * time/strftime.c (my_strftime): Add libc_hidden_def.
3960         (strftime): Remove libc_hidden_def.
3961         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3962         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3963         * wcsmbs/wcsspn.c (wcsspn): Likewise.
3964         * wcsmbs/wcscmp.c (wcscmp): Likewise.
3965         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3966         * wcsmbs/wcscoll.c (wcscoll): Likewise.
3968         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3969         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3970         __rpc_thread_createerr): Add libc_hidden_proto.
3971         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3972         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3973         __rpc_thread_createerr): Add libc_hidden_def.
3975         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3976         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3977         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3978         clnt_perror, clnt_sperror): Add libc_hidden_def.
3979         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3981         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3982         libc_hidden_proto.
3983         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3984         * sunrpc/des_soft.c (des_setparity): Likewise.
3986         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3987         Add libc_hidden_proto.
3988         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3989         Add libc_hidden_def.
3991 2002-08-05  Roland McGrath  <roland@redhat.com>
3993         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3994         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3995         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3996         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3997         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3998         old data, abandoning the original memory allocated by rtld at startup,
3999         instead of calling realloc normally.
4001 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
4003         * po/fr.po: Update from translation team.
4005 2002-08-04  Roland McGrath  <roland@redhat.com>
4007         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
4008         then generate a dummy module under the given name, obeying the
4009         normal rules for the "caller" field.
4011         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
4012         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
4014         * include/pthread.h: Don't declare __pthread_initialize_minimal as
4015         weak here; we declare it weak or strong in the one place we use it.
4016         * sysdeps/generic/libc-start.c: ... which is here.
4017         Don't make the decl weak if [USE_TLS], since static programs need TLS
4018         setup even when single-threaded.
4020         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
4022         * elf/Makefile (test-srcs): Add $(modules-names) to it.
4023         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
4024         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
4025         all these variables.
4027 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
4029         * include/stdio.h: Don't define macro magic to redirect function
4030         calls if _ISOMAC is defined.
4032         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
4033         ldouble asin tests.
4035 2002-08-04  Roland McGrath  <roland@redhat.com>
4037         * stdlib/lrand48_r.c: Add libc_hidden_def.
4039         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
4040         TCB with __libc_memalign instead of mmap.
4041         (_dl_deallocate_tls): Free it with free instead of munmap.
4043         * Makerules (cpp-srcs-left): When setting this to run
4044         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
4045         words.  Combine the two loops into one on the concatenated list,
4046         including those as well as $(test-srcs).
4048         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
4049         since we align here with optimally minimal waste anyway.
4050         (malloc): Just call that.
4052         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
4053         the right variable.
4055         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
4056         to compute memory location for l_tls_initimage.
4057         * elf/rtld.c (_dl_start): Likewise.
4058         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
4060         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
4061         because the .d file is generated in the non-shared case and
4062         so fails to catch them otherwise.
4064         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
4065         split out of _dl_allocate_tls.
4066         (_dl_allocate_tls_init): Likewise.
4067         (_dl_allocate_tls): Call those.
4068         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
4069         * elf/rtld.c (dl_main): Call them separately instead of calling
4070         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
4071         is finished, so that the initializer data has been relocated before we
4072         copy it into the main thread's TLS block.
4074         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
4075         loop conditions, prevented the last used module from being initialized.
4077 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
4079         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
4080         if glob resp. globfree are not macros.
4081         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
4082         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
4083         Add libc_hidden_ver.
4084         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
4085         libc_hidden_def.
4086         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
4087         instead of libc_hidden_weak.
4088         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
4089         libc_hidden_ver instead of libc_hidden_def.
4090         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
4091         libc_hidden_ver instead of libc_hidden_def.
4092         (wcstoll, wcstoq): Remove libc_hidden_weak.
4093         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
4094         libc_hidden_ver.
4095         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
4096         libc_hidden_ver.
4097         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
4098         libc_hidden_ver.
4099         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
4100         libc_hidden_ver.
4102 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
4104         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
4105         to access _sys_siglist.
4106         * string/strsignal.c: Likewise.
4107         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
4108         * sysdeps/gnu/siglist.c: Likewise.
4109         * sysdeps/unix/siglist.c: Likewise.
4110         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
4112         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
4114         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
4116         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
4117         alias and use it.
4118         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
4120         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
4121         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
4122         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
4124         * include/time.h: Add libc_hidden_proto for __gmtime_r.
4125         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
4127         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
4128         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
4129         and __gconv_get_cache respectively.
4130         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
4131         defined static.  Change all users.
4132         (__gconv_get_cache): New function.
4133         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
4134         (__gconv_get_alias_db): New function.
4135         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
4136         (__conv_modules_db): Likewise.
4137         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
4138         and __gconv_get_alias_db.
4139         * iconv/iconv_prog.c: Use the new functions instead of accessing the
4140         variables.
4142         * include/stdlib.h: Add prototype and libc_hidden_proto for
4143         __default_morecore.
4144         * sysdeps/generic/morecore.c: Include <stdlib.h>.
4146         * malloc/obstack.c: Remove fputs macro.
4148         * malloc/mtrace.c: Remove fopen macro.
4150 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
4152         * manual/debug.texi: Fix spelling to programmatically.
4153         Reported by <hayastan132@hotmail.com>.
4155 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
4157         * include/libio.h: Add libc_hidden_proto for __uflow.
4158         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
4159         fgetpos to _IO_* names.
4160         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
4161         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
4162         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
4163         putwc_unlocked, vswscanf.
4164         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
4165         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
4166         * libio/fseek.c: Likewise.
4167         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
4168         not fopencookie.
4169         * libio/genops.c (__uflow): Add libc_hidden_def.
4170         * libio/iofflush_u.c (fflush_unlocked): Likewise.
4171         * libio/iofgets_u.c (fgets_unlocked): Likewise.
4172         * libio/iofputs_u.c (fputs_unlocked): Likewise.
4173         * libio/iofputws_u.c (fputws_unlocked): Likewise.
4174         * libio/iofread_u.c (fread_unlocked): Likewise.
4175         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
4176         * libio/iovswscanf.c (vswscanf): Likewise.
4177         * libio/putwc_u.c (putwc_unlocked): Likewise.
4178         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
4179         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
4180         * malloc/mtrace.c: Likewise.
4182         * sunrpc/clnt_perr.c: Remove fputs macro.
4183         * sunrpc/svc_simple.c: Likewise.
4184         * sunrpc/svc_tcp.c: Likewise.
4185         * sunrpc/svc_udp.c: Likewise.
4186         * sunrpc/xdr_rec.c: Likewise.
4187         * sunrpc/xdr_ref.c: Likewise.
4189         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
4190         iconv_prog, linereader, and charmap-dir.
4191         * locale/Makefile: Likewise for locale and charmap-dir.
4192         * malloc/Makefile: Likewise for memusagestat.
4193         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
4194         * sunrpc/Makefile: Likewise for rpc_main.
4195         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
4196         * timezone/Makefile: Likewise for zic.
4198         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
4200         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
4201         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
4202         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
4203         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
4204         _dl_close.
4206         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
4207         __wunderflow.
4208         * libio/genops.c (__underflow): Add libc_hidden_def.
4209         * libio/wgenops.c (__wuflow): Likewise.
4210         (__wunderflow): Likewise.
4212         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
4213         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
4215         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
4216         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
4218         * include/string.h: Add libc_hidden_proto for __strverscmp.
4219         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
4221         * include/unistd.h: Add libc_hidden_proto for __sysconf.
4222         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
4223         * sysdeps/posix/sysconf.c: Likewise.
4224         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
4225         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
4227         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
4228         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
4229         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
4230         __iswxdigit_l, __towlower_l, __towupper_l.
4231         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
4232         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
4234         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
4235         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
4236         * sysdeps/mach/hurd/xmknod.c: Likewise.
4237         * sysdeps/unix/xmknod.c: Likewise.
4238         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4239         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
4240         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4242         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
4244 2002-08-03  Roland McGrath  <roland@redhat.com>
4246         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
4247         setpriority.
4248         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
4249         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
4250         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
4251         * sysdeps/mach/hurd/setpriority.c: Likewise.
4252         * sysdeps/mach/hurd/getpriority.c: Likewise.
4253         * sysdeps/generic/setpriority.c: Likewise.
4254         * sysdeps/generic/getpriority.c: Likewise.
4256         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
4257         * malloc/mcheck.c: Add libc_hidden_def.
4259         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
4260         * misc/hsearch_r.c: Add libc_hidden_def.
4262         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
4263         * posix/fnmatch.c: Add libc_hidden_weak.
4265         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
4266         execl, execle, execlp, execvp, getpid, getsid.
4267         * sysdeps/generic/alarm.c: Add libc_hidden_def.
4268         * sysdeps/unix/alarm.c: Likewise.
4269         * posix/confstr.c: Likewise.
4270         * posix/execvp.c: Likewise.
4271         * posix/execlp.c: Likewise.
4272         * posix/execle.c: Likewise.
4273         * posix/execl.c: Likewise.
4274         * sysdeps/generic/getsid.c: Likewise.
4275         * sysdeps/mach/hurd/getsid.c: Likewise.
4276         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
4277         * sysdeps/mach/hurd/getpid.c: Likewise.
4279         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
4280         qecvt_r, qfcvt_r, lrand48_r.
4281         * misc/efgcvt_r.c: Add libc_hidden_def.
4283         * include/wordexp.h: Use libc_hidden_proto for wordfree.
4284         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
4286         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
4287         * locale/nl_langinfo.c: Add libc_hidden_def.
4289         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
4290         * sysdeps/generic/glob.c: Add libc_hidden_def.
4291         * sysdeps/generic/glob64.c: Likewise.
4292         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
4294         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
4296         * elf/Makefile (CFLAGS-vismod2.c): New variable.
4298         * locale/setlocale.c (_nl_current_names): Variable moved ...
4299         * locale/localename.c (_nl_current_names): ... here, new file.
4300         Make it global, with attribute_hidden.
4301         * locale/localeinfo.h: Declare it.
4302         * locale/Makefile (aux): Add localename.
4303         * locale/localename.c (__current_locale_name): New function.
4304         * include/locale.h (__current_locale_name): Declare it.
4305         * intl/dcigettext.c (guess_category_value): Use that instead of
4306         calling setlocale.
4308         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
4309         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
4310         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
4311         * locale/newlocale.c: Add alias to __ name.
4312         * locale/duplocale.c: Likewise.
4313         * locale/freelocale.c: Likewise.
4314         * locale/uselocale.c: New file.
4315         * locale/Makefile (routines): Add it.
4316         * locale/Versions (libc: GLIBC_2.3): New set.
4317         Add newlocale, duplocale, freelocale, uselocale.
4318         (libc: GLIBC_PRIVATE): Add __uselocale.
4320         * locale/localeinfo.h [SHARED]
4321         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
4322         (_NL_CURRENT_DATA): Define using that.
4323         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
4324         (_NL_CURRENT_DEFINE): Define to empty.
4325         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
4326         conditionalized on this.
4327         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
4328         taking initializer of _nl_C_locobj.
4329         [SHARED] (_nl_global_locale): New variable, using that initializer.
4330         (_nl_C_locobj): Use new macro for initialzier.
4331         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
4332         [! SHARED] (CATEGORY_USED): New macro.
4333         [SHARED] (CATEGORY_USED, _nl_C): New macros.
4334         (setdata, setlocale): Use that macro instead of examining _nl_current.
4335         (setdata): Set the slot in _nl_global_locale.
4336         Conditionalize setting of _nl_current on [! SHARED].
4337         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
4338         declaration as an extern.
4339         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
4341         * include/locale.h: Use libc_hidden_proto for setlocale.
4342         * locale/setlocale.c: Add libc_hidden_def.
4344         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
4346         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
4347         * misc/hsearch_r.c: Add libc_hidden_def.
4348         * misc/lsearch.c: Likewise.
4350         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
4351         endttyent.
4352         * misc/getttyent.c: Add libc_hidden_def.
4354         * include/mcheck.h: Use libc_hidden_proto for mcheck.
4355         * malloc/mcheck.c: Add libc_hidden_def.
4357         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
4358         * include/argz.h: Use libc_hidden_proto for argz_delete.
4359         * string/argz-delete.c: Add libc_hidden_def.
4360         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
4362         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
4363         HIDDEN_JUMPTARGET for _exit.
4364         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
4365         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
4366         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
4367         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
4369         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
4370         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
4371         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
4372         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
4374         * include/stdlib.h: Use libc_hidden_proto for abort,
4375         __strtof_internal, __strtod_internal, __strtold_internal,
4376         __strtol_internal, __strtoll_internal, __strtoul_internal,
4377         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
4378         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
4379         __strtoul_l_internal, __strtoull_l_internal.
4380         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
4381         __wcstod_internal, __wcstold_internal, __wcstol_internal,
4382         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
4383         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
4384         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
4385         __wcsncasecmp_l.
4386         * sysdeps/generic/abort.c: Add libc_hidden_def.
4387         * stdlib/strtod.c: Likewise.
4388         * sysdeps/generic/strtol.c: Likewise.
4389         * sysdeps/wordsize-64/strtol.c: Likewise.
4390         * sysdeps/wordsize-64/wcstol.c: Likewise.
4391         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
4393         * include/stdlib.h: Use libc_hidden_proto for qsort.
4394         * stdlib/msort.c: Add libc_hidden_def.
4396         * include/utime.h: Use libc_hidden_proto for utime.
4397         * sysdeps/generic/utime.c: Add libc_hidden_def.
4398         * sysdeps/unix/utime.c: Likewise.
4400         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
4401         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
4402         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
4403         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
4404         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
4406         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
4407         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
4408         and __libc_current_sigrtmax.
4409         * signal/sigismem.c: Add libc_hidden_def.
4410         * signal/sigfillset.c: Likewise.
4411         * signal/sigempty.c: Likewise.
4412         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
4413         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
4414         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
4415         * sysdeps/posix/raise.c: Likewise.
4416         * sysdeps/generic/raise.c: Likewise.
4418 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
4420         * include/string.h: Use libc_hidden_proto for __stpcpy.
4421         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
4422         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
4423         * sysdeps/generic/stpcpy.c: Likewise.
4424         * sysdeps/i386/stpcpy.S: Likewise.
4425         * sysdeps/i386/i586/stpcpy.S: Likewise.
4426         * sysdeps/powerpc/stpcpy.S: Likewise.
4427         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
4428         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
4430         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
4431         __strncasecmp_l, __strdup, __strndup, __strerror_r.
4432         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
4433         libc_hidden_def.
4434         * string/strdup.c (__strdup): Likewise.
4435         * string/strndup.c (__strndup): Likewise.
4436         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
4437         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
4439 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4441         * include/libio.h: New file.
4442         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
4443         * libio/iolibio.h: #include <libio.h>, not "libio.h".
4444         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
4445         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
4446         * sysdeps/unix/common/syscalls.list: Likewise.
4447         * sysdeps/unix/inet/syscalls.list: Likewise.
4448         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
4449         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
4450         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4451         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4452         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4453         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4454         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4455         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4456         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4457         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
4458         * sysdeps/unix/syscalls.list: Likewise.
4460 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4461             Ulrich Drepper  <drepper@redhat.com>
4463         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
4464         the arguments is big enough to cause an overflow.
4466 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
4468         * assert/assert.c: Use hidden_def not INTDEF.
4470 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4472         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
4473         not defined.
4475 2002-08-03  Roland McGrath  <roland@redhat.com>
4477         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
4478         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
4479         verr, verrx.
4480         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
4481         * misc/syslog.c: Add libc_hidden_def.
4482         * misc/err.c: Likewise.
4483         * stdlib/exit.c: Likewise.
4484         * stdlib/bsearch.c: Likewise.
4485         * sysdeps/generic/getenv.c: Likewise.
4487         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
4489         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
4490         libc_hidden_weak for every system call symbol defined.
4492         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
4493         timelocal, localtime, strftime.
4494         * time/asctime.c: Add libc_hidden_def.
4495         * time/mktime.c: Likewise.
4496         * time/localtime.c: Likewise.
4497         * time/strftime.c: Likewise.
4498         * time/strptime.c: Likewise.
4499         * sysdeps/generic/time.c: Likewise.
4500         * sysdeps/unix/time.c: Likewise.
4501         * sysdeps/unix/sysv/i386/time.S: Likewise.
4502         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
4504         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
4505         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
4506         * resolv/inet_ntop.c: Likewise.
4507         * resolv/inet_pton.c: Likewise.
4508         * inet/inet_mkadr.c: Add libc_hidden_def.
4509         * inet/inet_netof.c: Likewise.
4510         * resolv/inet_addr.c: Likewise.
4512         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
4513         clauses from conditionals for now.  Will have to be fixed later
4514         for older compilers.
4516         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
4518 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4520         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
4521         broken alias attribute handling.
4522         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
4524 2002-08-02  Roland McGrath  <roland@frob.com>
4526         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
4527         since it sets the variables we use in a -D switch.
4529 2002-08-02  Roland McGrath  <roland@redhat.com>
4531         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
4532         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
4533         matches long int, not int.
4535         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
4536         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
4537         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4538         * wctype/wctrans.c (wctrans): Likewise.
4539         * wctype/wctype.c (__wctype): Likewise.
4540         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
4542 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4544         * assert/assert.c (__assert_fail): Fix typo in comment.
4546         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
4547         * sunrpc/rpc_thread.c: Define it without static.
4548         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
4550 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4552         * assert/assert.c (__assert_fail): Remove undef.
4553         Replace INTDEF with libc_hidden_def.
4554         * assert/__assert.c (__assert): Remove INTUSE.
4555         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
4556         libc_hidden_weak.
4557         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
4558         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
4559         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
4560         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
4561         libm_hiden_ver): Define.
4562         * include/assert.h (__assert_fail_internal): Remove.
4563         (__assert_fail): Add prototype.  Add hidden_proto.
4564         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
4565         libc_hidden_proto.
4566         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
4567         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
4568         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
4569         Add libc_hidden_proto.
4570         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
4571         __fcntl): Add libc_hidden_proto.  Remove macros.
4572         (__open_internal, __fcntl_internal): Remove.
4573         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
4574         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
4575         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
4576         libc_hiden_proto.
4577         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
4578         libc_hidden_def.
4579         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
4580         Add libc_hidden_def.
4581         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
4582         * sysdeps/generic/open.c (__open): Remove undef.
4583         Add libc_hidden_def.  Remove INTDEF.
4584         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
4585         Add libc_hidden_def.
4586         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
4587         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
4588         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
4589         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4590         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4591         (__libc_fcntl): Add libc_hidden_def.
4592         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
4593         (__open): Remove INTDEF2.  Add libc_hidden_weak.
4594         (__libc_open): Add libc_hidden_def.
4595         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
4596         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
4597         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4598         Add libc_hidden_def.
4599         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
4600         Add libc_hidden_def.
4601         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
4602         undef.
4603         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4604         (__libc_fcntl): Add libc_hidden_def.
4605         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
4606         __getpgid_internal, __chown_internal): Remove.
4607         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
4608         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
4609         __GI___chown): Add.
4610         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
4611         __getpid_internal, __open_internal, __write_internal): Remove.
4612         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
4613         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
4614         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
4615         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
4616         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
4617         Replace INTDEF with libc_hidden_def.
4618         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
4619         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
4620         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
4621         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
4622         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
4623         Add libc_hidden_proto.
4624         * include/sys/poll.h (__poll): Add libc_hidden_proto.
4625         * include/sys/select.h (__select): Likewise.
4626         * include/sys/socket.h (__send): Likewise.
4627         * include/sys/statfs.h (__statfs): Likewise.
4628         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
4629         __getpid, __getpgid, __setpgid, __close, __read, __write,
4630         __getpagesize, __sbrk): Likewise.
4631         (__chown_internal, __dup2_internal, __getpid_internal,
4632         __getpgid_internal, __close_internal, __write_internal,
4633         __getpagesize_internal): Remove.
4634         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
4635         Remove macros.
4636         * include/printf.h (__printf_fp): Add libc_hidden_proto.
4637         * include/sched.h (__sched_setscheduler): Likewise.
4638         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
4639         * include/stdlib.h (__secure_getenv): Likewise.
4640         * include/signal.h (__sigaction, __sigsuspend): Likewise.
4641         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4642         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4643         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4644         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4645         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4646         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4647         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4648         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4649         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4650         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4651         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4652         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4653         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4654         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4655         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4656         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4657         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4658         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4659         * libio/genops.c (__overflow): Add libc_hidden_def.
4660         * libio/iovdprintf.c: Remove libio.h include.
4661         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4662         libc_hidden_weak): Define to nothing if not defined.
4663         (__overflow, __woverflow): Add libc_hidden_proto.
4664         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4665         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4666         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4667         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4668         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4669         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4670         and libc_hidden_def.
4671         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4672         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4673         (__getpgid): Add libc_hidden_proto.
4674         (__bsd_getpgrp): Remove INTUSE.
4675         * resolv/res_init.c (__res_ninit, __res_randomid): Add
4676         libc_hidden_def.
4677         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4678         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4679         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4680         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4681         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4682         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4683         __rpc_thread_createerr): Add libc_hidden_def.
4684         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4685         libc_hidden_def.
4686         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4687         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4688         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4689         * sysdeps/generic/chown.c (__chown): Likewise.
4690         * sysdeps/generic/close.c (__close): Likewise.
4691         * sysdeps/generic/dup2.c (__dup2): Likewise.
4692         * sysdeps/generic/pipe.c (__pipe): Likewise.
4693         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4694         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4695         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4696         * sysdeps/generic/read.c (__libc_read): Likewise.
4697         (__read): Add libc_hidden_weak.
4698         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4699         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4700         * sysdeps/generic/select.c (__select): Likewise.
4701         * sysdeps/generic/send.c (__send): Likewise.
4702         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4703         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4704         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4705         * sysdeps/generic/statfs.c (__statfs): Likewise.
4706         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4707         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4708         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4709         Remove undef and INTDEF.
4710         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4711         * sysdeps/generic/getpid.c (__getpid): Likewise.
4712         * sysdeps/generic/write.c (__libc_write): Likewise.
4713         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4714         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4715         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4716         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4717         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
4718         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4719         Remove undef and INTDEF.
4720         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4721         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4722         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4723         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4724         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4725         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4726         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4727         (__pipe): Add libc_hidden_def.
4728         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4729         libc_hidden_weak.
4730         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4731         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4732         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4733         (__read): Add libc_hidden_weak.
4734         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4735         (__libc_pwrite64): Add libc_hidden_def.
4736         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4737         * sysdeps/mach/hurd/select.c (__select): Likewise.
4738         * sysdeps/mach/hurd/send.c (__send): Likewise.
4739         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4740         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4741         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4742         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4743         * sysdeps/posix/dup2.c: Likewise.
4744         Remove undef and INTDEF.
4745         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4746         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4747         (__pwrite64): Add libc_hidden_weak.
4748         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4749         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4750         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4751         * sysdeps/standalone/close.c (__close): Likewise.
4752         * sysdeps/standalone/write.c (__libc_write): Likewise.
4753         (__write): Add libc_hidden_weak.
4754         * sysdeps/standalone/read.c (__read): Likewise.
4755         (__libc_read): Add libc_hidden_def.
4756         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4757         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4758         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4759         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4760         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4761         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4762         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4763         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4764         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4765         __GI___sigaction): Add.
4766         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4767         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4768         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4769         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4770         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4771         __GI___setpgid): Add.
4772         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4773         Remove undef and INTDEF.
4774         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4775         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4776         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4777         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4778         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4779         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4780         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4781         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4782         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4783         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4784         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4785         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4786         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4787         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4788         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4789         __GI___statfs, __GI___send): Add.
4790         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4791         libc_hidden_ver resp. libc_hidden_def.
4792         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4793         libc_hidden_def.
4794         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4795         Likewise.  Remove undef and INTDEF.
4796         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4797         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4798         __GI___statfs, __GI___send): Add.
4799         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4800         libc_hidden_def.
4801         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4802         Likewise.
4803         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4804         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4805         libc_hidden_ver resp. libc_hidden_def.
4806         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4807         __GI___send): Add.
4808         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4809         Add libc_hidden_weak.
4810         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4811         Add libc_hidden_def.
4812         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4813         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4814         libc_hidden_weak.
4815         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4816         resp. libc_hidden_def.
4817         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4818         libc_hidden_weak.
4819         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
4820         INTDEF.
4821         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4822         Likewise.  Remove undef.
4823         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4824         libc_hidden_weak.
4825         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4826         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4827         libc_hidden_weak.
4828         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4829         libc_hidden_def.
4830         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4831         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4832         Likewise.  Remove undef and INTDEF.
4833         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4834         libc_hidden_def.
4835         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4836         libc_hidden_weak.
4837         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4838         libc_hidden_def.
4839         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4840         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4841         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4842         libc_hidden_weak.
4843         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4844         Add libc_hidden_def.
4845         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4846         __GI___statfs): Add.
4847         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4848         libc_hidden_weak.
4849         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4850         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4851         Remove undef and INTDEF.
4852         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4853         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4854         libc_hidden_def.
4855         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4856         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4857         libc_hidden_weak.
4858         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4859         libc_hidden_def.
4860         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4861         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4862         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4863         Add.
4864         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4865         libc_hidden_def.  Remove undef and INTDEF.
4866         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4867         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4868         libc_hidden_def.
4869         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4870         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4871         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4872         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4873         Remove undef and INTDEF.
4874         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4875         broken visibility attribute handling.
4876         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4878 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4880         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4881         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4883         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4884         previous patch.
4886 2002-06-29  Todd Fries  <todd@openbsd.org>
4888         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4890 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4892         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4894 2002-07-30  Roland McGrath  <roland@redhat.com>
4896         * resolv/resolv.h (_res): Define macro unconditionally.
4897         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4898         * include/resolv.h: ... here.
4899         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4900         as a __thread variable.
4901         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4902         a __thread variable instead of a global.
4903         * resolv/res_data.c [_LIBC]: Don't #undef _res.
4905         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4906         time we test it.
4908         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4910         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4911         decls of memset and memcpy.
4913         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4914         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4916         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4918         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4919         (__libc_tsd_define): Define using __thread.
4921         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4922         (__rpc_thread_variables): Use __libc_tsd_get.
4923         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4924         __rpc_thread_variables, which might allocate what we're about to free.
4926         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4927         thread-local variable.
4928         * resolv/netdb.h (h_errno): Define macro unconditionally.
4929         [_LIBC] (__set_h_errno): Macro moved to ...
4930         * include/netdb.h: ... here.
4931         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4932         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4933         [! _LIBC_REENTRANT]: #undef h_errno here.
4935         * include/errno.h: Protect from multiple inclusion.
4937         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4938         before defining them, since Linux's <linux/posix_types.h> might have
4939         defined them.
4941 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4943         * malloc/malloc.c (public_cALLOc): Check for overflow on
4944         multiplication.
4945         * sunrpc/xdr_array.c (xdr_array): Likewise.
4946         * sunrpc/rpc/types.h (mem_free): Add comment.
4947         Patch by Solar Designer <solar@openwall.com>.
4949 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4951         * sysdeps/unix/sysv/linux/kernel-features.h
4952         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4954 2002-08-01  Roland McGrath  <roland@redhat.com>
4956         * libio/fileops.c (_IO_file_sync_mmap): New function.
4957         (_IO_file_jumps_mmap): Use it.
4958         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
4959         repeat the stat check and resize the mapped buffer as necessary.
4961 2002-07-31  Roland McGrath  <roland@redhat.com>
4963         * libio/fileops.c (decide_maybe_mmap): New static function.
4964         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4965         mmap the file contents.  Then switch the jump tables to the mmap
4966         tables if it worked, or the vanilla file tables if not.
4967         (_IO_file_underflow_maybe_mmap): New function.
4968         (_IO_file_seekoff_maybe_mmap): New function.
4969         (_IO_file_xsgetn_maybe_mmap): New function.
4970         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4971         * libio/libioP.h: Declare those.
4972         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4973         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4974         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4975         If the stream is read-only, set its jump tables to those new ones.
4976         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4977         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4978         We need the tables set before _IO_file_attach.
4980         * libio/tst-mmap-eofsync.c: New file.
4981         * libio/tst-mmap-fflushsync.c: New file.
4982         * libio/bug-mmap-fflush.c: New file.
4983         * libio/tst-mmap2-eofsync.c: New file.
4984         * libio/Makefile (tests): Add them.
4986         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4987         _IO_file_underflow_mmap fails, it already set the appropriate bit.
4989 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
4991         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4992         Declarations moved to <bits/sys_errlist.h>.  Include that file.
4993         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4994         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
4995         declare sys_errlist and sys_nerr.
4996         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
4997         provide declarations.
4999 2002-07-31  Roland McGrath  <roland@redhat.com>
5001         * elf/rtld.c (dl_main): Fix typo in error message.
5003 2002-07-31  Roland McGrath  <roland@frob.com>
5005         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
5006         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
5007         sysdeps/mach/hurd/dl-sysdep.c change.
5009 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
5011         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
5012         -r`/build/include for kernel headers.
5014         * po/fi.po: New file.
5016 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
5018         * configure.in (static_nss): Set to `yes' if --disable-shared.
5020 2002-07-23  Bruno Haible  <bruno@clisp.org>
5022         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
5023         is set.
5025 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
5027         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
5028         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
5029         arguments.
5031 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
5033         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
5034         alias.
5036 2002-07-21  Bruno Haible  <bruno@clisp.org>
5038         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
5039         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
5040         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
5041         trans_sysdep_tab_offset.
5042         (struct sysdep_segment): New type.
5043         (struct sysdep_string): New type.
5044         (SEGMENTS_END): New macro.
5045         * intl/gettextP.h (struct sysdep_string_desc): New type.
5046         (struct loaded_domain): New fields malloced, n_sysdep_strings,
5047         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
5048         orig_tab, trans_tab, hash_tab to const pointers because they point
5049         into read-only memory.
5050         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
5051         (PRI*): Define fallback values.
5052         (get_sysdep_segment_value): New function.
5053         (_nl_load_domain): Distinguish major and minor revision parts. Add
5054         support for minor revision 1 with system dependent strings.
5055         (_nl_unload_domain): Also free the 'malloced' field.
5056         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
5057         now done in loadmsgcat.c. Add support for system dependent strings.
5059 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
5061         * posix/bug-regex7.c: New file.
5062         * posix/bug-regex8.c: New file.
5063         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
5065 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
5067         * posix/bug-regex4.c (main): Fix typos.
5068         * posix/bug-regex6.c (main): Likewise.
5070 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
5072         * posix/bug-regex6.c (main): Fix warnings.
5074         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
5076         * iconv/iconv_prog.c (main): Improve error message for the cases
5077         where -t and/or -f parameter are missing.
5079 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
5081         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
5082         (re_search): Likewise.
5083         (re_match_2): Likewise.
5084         (re_search_2): Likewise.
5085         (re_search_stub): New function.
5086         (re_search_2_stub): New function.
5087         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
5089 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
5091         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
5092         (re_string_eoi): Use STOP instead of LEN.
5093         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
5094         (re_string_construct): Likewise.
5095         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
5096         * posix/regexec.c (re_search_internal): Add a new argument STOP
5097         so that it can handle the argument STOP of re_search_2 and re_match_2
5098         correctly.
5099         (regexec): Adapt to new I/F of re_search_internal.
5100         (re_search_stub): Likewise.
5102 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
5104         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
5106         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
5108         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
5109         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
5110         of __divdi3.
5112         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
5113         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
5114         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
5115         alias for adjtimex syscall.
5117         * elf/dl-minimal.c: Define __assert_fail_internal.
5118         * assert/assert.c: Likewise.
5119         * include/assert.h: Define __assert_file macro if !SHARED and not
5120         NOT_IN_libc.
5122         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
5123         programs.
5124         * locale/Makefile: Likewise.
5125         * nscd/Makefile: Likewise.
5126         * catgets/Makefile: Likewise.
5128 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5130         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
5131         compute current position.
5133         * stdio-common/tst-fseek.c (main): Improve error messages.
5135         * libio/tst-freopen.c (main): Remove unused variable.
5137         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
5138         succesful seek call.  Simplify error checking.
5140 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
5142         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
5143         * sysdeps/ia64/fpu/libm_support.h: Likewise.
5145 2002-07-19  Roland McGrath  <roland@frob.com>
5147         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
5148         __libc_enable_secure is set.
5150 2002-07-24  Roland McGrath  <roland@frob.com>
5152         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
5153         This implementation supports only IPv4.
5154         * inet/ifaddrs.h: New file.
5155         * sysdeps/generic/ifaddrs.c: New file.
5156         * sysdeps/gnu/ifaddrs.c: New file.
5157         * inet/test-ifaddrs.c: New file.
5158         * inet/Makefile (routines): Add ifaddrs.
5159         (headers): Add ifaddrs.h here.
5160         (tests): Add test-ifaddrs.
5161         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
5163         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
5164         socket call to get an AF_INET socket, instead of using __opensock.
5165         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
5167         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
5168         if not -1 use it instead of calling __opensock.
5169         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
5170         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
5171         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
5173         * sysdeps/mach/hurd/ifreq.h: New file.
5174         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
5175         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
5176         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
5178         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
5179         which gets moved around.  Calculate size of mmap'd buffer instead.
5181 2002-07-24  Philip Blundell  <philb@gnu.org>
5183         * sysdeps/unix/arm/brk.S: Improve schedule.
5184         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
5185         efficient instruction.
5186         (__socket): Optimize return sequence.
5188 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5190         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
5191         sockets on old kernels.
5193 2002-07-22  Philip Blundell  <philb@gnu.org>
5195         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
5196         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
5197         alias.
5199 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5201         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
5202         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
5204         * locale/programs/locarchive.c (add_locale_to_archive): Correct
5205         test to detect duplicate locales.
5207         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
5208         position would be before beginning of file.
5209         (_IO_file_seekoff_mmap): Likewise.
5210         * libio/Makefile (tests): Add bug-fseek.
5211         * libio/bug-fseek.c: New file.
5213         * intl/explodename.c: Remove support for CEN-style locale variables.
5214         It was never used and shouldn't be since it's not portable.
5215         * intl/finddomain.c: Likewise.
5216         * intl/l10nflist.c: Likewise.
5217         * intl/loadinfo.h: Likewise.
5218         * locale/findlocale.c: Likewise.
5220 2002-07-24  Roland McGrath  <roland@frob.com>
5222         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
5223         position, calculate it to take into account an active pushback buffer.
5225         * libio/Makefile (tests): Add bug-ungetc.
5226         * libio/bug-ungetc.c: New file.
5228 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
5230         * sysdeps/generic/libc-tls.c: New file.
5231         * csu/Makefile (routines): Add libc-tls.
5232         (static-only-routines): Add libc-tls.
5233         * elf/dl-support.c (_dl_phdr): New variable.
5234         (_dl_phnum): New variable.
5235         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
5236         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
5237         for !SHARED.  First look through auxiliary vector.  If TLS always
5238         call __pthread_initialize_minimal.
5240         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
5241         in mmap call is never zero.
5243 2002-07-23  Andreas Jaeger  <aj@suse.de>
5245         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
5246         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
5248 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
5250         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
5251         creation and removal of the temp file.
5253         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
5254         file creation.
5255         * test-skeleton.c (create_temp_file): New function.
5257 2002-07-22  Andreas Jaeger  <aj@suse.de>
5259         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
5260         local label.
5262 2002-07-21  Roland McGrath  <roland@frob.com>
5264         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
5265         put -I../include before -I../stdlib so we get the right errno.h et al.
5266         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
5267         (CFLAGS-wcstof.c): Likewise.
5268         (CFLAGS-wcstold.c): Likewise.
5269         (CFLAGS-wcstod_l.c): Likewise.
5270         (CFLAGS-wcstof_l.c): Likewise.
5271         (CFLAGS-wcstold_l.c): Likewise.
5273 2002-07-19  Roland McGrath  <roland@frob.com>
5275         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
5277 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
5279         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
5280         __ASSUME_AT_XID is defined.
5281         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
5282         for 2.4.1 and up.
5283         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
5284         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
5286         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
5287         (CFLAGS-wcstof.c): Likewise.
5288         (CFLAGS-wcstold.c): Likewise.
5289         (CFLAGS-wcstod_l.c): Likewise.
5290         (CFLAGS-wcstof_l.c): Likewise.
5291         (CFLAGS-wcstold_l.c): Likewise.
5293 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
5295         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
5296         __priority_which_t): Always typedef to int for C++.
5298 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
5300         * configure.in: Add test for __thread support in compiler.
5301         * config.h.in: Add HAVE___THREAD.
5302         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
5303         * include/sys/errno.h: Moved to...
5304         * stdlib/sys/errno.h: ...here.  New file.
5305         * stdlib/errno.h: New file.  Moved from...
5306         * include/errno.h: ...here.  Changed into an internal header defining
5307         libc-local things like __set_errno.
5308         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
5309         bits/errno.h.
5310         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
5311         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
5312         either.
5313         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
5314         from...
5315         (_dl_start_final): ...here.  Add code to initialize tls elements from
5316         bootstrap_map.
5317         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
5318         if USE_TLS && HAVE___THREAD.
5319         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
5320         * sysdeps/mach/hurd/bits/errno.h: Likewise.
5321         * sysdeps/standalone/arm/bits/errno.h: Likewise.
5322         * sysdeps/standalone/bits/errno.h: Likewise.
5323         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
5324         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
5325         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
5326         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
5327         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
5328         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
5329         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
5330         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
5331         use GL(dl_rtld_map), use map parameter.
5332         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
5333         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
5334         USE_TLS && HAVE___THREAD.
5335         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
5336         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
5337         TLS code sequence.
5338         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5340         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
5341         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
5342         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
5343         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
5344         * sysdeps/unix/sysv/linux/readv.c: Likewise.
5345         * sysdeps/unix/sysv/linux/writev.c: Likewise.
5347 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
5349         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
5350         MS_INVALIDATE values.
5352 2002-07-17  Andreas Schwab  <schwab@suse.de>
5353             Ulrich Drepper  <drepper@redhat.com>
5355         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
5356         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5357         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5358         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5360 2002-07-01  H.J. Lu  <hjl@gnu.org>
5362         * elf/circleload1.c (load_dso): Call "circlemod1" and check
5363         return value.
5365         * elf/circlemod1.c (circlemod1): Return int.
5366         * elf/circlemod2.c (circlemod2): Likewise.
5367         * elf/circlemod2a.c (circlemod2): Likewise.
5368         * elf/circlemod3.c (circlemod3): Likewise.
5369         (circlemod3a): A new function.
5371 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
5373         * catgets/tst-catgets.c (main): Don't expect results for
5374         untranslated messages.
5376         * glibcbug.in: Fix little typo.  Remove STDIO.
5378         * config.h.in: Fail if __FAST_MATH__ is defined.
5379         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
5380         (CPPFLAGS-test-idouble.c): Likewise.
5381         (CPPFLAGS-test-ildouble.c): Likewise.
5383 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
5385         * intl/tst-gettext.sh: Pass -f option to msgfmt.
5386         * intl/tst-gettext.c: Correctly handle untranslated messages in
5387         positive tests.
5389         * po/de.po: Update from translation team.
5391 2002-07-02  H.J. Lu  <hjl@gnu.org>
5393         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
5394         use ll/sc.
5395         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
5397         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
5398         to 2.4.0 for mips.
5400 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
5402         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
5403         TLS fail if USE_TLS is not defined.
5405         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
5406         and adjust state for seek position.  [PR libc/4070]
5407         * libio/Makefile (tests): Add bug-rewind.
5408         * libio/bug-rewind.c: New file.
5410 2002-07-12  Philip Blundell  <philb@gnu.org>
5412         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
5413         (__backtrace): Use it.
5414         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
5416 2002-07-12  Philip Blundell  <philb@gnu.org>
5418         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
5419         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
5420         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
5421         (elf_machine_rela): Remove unused variable.
5423         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
5424         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
5425         define.
5427 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
5429         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
5431 2002-07-14  Andreas Jaeger  <aj@suse.de>
5433         * sysdeps/x86_64/bits/link.h: Add biarch support.
5435 2002-07-13  Andreas Jaeger  <aj@suse.de>
5437         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
5438         Use correct indices.
5439         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
5441 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5443         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
5444         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
5445         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
5446         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
5447         * sysdeps/s390/s390-32/bits/link.h: Remove.
5448         * sysdeps/s390/s390-64/bits/link.h: Remove.
5449         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
5450         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
5451         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
5452         * sysdeps/s390/bits/wordsize.h: New file.
5453         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
5454         elfclass.h.
5455         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
5456         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
5457         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
5458         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
5459         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
5460         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
5461         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
5462         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
5463         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
5464         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
5465         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
5466         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
5467         resource.h.
5468         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
5469         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
5470         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
5471         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
5472         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
5473         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
5474         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
5475         sigaction.h.
5476         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
5477         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
5478         siginfo.h.
5479         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
5480         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
5481         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
5482         socket.h.
5483         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
5484         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
5485         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
5486         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
5487         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
5488         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
5489         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
5490         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
5491         procfs.h.
5492         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
5493         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
5494         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
5495         ucontext.h.
5496         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
5497         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
5499 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
5501         * Versions.def (libc): Add GLIBC_2.3.
5502         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
5503         * stdlib/canonicalize.c: Add compatibility version for realpath
5504         and make new code available in GLIBC_2.3.
5506 2002-07-06  Bruno Haible  <bruno@clisp.org>
5508         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
5510 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
5512         * resolv/res_hconf.c (_res_hconf_init): Move code into new
5513         function do_init.  Use __libc_once.
5514         (do_init): New function.
5516         * iconvdata/iso8859-11.h: Removed.
5517         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
5518         (distribute): Remove iso8859-11.h.
5519         * iconvdata/tst-tables.sh: Add ISO-8859-11.
5521         * stdio-common/vfscanf.c (inchar): Restore errno from previous
5522         underflow operation if c == (W)EOF.
5524 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5526         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
5527         non-zero, adjust exponent.
5528         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
5529         Remove NO_LONG_DOUBLE aliases.
5530         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
5531         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
5532         (__log1pl): Raise divide by zero and invalid exceptions when needed.
5533         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
5534         1**y and -1**+-Inf.
5535         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
5536         Fix BITS_PER_MP_LIMB 32 extraction.
5537         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
5538         exceptions for qNaNs.
5539         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
5540         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
5541         Raise exceptions when needed.  Don't recurse unnecessarily.
5542         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
5543         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
5544         exceptions for qNaNs.
5545         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
5546         to fix *quo return value sign.
5547         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
5548         case -Inf argument.
5549         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
5551 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5553         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
5554         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
5555         -DNDEBUG.
5557 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5559         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
5560         the result.
5562         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
5563         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
5565         * Versions.def (libthread_db): Add GLIBC_2.3.
5567 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
5569         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
5570         new stream if possible.
5571         * libio/freopen64.c (freopen64): Likewise.
5572         * libio/Makefile (tests): Add tst-freopen.
5573         * libio/tst-freopen.c: New file.
5575 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5577         * libio/stdio.h (obstack_printf): Add format attribute.
5578         (obstack_vprintf): Likewise.
5580 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5582         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
5583         resp. 16 bytes on 32-bit resp. 64-bit platforms.
5584         (re_charset_t, re_string_t): Reorder structure members for 64-bit
5585         architectures.
5587 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5589         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
5590         (init_dfa): ...here.
5592 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5594         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
5595         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
5596         nodes in parse trees.
5597         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
5598         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
5599         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
5600         nodes which can epsilon transit.
5601         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
5602         to IS_EPSILON_NODE macro.
5603         * posix/regexec.c (update_regs): New function to update registers
5604         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
5605         (proceed_next_node): Use the entities of the nodes to determine
5606         whether the node can transit to.
5607         (set_regs): Use update_regs function to update registers.
5609 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5611         * posix/bug-regex4.c (main): Remove duplicate setlocale.
5612         * posix/bug-regex6.c: New file.
5613         * posix/Makefile (tests): Add bug-regex6.
5614         (bug-regex6-ENV): Set LOCPATH.
5616 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5618         * Versions.def [libpthread]: Add GLIBC_2.2.6.
5619         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
5621 2002-07-06  Bruno Haible  <bruno@clisp.org>
5623         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
5625 2002-07-06  Bruno Haible  <bruno@clisp.org>
5627         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
5628         declarations.
5630         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
5632         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
5634         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
5635         not _UTSNAME_H.
5636         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
5638         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
5639         * sysdeps/generic/bits/ustat.h: Likewise.
5641         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5643 2002-07-08  Andreas Jaeger  <aj@suse.de>
5645         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5647 2002-07-08  Andreas Jaeger  <aj@suse.de>
5649         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5651 2002-07-06  Andreas Jaeger  <aj@suse.de>
5653         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5654         * sysdeps/x86_64/fpu/s_copysign.S: New file.
5655         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5656         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5657         * sysdeps/x86_64/fpu/s_finitel.S: New file.
5658         * sysdeps/x86_64/fpu/s_fmax.S: New file.
5659         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5660         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5661         * sysdeps/x86_64/fpu/s_fmin.S: New file.
5662         * sysdeps/x86_64/fpu/s_fminf.S: New file.
5663         * sysdeps/x86_64/fpu/s_fminl.S: New file.
5665 2002-06-05  Brian Youmans <3diff@gnu.org>
5667         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5668         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5669         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5670         * sysdeps/ia64/fpu/e_asin.S: Likewise.
5671         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5672         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5673         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5674         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5675         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5676         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5677         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5678         * sysdeps/ia64/fpu/e_exp.S: Likewise.
5679         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5680         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5681         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5682         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5683         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5684         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5685         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5686         * sysdeps/ia64/fpu/e_log.S: Likewise.
5687         * sysdeps/ia64/fpu/e_logf.S: Likewise.
5688         * sysdeps/ia64/fpu/e_pow.S: Likewise.
5689         * sysdeps/ia64/fpu/e_powf.S: Likewise.
5690         * sysdeps/ia64/fpu/e_powl.S: Likewise.
5691         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5692         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5693         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5694         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5695         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5696         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5697         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5698         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5699         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5700         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5701         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5702         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5703         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5704         * sysdeps/ia64/fpu/libm_error.c: Likewise.
5705         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5706         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5707         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5708         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5709         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5710         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5711         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5712         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5713         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5714         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5715         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5716         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5717         * sysdeps/ia64/fpu/s_logb.S: Likewise.
5718         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5719         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5720         * sysdeps/ia64/fpu/s_modf.S: Likewise.
5721         * sysdeps/ia64/fpu/s_modff.S: Likewise.
5722         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5723         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5724         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5725         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5726         * sysdeps/ia64/fpu/s_rint.S: Likewise.
5727         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5728         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5729         * sysdeps/ia64/fpu/s_round.S: Likewise.
5730         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5731         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5732         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5733         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5734         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5735         * sysdeps/ia64/fpu/s_significand.S: Likewise.
5736         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5737         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5738         * sysdeps/ia64/fpu/s_tan.S: Likewise.
5739         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5740         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5741         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5742         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5743         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5744         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5745         reflect IBM donation of math library to FSF
5746         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5747         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5748         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5749         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5750         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5751         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5752         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5753         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5754         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5755         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5756         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5757         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5758         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5759         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5760         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5761         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5762         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5763         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5764         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5765         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5766         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5767         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5768         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5769         * sysdeps/vax/__longjmp.c: Likewise.
5770         * sysdeps/vax/setjmp.c: Likewise.
5771         * libio/filedoalloc.c: Fixed BSD copying permission notice to
5772         remove advertising clause
5773         * sysdeps/vax/htonl.s: Likewise.
5774         * sysdeps/vax/htons.s: Likewise.
5775         * libio/wfiledoalloc.c: Likewise.
5776         * stdlib/random.c: Likewise.
5777         * stdlib/random_r.c: Likewise.
5778         * sysdeps/mach/sys/reboot.h: Likewise.
5779         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5780         * sysdeps/posix/getaddrinfo.c: Likewise.
5781         * sunrpc/des_impl.c: Updated license permission notice to Lesser
5782         GPL and corrected pointer to point to the correct license.
5784 2002-07-04  Andreas Jaeger  <aj@suse.de>
5786         * scripts/config.guess: New upstream version.
5787         * scripts/config.sub: Likewise.
5789 2002-07-02  Andreas Schwab  <schwab@suse.de>
5791         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5792         in parallel to bumping up the buffer pointer.
5794 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5796         * math/libm-test.inc (acos_test): Add missing L suffix for
5797         expected result.
5798         (cpow_test): Likewise.
5799         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5800         error for acos (0.0625).
5802 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5804         * locale/iso-639.def: Add entry for Ganda.
5805         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5806         definition.
5807         (address_finish): Handle entries with two letter ISO 639 code.
5809         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5810         directory if it existed before.
5811         * iconv/iconvconfig.c: Implement --prefix option.
5813         * math/libm-test.inc (cexp_test): Add missing L suffix for
5814         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
5815         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5816         1.25 i).
5818 2002-05-29  H.J. Lu  <hjl@gnu.org>
5820         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5821         is turned on.
5823 2002-05-28  H.J. Lu  <hjl@gnu.org>
5825         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5826         are not dlopened on the dependency list of a dlopened object.
5828 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5830         * elf/dl-lookup.c (add_dependency): It is not necessary to add
5831         dependencies if they are created between objects which are created
5832         while processing RTLD_NOW for objects loaded as part of the same
5833         dlopen call.
5835 2002-06-14  H.J. Lu  <hjl@gnu.org>
5837         * elf/Makefile (tests): Add circleload1.
5838         (modules-names): Add circlemod1, circlemod2, circlemod3,
5839         circlemod1a, circlemod2a and circlemod3a.
5840         ($(objpfx)circleload1): New target.
5841         ($(objpfx)circleload1.out): Likewise.
5842         ($(objpfx)circlemod1.so): Likewise.
5843         ($(objpfx)circlemod2.so): Likewise.
5844         ($(objpfx)circlemod1a.so): Likewise.
5845         ($(objpfx)circlemod2a.so): Likewise.
5846         * elf/circleload1.c: New file.
5847         * elf/circlemod1.c: New file.
5848         * elf/circlemod1a.c: New file.
5849         * elf/circlemod2.c: New file.
5850         * elf/circlemod2a.c: New file.
5851         * elf/circlemod3.c: New file.
5852         * elf/circlemod3a.c: New file.
5854 2002-06-18  Amos Waterland  <apw@us.ibm.com>
5856         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5857         file descriptor.
5858         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5859         add check for fd not open for writing.
5861         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5862         completed element(s) and do not suspend thread if so.  Patch
5863         heavily modified by drepper.
5865         * rt/tst-aio7.c: New file.  Regression test for problems which the
5866         above three changes fix.
5867         * rt/Makefile (tests): Add tst-aio7.
5869 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
5871         * rt/tst-aio6.c: Fix comment.
5873         * catgets/gencat.c (read_input_file): Handle more than one slash
5874         at end of line correctly [PR libc/3926].
5875         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5877         * catgets/sample.SJIS: Add test case for above bug.
5878         * catgets/test-gencat.c: Adjust test code.
5879         * catgets/test-gencat.sh: Adjust expected results.
5881         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5882         to skip relative relocations.
5883         Patch by Geoff Keating <geoffk@redhat.com>.
5885 2002-05-26  Bruno Haible  <bruno@clisp.org>
5887         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5888         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5889         All callers changed.
5890         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5891         STANDARD_FROM_LOOP_ERR_HANDLER.
5892         (utf8_internal_loop): Likewise.
5893         (ucs2_internal_loop): Likewise.
5894         (internal_ucs2_loop): Perform error handling like in
5895         STANDARD_FROM_LOOP_ERR_HANDLER.
5896         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5897         in STANDARD_FROM_LOOP_ERR_HANDLER.
5898         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5899         handling.
5900         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5901         in STANDARD_FROM_LOOP_ERR_HANDLER.
5902         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5903         handling.
5904         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5905         in STANDARD_FROM_LOOP_ERR_HANDLER.
5906         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5907         handling.
5908         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5909         STANDARD_FROM_LOOP_ERR_HANDLER.
5910         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5911         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5912         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5913         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5914         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5915         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5916         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5917         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5918         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5919         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5920         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5921         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5922         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5923         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5924         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5925         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5926         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5927         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5928         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5929         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5930         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5931         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5932         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5933         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5934         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5935         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5936         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5937         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5938         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
5939         an error, still set result = __GCONV_ILLEGAL_INPUT.
5940         (BODY for TO_LOOP): Likewise.
5941         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5942         STANDARD_FROM_LOOP_ERR_HANDLER.
5943         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5944         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5945         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5946         handling.
5947         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5948         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5949         STANDARD_FROM_LOOP_ERR_HANDLER.
5950         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5951         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5952         STANDARD_FROM_LOOP_ERR_HANDLER.
5953         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5954         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5955         STANDARD_FROM_LOOP_ERR_HANDLER.
5956         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5957         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5958         STANDARD_FROM_LOOP_ERR_HANDLER.
5959         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5960         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5961         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5962         handling.
5963         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5964         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5965         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5966         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5968 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5970         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5971         labels in assembler instructions.
5973 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
5975         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5976         not enough content is available.
5977         * libio/tst-eof.c: New file.
5978         * libio/Makefile (tests): Add tst-eof.
5980         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5981         update atime.
5982         * libio/tst-atime.c: New file.
5983         * libio/Makefile (tests): Add tst-atime.
5985         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5986         handling of overly long words.
5988 2002-06-25  Andreas Jaeger  <aj@suse.de>
5990         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5991         to not use 32-bit pc relative relocations.
5992         (elf_machine_dynamic): Likewise.
5994 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5996         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5997         (__GETDENTS): Check for failed getdents64 syscall.
5998         * dirent/Makefile (tests): Add bug-readdir1.
5999         * dirent/bug-readdir1.c: New file.
6001 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
6003         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
6004         lookups.
6005         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
6006         code.  Print TLS modid and offset for modules containing PT_TLS
6007         segments.
6009 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
6011         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
6012         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
6013         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
6014         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
6016 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
6018         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
6019         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
6020         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
6021         * nss/getXXent_r.c (NEW, NEW1): Define.
6022         (NEW (REENTRANT_GETNAME)): Strong alias to
6023         INTERNAL (REENTRANT_GETNAME).
6024         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
6026 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
6028         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
6029         (_IO_file_jumps_mmap): Use it.
6030         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
6031         * libio/libioP.h: Remove _IO_wdefault_setbuf and
6032         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
6033         prototype.
6034         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
6035         (_IO_wfile_jumps_mmap): Don't use it anymore.
6036         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
6037         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
6038         _IO_wdefault_setbuf.
6039         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
6040         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
6041         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
6043 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
6045         * libio/Makefile (tests): Add tst-mmap-setvbuf.
6046         * libio/tst-mmap-setvbuf.c: New test.
6048 2002-06-21  Andreas Jaeger  <aj@suse.de>
6050         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
6052 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
6054         * include/unistd.h (__fork_internal): Remove.
6055         (__fork): Don't define to __fork_internal.
6056         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
6057         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
6058         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
6059         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
6060         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
6062 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
6064         * po/hr.po: New file.
6066 2002-06-11  Wolfram Gloger  <wg@malloc.de>
6068         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
6069         Reported by Michael Meissner <meissner@redhat.com>.
6071 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
6073         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
6074         Patch by Hans Boehm <hans_boehm@hp.com>.
6076 2002-06-20  Andreas Jaeger  <aj@suse.de>
6078         * math/libm-test.inc: Use exact values as input parameters,
6079         compute output parameters with 36 digits for 128-bit long doubles.
6080         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
6081         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
6082         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
6084 2002-06-13  Stephen L Moshier  <steve@moshier.net>
6086         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
6087         argument or result is subnormal.
6089 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
6091         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
6092         quotient.
6093         * sysdeps/i386/fpu/s_remquof.S: Likewise.
6094         * sysdeps/i386/fpu/s_remquol.S: Likewise.
6096         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
6098 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
6100         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
6101         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
6102         Reported by Peter A. Buhr.
6104 2002-06-15  Roland McGrath  <roland@frob.com>
6106         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
6107         warning.
6109         * sysdeps/mach/hurd/getcwd.c
6110         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
6112         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
6113         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
6115         * sysdeps/alpha/divrem.h: Use local label instead of global one for
6116         jump to local subroutine.
6118 2002-06-14  Roland McGrath  <roland@frob.com>
6120         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
6121         * sysdeps/mach/hurd/Makeconfig: ... here.
6123 2002-06-13  Andreas Schwab  <schwab@suse.de>
6125         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
6126         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6127         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
6129 2002-06-13  Roland McGrath  <roland@frob.com>
6131         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
6132         * hurd/hurdstartup.c (_hurd_startup): Likewise.
6133         Use intptr_t instead of int for argc in stack layout.
6134         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
6135         (_dl_init_first): Likewise.
6136         (_hurd_stack_setup): Likewise.
6137         (init1): Add a cast.
6138         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
6140         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
6141         argument to pfinet_siocgifconf RPC.
6143 2002-06-13  Andreas Schwab  <schwab@suse.de>
6145         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
6146         expansion order.
6148 2002-06-12  Roland McGrath  <roland@frob.com>
6150         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
6151         if already defined.
6152         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
6153         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
6155 2002-06-11  Roland McGrath  <roland@frob.com>
6157         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
6158         file on [!RTLD_STAT64].
6159         * sysdeps/mach/hurd/fxstat64.c: Likewise.
6161         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
6162         (__fdopen): Use INTUSE.
6163         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
6165         * stdio-common/tmpfile64.c: File removed.
6166         * sysdeps/generic/tmpfile64.c: New file.
6167         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
6168         if not already defined.
6169         (tmpfile): Use it in place of __GT_FILE.
6171         * include/unistd.h: Declare __chown_internal.
6173         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
6174         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
6176 2002-06-09  Roland McGrath  <roland@frob.com>
6178         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
6179         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
6180         value of HURD_INTERFACE_VERSION >= 20020609.
6181         * sysdeps/mach/hurd/configure: Regenerated.
6182         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
6183         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
6184         convert a struct stat64 into a struct stat and return 0 or -1
6185         with errno set to EOVERFLOW.
6186         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
6187         for struct statfs64 to struct statfs.
6188         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
6189         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
6190         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
6191         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
6192         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
6193         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
6194         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
6195         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
6196         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
6197         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
6198         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
6199         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
6200         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
6201         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
6202         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
6203         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
6204         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
6205         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
6206         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
6207         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
6208         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
6209         Use struct stat64 for io_stat argument.
6210         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
6211         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
6212         to io_seek.
6213         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
6214         * hurd/fd-write.c (_hurd_fd_write): Likewise.
6215         * hurd/hurd/fd.h: Update decls.
6216         * sysdeps/mach/hurd/getcwd.c
6217         (_hurd_canonicalize_directory_name_internal): Use ino64_t
6218         and struct dirent64.
6219         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
6220         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
6221         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
6222         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
6224 2002-06-08  Roland McGrath  <roland@frob.com>
6226         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
6227         instead of unsigned long int for __allocation and __size members.
6229 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
6231         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
6232         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
6233         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
6234         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
6236 2002-06-07  Roland McGrath  <roland@frob.com>
6238         * sysdeps/mach/hurd/bits/environments.h: File removed.
6240 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
6242         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
6243         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
6244         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
6245         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
6246         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
6247         (sendfile64): Likewise.
6248         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
6249         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
6250         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
6251         Likewise.
6252         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
6254         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
6255         already defined.
6257 2002-06-04  Bruno Haible  <bruno@clisp.org>
6259         * sysdeps/cris/stackinfo.h: New file.
6261         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
6262         to an integer type before performing bit operations on it.
6264 2002-06-05  Roland McGrath  <roland@frob.com>
6266         * sysdeps/generic/sendfile.c: Include <errno.h>.
6267         * sysdeps/generic/sendfile64.c: Likewise.
6269         * io/Makefile (routines): Add sendfile and sendfile64.
6270         (headers): Add sys/sendfile.h to the list.
6271         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
6272         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
6273         * io/sys/sendfile.h: ... here.
6274         * sysdeps/generic/sendfile.c: New file.
6275         * sysdeps/generic/sendfile64.c: New file.
6277         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
6278         Move sendfile, sendfile64 to ...
6279         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
6280         * sysdeps/mach/hurd/sendfile.c: New file.
6281         * sysdeps/mach/hurd/sendfile64.c: New file.
6283         * sysdeps/mach/nanosleep.c: New file.
6285 2002-06-04  Roland McGrath  <roland@frob.com>
6287         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
6288         * sysdeps/alpha/elf/configure: New file (generated).
6290 2002-06-02  Roland McGrath  <roland@frob.com>
6292         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
6294 2002-06-01  Roland McGrath  <roland@frob.com>
6296         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
6297         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
6299 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
6301         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
6302         Add nsmap.
6303         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
6304         Remove nstimes setting.
6305         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
6306         * resolv/res_send.c (res_nsend): Don't close unconditionally if
6307         there is mix of IPv6 and IPv4 nameservers.
6308         Use nsmap array to find free slots and preserve nameserver ordering.
6309         Fix RES_ROTATE.
6311 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
6313         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
6314         use this header with LFS.
6316         * po/sk.po: Update from translation team.
6318 2002-05-28  Andreas Schwab  <schwab@suse.de>
6320         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
6321         message when finding object of wrong class.
6323 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
6325         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
6326         Patch by <radu@netsoft.ro>.
6328 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
6330         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
6331         Add readahead.
6332         * sysdeps/unix/sysv/linux/readahead.c: New file.
6333         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
6334         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
6335         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
6336         Add sendfile64 alias to sendfile syscall.
6337         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6338         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6339         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6340         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
6341         syscall.
6343         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
6344         special section for PIC register loading.
6345         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
6347         * config.h.in: Define HAVE_HIDDEN.
6348         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
6350         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
6352 2002-05-28  Roland McGrath  <roland@frob.com>
6354         * sysdeps/mach/alpha/setfpucw.c: New file.
6356 2002-05-26  Roland McGrath  <roland@frob.com>
6358         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
6359         Use integer_t instead of int for IOC_VOID case.
6361 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
6363         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
6365 2002-05-26  Bruno Haible  <bruno@clisp.org>
6367         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
6368         end of the ISO-8859-7 from idx table.
6370 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
6372         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
6374 2002-05-24  David S. Miller  <davem@redhat.com>
6376         * string/bits/string2.h (memset): Do not try to optimize when
6377         not _STRING_ARCH_unaligned if GCC will do the right thing.
6379 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
6381         * posix/regex.c: Define `inline' as a macro into nothing for the
6382         compilers which lack the keyword.
6383         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
6384         for the compatibility of gawk.
6385         * posix/regcomp.c: Add fake implementation of isblank() for the
6386         environments which lack the function.
6387         Don't use free_charset() in case of non-i18n envs.
6388         (build_range_exp): Don't use i18n related code in case of non-i18n
6389         envs.
6390         (build_collating_symbol): Likewise.
6391         (build_equiv_class): Likewise.
6392         (build_charclass): Likewise.
6393         (re_compile_fastmap_iter): Likewise.
6394         (parse_bracket_exp): Likewise.
6395         (build_word_op): Likewise.
6396         (regfree): Don't use free_charset() in case of non-i18n envs.
6397         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
6398         re_token_type_t in case of non-i18n envs.
6399         Don't define re_charset_t in case of non-i18n envs.
6400         Change the type of wcs of re_string_t from wchar_t to wint_t,
6401         since we store also WEOF.
6402         * posix/regex_internal.c: (re_string_realloc_buffers): Change
6403         the type of wcs of re_string_t from wchar_t to wint_t.
6404         (re_string_reconstruct): Likewise.
6405         (create_ci_newstate): Don't use i18n related code in case of
6406         non-i18n envs.
6407         (create_cd_newstate): Likewise.
6409 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
6411         * iconv/loop.c: Fix typo.
6413 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
6415         * inet/ether_line.c (ether_line): Fix a typo causing only
6416         lower 4 bits of each ethernet address byte being assigned.
6417         Don't modify what line points to.
6418         * inet/tst-ether_aton.c (main): Add ether_line tests.
6420 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
6422         * manual/filesys.texi: Don't make readlink example leak memory
6423         when readlink fails.
6425 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
6427         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
6428         some more security checks.
6430 2002-05-17  David S. Miller  <davem@redhat.com>
6432         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
6434 2002-05-16  David S. Miller  <davem@redhat.com>
6436         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
6437         (elf_machine_dynamic): Use it to force PIC register to be loaded.
6438         (elf_machine_load_address): Likewise.
6439         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
6441         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
6442         is unaligned, do not forget to fully initialize %g1 magic value.
6444         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
6445         register definitions and provide 32-bit variants of structures
6446         during 64-bit builds.
6448         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
6449         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
6450         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
6451         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
6452         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
6453         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
6454         Do not clear implicit one bit here, it must be done post-rounding.
6455         Only pad to the left using left shift if value uses less than the
6456         available fractional bits.
6458 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6460         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
6461         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
6462         (shared-only-routines): Likewise.
6463         * sysdeps/powerpc/libgcc-compat.c: New file.
6464         * sysdeps/wordsize-32/cmpdi2.c: Removed.
6465         * sysdeps/wordsize-32/fixdfdi.c: Removed.
6466         * sysdeps/wordsize-32/fixsfdi.c: Removed.
6467         * sysdeps/wordsize-32/shdi3.c: Removed.
6469 2002-05-16  Bruno Haible  <bruno@clisp.org>
6471         * MakeTAGS (libc.pot): Don't sort the output.
6472         * po/header.pot: Update to match xgettext 0.11 output.
6474 2002-05-16  Bruno Haible  <bruno@clisp.org>
6476         * MakeTAGS (subdirs): Remove duplicates.
6478 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
6480         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
6481         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
6482         alias.
6484 2002-05-19  Andreas Jaeger  <aj@suse.de>
6486         * sysdeps/unix/sysv/linux/configure.in: Warn against an
6487         installation in /usr/local.
6489 2002-05-16  Bruno Haible  <bruno@clisp.org>
6491         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
6492         string as argument of #error.
6494 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
6496         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
6497         don't define static.  Remove old __realpath function.  TC1 of
6498         POSIX 2001 will allow the second parameter to be NULL.
6499         * stdlib/test-canon.c: Comment out test for NULL as second
6500         parameter of realpath.
6502         * time/offtime.c (__offtime): Set errno if overflow is detected.
6504         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
6505         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
6506         dl-brk and dl-sbrk.
6508         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
6509         (fdimf): Likewise.
6511 2002-05-15  Roland McGrath  <roland@frob.com>
6513         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
6515 2002-05-12  Bruno Haible  <bruno@clisp.org>
6517         * iconvdata/testdata/EUC-JISX0213: New file.
6518         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
6519         * iconvdata/testdata/SHIFT_JISX0213: New file.
6520         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
6521         * iconvdata/testdata/ISO-2022-JP-3: New file.
6522         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
6523         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
6524         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
6525         contains comments indicating precomposed characters.
6527 2002-04-21  Bruno Haible  <bruno@clisp.org>
6529         * iconvdata/iso-2022-jp-3.c: New file.
6530         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
6531         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
6532         (LDFLAGS-ISO-2022-JP-3.so): New variable.
6533         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
6534         (distribute): Add iso-2022-jp-3.c.
6536 2002-05-12  Bruno Haible  <bruno@clisp.org>
6538         * iconvdata/tst-table-to.c (main): Restore handling of
6539         transliterations, broken by last patch.
6541 2002-05-12  Bruno Haible  <bruno@clisp.org>
6543         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
6545 2002-05-12  Bruno Haible  <bruno@clisp.org>
6547         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
6548         when there is not enough room in the output buffer.
6549         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
6551 2002-04-20  Bruno Haible  <bruno@clisp.org>
6553         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
6554         macros.
6555         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6556         Also make this macro work if FROM_DIRECTION evaluates to 0.
6557         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6558         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
6559         of consume_incomplete.
6560         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6561         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
6562         4, not 8.
6563         * iconvdata/cp1258.c: Likewise.
6564         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6565         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
6566         not 2.
6567         * iconvdata/ibm933.c: Likewise.
6568         * iconvdata/ibm935.c: Likewise.
6569         * iconvdata/ibm937.c: Likewise.
6570         * iconvdata/ibm939.c: Likewise.
6571         * iconvdata/iso-2022-cn.c: Define
6572         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6573         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
6574         * iconvdata/iso-2022-cn-ext.c: Likewise.
6575         * iconvdata/iso-2022-jp.c: Define
6576         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6577         {MIN,MAX}_NEEDED_{FROM,TO}.
6578         * iconvdata/tcvn5712-1.c: Define
6579         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6580         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
6581         * iconvdata/euc-jisx0213.c: Define
6582         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6583         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
6584         * iconvdata/shift_jisx0213.c: Likewise.
6586 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6588         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
6589         shdi3, fixdfdi, fixsfdi in csu dir.
6590         (shared-only-routines): Likewise.
6591         * sysdeps/wordsize-32/cmpdi2.c: New file.
6592         * sysdeps/wordsize-32/shdi3.c: New file.
6593         * sysdeps/wordsize-32/fixdfdi.c: New file.
6594         * sysdeps/wordsize-32/fixsfdi.c: New file.
6595         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
6596         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
6597         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
6599         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
6600         Only use va_arg if the argument will be used [PR libc/3259].
6602 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
6604         * catgets/catgets.c (catopen): Free buffer if internal catalog
6605         open fails.
6607 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6609         * debug/xtrace.sh: Make more robust.  For realtime tracking use
6610         non-buffering methods.
6611         * debug/pcprofiledump.c: Implement -u option.
6612         Patch by Roger Luethi <rl@hellgate.ch>.
6614 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
6616         * include/netinet/in.h (bindresvport_internal): Add prototype.
6617         * include/rpc/auth.h  (authunix_create_internal,
6618         authunix_create_default_internal, authnone_create_internal,
6619         authdes_pk_create_internal): Add prototypes.
6620         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
6621         clntudp_create_internal, clntudp_bufcreate_internal,
6622         clntunix_create_internal): Add prototypes.
6623         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
6624         svc_getreq_internal, svc_getreq_common_internal,
6625         svc_getreqset_internal, svc_getreq_poll_internal,
6626         svc_register_internal, svc_unregister_internal,
6627         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
6628         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
6629         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
6630         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
6631         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
6632         * inet/rcmd.c (rcmd_af): Use __listen.
6633         (rresvport_af): Use __bind.
6634         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
6635         authunix_create, authunix_create_default, authnone_create,
6636         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
6637         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
6638         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
6639         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
6640         _authenticate, add INTDEF after such function definitions.
6641         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6642         __setsockopt, __getsockname instead of non-__ variants.
6643         * sunrpc/pmap_rmt.c: Likewise.
6644         * sunrpc/rtime.c: Likewise.
6645         * sunrpc/svc_udp.c: Likewise.
6646         * sunrpc/clnt_unix.c: Likewise.
6647         * sunrpc/svc_unix.c: Likewise.
6648         * sunrpc/bindrsvprt.c: Likewise.
6649         * sunrpc/svc_tcp.c: Likewise.
6650         * sunrpc/auth_none.c: Likewise.
6651         * sunrpc/clnt_raw.c: Likewise.
6652         * sunrpc/clnt_tcp.c: Likewise.
6653         * sunrpc/auth_unix.c: Likewise.
6654         * sunrpc/key_call.c: Likewise.
6655         * sunrpc/clnt_gen.c: Likewise.
6656         * sunrpc/pm_getmaps.c: Likewise.
6657         * sunrpc/clnt_simp.c: Likewise.
6658         * sunrpc/pmap_clnt.c: Likewise.
6659         * sunrpc/svc_run.c: Likewise.
6660         * sunrpc/svc.c: Likewise.
6661         * sunrpc/svc_simple.c: Likewise.
6662         * sunrpc/pm_getport.c: Likewise.
6663         * sunrpc/auth_des.c: Likewise.
6664         * sunrpc/svc_auth.c: Likewise.
6665         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6666         __register_frame_info_table_bases, __deregister_frame_info_bases):
6667         Add INTDEF.
6668         (__register_frame_info_bases_internal,
6669         __register_frame_info_table_bases_internal,
6670         __deregister_frame_info_bases_internal): Add prototypes.
6671         (__register_frame_info, __register_frame): Use INTUSE in call to
6672         __register_frame_info_bases.
6673         (__register_frame_info_table): Similarly.
6674         (__deregister_frame_info, __deregister_frame): Similarly.
6675         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6676         sendto as weak alias.
6677         * sysdeps/mach/hurd/sendto.c: Likewise.
6678         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6679         recvfrom as weak alias.
6680         * sysdeps/mach/hurd/recvfrom.c: Likewise.
6681         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6682         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6683         recvmsg as weak alias.
6684         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6685         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6686         sendmsg as weak alias.
6687         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6688         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6689         setsockopt, add setsockopt as weak alias.
6690         * sysdeps/mach/hurd/setsockopt.c: Likewise.
6691         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6692         weak alias.
6693         * sysdeps/mach/hurd/bind.c: Likewise.
6694         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6695         as weak alias.
6696         * sysdeps/mach/hurd/listen.c: Likewise.
6697         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6698         getsockname, add getsockname as weak alias.
6699         * sysdeps/mach/hurd/getsockname.c: Likewise.
6700         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6701         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6702         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6703         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6704         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6705         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6706         Add aliases.
6707         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6708         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6709         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6710         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6711         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6712         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6713         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6714         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6715         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6716         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6717         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6718         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6720 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6722         * locale/programs/localedef.h (show_archive_content): Add verbose
6723         argument.
6724         * locale/programs/localedef.c (main): Adjust caller.
6725         * locale/programs/locarchive.c (struct nameent, struct dataent): New
6726         types.
6727         (nameentcmp, dataentcmp): New functions.
6728         (xstrcmp): Remove.
6729         (show_archive_content): Print verbose listing with --list-archive -v.
6731 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6733         * locale/programs/locarchive.c (open_archive): Take extra argument
6734         readonly.  If true open file with O_RDONLY and don't create the
6735         archive if it doesn't exist.
6736         Adapt all callers.
6737         (close_archive): Don't do anything if fd element is -1.
6738         * locale/programs/localedef.h (open_archive): Adjust prototype.
6739         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6740         call.
6742         * malloc/malloc.c (__posix_memalign): Correct check for size of
6743         alignment value [PR libc/3444].
6745         * include/stdio.h: Remove references to old stdio implementation.
6747         * libio/Makefile (bug-ungetwc2-ENV): Define.
6749 2002-05-13  Roland McGrath  <roland@frob.com>
6751         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6753         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6755 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
6757         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6758         Allocate three, not two, more than LEN when appending '/.'.
6759         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
6760         if NAME ends with '/.' if it is shorter than 2 chars.
6762 2002-05-12  Roland McGrath  <roland@frob.com>
6764         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6765         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6767         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6768         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6770 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6772         * sysdeps/ia64/Makefile: Remove extra endif.
6773         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6775 2002-05-10  Andreas Schwab  <schwab@suse.de>
6777         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6779 2002-05-09  Andreas Jaeger  <aj@suse.de>
6781         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6782         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6783         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6785         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6786         * sysdeps/wordsize-64/glob.c: ...here.
6787         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6788         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6789         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6791 2002-05-08  Roland McGrath  <roland@frob.com>
6793         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6794         O_NOTRANS flag in "." lookup.
6796 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
6798         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6800 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
6802         * locale/duplocale.c (__duplocale): Update special members only
6803         when allocation succeeded.
6805 2002-05-03  Roland McGrath  <roland@frob.com>
6807         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6808         we can only build libc.so.0.3(GLIBC_2.2.6) now.
6810 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
6812         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6813         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6814         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6815         * sysdeps/ia64/ia64libgcc.S: New file.
6817 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
6819         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6821         * malloc/memusage.c: Distinguish anonymous mmap.
6823 2002-05-01  Roland McGrath  <roland@frob.com>
6825         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6826         and use INTDEF on it.
6827         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6829         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6831         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6833 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
6835         * malloc/memusage.c: Add support for tracking mmap & friends.
6836         * malloc/memusage.sh: Implement -m/--mmap option.
6838 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6840         * locale/programs/locarchive.c (create_archive): Add archivefname
6841         argument, create fname from it.
6842         (enlarge_archive): Honour output_prefix.
6843         (open_archive): Likewise.
6845 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6847         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6848         too many stpcpy macros.
6850 2002-04-26  Bruno Haible  <bruno@clisp.org>
6852         * locale/programs/ld-collate.c (collate_read): Cast first argument
6853         for "%.*s" to int.
6855 2002-04-26  Bruno Haible  <bruno@clisp.org>
6857         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6858         __dcngettext_internal): New declarations.
6859         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6860         attribute declarations.
6862 2002-04-30  Roland McGrath  <roland@frob.com>
6864         Removed old GNU stdio implementation; GNU libio is now the only option.
6865         * configure.in: Removed --enable-libio option and @stdio@ subst var.
6866         Define USE_IN_LIBIO unconditionally.
6867         * configure: Regenerated.
6868         * Makeconfig (stdio): Set to libio by default.
6869         * config.make.in (stdio): Variable removed.
6870         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6871         * sysdeps/unix/sysv/linux/configure: Regenerated.
6872         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6873         * sysdeps/mach/hurd/configure: Regenerated.
6874         * stdio/.cvsignore: File removed.
6875         * stdio/Makefile: File removed.
6876         * stdio/Versions: File removed.
6877         * stdio/__fbufsize.c: File removed.
6878         * stdio/__flbf.c: File removed.
6879         * stdio/__fpending.c: File removed.
6880         * stdio/__fpurge.c: File removed.
6881         * stdio/__freadable.c: File removed.
6882         * stdio/__freading.c: File removed.
6883         * stdio/__fsetlocking.c: File removed.
6884         * stdio/__fwritable.c: File removed.
6885         * stdio/__fwriting.c: File removed.
6886         * stdio/clearerr.c: File removed.
6887         * stdio/fclose.c: File removed.
6888         * stdio/fcloseall.c: File removed.
6889         * stdio/feof.c: File removed.
6890         * stdio/ferror.c: File removed.
6891         * stdio/fflush.c: File removed.
6892         * stdio/fgetc.c: File removed.
6893         * stdio/fgetpos.c: File removed.
6894         * stdio/fgets.c: File removed.
6895         * stdio/fileno.c: File removed.
6896         * stdio/fmemopen.c: File removed.
6897         * stdio/fopen.c: File removed.
6898         * stdio/fopncook.c: File removed.
6899         * stdio/fputc.c: File removed.
6900         * stdio/fputs.c: File removed.
6901         * stdio/fread.c: File removed.
6902         * stdio/freopen.c: File removed.
6903         * stdio/fseek.c: File removed.
6904         * stdio/fsetpos.c: File removed.
6905         * stdio/ftell.c: File removed.
6906         * stdio/fwrite.c: File removed.
6907         * stdio/getc.c: File removed.
6908         * stdio/getchar.c: File removed.
6909         * stdio/getdelim.c: File removed.
6910         * stdio/gets.c: File removed.
6911         * stdio/glue.c: File removed.
6912         * stdio/internals.c: File removed.
6913         * stdio/linewrap.c: File removed.
6914         * stdio/linewrap.h: File removed.
6915         * stdio/memstream.c: File removed.
6916         * stdio/newstream.c: File removed.
6917         * stdio/obstream.c: File removed.
6918         * stdio/putc.c: File removed.
6919         * stdio/putchar.c: File removed.
6920         * stdio/puts.c: File removed.
6921         * stdio/rewind.c: File removed.
6922         * stdio/setbuf.c: File removed.
6923         * stdio/setbuffer.c: File removed.
6924         * stdio/setlinebuf.c: File removed.
6925         * stdio/setvbuf.c: File removed.
6926         * stdio/stdio.h: File removed.
6927         * stdio/ungetc.c: File removed.
6928         * stdio/vasprintf.c: File removed.
6929         * stdio/vscanf.c: File removed.
6930         * stdio/vsnprintf.c: File removed.
6931         * stdio/vsprintf.c: File removed.
6932         * stdio/vsscanf.c: File removed.
6933         * sysdeps/generic/defs.c: File removed.
6934         * sysdeps/generic/fdopen.c: File removed.
6935         * sysdeps/generic/pipestream.c: File removed.
6936         * sysdeps/generic/stdio_init.c: File removed.
6937         * sysdeps/generic/sysd-stdio.c: File removed.
6938         * sysdeps/generic/vdprintf.c: File removed.
6939         * sysdeps/mach/hurd/defs.c: File removed.
6940         * sysdeps/mach/hurd/fdopen.c: File removed.
6941         * sysdeps/mach/hurd/pipestream.c: File removed.
6942         * sysdeps/mach/hurd/stdio_init.c: File removed.
6943         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6944         * sysdeps/mach/hurd/vdprintf.c: File removed.
6945         * sysdeps/posix/defs.c: File removed.
6946         * sysdeps/posix/fdopen.c: File removed.
6947         * sysdeps/posix/pipestream.c: File removed.
6948         * sysdeps/posix/stdio_init.c: File removed.
6949         * sysdeps/posix/vdprintf.c: File removed.
6950         * sysdeps/unix/pipestream.c: File removed.
6951         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6952         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6953         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6955 2002-04-29  Roland McGrath  <roland@frob.com>
6957         * include/libc-symbols.h (link_warning): Use `unused' attribute.
6959 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
6961         * sysdeps/generic/tls.h: Describe what must be defined.
6963         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6964         glob_in_dir [PR libc/3385].
6965         * posix/globtest.sh: Add test case.
6967         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6968         //TRANSLIT twice.
6970 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
6972         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6973         _internal symbol handling.
6974         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6976 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6978         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6979         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6981 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
6983         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6984         not _LIBC and RE_ENABLE_I18N.
6985         (build_range_exp): Implement for not _LIBC.
6986         (build_collating_symbol): Likewise.
6987         (parse_bracket_exp): Unify redundant error handlings.
6988         Don't erase mbcset for non matching list in multibyte envs.
6989         (build_word_op): Add '_' to matching list for \w operator.
6990         * posix/regex_internal.c (re_string_construct): Invoke
6991         build_upper_buffer in case of not RE_ENABLE_I18N.
6992         (re_string_reconstruct): Don't touch cur_state in case of not
6993         RE_ENABLE_I18N.
6994         * posix/regex_internal.h (attribute_hidden): New macro in case of
6995         not _LIBC.
6996         (re_charset_t): Define range_starts/ends in case of not _LIBC.
6997         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6998         RE_ENABLE_I18N.
6999         (transit_state_mb): Likewise.
7000         (check_node_accept_bytes): Implement the code evaluating range
7001         expression in case of not _LIBC.
7002         (find_collation_sequence_value): Hide in case of not _LIBC.
7004 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
7006         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
7007         i386/semctl.c.
7008         (__old_semctl, __new_semctl): Only use va_arg if the argument will
7009         be used.
7011 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
7013         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
7015         * sysdeps/ia64/strncpy.S: Fix recovery code.
7016         Patch by David Mosberger <davidm@hpl.hp.com>.
7018 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
7020         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
7021         GLIBC_2.2.6.
7023 2002-04-14  Bruno Haible  <bruno@clisp.org>
7025         * posix/regex.c (re_max_failures): Add back symbol for binary
7026         compatibility.
7028 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
7030         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
7031         of buffer building functions.
7032         * posix/regex_internal.c (re_string_allocate): New function.
7033         (re_string_realloc_buffers): New function.
7034         (re_string_skip_chars): New function.
7035         (re_string_reconstruct): New function.
7036         (re_string_construct): Adapt it to new interface of buffer building
7037         functions.
7038         (re_string_construct_common): Likewise.
7039         (build_wcs_buffer): Likewise.
7040         (build_wcs_upper_buffer): Likewise.
7041         (build_upper_buffer): Likewise.
7042         (re_string_translate_buffer): Likewise.
7043         (re_string_context_at): Adapt it to variable length buffers.
7044         * posix/regex_internal.h (re_string_t): Add new fields to handle
7045         variable length buffers.
7046         (re_match_context_t): Likewise.
7047         * posix/regexec.c (re_search_internal): Adapt it to new interface
7048         of re_string_t and re_match_context_t.
7049         (acquire_init_state_context): Likewise.
7050         (check_matching): Likewise.
7051         (check_halt_state_context): Likewise.
7052         (proceed_next_node): Likewise.
7053         (set_regs): Likewise.
7054         (sift_states_backward): Likewise.
7055         (clean_state_log_if_need): Likewise.
7056         (sift_states_iter_mb): Likewise.
7057         (sift_states_iter_bkref): Likewise.
7058         (add_epsilon_backreference): Likewise.
7059         (transit_state): Likewise.
7060         (transit_state_sb): Likewise.
7061         (transit_state_mb): Likewise.
7062         (transit_state_bkref): Likewise.
7063         (transit_state_bkref_loop): Likewise.
7064         (check_node_accept): Likewise.
7065         (match_ctx_init): Likewise.
7066         (extend_buffers): New function.
7068 2002-04-21  Bruno Haible  <bruno@clisp.org>
7070         * iconvdata/tst-table.sh: For the second check, use the truncated
7071         GB18030 charmap table, like for the first check.
7073 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
7075         * elf/dl-load.c (open_verify): Correct __lseek parameters.
7076         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
7078 2002-04-23  H.J. Lu  <hjl@gnu.org>
7080         * include/math.h (isfinite): Fix a typo.
7082 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
7084         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
7085         which is created by the test suite.
7087 2002-04-20  Bruno Haible  <bruno@clisp.org>
7089         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
7090         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
7092 2002-04-20  Bruno Haible  <bruno@clisp.org>
7094         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
7095         to avoid gcc warning.
7097 2002-04-20  Bruno Haible  <bruno@clisp.org>
7099         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
7100         of data->__statep->__count.
7102 2002-04-20  Bruno Haible  <bruno@clisp.org>
7104         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
7105         tag characters.
7106         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
7108 2002-04-24  Roland McGrath  <roland@frob.com>
7110         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
7111         use END macro instead of our own .end directive.
7112         Use `callsys' insn mnemonic instead of `call_pal'.
7114         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
7116         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
7117         macro; we need this for Hurd.
7119         Log entry was missing for 2002/03/24 commit of rev 1.8,
7120         goes with 2002-03-17 changes.
7121         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
7122         (sysdep_routines): Append ioperm here.
7123         (sysdep_headers): Append sys/io.h here.
7125 2002-04-23  Roland McGrath  <roland@frob.com>
7127         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
7128         * sysdeps/mach/hurd/sendto.c: Likewise.
7129         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
7130         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
7131         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
7133 2002-04-22  Roland McGrath  <roland@frob.com>
7135         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
7136         failure from i386_io_perm_* RPCs to ENOSYS.
7138 2002-04-22  Andreas Jaeger  <aj@suse.de>
7140         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
7142         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
7144         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
7145         register instead of destroying %rbx.
7147 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
7149         * string/string.h: Declare strerror_r also for XPG6.
7151 2002-04-19  Roland McGrath  <roland@frob.com>
7153         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
7155 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
7157         * Makefile: Add handling of xtests and xcheck targets.
7158         * MakeTAGS: Likewise.
7159         * Makeconfig: Likewise.
7160         * Makerules: Likewise.
7161         * Rules: Likewise.
7162         * manual/Makefile: Likewise.
7163         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
7164         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
7166 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
7168         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
7169         authnone_private_s.
7170         * sunrpc/auth_none.c: Include bits/libc-lock.h.
7171         Delete #ifdef _RPC_THREAD_SAFE_ block.
7172         (authnone_private): Make a struct, not a pointer to struct.
7173         (authnone_private_guard): New once-control variable.
7174         (authnone_create_once): New function, split out of
7175         authnone_create.  No need to allocate memory.
7176         (authnone_create): Just call authnone_create_once via
7177         __libc_once, then return &authnone_private->no_client.
7178         (authnone_marshal): Access private data via CLIENT argument,
7179         not authnone_private pointer.
7180         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
7181         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
7182         authnone_private_s.
7184 2002-04-12  H.J. Lu  <hjl@gnu.org>
7186         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
7188 2002-04-18  Bruno Haible  <bruno@clisp.org>
7190         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
7191         FROM_DIRECTION): Make the FROM direction stateless.
7192         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
7193         FROM_DIRECTION): Likewise.
7195 2002-04-15  Bruno Haible  <bruno@clisp.org>
7197         * iconvdata/JISX0213.TXT: New file.
7198         * iconvdata/jisx0213.h: New file.
7199         * iconvdata/jisx0213.c: New file.
7200         * iconvdata/euc-jisx0213.c: New file.
7201         * iconvdata/shift_jisx0213.c: New file.
7202         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
7203         * iconvdata/EUC-JISX0213.precomposed: New file.
7204         * iconvdata/SHIFT_JISX0213.precomposed: New file.
7205         * iconvdata/SHIFT_JISX0213.irreversible: New file.
7206         * iconvdata/tst-table-to.c (main): Make it work for encodings for
7207         which the "to" direction is stateful.
7208         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
7209         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
7210         SHIFT_JISX0213.
7211         (libJISX0213-routines): New variable.
7212         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
7213         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
7214         (LDFLAGS-libJISX0213.so): New variable.
7215         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
7216         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
7217         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
7219 2002-04-15  Bruno Haible  <bruno@clisp.org>
7221         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
7222         uint32_t.  Update to Unicode 3.2.
7223         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
7224         (BODY for TO_LOOP): Handle the ASCII range specially.
7225         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
7226         * iconvdata/testdata/BIG5HKSCS: Remove a character.
7227         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
7229 2002-04-15  Bruno Haible  <bruno@clisp.org>
7231         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
7232         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
7234 2002-04-15  Bruno Haible  <bruno@clisp.org>
7236         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
7237         (ucs4_to_cns11643): Update.
7238         * iconvdata/cns11643.c: Update to Unicode 3.2.
7239         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
7240         __cns11643_from_ucs4p2_tab): Regenerated.
7241         (__cns11643_from_ucs4p2c_tab): New array.
7242         * iconvdata/cvs11643l1.c: Update comments.
7243         * iconvdata/EUC-TW.irreversible: Remove two entries.
7245 2002-04-15  Bruno Haible  <bruno@clisp.org>
7247         * locale/C-translit.h.in: Update to Unicode 3.2.
7248         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
7249         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
7251 2002-04-15  Bruno Haible  <bruno@clisp.org>
7253         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
7254         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
7256 2002-04-15  Bruno Haible  <bruno@clisp.org>
7258         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
7259         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
7260         always one byte, not 0 bytes in some cases and 2 bytes in others.
7262         * iconvdata/tst-table-from.c (main): Correct the usage message.
7264 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
7266         * posix/regcomp.c (parse_expression): Fix incorrect error code.
7267         (parse_dup_op): Fix error handling like "a{}".
7268         (parse_bracket_exp): Add error handling.
7269         (fetch_number): Add error handling for "a{<very_large_number>}".
7271 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
7273         * posix/regcomp.c (parse_bracket_symbol): Add error handling
7274         in case that the symbol name is too long.
7275         (build_charclass): Handle [:lower:]/[:uppper:] correctly
7276         in case of REG_ICASE.
7278 2002-04-19  Andreas Jaeger  <aj@suse.de>
7280         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
7281         <hartvige@mips.com>.
7283 2002-04-15  H.J. Lu  <hjl@gnu.org>
7285         * include/math.h (__finitel_internal): Declare only if
7286         __NO_LONG_DOUBLE_MATH is not defined.
7287         (__isinfl_internal): Likewise.
7288         (__isnanl_internal): Likewise.
7290         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
7291         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
7292         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
7293         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
7294         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7295         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
7296         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7298         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
7299         __fcntl_internal.
7301         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
7302         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
7304 2002-04-15  Bruno Haible  <bruno@clisp.org>
7306         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
7307         (BODY for TO_LOOP): Likewise.
7308         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
7309         * iconvdata/tst-table.sh: Add support for encodings which contain
7310         precomposed Unicode characters, known to the iconv converter in both
7311         directions but not listed in the charmap.
7312         * iconvdata/IBM856.irreversible: New file.
7313         * iconvdata/IBM922.irreversible: New file.
7314         * iconvdata/IBM1132.irreversible: New file.
7315         * iconvdata/IBM1133.irreversible: New file.
7316         * iconvdata/IBM1160.irreversible: New file.
7317         * iconvdata/IBM1161.irreversible: New file.
7318         * iconvdata/IBM1163.irreversible: New file.
7319         * iconvdata/IBM1164.irreversible: New file.
7320         * iconvdata/ARMSCII-8.irreversible: New file.
7321         * iconvdata/TCVN5712-1.precomposed: New file.
7322         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
7323         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
7324         ARMSCII-8, TCVN5712-1.
7325         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
7326         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
7327         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
7328         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
7330 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
7332         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
7333         for EVENING69.  Include offsets in TZ environment variable.
7335 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
7337         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
7338         avoid compiler warnings.
7340         * locale/programs/localedef.c (main): Always call
7341         construct_output_path.
7343         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
7345         * locale/programs/locfile.c (to_archive): New variable.  To collect
7346         data which has to be added to the locale archive.
7347         (write_all_categories): Take new third parameter with locale name.
7348         Unless no_archive flag set add new locale data to the archive
7349         (write_locale_data): Unless no-archive flag set store generated data
7350         in to_archive data structure instead of generation output file.
7351         Add new parameter with locale category index.
7352         * locale/programs/locfile.h: Add new parameters in declaractions of
7353         write_all_categories and write_locale_data.
7354         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
7355         --add-to-archive, and --delete-from-archive options.  Pass extra
7356         parameter to write_all_categories.
7357         * locale/programs/localedef.h: Add prototypes for functions in
7358         locarchive.c.
7359         * locale/locarchive.h: New file.
7360         * locale/programs/locarchive.c: New file.
7361         * locale/Makefile (distribute): Add programs/locarchive.c and
7362         locarchive.h.
7363         (localedef-modules): Add md5 and locarchive.
7364         Add vpath to crypt subdir for md5.c.
7366         * locale/programs/ld-address.c: Pass locale category ID as new second
7367         parameter to write_locale_data.
7368         * locale/programs/ld-collate.c: Likewise.
7369         * locale/programs/ld-ctype.c: Likewise.
7370         * locale/programs/ld-identification.c: Likewise.
7371         * locale/programs/ld-measurement.c: Likewise.
7372         * locale/programs/ld-messages.c: Likewise.
7373         * locale/programs/ld-monetary.c: Likewise.
7374         * locale/programs/ld-name.c: Likewise.
7375         * locale/programs/ld-numeric.c: Likewise.
7376         * locale/programs/ld-paper.c: Likewise.
7377         * locale/programs/ld-telephone.c: Likewise.
7378         * locale/programs/ld-time.c: Likewise.
7380         * locale/simple-hash.c: Move compute_hashval function from here...
7381         * locale/hashval.h: ...to here.  New file.
7382         * locale/simple-hash.h: Add prototype for compute_hashval.
7384         * include/libintl.h: Minor cleanups.
7386 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
7388         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
7390 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
7392         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
7394 2002-04-14  Bruno Haible  <bruno@clisp.org>
7396         * locale/programs/charmap.c (charmap_read): Don't access result if
7397         result == NULL.
7399 2002-02-17  Andreas Schwab  <schwab@suse.de>
7401         * elf/reldep7.c: New file.
7402         * elf/reldep7mod1.c: New file.
7403         * elf/reldep7mod2.c: New file.
7404         * elf/Makefile: Add rules to build and run reldep7.
7406 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
7408         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
7409         the end of the function.  Pass original flags to recursive call if
7410         add_dependency failed.
7411         (_dl_lookup_versioned_symbol): Likewise.
7413 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
7415         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
7416         early, but check whether it overflowed afterwards.
7417         * time/tst-mktime.c (main): Add new tests.
7419 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
7421         * debug/xtrace.sh: Fix program name in help message.
7422         Patch by Roger Luethi <rl@hellgate.ch>.
7424         * include/sys/stat.h: Add prototypes for __lxstat_internal and
7425         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
7426         NOT_IN_libc.
7427         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
7428         * sysdeps/mach/hurd/lxstat.c: Likewise.
7429         * sysdeps/unix/common/lxstat.c: Likewise.
7430         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
7431         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
7432         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
7433         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
7434         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
7435         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
7436         * sysdeps/mach/hurd/lxstat64.c: Likewise.
7437         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
7438         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
7440         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
7441         prototypes.  Add __mbrlen and __mbrtowc macros.
7442         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
7443         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
7445         * include/unistd.h: Add prototype for __write_internal and add
7446         __libc_write macro is SHARED.
7447         * sysdeps/generic/write.c: Use INTDEF for __write.
7448         * sysdeps/mach/hurd/write.c: Likewise.
7449         * sysdeps/unix/sysv/aix/write.c: Likewise.
7450         * sysdeps/unix/syscalls.list: Add __libc_write alias.
7452         * assert/assert.c: Replace STR_N_SIZE with something usable in
7453         macro arguments.
7454         * assert/assert-perr.c: Likewise.
7456         * include/sys/socket.h: Declare __libc_sa_len_internal and define
7457         SA_LEN macro to use it if not NOT_IN_libc.
7458         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
7460         * include/fcntl.h: Declare __open_internal and define __open and
7461         __libc_open macros if not NOT_IN_libc.
7462         * sysdeps/generic/open.c: Use INTDEF for __open.
7463         * sysdeps/mach/hurd/open.c: Likewise.
7464         * sysdeps/unix/sysv/aix/open.c: Likewise.
7465         * sysdeps/unix/syscalls.list: Add __open_internal alias.
7467         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
7468         has correct number.
7470         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
7471         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
7472         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7473         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7475         * include/wctype.h: Declare __iswalpha_l_internal,
7476         __iswdigit_l_internal, __iswspace_l_internal,
7477         __iswxdigit_l_internal, and __iswctype_internal.  Define
7478         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
7479         __iswxdigit_l macros if not NOT_IN_libc.
7480         * wctype/iswctype.c: Use INTDEF for __iswctype.
7481         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
7483         * include/math.h: Declare __isinf_internal, __isinfl_internal,
7484         __isnan_internal, and __isnanl_internal.
7485         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
7486         __isnan, and __isnanl.
7487         * stdio-common/printf_size.c: Likewise.
7488         * sysdeps/generic/printf_fphex.c: Likewise.
7489         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
7490         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7491         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
7492         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
7493         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
7494         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7495         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
7496         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7497         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
7498         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7499         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
7500         * sysdeps/m68k/s_isinfl.c: Likewise.
7501         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
7502         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
7504         * include/sys/time.h: Declare __gettimeofday_internal and define
7505         __gettimeofday macro if not NOT_IN_libc.
7506         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
7507         * sysdeps/mach/gettimeofday.c: Likewise.
7508         * sysdeps/posix/gettimeofday.c: Likewise.
7509         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
7510         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
7511         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
7512         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
7514         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
7515         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
7516         Remove __lstat and __fstat inline functions.
7517         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
7518         * sysdeps/mach/hurd/fxstat.c: Likewise.
7519         * sysdeps/unix/fxstat.c: Likewise.
7520         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
7521         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
7522         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
7523         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
7524         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
7525         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
7526         * sysdeps/mach/hurd/fxstat64.c: Likewise.
7527         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
7528         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
7530         * include/unistd.h: Declare __getpid_internal and define
7531         __getpid macro if not NOT_IN_libc.
7532         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
7533         * sysdeps/generic/getpid.c: Likewise.
7534         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
7535         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
7537         * include/unistd.h: Declare __getpgid_internal and define
7538         __getpgid macro if not NOT_IN_libc.
7539         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
7540         * sysdeps/mach/hurd/getpgid.c: Likewise.
7541         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
7542         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
7543         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
7544         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
7546         * include/unistd.h: Declare __getpagesize_internal and define
7547         __getpagesize macro if not NOT_IN_libc.
7548         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
7549         __getpagesize.
7550         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
7551         * sysdeps/mach/getpagesize.c: Likewise.
7552         * sysdeps/posix/getpagesize.c: Likewise.
7553         * sysdeps/unix/getpagesize.c: Likewise.
7554         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
7555         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7556         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
7557         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
7559 2002-04-13  Andreas Jaeger  <aj@suse.de>
7561         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
7562         as clobber to reduce register pressure.
7563         (__strpbrk_cg): Likewise.
7564         (__mempcpy_by4): Likewise.
7565         (__strstr_cg): Likewise.
7566         Add prototype for __memrchr.
7568 2002-04-13  Andreas Schwab  <schwab@suse.de>
7570         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
7571         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
7572         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
7574 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
7576         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
7577         check whether the caller prefers getting the most recent version of
7578         a symbol of the earliest version.
7579         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
7580         _dl_do_lookup to also take the new parameter and pass it on.
7581         Change 'explicit' parameter of _dl_lookup_symbol and
7582         _dl_lookup_versioned_symbol to flags.  Adjust tests.
7583         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7584         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
7585         _dl_lookup_versioned_symbol.
7586         * elf/dl-reloc.c: Likewise.
7587         * elf/dl-runtime.c: Likewise.
7588         * elf/dl-sym.c: Likewise.
7589         * sysdeps/mips/dl-machine.h: Likewise.
7591 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7593         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
7594         in a token.
7595         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
7597 2002-04-10  Andreas Jaeger  <aj@suse.de>
7599         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
7601         * include/argz.h: Remove extra char from last patch.
7603 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
7605         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
7606         * sysdeps/unix/sysv/aix/chown.c: Likewise.
7607         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
7608         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
7609         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7610         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
7611         __chown_internal.
7612         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
7614         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
7615         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
7616         * intl/ngettext.c: Likewise.
7618         * include/sys/socket.h: Declare __connect_internal and define
7619         __connect macro if not NOT_IN_libc.
7620         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
7621         * sysdeps/unix/sysv/aix/connect.c: Likewise.
7622         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
7624         * include/unistd.h: Declare __close_internal and define __close macro
7625         if not NOT_IN_libc.
7626         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
7627         WJUMP3): Add extra parenthesis to avoid expanding element names with
7628         macors like __close.
7629         * sysdeps/unix/syscalls.list: Add __close_internal alias.
7631         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
7632         if not NOT_IN_libc.
7633         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
7634         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
7635         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
7637         * include/unistd.h: Declare __fork_internal and define __fork macro
7638         if not NOT_IN_libc.
7639         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
7640         * sysdeps/unix/sysv/aix/fork.c: Likewise.
7641         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7643         * include/stdio_ext.h: Declare __fsetlocking_internal and define
7644         __fsetlocking macro to use it if not NOT_IN_libc.
7645         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7647         * libio/__fbufsize.c: Correct copyright.
7648         * libio/__flbf.c: Likewise.
7649         * libio/__fpending.c: Likewise.
7650         * libio/__fpurge.c: Likewise.
7651         * libio/__freadable.c: Likewise.
7652         * libio/__freading.c: Likewise.
7653         * libio/__fsetlocking.c: Likewise.
7654         * libio/__fwritable.c: Likewise.
7655         * libio/__fwriting.c: Likewise.
7657         * include/stdio.h: Declare __asprintf_internal and define __asprintf
7658         macro to use it if not NOT_IN_libc.
7659         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7661         * include/mntent.h: Declare __setmntent_internal,
7662         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
7663         __getmntent_r, and __endmntent macros to use these functions if not
7664         NOT_IN_libc.
7665         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7666         __endmntent.
7668         * include/math.h: Declare __finite_internal, __finitef_internal, and
7669         __finitel_internal.  Redefine isfinite macro if in libc or libm using
7670         these functions.
7671         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7672         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7673         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7674         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7675         * sysdeps/i386/fpu/s_finitef.S: Likewise.
7676         * sysdeps/i386/fpu/s_finitel.S: Likewise.
7677         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7678         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7679         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7680         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7682         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
7683         to use this function if not NOT_IN_libc.
7684         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7685         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7686         * sysdeps/mach/hurd/fcntl.c: Likewise.
7687         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7688         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7690         * include/argz.h: Declare __argz_count_internal and
7691         __argz_stringify_internal.
7692         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7693         __argz_stringify.
7694         * string/argz-count.c: Use INTDEF for __argz_count.
7695         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7697         * include/stdlib.h: Declare __cxa_atexit_internal and define
7698         __cxa_atexit macro if not NOT_IN_libc.
7699         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7700         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7702         * assert/assert.c: Use INTDEF for __assert_fail.
7703         * assert/__assert.c: Use INTUSE for call to __assert_fail.
7704         * include/assert.h: Declare __assert_fail_internal.
7706         * extra-lib.mk: Mark assignment to lib with override.
7708 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7710         * Makerules: Use cppflags-iterator.mk to add defines for all test
7711         source files.
7713 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
7715         * elf/elf.h: Define R_SH_TLS_xxx macros.
7716         * elf/rtld.c: Remove an extra parenthesis.
7717         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7718         TLS_GD macros.
7719         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7720         * sysdeps/sh/dl-lookupcfg.h: New file.
7721         * sysdeps/sh/dl-tls.h: New file.
7722         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7723         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7724         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7725         R_SH_TLS_TPOFF32 relocations.
7727 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7729         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7730         of NOT_IN_LIBC.
7731         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7732         * include/stdlib.h: Likewise.
7734 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
7736         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7737         instead of _RTLD_LOCAL.
7738         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7739         * include/unistd.h: Likewise.
7740         * sysdeps/generic/ldsodefs.h: Likewise.
7742         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7743         if in libc or ld.so.
7745 2002-04-08  Andreas Jaeger  <aj@suse.de>
7747         * elf/cache.c (print_entry): Support x86-64.
7749 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7751         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7752         with one accessing the locale data structures directly.
7753         * stdio-common/printf-prs.c: Include localeinfo.h for new
7754         MB_CUR_MAX definition.
7756         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7757         is the name of the source file without extension.
7758         * Makefile (distribute): Add cppflags-iterator.mk.
7759         * cppflags-iterator.mk: New file.
7760         * extra-lib.mk: For the sources of the library run
7761         cppflags-iterator.mk.
7763         * include/libintl.h: Declare __dcgettext_internal and
7764         _libc_intl_domainname_internal.  Define __dcgettext using these
7765         two symbols if used in libc itself.
7766         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7767         _libc_intl_domainname_internal.
7768         * argp/argp-parse.c: Likewise.
7769         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7770         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7771         * intl/gettext.c: Likewise.
7772         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7773         alias.
7774         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7775         __dcgettext.
7776         * posix/regex_internal.c (gettext): Likewise.
7778 2002-04-08  Andreas Jaeger  <aj@suse.de>
7780         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7782         * sysdeps/x86_64/fpu/s_llrint.S: New file.
7783         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7784         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7785         * sysdeps/x86_64/fpu/s_lrint.S: New file.
7786         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7787         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7789 2002-04-08  Roland McGrath  <roland@frob.com>
7791         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7792         widening __hurd_fail value.
7794 2002-04-07  Roland McGrath  <roland@frob.com>
7796         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7797         <mach/machine/alpha_instruction.h>.
7798         (_hurd_setup_sighandler): Take proper arguments for current decls.
7799         Update code to use _hurdsig_catch_fault.
7800         Use `callsys' instruction instead of `call_pal'.
7801         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7803         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7804         (ALIGN, at, AT, fp): New macros.
7806 2002-04-06  Roland McGrath  <roland@frob.com>
7808         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7810         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7811         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7813         * sysdeps/mach/hurd/bind.c: Use prototype definition.
7814         * sysdeps/mach/hurd/connect.c: Likewise.
7815         * sysdeps/mach/hurd/getsockopt.c: Likewise.
7816         * sysdeps/mach/hurd/setsockopt.c: Likewise.
7818         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7819         __msg_sig_post RPC.
7821         * hurd/catch-exc.c: Use integer_t instead of int.
7822         * hurd/hurdfault.c: Likewise.
7824         * sysdeps/mach/hurd/alpha/exc2signal.c
7825         (_hurd_exception2signal): Rewritten.
7826         * sysdeps/mach/hurd/alpha/longjmp-ts.c
7827         (_hurd_longjmp_thread_state): Rewritten.
7829 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
7831         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7832         DB_LOOKUP_FCT prototype.
7833         * nss/getXXent_r.c: Likewise.
7834         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7835         * inet/getaliasname_r.c: Likewise.
7836         * inet/getnetbyad_r.c: Likewise.
7837         * inet/getnetbynm_r.c: Likewise.
7838         * inet/getnetent_r.c: Likewise.
7839         * inet/getproto_r.c: Likewise.
7840         * inet/getprtent_r.c: Likewise.
7841         * inet/getprtname_r.c: Likewise.
7842         * inet/getrpcbyname_r.c: Likewise.
7843         * inet/getrpcbynumber_r.c: Likewise.
7844         * inet/getrpcent_r.c: Likewise.
7845         * inet/getservent_r.c: Likewise.
7846         * inet/getsrvbynm_r.c: Likewise.
7847         * inet/getsrvbypt_r.c: Likewise.
7848         * shadow/getspent_r.c: Likewise.
7849         * shadow/getspnam_r.c: Likewise.
7851         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7853         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7854         Use i686-friendly PIC code.
7855         * sysdeps/i386/elf/setjmp.S: Likewise.
7857         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7859         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7860         list.
7861         * elf/Versions: Remove it here.
7863 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
7865         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7866         direction.  Reported by H . J . Lu <hjl@lucon.org>.
7868 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7870         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7871         test just before the test runs.
7872         * intl/tst-translit.sh: Likewise.
7873         * intl/tst-codeset.sh: Likewise.
7875         * timezone/zic.c: Update from tzcode2002c.
7876         * timezone/asia: Update from tzdata2002c.
7877         * timezone/backward: Likewise.
7878         * timezone/europe: Likewise.
7879         * timezone/northamerica: Likewise.
7880         * timezone/northamerica: Likewise.
7881         * timezone/northamerica: Likewise.
7882         * timezone/southamerica: Likewise.
7883         * timezone/zone.tab: Likewise.
7885 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
7887         * sysdeps/generic/brk.c (__curbrk): Declare.
7888         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7889         * sysdeps/generic/dl-sbrk.c: Likewise.
7890         * sysdeps/unix/arm/dl-brk.S: New file.
7891         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7892         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7893         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7894         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7895         * sysdeps/unix/i386/dl-brk.S: New file.
7896         * sysdeps/unix/mips/dl-brk.S: New file.
7897         * sysdeps/unix/sparc/dl-brk.S: New file.
7898         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7899         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7900         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7901         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7903 2002-04-03  Andreas Schwab  <schwab@suse.de>
7905         * Makefile (headers): Add gnu/lib-names.h here instead of
7906         install-others.
7907         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7908         installation rule.
7909         (install-headers): Add dependency on install-headers-nosubdir.
7910         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7911         instead of install-others.
7912         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7913         installation rule.
7915 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7917         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7918         Reported by Sam Roberts <sroberts@uniserve.com>.
7920 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7922         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7923         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7924         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7925         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7927 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
7929         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7930         (RTLD_START): Ditto.
7931         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7932         dependency violation.
7934 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7936         * time/mktime.c (__mktime_internal): Move check for year < 70 below
7937         all variable declarations.
7939 2002-04-04  Andreas Schwab  <schwab@suse.de>
7941         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7943 2002-04-04  Andreas Jaeger  <aj@suse.de>
7945         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7946         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7948         * sysdeps/x86_64/fpu/s_fabs.c: New file.
7949         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7950         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7952         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7954         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7956         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7957         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7959         * configure.in: Handle all mips entries the same.
7961         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7962         * sysdeps/mips/mips3/*: Likewise.
7963         * sysdeps/mips/p40/bits/endian.h: Likewise.
7965 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
7967         * misc/dirname.c (dirname): Ignore trailing slashes at end of
7968         non-null result [PR libc/2600].
7970         * misc/tst-dirname.c: Add more tests.
7972 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7974         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7975         define a code_set_name provide one based on the filename.
7977         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7979 2001-12-28  Andreas Jaeger  <aj@suse.de>
7981         * time/mktime.c (__mktime_internal): Check for year < 70
7982         [PR libc/2738].
7984 2002-04-03  Andreas Jaeger  <aj@suse.de>
7986         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7987         shmat.
7988         Reported by Andi Kleen <ak@suse.de>.
7990 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7992         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7993         * sysdeps/generic/w_lgammaf.c: Likewise.
7994         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7996         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7997         Adjust for new output format of the backtrace functions.
7999         * misc/syslog.c (vsyslog): Only use cleanup handler if
8000         _LIBC_REENTRANT is defined [PR libc/2924].
8002         * libio/Makefile (tests): Add bug-ungetwc2.
8003         * libio/bug-ungetwc2.c: New file.
8005         * manual/install.texi: Typographical and grammatical cleanup.
8006         Patch by Dennis Grace <dgrace@us.ibm.com>.
8008         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
8009         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
8011         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
8012         always "&".  Adjust callers.
8013         Add "_" prefix to several generated definitions.
8014         Patch by paul@serice.net [PR libc/3158].
8016 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8018         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
8019         size of _dl_arm_cap_flags.
8020         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
8022         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
8023         Define as 8.
8025 2002-03-22  H.J. Lu  <hjl@gnu.org>
8027         * scripts/firstversions.awk: Check the first version.
8029 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8031         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
8032         dependencies must be stable to work correctly.
8033         Reported by martin.lubich@datacon.at.
8035         * libio/bug-ungetwc1.c: New file.
8036         * libio/Makefile (tests): Add bug-ungetwc1.
8038         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
8039         if stream was last used for writing.
8041         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
8042         number [PR libc/3111].
8044         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
8045         to ...
8046         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
8048 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
8050         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
8051         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
8052         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
8053         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
8054         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
8056 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
8058         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
8059         dynamic tags.
8061 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8063         * sysdeps/i386/fpu/s_fabs.S: New file.
8064         * sysdeps/i386/fpu/s_fabsf.S: New file.
8065         * sysdeps/i386/fpu/s_fabsl.S: New file.
8066         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
8067         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
8068         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
8070 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8072         * rt/tst-shm.c (do_test): Add one more test for size of shared
8073         memory object.
8075 2002-03-29  Wolfram Gloger  <wg@malloc.de>
8077         * malloc/malloc.c: Add short description and prototypes for
8078         malloc_get_state, malloc_set_state and posix_memalign, for
8079         consistency and to avoid warnings with -Wstrict-prototypes.
8080         Reported by Andreas Jaeger <aj@suse.de>.
8082 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8084         * po/gl.po: Update from translation team.
8086 2002-03-31  Roland McGrath  <roland@frob.com>
8088         * hurd/hurdselect.c (_hurd_select): Fix
8089         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
8090         Use a union rather than casts to compare mach_msg_type_t as int.
8092 2002-03-25  Roland McGrath  <roland@frob.com>
8094         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
8095         check off the end of NAME when it's shorter than 2 chars.
8096         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
8098 2002-03-17  Roland McGrath  <roland@frob.com>
8100         * sysdeps/mach/hurd/i386/sys/io.h: New file.
8101         * sysdeps/mach/hurd/i386/ioperm.c: New file.
8102         * sysdeps/mach/hurd/i386/Dist: Add them.
8103         * sysdeps/mach/hurd/i386/Versions
8104         (libc: GLIBC_2.2.6): New set, add ioperm.
8105         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
8106         (mach_interface_list): Check for mach_i386.defs.
8107         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
8108         * sysdeps/mach/configure: Regenerated.
8110 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
8112         * po/fr.po: Update from translation team.
8114 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8116         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
8117         getpriority from syscalls list.
8119 2002-03-28  Andreas Jaeger  <aj@suse.de>
8121         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
8122         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
8123         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
8124         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
8126 2002-03-27  Andreas Jaeger  <aj@suse.de>
8128         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8129         sigcontext): Follow further kernel change.
8131         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
8132         kernel change.
8134         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
8135         Change for struct sigcontext change.
8137         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
8138         Follow changes in struct sigcontext.
8140         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
8141         sysycall, use wrapper instead.
8143 2002-03-26  Andreas Jaeger  <aj@suse.de>
8145         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
8146         read and write accesses as detailed as possible.
8147         (__memcpy_by2): Likewise.
8148         (__memcpy_g): Likewise.
8149         (memmove): Likewise.
8150         (memcmp): Likewise.
8151         (__memset_ccn_by4): Likewise.
8152         (__memset_ccn_by2): Likewise.
8153         (__memset_gcn_by4): Likewise.
8154         (__memset_gcn_by2): Likewise.
8155         (memchr): Likewise.
8156         (__memrchr): Likewise.
8157         (rawmemchr): Likewise.
8158         (__strlen_g): Likewise.
8159         (__strcpy_g): Likewise.
8160         (__mempcpy_by4): Likewise.
8161         (__mempcpy_by2): Likewise.
8162         (__mempcpy_byn): Likewise.
8163         (__stpcpy_g): Likewise.
8164         (__strncpy_by4): Likewise.
8165         (__strncpy_by2): Likewise.
8166         (__strncpy_byn): Likewise.
8167         (__strncpy_gg): Likewise.
8168         (__strcat_c): Likewise.
8169         (__strcat_g): Likewise.
8170         (__strncat_g): Likewise.
8171         (__strcmp_gg): Likewise.
8172         (__strncmp_g): Likewise.
8173         (__strchr_c): Likewise.
8174         (__strchr_g): Likewise.
8175         (__strchrnul_c): Likewise.
8176         (__strchrnul_g): Likewise.
8177         (__strrchr_c): Likewise.
8178         (__strrchr_g): Likewise.
8179         (__strrchr_c): Likewise.
8180         (__strrchr_g): Likewise.
8181         (__strcspn_c1): Likewise.
8182         (__strcspn_cg): Likewise.
8183         (__strcspn_g): Likewise.
8184         (__strcspn_g): Likewise.
8185         (__strspn_c1): Likewise.
8186         (__strspn_cg): Likewise.
8187         (__strspn_g): Likewise.
8188         (__strspn_g): Likewise.
8189         (__strpbrk_cg): Likewise.
8190         (__strpbrk_g): Likewise.
8191         (__strstr_cg): Likewise.
8192         (__strstr_g): Likewise.
8194         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
8195         Michal Ludvig <mludvig@suse.cz>.
8197         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
8198         compatibilty, adjust for kernel changes.
8200         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8201         sigcontext): Adjust for kernel changes.
8203 2002-03-25  Andreas Jaeger  <aj@suse.de>
8205         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
8206         little endian.
8207         Reported by Artur Zaprzala <zybi@talex.com.pl>.
8209 2002-03-24  Andreas Jaeger  <aj@suse.de>
8211         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
8213         * stdio-common/tst-fdopen.c (main): Remove unused variable.
8215         * iconv/tst-iconv3.c (main): Use correct printf strings.
8217 2002-03-18  Roland McGrath  <roland@frob.com>
8219         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
8220         (CMGROUP_MAX): New macro.
8222 2002-03-23  Roland McGrath  <roland@frob.com>
8224         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
8225         * sysdeps/posix/shm_unlink.c: Likewise.
8227 2002-03-22  Roland McGrath  <roland@frob.com>
8229         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
8230         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
8231         under --enable-libio.
8232         * sysdeps/mach/hurd/configure: Regenerated.
8234 2002-03-23  Roland McGrath  <roland@frob.com>
8236         * sysdeps/mach/hurd/i386/Makefile
8237         (sysdep_routines, shared-only-routines): Don't add framestate,
8238         reverting 2001-10-02 change.
8239         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
8240         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
8241         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8242         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8243         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
8244         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
8245         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8246         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
8247         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
8248         Do it here instead, only if [$(unwind-find-fde) = yes].
8250 2002-03-23  Andreas Jaeger  <aj@suse.de>
8252         * signal/signal.h: Fix typo. Patch by Steve Kemp
8253         <skx@tardis.ed.ac.uk>.
8255 2002-03-22  Andreas Jaeger  <aj@suse.de>
8257         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
8258         getresuid.
8260         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8261         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
8262         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8263         user_fpregs_struct): Rename fwd.
8265         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
8266         Follow sigcontext changes.
8268 2002-03-22  Andreas Jaeger  <aj@suse.de>
8270         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
8271         changes for NaNs on MIPS.
8272         Patch by Hartvig Ekner <hartvige@mips.com>.
8274 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
8276         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
8277         Use realloc if too large.
8278         (addgrbyid): Likewise.
8279         * nscd/hstcache.c (addhstbyname): Likewise.
8280         (addhstbyaddr): Likewise.
8281         (addhstbynamev6): Likewise.
8282         (addhstbyaddrv6): Likewise.
8283         * nscd/pwdcache.c (addpwbyname): Likewise.
8284         (addpwbyuid): Likewise.
8286 2002-03-21  Andreas Jaeger  <aj@suse.de>
8288         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8289         _fpstate): Add separate struct for x86-64.
8291         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8292         user_fpregs_struct): Change member names to follow kernel.
8294 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
8296         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
8297         Correctly close the UDP connection right away [PR libc/3120].
8299 2002-03-20  Andreas Jaeger  <aj@suse.de>
8301         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8302         user_fpregs_struct): Fix for changed kernel struct.
8303         (struct user_regs_struct): Likewise.
8304         (struct user): Likewise.
8305         Add 32-bit x86 compatibility.
8307         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
8309 2002-03-19  Andreas Jaeger  <aj@suse.de>
8311         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
8313 2002-03-18  Andreas Jaeger  <aj@suse.de>
8315         * iconvdata/Makefile: Only run tests when shared libs are
8316         available.
8318 2002-03-17  Andreas Jaeger  <aj@suse.de>
8320         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
8322         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
8324         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
8325         bits.
8327         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
8328         (CAUSE_SHIFT): New macro.
8329         Patch by Hartvig Ekner <hartvige@mips.com>.
8331         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
8332         * sysdeps/generic/unwind-pe.h: Likewise.
8334         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
8335         type to _IO_setb.
8337         * libio/stdio.c (AL2): Define variant when visibility attribute is
8338         not supported.
8340         * include/libc-symbols.h (_INTVARDEF): Define variant when
8341         visibility attribute is not supported.
8343 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
8345         * po/fr.po: Update from translation team.
8347 2002-02-25  Bruno Haible  <bruno@clisp.org>
8349         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
8351 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
8353         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
8354         buffers if _IO_file_attach failed.
8356         * libio/fileops.c (_IO_file_open): Close file descriptor if
8357         _IO_SEEKOFF call failed.
8359 2002-03-15  H.J. Lu  <hjl@gnu.org>
8360             Ulrich Drepper  <drepper@redhat.com>
8362         * configure.in: Check for availability of
8363         init_array/fini_array/preinit_array handling in binutils.
8364         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
8365         * config.make.in (have-initfini-array): New variable.
8367 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
8369         * stdio-common/tst-printf.c (main): Comment out one test which
8370         checked the compiler's ability to fold floating-point constants
8371         but not really printf.
8372         (rfg3): Make s const.
8373         * stdio-common/tst-printf.sh: Adjust for removed test.
8375         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
8376         internal function.  Adjust for internal_function calling convention.
8377         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
8378         as internal_function.
8380         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
8381         hidden.
8383         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
8384         declaration and definition.
8385         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
8386         declaration.
8387         * nss/getXXent_r.c: Likewise.
8388         * nss/nsswitch.h (db_lookup_function): Add internal_function to
8389         definition.
8391         * include/time.h: Declare __localtime_r as hidden.
8393         * include/aliases.h: Declare __getaliasent_r as hidden.
8394         * include/grp.h: Declare __getgrent_r as hidden.
8395         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
8396         __getservent_r, and __getprotoent_r as hidden.
8397         * include/pwd.h: Declare __getpwent_r as hidden.
8398         * include/shadow.h: Declare __getspent_r as hidden.
8399         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
8401         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
8402         and __gconv_transliterate as hidden.
8403         Add internal_function to __gconv_get_path declaration.
8404         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
8405         definition.  Add attribute_hidden to __gconv_read_conf definition.
8407 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
8409         * elf/rtld.c: Declare _environ as hidden.
8410         * sysdeps/generic/dl-environ.c: Likewise.
8411         * sysdeps/generic/dl-sysdep.c: Likewise.
8413         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
8414         _dl_mcount_internal as hidden.
8416         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
8417         * sysdeps/generic/dl-brk.c: New file.
8418         * sysdeps/generic/dl-sbrk.c: New file.
8419         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
8420         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
8422         * elf/dl-minimal.c (malloc): Declare _end as hidden.
8423         (__errno_location): New function.  Declare errno as hidden.
8424         * elf/rtld.c (_dl_argc): Define as hidden.
8425         (_dl_skip_args): Define as hidden.
8426         (_begin, _end): Declare as hidden.
8427         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
8428         * sysdeps/generic/entry.h (_start): Declare as hidden.
8429         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
8430         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
8431         _dl_runtime_resolve and _dl_runtime_profile as hidden.
8432         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
8434 2002-03-14  Roland McGrath  <roland@frob.com>
8436         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
8438         * Makeconfig (%.v.i, %.v): New implicit rules.
8439         (preprocess-versions): Variable removed.
8440         ($(common-objpfx)shlib-versions.v.i): New target giving just the
8441         shlib-versions input files as dependencies.
8442         ($(common-objpfx)soversions.i): Depend on that instead of the input
8443         files.  Use it as input instead of using a pipeline.
8444         (postclean-generated): Append soversions.i, shlib-versions.v, and
8445         shlib-versions.v.i here.
8446         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
8447         the Versions.def input files as dependencies.
8448         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
8449         ($(common-objpfx)Versions.all): Depend on that instead of the input
8450         files.  Use it as input instead of using a pipeline.
8451         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
8452         (postclean-generated): Append those .v and .v.i files here.
8454 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
8456         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
8457         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
8458         Remove.
8460 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
8462         * sysdeps/generic/mp_clz_tab.c: New file.
8463         * sysdeps/i386/mp_clz_tab.c: New file.
8464         * sysdeps/hppa/mp_clz_tab.c: New file.
8465         * sysdeps/powerpc/mp_clz_tab.c: New file.
8466         * stdlib/Makefile (aux): Revert last patch.
8467         * math/Makefile (gmp-objs): Likewise.
8469 2002-03-13  Paul Eggert  <eggert@twinsun.com>
8471         * time/strftime.c: Comment fixes for references to obsolescent
8472         standards, In most cases the simplest fix is to remove the
8473         confusing comments.  Cross-referencing all the standards properly
8474         is a bit of a pain, and it should be enough to put that info in
8475         the documentation as I did in my recent time.texi patch.
8477 2002-03-13  Paul Eggert  <eggert@twinsun.com>
8479         * manual/time.texi (Formatting Calendar Time):
8480         ISO C99 also specifies the E and O modifiers.
8481         %P is a GNU extension, and is not in ISO C99.
8482         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
8483         %T is also in ISO C99.
8484         The RFC 822 example is not valid in arbitrary locales.
8485         Reword the POSIX.2 wording slightly, to make it a bit clearer
8486         that POSIX.2 formats are also supported by later POSIX versions.
8487         If a format was introduced in ISO C99 it is also required by
8488         POSIX.1-2001.
8490 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
8492         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
8493         _sys_nerr_internal with INTVARDEF2.
8494         * include/libc-symbols.h (INTVARDEF2): New macro.
8495         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
8496         (_sys_nerr_internal): Library.
8498         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
8499         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
8501         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
8503 2002-03-13  Wolfram Gloger  <wg@malloc.de>
8505         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
8507 2002-03-02  Andreas Schwab  <schwab@suse.de>
8509         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
8510         'h' flag and positional arg.
8511         * stdio-common/tst-printf.c (rfg3): New function to test
8512         positional arguments.
8513         (main): Fix some warnings.
8515 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
8517         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
8518         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8520 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
8522         * grp/initgroups.c (__nss_group_data): Declare as hidden.
8524         * include/locale.h (_nl_C_locobj): Declare as hidden.
8526         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
8527         * time/strptime.c (_nl_C_LC_TIME): Likewise.
8529         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
8531         * include/sys/gmon.h: Declare _gmonparam as hidden.
8533         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
8534         (__ctype32_wctrans): Likewise.
8535         (__ctype32_width): Likewise.
8537         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
8538         use of __ttyname.
8540         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
8541         Define as hidden.
8542         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
8543         hidden.  Change all users of these variables.
8545         * posix/regex_internal.h (__re_error_msgid): Renamed from
8546         re_error_msgid.  Declare as hidden.
8547         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
8548         hidden.
8550         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
8551         (__printf_function_table): Likewise.
8552         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
8553         hidden.
8554         (__printf_function_table): Likewise.
8556         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
8557         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
8559         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
8560         * nss/nsswitch.c: Declare _nss_*_database as hidden.
8562         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
8563         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
8565 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
8567         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
8568         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8569         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8570         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8571         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8572         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8573         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8574         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8575         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
8576         _nl_C_LC_CTYPE_width: Declare as hidden.
8577         * include/locale.h: Declare _nl_locale_file_list.
8578         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
8579         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
8580         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
8581         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
8582         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
8583         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
8584         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
8585         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
8586         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
8587         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
8588         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
8589         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
8590         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8591         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8592         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8593         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8594         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8595         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8596         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8597         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
8598         _nl_C_LC_CTYPE_width, and as hidden.
8599         * locale/findlocale.c: Declare _nl_C as hidden.
8600         * locale/newlocale.c: Likewise.
8601         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
8602         _nl_locale_file_list.
8603         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
8604         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
8605         Define _nl_C_locobj as hidden.
8607         * malloc/mtrace.c (_mtrace_file): Define as hidden.
8608         (_mtrace_line): Likewise.
8610         * include/time.h: Declare __mon_yday as hidden.
8611         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
8613         * libio/libioP.h: Declare __libio_codecvt as hidden.
8614         * libio/fileops.c: Declare __libio_translit as hidden.
8615         * libio/iofwide.c: Define __libio_translit as hidden.
8617         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
8618         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
8619         * login/getutline_r.c: Likewise.
8620         * login/utmpname.c: Likewise.
8622         * login/utmp-private.h: Declare __libc_utmp_file_functions,
8623         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
8624         __libc_utmp_file_name as hidden.
8626         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
8627         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
8628         * locale/freelocale.c: Likewise.
8629         * locale/lc-time.c: Likewise.
8631         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
8632         (__libc_ptyname2): Likewise.
8633         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
8634         hidden.
8635         (__libc_ptyname2): Likewise.
8637         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
8638         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
8639         * sysdeps/generic/init-first.c: Likewise.
8640         * sysdeps/i386/init-first.c: Likewise.
8641         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8642         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8643         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8644         * sysdeps/sh/init-first.c: Likewise.
8645         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8646         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8648         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8649         (_itowa_upper_digits): Likewise.
8651         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8652         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8653         as hidden.
8655         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8656         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8657         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8658         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8660         * gmon/gmon.c (__bb_head): Define as hidden.
8661         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8663         * argp/argp-parse.c (_argp_hang): Define as static.
8665         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8666         handling in latest compilers.
8668         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8669         define alias.
8670         * libio/fileops.c (_IO_file_jumps): Likewise.
8671         * libio/stdfiles.c (_IO_list_all): Likewise.
8672         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8674         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8675         include/malloc.h.
8676         * include/malloc.h: Add __libc_malloc_initialized declaration
8677         here.  Mark variable hidden.
8678         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8680         * elf/dl-open.c (__libc_argc): Declare as hidden.
8681         (__libc_argv): Likewise.
8682         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8683         (__libc_argv): Likewise.
8684         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8685         __libc_argv as hidden.
8686         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8687         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8688         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8689         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8691         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8692         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8693         * stdlib/erand48.c: Likewise.
8694         * stdlib/jrand48.c: Likewise.
8695         * stdlib/lcong48.c: Likewise.
8696         * stdlib/lrand48.c: Likewise.
8697         * stdlib/mrand48.c: Likewise.
8698         * stdlib/nrand48.c: Likewise.
8699         * stdlib/seed48.c: Likewise.
8700         * stdlib/srand48.c: Likewise.
8702         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8703         (_itoa_lower_digits_internal): New declaration.
8704         (_itoa_upper_digits_internal): New declaration.
8705         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8706         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8707         (_itoa_upper_digits_internal): New declaration.
8708         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8709         _itoa_lower_digits.
8710         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8711         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8713         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8714         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8716         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8717         (_itowa_lower_digits): Likewise.
8718         (_itowa_upper_digits): Likewise.
8719         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8720         (_itowa_upper_digits): Likewise.
8722         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8723         not already defined.
8724         (GERMANIC_PLURAL): Declare as hidden.
8726         * posix/getopt.c (__getopt_initialized): Declare as hidden.
8727         (attribute_hidden): Define as empty macro if not already defined.
8729         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8730         (__gconv_max_path_elem_len): Likewise.
8731         (__gconv_path_envvar): Likewise.
8733         * math/Makefile (gmp-objs): Remove mp_clz_tab.
8734         * stdlib/Makefile (aux): Remove mp_clz_tab.
8735         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
8737         * stdlib/exit.h (__exit_funcs): Declare as hidden.
8739         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8741         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8742         _nl_category_names, _nl_category_name_sizes, _nl_current,
8743         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8745         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8746         (_nl_current_default_domain): Likewise
8747         (_nl_state_lock): Likewise.
8748         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8749         (_nl_current_default_domain): Likewise
8750         (_nl_state_lock): Likewise.
8751         * intl/bindtextdom.c (_nl_state_lock): Likewise.
8753         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8754         (_fpioconst_pow10): Likewise.
8756         * include/time.h (_tmbuf): Add attribute_hidden.
8758         * time/tzset.c (tzstring_list): Define as static.
8760         * include/time.h: Add attribute_hidden to __tzname_cur_max and
8761         __use_tzfile declaration.
8763         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8764         and __wcsmbs_last_locale declaration.
8766 2002-02-25  Paul Eggert  <eggert@twinsun.com>
8768         * timezone/Makefile (tzbases): Move systemv from here...
8769         (tzlinks): to here, since the entries in systemv were all changed
8770         from Zone to Link lines in tz-2001a.  Bug reported (and patch
8771         tested) by Peter Breitenlohner.
8773 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
8775         * time/tst-posixtz.c (tests): Add new tests.
8776         (main): Test whether tzset() sets daylight properly.
8778 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8780         * time/tzset.c (tz_compute): Move __daylight, __tzname and
8781         __tzname_cur_max setting...
8782         (tzset_internal): ...here.
8784 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8786         * time/tzset.c (compute_change): Don't return any value.
8787         (tz_compute): Likewise.  Don't handle southern hemisphere here.
8788         (__tz_convert): But here.
8790 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8792         * manual/examples/mkfsock.c: Include <string.h> as well.
8793         Patch by Alain De Carolis <alaind@wseurope.com>.
8795 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
8797         * posix/regexec.c (re_match): Fix incorrect register sizes.
8798         (re_search): Likewise.
8800 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8802         * posix/regcomp.c (regfree): Remove a disused condition.
8803         * posix/regex_internal.c (re_acquire_state): Likewise.
8804         (re_acquire_state_context): Likewise.
8805         (register_state): Remove a redundant malloc invocation.
8806         * posix/regex_internal.h: (re_state_table_entry): Simplify
8807         the structure.
8809 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8811         * posix/regcomp.c (regcomp): Add __builtin_expect to error
8812         handling conditions.
8813         (regerror): Likewise.
8814         (regfree): Likewise.
8815         (re_compile_internal): Likewise.
8816         (init_dfa): Likewise.
8817         (init_word_char): Likewise.
8818         (create_initial_state): Likewise.
8819         (analyze): Likewise.
8820         (analyze_tree): Likewise.
8821         (duplicate_node): Likewise.
8822         (calc_eclosure): Likewise.
8823         (calc_eclosure_iter): Likewise.
8824         (parse): Likewise.
8825         (parse_reg_exp): Likewise.
8826         (parse_branch): Likewise.
8827         (parse_expression): Likewise.
8828         (parse_subexp): Likewise.
8829         (parse_dup_op): Likewise.
8830         (parse_bracket_exp): Likewise.
8831         (build_equiv_class): Likewise.
8832         (build_charclass): Likewise.
8833         (build_word_op): Likewise.
8834         (fetch_number): Likewise.
8835         (create_tree): Likewise.
8836         (duplicate_tree): Likewise.
8837         * posix/regex.c (BE): New macro.
8838         * posix/regexec.c (re_match): Add __builtin_expect to error
8839         handling conditions.
8840         (re_match_2): Likewise.
8841         (re_search): Likewise.
8842         (re_search_internal): Likewise.
8843         (check_matching): Likewise.
8844         (proceed_next_node): Likewise.
8845         (set_regs): Likewise.
8846         (sift_states_backward): Likewise.
8847         (add_epsilon_backreference): Likewise.
8848         (transit_state): Likewise.
8849         (transit_state_sb): Likewise.
8850         (transit_state_mb): Likewise.
8851         (transit_state_bkref): Likewise.
8852         (transit_state_bkref_loop): Likewise.
8853         (build_trtable): Likewise.
8854         (group_nodes_into_DFAstates): Likewise.
8855         (match_ctx_init): Likewise.
8856         (match_ctx_add_entry): Likewise.
8857         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8858         to error handling conditions.
8859         (re_string_construct_toupper): Likewise.
8860         (build_wcs_buffer): Likewise.
8861         (build_wcs_upper_buffer): Likewise.
8862         (build_upper_buffer): Likewise.
8863         (re_string_translate_buffer): Likewise.
8864         (re_node_set_alloc): Likewise.
8865         (re_node_set_init_1): Likewise.
8866         (re_node_set_init_2): Likewise.
8867         (re_node_set_init_copy): Likewise.
8868         (re_node_set_intersect): Likewise.
8869         (re_node_set_init_union): Likewise.
8870         (re_node_set_merge): Likewise.
8871         (re_node_set_insert): Likewise.
8872         (re_dfa_add_node): Likewise.
8873         (re_acquire_state): Likewise.
8874         (re_acquire_state_context): Likewise.
8875         (create_new_state_common): Likewise.
8876         (register_state): Likewise.
8877         (create_ci_new_state): Likewise.
8878         (create_cd_new_state): Likewise.
8879         (re_string_context_at): Remove redundant condition.
8881 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8883         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8885         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8887 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
8889         * sysdeps/i386/elf/configure.in: Fix comment.
8891         * sysdeps/sparc/sparc64/configure.in: New file.
8892         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8893         if .dynamic comes before .got.
8894         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8896         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8897         HP_TIMING_ACCUM): Fix typos.
8899 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8901         * string/strfry.c: Add some more randomness to the seed.
8902         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8904         * po/es.po: Update from translation team.
8905         * po/fr.po: Likewise.
8907         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8909         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8910         when determining type of format.
8911         Patch by James Antill <james@anqd.org> [PR libc/2787].
8913 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
8915         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8917 2002-03-11  Roland McGrath  <roland@frob.com>
8919         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8921         * Versions.def (libc): Add GLIBC_2.2.6.
8922         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8923         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8924         __errno_location instead of __hurd_errno_location, and don't inline it.
8925         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8926         * hurd/errno.c: New file.
8927         * hurd/Makefile (routines): Add errno.
8929 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8931         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8932         ridiculously large widths and precisions [PR libc/3026].
8934 2002-03-11  Andreas Jaeger  <aj@suse.de>
8936         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8937         support.
8938         Patch by Susanne Oberhauser <froh@SuSE.de>.
8940 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8942         * inet/rexec.c (ahostbuf): Define as static.
8944         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8945         (__ctype32_wctrans): Likewise.
8946         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8947         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8948         (__ctype32_wctrans): Likewise.
8949         (__ctype32_width): Likewise.
8951         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8952         They were never exported anyway.
8954         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8955         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
8956         exported.
8957         * include/sys/gmon.h: Declare _gmonparam.
8959         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8960         symbols for getdents64.  They were never exported.
8962 2002-03-09  Roland McGrath  <roland@frob.com>
8964         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8965         Reported by Jon Arney <jarney1@cox.net>.
8967 2002-02-23  Roland McGrath  <roland@frob.com>
8969         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8970         declaration.
8971         (__hurd_errno_location): Function removed.
8973 2002-03-06  Andreas Jaeger  <aj@suse.de>
8975         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8976         32-bit.
8978 2002-03-04  Andreas Jaeger  <aj@suse.de>
8980         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8982         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8983         x86-64.
8985         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8987         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8989         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8991         * sysdeps/x86_64/bits/setjmp.h: New file.
8993         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8995         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8997         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8998         for x86.
8999         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
9000         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
9002 2002-02-28  Bo Thorsen  <bo@suse.de>
9004         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
9005         version.
9007 2002-03-03  Andreas Jaeger  <aj@suse.de>
9009         * sysdeps/x86_64/bits/wordsize.h: New file.
9011         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
9012         * elf/tst-tlsmod1.c: Likewise.
9014         * posix/regcomp.c: Get regex.h from include dir for internal
9015         prototypes.
9017         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
9018         to libc-internal.h and include it.
9019         * include/libc-internal.h: Add __init_misc.
9021         * misc/init-misc.c: Include libc-internal.h for prototypes.
9023         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
9025         * misc/error.c [_LIBC]: Include libioP.h for prototype of
9026         _IO_putc_internal.
9028 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
9030         * posix/regcomp.c: Compatibility changes to allow using the code
9031         outside glibc.
9033 2002-02-28  Hartvig Ekner <hartvige@mips.com>
9035         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
9036         compiled non-PIC.
9038 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
9040         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
9041         of .str elements in the returned data structure.
9043         * elf/elf.h: Add Alpha TLS bits.
9045 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
9047         * sysdeps/unix/sysv/linux/nice.c: New file.
9049 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
9051         * elf/Makefile (dl-routines): Add dl-origin.
9052         (elide-routines.os): Add dl-origin.
9053         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
9054         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
9055         _dl_debug_state.
9056         * include/libc-symbols.c: Define attribute_hidden depending on
9057         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
9059         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
9060         * elf/dl-load.c: Likewise.
9061         * elf/rtld.c: Likewise.
9062         * include/unistd.h: Declare __libc_enable_secure_internal.
9063         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
9064         Use INTUSE with __libc_enable_secure.
9065         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
9067         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
9068         * elf/dl-error.c: Likewise,
9069         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
9071         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
9072         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
9073         function definition.  Use INTDEF with _dl_get_origin.
9074         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9076         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
9077         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
9079         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
9080         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
9081         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
9083         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
9084         * elf/dl-deps.c: Likewise.
9085         * elf/dl-error.c: Likewise.
9086         * elf/dl-fini.c: Likewise.
9087         * elf/dl-init.c: Likewise.
9088         * elf/dl-load.c: Likewise.
9089         * elf/dl-lookup.c: Likewise.
9090         * elf/dl-reloc.c: Likewise.
9091         * elf/dl-version.c: Likewise.
9092         * elf/do-lookup.h: Likewise.
9093         * sysdeps/arm/dl-machine.h: Likewise.
9094         * sysdeps/cris/dl-machine.h: Likewise.
9095         * sysdeps/hppa/dl-machine.h: Likewise.
9096         * sysdeps/i386/dl-machine.h: Likewise.
9097         * sysdeps/m68k/dl-machine.h: Likewise.
9098         * sysdeps/powerpc/dl-machine.h: Likewise.
9099         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9100         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9101         * sysdeps/sh/dl-machine.h: Likewise.
9102         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
9103         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
9104         * sysdeps/x86_64/dl-machine.h: Likewise.
9105         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
9106         _dl_argv[0].  Use INTUSE with _dl_argv.
9107         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
9108         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
9110 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
9112         * elf/rtld.c (_rtld_global): Remove .protected.
9113         (_rtld_local): Strong alias to _rtld_global.
9114         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
9115         only .os object.
9116         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
9117         _rtld_local instead of _rtld_global.
9118         (_rtld_local): Add hidden extern, possibly in .sdata section.
9119         * configure.in: Add tests for visibility attribute and .sdata.
9120         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
9121         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
9122         * sysdeps/arm/dl-machine.h: Likewise.
9123         * sysdeps/generic/ldsodefs.h: Likewise.
9124         * sysdeps/hppa/dl-machine.h: Likewise.
9125         * sysdeps/cris/dl-machine.h: Likewise.
9126         * sysdeps/i386/dl-machine.h: Likewise.
9127         * sysdeps/ia64/dl-machine.h: Likewise.
9128         * sysdeps/m68k/dl-machine.h: Likewise.
9129         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9130         * sysdeps/mips/dl-machine.h: Likewise.
9131         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9132         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9133         * sysdeps/sh/dl-machine.h: Likewise.
9134         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9135         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9136         * sysdeps/x86_64/dl-machine.h: Likewise.
9138 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
9140         * login/login.c (login): Always initialize ut_line field
9141         [PR libc/2991].
9143 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
9145         * sysdeps/i386/Makefile (sysdep_routines): Add
9146         divdi3 in csu dir.
9147         (shared-only-routines): Likewise.
9148         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
9149         (shared-only-routines): Likewise.
9150         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
9151         (shared-only-routines): Likewise.
9152         * sysdeps/wordsize-32/divdi3.c: New file.
9154 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
9156         * locale/iso-4217.def: Remove obsolete currencies for countries
9157         with Euro.
9159 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
9161         * posix/regcomp.c (regcomp): Remove a redundant condition.
9162         (init_word_char): Add a check on malloc failure.
9163         (create_initial_state): Likewise.
9164         (duplicate_node): Likewise.
9165         (calc_eclosure): Likewise.
9166         (calc_eclosure_iter): Likewise.
9167         (parse_expression): Likewise.
9168         (parse_bracket_exp): Remove unnecessary malloc invocations.
9169         (build_equiv_class): Likewise.
9170         (build_charclass): Likewise.
9171         * posix/regex_internal.c (re_node_set_intersect): Add a check
9172         on malloc failure.
9173         (re_node_set_add_intersect): Likewise.
9174         (re_node_set_merge): Likewise.
9175         (re_acquire_state): Likewise.
9176         (re_acquire_state_context): Likewise.
9177         (create_newstate_common): Likewise.
9178         (register_state): Likewise.
9179         (create_ci_newstate): Likewise.
9180         (create_cd_newstate): Likewise.
9181         * posix/regex_internal.h: Fix prototypes of re_acquire_state
9182         and re_acquire_state_context.
9183         * posix/regexec.c (regexec): Suit it to the error handling of
9184         re_search_internal.
9185         (re_match): Likewise.
9186         (re_search): Likewise.
9187         (re_search_internal): Add a check on malloc failure.
9188         (acquire_init_state_context): Likewise.
9189         (check_matching): Likewise.
9190         (proceed_next_node): Likewise.
9191         (set_regs): Likewise.
9192         (sift_states_backward): Likewise.
9193         (sift_states_iter_bkref): Likewise.
9194         (add_epsilon_backreference): Likewise.
9195         (transit_state): Likewise.
9196         (transit_state_sb): Likewise.
9197         (transit_state_mb): Likewise.
9198         (transit_state_bkref_loop): Likewise.
9199         (build_trtable): Likewise.
9200         (group_nodes_into_DFAstates): Likewise.
9201         (match_ctx_init): Likewise.
9202         (match_ctx_add_entry): Likewise.
9204 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
9206         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
9207         l_libname if profiling is enabled [PR libc/2916].
9209         * sysdeps/ia64/dl-tls.h: New file.
9211 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
9213         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
9214         Work around an Alpha gas bug.
9216 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
9218         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
9219         uses read to load the catalog.
9220         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
9222 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
9224         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
9225         regex_internal.c, and regex_internal.h.
9226         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
9227         * posix/regex.c: Complete rewrite.
9228         * posix/regexec.c: New file.
9229         * posix/regcomp.c: New file.
9230         * posix/regex_internal.c: New file.
9231         * posix/regex_internal.h: New file.
9232         * posix/regex.h (RE_ICASE): New macro.
9233         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
9235         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
9236         ungetwc.  It's a macro.
9237         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
9238         implementation.
9239         Reported by Jason Merrill <jason@redhat.com>.
9241 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
9243         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
9244         position to fp->_offset if it is set.
9245         * stdio-common/Makefile (tests): Add tst-fdopen.
9246         * stdio-common/tst-fdopen.c: New test.
9248 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
9250         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
9251         * stdio-common/tst-ungetc.c (main): Add another test.
9253 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
9255         * assert/assert-perr.c: Use INTUSE to reference functions and variables
9256         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
9257         aliases.  Add prototypes for the new aliases.
9258         * assert/assert.c: Likewise.
9259         * include/libc-symbols.h: Likewise.
9260         * include/stdio.h: Likewise.
9261         * include/netinet/in.h: Likewise.
9262         * include/rpc/auth.h: Likewise.
9263         * include/rpc/auth_unix.h: Likewise.
9264         * include/rpc/key_prot.h: Likewise.
9265         * include/rpc/pmap_prot.h: Likewise.
9266         * include/rpc/pmap_rmt.h: Likewise.
9267         * include/rpc/rpc_msg.h: Likewise.
9268         * include/rpc/xdr.h: Likewise.
9269         * inet/gethstbyad_r.c: Likewise.
9270         * inet/gethstbynm2_r.c: Likewise.
9271         * inet/gethstbynm_r.c: Likewise.
9272         * inet/gethstent_r.c: Likewise.
9273         * inet/in6_addr.c: Likewise.
9274         * libio/__fpurge.c: Likewise.
9275         * libio/filedoalloc.c: Likewise.
9276         * libio/fileops.c: Likewise.
9277         * libio/ftello.c: Likewise.
9278         * libio/ftello64.c: Likewise.
9279         * libio/genops.c: Likewise.
9280         * libio/iofclose.c: Likewise.
9281         * libio/iofdopen.c: Likewise.
9282         * libio/iofflush.c: Likewise.
9283         * libio/iofflush_u.c: Likewise.
9284         * libio/iofgetpos.c: Likewise.
9285         * libio/iofgetpos64.c: Likewise.
9286         * libio/iofgets.c: Likewise.
9287         * libio/iofgets_u.c: Likewise.
9288         * libio/iofopen.c: Likewise.
9289         * libio/iofopncook.c: Likewise.
9290         * libio/iofputs.c: Likewise.
9291         * libio/iofread.c: Likewise.
9292         * libio/iofread_u.c: Likewise.
9293         * libio/iofsetpos.c: Likewise.
9294         * libio/iofsetpos64.c: Likewise.
9295         * libio/ioftell.c: Likewise.
9296         * libio/iofwrite.c: Likewise.
9297         * libio/iogetline.c: Likewise.
9298         * libio/iogets.c: Likewise.
9299         * libio/iogetwline.c: Likewise.
9300         * libio/iolibio.h: Likewise.
9301         * libio/iopadn.c: Likewise.
9302         * libio/iopopen.c: Likewise.
9303         * libio/ioseekoff.c: Likewise.
9304         * libio/ioseekpos.c: Likewise.
9305         * libio/iosetbuffer.c: Likewise.
9306         * libio/iosetvbuf.c: Likewise.
9307         * libio/ioungetc.c: Likewise.
9308         * libio/ioungetwc.c: Likewise.
9309         * libio/iovdprintf.c: Likewise.
9310         * libio/iovsprintf.c: Likewise.
9311         * libio/iovsscanf.c: Likewise.
9312         * libio/libioP.h: Likewise.
9313         * libio/memstream.c: Likewise.
9314         * libio/obprintf.c: Likewise.
9315         * libio/oldfileops.c: Likewise.
9316         * libio/oldiofclose.c: Likewise.
9317         * libio/oldiofdopen.c: Likewise.
9318         * libio/oldiofgetpos.c: Likewise.
9319         * libio/oldiofgetpos64.c: Likewise.
9320         * libio/oldiofopen.c: Likewise.
9321         * libio/oldiofsetpos.c: Likewise.
9322         * libio/oldiofsetpos64.c: Likewise.
9323         * libio/oldiopopen.c: Likewise.
9324         * libio/oldstdfiles.c: Likewise.
9325         * libio/putc.c: Likewise.
9326         * libio/setbuf.c: Likewise.
9327         * libio/setlinebuf.c: Likewise.
9328         * libio/stdfiles.c: Likewise.
9329         * libio/stdio.c: Likewise.
9330         * libio/strops.c: Likewise.
9331         * libio/vasprintf.c: Likewise.
9332         * libio/vscanf.c: Likewise.
9333         * libio/vsnprintf.c: Likewise.
9334         * libio/vswprintf.c: Likewise.
9335         * libio/wfiledoalloc.c: Likewise.
9336         * libio/wfileops.c: Likewise.
9337         * libio/wgenops.c: Likewise.
9338         * libio/wstrops.c: Likewise.
9339         * malloc/mtrace.c: Likewise.
9340         * misc/error.c: Likewise.
9341         * misc/syslog.c: Likewise.
9342         * nss/getXXbyYY_r.c: Likewise.
9343         * nss/getXXent_r.c: Likewise.
9344         * nss/hosts-lookup.c: Likewise.
9345         * stdio-common/getw.c
9346         * stdio-common/printf-prs.c: Likewise.
9347         * stdio-common/printf_fp.c: Likewise.
9348         * stdio-common/printf_size.c: Likewise.
9349         * stdio-common/putw.c: Likewise.
9350         * stdio-common/scanf.c: Likewise.
9351         * stdio-common/sprintf.c: Likewise.
9352         * stdio-common/tmpfile64.c: Likewise.
9353         * stdio-common/vfprintf.c: Likewise.
9354         * stdio-common/vfscanf.c: Likewise.
9355         * stdlib/strfmon.c: Likewise.
9356         * sunrpc/auth_des.c: Likewise.
9357         * sunrpc/auth_none.c: Likewise.
9358         * sunrpc/auth_unix.c: Likewise.
9359         * sunrpc/authdes_prot.c: Likewise.
9360         * sunrpc/authuxprot.c: Likewise.
9361         * sunrpc/clnt_perr.c: Likewise.
9362         * sunrpc/clnt_raw.c: Likewise.
9363         * sunrpc/clnt_tcp.c: Likewise.
9364         * sunrpc/clnt_udp.c: Likewise.
9365         * sunrpc/clnt_unix.c: Likewise.
9366         * sunrpc/key_call.c: Likewise.
9367         * sunrpc/key_prot.c: Likewise.
9368         * sunrpc/openchild.c: Likewise.
9369         * sunrpc/pm_getmaps.c: Likewise.
9370         * sunrpc/pm_getport.c: Likewise.
9371         * sunrpc/pmap_clnt.c: Likewise.
9372         * sunrpc/pmap_prot.c: Likewise.
9373         * sunrpc/pmap_prot2.c: Likewise.
9374         * sunrpc/pmap_rmt.c: Likewise.
9375         * sunrpc/rpc_cmsg.c: Likewise.
9376         * sunrpc/rpc_prot.c: Likewise.
9377         * sunrpc/svc_authux.c: Likewise.
9378         * sunrpc/svc_raw.c: Likewise.
9379         * sunrpc/svc_simple.c: Likewise.
9380         * sunrpc/svc_tcp.c: Likewise.
9381         * sunrpc/svc_udp.c: Likewise.
9382         * sunrpc/svc_unix.c: Likewise.
9383         * sunrpc/xdr.c: Likewise.
9384         * sunrpc/xdr_array.c: Likewise.
9385         * sunrpc/xdr_mem.c: Likewise.
9386         * sunrpc/xdr_rec.c: Likewise.
9387         * sunrpc/xdr_ref.c: Likewise.
9388         * sunrpc/xdr_stdio.c: Likewise.
9389         * sysdeps/generic/_strerror.c: Likewise.
9390         * sysdeps/generic/printf_fphex.c: Likewise.
9391         * sysdeps/generic/tmpfile.c: Likewise.
9392         * sysdeps/gnu/errlist.awk: Likewise.
9393         * sysdeps/gnu/errlist.c: Likewise.
9395         * libio/Makefile (routines): Remove iosprint.
9396         * libio/iosprintf.c: Removed
9399 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
9401         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
9402         non_dynamic_init and exported now.
9403         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
9404         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
9405         !SHARED.
9406         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
9407         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
9408         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
9410 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
9412         * elf/dl-close.c (free_slotinfo): Check for end of list and return
9413         true in this case.
9415         * locale/iso-639.def: Add language codes for Walloon.
9417         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
9418         total number of relocations performed.
9420         * elf/sprof.c (load_profdata): If do_test provide information as
9421         to why loading failed.
9422         * elf/dl-profile.c (_dl_start_profile): Initialize all of
9423         hist_hdr.dimen.
9425         * csu/set-init.c: Moved to...
9426         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
9427         * csu/Makefile: Don't compile set-init.
9428         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
9429         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
9430         to __libc_init.
9431         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
9432         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
9433         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
9434         __libc_init.
9435         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
9436         __libc_subinit.
9438 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
9440         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
9441         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
9442         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
9443         (_dl_deallocate_tls): New function.
9444         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
9445         _dl_deallocate_tls.
9447 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
9449         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
9450         * stdio-common/tst-fseek.c (main): Add test for this.
9452 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
9454         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
9456 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
9458         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
9459         pointer before dereferencing.
9461 2002-02-18  Roland McGrath  <roland@frob.com>
9463         * sysdeps/mach/hurd/times.c: Fix typo in last change.
9465         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
9466         Use task_policy in place of task_priority.
9468         * sysdeps/generic/bits/mman.h
9469         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
9470         * sysdeps/mach/msync.c: New file.
9472         * sysdeps/mach/powerpc/syscall.S: New file.
9474         * mach/msg.c [MACH_MSG_OVERWRITE]
9475         (__mach_msg_trap, __mach_msg_overwrite): New functions.
9476         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
9478         * sysdeps/mach/configure.in: Check for clock.defs to put into
9479         mach_interface_list.
9480         * sysdeps/mach/configure: Regenerated.
9482         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
9483         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
9484         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
9485         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
9486         (mach-shortcuts): Add device_read_overwrite_request,
9487         device_read_overwrite, vm_read_overwrite, thread_switch.
9489         * configure.in (base_machine): Set to $machine by default.
9490         * configure: Regenerated.
9492         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
9493         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
9494         * sysdeps/mach/configure: Regenerated.
9495         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
9497         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
9499         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
9501         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
9502         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
9504 2002-02-17  Roland McGrath  <roland@frob.com>
9506         * sysdeps/mach/hurd/times.c
9507         [NO_CREATION_TIME] (startup_time): New static variable.
9508         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
9509         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
9510         creation_time from task_basic_info.
9511         (__times): Use __gettimeofday instead of __host_get_time.
9513         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
9514         Use untyped Mach IPC message format.
9516         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
9518         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
9519         _S_catch_exception_raise_state_identity,
9520         _hurdsig_fault_catch_exception_raise_state,
9521         _hurdsig_fault_catch_exception_raise_state_identity.
9523         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
9525         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
9526         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
9528         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
9529         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
9531         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
9532         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
9533         them as no-op macros.
9534         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
9535         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
9537         * sysdeps/powerpc/dl-machine.h
9538         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
9540         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
9541         Use untyped Mach IPC message format.
9543         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
9544         Handle untyped Mach IPC message formats.
9546         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
9547         Expect different argument conventions when this is defined.
9548         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
9549         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
9550         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
9551         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
9552         for OSF Mach variant.
9553         (faulted): Use mig_reply_error_t for REPLY.
9554         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
9555         in __thread_set_exception_ports call.
9556         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
9557         __mach_port_set_attributes in place of __mach_port_set_qlimit.
9559         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
9560         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
9561         on Darwin, which includes bogons.
9563         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
9564         variable LOADBASE so it's not declared when it's not used.
9566 2002-02-16  Roland McGrath  <roland@frob.com>
9568         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
9569         to use BI.creation_time.
9571         * mach/Machrules (MIG): Add -x c to CPP value passed down.
9573         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
9574         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
9575         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
9576         host_page_size instead of vm_statistics.
9578         * sysdeps/mach/Makefile (mach-before-compile): Don't include
9579         mach_interface.h here, since not all variants use that name.
9581         * sysdeps/mach/configure.in: Add some checks for Mach headers
9582         to ensure a sane installation.
9583         (mach_interface_list): Define this variable by checking for .defs
9584         files found in various variants.
9585         * configure.in (mach_interface_list): AC_SUBST this.
9586         * config.make.in (mach-interface-list): New substituted variable.
9587         * mach/Makefile (user-interfaces): Define this using the value
9588         of $(mach-interface-list) instead of mach, mach4.
9589         Updated other references to mach_interface to use it as well.
9591         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
9593         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
9594         mig_reply_error_t for OSF Mach variant.
9596         * mach/Makefile (routines): Remove bootprivport.
9597         * mach/bootprivport.c: File removed.  It has never been used.
9599         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
9600         Grok the OSF flavor of message format.
9601         (mach_msg_destroy_port): For MAKE_SEND and
9602         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
9603         no-senders notification.
9605 2002-02-06  Roland McGrath  <roland@frob.com>
9607         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
9608         to here if 2.0 compatibility enabled ...
9609         (libc: GLIBC_2.1.3): ... from here.
9611 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
9613         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
9614         generation counter.
9615         * elf/dl-close.c (_dl_close): Likewise.
9617 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
9619         * elf/Makefile: Add rules to build and run tst-tls8.
9620         * elf/tst-tls8.c: New file.
9621         * elf/tst-tlsmod4.c: New file.
9623         * stdlib/test-a64l.c (tests): Add more test cases.
9625         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
9626         Reported by Walter Harms <WHarms@bfs.de>.
9628 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
9630         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
9631         definitions for struct sigcontext.
9632         Suggested by David Mosberger-Tang.
9634 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9636         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
9637         for removing reference of module in slotinfo list.
9638         (_dl_close): Use remove_slotinfo.
9639         * sysdeps/generic/dl-tls.c: General pretty printing.
9640         (oom): Define only if SHARED.
9641         (_dl_next_tls_modid): Correct starting point for the case we assume
9642         there is a gap.  Add missing instruction grouping (doh!).  Correct
9643         tests for reaching maximum index.
9644         * elf/Makefile: Add rules to build and run tst-tls7.
9645         * elf/tst-tls7.c: New file.
9646         * elf/tst-tlsmod3.c: New file.
9648         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9649         USE_TLS.
9650         * elf/tst-tlsmod2.c: Likewise.
9652         * elf/dl-close.c (_dl_close): When closing an object using TLS
9653         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9654         true.  Increment dl_tls_generation only if we closed any TLS-using
9655         object.
9656         * elf/tst-tls6.c: New file.
9657         * elf/Makefile: Add rules to build and run tst-tls6.
9659         * po/da.po: Update from translation team.
9661         * locale/categories.def: Fix typo [PR libc/2948].
9662         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9663         [PR libc/2949].
9664         * locale/iso-4217.def: Update from official version [PR libc/2950].
9665         * glibcbug.in: Honor TMPDIR [PR libc/2951].
9666         * locale/programs/ld-collate.c (collate_finish): Bail out with a
9667         message if input is too confusion instead of using assert.
9668         (collate_read): Don't crash on unknown symbol [PR libc/2952].
9669         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9671         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9672         * elf/tst-tls2.c: Likewise.
9673         * elf/tst-tls3.c: Likewise.
9675 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
9677         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9679 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9681         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9682         if this is really necessary.
9684         * elf/dl-close.c (_dl_close): Implement freeing entries in the
9685         slotinfo array.
9686         (free_mem): Free memory for the slotinfo array if possible.
9688 2002-02-12  Andreas Schwab  <schwab@suse.de>
9690         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9692 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
9694         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9695         TLS_DTV_UNALLOCATE.
9696         (oom): New function.
9697         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9698         (_dl_determine_tlsoffset): Likewise.
9699         (_dl_allocate_tls): Likewise.
9700         (__TLS_GET_ADDR): Define if not already defined.
9701         (_dl_tls_symaddr): New function.
9702         (allocate_and_init): New function.
9703         (__tls_get_addr): Actually implement handling of generation counter
9704         and deferred allocation.
9705         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9706         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9707         _dl_tls_generation.
9708         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9709         Declare _dl_tls_symaddr.
9710         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9711         SHARED.
9712         * include/link.h (struct link_map):  Remove l_tls_nextimage and
9713         l_tls_previmage.
9714         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9715         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9716         (_dl_vsym): Likewise.
9717         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9718         layout.
9719         (dl_main): Allow PT_TLS be present for empty segment.  Remove
9720         nextimage list handling.  Instead add all modules using TLS to
9721         dl_tls_dtv_slotinfo_list.
9722         * elf/dl-open.c (dl_open_worker): After successfully loading all
9723         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9724         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9725         empty segment don't do anything.  Remove handling of initimage list.
9726         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9727         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9728         * elf/dl-minimal.c: Define __libc_memalign.
9729         * elf/dl-support.c: Remove _dl_initimage_list.  Add
9730         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9731         _dl_tls_generation.
9732         * include/stdlib.h: Declare __libc_memalign.
9734         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9735         * elf/tst-tls4.c: New file.
9736         * elf/tst-tls5.c: New file.
9737         * elf/tst-tlsmod2.c: New file.
9739         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9741         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9743         * elf/tst-tls1.c: Use test-skeleton.c.
9744         * elf/tst-tls2.c: Likewise.
9745         * elf/tst-tls3.c: Likewise.
9747         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9749 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
9751         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9753 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
9755         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9757         * elf/tst-tls3.c: New file.
9758         * elf/tst-tlsmod1.c: New file.
9759         * elf/Makefile: Add rules to build and run tst-tls3.
9761         * sysdeps/i386/dl-machine.h: Include <tls.h>.
9762         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9763         TLS relocations.
9765         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9767         * po/fr.po: Update from translation team.
9769         * elf/tls-macros.h: Add alternative macros for use in PIC.
9771         * elf/dl-lookup.c: Include <tls.h>.
9772         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9774         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9775         required by passing pointer to last element of the list.
9777         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9778         l_tls_initimage to a place where it actually is performed.
9780         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9781         after globfree() calls.
9783         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9784         (openaux): Pass open_mode as new last argument to _dl_map_object.
9785         (_dl_map_object_deps): Add new argument open_mode.  Initialize
9786         open_mode element of args variable with it.
9787         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9788         _dl_map_object_deps.
9789         * elf/rtld.c (dl_main): Add zero as last parameter to
9790         _dl_map_object_deps call.
9791         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9792         * elf/nodlopen2.c: New file.
9793         * elf/nodlopenmod2.c: New file.
9794         * elf/Makefile: Add rules to build and run nodlopen2.
9796         * elf/tst-tls1.c: Move TLS helper macros to...
9797         * elf/tls-macros.h: ...here.  New file.
9798         * elf/tst-tls2.c: New file.
9799         * elf/Makefile (tests): Add tst-tls2.
9800         (distribute): Add tls-macros.h.
9802         * po/sv.po: Update from translation team.
9804         * elf/tst-tls1.c (main): Add complete set of tests.  Split
9805         architecture specific definitions from the actual test code.
9807         * po/tr.po: Update from translation team.
9809 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
9811         * elf/Makefile (tests): Add tst-tls1.
9812         * elf/tst-tls1.c: New file.
9814         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9815         alignment of TCB for now.
9817         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9818         initialization image for the application itself.
9820         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9821         loop to initialize TLS block.
9823 2002-02-08  Richard Henderson  <rth@redhat.com>
9825         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9826         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9828         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9830 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
9832         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9834 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
9836         * po/ca.po: Update from translation team.
9837         * po/sk.po: Likewise.
9839         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9840         (dl_main): Move dtv/static TLS handling before relocation.
9841         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
9842         TLS_INIT_TP to allocate and install the dtv/static TLS block.
9843         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9844         so far uses TLS initialize GL(dl_tls_static_size) and
9845         GL(dl_tls_static_align) to account for the TCB.
9846         (_dl_allocate_tls): New function.
9847         * sysdeps/generic/ldsodefs.h (rtld_global): Add
9848         _dl_initial_dtv_malloced.
9850         * configure.in: Test for __builtin_memset more realistically.
9852         * csu/version.c (banner): If TLS support is available say so.
9854 2002-02-04  H.J. Lu  <hjl@gnu.org>
9856         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9857         __attribute_used__.
9858         (__dl_runtime_resolve): Likewise.
9860         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9861         declaration.
9863 2001-11-15  H.J. Lu  <hjl@gnu.org>
9865         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9866         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9868         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9870 2002-02-07  H.J. Lu  <hjl@gnu.org>
9872         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9873         ".set noreorder".
9874         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9875         Likewise.
9877 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9879         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9881         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9882         ___tls_get_addr_internal.
9883         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9885         * po/ko.po: Update from translation team.
9887 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
9889         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9890         attribute, change __pad{1,2} type to unsigned int.
9891         (struct stat64): Remove packed attribute.
9893 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9895         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9897 2002-02-07  Andreas Schwab  <schwab@suse.de>
9899         * configure.in: Fix check for -zcombreloc.
9901 2002-02-06  H.J. Lu  <hjl@gnu.org>
9903         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9904         * configure.in: Check if __builtin_memset really works.
9905         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9906         __GNUC_PREREQ (2, 96) before using __builtin_memset.
9908 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9910         * io/bug-ftw3.c (main): Don't try the test if root.
9912 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9914         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9915         constraints.
9916         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9917         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9918         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9919         Likewise.
9920         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9921         a weak alias for __clone.
9922         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9923         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9924         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9925         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9926         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9927         a weak alias for __mmap64.
9929 2002-02-05  H.J. Lu  <hjl@gnu.org>
9931         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9932         (atomic_add): Likewise.
9933         (compare_and_swap): Likewise.
9934         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9936 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9938         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9940         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9941         alignment of the TCB and store total size and alignment of static
9942         TLS block in _dl_tls_static_size and _dl_tls_static_align.
9943         tls_index is a typedef.
9944         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9945         _dl_tls_static_align.
9946         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9947         * elf/dl-support.c: Define _dl_tls_static_size and
9948         _dl_tls_static_align.
9950 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9952         * configure.in: Add --without-tls option.
9953         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9954         --without-tls is given.
9956         * sysdeps/generic/dl-tls.c: Include <tls.h>.
9958         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9960 2002-02-06  Roland McGrath  <roland@frob.com>
9962         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9963         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9965         * scripts/versions.awk: Improve error message for missing version.
9966         Each version inherits from the last one only if they have the same
9967         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9968         but not GLIBC_x and FOO_y.
9970         * scripts/firstversions.awk: Handle libraries that don't have each
9971         particular version named in the third column of shlib-versions.
9973         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9975 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9977         * Versions.def [ld]: Add GLIBC_2.3.
9978         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9979         * elf/Makefile (dl-routines): Add dl-tls.
9980         (distribute): Add dl-tls.h.
9981         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9982         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9983         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9984         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9985         along with the other info in the link map.  Change queueing of init
9986         images for double linked list.  Use _dl_next_tls_modid to compute
9987         l_tls_modid.
9988         * elf/rtld.c (_dl_start_final): Store alignment requirement
9989         along with the other info in rtld map and executable map.
9990         (dl_main): Add ld.so to the init image list if necessary.  Compute
9991         final module ID with _dl_next_tls_modid.
9992         * include/link.h (struct link_map): Add l_tls_previmage and
9993         l_tls_align.
9994         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9995         * sysdeps/i386/elf/Versions: New file.
9996         * sysdeps/generic/dl-tls.c: New file.
9997         * sysdeps/generic/dl-tls.h: New file.
9998         * sysdeps/i386/dl-tls.h: New file.
10000 2002-02-06  Roland McGrath  <roland@frob.com>
10002         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
10003         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
10005 2002-01-05  Roland McGrath  <roland@frob.com>
10007         * sysdeps/mach/configure.in: New file.
10008         * sysdeps/mach/configure: New generated file.
10010         * mach/Makefile (user-interfaces): Remove default_pager_helper.
10011         It has never been used by anything.
10013 2002-02-06  H.J. Lu  <hjl@gnu.org>
10015         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
10016         is included.
10018 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
10020         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
10021         attribute((packed)) to counter stupid people misusing gcc options.
10022         (struct stat64): Likewise.
10024 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
10026         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
10027         the variables which are used as booleans.
10029 2002-02-06  Andreas Jaeger  <aj@suse.de>
10031         * include/libc-symbols.h (INTUSE): Renamed from INT.
10032         * elf/dl-deps.c: Change users.
10033         * sysdeps/generic/dl-sysdep.c: Likewise.
10034         * sysdeps/generic/dl-cache.c: Likewise.
10035         * elf/dl-reloc.c: Likewise.
10036         * elf/rtld.c: Likewise.
10037         * elf/dl-version.c: Likewise.
10038         * elf/dl-load.c: Likewise.
10039         * elf/dl-dst.h: Likewise.
10040         * elf/dl-init.c: Likewise.
10041         * elf/dl-error.c: Likewise.
10042         * elf/dl-fini.c: Likewise.
10043         * elf/dl-runtime.c: Likewise.
10044         * elf/do-lookup.h: Likewise.
10046         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
10047         definition.
10048         * stdio-common/_itowa.h: Likewise.
10050 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
10052         * elf/dl-minimal.c: Define _itoa_lower_digits.
10054         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
10055         DT_FLAGS set.
10057         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
10058         loading modules with the DF_STATIC_TLS flag set.
10059         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
10060         element.
10061         * include/link.h (struct link_map): Add l_flags field.
10062         * elf/elf.h (DF_STATIC_TLS): New definition.
10064         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
10065         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
10067         * elf/rtld.c (process_dl_debug): Correct printing help message.
10068         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
10069         for %s.
10071         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
10072         definition and pass &errno in use of this variable.
10073         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
10075 2002-02-04  Andreas Schwab  <schwab@suse.de>
10077         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
10078         * locale/programs/charmap-dir.c: Wrap calls that output messages
10079         with WITH_CUR_LOCALE.  Include "localedef.h" first.
10080         * locale/programs/charmap.c: Likewise.
10081         * locale/programs/ld-address.c: Likewise.
10082         * locale/programs/ld-collate.c: Likewise.
10083         * locale/programs/ld-ctype.c: Likewise.
10084         * locale/programs/ld-identification.c: Likewise.
10085         * locale/programs/ld-measurement.c: Likewise.
10086         * locale/programs/ld-messages.c: Likewise.
10087         * locale/programs/ld-monetary.c: Likewise.
10088         * locale/programs/ld-name.c: Likewise.
10089         * locale/programs/ld-numeric.c: Likewise.
10090         * locale/programs/ld-paper.c: Likewise.
10091         * locale/programs/ld-telephone.c: Likewise.
10092         * locale/programs/ld-time.c: Likewise.
10093         * locale/programs/linereader.c: Likewise.
10094         * locale/programs/linereader.h: Likewise.
10095         * locale/programs/localedef.c: Likewise.
10096         * locale/programs/locfile.c: Likewise.
10097         * locale/programs/repertoire.c: Likewise.
10099 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
10101         * elf/rtld.c (_dl_start_final): Determine load address to locate
10102         ehdr with GL(dl_rtld_map).l_map_start.
10104         * po/ca.po: Update from translation team.
10106         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
10107         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
10108         header entry.
10109         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10110         _dl_tls_module_cnt.
10111         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
10113 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
10115         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
10116         * include/link.h (struct link_map): Add various members for TLS
10117         information.
10118         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
10119         _rtld_tlsoffset, add _dl_initimage_list.
10120         * sysdeps/i386/dl-lookupcfg.h: New file.
10121         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
10122         TLS relocation.  When using TLS we now use RESOLVE_MAP.
10123         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
10124         is used.
10126         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
10127         unused.
10129         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
10130         thread-pointer as soon as possible.
10131         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
10132         elements in rtld_global.
10133         * sysdeps/generic/tls.h: New file.
10134         * elf/Makefile (distribute): Add tls.h.
10135         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
10136         relocations.  Not complete yet.
10138         * resolv/resolv.h: Allow user to define __need_res_state and only
10139         define __res_start structure then.
10140         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
10142         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
10143         dl_cpuclock_offset initialization to _dl_start_final.
10144         (_dl_show_auxv): Avoid unnecessary sign extension.
10145         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
10147 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
10149         * config.h.in: Add HAVE_TLS_SUPPORT.
10150         * sysdeps/i386/elf/configure.in: New file.
10152 2002-02-03  Andreas Schwab  <schwab@suse.de>
10154         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
10155         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
10157 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
10159         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
10160         alloca if the memory reqirements are too high.
10162 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
10164         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
10165         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
10166         the former is available anyway and speed isn't important here.
10167         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
10168         * elf/dl-version.c (match_symbol): Likewise.
10169         (_dl_check_map_versions): Likewise.
10170         * elf/rtld.c (process_envvars): Likewise.
10171         (print_statistics): Likewise.
10172         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
10173         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
10174         bases.  Add assert to catch uses of unimplemented features.
10175         (__strsep): Add assert to catch uses of unimplemented features.
10176         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
10177         and avoid inline optimization.
10178         * elf/rtld.c (process_envvars): Likewise.
10179         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
10180         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
10181         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
10183 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10185         * stdio-common/_itoa.h: Minor simplifications of the code.
10186         * stdio-common/_itoa.c: Likewise.
10188         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
10189         instead of _dl_printf for debugging info output.
10191         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
10192         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
10194 2002-02-01  H.J. Lu  <hjl@gnu.org>
10196         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
10197         (atomic_add): Likewise.
10198         (compare_and_swap): Return 0 only when failed to compare. Use
10199         branch likely.
10201         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
10202         branch likely.
10204 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
10206         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
10208 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10210         * elf/dl-minimal.c (__strsep): New minimal implementation.
10212 2002-02-02  Paul Eggert  <eggert@twinsun.com>
10214         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
10215         (__mktime_internal): If no tm_isdst is requested, prefer solutions
10216         with tm_isdst > 0 when the requested time falls within a
10217         spring-forward gap [PR libc/2894].
10219 2002-02-03  Andreas Schwab  <schwab@suse.de>
10221         * stdio-common/tst-rndseek.c: Increase timeout.
10223 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10225         Change ld.so to not use functions which are exported.  One cannot
10226         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
10227         definitions.
10228         * include/libc-symbols.h: Define INT and INTDEF.
10229         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
10230         _dl_signal_error_internal, _dl_map_object_internal,
10231         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
10232         _dl_lookup_versioned_symbol_internal,
10233         _dl_relocate_object_internal, _dl_debug_state_internal,
10234         _dl_start_profile_internal, and _dl_unload_cache_internal.
10235         * include/dlfcn.h: Declare _dl_catch_error_internal.
10236         * elf/rtld.c: Use INT for calls to any of the *_internal functions
10237         above.  Add INTDEF to function definitions.
10238         * elf/dl-debug.c: Likewise.
10239         * elf/dl-deps.c: Likewise.
10240         * elf/dl-dst.h: Likewise.
10241         * elf/dl-error.c: Likewise.
10242         * elf/dl-fini.c: Likewise.
10243         * elf/dl-init.c: Likewise.
10244         * elf/dl-load.c: Likewise.
10245         * elf/dl-lookup.c: Likewise.
10246         * elf/dl-misc.c: Likewise.
10247         * elf/dl-open.c: Likewise.
10248         * elf/dl-profile.c: Likewise.
10249         * elf/dl-reloc.c: Likewise.
10250         * elf/dl-runtime.c: Likewise.
10251         * elf/dl-version.c: Likewise.
10252         * elf/do-lookup.h: Likewise.
10253         * sysdeps/generic/dl-cache.c: Likewise.
10254         * sysdeps/generic/dl-sysdep.c: Likewise.
10255         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
10256         instead of _dl_init.
10257         * sysdeps/arm/dl-machine.h: Likewise.
10258         * sysdeps/cris/dl-machine.h: Likewise.
10259         * sysdeps/hppa/dl-machine.h: Likewise.
10260         * sysdeps/i386/dl-machine.h: Likewise.
10261         * sysdeps/ia64/dl-machine.h: Likewise.
10262         * sysdeps/m68k/dl-machine.h: Likewise.
10263         * sysdeps/mips/dl-machine.h: Likewise.
10264         * sysdeps/mips/mips64/dl-machine.h: Likewise.
10265         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10266         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10267         * sysdeps/sh/dl-machine.h: Likewise.
10268         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10269         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10270         * sysdeps/x86_64/dl-machine.h: Likewise.
10271         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
10273         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
10274         and _dl_debug_initialize.
10276         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
10277         more information.
10278         * elf/rtld.c (dl_main): Avoid strrchr.
10279         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
10280         result of readlink.  Search from the back for '/'.
10282         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
10283         strncpy if possible.
10285         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
10286         strncmp.
10287         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
10288         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
10289         strspn, and strcspn.
10290         (process_envvars): Don't use strcspn.
10292         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
10293         (_dl_dst_substitute): Likewise.
10295 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10297         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
10298         code which is never used when relocating ld.so itself.
10300         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
10301         starting ld.so itself.  Move l_addr variable initialization closer
10302         to use.
10303         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
10305 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
10307         * Versions.def (libc): Add GLIBC_PRIVATE.
10308         (libdb, libnss_db, libdb1): Remove.
10309         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
10310         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
10311         (libpthread): Add GLIBC_PRIVATE.
10312         (libresolv): Likewise, remove GLIBC_2.1.
10313         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
10314         GLIBC_2.2.3, GLIBC_2.3.
10315         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
10316         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
10317         _dl_sym, _dl_vsym): Likewise.
10318         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
10319         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
10320         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
10321         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
10322         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
10323         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
10324         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
10325         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
10326         Likewise.
10327         (_dl_object_relocation_scope): Remove.
10328         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
10329         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
10330         __gconv_cache): Move to GLIBC_PRIVATE.
10331         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
10332         __internal_setnetgrent): Likewise.
10333         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
10334         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
10335         * locale/Versions (__collate_element_hash, __collate_element_strings,
10336         __collate_symbol_classes, __collate_symbol_hash,
10337         __collate_symbol_strings, _nl_current_LC_COLLATE,
10338         _nl_current_LC_CTYPE): Likewise.
10339         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
10340         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
10341         (libnss_nis, libnss_nisplus): Likewise.
10342         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
10343         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
10344         (libnss_files): Move all symbols to GLIBC_PRIVATE.
10345         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
10346         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
10347         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
10348         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
10349         __ns_get16, __ns_samename): Likewise.
10350         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
10351         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
10352         GLIBC_PRIVATE.
10353         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
10354         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
10355         __libc_connect): Likewise.
10356         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
10357         Likewise.
10358         * stdlib/Versions (__libc_system): Likewise.
10359         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
10360         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
10361         * sysdeps/ia64/fpu/Versions: Likewise.
10362         * sysdeps/ia64/Versions: Likewise.
10363         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
10364         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
10365         to GLIBC_PRIVATE.
10366         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
10367         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
10368         __libc_sigaction): Likewise.
10369         * termios/Versions (__libc_tcdrain): Likewise.
10371         * misc/sys/cdefs (__attribute_noinline__): Define.
10372         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
10373         __attribute_noinline__.
10375         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
10376         * elf/dl-xstat64.c: New file.
10377         * elf/dl-fxstat64.c: New file.
10378         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
10379         don't export __fxstat64 at multiple versions.
10380         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
10381         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
10383 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
10385         * locale/program/ld-collate.c (collate_finish): Assign a wide
10386         char collation sequence value to multi character collating
10387         elements, and avoid over writing by non-character elements.
10389 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10391         * elf/Makefile (distribute): Add dl-procinfo.c.
10392         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
10393         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
10395 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
10397         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
10398         definition.
10399         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
10400         _rtld_global struct.
10401         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10402         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
10403         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10404         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
10405         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
10406         _dl_fpu_control_set): Remove unused externs.
10407         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
10408         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
10409         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
10410         related variables in _rtld_global struct.
10411         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
10412         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
10413         unused extern.
10415 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10417         * sysdeps/generic/dl-procinfo.c: New file.
10419 2002-02-01  Andreas Schwab  <schwab@suse.de>
10421         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
10423 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10425         * elf/rtld.c (_dl_start): Mark as internal_function.
10426         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
10427         in register.
10428         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
10429         General pretty printing.
10431 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
10433         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
10434         * elf/dl-reloc.c: Pretty printing.
10435         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
10436         procinfo-related variables in rtld_global struct.
10437         * elf/dl-support.c: Likewise.
10438         * elf/rtld.c: Likewise.
10439         * sysdeps/i386/i686/Makefile: Likewise.
10440         * sysdeps/i386/i686/hp-timing.c: Likewise.
10441         * sysdeps/i386/i686/hp-timing.h: Likewise.
10442         * sysdeps/ia64/Makefile: Likewise.
10443         * sysdeps/ia64/hp-timing.c: Likewise.
10444         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
10445         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
10446         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
10447         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
10448         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10449         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
10450         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
10451         * sysdeps/x86_64/Makefile: Likewise.
10453         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
10454         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
10455         _dl_debug_fd to rtld_global.
10456         * elf/Versions: Likewise.
10457         * elf/dl-close.c: Likewise.
10458         * elf/dl-iteratephdr.c: Likewise.
10459         * elf/dl-lookup.c: Likewise.
10460         * elf/dl-misc.c: Likewise.
10461         * elf/dl-open.c: Likewise.
10462         * elf/dl-support.c: Likewise.
10463         * elf/do-lookup.h: Likewise.
10464         * elf/rtld.c: Likewise.
10465         * sysdeps/generic/dl-cache.c: Likewise.
10466         * sysdeps/generic/dl-sysdep.c: Likewise.
10467         * sysdeps/ia64/Versions: Likewise.
10468         * sysdeps/unix/clock_gettime.c: Likewise.
10469         * sysdeps/unix/clock_settime.c: Likewise.
10470         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10471         * sysdeps/sparc/Versions: Removed.
10472         * sysdeps/i386/i686/Versions : Removed.
10473         * sysdeps/x86_64/Versions: Removed.
10474         * configure.in: Define HAVE_PROTECTED if .protected is available.
10475         * config.h.in: Add entry for HAVE_PROTECTED.
10477 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
10479         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
10480         code in struct _rtld_global.  Export this struct, remove all
10481         exports for the signal variables.
10482         * sysdeps/arm/dl-machine: Likewise.
10483         * sysdeps/generic/dl-origin: Likewise.
10484         * sysdeps/generic/dl-sysdep: Likewise.
10485         * sysdeps/generic/dl-cache: Likewise.
10486         * sysdeps/hppa/dl-fptr: Likewise.
10487         * sysdeps/hppa/dl-machine: Likewise.
10488         * sysdeps/cris/dl-machine: Likewise.
10489         * sysdeps/i386/dl-machine: Likewise.
10490         * sysdeps/ia64/dl-machine: Likewise.
10491         * sysdeps/m68k/dl-machine: Likewise.
10492         * sysdeps/mach/hurd/dl-sysdep: Likewise.
10493         * sysdeps/mips/mips64/dl-machine: Likewise.
10494         * sysdeps/mips/dl-machine: Likewise.
10495         * sysdeps/powerpc/elf/libc-start: Likewise.
10496         * sysdeps/powerpc/dl-machine: Likewise.
10497         * sysdeps/powerpc/dl-start: Likewise.
10498         * sysdeps/sparc/sparc32/dl-machine: Likewise.
10499         * sysdeps/sparc/sparc64/dl-machine: Likewise.
10500         * sysdeps/sh/dl-machine: Likewise.
10501         * sysdeps/s390/s390-32/dl-machine: Likewise.
10502         * sysdeps/s390/s390-64/dl-machine: Likewise.
10503         * sysdeps/unix/sysv/aix/libc-start: Likewise.
10504         * sysdeps/unix/sysv/aix/start-libc: Likewise.
10505         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
10506         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
10507         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
10508         * sysdeps/x86_64/dl-machine: Likewise.
10510 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
10512         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
10513         are too high.
10515 2002-01-31  Andreas Schwab  <schwab@suse.de>
10517         * sysdeps/posix/readv.c: Check for ssize_t overflow.
10519 2002-01-31  Andreas Schwab  <schwab@suse.de>
10521         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
10522         reference to _dl_pagesize.
10524 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
10526         * Versions.def [ld]: Add GLIBC_2.3.
10527         * elf/dl-addr.c: Move global variables for SHARED code in struct
10528         _rtld_global.  Export this struct, remove all exports for the
10529         signal variables.
10530         * elf/dl-close.c: Likewise.
10531         * elf/dl-conflict.c: Likewise.
10532         * elf/dl-debug.c: Likewise.
10533         * elf/dl-deps.c: Likewise.
10534         * elf/dl-dst.h: Likewise.
10535         * elf/dl-error.c: Likewise.
10536         * elf/dl-fini.c: Likewise.
10537         * elf/dl-init.c: Likewise.
10538         * elf/dl-iteratephdr.c: Likewise.
10539         * elf/dl-libc.c: Likewise.
10540         * elf/dl-load.c: Likewise.
10541         * elf/dl-lookup.c: Likewise.
10542         * elf/dl-minimal.c: Likewise.
10543         * elf/dl-object.c: Likewise.
10544         * elf/dl-open.c: Likewise.
10545         * elf/dl-profile.c: Likewise.
10546         * elf/dl-profstub.c: Likewise.
10547         * elf/dl-reloc.c: Likewise.
10548         * elf/dl-runtime.c: Likewise.
10549         * elf/dl-support.c: Likewise.
10550         * elf/dl-sym.c: Likewise.
10551         * elf/dl-version.c: Likewise.
10552         * elf/do-lookup.h: Likewise.
10553         * elf/do-rel.h: Likewise.
10554         * elf/dynamic-link.h: Likewise.
10555         * elf/rtld.c: Likewise.
10556         * sysdeps/generic/dl-cache.c: Likewise.
10557         * sysdeps/generic/dl-sysdep.c: Likewise.
10558         * sysdeps/generic/ldsodefs.h: Likewise.
10559         * sysdeps/generic/libc-start.c: Likewise.
10560         * sysdeps/i386/dl-machine.h: Likewise.
10561         * sysdeps/ia64/dl-fptr.c: Likewise.
10562         * sysdeps/ia64/dl-machine.h: Likewise.
10563         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
10564         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10565         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
10566         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
10567         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
10568         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
10569         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
10570         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
10572 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10574         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
10575         to avoid warning
10576         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
10578         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
10579         SHARED version.
10580         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
10582         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
10584 2002-01-29  Ben Collins  <bcollins@debian.org>
10586         * string/bits/string2.h (__mempcpy): Protect size arg for
10587         addition when using __builtin_memcpy.
10589 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10591         * stdlib/Makefile (tests): Add tst-qsort.
10592         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
10594         * manual/signal.texi (Process Signal Mask): Document that
10595         pthread_sigmask, not sigprocmask, must be used in MT programs.
10596         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
10598         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
10599         found.
10600         * misc/Makefile (tests): Add tst-hsearch.
10601         * misc/tst-hsearch.c: New file.
10603 2002-01-18  Wolfram Gloger  <wg@malloc.de>
10605         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
10606         * malloc/malloc.h: Likewise.
10607         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
10608         * malloc/arena.c: New file.
10609         * malloc/hooks.c: New file.
10610         * malloc/tst-mallocstate.c: New file.
10611         * malloc/Makefile: Add new testcase tst-mallocstate.
10612         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
10614 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10616         * stdlib/msort.c: Remove last patch.  The optimization violates the
10617         same rule which qsort.c had problems with.
10619 2002-01-27  Paul Eggert  <eggert@twinsun.com>
10621         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
10622         to a pivot element that lies outside the array to be sorted, as
10623         ISO C99 requires that the comparison function be called only with
10624         addresses of array elements [PR libc/2880].
10626 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10628         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
10629         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
10631         * timezone/asia: Update from tzdata2002b.
10632         * timezone/australasia: Likewise.
10633         * timezone/backward: Likewise.
10634         * timezone/europe: Likewise.
10635         * timezone/leapseconds: Likewise.
10636         * timezone/iso3166.tab: Likewise.
10637         * timezone/zone.tab: Likewise.
10639 2002-01-23  Richard Henderson  <rth@redhat.com>
10641         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10643 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10645         * string/strxfrm.c: Allocate one more byte for rulearr and clear
10646         this element [PR libc/2855].
10648         * string/strcoll.c: Handle zero-length arguments specially
10649         [PR libc/2856].
10651 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
10653         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10654         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10655         short lengths and constant src.
10656         (strcpy): Don't optimize for gcc 3.0+.
10657         (__stpcpy): For gcc 3.0+, don't use
10658         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10659         for short string literal src.
10661 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10663         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10664         Set for arm, too.
10666 2001-01-22  Paul Eggert  <eggert@twinsun.com>
10668         * manual/llio.texi (Linked Channels, Cleaning Streams):
10669         Make it clearer that a just-opened input stream might need cleaning.
10671 2002-01-21  H.J. Lu  <hjl@gnu.org>
10673         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10674         Don't use label at end of compound statement.
10676 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
10678         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10679         Remove test for negative integer arg; sin_pi does it correctly.
10681 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
10683         * nscd/Makefile (distribute): Filter out xmalloc.c.
10685 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
10687         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10688         Set offset if read end wasn't the buffer end.
10689         (_IO_file_seekoff_mmap): New function.
10690         (_IO_file_xsgetn_mmap): New function.
10691         (_IO_file_jumps_mmap): Use the two new functions.
10692         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10693         != end buffer.
10694         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10695         _IO_file_underflow_mmap.
10696         * libio/iofopen.c: Don't position file descriptor at end of file.
10697         * libio/tst-widetext.c: Improve error messages.
10698         * stdio-common/tst-rndseek.c: Likewise.
10700 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
10702         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10703         end of enum for !_GNU_SOURCE.
10704         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10705         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10706         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10707         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10708         values unless _GNU_SOURCE.
10710         * iconvdata/tcvn5712-1.c: Minor cleanups.
10712 2002-01-18  Andreas Schwab  <schwab@suse.de>
10714         * sysdeps/unix/sysv/linux/configure.in
10715         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10717 2002-01-16  Roger Sayle  <roger@eyesopen.com>
10719         * stdlib/msort.c (msort_with_tmp): Replace implementation with
10720         more efficient "Towers of Hanoi" mergesort.
10721         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10722         for generic, sizeof(int) and sizeof(long) variants respectively.
10724 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
10726         * manual/syslog.texi (openlog): Describe possible problems with
10727         first parameter.
10728         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10730         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
10731         * nscd/connections.c (begin_drop_privileges): New function.
10732         (finish_drop_privileges): New function.
10733         (nscd_init): Call the new functions which also install all groups
10734         for the server user.
10735         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10736         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10738 2002-01-17  H.J. Lu  <hjl@gnu.org>
10740         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10741         `const' from `got'.
10743 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10745         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10746         instructions for pointer operations.
10747         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10749 2002-01-17  Andreas Jaeger  <aj@suse.de>
10751         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10752         __uint128_t build-in.
10754         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10755         PowerPC, sync with 2.2 branch.
10757 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10759         * posix/getconf.c: Update copyright year.
10760         * nss/getent.c: Likewise.
10761         * nscd/nscd_nischeck.c: Likewise.
10762         * iconv/iconvconfig.c: Likewise.
10763         * iconv/iconv_prog.c: Likewise.
10764         * elf/ldconfig.c: Likewise.
10765         * catgets/gencat.c: Likewise.
10766         * csu/version.c: Likewise.
10767         * elf/ldd.bash.in: Likewise.
10768         * elf/sprof.c (print_version): Likewise.
10769         * locale/programs/locale.c: Likewise.
10770         * locale/programs/localedef.c: Likewise.
10771         * nscd/nscd.c (print_version): Likewise.
10772         * debug/xtrace.sh: Likewise.
10773         * malloc/memusage.sh: Likewise.
10774         * malloc/mtrace.pl: Likewise.
10776 2002-01-16  Andreas Schwab  <schwab@suse.de>
10778         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10779         reliably remove "-ia64" from rtld name.
10781 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10783         * iconvdata/gb18030.c: Bug fixes and support for more characters.
10784         Patch by Yu Shao <yshao@redhat.com>.
10786 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10788         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10789         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10790         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10792 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10794         * sysdeps/s390/fpu/libm-test-ulps: Update.
10796 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
10798         * elf/elf.h: Update x86 relocations.
10800 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10802         * locale/programs/charmap.c (new_width): Check whether byte
10803         sequences for both ends of range have the same length.
10805 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10807         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10809 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10811         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10812         string literals.
10813         (__full_ieee754_sqrt): Add __attribute_used__.
10815 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10817         * sysdeps/generic/group_member.c (__group_member): Also check
10818         groups[0] [PR libc/2781].
10820 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
10822         * Makefile (distribute): Add scripts/cpp.
10823         * elf/Makefile (distribute): Add reldep6mod[01234].c,
10824         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10825         unwind-dw2-fde.h, and dwarf2.h.
10826         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10827         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10828         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10829         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10831 2002-01-07  Roland McGrath  <roland@frob.com>
10833         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10834         volatile on type of ARGC so the compiler doesn't get clever.
10836 2002-01-07  Andreas Jaeger  <aj@suse.de>
10838         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10839         * sysdeps/i386/bits/byteswap.h: Likewise.
10840         * sysdeps/ia64/bits/byteswap.h: Likewise.
10841         * sysdeps/m68k/bits/byteswap.h: Likewise.
10842         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10843         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10845 2002-01-02  Bruno Haible  <bruno@clisp.org>
10847         * intl/plural.y: Fix %expect count.
10849 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10851         * elf/Makefile (routines, shared-only-routines): Add
10852         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10853         * elf/elf.h (PT_GNU_EH_FRAME): Define.
10854         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10855         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10856         Optimize if .eh_frame section contains no FDEs.
10857         (__register_frame, __deregister_frame_info_bases,
10858         __deregister_frame): Likewise.
10859         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10860         DW_CFA_restore handling.
10862 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
10864         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10866         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10867         for x < 0.25 and restore original range reduction method.
10868         (__ieee754_lgammal_r): Make sure signgam is set before returning.
10870 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
10872         * libio/fileops.c (_IO_file_underflow_mmap): New function.
10873         (_IO_file_close_mmap): New function.
10874         (_IO_file_jumps_mmap): New variable.
10875         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10876         trying to convert rest of byte buffer.
10877         (_IO_wfile_underflow_mmap): New function.
10878         (_IO_wfile_jumps_mmap): New variable.
10879         * libio/iofopen.c (__fopen_maybe_mmap): New function.
10880         (__fopen_internal): New function.  Split out from _IO_new_fopen.
10881         (_IO_new_fopen): Call __fopen_internal.
10882         * libio/iofopen64.c: Just call __fopen_internal.
10883         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10884         successfully.
10885         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10886         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10887         _IO_file_close_mmap.
10889         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10890         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10892         * stdio-common/Makefile (tests): Add tst-rndseek.
10893         * stdio-common/tst-rndseek.c: New file.
10895 2002-01-05  Roland McGrath  <roland@frob.com>
10897         * config.h.in (HAVE_MIG_RETCODE): New #undef.
10898         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10899         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10900         * sysdeps/mach/hurd/configure: Regenerated.
10902 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
10904         * elf/elf.h: Add more TLS definitions.
10906 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
10908         * include/features.h (__GLIBC_MINOR__): Bump to 3.
10910 2002-01-02  Roland McGrath  <roland@frob.com>
10912         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10913         __sigisemptyset.  Don't use MASK uninitialized.
10915         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10916         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10917         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10918         __sigdelset, __sigaddset, __sigorset.
10920         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10921         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10923         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10924         _hurd_ports is null.
10926         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10927         for old CMU and new OSF Mach interface flavors.
10928         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10929         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10931         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10933         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10934         Pass extra arguments to task_create for OSF variant.
10935         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10937         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10938         conditional on [HAVE_AUX_VECTOR].
10940         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10941         mach_msg_timeout_t as type of final argument.
10943         * hurd/privports.c (__get_privileged_ports):
10944         Change host_priv_t to mach_port_t in argument type.
10945         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10946         Update decls.
10948         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10949         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
10950         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10951         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10952         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10953         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10955 2002-01-01  Roland McGrath  <roland@frob.com>
10957         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10959 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
10961         * include/stdlib.h: Define inlines for the _l variants of the strto*
10962         functions.
10964 2002-01-01  Roland McGrath  <roland@frob.com>
10966         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10968         * mach/Machrules (MIG): Set CPP as well as CC.
10970 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
10972         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10973         locale to parse /proc/loadavg [PR libc/2760].
10975 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
10977         * elf/dl-conflict.c: Include sys/param.h.
10978         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10979         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10980         warning.
10981         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10982         literals to avoid warnings.
10984 2001-12-31  Andreas Jaeger  <aj@suse.de>
10986         * configure.in: Don't check for gsed since we do not use it anywhere.
10988 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10990         * io/fts.c: Update from BSD to fix memory leaks.
10992 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10994         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10995         * elf/chroot_canon.c: Likewise.
10996         * elf/dl-object.c: Likewise.
10997         * iconv/iconv_charmap.c: Likewise.
10998         * iconv/iconv_prog.c: Likewise.
10999         * libio/iogetdelim.c: Likewise.
11000         * locale/lc-time.c: Likewise.
11001         * stdlib/canonicalize.c: Likewise.
11002         * sunrpc/svc.c: Likewise.
11003         * sysdeps/generic/glob.c: Likewise.
11005 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11007         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
11008         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
11009         remove high order bit from the program counter.
11010         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
11012 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11014         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
11015         unnecessary code and add missing reloc types.
11016         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
11017         case for reloc type R_390_NONE.
11019 2001-12-28  Andreas Jaeger  <aj@suse.de>
11021         * io/bug-ftw3.c: Include string.h for prototypes.
11023         * crypt/md5test.c (main): Remove unused variable.
11025         * dlfcn/modstatic.c: Add prototype to avoid warning.
11027 2001-12-26  Roland McGrath  <roland@frob.com>
11029         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
11030         check only (SS->pending & MASK) for the signal to return.
11031         From Jeroen Dekkers <jeroen@dekkers.cx>.
11033 2001-12-22  Roland McGrath  <roland@frob.com>
11035         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
11036         Use preprocessor #if conditionals instead of `if' to avoid
11037         warnings about divide by zero in dead code.
11039         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
11040         _hurd_port_init, and __hurd_self_sigstate.
11042         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
11044 2001-12-21  Andreas Jaeger  <aj@suse.de>
11046         * elf/dblloadmod1.c: Add prototype to avoid warning.
11047         * elf/dblloadmod2.c: Likewise.
11048         * elf/dblloadmod3.c: Likewise.
11049         * elf/reldepmod5.c: Likewise.
11050         * elf/reldepmod6.c: Likewise.
11052         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
11053         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
11054         used on all architectures.
11056         * sunrpc/svc_tcp.c: Add noreturn attribute for
11057         svctcp_rendezvous_abort.
11058         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
11060         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
11061         to avoid warning.
11063 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
11065         * manual/llio.texi (aio_fsync): Fix a typo.
11066         Patch by Tammy Fox <tfox@redhat.com>.
11068 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
11070         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
11071         stack bias from child stack pointer before passing it to clone syscall.
11073 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
11075         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
11076         _SC_TZNAME_MAX.
11077         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
11078         Reported by Thorsten Kukuk <kukuk@suse.de>.
11080         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
11081         add some casts.
11083         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
11085 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
11087         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
11088         conforming: return EBADF if file descriptor is invalid and EINVAL
11089         if file descriptor is no valid tty.
11090         * login/tst-grantpt.c: New file.
11091         * login/Makefile (tests): Add tst-grantpt.
11093 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
11095         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
11096         different than implemented in last patch.
11097         * io/bug-ftw3.c: Adjust test for changed handling of
11098         inaccessibility of toplevel dir.
11100 2001-12-16  Roland McGrath  <roland@frob.com>
11102         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
11103         * grp/initgroups.c (internal_getgrouplist): Likewise.
11105         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
11106         `default:' to silence new GCC warning.
11107         Rewrite cast of lvalue to silence new GCC warning.
11109         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
11111         * sysdeps/mach/hurd/spawni.c: New file, by me with a
11112         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
11114 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
11116         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
11117         Patch by Stephen R. van den Berg.
11119         * crypt/md5.h: Define md5_uintptr.
11121 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
11123         * libio/tst_swprintf.c (main): Add test for string argument with
11124         zero precision.
11125         * stdio-common/Makefile (tests): Add tst-sprintf.
11126         * stdio-common/tst-sprintf.c: New file.
11128 2001-12-13  Andreas Schwab  <schwab@suse.de>
11130         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
11131         zero precision with wide character string format.
11133 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
11135         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
11136         but have a user supplied buffer, return the empty buffer, not NULL.
11138 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
11140         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
11141         Patch by Eric Sharkey <sharkey@netrics.com>.
11143         * crypt/md5test.c (main): Add test for multiple calls to
11144         __md5_process_bytes to itererate over input string.
11146 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
11148         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
11149         from __nis_findfastest.  Take timeout value from parameter.
11150         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
11151         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
11152         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
11154 2001-12-12  Andreas Jaeger  <aj@suse.de>
11156         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
11157         combreloc test so that it works in this case.
11159         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
11161 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
11163         * sysdeps/sh/Makefile: New file.
11164         * sysdeps/sh/_mcount.S: New file.
11165         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
11166         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
11168 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
11170         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
11171         limitation [PR libc/2564].
11173 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
11175         * elf/Makefile (dl-routines): Add conflict.
11176         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
11177         (ld.so): Add _begin local symbol.
11178         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
11179         Define.
11180         * elf/dl-deps.c (_dl_build_local_scope): New function.
11181         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
11182         of all libraries.
11183         * elf/do-rel.h (VALIDX): Define.
11184         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
11185         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
11186         can be skipped.
11187         * elf/dl-conflict.c: New file.
11188         * elf/dl-lookup.c (_dl_debug_bindings): New function.
11189         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
11190         non-NULL.
11191         (_dl_lookup_symbol_skip): Likewise.
11192         (_dl_lookup_versioned_symbol): Likewise.
11193         (_dl_lookup_versioned_symbol_skip): Likewise.
11194         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
11195         define to ElfW(Rel).
11196         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
11197         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
11198         ranges.
11199         Don't adjust address dynamic tags if l_addr is 0.
11200         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
11201         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
11202         (VALIDX, ADDRIDX): Define.
11203         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
11204         (dl_main): Print library list for LD_TRACE_PRELINKING.
11205         If prelinking information can be used, skip relocating libraries and
11206         call _dl_resolve_conflicts instead.
11207         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
11208         * elf/dl-load.c (_dl_map_object): Don't create fake libs
11209         if LD_TRACE_PRELINKING.
11210         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
11211         + DT_ADDRNUM.
11212         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
11213         (DL_DEBUG_PRELINK): Define.
11214         (_dl_resolve_conflicts): Add prototype.
11216         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
11217         .plt for prelinked libraries where prelinking info cannot be used.
11218         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
11219         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
11220         * sysdeps/arm/bits/link.h: New file.
11221         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
11222         content of .got[1].
11223         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
11224         (ELF_MACHINE_PLT_REL): Define.
11225         (elf_machine_rela, elf_machine_rela_relative): New functions.
11226         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
11227         of adjusting it if prelinked and prelinking cannot be used.
11228         * sysdeps/i386/bits/link.h: New file.
11229         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
11230         content of .got[1].
11231         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
11232         (ELF_MACHINE_PLT_REL): Define.
11233         (elf_machine_rela, elf_machine_rela_relative): New functions.
11234         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
11235         of adjusting it if prelinked and prelinking cannot be used.
11236         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
11237         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
11238         to find out map for R_PPC_JMP_SLOT relocs.
11239         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
11240         (OPCODE_BA): Define.
11241         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
11242         libraries where prelinking info cannot be used.
11243         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
11244         (elf_machine_fixup_plt): Call sparc_fixup_plt.
11245         (elf_machine_rela): Set value to 0 if relocating conflicts.
11246         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
11247         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
11248         (sparc64_fixup_plt): Fix a typo.
11249         (elf_machine_rela): Set value to 0 if relocating conflicts.
11250         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
11251         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
11252         libraries where prelinking info cannot be used.
11253         * sysdeps/sh/bits/link.h: New file.
11254         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
11255         content of .got[1].
11256         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
11257         of adjusting it if prelinked and prelinking cannot be used.
11258         * sysdeps/s390/s390-32/bits/link.h: New file.
11259         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
11260         Save original content of .got[1].
11261         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
11262         of adjusting it if prelinked and prelinking cannot be used.
11263         * sysdeps/s390/s390-64/bits/link.h: New file.
11264         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
11265         Save original content of .got[1].
11266         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
11267         of adjusting it if prelinked and prelinking cannot be used.
11268         * sysdeps/x86_64/bits/link.h: New file.
11269         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
11270         Save original content of .got[1].
11271         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
11272         of adjusting it if prelinked and prelinking cannot be used.
11274 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
11276         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
11277         where appropriate instead of numbers.  Little optimizations.
11279 2001-12-10  Roland McGrath  <roland@frob.com>
11281         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
11282         set it.
11284         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
11285         set to GLIBC_2.2.5, not GLIBC_2.2.4.
11287         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
11288         Fix conditionals so this is set by default for stdio and not for libio.
11289         * sysdeps/mach/hurd/configure: Regenerated.
11291 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
11293         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
11295 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
11297         * io/Makefile (tests): Add bug-ftw3.
11298         * io/bug-ftw3.c: New file.
11300         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
11301         matches and GLOB_NOCHECK is set.
11302         * posix/globtest.sh: Correct expected result for NOCHECK test.
11304         * po/ca.po: Update from translation team.
11306 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
11308         Implement transliteration of characters in strings of the locale
11309         definitions.
11310         * locale/programs/linereader.c: Adjust for additional parameter to
11311         lr_token.
11312         (get_string): If character <Uxxxx> is not found try to transliterate
11313         it.
11314         * locale/programs/ld-ctype.c: Adjust for additional parameter to
11315         lr_token.  Add const to charmap parameter of all functions.
11316         (find_translit, find_translit2): New functions.
11317         * locale/programs/charmap.c: Adjust for additional parameter to
11318         lr_token.
11319         * locale/programs/repertoire.c: Likewise.
11320         * locale/programs/linereader.h: Likewise.
11321         * locale/programs/ld-address.c: Likewise.  Add const to charmap
11322         parameter of all functions.
11323         * locale/programs/ld-collate.c: Likewise.
11324         * locale/programs/ld-identification.c: Likewise.
11325         * locale/programs/ld-measurement.c: Likewise.
11326         * locale/programs/ld-messages.c: Likewise.
11327         * locale/programs/ld-monetary.c: Likewise.
11328         * locale/programs/ld-name.c: Likewise.
11329         * locale/programs/ld-numeric.c: Likewise.
11330         * locale/programs/ld-paper.c: Likewise.
11331         * locale/programs/ld-paper.c: Likewise.
11332         * locale/programs/ld-telephone.c: Likewise.
11333         * locale/programs/ld-time.c: Likewise.
11334         * locale/programs/locfile.c: Likewise.
11335         * locale/programs/localedef.c: Likewise.
11336         * locale/programs/localedef.h: Likewise.
11337         * locale/programs/locfile.h: Likewise.  Add declaration for
11338         find_translit.
11339         * locale/programs/simple-hash.c: Add const to first parameter of
11340         find_entry, iterate_table, and lookup.
11341         * locale/programs/simple-hash.h: Likewise.
11342         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
11343         instead.
11344         * include/locale.h: Define __LC_LAST.
11345         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
11347 2001-12-07  Geoff Keating  <geoffk@redhat.com>
11349         * sysdeps/powerpc/Dist: Update for recent FP changes.
11350         * sysdeps/powerpc/fpu/Dist: Likewise.
11352 2001-12-07  Andreas Schwab  <schwab@suse.de>
11354         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
11356 2001-12-06  Geoff Keating  <geoffk@redhat.com>
11358         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
11359         save/restore functions here.
11360         (libm-support): Don't define these functions here.
11361         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
11362         functions here.
11363         * sysdeps/powerpc/fe_nomask.c: Move to...
11364         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
11365         * sysdeps/powerpc/fprrest.S: Move to...
11366         * sysdeps/powerpc/fpu/fprrest.S: ... here.
11367         * sysdeps/powerpc/fprsave.S: Move to...
11368         * sysdeps/powerpc/fpu/fprsave.S: ... here.
11370 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
11372         * sysdeps/unix/sysv/linux/opensock.c: New file.
11374 2001-12-06  Geoff Keating  <geoffk@redhat.com>
11376         * config.make.in (with-fp): Define from configure.
11377         * configure.in: Substitute with_fp.
11378         * configure: Regenerate.
11379         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
11380         specified, and don't change FPU environment.
11382 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
11384         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
11385         * assert/assert.c: Check result of __asprintf call and don't use
11386         string if it failed.
11387         * assert/assert-perr.c: Likewise.
11388         * inet/rcmd.c: Likewise.
11389         * locale/programs/localedef.c (main): Check result of
11390         construct_output_path and exit if it failed.
11391         (construct_output_path): Check result of asprintf and mkdir calls and
11392         fail if they failed.
11393         * posix/getopt.c: Check result of __asprintf calls and fail if
11394         they failed.
11395         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
11397 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11399         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
11400         patch.
11401         * sysdeps/generic/strncase.c: Likewise.
11402         * string/tester.c: Add tests for strcasecmp and strncasecmp.
11404 2001-12-05  Geoff Keating  <geoffk@redhat.com>
11406         * scripts/cpp: Test the exit status from 'type', not 'awk'.
11408         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
11409         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
11410         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
11411         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
11412         * sysdeps/powerpc/fclrexcpt.c: Move to...
11413         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
11414         * sysdeps/powerpc/fpu_control.h: Move to...
11415         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
11417 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11419         * iconvdata/ibm1129.h: Remove duplicate mappings.
11420         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
11421         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
11422         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11424         * timezone/zic.c: Fix handling of turnaround times.
11425         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
11427 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
11429         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
11430         overflow problem.
11432 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11434         * posix/regex.c: For use outside glibc defined bounded pointer
11435         macros here.  Patch by Jim Meyering <jim@meyering.net>.
11437         * iconvdata/Makefile (modules): Add TCVN5712-1.
11438         * iconvdata/TESTS: Add TCVN5712-1.
11439         * iconvdata/gconv-modules: Likewise.
11440         * iconvdata/tcvn5712-1.c: New file.
11441         * iconvdata/testdata/TCVN-5712: New file.
11442         * iconvdata/testdata/TCVN-5712..UTF8: New file.
11444 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
11446         * iconvdata/cp1258.c: Optimize conversion from UCS4.
11448 2001-12-02  Roland McGrath  <roland@frob.com>
11450         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
11452         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
11453         Reported by Jeff Bailey <jbailey@nisa.net>.
11455         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
11456         Reported by Jeff Bailey <jbailey@nisa.net>.
11458         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
11459         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
11460         Reported by Jeff Bailey <jbailey@nisa.net>.
11462 2001-12-01  Roland McGrath  <roland@frob.com>
11464         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
11465         missing backslash in test arguments.
11466         * sysdeps/mach/hurd/configure: Regenerated.
11468 2001-11-26  Roland McGrath  <roland@frob.com>
11470         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
11471         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
11473 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
11475         * iconvdata/Makefile (modules): Add ARMSCII-8.
11476         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
11477         * iconvdata/armscii-8.c: New file.
11479 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
11481         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
11482         don't match, fix {{a,b},c} globbing, clean up.
11483         Patch by Flavio Veloso <flaviovs@magnux.com>.
11484         * posix/globtest.sh: Add new tests.
11486 2001-11-29  Andreas Jaeger  <aj@suse.de>
11488         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
11489         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
11491         * sysdeps/generic/abort.c: Include libioP.h for
11492         _IO_flush_all_lockp prototype.
11494 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
11496         * posix/regex.h: Define __restrict_arr correctly.
11498 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11500         * iconvdata/ibm1163.c: New file.
11501         * iconvdata/ibm1163.h: New file.
11502         * iconvdata/ibm1164.c: New file.
11503         * iconvdata/ibm1164.h: New file.
11504         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
11505         * iconvdata/Makefile: Likewise.
11506         * iconvdata/testdata/IBM1163: New file.
11507         * iconvdata/testdata/IBM1163..UTF8: New file.
11508         * iconvdata/testdata/IBM1164: New file.
11509         * iconvdata/testdata/IBM1164..UTF8: New file.
11510         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11512         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
11513         * iconvdata/ibm1124.h: Likewise.
11514         * iconvdata/ibm1132.h: Likewise.
11515         * iconvdata/ibm1133.h: Likewise.
11516         * iconvdata/ibm1160.h: Likewise.
11517         * iconvdata/ibm1161.h: Likewise.
11518         * iconvdata/ibm1162.h: Likewise.
11519         * iconvdata/ibm856.h: Likewise.
11520         * iconvdata/ibm922.h: Likewise.
11521         * iconvdata/ibm930.h: Likewise.
11522         * iconvdata/ibm932.h: Likewise.
11523         * iconvdata/ibm933.h: Likewise.
11524         * iconvdata/ibm935.h: Likewise.
11525         * iconvdata/ibm937.h: Likewise.
11526         * iconvdata/ibm939.h: Likewise.
11527         * iconvdata/ibm943.h: Likewise.
11528         * iconvdata/ibm930.c: Pretty printing.
11529         * iconvdata/ibm937.c: Avoid access accross array boundary.
11531         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
11532         the current locale's codeset.
11533         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
11534         empty input string.
11535         * iconv/iconv_prog.c: Pass empty strings as default value for to-
11536         and from-charset.  Don't determine locale's charset here.
11538         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
11539         as the old _IO_flush_all but lock only if parameter is nonzero.
11540         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
11541         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
11542         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
11543         if libio is used [PR libc/2575].
11545 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
11547         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
11548         __signbitl): Only define for ISO C99.
11550 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11552         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
11553         herrnop to NETDB_INTERNAL if we run out of buffer space.
11555 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11557         * nss/nss_files/files-XXX.c (internal_getent): Correct input
11558         overflow test for platforms with signed char.
11559         Reported by Andrew Haley <aph@cambridge.redhat.com>.
11561 2001-11-28  Bruno Haible  <bruno@clisp.org>
11563         * locale/programs/simple-hash.c (lookup_2): Remove function.
11564         (insert_entry_2): Call lookup instead of lookup_2.
11566 2001-03-04  Bruno Haible  <bruno@clisp.org>
11568         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
11570 2001-10-31  Bruno Haible  <bruno@clisp.org>
11572         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
11574 2001-03-21  Bruno Haible  <bruno@clisp.org>
11576         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
11577         chokes on empty macro arguments.
11578         * intl/plural.y: Add #pragma for alloca on AIX 3.
11580 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11582         * intl/dcigettext.c (guess_category_value): Only implement for
11583         glibc.  Otherwise rely on function _nl_locale_name which isn't
11584         present in the glibc sources.
11586 2001-09-24  Bruno Haible  <bruno@clisp.org>
11588         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
11589         transliteration when building on a glibc system but outside glibc.
11591 2001-09-22  Bruno Haible  <bruno@clisp.org>
11593         * intl/plural-eval.c: New file, extracted from dcigettext.c.
11594         * intl/dcigettext.c (plural_eval): Remove function, moved to
11595         intl/plural-eval.c.
11596         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
11597         Include plural-eval.c.
11599 2001-09-22  Bruno Haible  <bruno@clisp.org>
11601         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
11602         don't start with a digit; nplurals must be positive.
11604 2001-09-02  Bruno Haible  <bruno@clisp.org>
11606         * intl/plural-exp.h: New file, extracted from gettextP.h.
11607         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
11608         * intl/gettextP.h (struct expression, struct parse_args,
11609         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
11610         * intl/loadmsgcat.c: Include plural-exp.h.
11611         (PLURAL_PARSE): Move macro to plural-exp.h.
11612         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
11613         plural-exp.c.
11614         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
11615         EXTRACT_PLURAL_EXPRESSION.
11616         (_nl_unload_domain): Update.
11617         * intl/dcigettext.c: Include plural-exp.h.
11618         * intl/plural.y: Include plural-exp.h, not gettextP.h.
11619         (FREE_EXPRESSION): Move macro to plural-exp.h.
11620         * intl/Makefile (routines): Add plural-exp.
11621         (distribute): Add plural-exp.h.
11623 2001-07-28  Bruno Haible  <bruno@clisp.org>
11625         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
11626         isdigit, tolower argument to 'unsigned char'.
11627         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
11628         'unsigned char'.
11629         * intl/localealias.c (read_alias_file): Cast isspace argument to
11630         'unsigned char'.
11632 2001-10-20  Bruno Haible  <bruno@clisp.org>
11634         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
11635         anyway.)
11636         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
11637         with the variable 'index' in plural_lookup.
11638         * intl/l10nflist.c (strchr): Likewise.
11639         * intl/localealias.c (strchr): Likewise.
11641         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11642         * intl/bindtextdom.c: Likewise.
11643         * intl/dcigettext.c: Likewise.
11644         * intl/dgettext.c: Likewise.
11645         * intl/dngettext.c: Likewise.
11646         * intl/explodename.c: Likewise.
11647         * intl/finddomain.c: Likewise.
11648         * intl/gettext.c: Likewise.
11649         * intl/l10nflist.c: Likewise.
11650         * intl/loadmsgcat.c: Likewise.
11651         * intl/localealias.c: Likewise.
11652         * intl/ngettext.c: Likewise.
11653         * intl/textdomain.c: Likewise.
11654         * intl/gettext.h: Assume <limits.h> exists.
11656 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11658         * stdio-common/Makefile (tests): Add scanf11.
11659         * stdio-common/scanf11.c: New file.
11661 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11663         * version.h (RELEASE): Define as development.
11664         (VERSION): Set to 2.2.90.
11666 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11668         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11669         * nis/nss_nis/nis-grp.c: Likewise.
11670         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11672         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11673         * nis/nss_nis/nis-pwd.c: Likewise.
11674         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11676         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11677         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11678         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11680         * nscd/grpcache.c: Use strtoul instead of atol.
11681         * nscd/pwdcache.c: Likewise.
11682         * nss/getent.c: Likewise.
11684 2001-11-27  Paul Eggert  <eggert@twinsun.com>
11686         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11687         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11689 2001-11-19  Bruno Haible  <bruno@clisp.org>
11691         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11692         90%.
11693         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11694         improves the quality of the hash function, especially for short
11695         strings.
11697 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11699         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11700         are found call conv_error and not input_error [PR libc/2669].
11702         * math/bits/mathcalls.h: Mark ceil and floor as const.
11703         Reported by David Mosberger.
11705 2001-11-21  Jim Meyering  <meyering@lucent.com>
11707         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11708         Define to be __-prefixed.
11709         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11711 2001-11-26  Andreas Jaeger  <aj@suse.de>
11713         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11714         avoid warning.
11716 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
11718         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11719         initialization.
11721         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11722         unused variables.  Fix threshold for returning 1.0.
11724         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11725         argument.
11727         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11728         remove unused variables.
11730         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11732         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11733         include local math header files.
11735 2001-11-22  Andreas Jaeger  <aj@suse.de>
11737         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11738         avoid warning.
11740 2001-11-21  Andreas Jaeger  <aj@suse.de>
11742         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11744         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11745         sys/debugreg.h
11747 2001-11-15  Andreas Jaeger  <aj@suse.de>
11749         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11750         compilers that support it.
11752         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11753         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11754         * stdlib/stdlib.h: Likewise.
11756 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
11758         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11759         statement with gotos.
11760         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11762 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
11764         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11766 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
11768         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11770 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
11771             H.J. Lu  <hjl@gnu.org>
11773         * Versions.def (libc): Add GCC_3.0.
11774         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11775         if gcc supports this flag.
11776         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11777         (gcc3): Allow glibc to be compiled with gcc 3.x.
11778         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11779         * config.make.in (static-libgcc, unwind-find-fde): Add.
11780         * Makerules (build-shlib-helper, build-module-helper): Use it.
11781         * scripts/versions.awk: Make sure GLIBC_ versions come first.
11782         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11783         necessary.
11784         (_fini): Call __deregister_frame_info_bases if
11785         __register_frame_info_bases was used to register.
11786         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11787         for GLIBC_2.0.
11788         (__register_frame_info_bases, __register_frame_info_table_bases,
11789         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11790         * elf/Makefile (routines): Add unwind-dw2-fde.
11791         (shared-only-routines): Add unwind-dw2-fde.
11792         * sysdeps/alpha/gccframe.h: New file.
11793         * sysdeps/arm/gccframe.h: New file.
11794         * sysdeps/generic/framestate.c: New file.
11795         * sysdeps/generic/dwarf2.h: New file.
11796         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11797         * sysdeps/generic/unwind-dw2-fde.c: New file.
11798         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11799         * sysdeps/generic/unwind-dw2-fde.h: New file.
11800         * sysdeps/generic/unwind-dw2.c: New file.
11801         * sysdeps/generic/unwind-pe.h: New file.
11802         * sysdeps/generic/unwind.h: New file.
11803         * sysdeps/hppa/gccframe.h: New file.
11804         * sysdeps/i386/gccframe.h: New file.
11805         * sysdeps/m68k/gccframe.h: New file.
11806         * sysdeps/mips/gccframe.h: New file.
11807         * sysdeps/powerpc/gccframe.h: New file.
11808         * sysdeps/s390/gccframe.h: New file.
11809         * sysdeps/sh/gccframe.h: New file.
11810         * sysdeps/sparc/gccframe.h: New file.
11811         * sysdeps/vax/gccframe.h: New file.
11812         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11813         Set on all architectures except ia64.
11814         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11815         for i386.
11816         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11817         __deregister_frame_info): Move to elf/Versions.
11818         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11819         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11820         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11821         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11822         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11823         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11824         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11825         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11826         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11827         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11828         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11829         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11830         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11831         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11832         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11833         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11834         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11835         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11837 2001-11-15  Jeff Law  <law@redhat.com>
11839         * posix/regex.c (uintptr_t): Do not provide a definition if the
11840         system provided one.
11842 2001-11-13  Roland McGrath  <roland@frob.com>
11844         * stdio-common/tmpfile.c: Moved to ...
11845         * sysdeps/generic/tmpfile.c: ... here.
11846         * sysdeps/mach/hurd/tmpfile.c: New file.
11848         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11849         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11850         (fopenport): Define as weak alias.
11852         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11853         * libio/libioP.h: ... to here.
11855 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
11857         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11858         program header twice.  Construct list with the needed information.
11860 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
11862         * po/ca.po: Update from translation team.
11864         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11865         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
11866         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11867         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11869 2001-11-10  Andreas Jaeger  <aj@suse.de>
11871         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11872         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11873         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11875 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11877         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11878         correctly.
11879         * elf/dl-load.c (is_dst): New function.
11880         (_dl_dst_count): Use is_dst to check for DST variable.
11881         (_dl_dst_substitute): Likewise.
11883 2001-11-09  Roland McGrath  <roland@frob.com>
11885         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11886         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11887         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11888         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11889         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11890         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11891         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11892         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11893         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11894         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11895         * sysdeps/mach/hurd/powerpc/Dist: New file.
11897         * hurd/privports.c (__get_privileged_ports):
11898         Only contact the proc server if necessary for this call.
11899         Suggested by Neal H Walfield <neal@cs.uml.edu>.
11900         Check error return for mach_port_mod_refs.
11902 2001-11-09  Andreas Schwab  <schwab@suse.de>
11904         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11906 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11908         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
11909         object is always the last in the list.
11910         (_dl_map_object_from_fd): Delete code to remove from object list
11911         when DF_1_NOOPEN is seen.  This is done in lose.
11913 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
11915         * elf/dl-object.c (_dl_new_object): Various small optimizations.
11917 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
11919         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11920         HWCAP_CHECK macro code.
11922         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11923         Now returns MAP_FAILED on error.
11924         * elf/rtld.c: Adjust caller.
11925         * sysdeps/generic/dl-cache.c: Likewise.
11926         * sysdeps/generic/ldsodefs.h: Adjust description.
11928         * elf/dl-version.c (match_symbol): Optimize error handling for size.
11929         (_dl_check_map_versions): Likewise.
11931 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11933         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11934         _dl_signal_error directly, always use lose.  Set fd to -1 after
11935         file is closed.
11936         (lose): Don't call close if fd == -1.
11938 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
11940         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
11941          Also fix typo @code {mbsinit} to @code{mbsinit}.
11943 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11945         * elf/dl-profile.c: Replace state variable with simple flag named
11946         running.  Remove commented-out code.
11948         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11949         (_dl_init_paths): Likewise.
11950         (_dl_map_object_from_fd): Likewise.
11951         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11953 2001-11-06  Roland McGrath  <roland@frob.com>
11955         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11956         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11958         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11959         sysdeps/powerpc/elf/sysdep.h.
11960         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11962 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11964         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
11965         speed.
11966         (process_envvars): Some more optimizations.
11967         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11969         * elf/elf.h: Add dynamic tag definitions for prelinking.
11971         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11972         Rewrite code to remove environment varables for SUID binaries.
11973         Small optimization in LD_PROFILE handling.
11974         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11975         changes.
11976         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11978         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11980         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11981         strings.  Change type of second parameter.
11982         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11983         for last change.
11985         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11987 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11989         * manual/string.texi: Fix typos.
11990         * manual/examples/argp-ex2.c: Likewise.
11992 2001-11-05  Roland McGrath  <roland@frob.com>
11994         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11995         the more-specific unix/sysv/linux/powerpc file and breaks everything.
11996         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11997         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11998         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11999         here, put under [__ELF__].
12001 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
12003         * manual/charset.texi: Extensive editing work.
12004         * manual/nss.texi: Likewise.
12005         Changes by Dennis Grace <dgrace@us.ibm.com>.
12007 2001-11-04  Roland McGrath  <roland@frob.com>
12009         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
12010         parameter to dir_mkfile.
12012 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
12014         * string/bits/string2.h (__strndup): If n is smaller than len, set
12015         len to n + 1.
12016         * string/tester.c (test_strndup): New function.
12017         (main): Call it.
12019 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
12021         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
12023         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
12024         * scripts/cpp: New file.
12026         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
12027         for rtld_search_dirs content.  Minor optimizations.
12029 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
12031         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
12032         avoiding unnecessary duplication.
12034 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
12036         * elf/dl-load.c (_dl_map_object): If library was found using
12037         LD_LIBRARY_PATH, don't try RUNPATH list.
12039 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12041         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
12042         Correct second argument of register_dump call.
12043         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
12044         Likewise.
12046 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
12048         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
12049         modules.
12050         * iconvdata/TESTS: Likewise.
12051         * iconvdata/gconv-modules: Likewise.
12052         * iconvdata/ibm1132.c: New file.
12053         * iconvdata/ibm1132.h: New file.
12054         * iconvdata/ibm1133.c: New file.
12055         * iconvdata/ibm1133.h: New file.
12056         * iconvdata/ibm1162.c: New file.
12057         * iconvdata/ibm1162.h: New file.
12058         * iconvdata/testdata/IBM1132: New file.
12059         * iconvdata/testdata/IBM1132..UTF8: New file.
12060         * iconvdata/testdata/IBM1133: New file.
12061         * iconvdata/testdata/IBM1133..UTF8: New file.
12062         * iconvdata/testdata/IBM1162: New file.
12063         * iconvdata/testdata/IBM1162..UTF8: New file.
12064         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
12066         * string/string.h: Fix typo in comment.
12067         * wcsmbs/wchar.h: Likewise.
12069 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
12071         * manual/getopt.texi (getopt_long, getopt_long_only): Include
12072         const in type of longopts parameter.
12074 2001-10-29  Andreas Jaeger  <aj@suse.de>
12076         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
12078 2001-10-29  Kevin Ryde  <user42@zip.com.au>
12080         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
12081         output, clarify `#' behaviour on 0.
12082         (Floating-Point Conversions): Clarify that %g only uses %e when
12083         the exponent would be greater than 1.
12085 2001-10-28  Roland McGrath  <roland@frob.com>
12087         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
12088         * sysdeps/mach/powerpc/machine-sp.h: New file.
12089         * sysdeps/mach/powerpc/sysdep.h: New file.
12090         * sysdeps/mach/powerpc/thread_state.h: New file.
12092         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
12093         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
12094         expect to need the same thing on every platform.
12096         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
12097         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
12099         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
12100         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
12101         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
12102         Move all these assembly-related definitions to ...
12103         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
12105         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
12106         by Peter Bruin <pjbruin@dds.nl>.
12108         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
12109         packing results for a `poll' call.
12111 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
12113         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
12114         correctly.
12115         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
12116         bracket expression.
12118         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12119         nrules value.
12120         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
12122 2001-10-24  H.J. Lu  <hjl@gnu.org>
12124         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
12125         Use __BEGIN_DECLS/__END_DECLS around prototypes.
12126         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
12128 2001-10-21  Jim Meyering  <meyering@lucent.com>
12130         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
12131         this code would end up calling gettext even in packages built
12132         with --disable-nls.
12133         * posix/getopt.c (_): Likewise.
12134         * posix/regex.c (_): Likewise.
12136 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
12138         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
12139         lookup not ip6.int.
12140         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
12141         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
12143 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
12145         * misc/sys/cdefs.h (__attribute_used__): Define.
12146         * elf/rtld.c (_dl_start): Add __attribute_used__.
12147         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
12149 2001-10-25  Andreas Schwab  <schwab@suse.de>
12151         * stdlib/a64l.c: Expect least significant digit first.
12152         * stdlib/l64a.c: Produce least significant digit first.
12153         * stdlib/Makefile (tests): Add test-a64l.
12154         * stdlib/test-a64l.c: New file.
12155         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
12157 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
12159         * po/sk.po: Update from translation team.
12161 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
12163         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
12165 2001-10-18  Andreas Schwab  <schwab@suse.de>
12167         * math/libm-test.inc (print_ulps): Print ulp values rounded to
12168         next whole number.
12169         (print_function_ulps): Likewise.
12170         (print_complex_function_ulps): Likewise.
12171         (print_max_error): Likewise.
12172         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
12174 2001-10-16  Andreas Schwab  <schwab@suse.de>
12176         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
12177         implementation.
12179         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
12180         BSD_SETJMP or BSD__SETJMP is defined, resp.
12181         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
12182         a tail call to __sigsetjmp that would require extending the
12183         caller's frame.
12184         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
12185         * sysdeps/m68k/bsd-setjmp.S: Deleted.
12186         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
12187         Reported by Jes Sorensen <jes@trained-monkey.org>.
12189 2001-10-16  Andreas Jaeger  <aj@suse.de>
12191         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
12192         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
12193         close PR libc/2589.
12195 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
12197         * po/ca.po: New file.  Contributed by the translation team.
12199 2001-10-15  Ralf Baechle  <ralf@gnu.org>
12201         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
12202         a varargs prototype.  Remove dependency from kernel header files.
12204         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
12205         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
12207 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
12209         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
12210         to generate hexadecimal identifier.
12211         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
12213 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
12215         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
12217 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
12219         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
12220         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
12221         Contributed by Stephen L Moshier <moshier@mediaone.net>.
12223         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
12224         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12225         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
12226         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
12227         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
12228         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
12230         * timezone/africa: Update from tzdata2001d.
12231         * timezone/asia: Likewise.
12232         * timezone/australasia: Likewise.
12233         * timezone/backward: Likewise.
12234         * timezone/europe: Likewise.
12235         * timezone/leapseconds: Likewise.
12236         * timezone/northamerica: Likewise.
12237         * timezone/southamerica: Likewise.
12238         * timezone/zone.tab: Likewise.
12240 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12242         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
12243         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
12245 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
12247         * elf/elf.h (PT_TLS): New definition.
12249 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
12251         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
12252         bits/errno.h
12254 2001-10-07  Roland McGrath  <roland@frob.com>
12256         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
12258 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
12260         * elf/elf.h: Add more ELFOSABI_* constants.
12262 2001-10-04  Ben Collins  <bcollins@debian.org>
12264         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
12265         decleration of __need_wchar_t.
12267 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
12269         * string/bits/string2.h (__strsep_g): Add prototype.
12270         (__strsep): Use it.
12271         * string/Versions (__strsep): Remove.
12272         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
12274 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
12276         * manua/llio.texi: Clarify file references added by mmap.
12277         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
12279 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
12281         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
12282         Add sc_loadrs and sc_rbs_bas to match current kernel.
12284 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
12286         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
12288         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
12290 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
12292         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
12293         object has been bumped because of relocation dependency, avoid
12294         duplicates in l_scope.
12295         (show_scope): Fix typos.
12296         * elf/Makefile: Add rules to build and run reldep6.
12297         * elf/reldep6.c: New file.
12298         * elf/reldep6mod0.c: New file.
12299         * elf/reldep6mod1.c: New file.
12300         * elf/reldep6mod2.c: New file.
12301         * elf/reldep6mod3.c: New file.
12302         * elf/reldep6mod4.c: New file.
12304 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
12306         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
12307         sparc64_fixup_plt.
12308         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
12309         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
12310         for non-lazy binding. Fix .plt[32768+] handling.
12311         (elf_machine_plt_value): Don't add addend.
12312         (elf_machine_rela): Call sparc64_fixup_plt instead of
12313         elf_machine_fixup_plt.
12314         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
12315         dynamic linker at 0xfffff800XXXXXXXX.
12317         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
12319 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
12321         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
12323 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
12325         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
12326         declare __cmsg_data field if its size would be bigger than 0.
12327         (CMSG_DATA): Adjust accordingly.
12328         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
12329         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
12330         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
12331         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
12332         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12333         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
12334         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12336 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
12338         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
12339         * iconvdata/testdata/IBM1160: New file.
12340         * iconvdata/testdata/IBM1160..UTF8: New file.
12341         * iconvdata/testdata/IBM1161: New file.
12342         * iconvdata/testdata/IBM1161..UTF8: New file.
12343         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
12345 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
12347         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
12348         UL_SETFSIZE computations better.
12350         * rt/Makefile: Remove use of filter for librt again.
12352         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
12353         UL_SETFSIZE computations better.
12355         * string/Versions: Export __strsep for GLIBC_2.2.5.
12356         * string/bits/string2.h: Define all __STRING_INLINE functions if
12357         _FORCE_INLINES is defined.
12358         Use int instead of char of parameter types.
12359         (__strsep): Don't use __strsep_g.  Don't define it.
12360         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
12361         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
12362         __strcpy_small.
12363         (__stpcpy_a_small): Renamed from __stpcpy_small.
12364         (__strcspn_c1): Don't define if _FORCE_INLINES.
12365         (__strspn_c1): Likewise.
12367 2001-09-22  Ben Collins  <bcollins@debian.org>
12369         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
12370         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
12371         * sysdeps/ia64/bits/sigaction.h: Likewise.
12372         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
12374 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
12376         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
12378 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
12380         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
12382 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
12384         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
12386 2001-09-20  H.J. Lu  <hjl@gnu.org>
12388         * include/dlfcn.h (__RTLD_SPROF): New definiton.
12389         * elf/dl-open.c (dl_open_worker): Return immediately after loading
12390         for __RTLD_SPROF.
12391         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
12392         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
12394 2001-09-20  H.J. Lu  <hjl@gnu.org>
12396         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
12397         don't add 1.
12399 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
12401         * nss/getent.c: Accept -s parameter to overwrite rules in
12402         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
12404         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
12405         with as many ".0" as necessary to form a complete address
12406         inet_network understands.
12408         * nss/getent.c: Various cleanups.  Use simpler and fewer function
12409         calls.
12411 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12413         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
12414         _JMPBUF_UNWINDS.
12415         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
12417 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
12419         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
12420         IBM1161.
12421         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
12422         * iconvdata/ibm1160.c: New file.
12423         * iconvdata/ibm1160.h: New file.
12424         * iconvdata/ibm1161.c: New file.
12425         * iconvdata/ibm1161.h: New file.
12426         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
12428 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
12430         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
12431         difference between base address and first PT_LOAD's virtual address,
12432         not the base address.
12434 2001-09-11  Tom Rix  <trix@redhat.com>
12436         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
12437         ifdef for __getopt_clean_environment.
12438         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
12440 2001-09-22  Andreas Jaeger  <aj@suse.de>
12442         * elf/reldep4.c (main): Add proper prototype to fix warning.
12444         * elf/reldep5.c (main): Remove unused variable.
12446         * math/math_private.h: Add prototypes.
12448 2001-09-21  Andreas Jaeger  <aj@suse.de>
12450         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
12451         * sysdeps/x86_64/Dist: New file.
12452         * sysdeps/x86_64/soft-fp/Dist: New file.
12454         * sysdeps/gnu/Dist: Remove eval.c.
12456 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
12458         * malloc/memusage.c (realloc): Don't count already allocated
12459         memory in the sums.
12460         (me): Always use dlsym() to find the real implementations.
12462         * malloc/memusage.sh: Make -n option actually do something.
12464 2001-09-20  Andreas Jaeger  <aj@suse.de>
12466         * elf/elf.h (R_390_NUM): Correct value.
12468         * Versions.def: Add missing versions 2.2.3 for libthread_db and
12469         libpthread.
12471         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
12472         for x86-64, install x86-64 into */lib64.
12474         * shlib-versions: Add x86-64.
12476         * elf/elf.h: Add x86-64 relocations.
12478 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
12480         * po/fr.po: Update from translation team.
12482 2001-09-19  Andreas Jaeger  <aj@suse.de>
12484         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
12485         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
12486         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
12487         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
12488         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
12489         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
12490         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
12491         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
12492         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
12493         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
12494         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
12495         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
12496         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
12497         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
12498         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
12499         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
12500         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
12501         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
12502         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
12503         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
12504         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
12505         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
12506         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
12507         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
12508         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
12509         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
12510         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
12511         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
12512         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
12513         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
12514         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
12515         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
12516         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
12517         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
12518         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
12519         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
12520         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
12521         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
12522         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
12523         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
12524         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
12525         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
12526         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
12527         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
12528         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
12529         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
12530         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
12531         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
12532         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
12533         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
12534         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
12535         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
12536         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
12537         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
12538         * sysdeps/unix/x86_64/sysdep.S: New file.
12539         * sysdeps/unix/x86_64/sysdep.h: New file.
12540         * sysdeps/x86_64/Implies: New file.
12541         * sysdeps/x86_64/Makefile: New file.
12542         * sysdeps/x86_64/Versions: New file.
12543         * sysdeps/x86_64/__longjmp.S: New file.
12544         * sysdeps/x86_64/abort-instr.h: New file.
12545         * sysdeps/x86_64/atomicity.h: New file.
12546         * sysdeps/x86_64/bits/endian.h: New file.
12547         * sysdeps/x86_64/bits/setjmp.h: New file.
12548         * sysdeps/x86_64/bits/string.h: New file.
12549         * sysdeps/x86_64/bp-asm.h: New file.
12550         * sysdeps/x86_64/bsd-_setjmp.S: New file.
12551         * sysdeps/x86_64/bsd-setjmp.S: New file.
12552         * sysdeps/x86_64/dl-machine.h: New file.
12553         * sysdeps/x86_64/elf/initfini.c: New file.
12554         * sysdeps/x86_64/elf/start.S: New file.
12555         * sysdeps/x86_64/ffs.c: New file.
12556         * sysdeps/x86_64/ffsll.c: New file.
12557         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
12558         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
12559         * sysdeps/x86_64/fpu/e_acosl.c: New file.
12560         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
12561         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
12562         * sysdeps/x86_64/fpu/e_expl.c: New file.
12563         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
12564         * sysdeps/x86_64/fpu/e_log10l.S: New file.
12565         * sysdeps/x86_64/fpu/e_log2l.S: New file.
12566         * sysdeps/x86_64/fpu/e_logl.S: New file.
12567         * sysdeps/x86_64/fpu/e_powl.S: New file.
12568         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
12569         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
12570         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
12571         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
12572         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
12573         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
12574         * sysdeps/x86_64/fpu/fegetenv.c: New file.
12575         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
12576         * sysdeps/x86_64/fpu/fegetround.c: New file.
12577         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
12578         * sysdeps/x86_64/fpu/fesetenv.c: New file.
12579         * sysdeps/x86_64/fpu/fesetround.c: New file.
12580         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
12581         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
12582         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
12583         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
12584         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
12585         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
12586         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
12587         * sysdeps/x86_64/fpu/s_atanl.c: New file.
12588         * sysdeps/x86_64/fpu/s_cosl.S: New file.
12589         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
12590         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
12591         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
12592         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
12593         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
12594         * sysdeps/x86_64/fpu/s_logbl.c: New file.
12595         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
12596         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
12597         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
12598         * sysdeps/x86_64/fpu/s_rintl.c: New file.
12599         * sysdeps/x86_64/fpu/s_significandl.c: New file.
12600         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
12601         * sysdeps/x86_64/fpu/s_sinl.S: New file.
12602         * sysdeps/x86_64/fpu/s_tanl.S: New file.
12603         * sysdeps/x86_64/gmp-mparam.h: New file.
12604         * sysdeps/x86_64/hp-timing.c: New file.
12605         * sysdeps/x86_64/hp-timing.h: New file.
12606         * sysdeps/x86_64/htonl.S: New file.
12607         * sysdeps/x86_64/memusage.h: New file.
12608         * sysdeps/x86_64/setjmp.S: New file.
12609         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
12610         * sysdeps/x86_64/stackinfo.h: New file.
12611         * sysdeps/x86_64/sysdep.h: New file.
12612         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
12614         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
12615         L Moshier.
12617 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12619         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
12620         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
12622 2001-09-18  Andreas Schwab  <schwab@suse.de>
12624         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
12625         list, now that l_scope is a pointer.
12627         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
12628         scope list.
12630 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12632         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
12633         (elf_machine_rela_relative): Add a missing declaration.
12635 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
12637         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
12638         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
12639         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
12640         ldd-rewrite scripts.
12642 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12644         * elf/ldd.bash.in: Update copyright message.
12646 2001-09-17  H.J. Lu  <hjl@gnu.org>
12648         * hurd/hurdmalloc.c (bcopy): Removed.
12649         (realloc): Replace bcopy with memcpy.
12650         * hurd/path-lookup.c (file_name_path_scan): Likewise.
12651         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12652         * sunrpc/rpcinfo.c (pmapdump): Likewise.
12654         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12655         (gethostbyaddr): Likewise.
12656         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12658 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12660         * sysdeps/gnu/eval.c: Removed.
12662 2001-09-18  Andreas Jaeger  <aj@suse.de>
12664         * sysdeps/i386/fpu/s_logbl.S: Move to ...
12665         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12667         * sysdeps/i386/fpu/s_rintl.S: Move to ...
12668         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12670         * sysdeps/i386/fpu/s_significandl.S: Move to ...
12671         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12673 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
12675         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12676         nrules value.
12678 2001-09-14  H.J. Lu  <hjl@gnu.org>
12680         * sysdeps/mips/fpu/libm-test-ulps: Updated.
12682 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
12684         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12685         Patch by Florian La Roche <laroche@redhat.com>.
12687         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12689         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12690         ETHER_CRC_LEN.
12692 2001-09-14  Andreas Schwab  <schwab@suse.de>
12694         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
12695         Sumner <bls@sgi.com>.
12696         * posix/execlp.c: Likewise.
12698 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
12700         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12701         is already found earlier in the search scope.
12703 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
12705         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12706         filter.
12708 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
12710         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12712 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
12714         * config.h.in: Enforce optimization to be used.
12715         * Makeconfig (preprocess-versions): Define ASSEMBLER.
12716         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12717         * posix/Makefile (annexc-CFLAGS): Define to -O.
12718         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12720 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
12722         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12723         Patch by Stephan Kulow.
12725 2001-09-08  Ben Collins  <bcollins@debian.org>
12727         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12728         usage of RESOLVE() (r_type, not reloc->r_type).
12730 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12732         * elf/dl-object.c: Avoid allocating extra memory block for name.
12733         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12734         allocated separately.
12735         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12737 2001-09-08  H.J. Lu  <hjl@gnu.org>
12739         * po/zh_TW.po: Fix a typo.
12741 2001-09-07  Tom Rix  <trix@redhat.com>
12743         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12745 2001-08-26  Tom Rix  <trix@redhat.com>
12747         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12748         command line options.
12749         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12750         * sysdeps/unix/sysv/aix/start.c: Removed.
12751         * sysdeps/unix/sysv/aix/start-libc.c: New file.
12752         * sysdeps/unix/sysv/aix/init-first.c: New file.
12753         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12755 2001-09-08  Ben Collins  <bcollins@debian.org>
12757         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12758         * sysdeps/generic/dl-machine.h: Likewise.
12759         * sysdeps/hppa/dl-fptr.c: Likewise.
12760         * sysdeps/ia64/dl-fptr.c: Likewise.
12761         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12762         * sysdeps/mips/dl-machine.h: Likewise.
12763         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12764         * sysdeps/powerpc/dl-machine.c: Likewise.
12766 2001-09-07  Ben Collins  <bcollins@debian.org>
12768         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12770         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12772 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12774         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12775         dependencies if necessary.
12777         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12778         loaded directly) determine length if l_initfini list by iterating
12779         over its elements.  Minor optimizations.
12780         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12781         for dependency objects.
12782         If object was already loaded check whether any of the dependencies
12783         is already on the relocation dependency list.  If yes, remove the
12784         latter.  Minor optimizations.
12785         * elf/dl-lookup.c (add_dependency): Add check for self reference of
12786         maps here.  Search l_initfini list only if the object was loaded
12787         directly and not only as a dependency.
12788         (_dl_lookup_symbol): Add relocation dependency also if object
12789         is not in global scope.  Remove test for self-reference here.
12790         (_dl_lookup_versioned_symbol): Likewise.
12791         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
12792         element of first name record.
12793         * elf/loadtest.c: Add some more test to recognize early if an object
12794         wasn't unloaded.
12795         * elf/Makefile: Add rules to build and run reldep5.
12796         * elf/reldep5.c: New file.
12797         * elf/reldepmod5.c: New file.
12798         * elf/reldepmod6.c: New file.
12800         * elf/reldep2.c: Fix typo.
12802 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
12804         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12805         elements.  Change l_scope to be a pointer only.
12806         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12807         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12808         here add searchlist of newly open file to the dependency's scope.
12809         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12810         only searchlist from its scope.  Free own scope array if necessary.
12811         * elf/Makefile (tests): Add dblload and dblunload now.
12813 2001-09-06  Andreas Jaeger  <aj@suse.de>
12815         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12816         Stephen L Moshier.
12818 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
12820         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
12821         they both fail.
12822         * elf/dblload.c: New file.
12823         * elf/dblloadmod1.c: New file.
12824         * elf/dblloadmod2.c: New file.
12825         * elf/dblloadmod3.c: New file.
12826         * elf/dblunload.c: New file.
12828 2001-09-04  Richard Henderson  <rth@redhat.com>
12830         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12831         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12833 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12835         Correct very misleading message for error in failed runtime relocation.
12836         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12837         place of the error.
12838         (_dl_signal_cerror): Likewise.
12839         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12840         * elf/dl-close.c: Likewise.
12841         * elf/dl-deps.c: Likewise.
12842         * elf/dl-load.c: Likewise.
12843         * elf/dl-lookup.c: Likewise.
12844         * elf/dl-open.c: Likewise.
12845         * elf/dl-reloc.c: Likewise.
12846         * elf/dl-sym.c: Likewise.
12847         * elf/dl-version.c: Likewise.
12848         * sysdeps/generic/dl-sysdep.c: Likewise.
12850 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12852         * iconv/strtab.c (strtabinit): Initialize null Strent.
12853         (newstring): Move len == 0 handling...
12854         (strtabadd): ...here.
12855         If len == 1, return null Strent.
12856         When inserting a suffix of an existing string, check if
12857         it is not equal to some suffix already recorded.
12858         Copy left and right members over if adding longer string.
12860 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12862         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12864         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12865         (__syscall_gethostname): Add prototype.
12867 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12869         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12871 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
12873         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12875 2001-08-27  Roland McGrath  <roland@frob.com>
12877         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12878         short, copy that much into NAME anyway before returning error.
12880 2001-09-01  Richard Henderson  <rth@redhat.com>
12882         * sysdeps/alpha/elf/Dist: Remove file.
12883         * sysdeps/alpha/elf/Makefile: Remove file.
12884         * sysdeps/alpha/elf/crtbegin.S: Remove file.
12885         * sysdeps/alpha/elf/crtend.S: Remove file.
12886         * sysdeps/alpha/elf/initfini.c: New file.
12888 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
12890         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12891         * iconv/tst-iconv3.c: Likewise.
12893 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
12895         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12897 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
12899         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12900         export it.
12901         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12902         * iconv/iconv_prog.c (insert_cache): New function.
12903         (print_known_names): If cache is used call insert_cache to use the
12904         information from the cache [PR libc/2509].
12906 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
12908         * time/strptime.c (strptime_internal): Recognize 'l' format and
12909         handle it like 'I' for symmetry with strftime.
12911 2001-08-31  Richard Henderson  <rth@redhat.com>
12913         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12914         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12915         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12916         (print_statistics): Make scalar unsigned long long.
12917         * sysdeps/alpha/hp-timing.h: New file.
12919 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12921         * stdio-common/perror.c (perror): Save errno early, pass it
12922         down to perror_internal.
12923         (perror_internal): Add errnum argument.
12925 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12927         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12928         Don't add old memory content for R_ALPHA_REFQUAD.
12930 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12932         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12933         memory correctly.
12935         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12936         instead of open, __close instead of close, __getpagesize instead
12937         of getpagesize.
12939         * string/argz-stringify.c (__argz_stringify): Use __strnlen
12940         instead of strnlen.
12941         * include/string.h (strndupa): Redefine here to use __strnlen
12942         instead of strnlen.
12943         * string/strndup.c (__strndup): Use __strnlen not strnlen.
12945         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12946         connected).
12948 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12950         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12951         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
12952         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12953         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12954         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12955         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12956         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12958 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12960         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12962 2001-08-30  Andreas Jaeger  <aj@suse.de>
12964         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12965         contributed Stephen L Moshier.
12967 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12969         * sunrpc/etc.rpc (sgi_fam): Add.
12971 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12973         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12975 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12977         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12978         first is from a previous call.
12979         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12981 2001-08-29  Andreas Schwab  <schwab@suse.de>
12983         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12985 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12987         * config.make.in (INSTALL_SCRIPT): Define.
12988         * Makeconfig (INSTALL_SCRIPT): Define.
12989         * Makerules (do-install-script): New macro to install scripts using
12990         INSTALL_SCRIPT.
12991         (install-bin-script): New rule to install scripts with
12992         do-install-script.
12993         (install-bin-script-nosubdir): New rule.
12994         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12995         (distinfo-vars): Add $(install-bin-script).
12996         * Rules (others): Likewise.
12997         * Makefile (glibcbug): Install with install-bin-script.
12998         * debug/Makefile (xtrace): Likewise.
12999         (catchsegv): Likewise.
13000         * elf/Makefile (ldd): Likewise.
13001         * malloc/Makefile (mtrace): Likewise.
13002         * timezone/Makefile (tzselect): Likewise.
13004 2001-08-29  H.J. Lu  <hjl@gnu.org>
13006         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
13007         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
13008         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
13010 2001-08-29  Andreas Schwab  <schwab@suse.de>
13012         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
13014 2001-08-28  H.J. Lu  <hjl@gnu.org>
13016         * Makeconfig (combreloc-LDFLAGS): New variable.
13017         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
13018         * config.make.in (have-z-combreloc): New variable.
13019         * configure.in: Substitute libc_cv_z_combreloc.
13021 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
13023         * po/sv.po: Update from translation team.
13024         * po/fr.po: Likewise.
13025         * po/da.po: Likewise.
13027 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
13029         * Makerules: Fix a typo: MD% -> MD5.
13031 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
13033         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
13034         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
13036 2001-08-28  Andreas Jaeger  <aj@suse.de>
13038         * manual/libc-texinfo.sh: Add entry about free manuals.
13040         * manual/contrib.texi (Contributors): Fix cross reference.
13042         * manual/libc.texinfo (Copying): Include freemanuals.
13044         * manual/Makefile (appendices): Add freemanuals.
13046         * manual/freemanuals.texi: New file.
13047         Patch by Brian Youmans <3diff@gnu.org>.
13049         * manual/libm-err-tab.pl: Pretty print more platforms, print a
13050         smaller table.
13052         * manual/math.texi (Errors in Math Functions): Fix grammar, start
13053         table on separate page.
13054         Patch by Brian Youmans <3diff@gnu.org>.
13056 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
13058         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
13059         the connection went down after we first used it try to connect
13060         again and resend the message before printing to the console.
13061         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
13063 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
13065         * string/tst-strlen.c (main): Test strnlen (, -1) too.
13066         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
13067         bit set.
13069 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
13071         * iconv/strtab.c (searchstring): Use correct length for comparison.
13072         (strtabadd): Account total size correct if new string has old string as
13073         substring.
13075 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
13077         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
13079 2001-08-27  Andreas Jaeger  <aj@suse.de>
13081         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
13083         * math/libm-test.inc (j0_test): Add extra tests.
13084         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
13085         not x, in Hankel approximation.
13086         Patches by Stephen L Moshier.
13088 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
13090         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
13091         link_map.
13093         * configure.in: Fix test for .rela.dyn section.
13095         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
13097 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
13099         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
13100         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
13101         Pass type_class to _dl_lookup_*.
13102         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
13103         Pass around just type_class instead of noexec, noplt pair.
13104         (_dl_lookup_versioned_symbol): Likewise.
13105         (_dl_lookup_symbol_skip): Pass around just type_class instead of
13106         noexec, noplt pair.
13107         (_dl_lookup_versioned_symbol_skip): Likewise.
13108         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
13109         * elf/do-lookup.h (do_lookup): Likewise.
13110         * include/link.h (struct link_map): Replace noexec and noplt fields
13111         in l_lookup_cache with type_class field.
13112         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
13113         ELF_RTYPE_CLASS_COPY): Define.
13114         Adjust prototypes for _dl_lookup_symbol and
13115         _dl_lookup_versioned_symbol.
13116         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
13117         elf_machine_lookup_noexec_p): Remove.
13118         (elf_machine_type_class): Define.
13119         * sysdeps/arm/dl-machine.h: Likewise.
13120         * sysdeps/hppa/dl-machine.h: Likewise.
13121         * sysdeps/cris/dl-machine.h: Likewise.
13122         * sysdeps/i386/dl-machine.h: Likewise.
13123         * sysdeps/ia64/dl-machine.h: Likewise.
13124         * sysdeps/m68k/dl-machine.h: Likewise.
13125         * sysdeps/mips/mips64/dl-machine.h: Likewise.
13126         * sysdeps/mips/dl-machine.h: Likewise.
13127         * sysdeps/powerpc/dl-machine.h: Likewise.
13128         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13129         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13130         * sysdeps/sh/dl-machine.h: Likewise.
13131         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13132         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13134 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
13136         * manual/message.texi (Advanced gettext functions): Change
13137         description of plural forms for Slovak.
13138         Reported by Marcel Telka <marcel@telka.sk>.
13140         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
13141         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
13143 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
13145         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
13146         typo.  Patch by Florian La Roche <laroche@redhat.com>.
13148 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
13150         * include/link.h (struct link_map): Add l_lookup_cache element.
13151         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
13152         (RESOLVE_MAP): Likewise.
13153         (_dl_relocate_object): Remove cache initialization.
13154         * elf/dl-lookup.c: Rip out cache handling code.
13155         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
13156         declarations.
13158         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
13159         remove some __builtin_expect.
13160         (_dl_lookup_versioned_symbol): Likewise.
13162         * config.h.in: Add HAVE_Z_COMBRELOC.
13163         * configure.in: Add test for -z combreloc.
13165         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
13166         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
13167         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
13168         case to almost no code.
13170 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
13172         * po/tr.po: Update from translation team.
13174 2001-08-24  Andreas Jaeger  <aj@suse.de>
13176         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
13177         make clean works.
13179 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13181         * elf/rtld.c (print_statistics): Printf % after percent values.
13182         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
13184         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
13185         don't have to compute the hash value and initialize current_value.
13186         Move reference_name variable to where it is needed.
13187         (_dl_lookup_versioned_symbol): Likewise.
13189 2001-08-24  Roland McGrath  <roland@frob.com>
13191         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
13192         Just test that strerror returns non-null for a few errno codes.
13194 2001-08-23  Roland McGrath  <roland@frob.com>
13196         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
13197         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
13199         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
13201         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
13202         __mach_reply_port.
13204 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13206         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
13207         returns NULL.
13209         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
13210         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
13211         doesn't do it.
13212         * elf/rtld.c: Include <sys/param.h>.
13213         * elf/dl-reloc.c: Likewise.
13215 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
13217         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
13218         empty to prevent junk from being generated.
13219         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
13221 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
13223         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
13224         records.  Rename endrel to relative, initialize it to r, and use it
13225         in elf_machine_rel_relative calls.  Point r after relative relocs.
13227 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13229         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
13230         of R_386_NONE.
13232 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
13234         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
13235         necessary.  Undefine newly defined macros at the end.
13236         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
13237         Rename from elf_machine_rel_relative.
13238         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
13239         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
13240         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
13241         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
13242         Likewise.
13243         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
13244         Likewise.
13245         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
13246         Fix argument types.
13247         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
13248         Fix argument types.
13249         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
13250         Likewise.  Fix argument types.
13251         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
13252         Likewise.  Fix argument types.
13253         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
13254         Fix argument types.
13255         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
13256         ElfW(Rel) in argument.
13257         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
13258         function.
13260 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
13262         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
13264 2001-08-24  Andreas Jaeger  <aj@suse.de>
13266         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
13267         Stephen L Moshier <moshier@mediaone.net>.
13269 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13271         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
13272         first if RELCOUNT is set.
13274         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
13275         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
13276         elf_machine_rel_relative.
13277         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
13278         Minor optimizations.
13279         * sysdeps/arm/dl-machine.h: Likewise.
13280         * sysdeps/cris/dl-machine.h: Likewise.
13281         * sysdeps/hppa/dl-machine.h: Likewise.
13282         * sysdeps/i386/dl-machine.h: Likewise.
13283         * sysdeps/ia64/dl-machine.h: Likewise.
13284         * sysdeps/m68k/dl-machine.h: Likewise.
13285         * sysdeps/mips/dl-machine.h: Likewise.
13286         * sysdeps/powerpc/dl-machine.h: Likewise.
13287         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13288         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13289         * sysdeps/sh/dl-machine.h: Likewise.
13290         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13291         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13293 2001-08-23  Roland McGrath  <roland@frob.com>
13295         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
13297         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
13298         sysdeps/mach version.  Implement counting ("recursive") mutexes
13299         on top of cthreads mutexes.
13300         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
13302         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
13303         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
13304         (__libc_cleanup_region_start, __libc_cleanup_region_end,
13305         __libc_clean_end): Define these to call the cleanup function after
13306         normal exit when they're supposed to.
13308         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
13309         Take new first arg DOIT, a boolean saying whether to really install
13310         any cleanup handler.
13311         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
13312         (__libc_cleanup_end): Likewise.
13313         * sysdeps/generic/bits/libc-lock.h: Same changes.
13314         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
13315         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
13316         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
13317         Likewise.
13318         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
13319         * sysdeps/generic/bits/stdio-lock.h
13320         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
13322 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13324         * elf/ldconfig.c (search_dir): Remove stale symlinks.
13326 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13328         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
13329         functions.
13330         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
13331         lookups in cache.
13332         (_dl_lookup_versioned_symbol): Likewise.
13333         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
13334         relocation lookup.
13335         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
13336         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
13337         (lookup_cache, lookup_cache_versioned): Add declarations.
13339 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
13341         * stdlib/tst-random.c (main): Swap parameters in fail call.
13342         Patch by Pete Bevin <pete@petebevin.com>.
13344 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13346         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
13348 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
13350         * malloc/obstack.c: Indent preprocessor directives.
13351         Patch by Jim Meyering <meyering@ascend.com>.
13353         * po/ja.po: Update from translation team.
13355 2001-08-23  Roland McGrath  <roland@frob.com>
13357         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
13359         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
13360         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
13362 2001-08-22  Roland McGrath  <roland@frob.com>
13364         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
13365         __libc_lock_define_recursive.
13366         * elf/dl-open.c: Don't declare it here any more.
13367         * elf/dl-close.c: Likewise.
13368         * elf/dl-lookup.c: Likewise.
13369         * elf/dl-iteratephdr.c: Likewise.
13370         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
13371         __libc_lock_unlock_recursive.
13372         * elf/dl-close.c (_dl_close): Likewise
13373         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
13374         * elf/dl-open.c (_dl_open): Likewise
13376         * sysdeps/generic/bits/libc-lock.h
13377         (__libc_lock_define_recursive): New macro.
13378         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
13379         (_IO_lock_lock): Use __libc_lock_lock_recursive.
13380         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
13382         * conform/conformtest.pl (checknamespace): Sort the output list.
13384         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
13385         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
13386         definitions conditional on [__USE_XOPEN].
13388         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
13389         these unconditionally, not only use [__USE_BSD], so as to match
13390         the sysdeps/unix/sysv/linux files.
13392 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13394         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
13395         avoid warnings.
13397         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
13398         DL_LOOKUP_ADDRESS.
13400 2001-08-22  Roland McGrath  <roland@frob.com>
13402         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
13403         conditionalization of sa_handler/sa_sigaction member types to
13404         match the sysdeps/unix/sysv/linux file.
13406 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13408         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
13409         symbol sizes a bit better.
13411         * sysdeps/ia64/strncpy.S: Complete rewrite.
13412         Contributed by Jakub Jelinek <jakub@redhat.com>.
13414         * string/stratcliff.c (main): Add strncpy test.
13416 2001-08-22  Roland McGrath  <roland@frob.com>
13418         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
13419         and don't declare unsetenv or _environ directly.
13420         (unsetenv): Return int, not void.  Use __environ instead of _environ.
13422 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
13424         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
13425         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
13426         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
13427         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
13428         test for cmsg struct size.
13430 2001-04-23  Paul Eggert  <eggert@twinsun.com>
13432         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
13433         Rename __argc to ___argc in prototypes to avoid compatibility
13434         problems with systems that reserve the identifier "__argc".
13435         Similarly for __argv.
13437 2001-08-21  Roland McGrath  <roland@frob.com>
13439         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
13441         * mach/Makefile (tests): Removed.
13442         * mach/hello.c: File removed.
13444 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13446         * po/sv.po: Update from translation team.
13448         * stdio-common/vfscanf.c: Fix handling of %l[].
13449         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
13451         * libio/Makefile (tests): Add tst-sscanf.
13452         * libio/tst-sscanf.c: New file.
13454         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
13455         * malloc/mtrace.c (tr_where): dli_sname always points to a
13456         non-empty string if != NULL.
13457         Reported by Tim Janik <timj@gtk.org>.
13459 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
13461         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
13462         buf.  Free resources on failure.
13463         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
13464         (makefd_xprt): Likewise.
13465         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
13466         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
13467         * sunrpc/auth_unix.c (authunix_create): Likewise.
13469 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
13471         * string/strnlen.c: Remove.
13472         * sysdeps/generic/strnlen.c: New file.
13473         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
13475 2001-08-21  Roland McGrath  <roland@frob.com>
13477         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
13478         as a macro, not an extern inline function.
13480         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
13481         * Versions.def (libc): Add GLIBC_2.2.5 set.
13482         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
13483         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
13485 2001-08-20  Roland McGrath  <roland@frob.com>
13487         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
13488         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
13490 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
13492         * string/bits/string2.h: Remove strnlen optimization here.
13493         * sysdeps/i386/i486/bits/string.h: Add it here.
13495 2001-08-21  Wolfram Gloger  <wg@malloc.de>
13497         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
13499 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
13501         * po/gl.po: Update from translation team.
13503 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13505         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
13506         * misc/err.c (convert_and_print): Likewise.
13508         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
13509         function calls.
13511 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13513         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
13514         change of the gregset_t type.
13515         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13517 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
13519         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
13521 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13523         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
13525         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
13527 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
13529         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
13530         before calling the cthreads initialization code.
13532 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13534         * argp/argp-help.c: Fix two problems introduced in last change.
13536         * include/dirent.h: Include <dirstream.h> first.
13538 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
13540         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
13542         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
13543         * sunrpc/xdr_rec.c: Likewise.
13544         * sunrpc/xdr_mem.c: Likewise.
13545         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
13546         * sunrpc/rpc_cmsg.c: Likewise.
13547         * sunrpc/getrpcport.c (getrpcport): Likewise.
13548         * sunrpc/clnt_simp.c (callrpc): Likewise.
13549         * sunrpc/clnt_gen.c (clnt_create): Likewise.
13550         * string/envz.c: Likewise.
13552         * po/ko.po: Update from translation team.
13554         * argp/argp-help.c: Handle wide oriented stderr stream.
13556 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
13558         * sysdeps/generic/strtol.c: Little optimizations.  Add some
13559         __builtin_expect.
13561         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
13563         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
13564         * wcsmbs/wcwidth.c (wcwdith): Likewise.
13565         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
13567         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
13569         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
13571         * time/time.h (struct timespec): Use __time_t for tv_sec element.
13573         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
13574         wchar_t for function declarations and defintions.
13576         * misc/sys/select.h: Define __need_time_t before including <time.h>.
13577         Define suseconds_t if it hasn't happened yet.
13579         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
13581         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
13583         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
13584         <stddef.h>.
13586         * conform/data/stddef.h-data: Remove wint_t.
13588         * conform/conformtest.pl: Change namespace test to take #undef
13589         lines into account.
13591         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
13593         * conform/data/sys/socket.h-data: Add sockatmark.
13595 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13597         * io/fts.c: Update from recent BSD source.
13599 2001-08-17  Roland McGrath  <roland@frob.com>
13601         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
13602         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
13603         Likewise.
13605 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13607         * locale/duplocale.c (__duplocale): Also initialize the special
13608         __ctype_* elements.
13610         * conform/data/netdb.h-data: Adjust gai_strerror return type.
13612 2001-08-17  Andreas Jaeger  <aj@suse.de>
13614         * misc/getpass.c: Include wchar.h for prototypes.
13615         * malloc/obstack.c: Likewise.
13617 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13619         * sunrpc/svc_simple.c (universal): Use __write instead of write.
13621         * wcsmbs/wcscoll.c: Also define __wcscoll.
13622         * include/wchar.h: Declare __wcscoll.
13624         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
13625         * libio/vwprintf.c: Likewise.
13626         * libio/wprintf.c: Likewise.
13628         * iconv/gconv_cache.c: Use __munmap instead of munmap.
13630 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
13632         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
13633         instead of mbrtowc.
13634         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
13635         wcslen, and __wcscoll instead of wcscoll.
13637         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
13639         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
13640         __getuid instead of getuid.
13642         * stdio-common/perror.c (perror): Use __close instead of close.
13643         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13644         * libio/freopen.c (freopen): Likewise.
13645         * libio/freopen64.c (freopen64): Likewise.
13647         * libio/tst-ungetwc2.c (main): Define str const.
13649         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13650         * libio/fwprintf.c: Also define __fwprintf.
13651         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13652         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13653         * assert/assert-perr.c: Likewise.
13654         * assert/assert.c: Likewise.
13655         * gmon/gmon.c: Likewise.
13656         * inet/rcmd.c: Likewise.
13657         * malloc/obstack.c: Likewise.
13658         * misc/err.c: Likewise.
13659         * misc/error.c: Likewise.
13660         * misc/getpass.c: Likewise.
13661         * posix/getopt.c: Likewise.
13662         * resolv/res_hconf.c: Likewise.
13663         * stdio-common/perror.c: Likewise.
13664         * stdio-common/psignal.c: Likewise.
13665         * stdlib/fmtmsg.c: Likewise.
13666         * sunrpc/auth_unix.c: Likewise.
13667         * sunrpc/clnt_perr.c: Likewise.
13668         * sunrpc/clnt_tcp.c: Likewise.
13669         * sunrpc/clnt_udp.c: Likewise.
13670         * sunrpc/clnt_unix.c: Likewise.
13671         * sunrpc/svc_simple.c: Likewise.
13672         * sunrpc/svc_tcp.c: Likewise.
13673         * sunrpc/svc_udp.c: Likewise.
13674         * sunrpc/svc_unix.c: Likewise.
13675         * sunrpc/xdr.c: Likewise.
13676         * sunrpc/xdr_array.c: Likewise.
13677         * sunrpc/xdr_rec.c: Likewise.
13678         * sunrpc/xdr_ref.c: Likewise.
13679         * sysdeps/generic/wordexp.c: Likewise.
13681         * po/it.po: Update from translation team.
13683         * misc/err.c: Handle wide oriented stderr stream.
13685 2001-08-14  Tom Rix  <trix@redhat.com>
13687         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13688         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13690 2001-08-13  Tom Rix  <trix@redhat.com>
13692         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13693         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13694         and __intptr_t.
13696 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13698         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13699         Store the access registers to the ucontext structure.
13700         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13701         Likewise.
13703         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13704         Load the access registers from the ucontext structure.
13705         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13706         Likewise.
13708         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13709         offsets to the new ucontext layout.
13710         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13712         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13713         of the ucontext structure.
13714         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13716 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
13718         * misc/error.c (error): Handle wide oriented stderr stream correctly.
13719         (error_at_line): Likewise.
13721         * stdio-common/perror.c (perror): Implement according to standard.
13722         The stream orientation must not be changed if the stream was not
13723         oriented before the call.
13724         * stdio-common/Makefile (tests): Add tst-perror.
13725         * stdio-common/tst-perror.c: New file.
13728 See ChangeLog.12 for earlier changes.