* sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
[glibc.git] / ChangeLog
blob677d60fe7ce2e920a9b26d7825ea9b5b84015a9b
1 2002-10-01  Carlos O'Donell  <carlos@baldric.uwo.ca>
3         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
4         [__USE_GNU] (F_SETLEASE, F_GETLEASE, F_NOTIFY): New macros.
5         [__USE_GNU] (DN_ACCESS, DN_MODIFY, DN_CREATE, DN_DELETE, DN_RENAME,
6         DN_ATTRIB, DN_MULTISHOT): New macros.
8 2002-02-08  Randolph Chung  <tausq@debian.org>
10         * sysdeps/hppa/elf/start.S: Define __data_start.
12 2002-10-01  Isamu Hasegawa  <isamu@yamato.ibm.com>
14         * posix/regex_internal.c (re_string_reconstruct): Reset the member
15         LEN and STOP.
16         * posix/regexec.c (re_search_stub): Remove incorrect condition of
17         "range < 0".
18         Round RANGE in case that it is too small.
20 2002-10-01  Roland McGrath  <roland@frob.com>
22         * config.h.in (NO_HIDDEN): New #undef.
23         * include/libc-symbols.h [! NO_HIDDEN]: Add this condition to
24         nonempty definitions of hidden_proto et al.
25         * configure.in: Grok --disable-hidden-plt to define NO_HIDDEN.
26         * configure: Regenerated.
27         * sysdeps/mach/hurd/configure.in: Always define NO_HIDDEN.
28         * sysdeps/mach/hurd/configure: Regenerated.
30 2002-09-19  David Mosberger  <davidm@hpl.hp.com>
32         * sysdeps/ia64/dl-fptr.c (make_fdesc): Load address of "local" via
33         a 64-bit gp-relative address to enable binaries with large data
34         sections.
36 2002-09-30  Ulrich Drepper  <drepper@redhat.com>
38         * stdlib/cxa_finalize.c (__cxa_finalize): Call UNREGISTER_ATFORK
39         if it is defined.
40         * posix/Makefile (distribute): Add fork.h.
41         * sysdeps/generic/fork.h: New file.
43 2002-09-29  Bruno Haible  <bruno@clisp.org>
45         * sysdeps/generic/utmp_file.c (LOCKING_FAILED): New macro.
46         (UNLOCK_FILE): Add a label.
47         (getutent_r_file, internal_getut_r, getutline_r_file, pututline_file,
48         updwtmp_file): Shut off the alarm clock when locking failed.
50 2002-09-30  Isamu Hasegawa  <isamu@yamato.ibm.com>
52         * posix/regex_internal.h (re_match_context_t): Add a new member.
53         (re_fail_stack_ent_t): New structure.
54         (re_fail_stack_t): Likewise.
55         * posix/regexec.c (re_search_internal): Use the new member of
56         re_match_context_t.
57         Use fail stack only if it has back references and there are plural
58         matching candidates.
59         (proceed_next_node): Use fail stack if it is indicated.
60         (set_regs): Likewise.
61         (push_fail_stack): New function.
62         (pop_fail_stack): New function.
63         (check_dst_limits): Likewise.
64         (check_dst_limits_calc_pos): Likewise.
65         (search_subexp): Check the limitations on the top of subexpressions.
66         (sift_states_bkref): Check the limitations of the destination node.
67         Reuse the array sctx->sifted_states.
69 2002-09-30  Ulrich Drepper  <drepper@redhat.com>
71         * stdio-common/printf_fp.c: Shuffle a few lines around to help the
72         compiler optimizing.  No semantical changes intended.
74 2002-09-30  Jakub Jelinek  <jakub@redhat.com>
76         * sysdeps/ia64/strncpy.S: Only segfault in .recovery2 if some bits
77         from the next quad are needed.
79 2002-09-30  Roland McGrath  <roland@redhat.com>
81         * elf/tls-macros.h (TLS_LD, TLS_GD): Use call insn, not callq.
83         * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD] [! PIC]:
84         Use direct-%fs form of TLS access for errno.
86         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: File removed, since
87         the i386 version has all the same asm now.
89         * sysdeps/i386/elf/configure.in: Add @GOTNTPOFF and @NTPOFF uses to
90         the TLS support check.
91         * sysdeps/i386/elf/configure: Regenerated.
93         * sysdeps/unix/sysv/linux/i386/sysdep.h [USE_TLS && HAVE___THREAD]
94         (SYSCALL_ERROR_HANDLER): Use direct-%gs form of TLS access for errno.
96         * sysdeps/unix/i386/sysdep.S (syscall_error)
97         [USE_TLS && HAVE___THREAD]: Use TLS access for errno.
99         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
100         [USE_TLS && HAVE___THREAD] (SYSCALL_ERROR_HANDLER): Use TLS access.
102         * rt/tst-aio7.c (do_test): Don't read from stdin, which could be the
103         terminal when the test is running in a background job.  Instead, make
104         a pipe and read from its read half while never writing anything to it.
106 2002-09-30  Andreas Jaeger  <aj@suse.de>
108         * stdlib/tst-bsearch.c (main): Fix format strings.
109         * stdio-common/tst-rndseek.c (do_test): Likewise.
110         * libio/tst_swprintf.c (main): Likewise.
111         * catgets/tst-catgets.c (main): Likewise.
112         * libio/tst-fgetws.c (main): Likewise.
113         * posix/tst-mmap.c (main): Likewise.
114         * posix/bug-regex12.c (main): Likewise.
115         * posix/bug-regex11.c (main): Likewise.
116         * io/tst-getcwd.c (do_test): Likewise.
118         * iconvdata/tst-e2big.c (test): Use %td in printf for ptrdiff_t.
120         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
121         Store 4 bytes into errno, not 8 bytes.
123 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
125         * posix/regexec.c (sift_states_bkref): Remove ret variable.  Use
126         err instead.
128 2002-09-29  Roland McGrath  <roland@redhat.com>
130         * test-skeleton.c (timeout_handler): Use WUNTRACED flag in waitpid.
131         Examine the child's status and print something different if it wasn't
132         just killed by our SIGKILL.
133         (main): In the child process call setpgid to put it in its own pgrp.
135 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
137         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): The return value
138         semantics for sigtimedwait is different.  Rework the return value
139         handling and don't pass in a siginfo variable.
141 2002-09-29  Roland McGrath  <roland@redhat.com>
143         * malloc/malloc.c [! MALLOC_DEBUG] (assert): #undef before defining.
145         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.2.6): Add __errno_location.
147         * sysdeps/unix/sysv/linux/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]:
148         Define errno in .tbss.
149         * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]: Use TLS
150         access for setting errno.
152         * sysdeps/unix/x86_64/sysdep.S: Store 32 bits at errno, not 64 bits.
153         AFAICT, it was just blind luck that the word following errno in .bss
154         was just alignment padding and not some other variable to be clobbered.
156 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
158         * sysdeps/unix/sysv/linux/kernel-features.h
159         (__ASSUME_SETRESUID_SYSCALL): On the sparc, define to 1, not empty.
161 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
163         * nss/bug-erange.c (main): Don't fail if /etc/resolv.conf doesn't
164         exist.
166 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
168         * nss/Makefile: Move bug-erange from tests to xtests.
170 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
172         * stdlib/longlong.h (__udiv_qrnnd): Remove PARAMS from prototype.
174 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
176         * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall0): Make asm
177         volatile.
178         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
179         inline_syscall5, inline_syscall6): Likewise.
180         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
181         Likewise.
182         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (INLINE_SYSCALL):
183         Likewise.
185 2002-09-29  Roland McGrath  <roland@redhat.com>
187         * configure.in (libc_cv_ranlib_necessary check): Put the .o file in
188         the archive, not the .c file.
189         * configure: Regenerated.
191 2002-09-29  Roland McGrath  <roland@redhat.com>
193         * configure: Regenerated after aclocal.m4 change.
195         * sysdeps/x86_64/sysdep.h [HAVE_ELF] (L): Define with .L##name form.
196         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (L): Don't define it here.
198         * sysdeps/generic/dl-lookupcfg.h [USE_TLS] (DL_LOOKUP_RETURNS_MAP):
199         Define it, because _dl_sym presumes it (for any platform).
201         * sysdeps/x86_64/dl-tls.h: New file.
203         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add a cast.
205         * sysdeps/x86_64/elf/configure.in: New file.
206         * sysdeps/x86_64/elf/configure: New generated file.
208 2002-09-28  Roland McGrath  <roland@redhat.com>
210         * elf/rtld.c (_dl_start): Fix conditional for declaring CNT.
212         * aclocal.m4 (LIBC_PROG_BINUTILS): Don't clobber $RANLIB with ranlib
213         before we check it.
215 2002-09-28  Ulrich Drepper  <drepper@redhat.com>
217         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __syscall_exit
218         entry point.
220 2002-09-28  Jakub Jelinek  <jakub@redhat.com>
222         * posix/bug-regex11.c (tests): Add flags field.
223         (main): Avoid warnings.  Use test[i].flags.  Return nonzero
224         if any of the tests failed.
225         * posix/bug-regex12.c: New file.
226         * posix/Makefile (tests): Add bug-regex12.
228 2002-03-02  Thorsten Kukuk  <kukuk@suse.de>
230         * sysdeps/unix/nice.c (nice): Use getpriority() for the return value.
232 2002-09-28  Jeff Bailey  <jbailey@gnu.org>
234         * sysdeps/unix/sysv/sysv4/solaris2/configure.in: Delete.
235         * sysdeps/unix/sysv/aix/configure.in: Update comment and remove
236         stdio=libio setting.
238 2002-09-28  Roland McGrath  <roland@redhat.com>
240         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Use INTUSE for
241         _dl_signal_error.
242         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Likewise.
243         * sysdeps/powerpc/powerpc64/dl-machine.c
244         (_dl_reloc_overflow): Likewise.
245         * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
246         (elf_machine_rela): Likewise.
248 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
250         * include/libc-symbols.h (__hidden_dot_weak1): Fix typo.  Replace
251         ASM_GLOBAL_DIRECTIVE with .weak.
253 2002-09-28  Andreas Jaeger  <aj@suse.de>
255         * sysdeps/unix/sysv/linux/mips/truncate64.c (truncate64): Fix
256         number of args to syscall.
257         * sysdeps/unix/sysv/linux/mips/ftruncate64.c (__ftruncate64): Likewise.
258         Patch by Guido Guenther <agx@sigxcpu.org>.
260 2002-09-27  Roland McGrath  <roland@redhat.com>
262         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_pread, __NR_pwrite):
263         Define these to __NR_pread64, __NR_pwrite64 if not defined.
265         * sysdeps/unix/sysv/linux/powerpc/lchown.S
266         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Use this condition
267         on chown compatibility symbol; use compat_symbol, not symbol_version.
269 2002-09-27  Isamu Hasegawa  <isamu@yamato.ibm.com>
271         * posix/regcomp.c (reg_free): Free the debug area.
272         (re_compile_internal): Allocate debug area for the input string.
273         (create_initial_state): Check the back references in initial states
274         if they are really match null string in the initial state.
275         (parse_reg_exp): Mark the dfa that the dfa can have plural matchings.
276         (parse_expression): Likewise.
277         (parse_bracket_exp): Likewise.
278         * posix/regex_internal.c (re_node_set_intersect): Remove unused
279         function.
280         (re_node_set_contains): Change to return the index of node.
281         * posix/regex_internal.h (re_backref_cache_entry): Change the members.
282         (re_match_context_t): Likewise.
283         (struct re_dfa_t): Likewise.
284         (re_sift_context_t): New structure.
285         * posix/regexec.c (match_ctx_clear_flag): New function.
286         (sift_ctx_init): Likewise.
287         (update_cur_sifted_state): Likewise.
288         (add_epsilon_src_nodes): Likewise.
289         (sub_epsilon_src_nodes): Likewise.
290         (check_subexp_limits): Likewise.
291         (search_subexp): Likewise.
292         (sift_states_bkref): Likewise.
293         (merge_state_array): Likewise.
294         (sift_states_iter_bkref): Remove unused function.
295         (add_epsilon_backreference): Remove unused function.
296         (re_search_internal): Adapt new members and interfaces.
297         (check_matching): Check the back references in initial states
298         if they are really match null string in the initial state.
299         (proceed_next_node): Change the evaluation of back references,
300         since we have real registers here.
301         (set_regs): Adapt new interface of proceed_next_node.
302         (sift_states_backward): Add invocation of update_cur_sifted_state
303         instead of add_epsilon_backreference.
304         Add a sentinel to the outermost while loop.
305         Move the handling of back references to sift_states_bkref function,
306         since we can't handle some back references (e.g. a back reference
307         which match NULL string) here.
308         (transit_state_mb): Handle the new member max_mb_elem_len.
309         (transit_state_bkref_loop): Move the evaluation of back references to
310         search_subexp function, since we can't evaluate some back references
311         (e.g. a back reference which can have plural matchings) here.
312         (match_ctx_init): Adapt the new member.
313         (match_ctx_add_entry): Adapt the new members.
315 2002-09-25  Alan Modra  <amodra@bigpond.net.au>
317         * elf/do-rel.h: Define macro DO_ELF_MACHINE_REL_RELATIVE for
318         'elf_machine_rel_relative'
319         (elf_dynamic_do_rel): Call DO_ELF_MACHINE_REL_RELATIVE macro
320         instead of 'elf_machine_rel_relative'.
321         * sysdeps/hppa/dl-machine.h:
322         Define macro DO_ELF_MACHINE_REL_RELATIVE for
323         'elf_machine_rel_relative' with extra map parameter
324         required by HPPA.
325         (elf_machine_rela_relative): Add plt relocation changes.
327 2001-11-14  Matthew Wilcox  <willy@debian.org>
329         * sysdeps/unix/sysv/linux/hppa/bits/ipc.h: New file.
330         * sysdeps/unix/sysv/linux/hppa/bits/msq.h: New file.
331         * sysdeps/unix/sysv/linux/hppa/bits/sem.h: New file.
332         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: New file.
334 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
336         * sysdeps/powerpc/powerpc32/Makefile: Fix typo in comment.
338         * sysdeps/powerpc/powerpc64/Makefile
339         [$(build-shared) = yes] (pic-ccflag): Define it.
340         [$(subdir) = csu] (CFLAGS-initfini.s): Add -fpic here too.
342 2002-09-27  Roland McGrath  <roland@redhat.com>
344         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Remove
345         unneeded TLS cases.
347 2002-09-27  Jakub Jelinek  <jakub@redhat.com>
349         * elf/dl-addr.c (_dl_addr): Set dli_fbase to l_map_start
350         unconditionally.  Set dli_fname to _dl_argv[0] only for main program.
352 2002-09-27  Roland McGrath  <roland@redhat.com>
354         * elf/dl-addr.c (_dl_addr): Add a cast.
356         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [USE_TLS]: Handle new
357         TLS relocs R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, and R_X86_64_TPOFF64.
359         * elf/elf.h (R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, R_X86_64_TPOFF64,
360         R_X86_64_TLSGD, R_X86_64_TLSLD, R_X86_64_DTPOFF32,
361         R_x86_64_GOTTPOFF, R_X86_64_TPOFF32): New macros.
362         (R_X86_64_NUM): Update the value.
364 2002-09-24  Jakub Jelinek  <jakub@redhat.com>
366         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_load_address): Don't
367         rely on *r_offset of R_SPARC_RELATIVE reloc in .got to contain the
368         addend.
369         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Use
370         the same l_addr computation.
371         * sysdeps/sparc/sparc64/configure.in: Removed.
372         * sysdeps/sparc/sparc64/configure: Removed.
373         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Remove.
375 2002-09-26  Ulrich Drepper  <drepper@redhat.com>
377         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_HASH entry
378         if necessary.
379         * elf/dl-lookup.c (_dl_setup_hash): DT_HASH entry is already relocated.
380         * elf/dl-addr.c (_dl_addr): Use .hash[1] entry to determine end of the
381         symbol table if necessary.
383 2002-09-26  Roland McGrath  <roland@redhat.com>
385         * stdlib/longlong.h: Replaced with current version from GCC mainline,
386         last modified 2002-09-22  Kazu Hirata  <kazu@cs.umass.edu>.
388 2002-09-25  Andreas Jaeger  <aj@suse.de>
390         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add syscall_exit.
391         Patch by Guido Guenther <agx@sigxcpu.org>.
393 2002-09-25  Roland McGrath  <roland@redhat.com>
395         * Makeconfig (%.v.i pattern rule): Use $(CPPFLAGS).
397 2002-09-24  Ulrich Drepper  <drepper@redhat.com>
399         * sysdeps/unix/sysv/linux/configure.in: Recognize nptl add-on name.
401 2002-09-24  Roland McGrath  <roland@redhat.com>
403         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Move __libc_read,
404         __libc_write, __libc_lseek64, to ...
405         (ld: GLIBC_PRIVATE): ... here.
407         * csu/Versions: Use %include <tls.h> to get USE_TLS defined.
408         (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _errno, errno.
409         (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put errno here instead.
410         * resolv/Versions: Use %include <tls.h> to get USE_TLS defined.
411         (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _h_errno, h_errno,
412         and _res.
413         (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put h_errno, _res here.
415         * elf/tls-macros.h [__x86_64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
416         New macros for x86-64.
418         * sysdeps/unix/sysv/linux/alpha/bits/time.h: File removed.
419         It was indentical to the linux/bits/time.h file.
421         * nscd/nscd_gethst_r.c (nscd_gethst_r): Add a cast to silence warning.
423         * resolv/gethnamaddr.c (gethostbyaddr): Use socklen_t for SIZE.
425 2002-09-23  Ulrich Drepper  <drepper@redhat.com>
427         * po/zh_CN.po: New file.
429 2002-09-23  Roland McGrath  <roland@redhat.com>
431         * posix/unistd.h: Test [__USE_UNIX98] instead of [__USE_OPEN2K]
432         for gethostname declaration.
434         * catgets/open_catalog.c (__open_catalog): Don't use a value type
435         as the __builtin_expect expression, just the Boolean value.
437         * sysdeps/generic/wordexp.c (parse_glob): int -> size_t for counter.
438         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
439         * resolv/res_hconf.c (arg_service_list, parse_line): Likewise.
440         * iconvdata/tst-loading.c (main): Likewise.
441         * catgets/tst-catgets.c (main): Likewise.
442         * stdlib/tst-xpg-basename.c (main): Likewise.
443         * stdlib/tst-bsearch.c (main): Likewise.
444         * stdio-common/test-vfprintf.c (main): Likewise.
445         * stdio-common/tst-rndseek.c (do_test): Likewise.
446         * libio/tst_swprintf.c (main): Likewise.
447         * libio/tst-fgetws.c (main): Likewise.
448         * wcsmbs/tst-mbrtowc.c (check_ascii): Likewise.
449         * time/tst-posixtz.c (main): Likewise.
450         * time/tst-strptime.c (test_tm): Likewise.
451         * time/tst-strptime.c (main): Likewise.
452         * time/tst-getdate.c (main): Likewise.
453         * posix/tst-mmap.c (main): Likewise.
454         * posix/tst-getaddrinfo.c (do_test): Likewise.
455         * io/tst-getcwd.c (do_test): Likewise.
456         * resolv/tst-aton.c (main): Likewise.
457         * inet/tst-network.c (main): Likewise.
458         * libio/tst-fgetws.c (main): Likewise.
459         * sysdeps/posix/sprofil.c (add_region): int -> unsigned int for I.
460         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): int -> unsigned int
461         for PTYNO.
463         * stdlib/msort.c (qsort): Add a cast to silence warning.
464         * stdio-common/vfprintf.c (process_string_arg): Likewise.
465         * libio/oldfileops.c (_IO_old_do_write): Likewise.
466         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Likewise.
467         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
468         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
469         * argp/argp-fmtstream.c (__argp_fmtstream_printf): Likewise.
470         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
471         * sysdeps/unix/grantpt.c (grantpt): Likewise.
472         * libio/tst-widetext.c (main): Likewise.
473         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
474         * rt/tst-aio.c (test_file): Likewise.
475         * rt/tst-aio64.c (test_file): Likewise.
476         * resolv/tst-aton.c (main): Likewise.
478         * catgets/catgetsinfo.h (CATGETS_MAGIC): Use U suffix on the constant.
480         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Cast to int32_t
481         instead of uint32_t in these macros.
483 2002-09-22  Bruno Haible  <bruno@clisp.org>
485         * iconv/iconv_prog.c (main): Provide an error message that identifies
486         the wrong encoding.
488         * iconvdata/tscii.c: New file.
489         * iconvdata/testdata/TSCII: New file.
490         * iconvdata/testdata/TSCII..UTF8: New file.
491         * iconvdata/TSCII.precomposed: New file.
492         * iconvdata/TSCII.irreversible: New file.
493         * iconvdata/gconv-modules (TSCII): New module.
494         * iconvdata/Makefile (modules): Add TSCII.
495         (distribute): Add tscii.c.
496         * iconvdata/tst-table-from.c (try, utf8_decode, main): Double output
497         buffer size.
498         * iconvdata/tst-tables.sh: Add TSCII.
499         * iconvdata/TESTS: Add TSCII.
501         Revert 2002-04-18 patch.
502         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
503         FROM_DIRECTION): Make the FROM direction stateful again.
504         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
505         FROM_DIRECTION): Likewise.
507         * iconvdata/tst-e2big.c: New file.
508         * iconvdata/Makefile (tests): Add tst-e2big.
510 2002-09-23  Roland McGrath  <roland@redhat.com>
512         * elf/Makefile (test-extras): Define this instead of test-srcs.
513         * Makerules (all-nonlib): Include $(test-extras) too.
515 2002-09-21  Carlos O'Donell  <carlos@baldric.uwo.ca>
517         * sysdeps/hppa/abort-instr.h: New file.
519 2002-09-22  Roland McGrath  <roland@frob.com>
521         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Remove duplicate entry.
523         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Add alias __GI__exit.
525 2002-09-22  Andreas Schwab  <schwab@suse.de>
527         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Append, not overwrite.
529         * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal)
530         (isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]:
531         Use GCC builtins.
533 2002-09-21  Roland McGrath  <roland@redhat.com>
535         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM):
536         Correct the value so it covers all platforms, and is computed
537         from _DL_PLATFORMS_COUNT rather than hard-wired.
538         From Andrew Suffield <asuffield@debian.org>.
540 2002-09-20  Ulrich Drepper  <drepper@redhat.com>
542         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
543         locking when using mount tab file.
544         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
545         * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
546         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
548         * elf/dl-init.c (_dl_init): Fix test of the size of the
549         preinit_array section.
550         (call_init): Optimize access to DT_INIT_ARRAY entry a bit.
551         Reported by Brian Cabral <cabral@ikuni.com>.
553 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
555         * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros.
556         * sysdeps/powerpc/powerpc32/sysdep.h: New file.  Define powerpc32
557         specific macros copied from sysdeps/powerpc/sysdep.h.
558         * sysdeps/powerpc/powerpc64/sysdep.h: New file.  Define powerpc64
559         specific macros.
560         * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>.
561         [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h.
562         [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h.
564 2002-09-19  Bruno Haible  <bruno@clisp.org>
566         * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
567         returning.
569 2002-09-17  Bruno Haible  <bruno@clisp.org>
571         * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
572         * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
573         also on platforms with !HAVE_UT_TYPE.
574         (proc_utmp_eq): Remove function.
575         (internal_getut_r, pututline_file): Call __utmp_equal instead.
577 2002-09-20  Bruno Haible  <bruno@clisp.org>
579         * abi-tags: Add support for FreeBSD with ABI OS value 3.
580         * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
582 2002-09-20  Roland McGrath  <roland@redhat.com>
584         * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
585         (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
586         terms of __WORDSIZE.
587         * sysdeps/x86_64/gmp-mparam.h: File removed.
588         * sysdeps/sparc/gmp-mparam.h: File removed.
589         * sysdeps/mips/mips64/gmp-mparam.h: File removed.
590         * sysdeps/ia64/gmp-mparam.h: File removed.
591         * sysdeps/alpha/gmp-mparam.h: File removed.
593 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
595         * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
596         load, so as to work on both 32-bit and 64-bit.  Remove unnecessary
597         casts.  Align __libc_stack_end to 8 bytes.
599 2002-09-20  Roland McGrath  <roland@redhat.com>
601         * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
602         instead of asm for lrintf, __lrintf aliases.
604         * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
605         int array for 32-/64-bit compatibility.
606         From Steven Munroe  <sjmunroe@us.ibm.com>.
608 2002-09-17  Bruno Haible  <bruno@clisp.org>
610         * sysdeps/generic/ifreq.h (__if_nextreq): New function.
611         * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
612         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
613         * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
614         for iterating through the list of interfaces.
615         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
617 2002-09-20  Roland McGrath  <roland@redhat.com>
619         * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
620         Reported by Bruno Haible <bruno@clisp.org>.
622         * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
624         * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
625         * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
626         isatty unmodified.  Reported by Bruno Haible <bruno@clisp.org>.
628 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
630         * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
631         * sysdeps/powerpc/bits/wordsize.h: New file.
632         * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
633         array to int array for 32-/64-bit compatibility.
635 2002-09-20  Roland McGrath  <roland@redhat.com>
637         * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
639         * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
640         Reported by Bruno Haible <bruno@clisp.org>.
642         * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
643         before doubling RQ_LEN.
644         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
645         Reported by Bruno Haible <bruno@clisp.org>.
647 2002-09-18  Bruno Haible  <bruno@clisp.org>
649         * login/logout.c (logout): Don't assume ut_time has the same size as
650         a time_t.
651         * login/logwtmp.c (logwtmp): Likewise.
653         * sysdeps/pthread/configure: New file, moved here from
654         linuxthreads/sysdeps/unix/sysv/linux/configure.
656 2002-09-19  Ulrich Drepper  <drepper@redhat.com>
658         * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
659         (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
660         Reported by Glen Nakamura <glen@imodulo.com>.
662 2002-09-19  Neal H. Walfield  <neal@cs.uml.edu>
664         * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
665         thread's sigstate data structure if it has been allocated.
667 2002-09-19  Roland McGrath  <roland@redhat.com>
669         * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
670         [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
672 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
674         * version.h (VERSION): Bump to 2.2.94.
676         * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
677         * sysdeps/powerpc/powerpc32/fpu/Dist: ...here.  New file.
678         * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
679         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
681         * sysdeps/i386/Makefile: Remove obsolete db2 rules.
683         * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
685         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
689 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
691         * sysdeps/wordsize-32/Makefile: New file.
692         * sysdeps/arm/Makefile: Removed.
693         * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
694         Don't add divdi3 here.
695         * sysdeps/m68k/Makefile: Likewise.
696         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
697         * sysdeps/sh/Makefile: Likewise.
698         * sysdeps/s390/s390-32/Makefile: Likewise.
700 2002-09-18  Roland McGrath  <roland@redhat.com>
702         * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
703         the __ctype_* compat symbols, so the relocs generated bind to the
704         right versioned global symbol in the shared object.
706         * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
707         from the value taken from the DT_VERSYM table.
708         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
709         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
710         (RESOLVE_GOTSYM): Likewise.
712         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
713         Add libc_hidden_def.
714         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
715         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
716         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
717         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
718         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
719         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
720         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
721         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
723 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
725         * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
727         * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
728         define sigaction and __sigaction as wrappers around
729         __libc_sigaction which rejects changing SIGCANCEL.
730         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
732         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
733         SETTID/CLEARTID.
735         * signal/allocrtsig.c: Move to...
736         * sysdeps/generic/allocrtsig.c: ...here.  New file.
738 2002-09-17  Jakub Jelinek  <jakub@redhat.com>
740         * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
742         * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
743         R_386_TLS_LE): Define.
744         (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
745         comments.
746         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
747         ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
748         (elf_machine_rel): Handle R_386_TLS_TPOFF.
749         (elf_machine_rela): Likewise.
750         Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
752 2002-09-17  Roland McGrath  <roland@redhat.com>
754         * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
755         file-specific variable override so it compiles properly when using
756         --with-headers.
758 2002-09-17  Steven Munroe  <sjmunroe@us.ibm.com>
760         Ported to PowerPC64 running Linux.
761         * sysdeps/powerpc/powerpc64/Dist: New file.
762         * sysdeps/powerpc/powerpc64/Implies: New file.
763         * sysdeps/powerpc/powerpc64/Makefile: New file.
764         * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
765         * sysdeps/powerpc/powerpc64/atomicity.h: New file.
766         * sysdeps/powerpc/powerpc64/backtrace.c: New file.
767         * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
768         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
769         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
770         * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
771         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
772         * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
773         * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
774         * sysdeps/powerpc/powerpc64/memset.S: New file.
775         * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
776         * sysdeps/powerpc/powerpc64/register-dump.h: New file.
777         * sysdeps/powerpc/powerpc64/setjmp.S: New file.
778         * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
779         * sysdeps/powerpc/powerpc64/strchr.S: New file.
780         * sysdeps/powerpc/powerpc64/strcmp.S: New file.
781         * sysdeps/powerpc/powerpc64/strcpy.S: New file.
782         * sysdeps/powerpc/powerpc64/strlen.S: New file.
783         * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
784         * sysdeps/powerpc/powerpc64/elf/start.S: New file.
785         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
786         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
789         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
795         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
796         (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
797         various gcc versions.  Dot names required for powerpc64.
798         [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
799         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
800         C_SYMBOL_DOT_NAME(alias).
801         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
802         original strong_alias macro.
803         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
804         C_SYMBOL_DOT_NAME(alias).
805         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
806         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
807         '.'ed name.
808         Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
809         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro.  Generate
810         .global C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
811         (hidden_def): Append hidden_dot_def1 macro to definition.
812         (hidden_ver): Append hidden_dot_def1 macro to definition.
813         (hidden_data_def): New macro.  Same as original hidden_def macro.
814         (hidden_data_ver): New macro.  Same as original hidden_ver macro.
815         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro.  Generate
816         .weakext C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
817         (hidden_weak): Append hidden_dot_weak1 macro to definition.
818         (hidden_data_weak): New macro.  Same as original hidden_weak macro.
819         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
820         Otherwise defined as __GI_name.
821         (libc_hidden_data_def): New macro.  Use hidden_data_def.
822         (libc_hidden_data_weak): New macro.  Use hidden_data_weak.
823         (libc_hidden_data_ver): New macro.  Use hidden_data_ver.
824         (rtld_hidden_data_def): New macro.  Use hidden_data_def.
825         (rtld_hidden_data_weak): New macro.  Use hidden_data_weak.
826         (rtld_hidden_data_ver): New macro.  Use hidden_data_ver.
827         (libm_hidden_data_def): New macro.  Use hidden_data_def.
828         (libm_hidden_data_weak): New macro.  Use hidden_data_weak.
829         (libm_hidden_data_ver): New macro.  Use hidden_data_ver.
830         * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
832 2002-09-17  Ulrich Drepper  <drepper@redhat.com>
834         * include/libc-symbols.h: Change *hidden_proto macros to accept
835         option parameters and pass those to the attribute definition.
836         * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
838         * include/unistd.h: Declare __libc_pause.
840         * include/sys/socket.h: Declare __libc_send, __libc_recv,
841         __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
843         * include/unistd.h: Declare __libc_fork.
845 2002-09-17  Roland McGrath  <roland@redhat.com>
847         * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
848         (passwd2des): Define it as an alias.
849         (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
851 2002-09-12  Bruno Haible  <bruno@clisp.org>
853         * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
854         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
856         * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
857         * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
859 2002-09-05  Steven Munroe  <sjmunroe@us.ibm.com>
861         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
862         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
863         __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
864         PowerPC64 does not have separate 64-bit syscalls.
866 2002-09-16  Roland McGrath  <roland@redhat.com>
868         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
870         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
871         New macro.
873         * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
875         * include/unistd.h: Uncomment libc_hidden_proto for _exit.
876         * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
877         * sysdeps/generic/_exit.c: Likewise.
879 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
881         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
883         * elf/rtld.c (struct dl_start_final_info): New.
884         (_dl_start_final): Change second argument to struct
885         dl_start_final_info *.  Set start_time from info.
886         (_dl_start): Remove bootstrap_map variable, add info.
887         Define bootstrap_map as macro.  If not DONT_USE_BOOTSTRAP_MAP,
888         store HP_TIMING_NOW result into info.start_time.
890 2002-09-16  Andreas Jaeger  <aj@suse.de>
892         * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
893         to _Exit.
894         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
896 2002-09-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
898         * sysdeps/powerpc/abort-instr.h: New file.
900 2002-09-14  Ulrich Drepper  <drepper@redhat.com>
902         * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
903         comment.
905         * test-skeleton.c (main): Provide more information in case waitpid
906         fails.
908         * include/unistd.h: Declare __exit_thread.
909         * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
910         Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
911         * sysdeps/unix/sysv/linux/exit-thread.S: New file.
912         * sysdeps/unix/sysv/linux/_exit.c: New file.
913         * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
914         * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
915         Add exit-thread.
917         * configure.in: Add dl_iterate_phdr to test using -nostdlib.
919 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
921         * sysdeps/i386/dl-machine.h (elf_machine_rel)
922         (case R_386_TLS_DTPMOD32): Don't use addend.
923         [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
924         (elf_machine_rela): Add support for TLS relocs.
926 2002-09-14  Roland McGrath  <roland@redhat.com>
928         * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
930 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
932         * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
933         specific asm macros for multiple percision integer math.
935 2002-06-04  Steven Munroe  <sjmunroe@us.ibm.com>
937         * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
938         * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
939         Remove per-machine conditionals for FLAG_* cases.
940         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
941         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
942         * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
944 2002-09-10  Alan Modra <amodra@bigpond.net.au>
946         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
947         defined in entry.h.
948         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
949         lowest address for profiling in  __monstartup call.
950         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
952 2002-09-14  Roland McGrath  <roland@redhat.com>
954         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
955         instead of __NR_pread.
956         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
957         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
958         instead of __NR_pwrite.
959         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
961 2002-09-13  Roland McGrath  <roland@redhat.com>
963         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
965 2002-09-13  Andreas Jaeger  <aj@suse.de>
967         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
968         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
970 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
972         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
974 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
976         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
977         reading the headers.
979 2002-09-12  Roland McGrath  <roland@redhat.com>
981         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
982         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
983         find the ELF header.
985         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
986         executable if needed, in case it's actually a shared object.
988 2002-09-11  Roland McGrath  <roland@redhat.com>
990         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
991         l_map_start to adjust l_tls_initimage.
993         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
994         when using h_errno and it's not set to NETDB_INTERNAL.
995         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
997         * Makefile ($(common-objpfx)testrun.sh): New target.
998         (others): Depend on it.
999         (postclean-generated): Append it.
1001         * nss/bug-erange.c: New file.
1002         * nss/Makefile (tests): Add it.
1004         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
1005         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
1007         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
1008         strncmp, keeps the code smaller for a non-performance-critical case.
1010         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
1011         no longer wrongly matches arbitrary prefixes of NAME.
1012         Reported by Jakub Jelinek <jakub@redhat.com>.
1014 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
1016         * posix/bug-regex11.c (tests): New array.
1017         (main): Rewritten to run more different tests.
1019 2002-09-10  Roland McGrath  <roland@redhat.com>
1021         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
1022         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
1023         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
1025         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
1026         well so we don't get it declared by include/math.h's hidden_proto.
1027         Then do hidden_proto for __isnanf locally so hidden_def works right.
1029         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
1030         a cast to turn nl_langinfo return value into an integer.
1032 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
1034         * posix/regexec.c (build_trtable): Fix the destination of
1035         newline to prevent wrong states from overwriting.
1036         Append break statements to optimization.
1038 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
1040         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
1041         (build_range_exp): Add castings to strlen invocations.
1042         (build_collating_symbol): Restore the type of characters from "char"
1043         to "unsigned char", and supplement castings.
1044         (build_collating_symbol): Likewise.
1045         (build_equiv_class): Likewise.
1046         (build_charclass): Likewise.
1047         (seek_collating_symbol_entry): Likewise.
1048         (parse_bracket_exp): Likewise.
1049         (build_word_op): Supplement a casting.
1050         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
1051         (re_string_allocate): Fix castings.
1052         (re_string_construct): Likewise.
1053         (re_string_construct_common): Likewise.
1054         (re_string_realloc_buffers): Likewise.
1055         (build_wcs_buffer): Likewise.
1056         (build_wcs_upper_buffer): Likewise.
1057         (re_string_skip_chars): Likewise.
1058         (re_string_reconstruct): Likewise.
1059         * posix/regex_internal.h: Restore the type of characters in
1060         re_string_t and bracket_elem_t from "char" to "unsigned char".
1061         (re_string_elem_size_at): Fix castings.
1062         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
1063         (transit_state_bkref_loop): Restore the type of characters from
1064         "char" to "unsigned char", and append a cast to "char*" pointer in
1065         array subscript.
1066         (check_node_accept_bytes): Likewise.
1067         (find_collation_sequence_value): Likewise.
1069 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
1071         * sysdeps/mips/memcpy.S: New file.
1072         * sysdeps/mips/memset.S: New file.
1073         * sysdeps/mips/fpu/e_sqrt.c:  New file.
1074         * sysdeps/mips/fpu/e_sqrtf.c: New file.
1076         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
1077         functional before. Also removed all SHLIB_COMPAT stuff.
1078         * fpu/fegetenv.c: Likewise.
1079         * fpu/fesetenv.c:: Likewise.
1080         * fpu/feupdateenv.c: Likewise.
1081         * fpu/fgetexcptflg.c: Likewise.
1082         * fpu/fraiseexcpt.c: Likewise.
1084         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
1086 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
1088         * include/math.h (__finite_internal, __finitef_internal,
1089         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
1090         (isfinite): Remove.
1091         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
1092         __isinfl, __isnanl): Add hidden_proto.
1093         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
1094         libm_hidden_proto.
1095         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
1096         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
1097         __is{inf,nan} calls.
1098         * stdio-common/printf_size.c (printf_size): Likewise.
1099         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
1100         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
1101         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
1102         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
1103         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
1104         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
1105         (__finite): Add hidden_def.
1106         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
1107         (__finitef): Add hidden_def.
1108         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
1109         (__finitel): Add hidden_def.
1110         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
1111         hidden_def.
1112         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
1113         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
1114         libm_hidden_def.
1115         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
1116         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
1117         hidden_def.
1118         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
1119         (__isinfl): Remove INTDEF.
1120         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
1121         hidden_def.
1122         (__isnanl): Remove INTDEF.
1123         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
1124         libm_hidden_def.
1125         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
1126         instead of sin and cos.
1127         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
1128         Add hidden_def.
1129         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
1130         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
1131         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
1132         libm_hidden_def.
1133         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
1134         Add hidden_def.
1135         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
1136         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
1137         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
1138         libm_hidden_def.
1139         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
1140         libm_hidden_def.
1141         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
1142         Add hidden_def.
1143         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
1144         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
1145         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
1146         libm_hidden_def.
1147         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
1148         __finitel_internal): Remove aliases.
1149         (__finite, __finitef, __finitel): Add hidden_def.
1150         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
1151         __isnanl_internal): Remove aliases.
1152         (__isnan, __isnanf, __isnanl): Add hidden_def.
1153         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
1154         __isinfl_internal): Remove aliases.
1155         (__isinf, __isinff, __isinfl): Add hidden_def.
1156         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
1157         __fpclassifyl): Add libm_hidden_def.
1158         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
1159         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
1160         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
1161         (hidden_defx): Define and use.
1162         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
1163         libm_hidden_def.
1164         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
1165         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
1166         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
1167         Remove INTDEF.
1168         (__isnan, __isnanf): Add hidden_def.
1169         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
1170         (__finitel): Add libm_hidden_def.
1171         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
1173         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
1174         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
1175         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1176         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
1177         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1178         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
1179         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
1180         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
1181         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1182         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
1183         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1184         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
1185         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1186         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
1187         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1188         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
1189         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1190         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
1191         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1192         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
1193         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1194         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
1195         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1196         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
1197         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1198         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
1199         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1201 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
1203         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
1205 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
1207         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
1208         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
1210 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
1212         * string/stratcliff.c: Some more strncpy tests.
1213         Patch by Daniel Jacobowitz <drow@mvista.com>.
1215 2002-09-08  Roland McGrath  <roland@redhat.com>
1217         * resolv/resolv.h: Include <sys/types.h> for u_long even in
1218         the [__need_res_state] case.
1219         Reported by Bruno Haible <bruno@clisp.org>.
1221 2002-09-04  Bruno Haible  <bruno@clisp.org>
1223         * sysdeps/generic/bits/ustat.h: Comment fix.
1224         * io/sys/sendfile.h: Comment fix.
1225         * sysdeps/posix/pread.c: Comment fix.
1226         * sysdeps/posix/pread64.c: Comment fix.
1227         * sysdeps/posix/pwrite.c: Comment fix.
1228         * sysdeps/posix/pwrite64.c: Comment fix.
1230 2002-09-06  Roland McGrath  <roland@redhat.com>
1232         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
1233         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
1234         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
1235         (_UTSNAME_MACHINE_LENGTH): Likewise.
1236         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
1238 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
1240         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
1241         test for filesystem type name of mount points.
1243         * include/errno.h: Use errno definition with __thread for now only
1244         in libc and ld.so.
1246         * test-skeleton.c (main): Improve error message for unexpected
1247         signal case.
1249 2002-09-05  Roland McGrath  <roland@redhat.com>
1251         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
1252         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1254 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
1256         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
1257         case of failure.
1259 2002-09-04  Bruno Haible  <bruno@clisp.org>
1261         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
1262         sigset_get_old_mask): Turn into inline functions.
1263         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
1264         sigset_get_old_mask): Likewise.
1265         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
1266         sigset_get_old_mask): Likewise.
1267         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
1268         syntax.
1270         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
1272         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
1273         default definitions.
1274         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
1275         _sys_nerr_internal instead of _sys_nerr.
1277         * nscd/connections.c (handle_request): Declare CALLER inside #if.
1279 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
1281         * sysdeps/powerpc/__longjmp.S: Moved to...
1282         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
1283         * sysdeps/powerpc/add_n.S: Moved to...
1284         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
1285         * sysdeps/powerpc/addmul_1.S: Moved to...
1286         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
1287         * sysdeps/powerpc/atomicity.h: Moved to...
1288         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
1289         * sysdeps/powerpc/backtrace.c: Moved to...
1290         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
1291         * sysdeps/powerpc/bp-asm.h: Moved to...
1292         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
1293         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
1294         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
1295         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
1296         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
1297         * sysdeps/powerpc/dl-machine.c: Moved to...
1298         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
1299         * sysdeps/powerpc/dl-machine.h: Moved to...
1300         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
1301         * sysdeps/powerpc/dl-start.S: Moved to...
1302         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
1303         * sysdeps/powerpc/gprrest0.S: Moved to...
1304         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
1305         * sysdeps/powerpc/gprrest1.S: Moved to...
1306         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
1307         * sysdeps/powerpc/gprsave0.S: Moved to...
1308         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
1309         * sysdeps/powerpc/gprsave1.S: Moved to...
1310         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
1311         * sysdeps/powerpc/lshift.S: Moved to...
1312         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
1313         * sysdeps/powerpc/memset.S: Moved to...
1314         * sysdeps/powerpc/powerpc32/memset.S: ...here.
1315         * sysdeps/powerpc/mul_1.S: Moved to...
1316         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
1317         * sysdeps/powerpc/ppc-mcount.S: Moved to...
1318         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
1319         * sysdeps/powerpc/register-dump.h: Moved to...
1320         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
1321         * sysdeps/powerpc/rshift.S: Moved to...
1322         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
1323         * sysdeps/powerpc/setjmp.S: Moved to...
1324         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
1325         * sysdeps/powerpc/stpcpy.S: Moved to...
1326         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
1327         * sysdeps/powerpc/strchr.S: Moved to...
1328         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
1329         * sysdeps/powerpc/strcmp.S: Moved to...
1330         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
1331         * sysdeps/powerpc/strcpy.S: Moved to...
1332         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
1333         * sysdeps/powerpc/strlen.S: Moved to...
1334         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
1335         * sysdeps/powerpc/sub_n.S: Moved to...
1336         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
1337         * sysdeps/powerpc/submul_1.S: Moved to...
1338         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
1339         * sysdeps/powerpc/elf/bzero.S: Moved to...
1340         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
1341         * sysdeps/powerpc/elf/start.S: Moved to...
1342         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
1343         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
1344         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
1345         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
1346         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
1347         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
1348         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
1349         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
1350         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
1351         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
1352         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
1353         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
1354         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
1355         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
1356         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
1357         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
1358         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
1359         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
1360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
1361         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
1362         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
1363         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
1364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
1365         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
1366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
1367         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
1368         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
1369         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
1370         powerpc/powerpc64.
1372 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
1374         * FAQ.in: Add powerpc64 to supported targets list. Also state the
1375         minimum gcc version is 3.2
1376         * README: Add powerpc64 to supported targets list.
1377         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
1378         Add powerpc64 and machine=powerpc/powerpc64.
1379         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
1380         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
1381         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
1382         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
1383         * sysdeps/powerpc/powerpc32/Dist: New file.
1384         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
1385         * sysdeps/powerpc/powerpc32/Implies: New file.
1386         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
1387         ($(with-fp) = no): Move test to powerpc32/Makefile.
1388         ($(subdir) = misc): Move to powerpc32/Makefile.
1389         ($(build-shared) = yes): Move to powerpc32/Makefile.
1390         ($(subdir) = csu): Move to powerpc32/Makefile.
1391         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
1392         * sysdeps/powerpc/powerpc32/Makefile: New file.
1393         * sysdeps/powerpc/Versions: Remove libgcc functions.
1394         * sysdeps/powerpc/powerpc32/Versions: New file.
1395         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
1396         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
1397         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
1398         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
1399         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
1400         ($machine): Add powerpc/powerpc64 to if ... | for
1401         libc_cv_slibdir=/libc64.
1402         (powerpc*): Set ldd_rewrite_script.
1403         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
1404         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
1405         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
1406         Add clone.S.
1407         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
1408         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
1409         functions.  Remove GLIBC_2.2 functions except getrlimit and
1410         setrlimit.  Moved them to ...
1411         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
1413 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
1415         * libio/tst-atime.c: Include <errno.h>.
1416         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
1418 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
1420         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
1421         warnings of some compilers.
1422         (build_collating_symbol): Change the type of characters from
1423         "unsigned char" to "char", and append a cast to "char*" pointer in
1424         array subscript.
1425         (build_collating_symbol): Likewise.
1426         (build_equiv_class): Likewise.
1427         (build_charclass): Likewise.
1428         (re_compile_pattern): Remove incorrect cast.
1429         (re_compile_fastmap_iter): Change the type of characters from
1430         "unsigned char" to "char", and append a cast to "char*" pointer
1431         in array subscript.
1432         (parse_bracket_exp): Likewise.
1433         * posix/regex_internal.c (re_string_construct_common): Likewise.
1434         (re_string_allocate): Likewise.
1435         (re_string_construct): Likewise.
1436         (re_string_realloc_buffers): Likewise.
1437         (build_wcs_buffer): Likewise.
1438         (re_string_reconstruct): Likewise.
1439         * posix/regex_internal.h: Change the type of characters in
1440         re_string_t and bracket_elem_t from "unsigned char" to "char".
1441         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
1442         warnings of some compilers.
1443         (transit_state_bkref_loop): Change the type of characters from
1444         "unsigned char" to "char", and append a cast to "char*" pointer in
1445         array subscript.
1446         (check_node_accept_bytes): Likewise.
1447         (find_collation_sequence_value): Likewise.
1449 2002-09-04  Roland McGrath  <roland@redhat.com>
1451         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
1452         from 1024 to 65536, to avoid buffer overrun.
1454 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
1456         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
1458 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
1460         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
1461         for filesystem.
1463 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
1465         * posix/bug-regex11.c: New test.
1466         * posix/Makefile (tests): Add bug-regex11.
1468 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
1470         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
1471         newlocale.
1473 2002-09-02  Roland McGrath  <roland@redhat.com>
1475         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
1476         __pthread_initialize_minimal and __libc_check_standard_fds to
1477         match the generic version.
1479         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
1480         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
1482         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
1483         warnings on platorms where char is unsigned.
1485 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
1487         * version.h (VERSION): Bump to 2.2.93.
1489         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
1491 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
1493         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
1494         as relocated.
1496 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
1498         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
1500 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
1502         * locale/localeinfo.h (struct locale_data): Add private.ctype.
1503         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
1504         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
1505         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
1506         (__wcsmbs_load_conv): Remove const from argument.
1507         (_nl_cleanup_ctype): New proto.
1508         (get_gconv_fcts): New function.
1509         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
1510         (__wcsmbs_to_wc): Rename back to...
1511         (to_wc): ... this.
1512         (__wcsmbs_gconv_fcts): Rename to...
1513         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
1514         (lock): Removed.
1515         (__libc_setlocale_lock): New extern.
1516         (__wcsmbs_load_conv): Remove const from argument.
1517         Initialize new_category->private.ctype instead of a global
1518         variable.
1519         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
1520         update_function_ptrs.  No locking is necessary.
1521         (_nl_cleanup_ctype): New function.
1522         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
1523         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
1524         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1525         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
1526         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
1527         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
1528         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
1529         * wcsmbs/wctob.c (wctob): Likewise.
1530         * stdlib/mblen.c (mblen): Likewise.
1531         * stdlib/mbtowc.c (mbtowc): Likewise.
1532         * stdlib/wctomb.c (wctomb): Likewise.
1533         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
1534         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
1535         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
1536         Removed.
1538 2002-09-02  Roland McGrath  <roland@frob.com>
1540         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
1542 2002-09-01  Roland McGrath  <roland@redhat.com>
1544         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
1545         Variable declarations removed.
1546         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
1547         these functions to replace them.
1548         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
1549         functions plus an indirection rather than the old global variables.
1550         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
1551         Macros removed.
1552         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
1553         inline functions.
1554         * ctype/ctype-info.c: Revert last reversion back the other way.
1555         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
1556         Define real function versions of include/ctype.h inlines here.
1557         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
1558         __ctype_tolower_loc, __ctype_toupper_loc.
1559         * locale/lc-ctype.c: Revert last reversion back the other way.
1560         (_nl_postload_ctype): If current thread uses the global locale,
1561         update its tsd vars.
1562         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
1563         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
1564         CTYPE_TOLOWER, CTYPE_TOUPPER.
1566         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
1567         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
1568         from __libc_tsd_threadvar_location.
1569         (__libc_tsd_set, __libc_tsd_get): Update uses.
1571 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
1573         * ctype/ctype.h: Undo the patch before the last one.  Put back the
1574         macro definitions for the standard functions to access the
1575         classification and mapping arrays.
1576         * include/ctype.h: Partly revert last patch.  Move the macro
1577         definitions for the exported functions back to the public header.
1578         #undef all the macros defined here before redefining.
1579         * ctype/ctype-info.c: Revert last patch.
1580         * locale/lc-ctype.c: Revert last patch.
1582         * ctype/Makefile (routines): Add isctype.
1583         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
1584         * ctype/ctype.h: Add declaration of isctype.
1585         * include/ctype.h: Declare __isctype.
1586         * ctype/isctype.c: New file.
1588 2002-09-01  Roland McGrath  <roland@redhat.com>
1590         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
1591         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1593         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1595         * locale/findlocale.c (_nl_remove_locale): Don't search in
1596         _nl_locale_file_list if DATA->alloc is ld_archive.
1597         Use _nl_unload_locale to do the rest of the work.
1599         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1600         of new structure to UNDELETABLE.
1602         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1603         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1604         towlower, towupper): Macros removed.
1605         * ctype/ctype.h (__tobody): Put parens around macro argument.
1606         (__isctype): Macro removed.
1607         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1608         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1609         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1610         tolower, toupper): Macros and inlines removed.
1611         * include/ctype.h [! NOT_IN_libc]
1612         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1613         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1614         tolower, toupper): Define here instead, using _NL_CURRENT.
1615         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1616         using _NL_CURRENT.
1617         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1618         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1619         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1620         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1621         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1622         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1623         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
1624         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1625         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1626         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1627         (ISSORTMASK): Update use.
1628         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1629         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1630         (_nss_files_getENTNAME_r): Likewise.
1631         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1632         Likewise.
1634         * Makerules (all-nonlib): Renamed from all-tests.
1635         Include $(others) here too.
1636         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1637         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1638         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1639         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1640         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
1641         the program modules via cppflags-iterator.mk.
1642         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1643         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1645 2002-08-31  Roland McGrath  <roland@redhat.com>
1647         * posix/tst-getconf.sh: If no third arg, work with static linking.
1649         * locale/categories.def (LC_TIME): No more _nl_postload_time.
1651         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1652         [_NL_CURRENT_INDIRECT].
1654 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1656         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1658 2002-08-31  Roland McGrath  <roland@redhat.com>
1660         * locale/newlocale.c (__newlocale): Don't use strdup for names.
1661         Instead, make the single allocation of the structure larger to hold
1662         the name strings.
1663         * locale/duplocale.c (__duplocale): Don't strdup names individually.
1664         Instead, calculate size for a single allocation and copy into it.
1665         * locale/freelocale.c (__freelocale): Don't free names individually.
1667         * locale/newlocale.c (__newlocale): Don't leak old data or names.
1669         * locale/xlocale.h (__locale_struct): Move __names member last,
1670         for binary compatibility.
1672         * locale/duplocale.c (__duplocale): Free names from the right array.
1674         * locale/uselocale.c (__uselocale): Return previous locale when
1675         setting a new one.
1677         * locale/newlocale.c: Commit changes from 2002-08-30
1678         batch where I failed to commit this file:
1679         (__newlocale): Fill in __names array.
1681 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1683         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1684         errlist-compat.c if versioning==yes.
1686 2002-08-31  Andreas Jaeger  <aj@suse.de>
1688         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1689         external functions with hidden attribute.
1690         (elf_machine_rela): Optimize.
1692         * sysdeps/x86_64/memset.S: New file.
1693         * sysdeps/x86_64/bzero.S: New file.
1694         * sysdeps/x86_64/stpcpy.S: New file.
1695         * sysdeps/x86_64/strcat.S: New file.
1696         * sysdeps/x86_64/strchr.S: New file.
1697         * sysdeps/x86_64/strcpy.S: New file.
1698         * sysdeps/x86_64/strcspn.S: New file.
1699         * sysdeps/x86_64/strlen.S: New file.
1700         * sysdeps/x86_64/strpbrk.S: New file.
1701         * sysdeps/x86_64/strspn.S: New file.
1702         * sysdeps/x86_64/strcmp.S: New file.
1703         * sysdeps/x86_64/strtok_r.S: New file.
1704         * sysdeps/x86_64/strtok.S: New file.
1705         * sysdeps/x86_64/memcpy.S: New file.
1706         * sysdeps/x86_64/mempcpy.S: New file.
1708         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1710         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1712 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1714         * stdio-common/Makefile (generated): Add errlist-compat.c.
1716         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1718         * locale/localeinfo.h: Pretty printing.
1720         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1721         form_number handling.
1723 2002-08-31  Andreas Jaeger  <aj@suse.de>
1725         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1726         double tests.
1728         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1729         __start_context.
1731         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1733         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1735         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1736         registers used for passing args.
1738         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1739         all needed registers.
1741         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1742         registers.
1744         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1745         registers.
1747 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
1749         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1750         always_inline attribute.
1752 2002-08-30  Roland McGrath  <roland@redhat.com>
1754         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1755         presume it's the stub and bail without error.
1757         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1758         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1760         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1762         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1763         macros replace the i686 versions for 64-bit mode.
1765         * locale/duplocale.c: Include <string.h>.
1767         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1768         [_LIBC] (category_to_name): Don't define the function.  Instead
1769         define a macro using _nl_category_names.
1771         * locale/xlocale.h (struct __locale_struct): New member `__names'.
1772         * locale/xlocale.c (_nl_C_locobj): Update initializer.
1773         * locale/global-locale.c (_nl_global_locale): Likewise.
1774         * locale/duplocale.c (__duplocale): strdup __names elements.
1775         * locale/freelocale.c (__freelocale): Free __names elements.
1776         * locale/localename.c (_nl_current_names): Variable removed.
1777         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1778         * locale/localeinfo.h (_nl_current_names): Removed decl.
1779         * locale/setlocale.c: Use _nl_global_locale->__names in place of
1780         _nl_current_names throughout.
1782         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1784         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1785         and sys_nerr in the output file.
1787         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1788         * scripts/cpp: Just use the environment variable.
1790         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1791         * libio/tst-mmap-offend.c (do_test): Likewise.
1792         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1793         * libio/tst-mmap-eofsync.c (do_test): Likewise.
1794         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1796         * locale/localename.c: If the current locale is the global locale, use
1797         _nl_current_names; otherwise use the locale object.
1799 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1801         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1802         'm' to enable mmap I/O.
1803         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
1804         former wasn't used (anymore?).
1805         (_IO_FLAGS2_MMAP): New define.
1806         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1807         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1808         _IO_FLAGS2_MMAP bit is set.
1809         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1810         Enable mmap-using mode only if 'm' was set.
1812 2002-08-29  Roland McGrath  <roland@frob.com>
1814         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1816         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1817         Change argument type from int to intptr_t.
1819         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1820         initializer on [! _HURD_THREADVAR_H] (bad kludge).
1821         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1822         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1823         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
1825         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1827         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1829         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1831         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1832         * assert/assert-perr.c: Add libc_hidden_def.
1833         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1835         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1836         found at all.
1837         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
1838         sys_errlist stuff to ...
1839         * sysdeps/unix/sysv/linux/Versions: ... here.
1841         * mach/mach.h: Include <features.h>.
1843 2002-08-29  Roland McGrath  <roland@redhat.com>
1845         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1846         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1847         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1849         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1851         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1852         (norm_add_slashes): alloca -> __alloca
1854 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
1856         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1857         string_malloced, it is unlikely to be set.
1858         Only call free with non-NULL workspace.
1859         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1860         -mcpu=ultrasparc, not only tune for it.
1861         (ASFLAGS*): Set unconditionally.
1863         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1864         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
1865         p_vaddr/p_offset when computing LOADADDR.
1867 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1869         * version.h (VERSION): Bump to 2.2.92.
1871         * time/Makefile (tst-ftime_l-ENV): New variable.
1873         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1875         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1876         <U017A>, <U017D> and <U0179>. Add missing mappings.
1877         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1879         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1880         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
1881         (struct tostruct): Use ACRINDEX as type for link field.
1882         (statuc gmonparam): Likewise for froms.
1883         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1884         kcount and froms.
1885         (write_call_graph): Use correct type for from_index and to_index.
1886         * gmon/mcount.c: Use correct types for frompcindex and toindex
1887         variables.
1888         Patches by Dan Kegel <dank@kegel.com>.
1890         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1891         canonical name.
1893         * time/strptime.c (ISSPACE): New #define.  Use isspace or
1894         __isspace_l.  Replace calls to isspace.
1895         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1897 2002-08-29  Roland McGrath  <roland@redhat.com>
1899         * string/tst-strxfrm.c: Remove __ from function names.
1901 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1903         * include/wchar.h: Declare __mbsrtowcs_l.
1904         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1905         * wcsmbs/mbsrtowcs.c: Add support for compilation with
1906         USE_IN_EXTENDED_LOCALE_MODEL.
1907         * wcsmbs/mbsrtowcs_l: New file.
1908         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
1909         define as static.  Change all uses.
1910         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
1911         Change all callers.
1912         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1913         * time/strftime.c: When translating for the extended locale model
1914         use the _l functions.
1915         * time/Makefile (tests): Add tst-ftime_l.
1916         * time/tst-ftime_l.c: New file.
1918 2002-08-28  Roland McGrath  <roland@redhat.com>
1920         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1921         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1922         from _nl_find_locale ok if for _nl_C_name.
1924         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1925         iterator to refer to each category's _nl_current_LC_FOO symbol, so
1926         we know they are all linked in.
1928         * NEWS: Added 2.2.6 text from 2.2 branch version.
1930         * time/strptime.c (strptime_internal): Remove spurious const.
1932         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1933         _nl_select_era_entry): Moved to ...
1934         * time/era.c: ... here, new file.
1935         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1936         Add internal_function to definitions.  Take an additional argument
1937         giving the `struct locale_data *' to use.
1938         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1939         _nl_parse_alt_digit): Moved to ...
1940         * time/alt_digit.c: ... here, new file.
1941         * time/lc-time-cleanup.c: New file.
1942         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1943         * locale/localeinfo.h (_nl_postload_time): Remove decl.
1944         (_nl_cleanup_time): Declare it.
1945         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1946         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1947         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1948         * time/strftime.c: Pass locale data to helper functions.
1949         * time/strptime.c: Likewise.
1951         * locale/localeinfo.h (struct locale_data): New member `private'
1952         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1953         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1954         * locale/C-collate.c: Update initializer.
1955         * locale/C-identification.c: Likewise.
1956         * locale/C-measurement.c: Likewise.
1957         * locale/C-telephone.c: Likewise.
1958         * locale/C-address.c: Likewise.
1959         * locale/C-name.c: Likewise.
1960         * locale/C-paper.c: Likewise.
1961         * locale/C-time.c: Likewise.
1962         * locale/C-numeric.c: Likewise.
1963         * locale/C-monetary.c: Likewise.
1964         * locale/C-messages.c : Likewise.
1965         * locale/C-ctype.c: Likewise.
1967         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1968         Redefine this too.
1970 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1972         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1973         (_rtld_global): Use it.
1975         * sysdeps/gnu/Dist: Remove errlist-compat.c.
1976         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1977         object directory.  Pass all Versions files to the awk script.
1978         * sysdeps/gnu/errlist-compat.c: Removed.
1979         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1980         first Versions file in the search path which has them.
1981         Allow multiple errlist symbol versions to have the same count of
1982         errors.
1983         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1984         of "errlist-compat.c".
1985         * sysdeps/gnu/errlist.c: Regenerated.
1986         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1987         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1988         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1989         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1990         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1991         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1992         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1993         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1994         ECANCELLED if not defined by kernel headers.
1995         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1996         already defined by kernel headers.
1997         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1998         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1999         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
2000         is a macro.
2001         * Versions.def (GLIBC_2.3) [librt]: Add.
2003         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
2005 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2007         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
2008         missing comma to .type directive.
2010 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2012         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
2013         unconditionally.
2014         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
2015         check.
2016         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
2018 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2020         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
2021         check to close_and_out close.  Replace return NULL statements where
2022         fd might be >= 0 with goto close_and_out.  Close the file descriptor
2023         when it is no longer needed.
2025 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2027         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
2028         string constants.
2029         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2030         * sysdeps/arm/dl-machine.h: Likewise.
2031         * sysdeps/cris/dl-machine.h: Likewise.
2032         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
2033         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
2035 2002-08-28  Roland McGrath  <roland@redhat.com>
2037         * Makeconfig (default_cflags): Revert unintended change.
2039 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2041         * version.h (VERSION): Bump to 2.2.91.
2043         * configure.in: Disable TLS support by default for now.
2045         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
2047         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
2048         warnings.
2050         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
2052         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
2053         fprintf/fwprintf calls.
2055 2002-08-28  Roland McGrath  <roland@redhat.com>
2057         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
2058         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
2060         * locale/setlocale.c: Declare postload functions weak.
2062         * elf/tst-tls1-static.c: New file.
2063         * elf/tst-tls2-static.c: New file.
2064         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
2066         Make uselocale support static linking.
2067         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
2068         This file again just defines _nl_C_locobj.
2069         (_nl_C_locobj): Use a categories.def iterator in the initializer.
2070         * locale/global-locale.c: New file.  Define _nl_global_locale here,
2071         using all weak references in the initializer.
2072         * locale/Makefile (aux): Add global-locale.
2073         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
2074         these unconditional, along with the tsd decl.
2075         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
2076         Define it under these conditions.
2077         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
2078         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
2079         `extern __thread struct locale_data *const *'.
2080         [NL_CURRENT_INDIRECT]
2081         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
2082         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
2083         the thread variable _nl_current_LC_FOO and also a special absolute
2084         symbol _nl_current_LC_FOO_used.
2085         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
2086         Set each _nl_current_LC_FOO symbol to point into the new locale,
2087         using weak references to test if _nl_current_LC_FOO_used was linked in.
2088         * locale/setlocale.c [! SHARED]: Replace this conditional ...
2089         [NL_CURRENT_INDIRECT]: ... with this one.
2090         (_nl_current, _nl_C): Variables removed.
2091         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
2092         weak references to _nl_current_LC_FOO_used.
2093         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
2094         (free_category): New function, broken out of ...
2095         (free_mem): ... here.  Call that.
2096         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
2097         instead of a loop.
2099         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
2100         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
2101         it is already absolute.
2103         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
2104         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
2105         [$(build-static) = yes] (tests-static): New variable.
2106         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
2108 2002-08-26  Christoph Hellwig  <hch@lst.de>
2110         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
2111         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
2113 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2115         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
2117         * sysdeps/s390/Dist: Add bits/link.h.
2119         * sysdeps/sh/Dist: New file.
2121         * sysdeps/ia64/Dist: Add ia64libgcc.S.
2123         * sysdeps/wordsize-32/Dist: New file.
2125         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
2126         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
2127         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
2129         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
2130         sys/personality.h.
2132         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
2133         sparc/dl-brk.S.
2135         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
2137         * sysdeps/unix/bsd/sun/Dist: New file.
2139         * sysdeps/unix/bsd/osf/Dist: New file.
2141         * sysdeps/unix/bsd/hp/Dist: New file.
2143         * sysdeps/unix/arm/Dist: New file.
2145         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
2147         * sysdeps/mach/hurd/Dist: Add set-init.c.
2149         * sysdeps/i386/Dist: Add bits/link.h.
2151         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
2153         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
2155         * locale/Makefile (distribute): Add hashval.h.
2157         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
2159         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
2161         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
2162         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
2163         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
2164         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
2165         implementations.
2166         * libio/stdio.h: Likewise.
2167         * locale/locale.h: Likewise.
2168         * math/math.h: Likewise.
2169         * math/bits/mathcalls.h: Likewise.
2170         * setjmp/setjmp.h: Likewise.
2171         * signal/signal.h: Likewise.
2172         * stdlib/stdlib.h: Likewise.
2173         * string/string.h: Likewise.
2174         * time/time.h: Likewise.
2175         * wcsmbs/wchar.h: Likewise.
2176         * wctype/wctype.h: Likewise.
2178 2002-08-28  Roland McGrath  <roland@redhat.com>
2180         * locale/tst-C-locale.c (run_test): Remove __ from function names.
2182 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2183             Roland McGrath <roland@redhat.com>
2185         * locale/hashval.h (compute_hashval): Use prototype defn.
2186         (hashval_t): New macro, defined to unsigned long int
2187         if not already defined.
2188         (compute_hashval): Return hashval_t instead of unsigned long int.
2189         * locale/loadarchive.c (hashval_t): New macro.
2190         * locale/programs/locarchive.c: Include hashval.h directly instead
2191         of simple-hash.h.
2192         (compute_hashval, hashval_t): Define these macros first.
2193         (insert_name): Use archive_hashval instead of compute_hashval.
2194         (add_locale, delete_locales_from_archive): Likewise.
2196 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2198         * locale/programs/locarchive.c (insert_name): Suppress warnings about
2199         hash collisions if be_quiet.
2201 2002-08-27  Roland McGrath  <roland@redhat.com>
2203         * locale/locale.h (__newlocale, __duplocale, __freelocale,
2204         __uselocale): Don't declare these any more.
2205         * include/locale.h (__uselocale): Declare here instead, using __typeof.
2207         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
2208         and treat it as an EOF return.
2209         * sysdeps/unix/readdir_r.c: Likewise.
2211         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
2212         From Alexandre Oliva <aoliva@redhat.com>.
2213         * sysdeps/gnu/errlist-compat.c: Regenerated.
2215 2002-08-27  Brian Youmans  <3diff@gnu.org>
2217         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
2218         wording at request of copyright holder Stephen Moshier.
2219         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2220         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2221         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2222         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2223         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2224         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2225         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2226         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2227         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2228         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2229         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2230         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2231         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2232         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2234 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2236         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
2237         * ctype/ctype-extn.c (isblank_l): Add weak alias.
2238         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
2239         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
2240         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
2241         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
2242         * wctype/iswctype_l.c (iswctype_l): Likewise.
2244 2002-08-27  Roland McGrath  <roland@redhat.com>
2246         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
2248         * ctype/ctype.h (__exctype_l): Don't declare __ name.
2249         * stdlib/stdlib.h: Don't declare __*_l names.
2250         * include/stdlib.h: Declare them here instead.
2251         * include/string.h: Don't declare __*_l names.
2252         * string/string.h: Declare them here instead.
2253         * time/time.h: Don't declare __*_l names.
2254         * include/time.h: Declare them here instead.
2255         * wcsmbs/wchar.h: Don't declare __*_l names.
2256         * include/wchar.h: Declare them here instead.
2257         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
2258         Don't declare __*_l names.
2259         * include/wctype.h: Declare them here instead.
2260         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
2261         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
2262         * locale/langinfo.h: Don't declare __nl_langinfo_l.
2263         * include/langinfo.h: Declare it here with __typeof.
2265         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
2266         instead, taking an extra __locale_t argument.
2267         * time/Makefile (routines): Add strptime_l.
2268         * time/time.h (__strptime_l, strptime_l): Declare them.
2269         * time/strptime_l.c: New file.
2271         * time/time.h (__strftime_l, strftime_l): Declare them.
2272         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
2273         * time/strftime_l.c: New file.
2274         * time/wcsftime_l.c: New file.
2275         * time/Makefile (routines): Add strftime_l, wcsftime_l.
2276         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
2277         strftime_l, wcsftime_l.
2278         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
2279         or __wcsftime_l instead, taking an extra __locale_t argument.
2281         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
2282         (libc: GLIBC_2.3): ... here.
2284 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
2286         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
2288         * Makefile (distribute): Add LICENSES.
2290         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
2291         sys/debugreg.h.
2293         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
2295         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
2297         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
2299         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
2301         * sysdeps/mach/hurd/alpha/Dist: New file.
2303         * sysdeps/arm/Dist: Add bits/link.h.
2305         * sunrpc/Makefile: Distribute thrsvc.
2307         * stdio-common/Makefile: Remove more left-overs from old stdio.
2309         * include/linewrap.h: Removed.
2311         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
2313         * intl/Makefile (distribute): Add plural-eval.c.
2315 2002-08-27  Roland McGrath  <roland@redhat.com>
2317         * manual/sysinfo.texi (Mount Information): Correct file name to macro
2318         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
2319         Say mtab is in either /var/run or /etc.
2321 2002-08-26  Roland McGrath  <roland@redhat.com>
2323         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
2324         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
2326         * sysdeps/gnu/Versions: New file.
2327         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
2328         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
2329         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
2330         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
2331         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
2332         and _sys_nerr_internal instead of anything else.  Make it include
2333         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
2334         Make it emit some asm magic if [EMIT_ERR_MAX].
2335         * sysdeps/gnu/errlist.c: Regenerated.
2336         * sysdeps/gnu/errlist-compat.awk: New file.
2337         * sysdeps/gnu/errlist-compat.c: New file (generated).
2338         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
2339         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
2340         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
2341         (SYS_ERRLIST, SYS_NERR): Macros removed.
2342         (sys_nerr, _sys_nerr): Remove these weak aliases.
2343         * sysdeps/unix/sysv/linux/errlist.c: File removed.
2344         * sysdeps/unix/sysv/linux/errlist.h: File removed.
2345         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
2347         * include/libc-symbols.h (declare_symbol): New macro.
2348         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
2349         * configure.in: New check to define it.
2350         * configure: Regenerated.
2352 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
2354         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
2355         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
2357         * Make-dist: Remove traces of old stdio.
2358         * Makeconfig: Likewise.
2360         * locale/Makefile (localedef-aux): New variable.  Only md5
2361         assigned to it.  These files are not ddistributed in this directory.
2363         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
2364         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
2365         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
2367         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
2369         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
2370         set h_errno to NO_RECOVERY [PR libc/4360].
2372 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2374         * libio/Makefile (tests): Add bug-fopena+.
2375         * libio/bug-fopena+.c: New file.
2376         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
2377         file for _IO_IS_APPENDING if file isn't opened for reading, too.
2379         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
2381         * locale/xlocale.c: Fix the last change.  The variable still has
2382         to end in _data.
2383         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
2384         (__libc_tsd_set): Add _data prefix to variable name.
2386 2002-08-26  Roland McGrath  <roland@redhat.com>
2388         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
2389         macro with inline function.
2390         (sigset_get_old_mask): Likewise.
2391         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
2392         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2393         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2394         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
2395         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
2396         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
2397         values.
2398         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
2399         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
2401 2002-07-06  Bruno Haible  <bruno@clisp.org>
2403         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
2404         sigset_get_old_mask): Make it work with larger sigset_t.
2405         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
2406         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2407         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2409 2002-08-26  Roland McGrath  <roland@redhat.com>
2411         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
2412         * manual/filesys.texi (File Times): Document lutimes and futimes.
2413         * misc/Makefile (routines): Add them.
2414         * misc/Versions (libc: GLIBC_2.3): Likewise.
2415         * sysdeps/generic/lutimes.c: New file.
2416         * sysdeps/generic/futimes.c: New file.
2417         * sysdeps/mach/hurd/lutimes.c: New file.
2418         * sysdeps/mach/hurd/futimes.c: New file.
2420         * manual/filesys.texi (File Times): Add explicit note about null
2421         pointer argument to utimes.
2423 2002-08-26  Roland McGrath  <roland@frob.com>
2425         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
2426         (__ifreq): Add a cast.  Remove an unused variable.
2428         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
2429         _HURD_THREADVAR_LOCALE.
2431 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
2433         * posix/regexec.c (re_search_stub): Return correct match length
2434         if start != 0.
2435         * posix/bug-regex10.c: New test.
2436         * posix/Makefile (tests): Add bug-regex10.
2438 2002-08-26  Brian Youmans  <3diff@gnu.org>
2440         * COPYING.LIB: Replaced with fresh copy from
2441         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
2442         suggested copying permission notice now says version 2.1 instead
2443         of version 2.
2445         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
2446         from Library GPL.
2447         * crypt/crypt_util.c: Likewise.
2448         * crypt/ufc.c: Likewise.
2449         * elf/dl-conflict.c: Likewise.
2450         * elf/dl-iteratephdr.c: Likewise.
2451         * iconv/iconvconfig.h: Likewise.
2452         * malloc/arena.c: Likewise.
2453         * malloc/hooks.c: Likewise.
2454         * malloc/malloc.c: Likewise.
2455         * posix/glob/Makefile.ami: Likewise.
2456         * posix/glob/Makefile.in: Likewise.
2457         * stdlib/gmp-impl.h: Likewise.
2458         * stdlib/gmp.h: Likewise.
2459         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
2460         * sysdeps/generic/strnlen.c: Likewise.
2461         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
2462         * sysdeps/mach/hurd/recvmsg.c: Likewise.
2463         * sysdeps/mach/hurd/sendmsg.c: Likewise.
2464         * sysdeps/mach/hurd/spawni.c: Likewise.
2465         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
2466         * sysdeps/mach/powerpc/sysdep.h: Likewise.
2467         * sysdeps/mach/powerpc/thread_state.h: Likewise.
2468         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
2469         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
2470         * sysdeps/x86_64/gmp-mparam.h: Likewise.
2472         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
2473         Lesser GPL copying permission notice from 2 to 2.1.
2474         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
2475         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
2476         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2477         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
2478         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2479         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2480         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2481         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2482         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2483         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2484         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2485         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2486         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2487         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2488         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2489         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2490         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2491         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2492         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2493         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2494         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2495         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2496         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2497         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2498         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2499         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2500         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2501         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2502         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2503         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2504         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2505         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2506         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2507         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2508         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2509         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2510         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2511         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2512         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2513         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2514         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2515         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2516         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2517         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2518         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2519         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2520         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2521         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2522         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2523         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2524         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2525         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2526         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2527         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2528         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2530         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
2531         Moshier and Lesser GPL copying permission notice, per license from
2532         Moshier.
2533         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2534         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2535         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2536         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2537         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2538         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2539         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2540         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2541         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2542         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2543         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2544         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2545         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2546         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2548         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
2549         notice, per license from copyright holder Stephen Moshier.
2550         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2551         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2552         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2553         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2554         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2555         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2556         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2557         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2558         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2560 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2562         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
2563         (shared-only-routines): Likewise.
2565 2002-08-26  Roland McGrath  <roland@redhat.com>
2567         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
2568         name of "", store a null pointer instead.
2570         * configure.in (elf): Set to yes for freebsd*, netbsd*.
2571         * configure: Regenerated.
2573         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
2574         Initialize this instead of __libc_tsd_LOCALE_data.
2576         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
2577         ptsname_r to EINVAL.
2579         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
2581         * rt/Makefile: Revert last change, it was inappropriate to presume aio
2582         implementations depend on pthreads.
2583         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
2584         * rt/tst-aio64.c (do_test): Likewise.
2585         * rt/tst-aio2.c (do_test): Likewise.
2586         * rt/tst-aio3.c (do_test): Likewise.
2587         * rt/tst-aio4.c (do_test): Likewise.
2588         * rt/tst-aio5.c (do_test): Likewise.
2589         * rt/tst-aio6.c (do_test): Likewise.
2590         * rt/tst-aio7.c (do_test): Likewise.
2592         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2593         void so as to avoid compiler warnings.
2595         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2596         _IO_wide_data_FD, which is never used here.
2598         * libio/iofread.c
2599         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2600         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2601         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2603         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2604         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2606         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2607         (closelog): Likewise.
2609 2002-07-06  Bruno Haible  <bruno@clisp.org>
2611         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2613         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2614         * sysdeps/unix/alpha/pipe.S: ... here.
2615         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2617         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2619         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2620         * sysdeps/unix/i386/fork.S: Likewise.
2621         * sysdeps/unix/i386/pipe.S: Likewise.
2622         * sysdeps/unix/i386/wait.S: Likewise.
2624         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2625         * sysdeps/unix/arm/fork.S: Likewise.
2627         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2628         arguments.
2629         (DO_CALL): Swap argument order.
2630         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2631         arguments.
2632         (DO_CALL): Swap argument order.
2633         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2634         arguments.
2635         (DO_CALL): Swap argument order.
2636         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2637         arguments.
2638         (DO_CALL): Swap argument order.
2639         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2640         arguments.
2641         (DO_CALL): Swap argument order.
2642         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2643         arguments.
2644         (DO_CALL): Swap argument order.
2645         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2646         arguments.
2647         (DO_CALL): Swap argument order.
2649         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2650         (L): Define right for ELF.
2651         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2652         Now defined in sysdeps/i386/sysdep.h.
2654         * sysdeps/posix/readv.c: Ansify function definition.
2655         * sysdeps/posix/writev.c: Likewise.
2657         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2658         have the same size. Avoid direct cast from size_t to off_t.
2660         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2661         nul byte in entry[n].ut_user.
2662         (simulate_logout): Likewise.
2664         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2665         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2666         existence of corresponding members of 'struct utmp'.
2667         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2668         !_HAVE_UT_TYPE.
2670         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2671         allocate a buffer of at least BUFSIZ bytes, not just of
2672         sizeof (struct dirent).
2674         * sysdeps/generic/glob.c: Include <limits.h>.
2675         (NAME_MAX): Define a fallback.
2676         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2677         stack.
2678         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2679         (main): Allocate enough room for a 'struct dirent64' on the stack.
2680         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2681         'struct dirent'.
2683         * sysdeps/unix/sysv/linux/init-first.c: Don't include
2684         kernel-features.h.
2686         * inet/htontest.c: Include <sys/types.h>.
2688         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2690         * include/sys/sysctl.h: Comment fix.
2692         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2693         _dl_load_lock.
2694         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2696         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2698         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2699         (__getpeername): New alias.
2700         (__getsockname): New alias.
2701         (__socket): New alias.
2703         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2705         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2706         (__fcntl_internal): New alias.
2707         (__profil): New alias.
2709 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2711         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2712         entry was for getaddr* lookup or not.  Add only matching cache
2713         entry.  Change all callers [PR libc/4317].
2715         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2716         finding the read position [PR libc/4265].
2717         * libio/Makefile (tests): Add bug-rewind2.
2718         * libio/bug-rewind2.c: New file.
2720         * libio/bug-rewind.c: Fix creation of temp file.
2722 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2724         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2725         neither SUCCESS nor TRYAGAIN [PR libc/4259].
2726         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2727         to ENOENT if no entry is found.
2728         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2729         failure.
2730         * nis/nss_compat/compat-initgroups.c: Likewise.
2731         * nis/nss_compat/compat-pwd.c: Likewise.
2732         * nis/nss_compat/compat-spwd.c: Likewise.
2733         * nis/nss_nis/nis-alias.c: Likewise.
2734         * nis/nss_nis/nis-ethers.c: Likewise.
2735         * nis/nss_nis/nis-grp.c: Likewise.
2736         * nis/nss_nis/nis-hosts.c: Likewise.
2737         * nis/nss_nis/nis-initgroups.c: Likewise.
2738         * nis/nss_nis/nis-netgrp.c: Likewise.
2739         * nis/nss_nis/nis-network.c: Likewise.
2740         * nis/nss_nis/nis-proto.c: Likewise.
2741         * nis/nss_nis/nis-publickey.c: Likewise.
2742         * nis/nss_nis/nis-pwd.c: Likewise.
2743         * nis/nss_nis/nis-rpc.c: Likewise.
2744         * nis/nss_nis/nis-service.c: Likewise.
2745         * nis/nss_nis/nis-spwd.c: Likewise.
2746         * resolv/nss_dns/dns-host.c: Likewise.
2747         * resolv/nss_dns/dns-network.c: Likewise.
2748         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2749         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2750         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2751         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2752         * nis/nss_nisplus/nisplus-network.c: Likewise.
2753         * nis/nss_nisplus/nisplus-proto.c: Likewise.
2754         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2755         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2756         * nis/nss_nisplus/nisplus-service.c: Likewise.
2757         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2758         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2759         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2760         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2761         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2763         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2764         declaring __restore and __restore_rt as hidden (if possible).
2766 2002-08-25  Roland McGrath  <roland@redhat.com>
2768         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2770         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2771         (getutent_r_file, internal_getut_r): Updated all callers.
2772         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2774 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2776         * locale/programs/locale.c: Don't print aliases for non-existing
2777         locales for 'locale -a'.
2778         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2780 2002-07-19  H.J. Lu  <hjl@gnu.org>
2782         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2784 2002-07-16  H.J. Lu  <hjl@gnu.org>
2786         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2787         sys/personality.h.
2788         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2790 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2792         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2793         not moved ahead of the fputs call.
2794         * elf/tst-tlsmod2.c (in_dso): Likewise.
2795         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2796         * elf/tst-tlsmod4.c (in_dso): Likewise.
2798 2002-08-25  Andreas Schwab  <schwab@suse.de>
2800         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2802 2002-08-25  Roland McGrath  <roland@redhat.com>
2804         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2805         resetting handler, to avoid the possibility of a spurious SIGALRM
2806         delivered to the user's handler.
2807         Reported by Amit D. Chaudhary <amitc@brocade.com>,
2809         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
2810         set -fkeep-inline-functions, which is not needed for the current file.
2812         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2813         (_dl_setup_hash): Add attribute_hidden.
2814         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2815         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2816         (_dl_new_object, _dl_map_object_deps): Likewise.
2817         (_dl_map_object_deps_internal): Remove decl.
2818         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2820         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2821         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2822         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2823         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2824         instead relying on the compiler to produce only GOTOFF variable refs.
2826 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2828         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
2830         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2831         inline to avoid defining it in every file which includes this header.
2833         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2834         defining DONT_USE_BOOTSTRAP_MAP.
2836         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2837         * libio/tst-mmap-setvbuf.c (main): Likewise.
2838         * libio/tst-widetext.c (main): Likewise.
2840         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2841         message.
2842         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2843         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2845         * sysdeps/i386/elf/configure.in: Unconditionally define
2846         PI_STATIC_AND_HIDDEN.
2847         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2848         PI_STATIC_AND_HIDDEN is defined as well.
2849         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2851 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
2853         * sysdeps/ia64/bzero.S: Define __bzero as well.
2855         * locale/programs/charmap.c (charmap_new_char): Don't use
2856         ULONG_MAX as maximum UCS4 value.
2858         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2860         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2862         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2863         * malloc/malloc.c (mALLINFo): Likewise.
2865         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2867         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2868         examining result of _IO_do_flush call.
2870         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2871         Use prec not spec when sizing buffers.
2873         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2874         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2875         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2876         * stdio-common/vfscanf.c (inchar): Likewise.
2877         * misc/efgcvt_r.c (fcvt_r): Likewise.
2878         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2879         * elf/readlib.c (process_file): Likewise.
2880         * elf/sprof.c (load_profdata): Likewise.
2881         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2882         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2883         * locale/programs/charmap.c (charmap_read): Likewise.
2884         * libio/fileops.c: Likewise.
2885         * libio/fmemopen.c: Likewise.
2886         * stdlib/strtod.c: Likewise.
2887         * elf/dl-load.c: Likewise.
2888         * iconv/iconvconfig.c: Likewise.
2889         * iconv/iconv_prog.c (process_block): Likewise.
2890         * elf/rtld.c (dl_main): Likewise.
2892         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2893         macro to calm down the compiler.
2895         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2897         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2899         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2900         placement of errno definition.
2901         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2902         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2903         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2904         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2905         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2907         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2908         from 1024 to 65536, to avoid buffer overrun.
2910 2002-08-16  Paul Eggert  <eggert@twinsun.com>
2912         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2913         from 1024 to 65536, to avoid buffer overrun.
2914         * resolv/res_query.c (MAXPACKET): Likewise.
2916 2002-08-24  Andreas Jaeger  <aj@suse.de>
2918         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2920 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
2922         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2923         two52 locally.
2924         (log2): Likewise.
2925         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2926         Patch by Simon Gee <simong@agile.tv>.
2928         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2929         Prefer reading /proc/stat since it is more uniform across
2930         architectures.
2932         * manual/texinfo.tex: Update to latest official version.
2934         * sysvipc/sys/shm.h: Remove SHMLBA definition.
2935         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2936         * sysdeps/gnu/bits/shm.h: Likewise.
2937         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2938         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2939         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2940         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2941         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2942         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2943         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2944         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2945         since this is what the kernel says.
2947         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2948         since ssize_t is needed as well.  Replace const with __const.
2950 2002-08-23  Roland McGrath  <roland@redhat.com>
2952         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2953         __malloc_hook, __realloc_hook, __memalign_hook,
2954         __after_morecore_hook): Variable definitions moved to ...
2955         * malloc/malloc.c: ... here, so as to be before all references.
2957         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2958         global variable reference in an unused asm parameter, to ensure the
2959         compiler has set up the GOT register before we use it.
2961         * malloc/hooks.c: Move variable definitions ahead of uses.
2962         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2963         initializers that make reference to variables they define.
2965 2002-08-23  Andreas Jaeger  <aj@suse.de>
2967         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2968         alloca, free, qsort.
2970         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2972         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2973         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2975         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2976         <hch@lst.de>.
2977         * sysdeps/generic/fgetxattr.c: New file.
2978         * sysdeps/generic/flistxattr.c: New file.
2979         * sysdeps/generic/fremovexattr.c: New file.
2980         * sysdeps/generic/fsetxattr.c: New file.
2981         * sysdeps/generic/getxattr.c: New file.
2982         * sysdeps/generic/listxattr.c: New file.
2983         * sysdeps/generic/lgetxattr.c: New file.
2984         * sysdeps/generic/llistxattr.c: New file.
2985         * sysdeps/generic/lremovexattr.c: New file.
2986         * sysdeps/generic/lsetxattr.c: New file.
2987         * sysdeps/generic/removexattr.c: New file.
2988         * sysdeps/generic/setxattr.c: New file.
2989         * misc/Makefile (headers): Add sys/xattr.h.
2990         (routines): Add *xattr calls.
2991         * misc/Versions: Add *xattr calls with version 2.3.
2992         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2993         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2994         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2995         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2996         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2997         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2998         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2999         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3001 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
3003         * sysdeps/powerpc/elf/libc-start.c
3004         (__cache_line_size): Declare.
3005         (__aux_init_cache): New function.
3006         (__libc_start_main): Change type of `auxvec' parameter to
3007         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
3008         __aux_init_cache.
3009         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3010         (__cache_line_size): Declare.
3011         (__aux_init_cache): New function.
3012         (DL_PLATFORM_INIT): Define.
3013         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
3014         value to select the correct stride for dcbz.
3016 2002-08-22  Andreas Jaeger  <aj@suse.de>
3018         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
3019         shmat.
3021 2002-08-22  Roland McGrath  <roland@redhat.com>
3023         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
3024         position indicated by locrectab against file bounds before rounding to
3025         page size.  In mapping loop, always set TO before breaking out of
3026         contiguous range coalescing loop.
3028         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
3029         (or MAP_COPY if available) instead of MAP_SHARED.
3031         * scripts/firstversions.awk: When encountering a version newer than
3032         the specified earliest version, be sure to emit the specified earliest
3033         version first if any renaming of an older version to that has been.
3035 2002-08-21  Roland McGrath  <roland@redhat.com>
3037         * configure.in: Make GCC version check require 3.[2-9]* and no others.
3038         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
3039         (Configuring and compiling): Don't mention older GCC versions any more.
3040         * INSTALL: Regenerated.
3042         * manual/install.texi (Configuring and compiling, Installation,
3043         Running make install, Linux): Linux -> GNU/Linux where appropriate.
3045         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
3046         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
3047         and with noinline otherwise.  Remove hack alloca use to prevent
3048         inlining, we can ask for it explicitly nowadays.
3050         * dlfcn/bug-dlsym1.c: New file.
3051         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
3052         * dlfcn/Makefile (distribute): Add them.
3053         (tests): Add bug-dlsym1 here.
3054         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
3055         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
3056         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
3058 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
3060         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
3061         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
3062         before relocation.
3063         (_dl_start): Don't use local bootstrap_map variable if
3064         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
3065         pass bootstrap_map to _dl_start_final in this case either.  Don't
3066         pass start_time to _dl_start_final ever.
3067         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
3069         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
3070         This cripples the scope lists necessary to search for symbols in
3071         dependencies which are not in the global scope.
3073         * include/setjmp.h (__libc_longjmp): Add declaration.
3075 2002-08-21  Andreas Jaeger  <aj@suse.de>
3077         * sysdeps/x86_64/_mcount.S: Fix assembler.
3079         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
3080         with biarch support.
3082 2002-08-21  Andreas Jaeger  <aj@suse.de>
3084         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
3086         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
3088         * sysdeps/x86_64/machine-gmon.h: New file.
3089         * sysdeps/x86_64/_mcount.S: New file.
3091 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
3093         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
3094         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
3095         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
3096         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
3097         to TL_INIT_TP.  Otherwise pass 1.
3098         * include/link.h (struct link_map): Add l_tls_tp_initialized.
3099         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
3101 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
3103         * locale/programs/localedef.c (add_to_readlist): Error about
3104         circular dependencies only if the locale in question hasn't
3105         been finished.
3106         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
3107         CTYPE_LOCALE to load_locale.
3108         * locale/programs/locfile.c (locfile_read): Don't include
3109         unneeded but available locales in locale_mask.
3111         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
3112         print any messages about enlarging archive.
3114 2002-08-20  Brian Youmans  <3diff@gnu.org>
3116         * manual/contrib.texi: Removed licenses, added acknowledgements
3117         for contributions by Intel, IBM, Craig Metz.
3118         * LICENSES: New file, contains the text of all non-FSF licenses in the
3119         distribution that require putting the notice in the accompanying
3120         documentation.
3121         * README.template, README: Mention LICENSES.
3123         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
3124         new one modelled on the modern BSD license, per recent letter
3125         of permission from CMU.
3126         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
3128         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
3129         from IBM to FSF, per the recent Software Letter.  Changed the
3130         distribution terms from GPL to LGPL.
3132         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
3133         copying permission notice (Lesser GPL), per recent IBM Software Letter.
3134         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
3135         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
3136         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
3137         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
3138         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
3139         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
3140         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
3141         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
3143         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
3144         from IBM to FSF, per the recent Software Letter.  Corrected the
3145         text of the copying permission notice to say Lesser GPL instead
3146         of GPL in warranty disclaimer paragraph.
3147         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
3148         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
3149         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
3150         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
3151         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
3152         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
3153         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
3154         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
3155         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
3156         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
3157         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
3158         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
3159         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
3160         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
3161         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
3162         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
3163         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
3164         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
3165         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
3166         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
3167         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
3169         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
3170         permission notice to say Lesser GPL instead of GPL in warranty
3171         disclaimer paragraph.
3172         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
3173         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3174         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3175         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3176         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3177         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3178         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3179         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3180         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3181         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3182         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
3183         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
3184         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
3185         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
3186         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
3187         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
3188         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
3189         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3190         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3191         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3192         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
3193         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
3194         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
3196 2002-08-20  Roland McGrath  <roland@redhat.com>
3198         Fix ABI compatibility with libc compiled with old tools on powerpc.
3199         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3200         and Jack Howarth <howarth@bromo.med.uc.edu>.
3201         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
3202         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
3203         pass -DHAVE_DOT_HIDDEN for these files.
3204         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
3205         __floatdisf.
3206         * sysdeps/powerpc/divdi3.c: New file.
3207         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
3208         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
3210 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
3212         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
3213         partially overlapping mappings.  Remove unneeded (char *) casts.
3214         Never allow duplication of ranges in mapped areas.
3216 2002-08-20  Roland McGrath  <roland@redhat.com>
3218         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
3219         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
3221 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
3223         * include/unistd.h: Don't hide _exit.
3225         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
3226         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
3227         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
3228         argument 1 to TLS_INIT_TP.
3229         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
3231         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
3233         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
3234         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
3235         memory allocation to...
3236         (allocate_dtv): ...here.  New function.
3237         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
3238         call allocate_dtv instead of _dl_allocate_tls_storage.
3239         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
3240         (_dl_get_tls_static_info): New function.
3241         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
3242         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
3244 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
3246         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
3247         immediately if result == NULL.
3249 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
3251         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
3253 2002-08-18  Roland McGrath  <roland@frob.com>
3255         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
3256         instead of __file_name_split.
3257         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
3259         * sysdeps/mach/hurd/dl-sysdep.c
3260         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
3261         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
3263 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
3265         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
3266         in change before last: MAX -> MIN.
3268 2002-08-15  Roland McGrath  <roland@redhat.com>
3270         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
3271         if seek would go past it.
3272         (mmap_remap_check): If file position is at or past EOF after check,
3273         leave read pointers at EOF and don't seek.
3275         * libio/tst-mmap-offend.c: New file.
3276         * libio/Makefile (tests): Add it.
3278         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
3279         the name as passed, rather than the name in the archive dictionary.
3281 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
3283         * csu/Makefile: Define elide-routines.os not static-only-routines.
3285         * include/sched.h (__clone): Add varargs at the end.
3287         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
3288         case.
3289         (TLS_INIT_HELPER): If defined, use it.
3290         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
3292 2002-08-15  Roland McGrath  <roland@redhat.com>
3294         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
3295         on L->l_prev; it can happen under rtld --verify too.
3297         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
3298         header separately, just map an initial window of 2MB from the file
3299         and remap if that is not large enough to cover the whole header.
3301 2002-08-15  Andreas Jaeger  <aj@suse.de>
3303         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
3304         version 2.3.
3305         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3306         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
3307         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
3308         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
3309         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
3310         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3311         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3312         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
3313         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
3314         Patch by Andreas Gruenbacher <agruen@suse.de>.
3316         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
3318 2002-08-14  Roland McGrath  <roland@redhat.com>
3320         * locale/locarchive.h (struct locale_category_data): Give this name to
3321         the type of locale_data_t's elements.
3322         * locale/programs/locarchive.c (cmpcategorysize): New static function.
3323         (add_locale): Use that to sort the categories by size and put all
3324         those that fit into two pages into the LC_ALL block, instead of
3325         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
3326         (show_archive_content): Detect categories inside LC_ALL block
3327         directly, instead of hard-coding.
3328         (oldlocrecentcmp): Compare just on file locations used.
3330 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
3332         * locale/programs/locarchive.c (struct oldlocrecent): New type.
3333         (oldlocrecentcmp): New function.
3334         (enlarge_archive): Re-add locales in the order they were added
3335         to the archive.
3336         (add_locale): Put all the small locale files together, if the small
3337         locale file block would occupy less pages if page size aligned, align
3338         it.
3339         (show_archive_content): Adjust for locale archives optimized for speed.
3341 2002-08-14  Roland McGrath  <roland@frob.com>
3343         * configure.in: Use "MISSING" as not-found value for MIG.
3344         * sysdeps/mach/configure.in: Fatal if mig not found.
3345         * configure, sysdeps/mach/configure: Regenerated.
3347 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
3349         * locale/loadarchive.c (archfname): Add missing slash.
3351         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
3352         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
3354 2002-08-12  Roland McGrath  <roland@redhat.com>
3356         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
3357         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
3358         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
3359         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
3360         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
3361         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
3362         * sysdeps/generic/waitpid.c: Likewise.
3364         * include/net/if.h: New file.  Use libc_hidden_proto
3365         for if_nametoindex and if_indextoname.
3366         * sysdeps/generic/if_index.c: Add libc_hidden_def.
3367         * sysdeps/mach/hurd/if_index.c: Likewise.
3368         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
3370         * include/grp.h (setgroups): Add libc_hidden_proto.
3371         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
3372         * sysdeps/mach/hurd/setgroups.c: Likewise.
3373         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
3374         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3376 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
3378         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
3379         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
3380         * sysdeps/generic/setegid.c (setegid): Likewise.
3381         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
3382         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
3383         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
3384         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
3385         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
3386         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
3387         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
3388         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
3389         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
3390         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
3391         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
3392         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
3393         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
3395         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
3396         __lxstat_internal, __lxstat64_internal): Remove.
3397         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
3398         Add hidden_proto.
3399         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
3400         Remove INTDEF where present, remove #undef at the beginning.
3401         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
3402         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
3403         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
3404         * sysdeps/generic/xstat.c (__xstat): Likewise.
3405         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
3406         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
3407         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
3408         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
3409         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
3410         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
3411         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
3412         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
3413         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
3414         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
3415         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
3416         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
3417         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
3418         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
3419         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
3420         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
3421         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
3422         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
3423         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
3424         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
3425         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
3426         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
3427         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
3428         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3429         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3430         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3431         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
3432         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
3433         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
3434         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3435         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
3436         * sysdeps/unix/xstat.c (__xstat): Likewise.
3438         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
3439         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
3440         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
3441         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
3442         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
3443         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
3444         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
3446         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
3447         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
3448         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
3449         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
3450         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
3451         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
3452         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
3453         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
3454         Likewise.
3455         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
3456         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
3457         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
3458         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
3459         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
3460         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
3461         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
3462         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
3464         * include/string.h (strcoll): Add libc_hidden_proto.
3465         * string/strcoll.c (strcoll): Add libc_hidden_def.
3467         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
3469 2002-08-11  Philip Blundell  <philb@gnu.org>
3471         * sysdeps/arm/Makefile: New file.
3473 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3475         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
3476         by another '|', end of regex or enclosing ')', clear branch.
3477         * posix/bug-regex9.c: New test.
3478         * posix/Makefile (tests): Add bug-regex9.
3480 2002-08-12  Roland McGrath  <roland@redhat.com>
3482         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
3483         start count condition, use TOTAL instead of variable that was never
3484         set.  Fix outer loop termination condition to TOTAL >= after update.
3486         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
3487         dl_tls_static_align and dl_tls_static_nelem.
3489 2002-08-11  Roland McGrath  <roland@redhat.com>
3491         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
3492         of the TLS macros, otherwise the compiler might not have initialized
3493         the PIC register yet when we use the PLT via asm.
3494         * elf/tst-tlsmod3.c (in_dso2): Likewise.
3495         * elf/tst-tlsmod2.c (in_dso): Likewise.
3497         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
3499         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
3500         Evaluate argument exactly once.  Remove __volatile__ from asm's.
3502         * include/unistd.h: Use libc_hidden_proto for getdomainname
3503         and getlogin_r.
3504         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
3505         * sysdeps/mach/hurd/getdomain.c: Likewise.
3506         * sysdeps/unix/getlogin_r.c: Likewise.
3507         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
3508         * sysdeps/generic/getlogin_r.c: Likewise.
3510         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
3511         * sunrpc/rtime.c: Add libc_hidden_def.
3513         * include/string.h: Use libc_hidden_proto for basename.
3514         * string/basename.c [_LIBC]: Add libc_hidden_def.
3516         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
3518         * locale/loadarchive.c: munmap -> __munmap throughout.
3520         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
3521         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
3522         * sysdeps/generic/gai_strerror.c: Likewise.
3524         * include/sys/errno.h: New file.
3526         * include/signal.h: No libc_hidden_proto for raise,
3527         __libc_current_sigrtmin, __libc_current_sigrtmax.
3528         These need to be overridden by linuxthreads.
3529         * sysdeps/posix/raise.c: Reverted.
3530         * sysdeps/generic/raise.c: Reverted.
3531         * signal/allocrtsig.c: Reverted.
3533         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
3535 2002-08-10  Roland McGrath  <roland@redhat.com>
3537         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
3538         * locale/localeinfo.h: Declare it.
3539         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
3540         current locale if it's not in the file list.
3541         Call _nl_archive_subfreeres.
3543 2002-08-10  Andreas Jaeger  <aj@suse.de>
3545         * sysdeps/i386/strchr.S: Add comment.
3547 2002-08-10  Roland McGrath  <roland@redhat.com>
3549         * include/wchar.h (putwc): Use libc_hidden_proto.
3550         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
3551         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
3552         * stdio-common/dprintf.c: Add libc_hidden_def.
3553         * stdio-common/fprintf.c: Likewise.
3554         * stdio-common/sprintf.c: Likewise.
3555         * stdio-common/sscanf.c: Likewise.
3556         * libio/iofwrite.c: Likewise.
3557         * libio/memstream.c: Likewise.
3558         * libio/putwc.c: Likewise.
3559         * stdio-common/perror.c: Likewise.
3560         * sysdeps/posix/remove.c: Likewise.
3561         * sysdeps/generic/remove.c: Likewise.
3562         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
3563         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
3565 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
3567         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3568         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
3569         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3570         towlower, towupper): Add libc_hidden_weak.
3572         * include/bits/dlfcn.h: New file.
3573         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
3575         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
3576         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
3577         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
3578         * include/pwd.h (_nss_files_parse_pwent): Likewise.
3579         * include/shadow.h (_nss_files_parse_spent): Likewise.
3580         * include/netdb.h (_nss_files_parse_protoent,
3581         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
3582         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
3583         (LINE_PARSER): Use it.
3584         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
3585         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
3587         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
3588         #endif.
3590         * manual/debug.texi (%MENU%): Remove trailing dot.
3591         Reported by <hayastan132@hotmail.com>.
3593         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
3594         aliases.
3595         (lseek): Dummy.
3596         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
3597         Likewise.
3599 2002-08-09  Roland McGrath  <roland@redhat.com>
3601         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
3602         name to find codeset name (if any) and normalize it.  If the
3603         normalized name differs, look up only that in the archive.
3604         * locale/programs/locarchive.c (add_locale_to_archive): If the name
3605         contains a codeset, normalize the codeset store only the normalized
3606         name in the archive.  If not, add an alias containing the locale's
3607         normalized codeset name.  Apply codeset name normalization when
3608         matching entries in the alias file.
3610         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3611         decrement HEAD->namehash_used here.
3612         (add_locale): Only need to insert name string when name_offset != 0.
3614         * locale/programs/localedef.c (options): Add -A/--alias-file.
3615         (alias_file): New variable.
3616         (parse_opt): Grok -A, set that.
3617         * locale/programs/localedef.h: Declare it.
3619         * locale/locarchive.h (struct locrecent): Add `refs' member.
3620         * locale/programs/locarchive.c (insert_name): New function, broken out
3621         of ...
3622         (add_locale_to_archive): ... here.  Call that.
3623         (add_alias): New function.
3624         (add_locale): New static function, add_locale_to_archive renamed.
3625         (add_locale_to_archive): Call that and use add_alias to add an alias
3626         for the name with codeset if the given name lacks it.
3627         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3629         * locale/Makefile (routines): Add loadarchive.
3630         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3631         (_nl_load_locale_from_archive): New function.
3632         * locale/localeinfo.h: Declare it.
3633         * locale/findlocale.c (_nl_find_locale): If using default locale path,
3634         try _nl_load_locale_from_archive first.
3636         * locale/loadlocale.c (_nl_intern_locale_data): New function,
3637         broken out of _nl_load_locale.
3638         (_nl_load_locale): Call that.
3639         * locale/localeinfo.h: Declare it.
3640         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3641         (struct locale_data): Remove unused member `options'.
3642         * locale/findlocale.c (_nl_remove_locale): Update uses.
3643         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3644         * locale/C-collate.c: Update initializer.
3645         * locale/C-identification.c: Likewise.
3646         * locale/C-measurement.c: Likewise.
3647         * locale/C-telephone.c: Likewise.
3648         * locale/C-address.c: Likewise.
3649         * locale/C-name.c: Likewise.
3650         * locale/C-paper.c: Likewise.
3651         * locale/C-time.c: Likewise.
3652         * locale/C-numeric.c: Likewise.
3653         * locale/C-monetary.c: Likewise.
3654         * locale/C-messages.c : Likewise.
3655         * locale/C-ctype.c: Likewise.
3657         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3658         use CHAR_BIT instead of BITSPERBYTE.
3660         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3661         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3662         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3663         (_nl_remove_locale): Likewise.
3664         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3666         * locale/findlocale.c (_nl_default_locale_path): New variable.
3667         (_nl_find_locale): If LOCALE_PATH is null, default to that.
3668         * locale/localeinfo.h: Declare it.
3669         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3670         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
3671         * locale/newlocale.c (__newlocale): Likewise.
3673         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3674         * inet/rexec.c (rexec_af): Add libc_hidden_def.
3675         * sysdeps/generic/morecore.c: Likewise.
3676         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3677         (__libc_current_sigrtmax): Likewise.
3679 2002-08-08  Roland McGrath  <roland@redhat.com>
3681         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3682         * catgets/open_catalog.c (__open_catalog): Likewise.
3684         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3685         from typo INITIAL_NUM_NANES.
3686         (create_archive): Update use.
3688 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3690         * sysdeps/unix/sysv/linux/sigwait.c: New file.
3692 2002-08-08  Roland McGrath  <roland@frob.com>
3694         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3696 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3698         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3699         else and undefine after including wcstol_l.c.
3700         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3702 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3704         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3706 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
3708         * configure.in: Make the test for broken_alias_attribute stricter.
3710 2002-05-24  Robert Love  <rml@tech9.net>
3712         * posix/Makefile (routines): Add sched_getaffinity and
3713         sched_setaffinity.
3714         * posix/sched.h: Add declarations for sched_getaffinity and
3715         sched_setaffinity.
3716         * sysdeps/generic/sched_getaffinity.c: New file.
3717         * sysdeps/generic/sched_setaffinity.c: New file.
3718         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3719         sched_setaffinity.
3721 2002-08-06  Andreas Schwab  <schwab@suse.de>
3723         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3725 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3727         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3728         message.
3730         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3731         It is known to be defined.
3733         * include/string.h: Define index and rindex only if _ISOMAC is not
3734         defined.
3736         * elf/rtld.c: Include <errno.h>.
3737         * sysdeps/generic/libc-tls.c: Likewise.
3739 2002-08-07  Roland McGrath  <roland@redhat.com>
3741         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3742         it internally.
3743         (precsize_aton): Likewise.
3745         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3746         the static symbols added in the last change (doofus is me).
3748         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3749         loop to notice missing categories in a composite name.
3751         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3752         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3753         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3754         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3756 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3758         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3760 2002-08-07  Roland McGrath  <roland@redhat.com>
3762         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3763         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3764         Reported by Jakub Jelinek  <jakub@redhat.com>.
3766 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
3768         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3769         division.
3771 2002-08-06  Roland McGrath  <roland@redhat.com>
3773         * include/getopt.h: Put private decls inside [_GETOPT_H].
3774         Use libc_hidden_proto for getopt_long, getopt_long_only.
3775         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3776         Add libc_hidden_def.
3778         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3779         Define as a macro for __dl_iterate_phdr.
3781         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3782         made static.  Add __ name as a strong alias.
3783         (internal_endnetgrent): Likewise.
3784         (internal_getnetgrent_r): Likewise.
3786         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3787         with no __ prefix.
3788         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3789         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3790         all *_l functions with no __ prefix.
3791         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3792         * ctype/ctype_l.c: Likewise.
3793         * locale/nl_langinfo.c: Likewise.
3794         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3795         * stdlib/stdlib.h [__USE_GNU]: Likewise.
3796         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3797         * wctype/wctype.h [__USE_GNU]: Likewise.
3798         * string/strcoll_l.c (strcoll_l): Define as weak alias.
3799         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3800         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3801         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3802         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3803         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3804         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3805         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3806         (__wcscasecmp_l): Add libc_hidden_def.
3807         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3808         (__wcsncasecmp_l): Add libc_hidden_def.
3809         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3810         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3811         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3812         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3813         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3814         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3815         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3816         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3817         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3818         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3819         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3820         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3821         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3822         * wctype/wctype_l.c (wctype_l) Define as weak alias.
3824 2002-08-05  Roland McGrath  <roland@redhat.com>
3826         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3827         netname2user, host2netname, user2netname, key_gendes.
3828         * sunrpc/netname.c: Add libc_hidden_def.
3829         * sunrpc/key_call.c: Likewise.
3831         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3832         freeaddrinfo.
3833         * inet/getnameinfo.c: Add libc_hidden_def.
3834         * sysdeps/generic/getaddrinfo.c: Likewise.
3835         * sysdeps/posix/getaddrinfo.c: Likewise.
3837         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3838         * wcsmbs/wmemchr.c: Add libc_hidden_def.
3839         * wcsmbs/wmemset.c: Add libc_hidden_def.
3841         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3842         (index, rindex): Define as macros for strchr, strrchr.
3844         * string/envz.c (envz_strip): index -> strchr
3846         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3847         * sunrpc/rpc_prot.c: Add libc_hidden_def.
3849         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3850         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3852         * include/stdlib.h: Use libc_hidden_proto for wctomb.
3853         * stdlib/wctomb.c: Add libc_hidden_def.
3855         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3856         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3857         * resolv/herror.c: Likewise.
3858         * inet/rcmd.c: Add libc_hidden_def.
3859         * inet/ruserpass.c: Likewise.
3860         * inet/getnetgrent_r.c: Likewise.
3862         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3863         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
3864         for svcerr_auth, svcerr_noprog, svcerr_progvers.
3865         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3866         libc_hidden_def.
3867         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3868         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3870         * sysdeps/posix/system.c (do_system): New function, guts broken out of
3871         __libc_system.
3872         (__libc_system): Call it, putting just the line == NULL test here.
3874         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3875         variables work right.
3877         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3878         * elf/dl-close.c (_dl_close): Likewise.
3880         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3881         in6addr_any, in6addr_loopback.  Remove decls for
3882         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3883         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3884         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3885         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3886         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3887         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3888         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3889         in6addr_loopback.
3890         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3892         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3893         ether_aton_r.
3894         * inet/ether_aton_r.c: Add libc_hidden_def.
3895         * inet/ether_ntoa_r.c: Likewise.
3897         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3898         xprt_unregister.
3899         * sunrpc/svc.c: Add libc_hidden_def.
3900         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3901         pmap_set, pmap_unset.
3902         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3903         * sunrpc/pm_getport.c: Likewise.
3904         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3905         * sunrpc/publickey.c: Add libc_hidden_def.
3907 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3909         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
3910         the other memset call in this function.
3912         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3913         at correct index.  Clear BSS region now that memalign is used.
3915 2002-08-05  Roland McGrath  <roland@redhat.com>
3917         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3918         * sysdeps/generic/uname.c: Add libc_hidden_def.
3919         * sysdeps/mach/hurd/uname.c: Likewise.
3921 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
3923         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3924         wcspbrk): Add libc_hidden_proto.
3925         * time/strftime.c (my_strftime): Add libc_hidden_def.
3926         (strftime): Remove libc_hidden_def.
3927         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3928         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3929         * wcsmbs/wcsspn.c (wcsspn): Likewise.
3930         * wcsmbs/wcscmp.c (wcscmp): Likewise.
3931         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3932         * wcsmbs/wcscoll.c (wcscoll): Likewise.
3934         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3935         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3936         __rpc_thread_createerr): Add libc_hidden_proto.
3937         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3938         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3939         __rpc_thread_createerr): Add libc_hidden_def.
3941         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3942         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3943         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3944         clnt_perror, clnt_sperror): Add libc_hidden_def.
3945         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3947         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3948         libc_hidden_proto.
3949         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3950         * sunrpc/des_soft.c (des_setparity): Likewise.
3952         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3953         Add libc_hidden_proto.
3954         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3955         Add libc_hidden_def.
3957 2002-08-05  Roland McGrath  <roland@redhat.com>
3959         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3960         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3961         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3962         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3963         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3964         old data, abandoning the original memory allocated by rtld at startup,
3965         instead of calling realloc normally.
3967 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3969         * po/fr.po: Update from translation team.
3971 2002-08-04  Roland McGrath  <roland@redhat.com>
3973         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3974         then generate a dummy module under the given name, obeying the
3975         normal rules for the "caller" field.
3977         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3978         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
3980         * include/pthread.h: Don't declare __pthread_initialize_minimal as
3981         weak here; we declare it weak or strong in the one place we use it.
3982         * sysdeps/generic/libc-start.c: ... which is here.
3983         Don't make the decl weak if [USE_TLS], since static programs need TLS
3984         setup even when single-threaded.
3986         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3988         * elf/Makefile (test-srcs): Add $(modules-names) to it.
3989         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3990         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3991         all these variables.
3993 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3995         * include/stdio.h: Don't define macro magic to redirect function
3996         calls if _ISOMAC is defined.
3998         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3999         ldouble asin tests.
4001 2002-08-04  Roland McGrath  <roland@redhat.com>
4003         * stdlib/lrand48_r.c: Add libc_hidden_def.
4005         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
4006         TCB with __libc_memalign instead of mmap.
4007         (_dl_deallocate_tls): Free it with free instead of munmap.
4009         * Makerules (cpp-srcs-left): When setting this to run
4010         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
4011         words.  Combine the two loops into one on the concatenated list,
4012         including those as well as $(test-srcs).
4014         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
4015         since we align here with optimally minimal waste anyway.
4016         (malloc): Just call that.
4018         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
4019         the right variable.
4021         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
4022         to compute memory location for l_tls_initimage.
4023         * elf/rtld.c (_dl_start): Likewise.
4024         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
4026         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
4027         because the .d file is generated in the non-shared case and
4028         so fails to catch them otherwise.
4030         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
4031         split out of _dl_allocate_tls.
4032         (_dl_allocate_tls_init): Likewise.
4033         (_dl_allocate_tls): Call those.
4034         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
4035         * elf/rtld.c (dl_main): Call them separately instead of calling
4036         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
4037         is finished, so that the initializer data has been relocated before we
4038         copy it into the main thread's TLS block.
4040         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
4041         loop conditions, prevented the last used module from being initialized.
4043 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
4045         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
4046         if glob resp. globfree are not macros.
4047         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
4048         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
4049         Add libc_hidden_ver.
4050         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
4051         libc_hidden_def.
4052         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
4053         instead of libc_hidden_weak.
4054         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
4055         libc_hidden_ver instead of libc_hidden_def.
4056         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
4057         libc_hidden_ver instead of libc_hidden_def.
4058         (wcstoll, wcstoq): Remove libc_hidden_weak.
4059         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
4060         libc_hidden_ver.
4061         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
4062         libc_hidden_ver.
4063         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
4064         libc_hidden_ver.
4065         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
4066         libc_hidden_ver.
4068 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
4070         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
4071         to access _sys_siglist.
4072         * string/strsignal.c: Likewise.
4073         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
4074         * sysdeps/gnu/siglist.c: Likewise.
4075         * sysdeps/unix/siglist.c: Likewise.
4076         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
4078         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
4080         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
4082         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
4083         alias and use it.
4084         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
4086         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
4087         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
4088         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
4090         * include/time.h: Add libc_hidden_proto for __gmtime_r.
4091         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
4093         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
4094         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
4095         and __gconv_get_cache respectively.
4096         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
4097         defined static.  Change all users.
4098         (__gconv_get_cache): New function.
4099         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
4100         (__gconv_get_alias_db): New function.
4101         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
4102         (__conv_modules_db): Likewise.
4103         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
4104         and __gconv_get_alias_db.
4105         * iconv/iconv_prog.c: Use the new functions instead of accessing the
4106         variables.
4108         * include/stdlib.h: Add prototype and libc_hidden_proto for
4109         __default_morecore.
4110         * sysdeps/generic/morecore.c: Include <stdlib.h>.
4112         * malloc/obstack.c: Remove fputs macro.
4114         * malloc/mtrace.c: Remove fopen macro.
4116 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
4118         * manual/debug.texi: Fix spelling to programmatically.
4119         Reported by <hayastan132@hotmail.com>.
4121 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
4123         * include/libio.h: Add libc_hidden_proto for __uflow.
4124         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
4125         fgetpos to _IO_* names.
4126         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
4127         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
4128         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
4129         putwc_unlocked, vswscanf.
4130         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
4131         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
4132         * libio/fseek.c: Likewise.
4133         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
4134         not fopencookie.
4135         * libio/genops.c (__uflow): Add libc_hidden_def.
4136         * libio/iofflush_u.c (fflush_unlocked): Likewise.
4137         * libio/iofgets_u.c (fgets_unlocked): Likewise.
4138         * libio/iofputs_u.c (fputs_unlocked): Likewise.
4139         * libio/iofputws_u.c (fputws_unlocked): Likewise.
4140         * libio/iofread_u.c (fread_unlocked): Likewise.
4141         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
4142         * libio/iovswscanf.c (vswscanf): Likewise.
4143         * libio/putwc_u.c (putwc_unlocked): Likewise.
4144         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
4145         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
4146         * malloc/mtrace.c: Likewise.
4148         * sunrpc/clnt_perr.c: Remove fputs macro.
4149         * sunrpc/svc_simple.c: Likewise.
4150         * sunrpc/svc_tcp.c: Likewise.
4151         * sunrpc/svc_udp.c: Likewise.
4152         * sunrpc/xdr_rec.c: Likewise.
4153         * sunrpc/xdr_ref.c: Likewise.
4155         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
4156         iconv_prog, linereader, and charmap-dir.
4157         * locale/Makefile: Likewise for locale and charmap-dir.
4158         * malloc/Makefile: Likewise for memusagestat.
4159         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
4160         * sunrpc/Makefile: Likewise for rpc_main.
4161         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
4162         * timezone/Makefile: Likewise for zic.
4164         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
4166         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
4167         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
4168         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
4169         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
4170         _dl_close.
4172         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
4173         __wunderflow.
4174         * libio/genops.c (__underflow): Add libc_hidden_def.
4175         * libio/wgenops.c (__wuflow): Likewise.
4176         (__wunderflow): Likewise.
4178         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
4179         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
4181         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
4182         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
4184         * include/string.h: Add libc_hidden_proto for __strverscmp.
4185         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
4187         * include/unistd.h: Add libc_hidden_proto for __sysconf.
4188         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
4189         * sysdeps/posix/sysconf.c: Likewise.
4190         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
4191         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
4193         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
4194         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
4195         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
4196         __iswxdigit_l, __towlower_l, __towupper_l.
4197         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
4198         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
4200         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
4201         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
4202         * sysdeps/mach/hurd/xmknod.c: Likewise.
4203         * sysdeps/unix/xmknod.c: Likewise.
4204         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4205         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
4206         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4208         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
4210 2002-08-03  Roland McGrath  <roland@redhat.com>
4212         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
4213         setpriority.
4214         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
4215         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
4216         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
4217         * sysdeps/mach/hurd/setpriority.c: Likewise.
4218         * sysdeps/mach/hurd/getpriority.c: Likewise.
4219         * sysdeps/generic/setpriority.c: Likewise.
4220         * sysdeps/generic/getpriority.c: Likewise.
4222         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
4223         * malloc/mcheck.c: Add libc_hidden_def.
4225         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
4226         * misc/hsearch_r.c: Add libc_hidden_def.
4228         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
4229         * posix/fnmatch.c: Add libc_hidden_weak.
4231         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
4232         execl, execle, execlp, execvp, getpid, getsid.
4233         * sysdeps/generic/alarm.c: Add libc_hidden_def.
4234         * sysdeps/unix/alarm.c: Likewise.
4235         * posix/confstr.c: Likewise.
4236         * posix/execvp.c: Likewise.
4237         * posix/execlp.c: Likewise.
4238         * posix/execle.c: Likewise.
4239         * posix/execl.c: Likewise.
4240         * sysdeps/generic/getsid.c: Likewise.
4241         * sysdeps/mach/hurd/getsid.c: Likewise.
4242         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
4243         * sysdeps/mach/hurd/getpid.c: Likewise.
4245         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
4246         qecvt_r, qfcvt_r, lrand48_r.
4247         * misc/efgcvt_r.c: Add libc_hidden_def.
4249         * include/wordexp.h: Use libc_hidden_proto for wordfree.
4250         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
4252         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
4253         * locale/nl_langinfo.c: Add libc_hidden_def.
4255         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
4256         * sysdeps/generic/glob.c: Add libc_hidden_def.
4257         * sysdeps/generic/glob64.c: Likewise.
4258         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
4260         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
4262         * elf/Makefile (CFLAGS-vismod2.c): New variable.
4264         * locale/setlocale.c (_nl_current_names): Variable moved ...
4265         * locale/localename.c (_nl_current_names): ... here, new file.
4266         Make it global, with attribute_hidden.
4267         * locale/localeinfo.h: Declare it.
4268         * locale/Makefile (aux): Add localename.
4269         * locale/localename.c (__current_locale_name): New function.
4270         * include/locale.h (__current_locale_name): Declare it.
4271         * intl/dcigettext.c (guess_category_value): Use that instead of
4272         calling setlocale.
4274         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
4275         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
4276         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
4277         * locale/newlocale.c: Add alias to __ name.
4278         * locale/duplocale.c: Likewise.
4279         * locale/freelocale.c: Likewise.
4280         * locale/uselocale.c: New file.
4281         * locale/Makefile (routines): Add it.
4282         * locale/Versions (libc: GLIBC_2.3): New set.
4283         Add newlocale, duplocale, freelocale, uselocale.
4284         (libc: GLIBC_PRIVATE): Add __uselocale.
4286         * locale/localeinfo.h [SHARED]
4287         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
4288         (_NL_CURRENT_DATA): Define using that.
4289         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
4290         (_NL_CURRENT_DEFINE): Define to empty.
4291         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
4292         conditionalized on this.
4293         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
4294         taking initializer of _nl_C_locobj.
4295         [SHARED] (_nl_global_locale): New variable, using that initializer.
4296         (_nl_C_locobj): Use new macro for initialzier.
4297         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
4298         [! SHARED] (CATEGORY_USED): New macro.
4299         [SHARED] (CATEGORY_USED, _nl_C): New macros.
4300         (setdata, setlocale): Use that macro instead of examining _nl_current.
4301         (setdata): Set the slot in _nl_global_locale.
4302         Conditionalize setting of _nl_current on [! SHARED].
4303         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
4304         declaration as an extern.
4305         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
4307         * include/locale.h: Use libc_hidden_proto for setlocale.
4308         * locale/setlocale.c: Add libc_hidden_def.
4310         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
4312         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
4313         * misc/hsearch_r.c: Add libc_hidden_def.
4314         * misc/lsearch.c: Likewise.
4316         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
4317         endttyent.
4318         * misc/getttyent.c: Add libc_hidden_def.
4320         * include/mcheck.h: Use libc_hidden_proto for mcheck.
4321         * malloc/mcheck.c: Add libc_hidden_def.
4323         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
4324         * include/argz.h: Use libc_hidden_proto for argz_delete.
4325         * string/argz-delete.c: Add libc_hidden_def.
4326         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
4328         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
4329         HIDDEN_JUMPTARGET for _exit.
4330         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
4331         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
4332         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
4333         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
4335         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
4336         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
4337         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
4338         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
4340         * include/stdlib.h: Use libc_hidden_proto for abort,
4341         __strtof_internal, __strtod_internal, __strtold_internal,
4342         __strtol_internal, __strtoll_internal, __strtoul_internal,
4343         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
4344         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
4345         __strtoul_l_internal, __strtoull_l_internal.
4346         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
4347         __wcstod_internal, __wcstold_internal, __wcstol_internal,
4348         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
4349         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
4350         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
4351         __wcsncasecmp_l.
4352         * sysdeps/generic/abort.c: Add libc_hidden_def.
4353         * stdlib/strtod.c: Likewise.
4354         * sysdeps/generic/strtol.c: Likewise.
4355         * sysdeps/wordsize-64/strtol.c: Likewise.
4356         * sysdeps/wordsize-64/wcstol.c: Likewise.
4357         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
4359         * include/stdlib.h: Use libc_hidden_proto for qsort.
4360         * stdlib/msort.c: Add libc_hidden_def.
4362         * include/utime.h: Use libc_hidden_proto for utime.
4363         * sysdeps/generic/utime.c: Add libc_hidden_def.
4364         * sysdeps/unix/utime.c: Likewise.
4366         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
4367         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
4368         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
4369         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
4370         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
4372         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
4373         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
4374         and __libc_current_sigrtmax.
4375         * signal/sigismem.c: Add libc_hidden_def.
4376         * signal/sigfillset.c: Likewise.
4377         * signal/sigempty.c: Likewise.
4378         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
4379         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
4380         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
4381         * sysdeps/posix/raise.c: Likewise.
4382         * sysdeps/generic/raise.c: Likewise.
4384 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
4386         * include/string.h: Use libc_hidden_proto for __stpcpy.
4387         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
4388         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
4389         * sysdeps/generic/stpcpy.c: Likewise.
4390         * sysdeps/i386/stpcpy.S: Likewise.
4391         * sysdeps/i386/i586/stpcpy.S: Likewise.
4392         * sysdeps/powerpc/stpcpy.S: Likewise.
4393         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
4394         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
4396         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
4397         __strncasecmp_l, __strdup, __strndup, __strerror_r.
4398         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
4399         libc_hidden_def.
4400         * string/strdup.c (__strdup): Likewise.
4401         * string/strndup.c (__strndup): Likewise.
4402         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
4403         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
4405 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4407         * include/libio.h: New file.
4408         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
4409         * libio/iolibio.h: #include <libio.h>, not "libio.h".
4410         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
4411         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
4412         * sysdeps/unix/common/syscalls.list: Likewise.
4413         * sysdeps/unix/inet/syscalls.list: Likewise.
4414         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
4415         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
4416         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4417         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4418         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4419         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4420         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4421         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4422         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4423         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
4424         * sysdeps/unix/syscalls.list: Likewise.
4426 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4427             Ulrich Drepper  <drepper@redhat.com>
4429         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
4430         the arguments is big enough to cause an overflow.
4432 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
4434         * assert/assert.c: Use hidden_def not INTDEF.
4436 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4438         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
4439         not defined.
4441 2002-08-03  Roland McGrath  <roland@redhat.com>
4443         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
4444         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
4445         verr, verrx.
4446         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
4447         * misc/syslog.c: Add libc_hidden_def.
4448         * misc/err.c: Likewise.
4449         * stdlib/exit.c: Likewise.
4450         * stdlib/bsearch.c: Likewise.
4451         * sysdeps/generic/getenv.c: Likewise.
4453         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
4455         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
4456         libc_hidden_weak for every system call symbol defined.
4458         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
4459         timelocal, localtime, strftime.
4460         * time/asctime.c: Add libc_hidden_def.
4461         * time/mktime.c: Likewise.
4462         * time/localtime.c: Likewise.
4463         * time/strftime.c: Likewise.
4464         * time/strptime.c: Likewise.
4465         * sysdeps/generic/time.c: Likewise.
4466         * sysdeps/unix/time.c: Likewise.
4467         * sysdeps/unix/sysv/i386/time.S: Likewise.
4468         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
4470         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
4471         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
4472         * resolv/inet_ntop.c: Likewise.
4473         * resolv/inet_pton.c: Likewise.
4474         * inet/inet_mkadr.c: Add libc_hidden_def.
4475         * inet/inet_netof.c: Likewise.
4476         * resolv/inet_addr.c: Likewise.
4478         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
4479         clauses from conditionals for now.  Will have to be fixed later
4480         for older compilers.
4482         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
4484 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4486         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
4487         broken alias attribute handling.
4488         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
4490 2002-08-02  Roland McGrath  <roland@frob.com>
4492         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
4493         since it sets the variables we use in a -D switch.
4495 2002-08-02  Roland McGrath  <roland@redhat.com>
4497         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
4498         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
4499         matches long int, not int.
4501         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
4502         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
4503         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4504         * wctype/wctrans.c (wctrans): Likewise.
4505         * wctype/wctype.c (__wctype): Likewise.
4506         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
4508 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4510         * assert/assert.c (__assert_fail): Fix typo in comment.
4512         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
4513         * sunrpc/rpc_thread.c: Define it without static.
4514         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
4516 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4518         * assert/assert.c (__assert_fail): Remove undef.
4519         Replace INTDEF with libc_hidden_def.
4520         * assert/__assert.c (__assert): Remove INTUSE.
4521         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
4522         libc_hidden_weak.
4523         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
4524         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
4525         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
4526         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
4527         libm_hiden_ver): Define.
4528         * include/assert.h (__assert_fail_internal): Remove.
4529         (__assert_fail): Add prototype.  Add hidden_proto.
4530         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
4531         libc_hidden_proto.
4532         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
4533         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
4534         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
4535         Add libc_hidden_proto.
4536         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
4537         __fcntl): Add libc_hidden_proto.  Remove macros.
4538         (__open_internal, __fcntl_internal): Remove.
4539         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
4540         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
4541         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
4542         libc_hiden_proto.
4543         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
4544         libc_hidden_def.
4545         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
4546         Add libc_hidden_def.
4547         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
4548         * sysdeps/generic/open.c (__open): Remove undef.
4549         Add libc_hidden_def.  Remove INTDEF.
4550         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
4551         Add libc_hidden_def.
4552         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
4553         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
4554         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
4555         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4556         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4557         (__libc_fcntl): Add libc_hidden_def.
4558         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
4559         (__open): Remove INTDEF2.  Add libc_hidden_weak.
4560         (__libc_open): Add libc_hidden_def.
4561         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
4562         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
4563         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4564         Add libc_hidden_def.
4565         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
4566         Add libc_hidden_def.
4567         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
4568         undef.
4569         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4570         (__libc_fcntl): Add libc_hidden_def.
4571         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
4572         __getpgid_internal, __chown_internal): Remove.
4573         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
4574         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
4575         __GI___chown): Add.
4576         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
4577         __getpid_internal, __open_internal, __write_internal): Remove.
4578         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
4579         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
4580         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
4581         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
4582         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
4583         Replace INTDEF with libc_hidden_def.
4584         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
4585         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
4586         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
4587         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
4588         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
4589         Add libc_hidden_proto.
4590         * include/sys/poll.h (__poll): Add libc_hidden_proto.
4591         * include/sys/select.h (__select): Likewise.
4592         * include/sys/socket.h (__send): Likewise.
4593         * include/sys/statfs.h (__statfs): Likewise.
4594         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
4595         __getpid, __getpgid, __setpgid, __close, __read, __write,
4596         __getpagesize, __sbrk): Likewise.
4597         (__chown_internal, __dup2_internal, __getpid_internal,
4598         __getpgid_internal, __close_internal, __write_internal,
4599         __getpagesize_internal): Remove.
4600         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
4601         Remove macros.
4602         * include/printf.h (__printf_fp): Add libc_hidden_proto.
4603         * include/sched.h (__sched_setscheduler): Likewise.
4604         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
4605         * include/stdlib.h (__secure_getenv): Likewise.
4606         * include/signal.h (__sigaction, __sigsuspend): Likewise.
4607         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4608         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4609         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4610         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4611         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4612         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4613         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4614         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4615         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4616         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4617         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4618         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4619         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4620         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4621         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4622         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4623         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4624         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4625         * libio/genops.c (__overflow): Add libc_hidden_def.
4626         * libio/iovdprintf.c: Remove libio.h include.
4627         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4628         libc_hidden_weak): Define to nothing if not defined.
4629         (__overflow, __woverflow): Add libc_hidden_proto.
4630         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4631         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4632         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4633         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4634         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4635         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4636         and libc_hidden_def.
4637         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4638         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4639         (__getpgid): Add libc_hidden_proto.
4640         (__bsd_getpgrp): Remove INTUSE.
4641         * resolv/res_init.c (__res_ninit, __res_randomid): Add
4642         libc_hidden_def.
4643         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4644         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4645         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4646         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4647         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4648         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4649         __rpc_thread_createerr): Add libc_hidden_def.
4650         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4651         libc_hidden_def.
4652         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4653         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4654         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4655         * sysdeps/generic/chown.c (__chown): Likewise.
4656         * sysdeps/generic/close.c (__close): Likewise.
4657         * sysdeps/generic/dup2.c (__dup2): Likewise.
4658         * sysdeps/generic/pipe.c (__pipe): Likewise.
4659         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4660         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4661         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4662         * sysdeps/generic/read.c (__libc_read): Likewise.
4663         (__read): Add libc_hidden_weak.
4664         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4665         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4666         * sysdeps/generic/select.c (__select): Likewise.
4667         * sysdeps/generic/send.c (__send): Likewise.
4668         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4669         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4670         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4671         * sysdeps/generic/statfs.c (__statfs): Likewise.
4672         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4673         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4674         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4675         Remove undef and INTDEF.
4676         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4677         * sysdeps/generic/getpid.c (__getpid): Likewise.
4678         * sysdeps/generic/write.c (__libc_write): Likewise.
4679         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4680         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4681         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4682         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4683         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
4684         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4685         Remove undef and INTDEF.
4686         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4687         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4688         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4689         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4690         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4691         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4692         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4693         (__pipe): Add libc_hidden_def.
4694         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4695         libc_hidden_weak.
4696         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4697         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4698         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4699         (__read): Add libc_hidden_weak.
4700         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4701         (__libc_pwrite64): Add libc_hidden_def.
4702         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4703         * sysdeps/mach/hurd/select.c (__select): Likewise.
4704         * sysdeps/mach/hurd/send.c (__send): Likewise.
4705         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4706         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4707         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4708         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4709         * sysdeps/posix/dup2.c: Likewise.
4710         Remove undef and INTDEF.
4711         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4712         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4713         (__pwrite64): Add libc_hidden_weak.
4714         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4715         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4716         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4717         * sysdeps/standalone/close.c (__close): Likewise.
4718         * sysdeps/standalone/write.c (__libc_write): Likewise.
4719         (__write): Add libc_hidden_weak.
4720         * sysdeps/standalone/read.c (__read): Likewise.
4721         (__libc_read): Add libc_hidden_def.
4722         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4723         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4724         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4725         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4726         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4727         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4728         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4729         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4730         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4731         __GI___sigaction): Add.
4732         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4733         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4734         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4735         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4736         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4737         __GI___setpgid): Add.
4738         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4739         Remove undef and INTDEF.
4740         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4741         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4742         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4743         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4744         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4745         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4746         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4747         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4748         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4749         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4750         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4751         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4752         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4753         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4754         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4755         __GI___statfs, __GI___send): Add.
4756         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4757         libc_hidden_ver resp. libc_hidden_def.
4758         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4759         libc_hidden_def.
4760         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4761         Likewise.  Remove undef and INTDEF.
4762         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4763         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4764         __GI___statfs, __GI___send): Add.
4765         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4766         libc_hidden_def.
4767         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4768         Likewise.
4769         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4770         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4771         libc_hidden_ver resp. libc_hidden_def.
4772         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4773         __GI___send): Add.
4774         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4775         Add libc_hidden_weak.
4776         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4777         Add libc_hidden_def.
4778         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4779         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4780         libc_hidden_weak.
4781         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4782         resp. libc_hidden_def.
4783         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4784         libc_hidden_weak.
4785         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
4786         INTDEF.
4787         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4788         Likewise.  Remove undef.
4789         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4790         libc_hidden_weak.
4791         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4792         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4793         libc_hidden_weak.
4794         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4795         libc_hidden_def.
4796         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4797         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4798         Likewise.  Remove undef and INTDEF.
4799         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4800         libc_hidden_def.
4801         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4802         libc_hidden_weak.
4803         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4804         libc_hidden_def.
4805         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4806         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4807         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4808         libc_hidden_weak.
4809         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4810         Add libc_hidden_def.
4811         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4812         __GI___statfs): Add.
4813         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4814         libc_hidden_weak.
4815         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4816         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4817         Remove undef and INTDEF.
4818         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4819         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4820         libc_hidden_def.
4821         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4822         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4823         libc_hidden_weak.
4824         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4825         libc_hidden_def.
4826         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4827         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4828         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4829         Add.
4830         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4831         libc_hidden_def.  Remove undef and INTDEF.
4832         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4833         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4834         libc_hidden_def.
4835         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4836         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4837         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4838         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4839         Remove undef and INTDEF.
4840         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4841         broken visibility attribute handling.
4842         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4844 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4846         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4847         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4849         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4850         previous patch.
4852 2002-06-29  Todd Fries  <todd@openbsd.org>
4854         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4856 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4858         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4860 2002-07-30  Roland McGrath  <roland@redhat.com>
4862         * resolv/resolv.h (_res): Define macro unconditionally.
4863         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4864         * include/resolv.h: ... here.
4865         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4866         as a __thread variable.
4867         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4868         a __thread variable instead of a global.
4869         * resolv/res_data.c [_LIBC]: Don't #undef _res.
4871         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4872         time we test it.
4874         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4876         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4877         decls of memset and memcpy.
4879         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4880         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4882         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4884         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4885         (__libc_tsd_define): Define using __thread.
4887         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4888         (__rpc_thread_variables): Use __libc_tsd_get.
4889         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4890         __rpc_thread_variables, which might allocate what we're about to free.
4892         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4893         thread-local variable.
4894         * resolv/netdb.h (h_errno): Define macro unconditionally.
4895         [_LIBC] (__set_h_errno): Macro moved to ...
4896         * include/netdb.h: ... here.
4897         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4898         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4899         [! _LIBC_REENTRANT]: #undef h_errno here.
4901         * include/errno.h: Protect from multiple inclusion.
4903         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4904         before defining them, since Linux's <linux/posix_types.h> might have
4905         defined them.
4907 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4909         * malloc/malloc.c (public_cALLOc): Check for overflow on
4910         multiplication.
4911         * sunrpc/xdr_array.c (xdr_array): Likewise.
4912         * sunrpc/rpc/types.h (mem_free): Add comment.
4913         Patch by Solar Designer <solar@openwall.com>.
4915 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4917         * sysdeps/unix/sysv/linux/kernel-features.h
4918         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4920 2002-08-01  Roland McGrath  <roland@redhat.com>
4922         * libio/fileops.c (_IO_file_sync_mmap): New function.
4923         (_IO_file_jumps_mmap): Use it.
4924         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
4925         repeat the stat check and resize the mapped buffer as necessary.
4927 2002-07-31  Roland McGrath  <roland@redhat.com>
4929         * libio/fileops.c (decide_maybe_mmap): New static function.
4930         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4931         mmap the file contents.  Then switch the jump tables to the mmap
4932         tables if it worked, or the vanilla file tables if not.
4933         (_IO_file_underflow_maybe_mmap): New function.
4934         (_IO_file_seekoff_maybe_mmap): New function.
4935         (_IO_file_xsgetn_maybe_mmap): New function.
4936         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4937         * libio/libioP.h: Declare those.
4938         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4939         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4940         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4941         If the stream is read-only, set its jump tables to those new ones.
4942         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4943         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4944         We need the tables set before _IO_file_attach.
4946         * libio/tst-mmap-eofsync.c: New file.
4947         * libio/tst-mmap-fflushsync.c: New file.
4948         * libio/bug-mmap-fflush.c: New file.
4949         * libio/tst-mmap2-eofsync.c: New file.
4950         * libio/Makefile (tests): Add them.
4952         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4953         _IO_file_underflow_mmap fails, it already set the appropriate bit.
4955 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
4957         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4958         Declarations moved to <bits/sys_errlist.h>.  Include that file.
4959         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4960         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
4961         declare sys_errlist and sys_nerr.
4962         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
4963         provide declarations.
4965 2002-07-31  Roland McGrath  <roland@redhat.com>
4967         * elf/rtld.c (dl_main): Fix typo in error message.
4969 2002-07-31  Roland McGrath  <roland@frob.com>
4971         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4972         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
4973         sysdeps/mach/hurd/dl-sysdep.c change.
4975 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
4977         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4978         -r`/build/include for kernel headers.
4980         * po/fi.po: New file.
4982 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
4984         * configure.in (static_nss): Set to `yes' if --disable-shared.
4986 2002-07-23  Bruno Haible  <bruno@clisp.org>
4988         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4989         is set.
4991 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4993         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4994         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4995         arguments.
4997 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4999         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
5000         alias.
5002 2002-07-21  Bruno Haible  <bruno@clisp.org>
5004         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
5005         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
5006         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
5007         trans_sysdep_tab_offset.
5008         (struct sysdep_segment): New type.
5009         (struct sysdep_string): New type.
5010         (SEGMENTS_END): New macro.
5011         * intl/gettextP.h (struct sysdep_string_desc): New type.
5012         (struct loaded_domain): New fields malloced, n_sysdep_strings,
5013         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
5014         orig_tab, trans_tab, hash_tab to const pointers because they point
5015         into read-only memory.
5016         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
5017         (PRI*): Define fallback values.
5018         (get_sysdep_segment_value): New function.
5019         (_nl_load_domain): Distinguish major and minor revision parts. Add
5020         support for minor revision 1 with system dependent strings.
5021         (_nl_unload_domain): Also free the 'malloced' field.
5022         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
5023         now done in loadmsgcat.c. Add support for system dependent strings.
5025 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
5027         * posix/bug-regex7.c: New file.
5028         * posix/bug-regex8.c: New file.
5029         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
5031 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
5033         * posix/bug-regex4.c (main): Fix typos.
5034         * posix/bug-regex6.c (main): Likewise.
5036 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
5038         * posix/bug-regex6.c (main): Fix warnings.
5040         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
5042         * iconv/iconv_prog.c (main): Improve error message for the cases
5043         where -t and/or -f parameter are missing.
5045 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
5047         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
5048         (re_search): Likewise.
5049         (re_match_2): Likewise.
5050         (re_search_2): Likewise.
5051         (re_search_stub): New function.
5052         (re_search_2_stub): New function.
5053         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
5055 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
5057         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
5058         (re_string_eoi): Use STOP instead of LEN.
5059         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
5060         (re_string_construct): Likewise.
5061         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
5062         * posix/regexec.c (re_search_internal): Add a new argument STOP
5063         so that it can handle the argument STOP of re_search_2 and re_match_2
5064         correctly.
5065         (regexec): Adapt to new I/F of re_search_internal.
5066         (re_search_stub): Likewise.
5068 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
5070         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
5072         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
5074         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
5075         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
5076         of __divdi3.
5078         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
5079         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
5080         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
5081         alias for adjtimex syscall.
5083         * elf/dl-minimal.c: Define __assert_fail_internal.
5084         * assert/assert.c: Likewise.
5085         * include/assert.h: Define __assert_file macro if !SHARED and not
5086         NOT_IN_libc.
5088         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
5089         programs.
5090         * locale/Makefile: Likewise.
5091         * nscd/Makefile: Likewise.
5092         * catgets/Makefile: Likewise.
5094 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5096         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
5097         compute current position.
5099         * stdio-common/tst-fseek.c (main): Improve error messages.
5101         * libio/tst-freopen.c (main): Remove unused variable.
5103         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
5104         succesful seek call.  Simplify error checking.
5106 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
5108         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
5109         * sysdeps/ia64/fpu/libm_support.h: Likewise.
5111 2002-07-19  Roland McGrath  <roland@frob.com>
5113         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
5114         __libc_enable_secure is set.
5116 2002-07-24  Roland McGrath  <roland@frob.com>
5118         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
5119         This implementation supports only IPv4.
5120         * inet/ifaddrs.h: New file.
5121         * sysdeps/generic/ifaddrs.c: New file.
5122         * sysdeps/gnu/ifaddrs.c: New file.
5123         * inet/test-ifaddrs.c: New file.
5124         * inet/Makefile (routines): Add ifaddrs.
5125         (headers): Add ifaddrs.h here.
5126         (tests): Add test-ifaddrs.
5127         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
5129         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
5130         socket call to get an AF_INET socket, instead of using __opensock.
5131         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
5133         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
5134         if not -1 use it instead of calling __opensock.
5135         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
5136         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
5137         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
5139         * sysdeps/mach/hurd/ifreq.h: New file.
5140         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
5141         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
5142         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
5144         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
5145         which gets moved around.  Calculate size of mmap'd buffer instead.
5147 2002-07-24  Philip Blundell  <philb@gnu.org>
5149         * sysdeps/unix/arm/brk.S: Improve schedule.
5150         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
5151         efficient instruction.
5152         (__socket): Optimize return sequence.
5154 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5156         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
5157         sockets on old kernels.
5159 2002-07-22  Philip Blundell  <philb@gnu.org>
5161         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
5162         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
5163         alias.
5165 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5167         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
5168         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
5170         * locale/programs/locarchive.c (add_locale_to_archive): Correct
5171         test to detect duplicate locales.
5173         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
5174         position would be before beginning of file.
5175         (_IO_file_seekoff_mmap): Likewise.
5176         * libio/Makefile (tests): Add bug-fseek.
5177         * libio/bug-fseek.c: New file.
5179         * intl/explodename.c: Remove support for CEN-style locale variables.
5180         It was never used and shouldn't be since it's not portable.
5181         * intl/finddomain.c: Likewise.
5182         * intl/l10nflist.c: Likewise.
5183         * intl/loadinfo.h: Likewise.
5184         * locale/findlocale.c: Likewise.
5186 2002-07-24  Roland McGrath  <roland@frob.com>
5188         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
5189         position, calculate it to take into account an active pushback buffer.
5191         * libio/Makefile (tests): Add bug-ungetc.
5192         * libio/bug-ungetc.c: New file.
5194 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
5196         * sysdeps/generic/libc-tls.c: New file.
5197         * csu/Makefile (routines): Add libc-tls.
5198         (static-only-routines): Add libc-tls.
5199         * elf/dl-support.c (_dl_phdr): New variable.
5200         (_dl_phnum): New variable.
5201         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
5202         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
5203         for !SHARED.  First look through auxiliary vector.  If TLS always
5204         call __pthread_initialize_minimal.
5206         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
5207         in mmap call is never zero.
5209 2002-07-23  Andreas Jaeger  <aj@suse.de>
5211         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
5212         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
5214 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
5216         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
5217         creation and removal of the temp file.
5219         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
5220         file creation.
5221         * test-skeleton.c (create_temp_file): New function.
5223 2002-07-22  Andreas Jaeger  <aj@suse.de>
5225         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
5226         local label.
5228 2002-07-21  Roland McGrath  <roland@frob.com>
5230         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
5231         put -I../include before -I../stdlib so we get the right errno.h et al.
5232         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
5233         (CFLAGS-wcstof.c): Likewise.
5234         (CFLAGS-wcstold.c): Likewise.
5235         (CFLAGS-wcstod_l.c): Likewise.
5236         (CFLAGS-wcstof_l.c): Likewise.
5237         (CFLAGS-wcstold_l.c): Likewise.
5239 2002-07-19  Roland McGrath  <roland@frob.com>
5241         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
5243 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
5245         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
5246         __ASSUME_AT_XID is defined.
5247         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
5248         for 2.4.1 and up.
5249         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
5250         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
5252         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
5253         (CFLAGS-wcstof.c): Likewise.
5254         (CFLAGS-wcstold.c): Likewise.
5255         (CFLAGS-wcstod_l.c): Likewise.
5256         (CFLAGS-wcstof_l.c): Likewise.
5257         (CFLAGS-wcstold_l.c): Likewise.
5259 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
5261         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
5262         __priority_which_t): Always typedef to int for C++.
5264 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
5266         * configure.in: Add test for __thread support in compiler.
5267         * config.h.in: Add HAVE___THREAD.
5268         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
5269         * include/sys/errno.h: Moved to...
5270         * stdlib/sys/errno.h: ...here.  New file.
5271         * stdlib/errno.h: New file.  Moved from...
5272         * include/errno.h: ...here.  Changed into an internal header defining
5273         libc-local things like __set_errno.
5274         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
5275         bits/errno.h.
5276         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
5277         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
5278         either.
5279         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
5280         from...
5281         (_dl_start_final): ...here.  Add code to initialize tls elements from
5282         bootstrap_map.
5283         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
5284         if USE_TLS && HAVE___THREAD.
5285         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
5286         * sysdeps/mach/hurd/bits/errno.h: Likewise.
5287         * sysdeps/standalone/arm/bits/errno.h: Likewise.
5288         * sysdeps/standalone/bits/errno.h: Likewise.
5289         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
5290         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
5291         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
5292         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
5293         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
5294         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
5295         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
5296         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
5297         use GL(dl_rtld_map), use map parameter.
5298         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
5299         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
5300         USE_TLS && HAVE___THREAD.
5301         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
5302         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
5303         TLS code sequence.
5304         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5306         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
5307         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
5308         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
5309         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
5310         * sysdeps/unix/sysv/linux/readv.c: Likewise.
5311         * sysdeps/unix/sysv/linux/writev.c: Likewise.
5313 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
5315         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
5316         MS_INVALIDATE values.
5318 2002-07-17  Andreas Schwab  <schwab@suse.de>
5319             Ulrich Drepper  <drepper@redhat.com>
5321         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
5322         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5323         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5324         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5326 2002-07-01  H.J. Lu  <hjl@gnu.org>
5328         * elf/circleload1.c (load_dso): Call "circlemod1" and check
5329         return value.
5331         * elf/circlemod1.c (circlemod1): Return int.
5332         * elf/circlemod2.c (circlemod2): Likewise.
5333         * elf/circlemod2a.c (circlemod2): Likewise.
5334         * elf/circlemod3.c (circlemod3): Likewise.
5335         (circlemod3a): A new function.
5337 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
5339         * catgets/tst-catgets.c (main): Don't expect results for
5340         untranslated messages.
5342         * glibcbug.in: Fix little typo.  Remove STDIO.
5344         * config.h.in: Fail if __FAST_MATH__ is defined.
5345         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
5346         (CPPFLAGS-test-idouble.c): Likewise.
5347         (CPPFLAGS-test-ildouble.c): Likewise.
5349 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
5351         * intl/tst-gettext.sh: Pass -f option to msgfmt.
5352         * intl/tst-gettext.c: Correctly handle untranslated messages in
5353         positive tests.
5355         * po/de.po: Update from translation team.
5357 2002-07-02  H.J. Lu  <hjl@gnu.org>
5359         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
5360         use ll/sc.
5361         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
5363         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
5364         to 2.4.0 for mips.
5366 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
5368         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
5369         TLS fail if USE_TLS is not defined.
5371         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
5372         and adjust state for seek position.  [PR libc/4070]
5373         * libio/Makefile (tests): Add bug-rewind.
5374         * libio/bug-rewind.c: New file.
5376 2002-07-12  Philip Blundell  <philb@gnu.org>
5378         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
5379         (__backtrace): Use it.
5380         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
5382 2002-07-12  Philip Blundell  <philb@gnu.org>
5384         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
5385         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
5386         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
5387         (elf_machine_rela): Remove unused variable.
5389         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
5390         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
5391         define.
5393 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
5395         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
5397 2002-07-14  Andreas Jaeger  <aj@suse.de>
5399         * sysdeps/x86_64/bits/link.h: Add biarch support.
5401 2002-07-13  Andreas Jaeger  <aj@suse.de>
5403         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
5404         Use correct indices.
5405         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
5407 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5409         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
5410         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
5411         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
5412         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
5413         * sysdeps/s390/s390-32/bits/link.h: Remove.
5414         * sysdeps/s390/s390-64/bits/link.h: Remove.
5415         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
5416         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
5417         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
5418         * sysdeps/s390/bits/wordsize.h: New file.
5419         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
5420         elfclass.h.
5421         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
5422         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
5423         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
5424         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
5425         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
5426         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
5427         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
5428         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
5429         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
5430         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
5431         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
5432         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
5433         resource.h.
5434         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
5435         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
5436         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
5437         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
5438         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
5439         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
5440         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
5441         sigaction.h.
5442         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
5443         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
5444         siginfo.h.
5445         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
5446         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
5447         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
5448         socket.h.
5449         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
5450         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
5451         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
5452         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
5453         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
5454         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
5455         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
5456         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
5457         procfs.h.
5458         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
5459         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
5460         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
5461         ucontext.h.
5462         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
5463         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
5465 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
5467         * Versions.def (libc): Add GLIBC_2.3.
5468         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
5469         * stdlib/canonicalize.c: Add compatibility version for realpath
5470         and make new code available in GLIBC_2.3.
5472 2002-07-06  Bruno Haible  <bruno@clisp.org>
5474         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
5476 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
5478         * resolv/res_hconf.c (_res_hconf_init): Move code into new
5479         function do_init.  Use __libc_once.
5480         (do_init): New function.
5482         * iconvdata/iso8859-11.h: Removed.
5483         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
5484         (distribute): Remove iso8859-11.h.
5485         * iconvdata/tst-tables.sh: Add ISO-8859-11.
5487         * stdio-common/vfscanf.c (inchar): Restore errno from previous
5488         underflow operation if c == (W)EOF.
5490 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5492         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
5493         non-zero, adjust exponent.
5494         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
5495         Remove NO_LONG_DOUBLE aliases.
5496         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
5497         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
5498         (__log1pl): Raise divide by zero and invalid exceptions when needed.
5499         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
5500         1**y and -1**+-Inf.
5501         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
5502         Fix BITS_PER_MP_LIMB 32 extraction.
5503         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
5504         exceptions for qNaNs.
5505         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
5506         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
5507         Raise exceptions when needed.  Don't recurse unnecessarily.
5508         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
5509         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
5510         exceptions for qNaNs.
5511         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
5512         to fix *quo return value sign.
5513         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
5514         case -Inf argument.
5515         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
5517 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5519         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
5520         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
5521         -DNDEBUG.
5523 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5525         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
5526         the result.
5528         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
5529         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
5531         * Versions.def (libthread_db): Add GLIBC_2.3.
5533 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
5535         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
5536         new stream if possible.
5537         * libio/freopen64.c (freopen64): Likewise.
5538         * libio/Makefile (tests): Add tst-freopen.
5539         * libio/tst-freopen.c: New file.
5541 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5543         * libio/stdio.h (obstack_printf): Add format attribute.
5544         (obstack_vprintf): Likewise.
5546 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5548         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
5549         resp. 16 bytes on 32-bit resp. 64-bit platforms.
5550         (re_charset_t, re_string_t): Reorder structure members for 64-bit
5551         architectures.
5553 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5555         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
5556         (init_dfa): ...here.
5558 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5560         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
5561         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
5562         nodes in parse trees.
5563         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
5564         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
5565         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
5566         nodes which can epsilon transit.
5567         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
5568         to IS_EPSILON_NODE macro.
5569         * posix/regexec.c (update_regs): New function to update registers
5570         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
5571         (proceed_next_node): Use the entities of the nodes to determine
5572         whether the node can transit to.
5573         (set_regs): Use update_regs function to update registers.
5575 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5577         * posix/bug-regex4.c (main): Remove duplicate setlocale.
5578         * posix/bug-regex6.c: New file.
5579         * posix/Makefile (tests): Add bug-regex6.
5580         (bug-regex6-ENV): Set LOCPATH.
5582 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5584         * Versions.def [libpthread]: Add GLIBC_2.2.6.
5585         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
5587 2002-07-06  Bruno Haible  <bruno@clisp.org>
5589         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
5591 2002-07-06  Bruno Haible  <bruno@clisp.org>
5593         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
5594         declarations.
5596         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
5598         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
5600         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
5601         not _UTSNAME_H.
5602         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
5604         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
5605         * sysdeps/generic/bits/ustat.h: Likewise.
5607         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5609 2002-07-08  Andreas Jaeger  <aj@suse.de>
5611         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5613 2002-07-08  Andreas Jaeger  <aj@suse.de>
5615         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5617 2002-07-06  Andreas Jaeger  <aj@suse.de>
5619         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5620         * sysdeps/x86_64/fpu/s_copysign.S: New file.
5621         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5622         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5623         * sysdeps/x86_64/fpu/s_finitel.S: New file.
5624         * sysdeps/x86_64/fpu/s_fmax.S: New file.
5625         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5626         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5627         * sysdeps/x86_64/fpu/s_fmin.S: New file.
5628         * sysdeps/x86_64/fpu/s_fminf.S: New file.
5629         * sysdeps/x86_64/fpu/s_fminl.S: New file.
5631 2002-06-05  Brian Youmans <3diff@gnu.org>
5633         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5634         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5635         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5636         * sysdeps/ia64/fpu/e_asin.S: Likewise.
5637         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5638         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5639         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5640         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5641         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5642         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5643         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5644         * sysdeps/ia64/fpu/e_exp.S: Likewise.
5645         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5646         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5647         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5648         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5649         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5650         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5651         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5652         * sysdeps/ia64/fpu/e_log.S: Likewise.
5653         * sysdeps/ia64/fpu/e_logf.S: Likewise.
5654         * sysdeps/ia64/fpu/e_pow.S: Likewise.
5655         * sysdeps/ia64/fpu/e_powf.S: Likewise.
5656         * sysdeps/ia64/fpu/e_powl.S: Likewise.
5657         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5658         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5659         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5660         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5661         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5662         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5663         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5664         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5665         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5666         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5667         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5668         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5669         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5670         * sysdeps/ia64/fpu/libm_error.c: Likewise.
5671         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5672         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5673         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5674         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5675         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5676         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5677         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5678         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5679         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5680         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5681         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5682         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5683         * sysdeps/ia64/fpu/s_logb.S: Likewise.
5684         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5685         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5686         * sysdeps/ia64/fpu/s_modf.S: Likewise.
5687         * sysdeps/ia64/fpu/s_modff.S: Likewise.
5688         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5689         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5690         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5691         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5692         * sysdeps/ia64/fpu/s_rint.S: Likewise.
5693         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5694         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5695         * sysdeps/ia64/fpu/s_round.S: Likewise.
5696         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5697         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5698         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5699         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5700         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5701         * sysdeps/ia64/fpu/s_significand.S: Likewise.
5702         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5703         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5704         * sysdeps/ia64/fpu/s_tan.S: Likewise.
5705         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5706         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5707         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5708         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5709         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5710         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5711         reflect IBM donation of math library to FSF
5712         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5713         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5714         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5715         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5716         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5717         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5718         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5719         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5720         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5721         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5722         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5723         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5724         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5725         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5726         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5727         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5728         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5729         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5730         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5731         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5732         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5733         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5734         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5735         * sysdeps/vax/__longjmp.c: Likewise.
5736         * sysdeps/vax/setjmp.c: Likewise.
5737         * libio/filedoalloc.c: Fixed BSD copying permission notice to
5738         remove advertising clause
5739         * sysdeps/vax/htonl.s: Likewise.
5740         * sysdeps/vax/htons.s: Likewise.
5741         * libio/wfiledoalloc.c: Likewise.
5742         * stdlib/random.c: Likewise.
5743         * stdlib/random_r.c: Likewise.
5744         * sysdeps/mach/sys/reboot.h: Likewise.
5745         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5746         * sysdeps/posix/getaddrinfo.c: Likewise.
5747         * sunrpc/des_impl.c: Updated license permission notice to Lesser
5748         GPL and corrected pointer to point to the correct license.
5750 2002-07-04  Andreas Jaeger  <aj@suse.de>
5752         * scripts/config.guess: New upstream version.
5753         * scripts/config.sub: Likewise.
5755 2002-07-02  Andreas Schwab  <schwab@suse.de>
5757         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5758         in parallel to bumping up the buffer pointer.
5760 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5762         * math/libm-test.inc (acos_test): Add missing L suffix for
5763         expected result.
5764         (cpow_test): Likewise.
5765         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5766         error for acos (0.0625).
5768 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5770         * locale/iso-639.def: Add entry for Ganda.
5771         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5772         definition.
5773         (address_finish): Handle entries with two letter ISO 639 code.
5775         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5776         directory if it existed before.
5777         * iconv/iconvconfig.c: Implement --prefix option.
5779         * math/libm-test.inc (cexp_test): Add missing L suffix for
5780         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
5781         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5782         1.25 i).
5784 2002-05-29  H.J. Lu  <hjl@gnu.org>
5786         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5787         is turned on.
5789 2002-05-28  H.J. Lu  <hjl@gnu.org>
5791         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5792         are not dlopened on the dependency list of a dlopened object.
5794 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5796         * elf/dl-lookup.c (add_dependency): It is not necessary to add
5797         dependencies if they are created between objects which are created
5798         while processing RTLD_NOW for objects loaded as part of the same
5799         dlopen call.
5801 2002-06-14  H.J. Lu  <hjl@gnu.org>
5803         * elf/Makefile (tests): Add circleload1.
5804         (modules-names): Add circlemod1, circlemod2, circlemod3,
5805         circlemod1a, circlemod2a and circlemod3a.
5806         ($(objpfx)circleload1): New target.
5807         ($(objpfx)circleload1.out): Likewise.
5808         ($(objpfx)circlemod1.so): Likewise.
5809         ($(objpfx)circlemod2.so): Likewise.
5810         ($(objpfx)circlemod1a.so): Likewise.
5811         ($(objpfx)circlemod2a.so): Likewise.
5812         * elf/circleload1.c: New file.
5813         * elf/circlemod1.c: New file.
5814         * elf/circlemod1a.c: New file.
5815         * elf/circlemod2.c: New file.
5816         * elf/circlemod2a.c: New file.
5817         * elf/circlemod3.c: New file.
5818         * elf/circlemod3a.c: New file.
5820 2002-06-18  Amos Waterland  <apw@us.ibm.com>
5822         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5823         file descriptor.
5824         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5825         add check for fd not open for writing.
5827         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5828         completed element(s) and do not suspend thread if so.  Patch
5829         heavily modified by drepper.
5831         * rt/tst-aio7.c: New file.  Regression test for problems which the
5832         above three changes fix.
5833         * rt/Makefile (tests): Add tst-aio7.
5835 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
5837         * rt/tst-aio6.c: Fix comment.
5839         * catgets/gencat.c (read_input_file): Handle more than one slash
5840         at end of line correctly [PR libc/3926].
5841         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5843         * catgets/sample.SJIS: Add test case for above bug.
5844         * catgets/test-gencat.c: Adjust test code.
5845         * catgets/test-gencat.sh: Adjust expected results.
5847         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5848         to skip relative relocations.
5849         Patch by Geoff Keating <geoffk@redhat.com>.
5851 2002-05-26  Bruno Haible  <bruno@clisp.org>
5853         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5854         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5855         All callers changed.
5856         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5857         STANDARD_FROM_LOOP_ERR_HANDLER.
5858         (utf8_internal_loop): Likewise.
5859         (ucs2_internal_loop): Likewise.
5860         (internal_ucs2_loop): Perform error handling like in
5861         STANDARD_FROM_LOOP_ERR_HANDLER.
5862         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5863         in STANDARD_FROM_LOOP_ERR_HANDLER.
5864         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5865         handling.
5866         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5867         in STANDARD_FROM_LOOP_ERR_HANDLER.
5868         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5869         handling.
5870         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5871         in STANDARD_FROM_LOOP_ERR_HANDLER.
5872         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5873         handling.
5874         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5875         STANDARD_FROM_LOOP_ERR_HANDLER.
5876         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5877         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5878         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5879         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5880         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5881         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5882         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5883         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5884         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5885         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5886         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5887         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5888         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5889         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5890         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5891         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5892         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5893         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5894         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5895         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5896         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5897         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5898         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5899         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5900         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5901         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5902         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5903         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5904         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
5905         an error, still set result = __GCONV_ILLEGAL_INPUT.
5906         (BODY for TO_LOOP): Likewise.
5907         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5908         STANDARD_FROM_LOOP_ERR_HANDLER.
5909         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5910         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5911         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5912         handling.
5913         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5914         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5915         STANDARD_FROM_LOOP_ERR_HANDLER.
5916         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5917         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5918         STANDARD_FROM_LOOP_ERR_HANDLER.
5919         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5920         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5921         STANDARD_FROM_LOOP_ERR_HANDLER.
5922         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5923         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5924         STANDARD_FROM_LOOP_ERR_HANDLER.
5925         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5926         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5927         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5928         handling.
5929         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5930         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5931         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5932         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5934 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5936         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5937         labels in assembler instructions.
5939 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
5941         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5942         not enough content is available.
5943         * libio/tst-eof.c: New file.
5944         * libio/Makefile (tests): Add tst-eof.
5946         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5947         update atime.
5948         * libio/tst-atime.c: New file.
5949         * libio/Makefile (tests): Add tst-atime.
5951         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5952         handling of overly long words.
5954 2002-06-25  Andreas Jaeger  <aj@suse.de>
5956         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5957         to not use 32-bit pc relative relocations.
5958         (elf_machine_dynamic): Likewise.
5960 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5962         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5963         (__GETDENTS): Check for failed getdents64 syscall.
5964         * dirent/Makefile (tests): Add bug-readdir1.
5965         * dirent/bug-readdir1.c: New file.
5967 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
5969         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5970         lookups.
5971         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5972         code.  Print TLS modid and offset for modules containing PT_TLS
5973         segments.
5975 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5977         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5978         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5979         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5980         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5982 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5984         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5985         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5986         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5987         * nss/getXXent_r.c (NEW, NEW1): Define.
5988         (NEW (REENTRANT_GETNAME)): Strong alias to
5989         INTERNAL (REENTRANT_GETNAME).
5990         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5992 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5994         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5995         (_IO_file_jumps_mmap): Use it.
5996         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5997         * libio/libioP.h: Remove _IO_wdefault_setbuf and
5998         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
5999         prototype.
6000         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
6001         (_IO_wfile_jumps_mmap): Don't use it anymore.
6002         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
6003         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
6004         _IO_wdefault_setbuf.
6005         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
6006         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
6007         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
6009 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
6011         * libio/Makefile (tests): Add tst-mmap-setvbuf.
6012         * libio/tst-mmap-setvbuf.c: New test.
6014 2002-06-21  Andreas Jaeger  <aj@suse.de>
6016         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
6018 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
6020         * include/unistd.h (__fork_internal): Remove.
6021         (__fork): Don't define to __fork_internal.
6022         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
6023         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
6024         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
6025         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
6026         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
6028 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
6030         * po/hr.po: New file.
6032 2002-06-11  Wolfram Gloger  <wg@malloc.de>
6034         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
6035         Reported by Michael Meissner <meissner@redhat.com>.
6037 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
6039         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
6040         Patch by Hans Boehm <hans_boehm@hp.com>.
6042 2002-06-20  Andreas Jaeger  <aj@suse.de>
6044         * math/libm-test.inc: Use exact values as input parameters,
6045         compute output parameters with 36 digits for 128-bit long doubles.
6046         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
6047         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
6048         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
6050 2002-06-13  Stephen L Moshier  <steve@moshier.net>
6052         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
6053         argument or result is subnormal.
6055 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
6057         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
6058         quotient.
6059         * sysdeps/i386/fpu/s_remquof.S: Likewise.
6060         * sysdeps/i386/fpu/s_remquol.S: Likewise.
6062         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
6064 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
6066         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
6067         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
6068         Reported by Peter A. Buhr.
6070 2002-06-15  Roland McGrath  <roland@frob.com>
6072         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
6073         warning.
6075         * sysdeps/mach/hurd/getcwd.c
6076         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
6078         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
6079         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
6081         * sysdeps/alpha/divrem.h: Use local label instead of global one for
6082         jump to local subroutine.
6084 2002-06-14  Roland McGrath  <roland@frob.com>
6086         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
6087         * sysdeps/mach/hurd/Makeconfig: ... here.
6089 2002-06-13  Andreas Schwab  <schwab@suse.de>
6091         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
6092         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6093         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
6095 2002-06-13  Roland McGrath  <roland@frob.com>
6097         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
6098         * hurd/hurdstartup.c (_hurd_startup): Likewise.
6099         Use intptr_t instead of int for argc in stack layout.
6100         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
6101         (_dl_init_first): Likewise.
6102         (_hurd_stack_setup): Likewise.
6103         (init1): Add a cast.
6104         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
6106         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
6107         argument to pfinet_siocgifconf RPC.
6109 2002-06-13  Andreas Schwab  <schwab@suse.de>
6111         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
6112         expansion order.
6114 2002-06-12  Roland McGrath  <roland@frob.com>
6116         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
6117         if already defined.
6118         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
6119         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
6121 2002-06-11  Roland McGrath  <roland@frob.com>
6123         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
6124         file on [!RTLD_STAT64].
6125         * sysdeps/mach/hurd/fxstat64.c: Likewise.
6127         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
6128         (__fdopen): Use INTUSE.
6129         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
6131         * stdio-common/tmpfile64.c: File removed.
6132         * sysdeps/generic/tmpfile64.c: New file.
6133         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
6134         if not already defined.
6135         (tmpfile): Use it in place of __GT_FILE.
6137         * include/unistd.h: Declare __chown_internal.
6139         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
6140         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
6142 2002-06-09  Roland McGrath  <roland@frob.com>
6144         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
6145         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
6146         value of HURD_INTERFACE_VERSION >= 20020609.
6147         * sysdeps/mach/hurd/configure: Regenerated.
6148         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
6149         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
6150         convert a struct stat64 into a struct stat and return 0 or -1
6151         with errno set to EOVERFLOW.
6152         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
6153         for struct statfs64 to struct statfs.
6154         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
6155         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
6156         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
6157         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
6158         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
6159         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
6160         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
6161         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
6162         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
6163         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
6164         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
6165         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
6166         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
6167         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
6168         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
6169         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
6170         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
6171         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
6172         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
6173         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
6174         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
6175         Use struct stat64 for io_stat argument.
6176         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
6177         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
6178         to io_seek.
6179         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
6180         * hurd/fd-write.c (_hurd_fd_write): Likewise.
6181         * hurd/hurd/fd.h: Update decls.
6182         * sysdeps/mach/hurd/getcwd.c
6183         (_hurd_canonicalize_directory_name_internal): Use ino64_t
6184         and struct dirent64.
6185         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
6186         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
6187         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
6188         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
6190 2002-06-08  Roland McGrath  <roland@frob.com>
6192         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
6193         instead of unsigned long int for __allocation and __size members.
6195 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
6197         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
6198         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
6199         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
6200         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
6202 2002-06-07  Roland McGrath  <roland@frob.com>
6204         * sysdeps/mach/hurd/bits/environments.h: File removed.
6206 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
6208         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
6209         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
6210         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
6211         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
6212         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
6213         (sendfile64): Likewise.
6214         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
6215         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
6216         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
6217         Likewise.
6218         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
6220         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
6221         already defined.
6223 2002-06-04  Bruno Haible  <bruno@clisp.org>
6225         * sysdeps/cris/stackinfo.h: New file.
6227         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
6228         to an integer type before performing bit operations on it.
6230 2002-06-05  Roland McGrath  <roland@frob.com>
6232         * sysdeps/generic/sendfile.c: Include <errno.h>.
6233         * sysdeps/generic/sendfile64.c: Likewise.
6235         * io/Makefile (routines): Add sendfile and sendfile64.
6236         (headers): Add sys/sendfile.h to the list.
6237         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
6238         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
6239         * io/sys/sendfile.h: ... here.
6240         * sysdeps/generic/sendfile.c: New file.
6241         * sysdeps/generic/sendfile64.c: New file.
6243         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
6244         Move sendfile, sendfile64 to ...
6245         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
6246         * sysdeps/mach/hurd/sendfile.c: New file.
6247         * sysdeps/mach/hurd/sendfile64.c: New file.
6249         * sysdeps/mach/nanosleep.c: New file.
6251 2002-06-04  Roland McGrath  <roland@frob.com>
6253         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
6254         * sysdeps/alpha/elf/configure: New file (generated).
6256 2002-06-02  Roland McGrath  <roland@frob.com>
6258         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
6260 2002-06-01  Roland McGrath  <roland@frob.com>
6262         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
6263         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
6265 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
6267         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
6268         Add nsmap.
6269         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
6270         Remove nstimes setting.
6271         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
6272         * resolv/res_send.c (res_nsend): Don't close unconditionally if
6273         there is mix of IPv6 and IPv4 nameservers.
6274         Use nsmap array to find free slots and preserve nameserver ordering.
6275         Fix RES_ROTATE.
6277 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
6279         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
6280         use this header with LFS.
6282         * po/sk.po: Update from translation team.
6284 2002-05-28  Andreas Schwab  <schwab@suse.de>
6286         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
6287         message when finding object of wrong class.
6289 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
6291         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
6292         Patch by <radu@netsoft.ro>.
6294 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
6296         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
6297         Add readahead.
6298         * sysdeps/unix/sysv/linux/readahead.c: New file.
6299         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
6300         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
6301         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
6302         Add sendfile64 alias to sendfile syscall.
6303         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6304         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6305         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6306         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
6307         syscall.
6309         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
6310         special section for PIC register loading.
6311         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
6313         * config.h.in: Define HAVE_HIDDEN.
6314         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
6316         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
6318 2002-05-28  Roland McGrath  <roland@frob.com>
6320         * sysdeps/mach/alpha/setfpucw.c: New file.
6322 2002-05-26  Roland McGrath  <roland@frob.com>
6324         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
6325         Use integer_t instead of int for IOC_VOID case.
6327 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
6329         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
6331 2002-05-26  Bruno Haible  <bruno@clisp.org>
6333         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
6334         end of the ISO-8859-7 from idx table.
6336 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
6338         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
6340 2002-05-24  David S. Miller  <davem@redhat.com>
6342         * string/bits/string2.h (memset): Do not try to optimize when
6343         not _STRING_ARCH_unaligned if GCC will do the right thing.
6345 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
6347         * posix/regex.c: Define `inline' as a macro into nothing for the
6348         compilers which lack the keyword.
6349         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
6350         for the compatibility of gawk.
6351         * posix/regcomp.c: Add fake implementation of isblank() for the
6352         environments which lack the function.
6353         Don't use free_charset() in case of non-i18n envs.
6354         (build_range_exp): Don't use i18n related code in case of non-i18n
6355         envs.
6356         (build_collating_symbol): Likewise.
6357         (build_equiv_class): Likewise.
6358         (build_charclass): Likewise.
6359         (re_compile_fastmap_iter): Likewise.
6360         (parse_bracket_exp): Likewise.
6361         (build_word_op): Likewise.
6362         (regfree): Don't use free_charset() in case of non-i18n envs.
6363         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
6364         re_token_type_t in case of non-i18n envs.
6365         Don't define re_charset_t in case of non-i18n envs.
6366         Change the type of wcs of re_string_t from wchar_t to wint_t,
6367         since we store also WEOF.
6368         * posix/regex_internal.c: (re_string_realloc_buffers): Change
6369         the type of wcs of re_string_t from wchar_t to wint_t.
6370         (re_string_reconstruct): Likewise.
6371         (create_ci_newstate): Don't use i18n related code in case of
6372         non-i18n envs.
6373         (create_cd_newstate): Likewise.
6375 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
6377         * iconv/loop.c: Fix typo.
6379 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
6381         * inet/ether_line.c (ether_line): Fix a typo causing only
6382         lower 4 bits of each ethernet address byte being assigned.
6383         Don't modify what line points to.
6384         * inet/tst-ether_aton.c (main): Add ether_line tests.
6386 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
6388         * manual/filesys.texi: Don't make readlink example leak memory
6389         when readlink fails.
6391 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
6393         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
6394         some more security checks.
6396 2002-05-17  David S. Miller  <davem@redhat.com>
6398         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
6400 2002-05-16  David S. Miller  <davem@redhat.com>
6402         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
6403         (elf_machine_dynamic): Use it to force PIC register to be loaded.
6404         (elf_machine_load_address): Likewise.
6405         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
6407         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
6408         is unaligned, do not forget to fully initialize %g1 magic value.
6410         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
6411         register definitions and provide 32-bit variants of structures
6412         during 64-bit builds.
6414         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
6415         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
6416         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
6417         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
6418         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
6419         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
6420         Do not clear implicit one bit here, it must be done post-rounding.
6421         Only pad to the left using left shift if value uses less than the
6422         available fractional bits.
6424 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6426         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
6427         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
6428         (shared-only-routines): Likewise.
6429         * sysdeps/powerpc/libgcc-compat.c: New file.
6430         * sysdeps/wordsize-32/cmpdi2.c: Removed.
6431         * sysdeps/wordsize-32/fixdfdi.c: Removed.
6432         * sysdeps/wordsize-32/fixsfdi.c: Removed.
6433         * sysdeps/wordsize-32/shdi3.c: Removed.
6435 2002-05-16  Bruno Haible  <bruno@clisp.org>
6437         * MakeTAGS (libc.pot): Don't sort the output.
6438         * po/header.pot: Update to match xgettext 0.11 output.
6440 2002-05-16  Bruno Haible  <bruno@clisp.org>
6442         * MakeTAGS (subdirs): Remove duplicates.
6444 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
6446         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
6447         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
6448         alias.
6450 2002-05-19  Andreas Jaeger  <aj@suse.de>
6452         * sysdeps/unix/sysv/linux/configure.in: Warn against an
6453         installation in /usr/local.
6455 2002-05-16  Bruno Haible  <bruno@clisp.org>
6457         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
6458         string as argument of #error.
6460 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
6462         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
6463         don't define static.  Remove old __realpath function.  TC1 of
6464         POSIX 2001 will allow the second parameter to be NULL.
6465         * stdlib/test-canon.c: Comment out test for NULL as second
6466         parameter of realpath.
6468         * time/offtime.c (__offtime): Set errno if overflow is detected.
6470         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
6471         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
6472         dl-brk and dl-sbrk.
6474         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
6475         (fdimf): Likewise.
6477 2002-05-15  Roland McGrath  <roland@frob.com>
6479         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
6481 2002-05-12  Bruno Haible  <bruno@clisp.org>
6483         * iconvdata/testdata/EUC-JISX0213: New file.
6484         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
6485         * iconvdata/testdata/SHIFT_JISX0213: New file.
6486         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
6487         * iconvdata/testdata/ISO-2022-JP-3: New file.
6488         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
6489         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
6490         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
6491         contains comments indicating precomposed characters.
6493 2002-04-21  Bruno Haible  <bruno@clisp.org>
6495         * iconvdata/iso-2022-jp-3.c: New file.
6496         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
6497         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
6498         (LDFLAGS-ISO-2022-JP-3.so): New variable.
6499         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
6500         (distribute): Add iso-2022-jp-3.c.
6502 2002-05-12  Bruno Haible  <bruno@clisp.org>
6504         * iconvdata/tst-table-to.c (main): Restore handling of
6505         transliterations, broken by last patch.
6507 2002-05-12  Bruno Haible  <bruno@clisp.org>
6509         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
6511 2002-05-12  Bruno Haible  <bruno@clisp.org>
6513         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
6514         when there is not enough room in the output buffer.
6515         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
6517 2002-04-20  Bruno Haible  <bruno@clisp.org>
6519         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
6520         macros.
6521         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6522         Also make this macro work if FROM_DIRECTION evaluates to 0.
6523         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6524         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
6525         of consume_incomplete.
6526         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6527         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
6528         4, not 8.
6529         * iconvdata/cp1258.c: Likewise.
6530         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6531         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
6532         not 2.
6533         * iconvdata/ibm933.c: Likewise.
6534         * iconvdata/ibm935.c: Likewise.
6535         * iconvdata/ibm937.c: Likewise.
6536         * iconvdata/ibm939.c: Likewise.
6537         * iconvdata/iso-2022-cn.c: Define
6538         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6539         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
6540         * iconvdata/iso-2022-cn-ext.c: Likewise.
6541         * iconvdata/iso-2022-jp.c: Define
6542         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6543         {MIN,MAX}_NEEDED_{FROM,TO}.
6544         * iconvdata/tcvn5712-1.c: Define
6545         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6546         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
6547         * iconvdata/euc-jisx0213.c: Define
6548         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6549         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
6550         * iconvdata/shift_jisx0213.c: Likewise.
6552 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6554         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
6555         shdi3, fixdfdi, fixsfdi in csu dir.
6556         (shared-only-routines): Likewise.
6557         * sysdeps/wordsize-32/cmpdi2.c: New file.
6558         * sysdeps/wordsize-32/shdi3.c: New file.
6559         * sysdeps/wordsize-32/fixdfdi.c: New file.
6560         * sysdeps/wordsize-32/fixsfdi.c: New file.
6561         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
6562         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
6563         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
6565         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
6566         Only use va_arg if the argument will be used [PR libc/3259].
6568 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
6570         * catgets/catgets.c (catopen): Free buffer if internal catalog
6571         open fails.
6573 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6575         * debug/xtrace.sh: Make more robust.  For realtime tracking use
6576         non-buffering methods.
6577         * debug/pcprofiledump.c: Implement -u option.
6578         Patch by Roger Luethi <rl@hellgate.ch>.
6580 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
6582         * include/netinet/in.h (bindresvport_internal): Add prototype.
6583         * include/rpc/auth.h  (authunix_create_internal,
6584         authunix_create_default_internal, authnone_create_internal,
6585         authdes_pk_create_internal): Add prototypes.
6586         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
6587         clntudp_create_internal, clntudp_bufcreate_internal,
6588         clntunix_create_internal): Add prototypes.
6589         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
6590         svc_getreq_internal, svc_getreq_common_internal,
6591         svc_getreqset_internal, svc_getreq_poll_internal,
6592         svc_register_internal, svc_unregister_internal,
6593         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
6594         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
6595         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
6596         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
6597         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
6598         * inet/rcmd.c (rcmd_af): Use __listen.
6599         (rresvport_af): Use __bind.
6600         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
6601         authunix_create, authunix_create_default, authnone_create,
6602         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
6603         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
6604         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
6605         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
6606         _authenticate, add INTDEF after such function definitions.
6607         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6608         __setsockopt, __getsockname instead of non-__ variants.
6609         * sunrpc/pmap_rmt.c: Likewise.
6610         * sunrpc/rtime.c: Likewise.
6611         * sunrpc/svc_udp.c: Likewise.
6612         * sunrpc/clnt_unix.c: Likewise.
6613         * sunrpc/svc_unix.c: Likewise.
6614         * sunrpc/bindrsvprt.c: Likewise.
6615         * sunrpc/svc_tcp.c: Likewise.
6616         * sunrpc/auth_none.c: Likewise.
6617         * sunrpc/clnt_raw.c: Likewise.
6618         * sunrpc/clnt_tcp.c: Likewise.
6619         * sunrpc/auth_unix.c: Likewise.
6620         * sunrpc/key_call.c: Likewise.
6621         * sunrpc/clnt_gen.c: Likewise.
6622         * sunrpc/pm_getmaps.c: Likewise.
6623         * sunrpc/clnt_simp.c: Likewise.
6624         * sunrpc/pmap_clnt.c: Likewise.
6625         * sunrpc/svc_run.c: Likewise.
6626         * sunrpc/svc.c: Likewise.
6627         * sunrpc/svc_simple.c: Likewise.
6628         * sunrpc/pm_getport.c: Likewise.
6629         * sunrpc/auth_des.c: Likewise.
6630         * sunrpc/svc_auth.c: Likewise.
6631         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6632         __register_frame_info_table_bases, __deregister_frame_info_bases):
6633         Add INTDEF.
6634         (__register_frame_info_bases_internal,
6635         __register_frame_info_table_bases_internal,
6636         __deregister_frame_info_bases_internal): Add prototypes.
6637         (__register_frame_info, __register_frame): Use INTUSE in call to
6638         __register_frame_info_bases.
6639         (__register_frame_info_table): Similarly.
6640         (__deregister_frame_info, __deregister_frame): Similarly.
6641         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6642         sendto as weak alias.
6643         * sysdeps/mach/hurd/sendto.c: Likewise.
6644         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6645         recvfrom as weak alias.
6646         * sysdeps/mach/hurd/recvfrom.c: Likewise.
6647         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6648         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6649         recvmsg as weak alias.
6650         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6651         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6652         sendmsg as weak alias.
6653         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6654         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6655         setsockopt, add setsockopt as weak alias.
6656         * sysdeps/mach/hurd/setsockopt.c: Likewise.
6657         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6658         weak alias.
6659         * sysdeps/mach/hurd/bind.c: Likewise.
6660         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6661         as weak alias.
6662         * sysdeps/mach/hurd/listen.c: Likewise.
6663         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6664         getsockname, add getsockname as weak alias.
6665         * sysdeps/mach/hurd/getsockname.c: Likewise.
6666         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6667         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6668         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6669         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6670         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6671         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6672         Add aliases.
6673         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6674         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6675         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6676         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6677         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6678         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6679         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6680         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6681         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6682         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6683         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6684         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6686 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6688         * locale/programs/localedef.h (show_archive_content): Add verbose
6689         argument.
6690         * locale/programs/localedef.c (main): Adjust caller.
6691         * locale/programs/locarchive.c (struct nameent, struct dataent): New
6692         types.
6693         (nameentcmp, dataentcmp): New functions.
6694         (xstrcmp): Remove.
6695         (show_archive_content): Print verbose listing with --list-archive -v.
6697 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6699         * locale/programs/locarchive.c (open_archive): Take extra argument
6700         readonly.  If true open file with O_RDONLY and don't create the
6701         archive if it doesn't exist.
6702         Adapt all callers.
6703         (close_archive): Don't do anything if fd element is -1.
6704         * locale/programs/localedef.h (open_archive): Adjust prototype.
6705         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6706         call.
6708         * malloc/malloc.c (__posix_memalign): Correct check for size of
6709         alignment value [PR libc/3444].
6711         * include/stdio.h: Remove references to old stdio implementation.
6713         * libio/Makefile (bug-ungetwc2-ENV): Define.
6715 2002-05-13  Roland McGrath  <roland@frob.com>
6717         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6719         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6721 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
6723         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6724         Allocate three, not two, more than LEN when appending '/.'.
6725         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
6726         if NAME ends with '/.' if it is shorter than 2 chars.
6728 2002-05-12  Roland McGrath  <roland@frob.com>
6730         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6731         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6733         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6734         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6736 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6738         * sysdeps/ia64/Makefile: Remove extra endif.
6739         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6741 2002-05-10  Andreas Schwab  <schwab@suse.de>
6743         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6745 2002-05-09  Andreas Jaeger  <aj@suse.de>
6747         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6748         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6749         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6751         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6752         * sysdeps/wordsize-64/glob.c: ...here.
6753         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6754         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6755         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6757 2002-05-08  Roland McGrath  <roland@frob.com>
6759         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6760         O_NOTRANS flag in "." lookup.
6762 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
6764         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6766 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
6768         * locale/duplocale.c (__duplocale): Update special members only
6769         when allocation succeeded.
6771 2002-05-03  Roland McGrath  <roland@frob.com>
6773         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6774         we can only build libc.so.0.3(GLIBC_2.2.6) now.
6776 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
6778         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6779         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6780         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6781         * sysdeps/ia64/ia64libgcc.S: New file.
6783 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
6785         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6787         * malloc/memusage.c: Distinguish anonymous mmap.
6789 2002-05-01  Roland McGrath  <roland@frob.com>
6791         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6792         and use INTDEF on it.
6793         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6795         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6797         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6799 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
6801         * malloc/memusage.c: Add support for tracking mmap & friends.
6802         * malloc/memusage.sh: Implement -m/--mmap option.
6804 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6806         * locale/programs/locarchive.c (create_archive): Add archivefname
6807         argument, create fname from it.
6808         (enlarge_archive): Honour output_prefix.
6809         (open_archive): Likewise.
6811 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6813         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6814         too many stpcpy macros.
6816 2002-04-26  Bruno Haible  <bruno@clisp.org>
6818         * locale/programs/ld-collate.c (collate_read): Cast first argument
6819         for "%.*s" to int.
6821 2002-04-26  Bruno Haible  <bruno@clisp.org>
6823         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6824         __dcngettext_internal): New declarations.
6825         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6826         attribute declarations.
6828 2002-04-30  Roland McGrath  <roland@frob.com>
6830         Removed old GNU stdio implementation; GNU libio is now the only option.
6831         * configure.in: Removed --enable-libio option and @stdio@ subst var.
6832         Define USE_IN_LIBIO unconditionally.
6833         * configure: Regenerated.
6834         * Makeconfig (stdio): Set to libio by default.
6835         * config.make.in (stdio): Variable removed.
6836         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6837         * sysdeps/unix/sysv/linux/configure: Regenerated.
6838         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6839         * sysdeps/mach/hurd/configure: Regenerated.
6840         * stdio/.cvsignore: File removed.
6841         * stdio/Makefile: File removed.
6842         * stdio/Versions: File removed.
6843         * stdio/__fbufsize.c: File removed.
6844         * stdio/__flbf.c: File removed.
6845         * stdio/__fpending.c: File removed.
6846         * stdio/__fpurge.c: File removed.
6847         * stdio/__freadable.c: File removed.
6848         * stdio/__freading.c: File removed.
6849         * stdio/__fsetlocking.c: File removed.
6850         * stdio/__fwritable.c: File removed.
6851         * stdio/__fwriting.c: File removed.
6852         * stdio/clearerr.c: File removed.
6853         * stdio/fclose.c: File removed.
6854         * stdio/fcloseall.c: File removed.
6855         * stdio/feof.c: File removed.
6856         * stdio/ferror.c: File removed.
6857         * stdio/fflush.c: File removed.
6858         * stdio/fgetc.c: File removed.
6859         * stdio/fgetpos.c: File removed.
6860         * stdio/fgets.c: File removed.
6861         * stdio/fileno.c: File removed.
6862         * stdio/fmemopen.c: File removed.
6863         * stdio/fopen.c: File removed.
6864         * stdio/fopncook.c: File removed.
6865         * stdio/fputc.c: File removed.
6866         * stdio/fputs.c: File removed.
6867         * stdio/fread.c: File removed.
6868         * stdio/freopen.c: File removed.
6869         * stdio/fseek.c: File removed.
6870         * stdio/fsetpos.c: File removed.
6871         * stdio/ftell.c: File removed.
6872         * stdio/fwrite.c: File removed.
6873         * stdio/getc.c: File removed.
6874         * stdio/getchar.c: File removed.
6875         * stdio/getdelim.c: File removed.
6876         * stdio/gets.c: File removed.
6877         * stdio/glue.c: File removed.
6878         * stdio/internals.c: File removed.
6879         * stdio/linewrap.c: File removed.
6880         * stdio/linewrap.h: File removed.
6881         * stdio/memstream.c: File removed.
6882         * stdio/newstream.c: File removed.
6883         * stdio/obstream.c: File removed.
6884         * stdio/putc.c: File removed.
6885         * stdio/putchar.c: File removed.
6886         * stdio/puts.c: File removed.
6887         * stdio/rewind.c: File removed.
6888         * stdio/setbuf.c: File removed.
6889         * stdio/setbuffer.c: File removed.
6890         * stdio/setlinebuf.c: File removed.
6891         * stdio/setvbuf.c: File removed.
6892         * stdio/stdio.h: File removed.
6893         * stdio/ungetc.c: File removed.
6894         * stdio/vasprintf.c: File removed.
6895         * stdio/vscanf.c: File removed.
6896         * stdio/vsnprintf.c: File removed.
6897         * stdio/vsprintf.c: File removed.
6898         * stdio/vsscanf.c: File removed.
6899         * sysdeps/generic/defs.c: File removed.
6900         * sysdeps/generic/fdopen.c: File removed.
6901         * sysdeps/generic/pipestream.c: File removed.
6902         * sysdeps/generic/stdio_init.c: File removed.
6903         * sysdeps/generic/sysd-stdio.c: File removed.
6904         * sysdeps/generic/vdprintf.c: File removed.
6905         * sysdeps/mach/hurd/defs.c: File removed.
6906         * sysdeps/mach/hurd/fdopen.c: File removed.
6907         * sysdeps/mach/hurd/pipestream.c: File removed.
6908         * sysdeps/mach/hurd/stdio_init.c: File removed.
6909         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6910         * sysdeps/mach/hurd/vdprintf.c: File removed.
6911         * sysdeps/posix/defs.c: File removed.
6912         * sysdeps/posix/fdopen.c: File removed.
6913         * sysdeps/posix/pipestream.c: File removed.
6914         * sysdeps/posix/stdio_init.c: File removed.
6915         * sysdeps/posix/vdprintf.c: File removed.
6916         * sysdeps/unix/pipestream.c: File removed.
6917         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6918         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6919         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6921 2002-04-29  Roland McGrath  <roland@frob.com>
6923         * include/libc-symbols.h (link_warning): Use `unused' attribute.
6925 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
6927         * sysdeps/generic/tls.h: Describe what must be defined.
6929         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6930         glob_in_dir [PR libc/3385].
6931         * posix/globtest.sh: Add test case.
6933         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6934         //TRANSLIT twice.
6936 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
6938         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6939         _internal symbol handling.
6940         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6942 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6944         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6945         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6947 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
6949         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6950         not _LIBC and RE_ENABLE_I18N.
6951         (build_range_exp): Implement for not _LIBC.
6952         (build_collating_symbol): Likewise.
6953         (parse_bracket_exp): Unify redundant error handlings.
6954         Don't erase mbcset for non matching list in multibyte envs.
6955         (build_word_op): Add '_' to matching list for \w operator.
6956         * posix/regex_internal.c (re_string_construct): Invoke
6957         build_upper_buffer in case of not RE_ENABLE_I18N.
6958         (re_string_reconstruct): Don't touch cur_state in case of not
6959         RE_ENABLE_I18N.
6960         * posix/regex_internal.h (attribute_hidden): New macro in case of
6961         not _LIBC.
6962         (re_charset_t): Define range_starts/ends in case of not _LIBC.
6963         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6964         RE_ENABLE_I18N.
6965         (transit_state_mb): Likewise.
6966         (check_node_accept_bytes): Implement the code evaluating range
6967         expression in case of not _LIBC.
6968         (find_collation_sequence_value): Hide in case of not _LIBC.
6970 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
6972         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6973         i386/semctl.c.
6974         (__old_semctl, __new_semctl): Only use va_arg if the argument will
6975         be used.
6977 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6979         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6981         * sysdeps/ia64/strncpy.S: Fix recovery code.
6982         Patch by David Mosberger <davidm@hpl.hp.com>.
6984 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6986         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6987         GLIBC_2.2.6.
6989 2002-04-14  Bruno Haible  <bruno@clisp.org>
6991         * posix/regex.c (re_max_failures): Add back symbol for binary
6992         compatibility.
6994 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
6996         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6997         of buffer building functions.
6998         * posix/regex_internal.c (re_string_allocate): New function.
6999         (re_string_realloc_buffers): New function.
7000         (re_string_skip_chars): New function.
7001         (re_string_reconstruct): New function.
7002         (re_string_construct): Adapt it to new interface of buffer building
7003         functions.
7004         (re_string_construct_common): Likewise.
7005         (build_wcs_buffer): Likewise.
7006         (build_wcs_upper_buffer): Likewise.
7007         (build_upper_buffer): Likewise.
7008         (re_string_translate_buffer): Likewise.
7009         (re_string_context_at): Adapt it to variable length buffers.
7010         * posix/regex_internal.h (re_string_t): Add new fields to handle
7011         variable length buffers.
7012         (re_match_context_t): Likewise.
7013         * posix/regexec.c (re_search_internal): Adapt it to new interface
7014         of re_string_t and re_match_context_t.
7015         (acquire_init_state_context): Likewise.
7016         (check_matching): Likewise.
7017         (check_halt_state_context): Likewise.
7018         (proceed_next_node): Likewise.
7019         (set_regs): Likewise.
7020         (sift_states_backward): Likewise.
7021         (clean_state_log_if_need): Likewise.
7022         (sift_states_iter_mb): Likewise.
7023         (sift_states_iter_bkref): Likewise.
7024         (add_epsilon_backreference): Likewise.
7025         (transit_state): Likewise.
7026         (transit_state_sb): Likewise.
7027         (transit_state_mb): Likewise.
7028         (transit_state_bkref): Likewise.
7029         (transit_state_bkref_loop): Likewise.
7030         (check_node_accept): Likewise.
7031         (match_ctx_init): Likewise.
7032         (extend_buffers): New function.
7034 2002-04-21  Bruno Haible  <bruno@clisp.org>
7036         * iconvdata/tst-table.sh: For the second check, use the truncated
7037         GB18030 charmap table, like for the first check.
7039 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
7041         * elf/dl-load.c (open_verify): Correct __lseek parameters.
7042         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
7044 2002-04-23  H.J. Lu  <hjl@gnu.org>
7046         * include/math.h (isfinite): Fix a typo.
7048 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
7050         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
7051         which is created by the test suite.
7053 2002-04-20  Bruno Haible  <bruno@clisp.org>
7055         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
7056         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
7058 2002-04-20  Bruno Haible  <bruno@clisp.org>
7060         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
7061         to avoid gcc warning.
7063 2002-04-20  Bruno Haible  <bruno@clisp.org>
7065         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
7066         of data->__statep->__count.
7068 2002-04-20  Bruno Haible  <bruno@clisp.org>
7070         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
7071         tag characters.
7072         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
7074 2002-04-24  Roland McGrath  <roland@frob.com>
7076         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
7077         use END macro instead of our own .end directive.
7078         Use `callsys' insn mnemonic instead of `call_pal'.
7080         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
7082         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
7083         macro; we need this for Hurd.
7085         Log entry was missing for 2002/03/24 commit of rev 1.8,
7086         goes with 2002-03-17 changes.
7087         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
7088         (sysdep_routines): Append ioperm here.
7089         (sysdep_headers): Append sys/io.h here.
7091 2002-04-23  Roland McGrath  <roland@frob.com>
7093         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
7094         * sysdeps/mach/hurd/sendto.c: Likewise.
7095         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
7096         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
7097         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
7099 2002-04-22  Roland McGrath  <roland@frob.com>
7101         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
7102         failure from i386_io_perm_* RPCs to ENOSYS.
7104 2002-04-22  Andreas Jaeger  <aj@suse.de>
7106         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
7108         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
7110         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
7111         register instead of destroying %rbx.
7113 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
7115         * string/string.h: Declare strerror_r also for XPG6.
7117 2002-04-19  Roland McGrath  <roland@frob.com>
7119         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
7121 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
7123         * Makefile: Add handling of xtests and xcheck targets.
7124         * MakeTAGS: Likewise.
7125         * Makeconfig: Likewise.
7126         * Makerules: Likewise.
7127         * Rules: Likewise.
7128         * manual/Makefile: Likewise.
7129         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
7130         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
7132 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
7134         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
7135         authnone_private_s.
7136         * sunrpc/auth_none.c: Include bits/libc-lock.h.
7137         Delete #ifdef _RPC_THREAD_SAFE_ block.
7138         (authnone_private): Make a struct, not a pointer to struct.
7139         (authnone_private_guard): New once-control variable.
7140         (authnone_create_once): New function, split out of
7141         authnone_create.  No need to allocate memory.
7142         (authnone_create): Just call authnone_create_once via
7143         __libc_once, then return &authnone_private->no_client.
7144         (authnone_marshal): Access private data via CLIENT argument,
7145         not authnone_private pointer.
7146         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
7147         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
7148         authnone_private_s.
7150 2002-04-12  H.J. Lu  <hjl@gnu.org>
7152         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
7154 2002-04-18  Bruno Haible  <bruno@clisp.org>
7156         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
7157         FROM_DIRECTION): Make the FROM direction stateless.
7158         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
7159         FROM_DIRECTION): Likewise.
7161 2002-04-15  Bruno Haible  <bruno@clisp.org>
7163         * iconvdata/JISX0213.TXT: New file.
7164         * iconvdata/jisx0213.h: New file.
7165         * iconvdata/jisx0213.c: New file.
7166         * iconvdata/euc-jisx0213.c: New file.
7167         * iconvdata/shift_jisx0213.c: New file.
7168         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
7169         * iconvdata/EUC-JISX0213.precomposed: New file.
7170         * iconvdata/SHIFT_JISX0213.precomposed: New file.
7171         * iconvdata/SHIFT_JISX0213.irreversible: New file.
7172         * iconvdata/tst-table-to.c (main): Make it work for encodings for
7173         which the "to" direction is stateful.
7174         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
7175         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
7176         SHIFT_JISX0213.
7177         (libJISX0213-routines): New variable.
7178         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
7179         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
7180         (LDFLAGS-libJISX0213.so): New variable.
7181         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
7182         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
7183         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
7185 2002-04-15  Bruno Haible  <bruno@clisp.org>
7187         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
7188         uint32_t.  Update to Unicode 3.2.
7189         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
7190         (BODY for TO_LOOP): Handle the ASCII range specially.
7191         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
7192         * iconvdata/testdata/BIG5HKSCS: Remove a character.
7193         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
7195 2002-04-15  Bruno Haible  <bruno@clisp.org>
7197         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
7198         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
7200 2002-04-15  Bruno Haible  <bruno@clisp.org>
7202         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
7203         (ucs4_to_cns11643): Update.
7204         * iconvdata/cns11643.c: Update to Unicode 3.2.
7205         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
7206         __cns11643_from_ucs4p2_tab): Regenerated.
7207         (__cns11643_from_ucs4p2c_tab): New array.
7208         * iconvdata/cvs11643l1.c: Update comments.
7209         * iconvdata/EUC-TW.irreversible: Remove two entries.
7211 2002-04-15  Bruno Haible  <bruno@clisp.org>
7213         * locale/C-translit.h.in: Update to Unicode 3.2.
7214         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
7215         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
7217 2002-04-15  Bruno Haible  <bruno@clisp.org>
7219         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
7220         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
7222 2002-04-15  Bruno Haible  <bruno@clisp.org>
7224         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
7225         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
7226         always one byte, not 0 bytes in some cases and 2 bytes in others.
7228         * iconvdata/tst-table-from.c (main): Correct the usage message.
7230 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
7232         * posix/regcomp.c (parse_expression): Fix incorrect error code.
7233         (parse_dup_op): Fix error handling like "a{}".
7234         (parse_bracket_exp): Add error handling.
7235         (fetch_number): Add error handling for "a{<very_large_number>}".
7237 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
7239         * posix/regcomp.c (parse_bracket_symbol): Add error handling
7240         in case that the symbol name is too long.
7241         (build_charclass): Handle [:lower:]/[:uppper:] correctly
7242         in case of REG_ICASE.
7244 2002-04-19  Andreas Jaeger  <aj@suse.de>
7246         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
7247         <hartvige@mips.com>.
7249 2002-04-15  H.J. Lu  <hjl@gnu.org>
7251         * include/math.h (__finitel_internal): Declare only if
7252         __NO_LONG_DOUBLE_MATH is not defined.
7253         (__isinfl_internal): Likewise.
7254         (__isnanl_internal): Likewise.
7256         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
7257         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
7258         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
7259         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
7260         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7261         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
7262         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7264         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
7265         __fcntl_internal.
7267         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
7268         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
7270 2002-04-15  Bruno Haible  <bruno@clisp.org>
7272         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
7273         (BODY for TO_LOOP): Likewise.
7274         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
7275         * iconvdata/tst-table.sh: Add support for encodings which contain
7276         precomposed Unicode characters, known to the iconv converter in both
7277         directions but not listed in the charmap.
7278         * iconvdata/IBM856.irreversible: New file.
7279         * iconvdata/IBM922.irreversible: New file.
7280         * iconvdata/IBM1132.irreversible: New file.
7281         * iconvdata/IBM1133.irreversible: New file.
7282         * iconvdata/IBM1160.irreversible: New file.
7283         * iconvdata/IBM1161.irreversible: New file.
7284         * iconvdata/IBM1163.irreversible: New file.
7285         * iconvdata/IBM1164.irreversible: New file.
7286         * iconvdata/ARMSCII-8.irreversible: New file.
7287         * iconvdata/TCVN5712-1.precomposed: New file.
7288         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
7289         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
7290         ARMSCII-8, TCVN5712-1.
7291         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
7292         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
7293         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
7294         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
7296 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
7298         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
7299         for EVENING69.  Include offsets in TZ environment variable.
7301 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
7303         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
7304         avoid compiler warnings.
7306         * locale/programs/localedef.c (main): Always call
7307         construct_output_path.
7309         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
7311         * locale/programs/locfile.c (to_archive): New variable.  To collect
7312         data which has to be added to the locale archive.
7313         (write_all_categories): Take new third parameter with locale name.
7314         Unless no_archive flag set add new locale data to the archive
7315         (write_locale_data): Unless no-archive flag set store generated data
7316         in to_archive data structure instead of generation output file.
7317         Add new parameter with locale category index.
7318         * locale/programs/locfile.h: Add new parameters in declaractions of
7319         write_all_categories and write_locale_data.
7320         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
7321         --add-to-archive, and --delete-from-archive options.  Pass extra
7322         parameter to write_all_categories.
7323         * locale/programs/localedef.h: Add prototypes for functions in
7324         locarchive.c.
7325         * locale/locarchive.h: New file.
7326         * locale/programs/locarchive.c: New file.
7327         * locale/Makefile (distribute): Add programs/locarchive.c and
7328         locarchive.h.
7329         (localedef-modules): Add md5 and locarchive.
7330         Add vpath to crypt subdir for md5.c.
7332         * locale/programs/ld-address.c: Pass locale category ID as new second
7333         parameter to write_locale_data.
7334         * locale/programs/ld-collate.c: Likewise.
7335         * locale/programs/ld-ctype.c: Likewise.
7336         * locale/programs/ld-identification.c: Likewise.
7337         * locale/programs/ld-measurement.c: Likewise.
7338         * locale/programs/ld-messages.c: Likewise.
7339         * locale/programs/ld-monetary.c: Likewise.
7340         * locale/programs/ld-name.c: Likewise.
7341         * locale/programs/ld-numeric.c: Likewise.
7342         * locale/programs/ld-paper.c: Likewise.
7343         * locale/programs/ld-telephone.c: Likewise.
7344         * locale/programs/ld-time.c: Likewise.
7346         * locale/simple-hash.c: Move compute_hashval function from here...
7347         * locale/hashval.h: ...to here.  New file.
7348         * locale/simple-hash.h: Add prototype for compute_hashval.
7350         * include/libintl.h: Minor cleanups.
7352 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
7354         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
7356 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
7358         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
7360 2002-04-14  Bruno Haible  <bruno@clisp.org>
7362         * locale/programs/charmap.c (charmap_read): Don't access result if
7363         result == NULL.
7365 2002-02-17  Andreas Schwab  <schwab@suse.de>
7367         * elf/reldep7.c: New file.
7368         * elf/reldep7mod1.c: New file.
7369         * elf/reldep7mod2.c: New file.
7370         * elf/Makefile: Add rules to build and run reldep7.
7372 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
7374         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
7375         the end of the function.  Pass original flags to recursive call if
7376         add_dependency failed.
7377         (_dl_lookup_versioned_symbol): Likewise.
7379 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
7381         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
7382         early, but check whether it overflowed afterwards.
7383         * time/tst-mktime.c (main): Add new tests.
7385 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
7387         * debug/xtrace.sh: Fix program name in help message.
7388         Patch by Roger Luethi <rl@hellgate.ch>.
7390         * include/sys/stat.h: Add prototypes for __lxstat_internal and
7391         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
7392         NOT_IN_libc.
7393         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
7394         * sysdeps/mach/hurd/lxstat.c: Likewise.
7395         * sysdeps/unix/common/lxstat.c: Likewise.
7396         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
7397         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
7398         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
7399         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
7400         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
7401         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
7402         * sysdeps/mach/hurd/lxstat64.c: Likewise.
7403         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
7404         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
7406         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
7407         prototypes.  Add __mbrlen and __mbrtowc macros.
7408         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
7409         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
7411         * include/unistd.h: Add prototype for __write_internal and add
7412         __libc_write macro is SHARED.
7413         * sysdeps/generic/write.c: Use INTDEF for __write.
7414         * sysdeps/mach/hurd/write.c: Likewise.
7415         * sysdeps/unix/sysv/aix/write.c: Likewise.
7416         * sysdeps/unix/syscalls.list: Add __libc_write alias.
7418         * assert/assert.c: Replace STR_N_SIZE with something usable in
7419         macro arguments.
7420         * assert/assert-perr.c: Likewise.
7422         * include/sys/socket.h: Declare __libc_sa_len_internal and define
7423         SA_LEN macro to use it if not NOT_IN_libc.
7424         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
7426         * include/fcntl.h: Declare __open_internal and define __open and
7427         __libc_open macros if not NOT_IN_libc.
7428         * sysdeps/generic/open.c: Use INTDEF for __open.
7429         * sysdeps/mach/hurd/open.c: Likewise.
7430         * sysdeps/unix/sysv/aix/open.c: Likewise.
7431         * sysdeps/unix/syscalls.list: Add __open_internal alias.
7433         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
7434         has correct number.
7436         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
7437         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
7438         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7439         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7441         * include/wctype.h: Declare __iswalpha_l_internal,
7442         __iswdigit_l_internal, __iswspace_l_internal,
7443         __iswxdigit_l_internal, and __iswctype_internal.  Define
7444         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
7445         __iswxdigit_l macros if not NOT_IN_libc.
7446         * wctype/iswctype.c: Use INTDEF for __iswctype.
7447         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
7449         * include/math.h: Declare __isinf_internal, __isinfl_internal,
7450         __isnan_internal, and __isnanl_internal.
7451         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
7452         __isnan, and __isnanl.
7453         * stdio-common/printf_size.c: Likewise.
7454         * sysdeps/generic/printf_fphex.c: Likewise.
7455         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
7456         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7457         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
7458         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
7459         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
7460         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7461         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
7462         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7463         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
7464         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7465         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
7466         * sysdeps/m68k/s_isinfl.c: Likewise.
7467         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
7468         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
7470         * include/sys/time.h: Declare __gettimeofday_internal and define
7471         __gettimeofday macro if not NOT_IN_libc.
7472         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
7473         * sysdeps/mach/gettimeofday.c: Likewise.
7474         * sysdeps/posix/gettimeofday.c: Likewise.
7475         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
7476         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
7477         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
7478         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
7480         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
7481         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
7482         Remove __lstat and __fstat inline functions.
7483         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
7484         * sysdeps/mach/hurd/fxstat.c: Likewise.
7485         * sysdeps/unix/fxstat.c: Likewise.
7486         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
7487         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
7488         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
7489         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
7490         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
7491         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
7492         * sysdeps/mach/hurd/fxstat64.c: Likewise.
7493         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
7494         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
7496         * include/unistd.h: Declare __getpid_internal and define
7497         __getpid macro if not NOT_IN_libc.
7498         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
7499         * sysdeps/generic/getpid.c: Likewise.
7500         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
7501         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
7503         * include/unistd.h: Declare __getpgid_internal and define
7504         __getpgid macro if not NOT_IN_libc.
7505         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
7506         * sysdeps/mach/hurd/getpgid.c: Likewise.
7507         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
7508         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
7509         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
7510         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
7512         * include/unistd.h: Declare __getpagesize_internal and define
7513         __getpagesize macro if not NOT_IN_libc.
7514         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
7515         __getpagesize.
7516         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
7517         * sysdeps/mach/getpagesize.c: Likewise.
7518         * sysdeps/posix/getpagesize.c: Likewise.
7519         * sysdeps/unix/getpagesize.c: Likewise.
7520         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
7521         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7522         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
7523         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
7525 2002-04-13  Andreas Jaeger  <aj@suse.de>
7527         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
7528         as clobber to reduce register pressure.
7529         (__strpbrk_cg): Likewise.
7530         (__mempcpy_by4): Likewise.
7531         (__strstr_cg): Likewise.
7532         Add prototype for __memrchr.
7534 2002-04-13  Andreas Schwab  <schwab@suse.de>
7536         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
7537         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
7538         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
7540 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
7542         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
7543         check whether the caller prefers getting the most recent version of
7544         a symbol of the earliest version.
7545         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
7546         _dl_do_lookup to also take the new parameter and pass it on.
7547         Change 'explicit' parameter of _dl_lookup_symbol and
7548         _dl_lookup_versioned_symbol to flags.  Adjust tests.
7549         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7550         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
7551         _dl_lookup_versioned_symbol.
7552         * elf/dl-reloc.c: Likewise.
7553         * elf/dl-runtime.c: Likewise.
7554         * elf/dl-sym.c: Likewise.
7555         * sysdeps/mips/dl-machine.h: Likewise.
7557 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7559         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
7560         in a token.
7561         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
7563 2002-04-10  Andreas Jaeger  <aj@suse.de>
7565         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
7567         * include/argz.h: Remove extra char from last patch.
7569 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
7571         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
7572         * sysdeps/unix/sysv/aix/chown.c: Likewise.
7573         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
7574         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
7575         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7576         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
7577         __chown_internal.
7578         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
7580         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
7581         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
7582         * intl/ngettext.c: Likewise.
7584         * include/sys/socket.h: Declare __connect_internal and define
7585         __connect macro if not NOT_IN_libc.
7586         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
7587         * sysdeps/unix/sysv/aix/connect.c: Likewise.
7588         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
7590         * include/unistd.h: Declare __close_internal and define __close macro
7591         if not NOT_IN_libc.
7592         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
7593         WJUMP3): Add extra parenthesis to avoid expanding element names with
7594         macors like __close.
7595         * sysdeps/unix/syscalls.list: Add __close_internal alias.
7597         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
7598         if not NOT_IN_libc.
7599         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
7600         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
7601         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
7603         * include/unistd.h: Declare __fork_internal and define __fork macro
7604         if not NOT_IN_libc.
7605         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
7606         * sysdeps/unix/sysv/aix/fork.c: Likewise.
7607         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7609         * include/stdio_ext.h: Declare __fsetlocking_internal and define
7610         __fsetlocking macro to use it if not NOT_IN_libc.
7611         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7613         * libio/__fbufsize.c: Correct copyright.
7614         * libio/__flbf.c: Likewise.
7615         * libio/__fpending.c: Likewise.
7616         * libio/__fpurge.c: Likewise.
7617         * libio/__freadable.c: Likewise.
7618         * libio/__freading.c: Likewise.
7619         * libio/__fsetlocking.c: Likewise.
7620         * libio/__fwritable.c: Likewise.
7621         * libio/__fwriting.c: Likewise.
7623         * include/stdio.h: Declare __asprintf_internal and define __asprintf
7624         macro to use it if not NOT_IN_libc.
7625         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7627         * include/mntent.h: Declare __setmntent_internal,
7628         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
7629         __getmntent_r, and __endmntent macros to use these functions if not
7630         NOT_IN_libc.
7631         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7632         __endmntent.
7634         * include/math.h: Declare __finite_internal, __finitef_internal, and
7635         __finitel_internal.  Redefine isfinite macro if in libc or libm using
7636         these functions.
7637         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7638         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7639         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7640         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7641         * sysdeps/i386/fpu/s_finitef.S: Likewise.
7642         * sysdeps/i386/fpu/s_finitel.S: Likewise.
7643         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7644         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7645         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7646         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7648         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
7649         to use this function if not NOT_IN_libc.
7650         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7651         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7652         * sysdeps/mach/hurd/fcntl.c: Likewise.
7653         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7654         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7656         * include/argz.h: Declare __argz_count_internal and
7657         __argz_stringify_internal.
7658         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7659         __argz_stringify.
7660         * string/argz-count.c: Use INTDEF for __argz_count.
7661         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7663         * include/stdlib.h: Declare __cxa_atexit_internal and define
7664         __cxa_atexit macro if not NOT_IN_libc.
7665         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7666         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7668         * assert/assert.c: Use INTDEF for __assert_fail.
7669         * assert/__assert.c: Use INTUSE for call to __assert_fail.
7670         * include/assert.h: Declare __assert_fail_internal.
7672         * extra-lib.mk: Mark assignment to lib with override.
7674 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7676         * Makerules: Use cppflags-iterator.mk to add defines for all test
7677         source files.
7679 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
7681         * elf/elf.h: Define R_SH_TLS_xxx macros.
7682         * elf/rtld.c: Remove an extra parenthesis.
7683         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7684         TLS_GD macros.
7685         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7686         * sysdeps/sh/dl-lookupcfg.h: New file.
7687         * sysdeps/sh/dl-tls.h: New file.
7688         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7689         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7690         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7691         R_SH_TLS_TPOFF32 relocations.
7693 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7695         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7696         of NOT_IN_LIBC.
7697         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7698         * include/stdlib.h: Likewise.
7700 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
7702         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7703         instead of _RTLD_LOCAL.
7704         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7705         * include/unistd.h: Likewise.
7706         * sysdeps/generic/ldsodefs.h: Likewise.
7708         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7709         if in libc or ld.so.
7711 2002-04-08  Andreas Jaeger  <aj@suse.de>
7713         * elf/cache.c (print_entry): Support x86-64.
7715 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7717         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7718         with one accessing the locale data structures directly.
7719         * stdio-common/printf-prs.c: Include localeinfo.h for new
7720         MB_CUR_MAX definition.
7722         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7723         is the name of the source file without extension.
7724         * Makefile (distribute): Add cppflags-iterator.mk.
7725         * cppflags-iterator.mk: New file.
7726         * extra-lib.mk: For the sources of the library run
7727         cppflags-iterator.mk.
7729         * include/libintl.h: Declare __dcgettext_internal and
7730         _libc_intl_domainname_internal.  Define __dcgettext using these
7731         two symbols if used in libc itself.
7732         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7733         _libc_intl_domainname_internal.
7734         * argp/argp-parse.c: Likewise.
7735         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7736         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7737         * intl/gettext.c: Likewise.
7738         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7739         alias.
7740         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7741         __dcgettext.
7742         * posix/regex_internal.c (gettext): Likewise.
7744 2002-04-08  Andreas Jaeger  <aj@suse.de>
7746         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7748         * sysdeps/x86_64/fpu/s_llrint.S: New file.
7749         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7750         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7751         * sysdeps/x86_64/fpu/s_lrint.S: New file.
7752         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7753         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7755 2002-04-08  Roland McGrath  <roland@frob.com>
7757         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7758         widening __hurd_fail value.
7760 2002-04-07  Roland McGrath  <roland@frob.com>
7762         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7763         <mach/machine/alpha_instruction.h>.
7764         (_hurd_setup_sighandler): Take proper arguments for current decls.
7765         Update code to use _hurdsig_catch_fault.
7766         Use `callsys' instruction instead of `call_pal'.
7767         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7769         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7770         (ALIGN, at, AT, fp): New macros.
7772 2002-04-06  Roland McGrath  <roland@frob.com>
7774         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7776         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7777         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7779         * sysdeps/mach/hurd/bind.c: Use prototype definition.
7780         * sysdeps/mach/hurd/connect.c: Likewise.
7781         * sysdeps/mach/hurd/getsockopt.c: Likewise.
7782         * sysdeps/mach/hurd/setsockopt.c: Likewise.
7784         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7785         __msg_sig_post RPC.
7787         * hurd/catch-exc.c: Use integer_t instead of int.
7788         * hurd/hurdfault.c: Likewise.
7790         * sysdeps/mach/hurd/alpha/exc2signal.c
7791         (_hurd_exception2signal): Rewritten.
7792         * sysdeps/mach/hurd/alpha/longjmp-ts.c
7793         (_hurd_longjmp_thread_state): Rewritten.
7795 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
7797         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7798         DB_LOOKUP_FCT prototype.
7799         * nss/getXXent_r.c: Likewise.
7800         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7801         * inet/getaliasname_r.c: Likewise.
7802         * inet/getnetbyad_r.c: Likewise.
7803         * inet/getnetbynm_r.c: Likewise.
7804         * inet/getnetent_r.c: Likewise.
7805         * inet/getproto_r.c: Likewise.
7806         * inet/getprtent_r.c: Likewise.
7807         * inet/getprtname_r.c: Likewise.
7808         * inet/getrpcbyname_r.c: Likewise.
7809         * inet/getrpcbynumber_r.c: Likewise.
7810         * inet/getrpcent_r.c: Likewise.
7811         * inet/getservent_r.c: Likewise.
7812         * inet/getsrvbynm_r.c: Likewise.
7813         * inet/getsrvbypt_r.c: Likewise.
7814         * shadow/getspent_r.c: Likewise.
7815         * shadow/getspnam_r.c: Likewise.
7817         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7819         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7820         Use i686-friendly PIC code.
7821         * sysdeps/i386/elf/setjmp.S: Likewise.
7823         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7825         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7826         list.
7827         * elf/Versions: Remove it here.
7829 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
7831         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7832         direction.  Reported by H . J . Lu <hjl@lucon.org>.
7834 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7836         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7837         test just before the test runs.
7838         * intl/tst-translit.sh: Likewise.
7839         * intl/tst-codeset.sh: Likewise.
7841         * timezone/zic.c: Update from tzcode2002c.
7842         * timezone/asia: Update from tzdata2002c.
7843         * timezone/backward: Likewise.
7844         * timezone/europe: Likewise.
7845         * timezone/northamerica: Likewise.
7846         * timezone/northamerica: Likewise.
7847         * timezone/northamerica: Likewise.
7848         * timezone/southamerica: Likewise.
7849         * timezone/zone.tab: Likewise.
7851 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
7853         * sysdeps/generic/brk.c (__curbrk): Declare.
7854         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7855         * sysdeps/generic/dl-sbrk.c: Likewise.
7856         * sysdeps/unix/arm/dl-brk.S: New file.
7857         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7858         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7859         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7860         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7861         * sysdeps/unix/i386/dl-brk.S: New file.
7862         * sysdeps/unix/mips/dl-brk.S: New file.
7863         * sysdeps/unix/sparc/dl-brk.S: New file.
7864         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7865         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7866         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7867         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7869 2002-04-03  Andreas Schwab  <schwab@suse.de>
7871         * Makefile (headers): Add gnu/lib-names.h here instead of
7872         install-others.
7873         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7874         installation rule.
7875         (install-headers): Add dependency on install-headers-nosubdir.
7876         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7877         instead of install-others.
7878         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7879         installation rule.
7881 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7883         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7884         Reported by Sam Roberts <sroberts@uniserve.com>.
7886 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7888         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7889         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7890         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7891         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7893 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
7895         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7896         (RTLD_START): Ditto.
7897         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7898         dependency violation.
7900 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7902         * time/mktime.c (__mktime_internal): Move check for year < 70 below
7903         all variable declarations.
7905 2002-04-04  Andreas Schwab  <schwab@suse.de>
7907         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7909 2002-04-04  Andreas Jaeger  <aj@suse.de>
7911         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7912         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7914         * sysdeps/x86_64/fpu/s_fabs.c: New file.
7915         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7916         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7918         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7920         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7922         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7923         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7925         * configure.in: Handle all mips entries the same.
7927         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7928         * sysdeps/mips/mips3/*: Likewise.
7929         * sysdeps/mips/p40/bits/endian.h: Likewise.
7931 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
7933         * misc/dirname.c (dirname): Ignore trailing slashes at end of
7934         non-null result [PR libc/2600].
7936         * misc/tst-dirname.c: Add more tests.
7938 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7940         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7941         define a code_set_name provide one based on the filename.
7943         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7945 2001-12-28  Andreas Jaeger  <aj@suse.de>
7947         * time/mktime.c (__mktime_internal): Check for year < 70
7948         [PR libc/2738].
7950 2002-04-03  Andreas Jaeger  <aj@suse.de>
7952         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7953         shmat.
7954         Reported by Andi Kleen <ak@suse.de>.
7956 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7958         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7959         * sysdeps/generic/w_lgammaf.c: Likewise.
7960         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7962         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7963         Adjust for new output format of the backtrace functions.
7965         * misc/syslog.c (vsyslog): Only use cleanup handler if
7966         _LIBC_REENTRANT is defined [PR libc/2924].
7968         * libio/Makefile (tests): Add bug-ungetwc2.
7969         * libio/bug-ungetwc2.c: New file.
7971         * manual/install.texi: Typographical and grammatical cleanup.
7972         Patch by Dennis Grace <dgrace@us.ibm.com>.
7974         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7975         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
7977         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
7978         always "&".  Adjust callers.
7979         Add "_" prefix to several generated definitions.
7980         Patch by paul@serice.net [PR libc/3158].
7982 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7984         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7985         size of _dl_arm_cap_flags.
7986         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7988         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7989         Define as 8.
7991 2002-03-22  H.J. Lu  <hjl@gnu.org>
7993         * scripts/firstversions.awk: Check the first version.
7995 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7997         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7998         dependencies must be stable to work correctly.
7999         Reported by martin.lubich@datacon.at.
8001         * libio/bug-ungetwc1.c: New file.
8002         * libio/Makefile (tests): Add bug-ungetwc1.
8004         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
8005         if stream was last used for writing.
8007         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
8008         number [PR libc/3111].
8010         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
8011         to ...
8012         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
8014 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
8016         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
8017         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
8018         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
8019         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
8020         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
8022 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
8024         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
8025         dynamic tags.
8027 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8029         * sysdeps/i386/fpu/s_fabs.S: New file.
8030         * sysdeps/i386/fpu/s_fabsf.S: New file.
8031         * sysdeps/i386/fpu/s_fabsl.S: New file.
8032         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
8033         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
8034         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
8036 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8038         * rt/tst-shm.c (do_test): Add one more test for size of shared
8039         memory object.
8041 2002-03-29  Wolfram Gloger  <wg@malloc.de>
8043         * malloc/malloc.c: Add short description and prototypes for
8044         malloc_get_state, malloc_set_state and posix_memalign, for
8045         consistency and to avoid warnings with -Wstrict-prototypes.
8046         Reported by Andreas Jaeger <aj@suse.de>.
8048 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8050         * po/gl.po: Update from translation team.
8052 2002-03-31  Roland McGrath  <roland@frob.com>
8054         * hurd/hurdselect.c (_hurd_select): Fix
8055         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
8056         Use a union rather than casts to compare mach_msg_type_t as int.
8058 2002-03-25  Roland McGrath  <roland@frob.com>
8060         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
8061         check off the end of NAME when it's shorter than 2 chars.
8062         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
8064 2002-03-17  Roland McGrath  <roland@frob.com>
8066         * sysdeps/mach/hurd/i386/sys/io.h: New file.
8067         * sysdeps/mach/hurd/i386/ioperm.c: New file.
8068         * sysdeps/mach/hurd/i386/Dist: Add them.
8069         * sysdeps/mach/hurd/i386/Versions
8070         (libc: GLIBC_2.2.6): New set, add ioperm.
8071         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
8072         (mach_interface_list): Check for mach_i386.defs.
8073         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
8074         * sysdeps/mach/configure: Regenerated.
8076 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
8078         * po/fr.po: Update from translation team.
8080 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8082         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
8083         getpriority from syscalls list.
8085 2002-03-28  Andreas Jaeger  <aj@suse.de>
8087         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
8088         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
8089         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
8090         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
8092 2002-03-27  Andreas Jaeger  <aj@suse.de>
8094         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8095         sigcontext): Follow further kernel change.
8097         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
8098         kernel change.
8100         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
8101         Change for struct sigcontext change.
8103         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
8104         Follow changes in struct sigcontext.
8106         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
8107         sysycall, use wrapper instead.
8109 2002-03-26  Andreas Jaeger  <aj@suse.de>
8111         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
8112         read and write accesses as detailed as possible.
8113         (__memcpy_by2): Likewise.
8114         (__memcpy_g): Likewise.
8115         (memmove): Likewise.
8116         (memcmp): Likewise.
8117         (__memset_ccn_by4): Likewise.
8118         (__memset_ccn_by2): Likewise.
8119         (__memset_gcn_by4): Likewise.
8120         (__memset_gcn_by2): Likewise.
8121         (memchr): Likewise.
8122         (__memrchr): Likewise.
8123         (rawmemchr): Likewise.
8124         (__strlen_g): Likewise.
8125         (__strcpy_g): Likewise.
8126         (__mempcpy_by4): Likewise.
8127         (__mempcpy_by2): Likewise.
8128         (__mempcpy_byn): Likewise.
8129         (__stpcpy_g): Likewise.
8130         (__strncpy_by4): Likewise.
8131         (__strncpy_by2): Likewise.
8132         (__strncpy_byn): Likewise.
8133         (__strncpy_gg): Likewise.
8134         (__strcat_c): Likewise.
8135         (__strcat_g): Likewise.
8136         (__strncat_g): Likewise.
8137         (__strcmp_gg): Likewise.
8138         (__strncmp_g): Likewise.
8139         (__strchr_c): Likewise.
8140         (__strchr_g): Likewise.
8141         (__strchrnul_c): Likewise.
8142         (__strchrnul_g): Likewise.
8143         (__strrchr_c): Likewise.
8144         (__strrchr_g): Likewise.
8145         (__strrchr_c): Likewise.
8146         (__strrchr_g): Likewise.
8147         (__strcspn_c1): Likewise.
8148         (__strcspn_cg): Likewise.
8149         (__strcspn_g): Likewise.
8150         (__strcspn_g): Likewise.
8151         (__strspn_c1): Likewise.
8152         (__strspn_cg): Likewise.
8153         (__strspn_g): Likewise.
8154         (__strspn_g): Likewise.
8155         (__strpbrk_cg): Likewise.
8156         (__strpbrk_g): Likewise.
8157         (__strstr_cg): Likewise.
8158         (__strstr_g): Likewise.
8160         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
8161         Michal Ludvig <mludvig@suse.cz>.
8163         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
8164         compatibilty, adjust for kernel changes.
8166         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8167         sigcontext): Adjust for kernel changes.
8169 2002-03-25  Andreas Jaeger  <aj@suse.de>
8171         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
8172         little endian.
8173         Reported by Artur Zaprzala <zybi@talex.com.pl>.
8175 2002-03-24  Andreas Jaeger  <aj@suse.de>
8177         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
8179         * stdio-common/tst-fdopen.c (main): Remove unused variable.
8181         * iconv/tst-iconv3.c (main): Use correct printf strings.
8183 2002-03-18  Roland McGrath  <roland@frob.com>
8185         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
8186         (CMGROUP_MAX): New macro.
8188 2002-03-23  Roland McGrath  <roland@frob.com>
8190         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
8191         * sysdeps/posix/shm_unlink.c: Likewise.
8193 2002-03-22  Roland McGrath  <roland@frob.com>
8195         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
8196         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
8197         under --enable-libio.
8198         * sysdeps/mach/hurd/configure: Regenerated.
8200 2002-03-23  Roland McGrath  <roland@frob.com>
8202         * sysdeps/mach/hurd/i386/Makefile
8203         (sysdep_routines, shared-only-routines): Don't add framestate,
8204         reverting 2001-10-02 change.
8205         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
8206         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
8207         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8208         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8209         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
8210         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
8211         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8212         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
8213         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
8214         Do it here instead, only if [$(unwind-find-fde) = yes].
8216 2002-03-23  Andreas Jaeger  <aj@suse.de>
8218         * signal/signal.h: Fix typo. Patch by Steve Kemp
8219         <skx@tardis.ed.ac.uk>.
8221 2002-03-22  Andreas Jaeger  <aj@suse.de>
8223         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
8224         getresuid.
8226         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8227         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
8228         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8229         user_fpregs_struct): Rename fwd.
8231         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
8232         Follow sigcontext changes.
8234 2002-03-22  Andreas Jaeger  <aj@suse.de>
8236         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
8237         changes for NaNs on MIPS.
8238         Patch by Hartvig Ekner <hartvige@mips.com>.
8240 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
8242         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
8243         Use realloc if too large.
8244         (addgrbyid): Likewise.
8245         * nscd/hstcache.c (addhstbyname): Likewise.
8246         (addhstbyaddr): Likewise.
8247         (addhstbynamev6): Likewise.
8248         (addhstbyaddrv6): Likewise.
8249         * nscd/pwdcache.c (addpwbyname): Likewise.
8250         (addpwbyuid): Likewise.
8252 2002-03-21  Andreas Jaeger  <aj@suse.de>
8254         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8255         _fpstate): Add separate struct for x86-64.
8257         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8258         user_fpregs_struct): Change member names to follow kernel.
8260 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
8262         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
8263         Correctly close the UDP connection right away [PR libc/3120].
8265 2002-03-20  Andreas Jaeger  <aj@suse.de>
8267         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8268         user_fpregs_struct): Fix for changed kernel struct.
8269         (struct user_regs_struct): Likewise.
8270         (struct user): Likewise.
8271         Add 32-bit x86 compatibility.
8273         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
8275 2002-03-19  Andreas Jaeger  <aj@suse.de>
8277         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
8279 2002-03-18  Andreas Jaeger  <aj@suse.de>
8281         * iconvdata/Makefile: Only run tests when shared libs are
8282         available.
8284 2002-03-17  Andreas Jaeger  <aj@suse.de>
8286         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
8288         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
8290         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
8291         bits.
8293         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
8294         (CAUSE_SHIFT): New macro.
8295         Patch by Hartvig Ekner <hartvige@mips.com>.
8297         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
8298         * sysdeps/generic/unwind-pe.h: Likewise.
8300         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
8301         type to _IO_setb.
8303         * libio/stdio.c (AL2): Define variant when visibility attribute is
8304         not supported.
8306         * include/libc-symbols.h (_INTVARDEF): Define variant when
8307         visibility attribute is not supported.
8309 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
8311         * po/fr.po: Update from translation team.
8313 2002-02-25  Bruno Haible  <bruno@clisp.org>
8315         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
8317 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
8319         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
8320         buffers if _IO_file_attach failed.
8322         * libio/fileops.c (_IO_file_open): Close file descriptor if
8323         _IO_SEEKOFF call failed.
8325 2002-03-15  H.J. Lu  <hjl@gnu.org>
8326             Ulrich Drepper  <drepper@redhat.com>
8328         * configure.in: Check for availability of
8329         init_array/fini_array/preinit_array handling in binutils.
8330         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
8331         * config.make.in (have-initfini-array): New variable.
8333 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
8335         * stdio-common/tst-printf.c (main): Comment out one test which
8336         checked the compiler's ability to fold floating-point constants
8337         but not really printf.
8338         (rfg3): Make s const.
8339         * stdio-common/tst-printf.sh: Adjust for removed test.
8341         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
8342         internal function.  Adjust for internal_function calling convention.
8343         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
8344         as internal_function.
8346         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
8347         hidden.
8349         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
8350         declaration and definition.
8351         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
8352         declaration.
8353         * nss/getXXent_r.c: Likewise.
8354         * nss/nsswitch.h (db_lookup_function): Add internal_function to
8355         definition.
8357         * include/time.h: Declare __localtime_r as hidden.
8359         * include/aliases.h: Declare __getaliasent_r as hidden.
8360         * include/grp.h: Declare __getgrent_r as hidden.
8361         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
8362         __getservent_r, and __getprotoent_r as hidden.
8363         * include/pwd.h: Declare __getpwent_r as hidden.
8364         * include/shadow.h: Declare __getspent_r as hidden.
8365         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
8367         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
8368         and __gconv_transliterate as hidden.
8369         Add internal_function to __gconv_get_path declaration.
8370         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
8371         definition.  Add attribute_hidden to __gconv_read_conf definition.
8373 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
8375         * elf/rtld.c: Declare _environ as hidden.
8376         * sysdeps/generic/dl-environ.c: Likewise.
8377         * sysdeps/generic/dl-sysdep.c: Likewise.
8379         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
8380         _dl_mcount_internal as hidden.
8382         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
8383         * sysdeps/generic/dl-brk.c: New file.
8384         * sysdeps/generic/dl-sbrk.c: New file.
8385         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
8386         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
8388         * elf/dl-minimal.c (malloc): Declare _end as hidden.
8389         (__errno_location): New function.  Declare errno as hidden.
8390         * elf/rtld.c (_dl_argc): Define as hidden.
8391         (_dl_skip_args): Define as hidden.
8392         (_begin, _end): Declare as hidden.
8393         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
8394         * sysdeps/generic/entry.h (_start): Declare as hidden.
8395         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
8396         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
8397         _dl_runtime_resolve and _dl_runtime_profile as hidden.
8398         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
8400 2002-03-14  Roland McGrath  <roland@frob.com>
8402         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
8404         * Makeconfig (%.v.i, %.v): New implicit rules.
8405         (preprocess-versions): Variable removed.
8406         ($(common-objpfx)shlib-versions.v.i): New target giving just the
8407         shlib-versions input files as dependencies.
8408         ($(common-objpfx)soversions.i): Depend on that instead of the input
8409         files.  Use it as input instead of using a pipeline.
8410         (postclean-generated): Append soversions.i, shlib-versions.v, and
8411         shlib-versions.v.i here.
8412         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
8413         the Versions.def input files as dependencies.
8414         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
8415         ($(common-objpfx)Versions.all): Depend on that instead of the input
8416         files.  Use it as input instead of using a pipeline.
8417         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
8418         (postclean-generated): Append those .v and .v.i files here.
8420 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
8422         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
8423         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
8424         Remove.
8426 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
8428         * sysdeps/generic/mp_clz_tab.c: New file.
8429         * sysdeps/i386/mp_clz_tab.c: New file.
8430         * sysdeps/hppa/mp_clz_tab.c: New file.
8431         * sysdeps/powerpc/mp_clz_tab.c: New file.
8432         * stdlib/Makefile (aux): Revert last patch.
8433         * math/Makefile (gmp-objs): Likewise.
8435 2002-03-13  Paul Eggert  <eggert@twinsun.com>
8437         * time/strftime.c: Comment fixes for references to obsolescent
8438         standards, In most cases the simplest fix is to remove the
8439         confusing comments.  Cross-referencing all the standards properly
8440         is a bit of a pain, and it should be enough to put that info in
8441         the documentation as I did in my recent time.texi patch.
8443 2002-03-13  Paul Eggert  <eggert@twinsun.com>
8445         * manual/time.texi (Formatting Calendar Time):
8446         ISO C99 also specifies the E and O modifiers.
8447         %P is a GNU extension, and is not in ISO C99.
8448         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
8449         %T is also in ISO C99.
8450         The RFC 822 example is not valid in arbitrary locales.
8451         Reword the POSIX.2 wording slightly, to make it a bit clearer
8452         that POSIX.2 formats are also supported by later POSIX versions.
8453         If a format was introduced in ISO C99 it is also required by
8454         POSIX.1-2001.
8456 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
8458         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
8459         _sys_nerr_internal with INTVARDEF2.
8460         * include/libc-symbols.h (INTVARDEF2): New macro.
8461         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
8462         (_sys_nerr_internal): Library.
8464         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
8465         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
8467         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
8469 2002-03-13  Wolfram Gloger  <wg@malloc.de>
8471         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
8473 2002-03-02  Andreas Schwab  <schwab@suse.de>
8475         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
8476         'h' flag and positional arg.
8477         * stdio-common/tst-printf.c (rfg3): New function to test
8478         positional arguments.
8479         (main): Fix some warnings.
8481 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
8483         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
8484         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8486 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
8488         * grp/initgroups.c (__nss_group_data): Declare as hidden.
8490         * include/locale.h (_nl_C_locobj): Declare as hidden.
8492         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
8493         * time/strptime.c (_nl_C_LC_TIME): Likewise.
8495         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
8497         * include/sys/gmon.h: Declare _gmonparam as hidden.
8499         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
8500         (__ctype32_wctrans): Likewise.
8501         (__ctype32_width): Likewise.
8503         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
8504         use of __ttyname.
8506         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
8507         Define as hidden.
8508         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
8509         hidden.  Change all users of these variables.
8511         * posix/regex_internal.h (__re_error_msgid): Renamed from
8512         re_error_msgid.  Declare as hidden.
8513         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
8514         hidden.
8516         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
8517         (__printf_function_table): Likewise.
8518         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
8519         hidden.
8520         (__printf_function_table): Likewise.
8522         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
8523         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
8525         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
8526         * nss/nsswitch.c: Declare _nss_*_database as hidden.
8528         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
8529         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
8531 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
8533         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
8534         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8535         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8536         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8537         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8538         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8539         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8540         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8541         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
8542         _nl_C_LC_CTYPE_width: Declare as hidden.
8543         * include/locale.h: Declare _nl_locale_file_list.
8544         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
8545         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
8546         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
8547         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
8548         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
8549         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
8550         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
8551         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
8552         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
8553         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
8554         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
8555         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
8556         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8557         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8558         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8559         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8560         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8561         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8562         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8563         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
8564         _nl_C_LC_CTYPE_width, and as hidden.
8565         * locale/findlocale.c: Declare _nl_C as hidden.
8566         * locale/newlocale.c: Likewise.
8567         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
8568         _nl_locale_file_list.
8569         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
8570         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
8571         Define _nl_C_locobj as hidden.
8573         * malloc/mtrace.c (_mtrace_file): Define as hidden.
8574         (_mtrace_line): Likewise.
8576         * include/time.h: Declare __mon_yday as hidden.
8577         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
8579         * libio/libioP.h: Declare __libio_codecvt as hidden.
8580         * libio/fileops.c: Declare __libio_translit as hidden.
8581         * libio/iofwide.c: Define __libio_translit as hidden.
8583         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
8584         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
8585         * login/getutline_r.c: Likewise.
8586         * login/utmpname.c: Likewise.
8588         * login/utmp-private.h: Declare __libc_utmp_file_functions,
8589         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
8590         __libc_utmp_file_name as hidden.
8592         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
8593         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
8594         * locale/freelocale.c: Likewise.
8595         * locale/lc-time.c: Likewise.
8597         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
8598         (__libc_ptyname2): Likewise.
8599         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
8600         hidden.
8601         (__libc_ptyname2): Likewise.
8603         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
8604         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
8605         * sysdeps/generic/init-first.c: Likewise.
8606         * sysdeps/i386/init-first.c: Likewise.
8607         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8608         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8609         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8610         * sysdeps/sh/init-first.c: Likewise.
8611         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8612         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8614         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8615         (_itowa_upper_digits): Likewise.
8617         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8618         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8619         as hidden.
8621         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8622         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8623         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8624         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8626         * gmon/gmon.c (__bb_head): Define as hidden.
8627         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8629         * argp/argp-parse.c (_argp_hang): Define as static.
8631         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8632         handling in latest compilers.
8634         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8635         define alias.
8636         * libio/fileops.c (_IO_file_jumps): Likewise.
8637         * libio/stdfiles.c (_IO_list_all): Likewise.
8638         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8640         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8641         include/malloc.h.
8642         * include/malloc.h: Add __libc_malloc_initialized declaration
8643         here.  Mark variable hidden.
8644         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8646         * elf/dl-open.c (__libc_argc): Declare as hidden.
8647         (__libc_argv): Likewise.
8648         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8649         (__libc_argv): Likewise.
8650         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8651         __libc_argv as hidden.
8652         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8653         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8654         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8655         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8657         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8658         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8659         * stdlib/erand48.c: Likewise.
8660         * stdlib/jrand48.c: Likewise.
8661         * stdlib/lcong48.c: Likewise.
8662         * stdlib/lrand48.c: Likewise.
8663         * stdlib/mrand48.c: Likewise.
8664         * stdlib/nrand48.c: Likewise.
8665         * stdlib/seed48.c: Likewise.
8666         * stdlib/srand48.c: Likewise.
8668         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8669         (_itoa_lower_digits_internal): New declaration.
8670         (_itoa_upper_digits_internal): New declaration.
8671         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8672         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8673         (_itoa_upper_digits_internal): New declaration.
8674         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8675         _itoa_lower_digits.
8676         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8677         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8679         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8680         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8682         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8683         (_itowa_lower_digits): Likewise.
8684         (_itowa_upper_digits): Likewise.
8685         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8686         (_itowa_upper_digits): Likewise.
8688         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8689         not already defined.
8690         (GERMANIC_PLURAL): Declare as hidden.
8692         * posix/getopt.c (__getopt_initialized): Declare as hidden.
8693         (attribute_hidden): Define as empty macro if not already defined.
8695         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8696         (__gconv_max_path_elem_len): Likewise.
8697         (__gconv_path_envvar): Likewise.
8699         * math/Makefile (gmp-objs): Remove mp_clz_tab.
8700         * stdlib/Makefile (aux): Remove mp_clz_tab.
8701         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
8703         * stdlib/exit.h (__exit_funcs): Declare as hidden.
8705         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8707         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8708         _nl_category_names, _nl_category_name_sizes, _nl_current,
8709         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8711         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8712         (_nl_current_default_domain): Likewise
8713         (_nl_state_lock): Likewise.
8714         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8715         (_nl_current_default_domain): Likewise
8716         (_nl_state_lock): Likewise.
8717         * intl/bindtextdom.c (_nl_state_lock): Likewise.
8719         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8720         (_fpioconst_pow10): Likewise.
8722         * include/time.h (_tmbuf): Add attribute_hidden.
8724         * time/tzset.c (tzstring_list): Define as static.
8726         * include/time.h: Add attribute_hidden to __tzname_cur_max and
8727         __use_tzfile declaration.
8729         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8730         and __wcsmbs_last_locale declaration.
8732 2002-02-25  Paul Eggert  <eggert@twinsun.com>
8734         * timezone/Makefile (tzbases): Move systemv from here...
8735         (tzlinks): to here, since the entries in systemv were all changed
8736         from Zone to Link lines in tz-2001a.  Bug reported (and patch
8737         tested) by Peter Breitenlohner.
8739 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
8741         * time/tst-posixtz.c (tests): Add new tests.
8742         (main): Test whether tzset() sets daylight properly.
8744 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8746         * time/tzset.c (tz_compute): Move __daylight, __tzname and
8747         __tzname_cur_max setting...
8748         (tzset_internal): ...here.
8750 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8752         * time/tzset.c (compute_change): Don't return any value.
8753         (tz_compute): Likewise.  Don't handle southern hemisphere here.
8754         (__tz_convert): But here.
8756 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8758         * manual/examples/mkfsock.c: Include <string.h> as well.
8759         Patch by Alain De Carolis <alaind@wseurope.com>.
8761 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
8763         * posix/regexec.c (re_match): Fix incorrect register sizes.
8764         (re_search): Likewise.
8766 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8768         * posix/regcomp.c (regfree): Remove a disused condition.
8769         * posix/regex_internal.c (re_acquire_state): Likewise.
8770         (re_acquire_state_context): Likewise.
8771         (register_state): Remove a redundant malloc invocation.
8772         * posix/regex_internal.h: (re_state_table_entry): Simplify
8773         the structure.
8775 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8777         * posix/regcomp.c (regcomp): Add __builtin_expect to error
8778         handling conditions.
8779         (regerror): Likewise.
8780         (regfree): Likewise.
8781         (re_compile_internal): Likewise.
8782         (init_dfa): Likewise.
8783         (init_word_char): Likewise.
8784         (create_initial_state): Likewise.
8785         (analyze): Likewise.
8786         (analyze_tree): Likewise.
8787         (duplicate_node): Likewise.
8788         (calc_eclosure): Likewise.
8789         (calc_eclosure_iter): Likewise.
8790         (parse): Likewise.
8791         (parse_reg_exp): Likewise.
8792         (parse_branch): Likewise.
8793         (parse_expression): Likewise.
8794         (parse_subexp): Likewise.
8795         (parse_dup_op): Likewise.
8796         (parse_bracket_exp): Likewise.
8797         (build_equiv_class): Likewise.
8798         (build_charclass): Likewise.
8799         (build_word_op): Likewise.
8800         (fetch_number): Likewise.
8801         (create_tree): Likewise.
8802         (duplicate_tree): Likewise.
8803         * posix/regex.c (BE): New macro.
8804         * posix/regexec.c (re_match): Add __builtin_expect to error
8805         handling conditions.
8806         (re_match_2): Likewise.
8807         (re_search): Likewise.
8808         (re_search_internal): Likewise.
8809         (check_matching): Likewise.
8810         (proceed_next_node): Likewise.
8811         (set_regs): Likewise.
8812         (sift_states_backward): Likewise.
8813         (add_epsilon_backreference): Likewise.
8814         (transit_state): Likewise.
8815         (transit_state_sb): Likewise.
8816         (transit_state_mb): Likewise.
8817         (transit_state_bkref): Likewise.
8818         (transit_state_bkref_loop): Likewise.
8819         (build_trtable): Likewise.
8820         (group_nodes_into_DFAstates): Likewise.
8821         (match_ctx_init): Likewise.
8822         (match_ctx_add_entry): Likewise.
8823         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8824         to error handling conditions.
8825         (re_string_construct_toupper): Likewise.
8826         (build_wcs_buffer): Likewise.
8827         (build_wcs_upper_buffer): Likewise.
8828         (build_upper_buffer): Likewise.
8829         (re_string_translate_buffer): Likewise.
8830         (re_node_set_alloc): Likewise.
8831         (re_node_set_init_1): Likewise.
8832         (re_node_set_init_2): Likewise.
8833         (re_node_set_init_copy): Likewise.
8834         (re_node_set_intersect): Likewise.
8835         (re_node_set_init_union): Likewise.
8836         (re_node_set_merge): Likewise.
8837         (re_node_set_insert): Likewise.
8838         (re_dfa_add_node): Likewise.
8839         (re_acquire_state): Likewise.
8840         (re_acquire_state_context): Likewise.
8841         (create_new_state_common): Likewise.
8842         (register_state): Likewise.
8843         (create_ci_new_state): Likewise.
8844         (create_cd_new_state): Likewise.
8845         (re_string_context_at): Remove redundant condition.
8847 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8849         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8851         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8853 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
8855         * sysdeps/i386/elf/configure.in: Fix comment.
8857         * sysdeps/sparc/sparc64/configure.in: New file.
8858         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8859         if .dynamic comes before .got.
8860         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8862         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8863         HP_TIMING_ACCUM): Fix typos.
8865 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8867         * string/strfry.c: Add some more randomness to the seed.
8868         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8870         * po/es.po: Update from translation team.
8871         * po/fr.po: Likewise.
8873         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8875         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8876         when determining type of format.
8877         Patch by James Antill <james@anqd.org> [PR libc/2787].
8879 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
8881         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8883 2002-03-11  Roland McGrath  <roland@frob.com>
8885         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8887         * Versions.def (libc): Add GLIBC_2.2.6.
8888         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8889         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8890         __errno_location instead of __hurd_errno_location, and don't inline it.
8891         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8892         * hurd/errno.c: New file.
8893         * hurd/Makefile (routines): Add errno.
8895 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8897         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8898         ridiculously large widths and precisions [PR libc/3026].
8900 2002-03-11  Andreas Jaeger  <aj@suse.de>
8902         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8903         support.
8904         Patch by Susanne Oberhauser <froh@SuSE.de>.
8906 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8908         * inet/rexec.c (ahostbuf): Define as static.
8910         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8911         (__ctype32_wctrans): Likewise.
8912         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8913         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8914         (__ctype32_wctrans): Likewise.
8915         (__ctype32_width): Likewise.
8917         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8918         They were never exported anyway.
8920         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8921         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
8922         exported.
8923         * include/sys/gmon.h: Declare _gmonparam.
8925         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8926         symbols for getdents64.  They were never exported.
8928 2002-03-09  Roland McGrath  <roland@frob.com>
8930         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8931         Reported by Jon Arney <jarney1@cox.net>.
8933 2002-02-23  Roland McGrath  <roland@frob.com>
8935         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8936         declaration.
8937         (__hurd_errno_location): Function removed.
8939 2002-03-06  Andreas Jaeger  <aj@suse.de>
8941         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8942         32-bit.
8944 2002-03-04  Andreas Jaeger  <aj@suse.de>
8946         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8948         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8949         x86-64.
8951         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8953         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8955         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8957         * sysdeps/x86_64/bits/setjmp.h: New file.
8959         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8961         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8963         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8964         for x86.
8965         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8966         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8968 2002-02-28  Bo Thorsen  <bo@suse.de>
8970         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8971         version.
8973 2002-03-03  Andreas Jaeger  <aj@suse.de>
8975         * sysdeps/x86_64/bits/wordsize.h: New file.
8977         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8978         * elf/tst-tlsmod1.c: Likewise.
8980         * posix/regcomp.c: Get regex.h from include dir for internal
8981         prototypes.
8983         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8984         to libc-internal.h and include it.
8985         * include/libc-internal.h: Add __init_misc.
8987         * misc/init-misc.c: Include libc-internal.h for prototypes.
8989         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8991         * misc/error.c [_LIBC]: Include libioP.h for prototype of
8992         _IO_putc_internal.
8994 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
8996         * posix/regcomp.c: Compatibility changes to allow using the code
8997         outside glibc.
8999 2002-02-28  Hartvig Ekner <hartvige@mips.com>
9001         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
9002         compiled non-PIC.
9004 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
9006         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
9007         of .str elements in the returned data structure.
9009         * elf/elf.h: Add Alpha TLS bits.
9011 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
9013         * sysdeps/unix/sysv/linux/nice.c: New file.
9015 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
9017         * elf/Makefile (dl-routines): Add dl-origin.
9018         (elide-routines.os): Add dl-origin.
9019         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
9020         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
9021         _dl_debug_state.
9022         * include/libc-symbols.c: Define attribute_hidden depending on
9023         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
9025         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
9026         * elf/dl-load.c: Likewise.
9027         * elf/rtld.c: Likewise.
9028         * include/unistd.h: Declare __libc_enable_secure_internal.
9029         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
9030         Use INTUSE with __libc_enable_secure.
9031         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
9033         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
9034         * elf/dl-error.c: Likewise,
9035         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
9037         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
9038         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
9039         function definition.  Use INTDEF with _dl_get_origin.
9040         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9042         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
9043         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
9045         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
9046         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
9047         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
9049         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
9050         * elf/dl-deps.c: Likewise.
9051         * elf/dl-error.c: Likewise.
9052         * elf/dl-fini.c: Likewise.
9053         * elf/dl-init.c: Likewise.
9054         * elf/dl-load.c: Likewise.
9055         * elf/dl-lookup.c: Likewise.
9056         * elf/dl-reloc.c: Likewise.
9057         * elf/dl-version.c: Likewise.
9058         * elf/do-lookup.h: Likewise.
9059         * sysdeps/arm/dl-machine.h: Likewise.
9060         * sysdeps/cris/dl-machine.h: Likewise.
9061         * sysdeps/hppa/dl-machine.h: Likewise.
9062         * sysdeps/i386/dl-machine.h: Likewise.
9063         * sysdeps/m68k/dl-machine.h: Likewise.
9064         * sysdeps/powerpc/dl-machine.h: Likewise.
9065         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9066         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9067         * sysdeps/sh/dl-machine.h: Likewise.
9068         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
9069         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
9070         * sysdeps/x86_64/dl-machine.h: Likewise.
9071         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
9072         _dl_argv[0].  Use INTUSE with _dl_argv.
9073         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
9074         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
9076 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
9078         * elf/rtld.c (_rtld_global): Remove .protected.
9079         (_rtld_local): Strong alias to _rtld_global.
9080         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
9081         only .os object.
9082         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
9083         _rtld_local instead of _rtld_global.
9084         (_rtld_local): Add hidden extern, possibly in .sdata section.
9085         * configure.in: Add tests for visibility attribute and .sdata.
9086         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
9087         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
9088         * sysdeps/arm/dl-machine.h: Likewise.
9089         * sysdeps/generic/ldsodefs.h: Likewise.
9090         * sysdeps/hppa/dl-machine.h: Likewise.
9091         * sysdeps/cris/dl-machine.h: Likewise.
9092         * sysdeps/i386/dl-machine.h: Likewise.
9093         * sysdeps/ia64/dl-machine.h: Likewise.
9094         * sysdeps/m68k/dl-machine.h: Likewise.
9095         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9096         * sysdeps/mips/dl-machine.h: Likewise.
9097         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9098         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9099         * sysdeps/sh/dl-machine.h: Likewise.
9100         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9101         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9102         * sysdeps/x86_64/dl-machine.h: Likewise.
9104 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
9106         * login/login.c (login): Always initialize ut_line field
9107         [PR libc/2991].
9109 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
9111         * sysdeps/i386/Makefile (sysdep_routines): Add
9112         divdi3 in csu dir.
9113         (shared-only-routines): Likewise.
9114         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
9115         (shared-only-routines): Likewise.
9116         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
9117         (shared-only-routines): Likewise.
9118         * sysdeps/wordsize-32/divdi3.c: New file.
9120 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
9122         * locale/iso-4217.def: Remove obsolete currencies for countries
9123         with Euro.
9125 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
9127         * posix/regcomp.c (regcomp): Remove a redundant condition.
9128         (init_word_char): Add a check on malloc failure.
9129         (create_initial_state): Likewise.
9130         (duplicate_node): Likewise.
9131         (calc_eclosure): Likewise.
9132         (calc_eclosure_iter): Likewise.
9133         (parse_expression): Likewise.
9134         (parse_bracket_exp): Remove unnecessary malloc invocations.
9135         (build_equiv_class): Likewise.
9136         (build_charclass): Likewise.
9137         * posix/regex_internal.c (re_node_set_intersect): Add a check
9138         on malloc failure.
9139         (re_node_set_add_intersect): Likewise.
9140         (re_node_set_merge): Likewise.
9141         (re_acquire_state): Likewise.
9142         (re_acquire_state_context): Likewise.
9143         (create_newstate_common): Likewise.
9144         (register_state): Likewise.
9145         (create_ci_newstate): Likewise.
9146         (create_cd_newstate): Likewise.
9147         * posix/regex_internal.h: Fix prototypes of re_acquire_state
9148         and re_acquire_state_context.
9149         * posix/regexec.c (regexec): Suit it to the error handling of
9150         re_search_internal.
9151         (re_match): Likewise.
9152         (re_search): Likewise.
9153         (re_search_internal): Add a check on malloc failure.
9154         (acquire_init_state_context): Likewise.
9155         (check_matching): Likewise.
9156         (proceed_next_node): Likewise.
9157         (set_regs): Likewise.
9158         (sift_states_backward): Likewise.
9159         (sift_states_iter_bkref): Likewise.
9160         (add_epsilon_backreference): Likewise.
9161         (transit_state): Likewise.
9162         (transit_state_sb): Likewise.
9163         (transit_state_mb): Likewise.
9164         (transit_state_bkref_loop): Likewise.
9165         (build_trtable): Likewise.
9166         (group_nodes_into_DFAstates): Likewise.
9167         (match_ctx_init): Likewise.
9168         (match_ctx_add_entry): Likewise.
9170 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
9172         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
9173         l_libname if profiling is enabled [PR libc/2916].
9175         * sysdeps/ia64/dl-tls.h: New file.
9177 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
9179         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
9180         Work around an Alpha gas bug.
9182 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
9184         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
9185         uses read to load the catalog.
9186         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
9188 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
9190         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
9191         regex_internal.c, and regex_internal.h.
9192         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
9193         * posix/regex.c: Complete rewrite.
9194         * posix/regexec.c: New file.
9195         * posix/regcomp.c: New file.
9196         * posix/regex_internal.c: New file.
9197         * posix/regex_internal.h: New file.
9198         * posix/regex.h (RE_ICASE): New macro.
9199         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
9201         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
9202         ungetwc.  It's a macro.
9203         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
9204         implementation.
9205         Reported by Jason Merrill <jason@redhat.com>.
9207 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
9209         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
9210         position to fp->_offset if it is set.
9211         * stdio-common/Makefile (tests): Add tst-fdopen.
9212         * stdio-common/tst-fdopen.c: New test.
9214 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
9216         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
9217         * stdio-common/tst-ungetc.c (main): Add another test.
9219 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
9221         * assert/assert-perr.c: Use INTUSE to reference functions and variables
9222         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
9223         aliases.  Add prototypes for the new aliases.
9224         * assert/assert.c: Likewise.
9225         * include/libc-symbols.h: Likewise.
9226         * include/stdio.h: Likewise.
9227         * include/netinet/in.h: Likewise.
9228         * include/rpc/auth.h: Likewise.
9229         * include/rpc/auth_unix.h: Likewise.
9230         * include/rpc/key_prot.h: Likewise.
9231         * include/rpc/pmap_prot.h: Likewise.
9232         * include/rpc/pmap_rmt.h: Likewise.
9233         * include/rpc/rpc_msg.h: Likewise.
9234         * include/rpc/xdr.h: Likewise.
9235         * inet/gethstbyad_r.c: Likewise.
9236         * inet/gethstbynm2_r.c: Likewise.
9237         * inet/gethstbynm_r.c: Likewise.
9238         * inet/gethstent_r.c: Likewise.
9239         * inet/in6_addr.c: Likewise.
9240         * libio/__fpurge.c: Likewise.
9241         * libio/filedoalloc.c: Likewise.
9242         * libio/fileops.c: Likewise.
9243         * libio/ftello.c: Likewise.
9244         * libio/ftello64.c: Likewise.
9245         * libio/genops.c: Likewise.
9246         * libio/iofclose.c: Likewise.
9247         * libio/iofdopen.c: Likewise.
9248         * libio/iofflush.c: Likewise.
9249         * libio/iofflush_u.c: Likewise.
9250         * libio/iofgetpos.c: Likewise.
9251         * libio/iofgetpos64.c: Likewise.
9252         * libio/iofgets.c: Likewise.
9253         * libio/iofgets_u.c: Likewise.
9254         * libio/iofopen.c: Likewise.
9255         * libio/iofopncook.c: Likewise.
9256         * libio/iofputs.c: Likewise.
9257         * libio/iofread.c: Likewise.
9258         * libio/iofread_u.c: Likewise.
9259         * libio/iofsetpos.c: Likewise.
9260         * libio/iofsetpos64.c: Likewise.
9261         * libio/ioftell.c: Likewise.
9262         * libio/iofwrite.c: Likewise.
9263         * libio/iogetline.c: Likewise.
9264         * libio/iogets.c: Likewise.
9265         * libio/iogetwline.c: Likewise.
9266         * libio/iolibio.h: Likewise.
9267         * libio/iopadn.c: Likewise.
9268         * libio/iopopen.c: Likewise.
9269         * libio/ioseekoff.c: Likewise.
9270         * libio/ioseekpos.c: Likewise.
9271         * libio/iosetbuffer.c: Likewise.
9272         * libio/iosetvbuf.c: Likewise.
9273         * libio/ioungetc.c: Likewise.
9274         * libio/ioungetwc.c: Likewise.
9275         * libio/iovdprintf.c: Likewise.
9276         * libio/iovsprintf.c: Likewise.
9277         * libio/iovsscanf.c: Likewise.
9278         * libio/libioP.h: Likewise.
9279         * libio/memstream.c: Likewise.
9280         * libio/obprintf.c: Likewise.
9281         * libio/oldfileops.c: Likewise.
9282         * libio/oldiofclose.c: Likewise.
9283         * libio/oldiofdopen.c: Likewise.
9284         * libio/oldiofgetpos.c: Likewise.
9285         * libio/oldiofgetpos64.c: Likewise.
9286         * libio/oldiofopen.c: Likewise.
9287         * libio/oldiofsetpos.c: Likewise.
9288         * libio/oldiofsetpos64.c: Likewise.
9289         * libio/oldiopopen.c: Likewise.
9290         * libio/oldstdfiles.c: Likewise.
9291         * libio/putc.c: Likewise.
9292         * libio/setbuf.c: Likewise.
9293         * libio/setlinebuf.c: Likewise.
9294         * libio/stdfiles.c: Likewise.
9295         * libio/stdio.c: Likewise.
9296         * libio/strops.c: Likewise.
9297         * libio/vasprintf.c: Likewise.
9298         * libio/vscanf.c: Likewise.
9299         * libio/vsnprintf.c: Likewise.
9300         * libio/vswprintf.c: Likewise.
9301         * libio/wfiledoalloc.c: Likewise.
9302         * libio/wfileops.c: Likewise.
9303         * libio/wgenops.c: Likewise.
9304         * libio/wstrops.c: Likewise.
9305         * malloc/mtrace.c: Likewise.
9306         * misc/error.c: Likewise.
9307         * misc/syslog.c: Likewise.
9308         * nss/getXXbyYY_r.c: Likewise.
9309         * nss/getXXent_r.c: Likewise.
9310         * nss/hosts-lookup.c: Likewise.
9311         * stdio-common/getw.c
9312         * stdio-common/printf-prs.c: Likewise.
9313         * stdio-common/printf_fp.c: Likewise.
9314         * stdio-common/printf_size.c: Likewise.
9315         * stdio-common/putw.c: Likewise.
9316         * stdio-common/scanf.c: Likewise.
9317         * stdio-common/sprintf.c: Likewise.
9318         * stdio-common/tmpfile64.c: Likewise.
9319         * stdio-common/vfprintf.c: Likewise.
9320         * stdio-common/vfscanf.c: Likewise.
9321         * stdlib/strfmon.c: Likewise.
9322         * sunrpc/auth_des.c: Likewise.
9323         * sunrpc/auth_none.c: Likewise.
9324         * sunrpc/auth_unix.c: Likewise.
9325         * sunrpc/authdes_prot.c: Likewise.
9326         * sunrpc/authuxprot.c: Likewise.
9327         * sunrpc/clnt_perr.c: Likewise.
9328         * sunrpc/clnt_raw.c: Likewise.
9329         * sunrpc/clnt_tcp.c: Likewise.
9330         * sunrpc/clnt_udp.c: Likewise.
9331         * sunrpc/clnt_unix.c: Likewise.
9332         * sunrpc/key_call.c: Likewise.
9333         * sunrpc/key_prot.c: Likewise.
9334         * sunrpc/openchild.c: Likewise.
9335         * sunrpc/pm_getmaps.c: Likewise.
9336         * sunrpc/pm_getport.c: Likewise.
9337         * sunrpc/pmap_clnt.c: Likewise.
9338         * sunrpc/pmap_prot.c: Likewise.
9339         * sunrpc/pmap_prot2.c: Likewise.
9340         * sunrpc/pmap_rmt.c: Likewise.
9341         * sunrpc/rpc_cmsg.c: Likewise.
9342         * sunrpc/rpc_prot.c: Likewise.
9343         * sunrpc/svc_authux.c: Likewise.
9344         * sunrpc/svc_raw.c: Likewise.
9345         * sunrpc/svc_simple.c: Likewise.
9346         * sunrpc/svc_tcp.c: Likewise.
9347         * sunrpc/svc_udp.c: Likewise.
9348         * sunrpc/svc_unix.c: Likewise.
9349         * sunrpc/xdr.c: Likewise.
9350         * sunrpc/xdr_array.c: Likewise.
9351         * sunrpc/xdr_mem.c: Likewise.
9352         * sunrpc/xdr_rec.c: Likewise.
9353         * sunrpc/xdr_ref.c: Likewise.
9354         * sunrpc/xdr_stdio.c: Likewise.
9355         * sysdeps/generic/_strerror.c: Likewise.
9356         * sysdeps/generic/printf_fphex.c: Likewise.
9357         * sysdeps/generic/tmpfile.c: Likewise.
9358         * sysdeps/gnu/errlist.awk: Likewise.
9359         * sysdeps/gnu/errlist.c: Likewise.
9361         * libio/Makefile (routines): Remove iosprint.
9362         * libio/iosprintf.c: Removed
9365 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
9367         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
9368         non_dynamic_init and exported now.
9369         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
9370         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
9371         !SHARED.
9372         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
9373         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
9374         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
9376 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
9378         * elf/dl-close.c (free_slotinfo): Check for end of list and return
9379         true in this case.
9381         * locale/iso-639.def: Add language codes for Walloon.
9383         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
9384         total number of relocations performed.
9386         * elf/sprof.c (load_profdata): If do_test provide information as
9387         to why loading failed.
9388         * elf/dl-profile.c (_dl_start_profile): Initialize all of
9389         hist_hdr.dimen.
9391         * csu/set-init.c: Moved to...
9392         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
9393         * csu/Makefile: Don't compile set-init.
9394         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
9395         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
9396         to __libc_init.
9397         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
9398         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
9399         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
9400         __libc_init.
9401         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
9402         __libc_subinit.
9404 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
9406         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
9407         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
9408         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
9409         (_dl_deallocate_tls): New function.
9410         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
9411         _dl_deallocate_tls.
9413 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
9415         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
9416         * stdio-common/tst-fseek.c (main): Add test for this.
9418 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
9420         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
9422 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
9424         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
9425         pointer before dereferencing.
9427 2002-02-18  Roland McGrath  <roland@frob.com>
9429         * sysdeps/mach/hurd/times.c: Fix typo in last change.
9431         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
9432         Use task_policy in place of task_priority.
9434         * sysdeps/generic/bits/mman.h
9435         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
9436         * sysdeps/mach/msync.c: New file.
9438         * sysdeps/mach/powerpc/syscall.S: New file.
9440         * mach/msg.c [MACH_MSG_OVERWRITE]
9441         (__mach_msg_trap, __mach_msg_overwrite): New functions.
9442         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
9444         * sysdeps/mach/configure.in: Check for clock.defs to put into
9445         mach_interface_list.
9446         * sysdeps/mach/configure: Regenerated.
9448         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
9449         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
9450         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
9451         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
9452         (mach-shortcuts): Add device_read_overwrite_request,
9453         device_read_overwrite, vm_read_overwrite, thread_switch.
9455         * configure.in (base_machine): Set to $machine by default.
9456         * configure: Regenerated.
9458         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
9459         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
9460         * sysdeps/mach/configure: Regenerated.
9461         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
9463         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
9465         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
9467         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
9468         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
9470 2002-02-17  Roland McGrath  <roland@frob.com>
9472         * sysdeps/mach/hurd/times.c
9473         [NO_CREATION_TIME] (startup_time): New static variable.
9474         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
9475         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
9476         creation_time from task_basic_info.
9477         (__times): Use __gettimeofday instead of __host_get_time.
9479         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
9480         Use untyped Mach IPC message format.
9482         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
9484         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
9485         _S_catch_exception_raise_state_identity,
9486         _hurdsig_fault_catch_exception_raise_state,
9487         _hurdsig_fault_catch_exception_raise_state_identity.
9489         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
9491         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
9492         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
9494         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
9495         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
9497         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
9498         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
9499         them as no-op macros.
9500         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
9501         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
9503         * sysdeps/powerpc/dl-machine.h
9504         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
9506         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
9507         Use untyped Mach IPC message format.
9509         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
9510         Handle untyped Mach IPC message formats.
9512         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
9513         Expect different argument conventions when this is defined.
9514         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
9515         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
9516         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
9517         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
9518         for OSF Mach variant.
9519         (faulted): Use mig_reply_error_t for REPLY.
9520         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
9521         in __thread_set_exception_ports call.
9522         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
9523         __mach_port_set_attributes in place of __mach_port_set_qlimit.
9525         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
9526         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
9527         on Darwin, which includes bogons.
9529         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
9530         variable LOADBASE so it's not declared when it's not used.
9532 2002-02-16  Roland McGrath  <roland@frob.com>
9534         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
9535         to use BI.creation_time.
9537         * mach/Machrules (MIG): Add -x c to CPP value passed down.
9539         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
9540         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
9541         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
9542         host_page_size instead of vm_statistics.
9544         * sysdeps/mach/Makefile (mach-before-compile): Don't include
9545         mach_interface.h here, since not all variants use that name.
9547         * sysdeps/mach/configure.in: Add some checks for Mach headers
9548         to ensure a sane installation.
9549         (mach_interface_list): Define this variable by checking for .defs
9550         files found in various variants.
9551         * configure.in (mach_interface_list): AC_SUBST this.
9552         * config.make.in (mach-interface-list): New substituted variable.
9553         * mach/Makefile (user-interfaces): Define this using the value
9554         of $(mach-interface-list) instead of mach, mach4.
9555         Updated other references to mach_interface to use it as well.
9557         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
9559         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
9560         mig_reply_error_t for OSF Mach variant.
9562         * mach/Makefile (routines): Remove bootprivport.
9563         * mach/bootprivport.c: File removed.  It has never been used.
9565         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
9566         Grok the OSF flavor of message format.
9567         (mach_msg_destroy_port): For MAKE_SEND and
9568         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
9569         no-senders notification.
9571 2002-02-06  Roland McGrath  <roland@frob.com>
9573         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
9574         to here if 2.0 compatibility enabled ...
9575         (libc: GLIBC_2.1.3): ... from here.
9577 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
9579         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
9580         generation counter.
9581         * elf/dl-close.c (_dl_close): Likewise.
9583 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
9585         * elf/Makefile: Add rules to build and run tst-tls8.
9586         * elf/tst-tls8.c: New file.
9587         * elf/tst-tlsmod4.c: New file.
9589         * stdlib/test-a64l.c (tests): Add more test cases.
9591         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
9592         Reported by Walter Harms <WHarms@bfs.de>.
9594 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
9596         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
9597         definitions for struct sigcontext.
9598         Suggested by David Mosberger-Tang.
9600 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9602         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
9603         for removing reference of module in slotinfo list.
9604         (_dl_close): Use remove_slotinfo.
9605         * sysdeps/generic/dl-tls.c: General pretty printing.
9606         (oom): Define only if SHARED.
9607         (_dl_next_tls_modid): Correct starting point for the case we assume
9608         there is a gap.  Add missing instruction grouping (doh!).  Correct
9609         tests for reaching maximum index.
9610         * elf/Makefile: Add rules to build and run tst-tls7.
9611         * elf/tst-tls7.c: New file.
9612         * elf/tst-tlsmod3.c: New file.
9614         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9615         USE_TLS.
9616         * elf/tst-tlsmod2.c: Likewise.
9618         * elf/dl-close.c (_dl_close): When closing an object using TLS
9619         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9620         true.  Increment dl_tls_generation only if we closed any TLS-using
9621         object.
9622         * elf/tst-tls6.c: New file.
9623         * elf/Makefile: Add rules to build and run tst-tls6.
9625         * po/da.po: Update from translation team.
9627         * locale/categories.def: Fix typo [PR libc/2948].
9628         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9629         [PR libc/2949].
9630         * locale/iso-4217.def: Update from official version [PR libc/2950].
9631         * glibcbug.in: Honor TMPDIR [PR libc/2951].
9632         * locale/programs/ld-collate.c (collate_finish): Bail out with a
9633         message if input is too confusion instead of using assert.
9634         (collate_read): Don't crash on unknown symbol [PR libc/2952].
9635         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9637         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9638         * elf/tst-tls2.c: Likewise.
9639         * elf/tst-tls3.c: Likewise.
9641 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
9643         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9645 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9647         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9648         if this is really necessary.
9650         * elf/dl-close.c (_dl_close): Implement freeing entries in the
9651         slotinfo array.
9652         (free_mem): Free memory for the slotinfo array if possible.
9654 2002-02-12  Andreas Schwab  <schwab@suse.de>
9656         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9658 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
9660         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9661         TLS_DTV_UNALLOCATE.
9662         (oom): New function.
9663         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9664         (_dl_determine_tlsoffset): Likewise.
9665         (_dl_allocate_tls): Likewise.
9666         (__TLS_GET_ADDR): Define if not already defined.
9667         (_dl_tls_symaddr): New function.
9668         (allocate_and_init): New function.
9669         (__tls_get_addr): Actually implement handling of generation counter
9670         and deferred allocation.
9671         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9672         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9673         _dl_tls_generation.
9674         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9675         Declare _dl_tls_symaddr.
9676         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9677         SHARED.
9678         * include/link.h (struct link_map):  Remove l_tls_nextimage and
9679         l_tls_previmage.
9680         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9681         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9682         (_dl_vsym): Likewise.
9683         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9684         layout.
9685         (dl_main): Allow PT_TLS be present for empty segment.  Remove
9686         nextimage list handling.  Instead add all modules using TLS to
9687         dl_tls_dtv_slotinfo_list.
9688         * elf/dl-open.c (dl_open_worker): After successfully loading all
9689         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9690         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9691         empty segment don't do anything.  Remove handling of initimage list.
9692         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9693         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9694         * elf/dl-minimal.c: Define __libc_memalign.
9695         * elf/dl-support.c: Remove _dl_initimage_list.  Add
9696         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9697         _dl_tls_generation.
9698         * include/stdlib.h: Declare __libc_memalign.
9700         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9701         * elf/tst-tls4.c: New file.
9702         * elf/tst-tls5.c: New file.
9703         * elf/tst-tlsmod2.c: New file.
9705         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9707         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9709         * elf/tst-tls1.c: Use test-skeleton.c.
9710         * elf/tst-tls2.c: Likewise.
9711         * elf/tst-tls3.c: Likewise.
9713         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9715 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
9717         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9719 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
9721         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9723         * elf/tst-tls3.c: New file.
9724         * elf/tst-tlsmod1.c: New file.
9725         * elf/Makefile: Add rules to build and run tst-tls3.
9727         * sysdeps/i386/dl-machine.h: Include <tls.h>.
9728         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9729         TLS relocations.
9731         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9733         * po/fr.po: Update from translation team.
9735         * elf/tls-macros.h: Add alternative macros for use in PIC.
9737         * elf/dl-lookup.c: Include <tls.h>.
9738         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9740         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9741         required by passing pointer to last element of the list.
9743         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9744         l_tls_initimage to a place where it actually is performed.
9746         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9747         after globfree() calls.
9749         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9750         (openaux): Pass open_mode as new last argument to _dl_map_object.
9751         (_dl_map_object_deps): Add new argument open_mode.  Initialize
9752         open_mode element of args variable with it.
9753         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9754         _dl_map_object_deps.
9755         * elf/rtld.c (dl_main): Add zero as last parameter to
9756         _dl_map_object_deps call.
9757         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9758         * elf/nodlopen2.c: New file.
9759         * elf/nodlopenmod2.c: New file.
9760         * elf/Makefile: Add rules to build and run nodlopen2.
9762         * elf/tst-tls1.c: Move TLS helper macros to...
9763         * elf/tls-macros.h: ...here.  New file.
9764         * elf/tst-tls2.c: New file.
9765         * elf/Makefile (tests): Add tst-tls2.
9766         (distribute): Add tls-macros.h.
9768         * po/sv.po: Update from translation team.
9770         * elf/tst-tls1.c (main): Add complete set of tests.  Split
9771         architecture specific definitions from the actual test code.
9773         * po/tr.po: Update from translation team.
9775 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
9777         * elf/Makefile (tests): Add tst-tls1.
9778         * elf/tst-tls1.c: New file.
9780         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9781         alignment of TCB for now.
9783         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9784         initialization image for the application itself.
9786         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9787         loop to initialize TLS block.
9789 2002-02-08  Richard Henderson  <rth@redhat.com>
9791         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9792         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9794         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9796 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
9798         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9800 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
9802         * po/ca.po: Update from translation team.
9803         * po/sk.po: Likewise.
9805         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9806         (dl_main): Move dtv/static TLS handling before relocation.
9807         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
9808         TLS_INIT_TP to allocate and install the dtv/static TLS block.
9809         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9810         so far uses TLS initialize GL(dl_tls_static_size) and
9811         GL(dl_tls_static_align) to account for the TCB.
9812         (_dl_allocate_tls): New function.
9813         * sysdeps/generic/ldsodefs.h (rtld_global): Add
9814         _dl_initial_dtv_malloced.
9816         * configure.in: Test for __builtin_memset more realistically.
9818         * csu/version.c (banner): If TLS support is available say so.
9820 2002-02-04  H.J. Lu  <hjl@gnu.org>
9822         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9823         __attribute_used__.
9824         (__dl_runtime_resolve): Likewise.
9826         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9827         declaration.
9829 2001-11-15  H.J. Lu  <hjl@gnu.org>
9831         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9832         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9834         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9836 2002-02-07  H.J. Lu  <hjl@gnu.org>
9838         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9839         ".set noreorder".
9840         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9841         Likewise.
9843 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9845         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9847         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9848         ___tls_get_addr_internal.
9849         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9851         * po/ko.po: Update from translation team.
9853 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
9855         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9856         attribute, change __pad{1,2} type to unsigned int.
9857         (struct stat64): Remove packed attribute.
9859 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9861         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9863 2002-02-07  Andreas Schwab  <schwab@suse.de>
9865         * configure.in: Fix check for -zcombreloc.
9867 2002-02-06  H.J. Lu  <hjl@gnu.org>
9869         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9870         * configure.in: Check if __builtin_memset really works.
9871         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9872         __GNUC_PREREQ (2, 96) before using __builtin_memset.
9874 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9876         * io/bug-ftw3.c (main): Don't try the test if root.
9878 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9880         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9881         constraints.
9882         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9883         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9884         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9885         Likewise.
9886         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9887         a weak alias for __clone.
9888         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9889         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9890         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9891         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9892         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9893         a weak alias for __mmap64.
9895 2002-02-05  H.J. Lu  <hjl@gnu.org>
9897         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9898         (atomic_add): Likewise.
9899         (compare_and_swap): Likewise.
9900         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9902 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9904         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9906         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9907         alignment of the TCB and store total size and alignment of static
9908         TLS block in _dl_tls_static_size and _dl_tls_static_align.
9909         tls_index is a typedef.
9910         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9911         _dl_tls_static_align.
9912         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9913         * elf/dl-support.c: Define _dl_tls_static_size and
9914         _dl_tls_static_align.
9916 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9918         * configure.in: Add --without-tls option.
9919         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9920         --without-tls is given.
9922         * sysdeps/generic/dl-tls.c: Include <tls.h>.
9924         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9926 2002-02-06  Roland McGrath  <roland@frob.com>
9928         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9929         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9931         * scripts/versions.awk: Improve error message for missing version.
9932         Each version inherits from the last one only if they have the same
9933         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9934         but not GLIBC_x and FOO_y.
9936         * scripts/firstversions.awk: Handle libraries that don't have each
9937         particular version named in the third column of shlib-versions.
9939         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9941 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9943         * Versions.def [ld]: Add GLIBC_2.3.
9944         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9945         * elf/Makefile (dl-routines): Add dl-tls.
9946         (distribute): Add dl-tls.h.
9947         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9948         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9949         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9950         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9951         along with the other info in the link map.  Change queueing of init
9952         images for double linked list.  Use _dl_next_tls_modid to compute
9953         l_tls_modid.
9954         * elf/rtld.c (_dl_start_final): Store alignment requirement
9955         along with the other info in rtld map and executable map.
9956         (dl_main): Add ld.so to the init image list if necessary.  Compute
9957         final module ID with _dl_next_tls_modid.
9958         * include/link.h (struct link_map): Add l_tls_previmage and
9959         l_tls_align.
9960         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9961         * sysdeps/i386/elf/Versions: New file.
9962         * sysdeps/generic/dl-tls.c: New file.
9963         * sysdeps/generic/dl-tls.h: New file.
9964         * sysdeps/i386/dl-tls.h: New file.
9966 2002-02-06  Roland McGrath  <roland@frob.com>
9968         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9969         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9971 2002-01-05  Roland McGrath  <roland@frob.com>
9973         * sysdeps/mach/configure.in: New file.
9974         * sysdeps/mach/configure: New generated file.
9976         * mach/Makefile (user-interfaces): Remove default_pager_helper.
9977         It has never been used by anything.
9979 2002-02-06  H.J. Lu  <hjl@gnu.org>
9981         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9982         is included.
9984 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9986         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9987         attribute((packed)) to counter stupid people misusing gcc options.
9988         (struct stat64): Likewise.
9990 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9992         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
9993         the variables which are used as booleans.
9995 2002-02-06  Andreas Jaeger  <aj@suse.de>
9997         * include/libc-symbols.h (INTUSE): Renamed from INT.
9998         * elf/dl-deps.c: Change users.
9999         * sysdeps/generic/dl-sysdep.c: Likewise.
10000         * sysdeps/generic/dl-cache.c: Likewise.
10001         * elf/dl-reloc.c: Likewise.
10002         * elf/rtld.c: Likewise.
10003         * elf/dl-version.c: Likewise.
10004         * elf/dl-load.c: Likewise.
10005         * elf/dl-dst.h: Likewise.
10006         * elf/dl-init.c: Likewise.
10007         * elf/dl-error.c: Likewise.
10008         * elf/dl-fini.c: Likewise.
10009         * elf/dl-runtime.c: Likewise.
10010         * elf/do-lookup.h: Likewise.
10012         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
10013         definition.
10014         * stdio-common/_itowa.h: Likewise.
10016 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
10018         * elf/dl-minimal.c: Define _itoa_lower_digits.
10020         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
10021         DT_FLAGS set.
10023         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
10024         loading modules with the DF_STATIC_TLS flag set.
10025         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
10026         element.
10027         * include/link.h (struct link_map): Add l_flags field.
10028         * elf/elf.h (DF_STATIC_TLS): New definition.
10030         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
10031         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
10033         * elf/rtld.c (process_dl_debug): Correct printing help message.
10034         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
10035         for %s.
10037         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
10038         definition and pass &errno in use of this variable.
10039         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
10041 2002-02-04  Andreas Schwab  <schwab@suse.de>
10043         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
10044         * locale/programs/charmap-dir.c: Wrap calls that output messages
10045         with WITH_CUR_LOCALE.  Include "localedef.h" first.
10046         * locale/programs/charmap.c: Likewise.
10047         * locale/programs/ld-address.c: Likewise.
10048         * locale/programs/ld-collate.c: Likewise.
10049         * locale/programs/ld-ctype.c: Likewise.
10050         * locale/programs/ld-identification.c: Likewise.
10051         * locale/programs/ld-measurement.c: Likewise.
10052         * locale/programs/ld-messages.c: Likewise.
10053         * locale/programs/ld-monetary.c: Likewise.
10054         * locale/programs/ld-name.c: Likewise.
10055         * locale/programs/ld-numeric.c: Likewise.
10056         * locale/programs/ld-paper.c: Likewise.
10057         * locale/programs/ld-telephone.c: Likewise.
10058         * locale/programs/ld-time.c: Likewise.
10059         * locale/programs/linereader.c: Likewise.
10060         * locale/programs/linereader.h: Likewise.
10061         * locale/programs/localedef.c: Likewise.
10062         * locale/programs/locfile.c: Likewise.
10063         * locale/programs/repertoire.c: Likewise.
10065 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
10067         * elf/rtld.c (_dl_start_final): Determine load address to locate
10068         ehdr with GL(dl_rtld_map).l_map_start.
10070         * po/ca.po: Update from translation team.
10072         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
10073         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
10074         header entry.
10075         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10076         _dl_tls_module_cnt.
10077         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
10079 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
10081         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
10082         * include/link.h (struct link_map): Add various members for TLS
10083         information.
10084         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
10085         _rtld_tlsoffset, add _dl_initimage_list.
10086         * sysdeps/i386/dl-lookupcfg.h: New file.
10087         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
10088         TLS relocation.  When using TLS we now use RESOLVE_MAP.
10089         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
10090         is used.
10092         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
10093         unused.
10095         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
10096         thread-pointer as soon as possible.
10097         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
10098         elements in rtld_global.
10099         * sysdeps/generic/tls.h: New file.
10100         * elf/Makefile (distribute): Add tls.h.
10101         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
10102         relocations.  Not complete yet.
10104         * resolv/resolv.h: Allow user to define __need_res_state and only
10105         define __res_start structure then.
10106         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
10108         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
10109         dl_cpuclock_offset initialization to _dl_start_final.
10110         (_dl_show_auxv): Avoid unnecessary sign extension.
10111         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
10113 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
10115         * config.h.in: Add HAVE_TLS_SUPPORT.
10116         * sysdeps/i386/elf/configure.in: New file.
10118 2002-02-03  Andreas Schwab  <schwab@suse.de>
10120         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
10121         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
10123 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
10125         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
10126         alloca if the memory reqirements are too high.
10128 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
10130         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
10131         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
10132         the former is available anyway and speed isn't important here.
10133         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
10134         * elf/dl-version.c (match_symbol): Likewise.
10135         (_dl_check_map_versions): Likewise.
10136         * elf/rtld.c (process_envvars): Likewise.
10137         (print_statistics): Likewise.
10138         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
10139         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
10140         bases.  Add assert to catch uses of unimplemented features.
10141         (__strsep): Add assert to catch uses of unimplemented features.
10142         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
10143         and avoid inline optimization.
10144         * elf/rtld.c (process_envvars): Likewise.
10145         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
10146         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
10147         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
10149 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10151         * stdio-common/_itoa.h: Minor simplifications of the code.
10152         * stdio-common/_itoa.c: Likewise.
10154         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
10155         instead of _dl_printf for debugging info output.
10157         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
10158         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
10160 2002-02-01  H.J. Lu  <hjl@gnu.org>
10162         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
10163         (atomic_add): Likewise.
10164         (compare_and_swap): Return 0 only when failed to compare. Use
10165         branch likely.
10167         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
10168         branch likely.
10170 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
10172         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
10174 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10176         * elf/dl-minimal.c (__strsep): New minimal implementation.
10178 2002-02-02  Paul Eggert  <eggert@twinsun.com>
10180         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
10181         (__mktime_internal): If no tm_isdst is requested, prefer solutions
10182         with tm_isdst > 0 when the requested time falls within a
10183         spring-forward gap [PR libc/2894].
10185 2002-02-03  Andreas Schwab  <schwab@suse.de>
10187         * stdio-common/tst-rndseek.c: Increase timeout.
10189 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10191         Change ld.so to not use functions which are exported.  One cannot
10192         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
10193         definitions.
10194         * include/libc-symbols.h: Define INT and INTDEF.
10195         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
10196         _dl_signal_error_internal, _dl_map_object_internal,
10197         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
10198         _dl_lookup_versioned_symbol_internal,
10199         _dl_relocate_object_internal, _dl_debug_state_internal,
10200         _dl_start_profile_internal, and _dl_unload_cache_internal.
10201         * include/dlfcn.h: Declare _dl_catch_error_internal.
10202         * elf/rtld.c: Use INT for calls to any of the *_internal functions
10203         above.  Add INTDEF to function definitions.
10204         * elf/dl-debug.c: Likewise.
10205         * elf/dl-deps.c: Likewise.
10206         * elf/dl-dst.h: Likewise.
10207         * elf/dl-error.c: Likewise.
10208         * elf/dl-fini.c: Likewise.
10209         * elf/dl-init.c: Likewise.
10210         * elf/dl-load.c: Likewise.
10211         * elf/dl-lookup.c: Likewise.
10212         * elf/dl-misc.c: Likewise.
10213         * elf/dl-open.c: Likewise.
10214         * elf/dl-profile.c: Likewise.
10215         * elf/dl-reloc.c: Likewise.
10216         * elf/dl-runtime.c: Likewise.
10217         * elf/dl-version.c: Likewise.
10218         * elf/do-lookup.h: Likewise.
10219         * sysdeps/generic/dl-cache.c: Likewise.
10220         * sysdeps/generic/dl-sysdep.c: Likewise.
10221         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
10222         instead of _dl_init.
10223         * sysdeps/arm/dl-machine.h: Likewise.
10224         * sysdeps/cris/dl-machine.h: Likewise.
10225         * sysdeps/hppa/dl-machine.h: Likewise.
10226         * sysdeps/i386/dl-machine.h: Likewise.
10227         * sysdeps/ia64/dl-machine.h: Likewise.
10228         * sysdeps/m68k/dl-machine.h: Likewise.
10229         * sysdeps/mips/dl-machine.h: Likewise.
10230         * sysdeps/mips/mips64/dl-machine.h: Likewise.
10231         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10232         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10233         * sysdeps/sh/dl-machine.h: Likewise.
10234         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10235         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10236         * sysdeps/x86_64/dl-machine.h: Likewise.
10237         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
10239         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
10240         and _dl_debug_initialize.
10242         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
10243         more information.
10244         * elf/rtld.c (dl_main): Avoid strrchr.
10245         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
10246         result of readlink.  Search from the back for '/'.
10248         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
10249         strncpy if possible.
10251         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
10252         strncmp.
10253         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
10254         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
10255         strspn, and strcspn.
10256         (process_envvars): Don't use strcspn.
10258         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
10259         (_dl_dst_substitute): Likewise.
10261 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10263         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
10264         code which is never used when relocating ld.so itself.
10266         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
10267         starting ld.so itself.  Move l_addr variable initialization closer
10268         to use.
10269         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
10271 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
10273         * Versions.def (libc): Add GLIBC_PRIVATE.
10274         (libdb, libnss_db, libdb1): Remove.
10275         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
10276         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
10277         (libpthread): Add GLIBC_PRIVATE.
10278         (libresolv): Likewise, remove GLIBC_2.1.
10279         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
10280         GLIBC_2.2.3, GLIBC_2.3.
10281         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
10282         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
10283         _dl_sym, _dl_vsym): Likewise.
10284         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
10285         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
10286         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
10287         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
10288         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
10289         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
10290         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
10291         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
10292         Likewise.
10293         (_dl_object_relocation_scope): Remove.
10294         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
10295         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
10296         __gconv_cache): Move to GLIBC_PRIVATE.
10297         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
10298         __internal_setnetgrent): Likewise.
10299         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
10300         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
10301         * locale/Versions (__collate_element_hash, __collate_element_strings,
10302         __collate_symbol_classes, __collate_symbol_hash,
10303         __collate_symbol_strings, _nl_current_LC_COLLATE,
10304         _nl_current_LC_CTYPE): Likewise.
10305         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
10306         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
10307         (libnss_nis, libnss_nisplus): Likewise.
10308         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
10309         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
10310         (libnss_files): Move all symbols to GLIBC_PRIVATE.
10311         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
10312         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
10313         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
10314         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
10315         __ns_get16, __ns_samename): Likewise.
10316         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
10317         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
10318         GLIBC_PRIVATE.
10319         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
10320         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
10321         __libc_connect): Likewise.
10322         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
10323         Likewise.
10324         * stdlib/Versions (__libc_system): Likewise.
10325         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
10326         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
10327         * sysdeps/ia64/fpu/Versions: Likewise.
10328         * sysdeps/ia64/Versions: Likewise.
10329         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
10330         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
10331         to GLIBC_PRIVATE.
10332         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
10333         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
10334         __libc_sigaction): Likewise.
10335         * termios/Versions (__libc_tcdrain): Likewise.
10337         * misc/sys/cdefs (__attribute_noinline__): Define.
10338         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
10339         __attribute_noinline__.
10341         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
10342         * elf/dl-xstat64.c: New file.
10343         * elf/dl-fxstat64.c: New file.
10344         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
10345         don't export __fxstat64 at multiple versions.
10346         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
10347         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
10349 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
10351         * locale/program/ld-collate.c (collate_finish): Assign a wide
10352         char collation sequence value to multi character collating
10353         elements, and avoid over writing by non-character elements.
10355 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10357         * elf/Makefile (distribute): Add dl-procinfo.c.
10358         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
10359         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
10361 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
10363         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
10364         definition.
10365         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
10366         _rtld_global struct.
10367         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10368         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
10369         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10370         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
10371         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
10372         _dl_fpu_control_set): Remove unused externs.
10373         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
10374         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
10375         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
10376         related variables in _rtld_global struct.
10377         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
10378         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
10379         unused extern.
10381 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10383         * sysdeps/generic/dl-procinfo.c: New file.
10385 2002-02-01  Andreas Schwab  <schwab@suse.de>
10387         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
10389 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10391         * elf/rtld.c (_dl_start): Mark as internal_function.
10392         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
10393         in register.
10394         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
10395         General pretty printing.
10397 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
10399         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
10400         * elf/dl-reloc.c: Pretty printing.
10401         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
10402         procinfo-related variables in rtld_global struct.
10403         * elf/dl-support.c: Likewise.
10404         * elf/rtld.c: Likewise.
10405         * sysdeps/i386/i686/Makefile: Likewise.
10406         * sysdeps/i386/i686/hp-timing.c: Likewise.
10407         * sysdeps/i386/i686/hp-timing.h: Likewise.
10408         * sysdeps/ia64/Makefile: Likewise.
10409         * sysdeps/ia64/hp-timing.c: Likewise.
10410         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
10411         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
10412         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
10413         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
10414         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10415         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
10416         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
10417         * sysdeps/x86_64/Makefile: Likewise.
10419         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
10420         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
10421         _dl_debug_fd to rtld_global.
10422         * elf/Versions: Likewise.
10423         * elf/dl-close.c: Likewise.
10424         * elf/dl-iteratephdr.c: Likewise.
10425         * elf/dl-lookup.c: Likewise.
10426         * elf/dl-misc.c: Likewise.
10427         * elf/dl-open.c: Likewise.
10428         * elf/dl-support.c: Likewise.
10429         * elf/do-lookup.h: Likewise.
10430         * elf/rtld.c: Likewise.
10431         * sysdeps/generic/dl-cache.c: Likewise.
10432         * sysdeps/generic/dl-sysdep.c: Likewise.
10433         * sysdeps/ia64/Versions: Likewise.
10434         * sysdeps/unix/clock_gettime.c: Likewise.
10435         * sysdeps/unix/clock_settime.c: Likewise.
10436         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10437         * sysdeps/sparc/Versions: Removed.
10438         * sysdeps/i386/i686/Versions : Removed.
10439         * sysdeps/x86_64/Versions: Removed.
10440         * configure.in: Define HAVE_PROTECTED if .protected is available.
10441         * config.h.in: Add entry for HAVE_PROTECTED.
10443 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
10445         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
10446         code in struct _rtld_global.  Export this struct, remove all
10447         exports for the signal variables.
10448         * sysdeps/arm/dl-machine: Likewise.
10449         * sysdeps/generic/dl-origin: Likewise.
10450         * sysdeps/generic/dl-sysdep: Likewise.
10451         * sysdeps/generic/dl-cache: Likewise.
10452         * sysdeps/hppa/dl-fptr: Likewise.
10453         * sysdeps/hppa/dl-machine: Likewise.
10454         * sysdeps/cris/dl-machine: Likewise.
10455         * sysdeps/i386/dl-machine: Likewise.
10456         * sysdeps/ia64/dl-machine: Likewise.
10457         * sysdeps/m68k/dl-machine: Likewise.
10458         * sysdeps/mach/hurd/dl-sysdep: Likewise.
10459         * sysdeps/mips/mips64/dl-machine: Likewise.
10460         * sysdeps/mips/dl-machine: Likewise.
10461         * sysdeps/powerpc/elf/libc-start: Likewise.
10462         * sysdeps/powerpc/dl-machine: Likewise.
10463         * sysdeps/powerpc/dl-start: Likewise.
10464         * sysdeps/sparc/sparc32/dl-machine: Likewise.
10465         * sysdeps/sparc/sparc64/dl-machine: Likewise.
10466         * sysdeps/sh/dl-machine: Likewise.
10467         * sysdeps/s390/s390-32/dl-machine: Likewise.
10468         * sysdeps/s390/s390-64/dl-machine: Likewise.
10469         * sysdeps/unix/sysv/aix/libc-start: Likewise.
10470         * sysdeps/unix/sysv/aix/start-libc: Likewise.
10471         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
10472         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
10473         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
10474         * sysdeps/x86_64/dl-machine: Likewise.
10476 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
10478         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
10479         are too high.
10481 2002-01-31  Andreas Schwab  <schwab@suse.de>
10483         * sysdeps/posix/readv.c: Check for ssize_t overflow.
10485 2002-01-31  Andreas Schwab  <schwab@suse.de>
10487         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
10488         reference to _dl_pagesize.
10490 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
10492         * Versions.def [ld]: Add GLIBC_2.3.
10493         * elf/dl-addr.c: Move global variables for SHARED code in struct
10494         _rtld_global.  Export this struct, remove all exports for the
10495         signal variables.
10496         * elf/dl-close.c: Likewise.
10497         * elf/dl-conflict.c: Likewise.
10498         * elf/dl-debug.c: Likewise.
10499         * elf/dl-deps.c: Likewise.
10500         * elf/dl-dst.h: Likewise.
10501         * elf/dl-error.c: Likewise.
10502         * elf/dl-fini.c: Likewise.
10503         * elf/dl-init.c: Likewise.
10504         * elf/dl-iteratephdr.c: Likewise.
10505         * elf/dl-libc.c: Likewise.
10506         * elf/dl-load.c: Likewise.
10507         * elf/dl-lookup.c: Likewise.
10508         * elf/dl-minimal.c: Likewise.
10509         * elf/dl-object.c: Likewise.
10510         * elf/dl-open.c: Likewise.
10511         * elf/dl-profile.c: Likewise.
10512         * elf/dl-profstub.c: Likewise.
10513         * elf/dl-reloc.c: Likewise.
10514         * elf/dl-runtime.c: Likewise.
10515         * elf/dl-support.c: Likewise.
10516         * elf/dl-sym.c: Likewise.
10517         * elf/dl-version.c: Likewise.
10518         * elf/do-lookup.h: Likewise.
10519         * elf/do-rel.h: Likewise.
10520         * elf/dynamic-link.h: Likewise.
10521         * elf/rtld.c: Likewise.
10522         * sysdeps/generic/dl-cache.c: Likewise.
10523         * sysdeps/generic/dl-sysdep.c: Likewise.
10524         * sysdeps/generic/ldsodefs.h: Likewise.
10525         * sysdeps/generic/libc-start.c: Likewise.
10526         * sysdeps/i386/dl-machine.h: Likewise.
10527         * sysdeps/ia64/dl-fptr.c: Likewise.
10528         * sysdeps/ia64/dl-machine.h: Likewise.
10529         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
10530         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10531         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
10532         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
10533         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
10534         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
10535         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
10536         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
10538 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10540         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
10541         to avoid warning
10542         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
10544         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
10545         SHARED version.
10546         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
10548         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
10550 2002-01-29  Ben Collins  <bcollins@debian.org>
10552         * string/bits/string2.h (__mempcpy): Protect size arg for
10553         addition when using __builtin_memcpy.
10555 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10557         * stdlib/Makefile (tests): Add tst-qsort.
10558         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
10560         * manual/signal.texi (Process Signal Mask): Document that
10561         pthread_sigmask, not sigprocmask, must be used in MT programs.
10562         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
10564         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
10565         found.
10566         * misc/Makefile (tests): Add tst-hsearch.
10567         * misc/tst-hsearch.c: New file.
10569 2002-01-18  Wolfram Gloger  <wg@malloc.de>
10571         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
10572         * malloc/malloc.h: Likewise.
10573         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
10574         * malloc/arena.c: New file.
10575         * malloc/hooks.c: New file.
10576         * malloc/tst-mallocstate.c: New file.
10577         * malloc/Makefile: Add new testcase tst-mallocstate.
10578         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
10580 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10582         * stdlib/msort.c: Remove last patch.  The optimization violates the
10583         same rule which qsort.c had problems with.
10585 2002-01-27  Paul Eggert  <eggert@twinsun.com>
10587         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
10588         to a pivot element that lies outside the array to be sorted, as
10589         ISO C99 requires that the comparison function be called only with
10590         addresses of array elements [PR libc/2880].
10592 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10594         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
10595         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
10597         * timezone/asia: Update from tzdata2002b.
10598         * timezone/australasia: Likewise.
10599         * timezone/backward: Likewise.
10600         * timezone/europe: Likewise.
10601         * timezone/leapseconds: Likewise.
10602         * timezone/iso3166.tab: Likewise.
10603         * timezone/zone.tab: Likewise.
10605 2002-01-23  Richard Henderson  <rth@redhat.com>
10607         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10609 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10611         * string/strxfrm.c: Allocate one more byte for rulearr and clear
10612         this element [PR libc/2855].
10614         * string/strcoll.c: Handle zero-length arguments specially
10615         [PR libc/2856].
10617 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
10619         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10620         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10621         short lengths and constant src.
10622         (strcpy): Don't optimize for gcc 3.0+.
10623         (__stpcpy): For gcc 3.0+, don't use
10624         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10625         for short string literal src.
10627 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10629         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10630         Set for arm, too.
10632 2001-01-22  Paul Eggert  <eggert@twinsun.com>
10634         * manual/llio.texi (Linked Channels, Cleaning Streams):
10635         Make it clearer that a just-opened input stream might need cleaning.
10637 2002-01-21  H.J. Lu  <hjl@gnu.org>
10639         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10640         Don't use label at end of compound statement.
10642 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
10644         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10645         Remove test for negative integer arg; sin_pi does it correctly.
10647 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
10649         * nscd/Makefile (distribute): Filter out xmalloc.c.
10651 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
10653         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10654         Set offset if read end wasn't the buffer end.
10655         (_IO_file_seekoff_mmap): New function.
10656         (_IO_file_xsgetn_mmap): New function.
10657         (_IO_file_jumps_mmap): Use the two new functions.
10658         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10659         != end buffer.
10660         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10661         _IO_file_underflow_mmap.
10662         * libio/iofopen.c: Don't position file descriptor at end of file.
10663         * libio/tst-widetext.c: Improve error messages.
10664         * stdio-common/tst-rndseek.c: Likewise.
10666 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
10668         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10669         end of enum for !_GNU_SOURCE.
10670         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10671         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10672         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10673         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10674         values unless _GNU_SOURCE.
10676         * iconvdata/tcvn5712-1.c: Minor cleanups.
10678 2002-01-18  Andreas Schwab  <schwab@suse.de>
10680         * sysdeps/unix/sysv/linux/configure.in
10681         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10683 2002-01-16  Roger Sayle  <roger@eyesopen.com>
10685         * stdlib/msort.c (msort_with_tmp): Replace implementation with
10686         more efficient "Towers of Hanoi" mergesort.
10687         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10688         for generic, sizeof(int) and sizeof(long) variants respectively.
10690 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
10692         * manual/syslog.texi (openlog): Describe possible problems with
10693         first parameter.
10694         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10696         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
10697         * nscd/connections.c (begin_drop_privileges): New function.
10698         (finish_drop_privileges): New function.
10699         (nscd_init): Call the new functions which also install all groups
10700         for the server user.
10701         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10702         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10704 2002-01-17  H.J. Lu  <hjl@gnu.org>
10706         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10707         `const' from `got'.
10709 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10711         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10712         instructions for pointer operations.
10713         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10715 2002-01-17  Andreas Jaeger  <aj@suse.de>
10717         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10718         __uint128_t build-in.
10720         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10721         PowerPC, sync with 2.2 branch.
10723 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10725         * posix/getconf.c: Update copyright year.
10726         * nss/getent.c: Likewise.
10727         * nscd/nscd_nischeck.c: Likewise.
10728         * iconv/iconvconfig.c: Likewise.
10729         * iconv/iconv_prog.c: Likewise.
10730         * elf/ldconfig.c: Likewise.
10731         * catgets/gencat.c: Likewise.
10732         * csu/version.c: Likewise.
10733         * elf/ldd.bash.in: Likewise.
10734         * elf/sprof.c (print_version): Likewise.
10735         * locale/programs/locale.c: Likewise.
10736         * locale/programs/localedef.c: Likewise.
10737         * nscd/nscd.c (print_version): Likewise.
10738         * debug/xtrace.sh: Likewise.
10739         * malloc/memusage.sh: Likewise.
10740         * malloc/mtrace.pl: Likewise.
10742 2002-01-16  Andreas Schwab  <schwab@suse.de>
10744         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10745         reliably remove "-ia64" from rtld name.
10747 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10749         * iconvdata/gb18030.c: Bug fixes and support for more characters.
10750         Patch by Yu Shao <yshao@redhat.com>.
10752 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10754         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10755         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10756         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10758 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10760         * sysdeps/s390/fpu/libm-test-ulps: Update.
10762 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
10764         * elf/elf.h: Update x86 relocations.
10766 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10768         * locale/programs/charmap.c (new_width): Check whether byte
10769         sequences for both ends of range have the same length.
10771 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10773         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10775 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10777         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10778         string literals.
10779         (__full_ieee754_sqrt): Add __attribute_used__.
10781 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10783         * sysdeps/generic/group_member.c (__group_member): Also check
10784         groups[0] [PR libc/2781].
10786 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
10788         * Makefile (distribute): Add scripts/cpp.
10789         * elf/Makefile (distribute): Add reldep6mod[01234].c,
10790         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10791         unwind-dw2-fde.h, and dwarf2.h.
10792         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10793         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10794         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10795         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10797 2002-01-07  Roland McGrath  <roland@frob.com>
10799         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10800         volatile on type of ARGC so the compiler doesn't get clever.
10802 2002-01-07  Andreas Jaeger  <aj@suse.de>
10804         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10805         * sysdeps/i386/bits/byteswap.h: Likewise.
10806         * sysdeps/ia64/bits/byteswap.h: Likewise.
10807         * sysdeps/m68k/bits/byteswap.h: Likewise.
10808         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10809         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10811 2002-01-02  Bruno Haible  <bruno@clisp.org>
10813         * intl/plural.y: Fix %expect count.
10815 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10817         * elf/Makefile (routines, shared-only-routines): Add
10818         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10819         * elf/elf.h (PT_GNU_EH_FRAME): Define.
10820         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10821         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10822         Optimize if .eh_frame section contains no FDEs.
10823         (__register_frame, __deregister_frame_info_bases,
10824         __deregister_frame): Likewise.
10825         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10826         DW_CFA_restore handling.
10828 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
10830         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10832         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10833         for x < 0.25 and restore original range reduction method.
10834         (__ieee754_lgammal_r): Make sure signgam is set before returning.
10836 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
10838         * libio/fileops.c (_IO_file_underflow_mmap): New function.
10839         (_IO_file_close_mmap): New function.
10840         (_IO_file_jumps_mmap): New variable.
10841         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10842         trying to convert rest of byte buffer.
10843         (_IO_wfile_underflow_mmap): New function.
10844         (_IO_wfile_jumps_mmap): New variable.
10845         * libio/iofopen.c (__fopen_maybe_mmap): New function.
10846         (__fopen_internal): New function.  Split out from _IO_new_fopen.
10847         (_IO_new_fopen): Call __fopen_internal.
10848         * libio/iofopen64.c: Just call __fopen_internal.
10849         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10850         successfully.
10851         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10852         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10853         _IO_file_close_mmap.
10855         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10856         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10858         * stdio-common/Makefile (tests): Add tst-rndseek.
10859         * stdio-common/tst-rndseek.c: New file.
10861 2002-01-05  Roland McGrath  <roland@frob.com>
10863         * config.h.in (HAVE_MIG_RETCODE): New #undef.
10864         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10865         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10866         * sysdeps/mach/hurd/configure: Regenerated.
10868 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
10870         * elf/elf.h: Add more TLS definitions.
10872 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
10874         * include/features.h (__GLIBC_MINOR__): Bump to 3.
10876 2002-01-02  Roland McGrath  <roland@frob.com>
10878         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10879         __sigisemptyset.  Don't use MASK uninitialized.
10881         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10882         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10883         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10884         __sigdelset, __sigaddset, __sigorset.
10886         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10887         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10889         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10890         _hurd_ports is null.
10892         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10893         for old CMU and new OSF Mach interface flavors.
10894         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10895         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10897         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10899         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10900         Pass extra arguments to task_create for OSF variant.
10901         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10903         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10904         conditional on [HAVE_AUX_VECTOR].
10906         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10907         mach_msg_timeout_t as type of final argument.
10909         * hurd/privports.c (__get_privileged_ports):
10910         Change host_priv_t to mach_port_t in argument type.
10911         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10912         Update decls.
10914         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10915         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
10916         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10917         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10918         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10919         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10921 2002-01-01  Roland McGrath  <roland@frob.com>
10923         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10925 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
10927         * include/stdlib.h: Define inlines for the _l variants of the strto*
10928         functions.
10930 2002-01-01  Roland McGrath  <roland@frob.com>
10932         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10934         * mach/Machrules (MIG): Set CPP as well as CC.
10936 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
10938         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10939         locale to parse /proc/loadavg [PR libc/2760].
10941 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
10943         * elf/dl-conflict.c: Include sys/param.h.
10944         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10945         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10946         warning.
10947         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10948         literals to avoid warnings.
10950 2001-12-31  Andreas Jaeger  <aj@suse.de>
10952         * configure.in: Don't check for gsed since we do not use it anywhere.
10954 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10956         * io/fts.c: Update from BSD to fix memory leaks.
10958 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10960         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10961         * elf/chroot_canon.c: Likewise.
10962         * elf/dl-object.c: Likewise.
10963         * iconv/iconv_charmap.c: Likewise.
10964         * iconv/iconv_prog.c: Likewise.
10965         * libio/iogetdelim.c: Likewise.
10966         * locale/lc-time.c: Likewise.
10967         * stdlib/canonicalize.c: Likewise.
10968         * sunrpc/svc.c: Likewise.
10969         * sysdeps/generic/glob.c: Likewise.
10971 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10973         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10974         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10975         remove high order bit from the program counter.
10976         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10978 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10980         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10981         unnecessary code and add missing reloc types.
10982         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10983         case for reloc type R_390_NONE.
10985 2001-12-28  Andreas Jaeger  <aj@suse.de>
10987         * io/bug-ftw3.c: Include string.h for prototypes.
10989         * crypt/md5test.c (main): Remove unused variable.
10991         * dlfcn/modstatic.c: Add prototype to avoid warning.
10993 2001-12-26  Roland McGrath  <roland@frob.com>
10995         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10996         check only (SS->pending & MASK) for the signal to return.
10997         From Jeroen Dekkers <jeroen@dekkers.cx>.
10999 2001-12-22  Roland McGrath  <roland@frob.com>
11001         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
11002         Use preprocessor #if conditionals instead of `if' to avoid
11003         warnings about divide by zero in dead code.
11005         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
11006         _hurd_port_init, and __hurd_self_sigstate.
11008         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
11010 2001-12-21  Andreas Jaeger  <aj@suse.de>
11012         * elf/dblloadmod1.c: Add prototype to avoid warning.
11013         * elf/dblloadmod2.c: Likewise.
11014         * elf/dblloadmod3.c: Likewise.
11015         * elf/reldepmod5.c: Likewise.
11016         * elf/reldepmod6.c: Likewise.
11018         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
11019         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
11020         used on all architectures.
11022         * sunrpc/svc_tcp.c: Add noreturn attribute for
11023         svctcp_rendezvous_abort.
11024         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
11026         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
11027         to avoid warning.
11029 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
11031         * manual/llio.texi (aio_fsync): Fix a typo.
11032         Patch by Tammy Fox <tfox@redhat.com>.
11034 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
11036         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
11037         stack bias from child stack pointer before passing it to clone syscall.
11039 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
11041         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
11042         _SC_TZNAME_MAX.
11043         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
11044         Reported by Thorsten Kukuk <kukuk@suse.de>.
11046         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
11047         add some casts.
11049         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
11051 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
11053         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
11054         conforming: return EBADF if file descriptor is invalid and EINVAL
11055         if file descriptor is no valid tty.
11056         * login/tst-grantpt.c: New file.
11057         * login/Makefile (tests): Add tst-grantpt.
11059 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
11061         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
11062         different than implemented in last patch.
11063         * io/bug-ftw3.c: Adjust test for changed handling of
11064         inaccessibility of toplevel dir.
11066 2001-12-16  Roland McGrath  <roland@frob.com>
11068         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
11069         * grp/initgroups.c (internal_getgrouplist): Likewise.
11071         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
11072         `default:' to silence new GCC warning.
11073         Rewrite cast of lvalue to silence new GCC warning.
11075         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
11077         * sysdeps/mach/hurd/spawni.c: New file, by me with a
11078         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
11080 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
11082         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
11083         Patch by Stephen R. van den Berg.
11085         * crypt/md5.h: Define md5_uintptr.
11087 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
11089         * libio/tst_swprintf.c (main): Add test for string argument with
11090         zero precision.
11091         * stdio-common/Makefile (tests): Add tst-sprintf.
11092         * stdio-common/tst-sprintf.c: New file.
11094 2001-12-13  Andreas Schwab  <schwab@suse.de>
11096         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
11097         zero precision with wide character string format.
11099 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
11101         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
11102         but have a user supplied buffer, return the empty buffer, not NULL.
11104 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
11106         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
11107         Patch by Eric Sharkey <sharkey@netrics.com>.
11109         * crypt/md5test.c (main): Add test for multiple calls to
11110         __md5_process_bytes to itererate over input string.
11112 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
11114         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
11115         from __nis_findfastest.  Take timeout value from parameter.
11116         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
11117         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
11118         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
11120 2001-12-12  Andreas Jaeger  <aj@suse.de>
11122         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
11123         combreloc test so that it works in this case.
11125         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
11127 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
11129         * sysdeps/sh/Makefile: New file.
11130         * sysdeps/sh/_mcount.S: New file.
11131         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
11132         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
11134 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
11136         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
11137         limitation [PR libc/2564].
11139 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
11141         * elf/Makefile (dl-routines): Add conflict.
11142         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
11143         (ld.so): Add _begin local symbol.
11144         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
11145         Define.
11146         * elf/dl-deps.c (_dl_build_local_scope): New function.
11147         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
11148         of all libraries.
11149         * elf/do-rel.h (VALIDX): Define.
11150         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
11151         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
11152         can be skipped.
11153         * elf/dl-conflict.c: New file.
11154         * elf/dl-lookup.c (_dl_debug_bindings): New function.
11155         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
11156         non-NULL.
11157         (_dl_lookup_symbol_skip): Likewise.
11158         (_dl_lookup_versioned_symbol): Likewise.
11159         (_dl_lookup_versioned_symbol_skip): Likewise.
11160         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
11161         define to ElfW(Rel).
11162         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
11163         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
11164         ranges.
11165         Don't adjust address dynamic tags if l_addr is 0.
11166         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
11167         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
11168         (VALIDX, ADDRIDX): Define.
11169         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
11170         (dl_main): Print library list for LD_TRACE_PRELINKING.
11171         If prelinking information can be used, skip relocating libraries and
11172         call _dl_resolve_conflicts instead.
11173         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
11174         * elf/dl-load.c (_dl_map_object): Don't create fake libs
11175         if LD_TRACE_PRELINKING.
11176         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
11177         + DT_ADDRNUM.
11178         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
11179         (DL_DEBUG_PRELINK): Define.
11180         (_dl_resolve_conflicts): Add prototype.
11182         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
11183         .plt for prelinked libraries where prelinking info cannot be used.
11184         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
11185         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
11186         * sysdeps/arm/bits/link.h: New file.
11187         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
11188         content of .got[1].
11189         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
11190         (ELF_MACHINE_PLT_REL): Define.
11191         (elf_machine_rela, elf_machine_rela_relative): New functions.
11192         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
11193         of adjusting it if prelinked and prelinking cannot be used.
11194         * sysdeps/i386/bits/link.h: New file.
11195         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
11196         content of .got[1].
11197         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
11198         (ELF_MACHINE_PLT_REL): Define.
11199         (elf_machine_rela, elf_machine_rela_relative): New functions.
11200         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
11201         of adjusting it if prelinked and prelinking cannot be used.
11202         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
11203         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
11204         to find out map for R_PPC_JMP_SLOT relocs.
11205         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
11206         (OPCODE_BA): Define.
11207         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
11208         libraries where prelinking info cannot be used.
11209         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
11210         (elf_machine_fixup_plt): Call sparc_fixup_plt.
11211         (elf_machine_rela): Set value to 0 if relocating conflicts.
11212         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
11213         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
11214         (sparc64_fixup_plt): Fix a typo.
11215         (elf_machine_rela): Set value to 0 if relocating conflicts.
11216         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
11217         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
11218         libraries where prelinking info cannot be used.
11219         * sysdeps/sh/bits/link.h: New file.
11220         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
11221         content of .got[1].
11222         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
11223         of adjusting it if prelinked and prelinking cannot be used.
11224         * sysdeps/s390/s390-32/bits/link.h: New file.
11225         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
11226         Save original content of .got[1].
11227         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
11228         of adjusting it if prelinked and prelinking cannot be used.
11229         * sysdeps/s390/s390-64/bits/link.h: New file.
11230         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
11231         Save original content of .got[1].
11232         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
11233         of adjusting it if prelinked and prelinking cannot be used.
11234         * sysdeps/x86_64/bits/link.h: New file.
11235         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
11236         Save original content of .got[1].
11237         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
11238         of adjusting it if prelinked and prelinking cannot be used.
11240 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
11242         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
11243         where appropriate instead of numbers.  Little optimizations.
11245 2001-12-10  Roland McGrath  <roland@frob.com>
11247         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
11248         set it.
11250         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
11251         set to GLIBC_2.2.5, not GLIBC_2.2.4.
11253         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
11254         Fix conditionals so this is set by default for stdio and not for libio.
11255         * sysdeps/mach/hurd/configure: Regenerated.
11257 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
11259         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
11261 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
11263         * io/Makefile (tests): Add bug-ftw3.
11264         * io/bug-ftw3.c: New file.
11266         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
11267         matches and GLOB_NOCHECK is set.
11268         * posix/globtest.sh: Correct expected result for NOCHECK test.
11270         * po/ca.po: Update from translation team.
11272 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
11274         Implement transliteration of characters in strings of the locale
11275         definitions.
11276         * locale/programs/linereader.c: Adjust for additional parameter to
11277         lr_token.
11278         (get_string): If character <Uxxxx> is not found try to transliterate
11279         it.
11280         * locale/programs/ld-ctype.c: Adjust for additional parameter to
11281         lr_token.  Add const to charmap parameter of all functions.
11282         (find_translit, find_translit2): New functions.
11283         * locale/programs/charmap.c: Adjust for additional parameter to
11284         lr_token.
11285         * locale/programs/repertoire.c: Likewise.
11286         * locale/programs/linereader.h: Likewise.
11287         * locale/programs/ld-address.c: Likewise.  Add const to charmap
11288         parameter of all functions.
11289         * locale/programs/ld-collate.c: Likewise.
11290         * locale/programs/ld-identification.c: Likewise.
11291         * locale/programs/ld-measurement.c: Likewise.
11292         * locale/programs/ld-messages.c: Likewise.
11293         * locale/programs/ld-monetary.c: Likewise.
11294         * locale/programs/ld-name.c: Likewise.
11295         * locale/programs/ld-numeric.c: Likewise.
11296         * locale/programs/ld-paper.c: Likewise.
11297         * locale/programs/ld-paper.c: Likewise.
11298         * locale/programs/ld-telephone.c: Likewise.
11299         * locale/programs/ld-time.c: Likewise.
11300         * locale/programs/locfile.c: Likewise.
11301         * locale/programs/localedef.c: Likewise.
11302         * locale/programs/localedef.h: Likewise.
11303         * locale/programs/locfile.h: Likewise.  Add declaration for
11304         find_translit.
11305         * locale/programs/simple-hash.c: Add const to first parameter of
11306         find_entry, iterate_table, and lookup.
11307         * locale/programs/simple-hash.h: Likewise.
11308         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
11309         instead.
11310         * include/locale.h: Define __LC_LAST.
11311         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
11313 2001-12-07  Geoff Keating  <geoffk@redhat.com>
11315         * sysdeps/powerpc/Dist: Update for recent FP changes.
11316         * sysdeps/powerpc/fpu/Dist: Likewise.
11318 2001-12-07  Andreas Schwab  <schwab@suse.de>
11320         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
11322 2001-12-06  Geoff Keating  <geoffk@redhat.com>
11324         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
11325         save/restore functions here.
11326         (libm-support): Don't define these functions here.
11327         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
11328         functions here.
11329         * sysdeps/powerpc/fe_nomask.c: Move to...
11330         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
11331         * sysdeps/powerpc/fprrest.S: Move to...
11332         * sysdeps/powerpc/fpu/fprrest.S: ... here.
11333         * sysdeps/powerpc/fprsave.S: Move to...
11334         * sysdeps/powerpc/fpu/fprsave.S: ... here.
11336 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
11338         * sysdeps/unix/sysv/linux/opensock.c: New file.
11340 2001-12-06  Geoff Keating  <geoffk@redhat.com>
11342         * config.make.in (with-fp): Define from configure.
11343         * configure.in: Substitute with_fp.
11344         * configure: Regenerate.
11345         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
11346         specified, and don't change FPU environment.
11348 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
11350         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
11351         * assert/assert.c: Check result of __asprintf call and don't use
11352         string if it failed.
11353         * assert/assert-perr.c: Likewise.
11354         * inet/rcmd.c: Likewise.
11355         * locale/programs/localedef.c (main): Check result of
11356         construct_output_path and exit if it failed.
11357         (construct_output_path): Check result of asprintf and mkdir calls and
11358         fail if they failed.
11359         * posix/getopt.c: Check result of __asprintf calls and fail if
11360         they failed.
11361         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
11363 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11365         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
11366         patch.
11367         * sysdeps/generic/strncase.c: Likewise.
11368         * string/tester.c: Add tests for strcasecmp and strncasecmp.
11370 2001-12-05  Geoff Keating  <geoffk@redhat.com>
11372         * scripts/cpp: Test the exit status from 'type', not 'awk'.
11374         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
11375         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
11376         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
11377         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
11378         * sysdeps/powerpc/fclrexcpt.c: Move to...
11379         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
11380         * sysdeps/powerpc/fpu_control.h: Move to...
11381         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
11383 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11385         * iconvdata/ibm1129.h: Remove duplicate mappings.
11386         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
11387         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
11388         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11390         * timezone/zic.c: Fix handling of turnaround times.
11391         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
11393 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
11395         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
11396         overflow problem.
11398 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11400         * posix/regex.c: For use outside glibc defined bounded pointer
11401         macros here.  Patch by Jim Meyering <jim@meyering.net>.
11403         * iconvdata/Makefile (modules): Add TCVN5712-1.
11404         * iconvdata/TESTS: Add TCVN5712-1.
11405         * iconvdata/gconv-modules: Likewise.
11406         * iconvdata/tcvn5712-1.c: New file.
11407         * iconvdata/testdata/TCVN-5712: New file.
11408         * iconvdata/testdata/TCVN-5712..UTF8: New file.
11410 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
11412         * iconvdata/cp1258.c: Optimize conversion from UCS4.
11414 2001-12-02  Roland McGrath  <roland@frob.com>
11416         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
11418         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
11419         Reported by Jeff Bailey <jbailey@nisa.net>.
11421         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
11422         Reported by Jeff Bailey <jbailey@nisa.net>.
11424         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
11425         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
11426         Reported by Jeff Bailey <jbailey@nisa.net>.
11428 2001-12-01  Roland McGrath  <roland@frob.com>
11430         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
11431         missing backslash in test arguments.
11432         * sysdeps/mach/hurd/configure: Regenerated.
11434 2001-11-26  Roland McGrath  <roland@frob.com>
11436         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
11437         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
11439 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
11441         * iconvdata/Makefile (modules): Add ARMSCII-8.
11442         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
11443         * iconvdata/armscii-8.c: New file.
11445 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
11447         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
11448         don't match, fix {{a,b},c} globbing, clean up.
11449         Patch by Flavio Veloso <flaviovs@magnux.com>.
11450         * posix/globtest.sh: Add new tests.
11452 2001-11-29  Andreas Jaeger  <aj@suse.de>
11454         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
11455         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
11457         * sysdeps/generic/abort.c: Include libioP.h for
11458         _IO_flush_all_lockp prototype.
11460 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
11462         * posix/regex.h: Define __restrict_arr correctly.
11464 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11466         * iconvdata/ibm1163.c: New file.
11467         * iconvdata/ibm1163.h: New file.
11468         * iconvdata/ibm1164.c: New file.
11469         * iconvdata/ibm1164.h: New file.
11470         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
11471         * iconvdata/Makefile: Likewise.
11472         * iconvdata/testdata/IBM1163: New file.
11473         * iconvdata/testdata/IBM1163..UTF8: New file.
11474         * iconvdata/testdata/IBM1164: New file.
11475         * iconvdata/testdata/IBM1164..UTF8: New file.
11476         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11478         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
11479         * iconvdata/ibm1124.h: Likewise.
11480         * iconvdata/ibm1132.h: Likewise.
11481         * iconvdata/ibm1133.h: Likewise.
11482         * iconvdata/ibm1160.h: Likewise.
11483         * iconvdata/ibm1161.h: Likewise.
11484         * iconvdata/ibm1162.h: Likewise.
11485         * iconvdata/ibm856.h: Likewise.
11486         * iconvdata/ibm922.h: Likewise.
11487         * iconvdata/ibm930.h: Likewise.
11488         * iconvdata/ibm932.h: Likewise.
11489         * iconvdata/ibm933.h: Likewise.
11490         * iconvdata/ibm935.h: Likewise.
11491         * iconvdata/ibm937.h: Likewise.
11492         * iconvdata/ibm939.h: Likewise.
11493         * iconvdata/ibm943.h: Likewise.
11494         * iconvdata/ibm930.c: Pretty printing.
11495         * iconvdata/ibm937.c: Avoid access accross array boundary.
11497         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
11498         the current locale's codeset.
11499         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
11500         empty input string.
11501         * iconv/iconv_prog.c: Pass empty strings as default value for to-
11502         and from-charset.  Don't determine locale's charset here.
11504         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
11505         as the old _IO_flush_all but lock only if parameter is nonzero.
11506         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
11507         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
11508         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
11509         if libio is used [PR libc/2575].
11511 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
11513         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
11514         __signbitl): Only define for ISO C99.
11516 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11518         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
11519         herrnop to NETDB_INTERNAL if we run out of buffer space.
11521 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11523         * nss/nss_files/files-XXX.c (internal_getent): Correct input
11524         overflow test for platforms with signed char.
11525         Reported by Andrew Haley <aph@cambridge.redhat.com>.
11527 2001-11-28  Bruno Haible  <bruno@clisp.org>
11529         * locale/programs/simple-hash.c (lookup_2): Remove function.
11530         (insert_entry_2): Call lookup instead of lookup_2.
11532 2001-03-04  Bruno Haible  <bruno@clisp.org>
11534         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
11536 2001-10-31  Bruno Haible  <bruno@clisp.org>
11538         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
11540 2001-03-21  Bruno Haible  <bruno@clisp.org>
11542         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
11543         chokes on empty macro arguments.
11544         * intl/plural.y: Add #pragma for alloca on AIX 3.
11546 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11548         * intl/dcigettext.c (guess_category_value): Only implement for
11549         glibc.  Otherwise rely on function _nl_locale_name which isn't
11550         present in the glibc sources.
11552 2001-09-24  Bruno Haible  <bruno@clisp.org>
11554         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
11555         transliteration when building on a glibc system but outside glibc.
11557 2001-09-22  Bruno Haible  <bruno@clisp.org>
11559         * intl/plural-eval.c: New file, extracted from dcigettext.c.
11560         * intl/dcigettext.c (plural_eval): Remove function, moved to
11561         intl/plural-eval.c.
11562         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
11563         Include plural-eval.c.
11565 2001-09-22  Bruno Haible  <bruno@clisp.org>
11567         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
11568         don't start with a digit; nplurals must be positive.
11570 2001-09-02  Bruno Haible  <bruno@clisp.org>
11572         * intl/plural-exp.h: New file, extracted from gettextP.h.
11573         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
11574         * intl/gettextP.h (struct expression, struct parse_args,
11575         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
11576         * intl/loadmsgcat.c: Include plural-exp.h.
11577         (PLURAL_PARSE): Move macro to plural-exp.h.
11578         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
11579         plural-exp.c.
11580         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
11581         EXTRACT_PLURAL_EXPRESSION.
11582         (_nl_unload_domain): Update.
11583         * intl/dcigettext.c: Include plural-exp.h.
11584         * intl/plural.y: Include plural-exp.h, not gettextP.h.
11585         (FREE_EXPRESSION): Move macro to plural-exp.h.
11586         * intl/Makefile (routines): Add plural-exp.
11587         (distribute): Add plural-exp.h.
11589 2001-07-28  Bruno Haible  <bruno@clisp.org>
11591         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
11592         isdigit, tolower argument to 'unsigned char'.
11593         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
11594         'unsigned char'.
11595         * intl/localealias.c (read_alias_file): Cast isspace argument to
11596         'unsigned char'.
11598 2001-10-20  Bruno Haible  <bruno@clisp.org>
11600         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
11601         anyway.)
11602         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
11603         with the variable 'index' in plural_lookup.
11604         * intl/l10nflist.c (strchr): Likewise.
11605         * intl/localealias.c (strchr): Likewise.
11607         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11608         * intl/bindtextdom.c: Likewise.
11609         * intl/dcigettext.c: Likewise.
11610         * intl/dgettext.c: Likewise.
11611         * intl/dngettext.c: Likewise.
11612         * intl/explodename.c: Likewise.
11613         * intl/finddomain.c: Likewise.
11614         * intl/gettext.c: Likewise.
11615         * intl/l10nflist.c: Likewise.
11616         * intl/loadmsgcat.c: Likewise.
11617         * intl/localealias.c: Likewise.
11618         * intl/ngettext.c: Likewise.
11619         * intl/textdomain.c: Likewise.
11620         * intl/gettext.h: Assume <limits.h> exists.
11622 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11624         * stdio-common/Makefile (tests): Add scanf11.
11625         * stdio-common/scanf11.c: New file.
11627 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11629         * version.h (RELEASE): Define as development.
11630         (VERSION): Set to 2.2.90.
11632 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11634         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11635         * nis/nss_nis/nis-grp.c: Likewise.
11636         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11638         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11639         * nis/nss_nis/nis-pwd.c: Likewise.
11640         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11642         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11643         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11644         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11646         * nscd/grpcache.c: Use strtoul instead of atol.
11647         * nscd/pwdcache.c: Likewise.
11648         * nss/getent.c: Likewise.
11650 2001-11-27  Paul Eggert  <eggert@twinsun.com>
11652         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11653         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11655 2001-11-19  Bruno Haible  <bruno@clisp.org>
11657         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11658         90%.
11659         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11660         improves the quality of the hash function, especially for short
11661         strings.
11663 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11665         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11666         are found call conv_error and not input_error [PR libc/2669].
11668         * math/bits/mathcalls.h: Mark ceil and floor as const.
11669         Reported by David Mosberger.
11671 2001-11-21  Jim Meyering  <meyering@lucent.com>
11673         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11674         Define to be __-prefixed.
11675         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11677 2001-11-26  Andreas Jaeger  <aj@suse.de>
11679         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11680         avoid warning.
11682 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
11684         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11685         initialization.
11687         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11688         unused variables.  Fix threshold for returning 1.0.
11690         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11691         argument.
11693         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11694         remove unused variables.
11696         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11698         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11699         include local math header files.
11701 2001-11-22  Andreas Jaeger  <aj@suse.de>
11703         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11704         avoid warning.
11706 2001-11-21  Andreas Jaeger  <aj@suse.de>
11708         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11710         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11711         sys/debugreg.h
11713 2001-11-15  Andreas Jaeger  <aj@suse.de>
11715         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11716         compilers that support it.
11718         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11719         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11720         * stdlib/stdlib.h: Likewise.
11722 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
11724         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11725         statement with gotos.
11726         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11728 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
11730         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11732 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
11734         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11736 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
11737             H.J. Lu  <hjl@gnu.org>
11739         * Versions.def (libc): Add GCC_3.0.
11740         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11741         if gcc supports this flag.
11742         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11743         (gcc3): Allow glibc to be compiled with gcc 3.x.
11744         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11745         * config.make.in (static-libgcc, unwind-find-fde): Add.
11746         * Makerules (build-shlib-helper, build-module-helper): Use it.
11747         * scripts/versions.awk: Make sure GLIBC_ versions come first.
11748         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11749         necessary.
11750         (_fini): Call __deregister_frame_info_bases if
11751         __register_frame_info_bases was used to register.
11752         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11753         for GLIBC_2.0.
11754         (__register_frame_info_bases, __register_frame_info_table_bases,
11755         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11756         * elf/Makefile (routines): Add unwind-dw2-fde.
11757         (shared-only-routines): Add unwind-dw2-fde.
11758         * sysdeps/alpha/gccframe.h: New file.
11759         * sysdeps/arm/gccframe.h: New file.
11760         * sysdeps/generic/framestate.c: New file.
11761         * sysdeps/generic/dwarf2.h: New file.
11762         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11763         * sysdeps/generic/unwind-dw2-fde.c: New file.
11764         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11765         * sysdeps/generic/unwind-dw2-fde.h: New file.
11766         * sysdeps/generic/unwind-dw2.c: New file.
11767         * sysdeps/generic/unwind-pe.h: New file.
11768         * sysdeps/generic/unwind.h: New file.
11769         * sysdeps/hppa/gccframe.h: New file.
11770         * sysdeps/i386/gccframe.h: New file.
11771         * sysdeps/m68k/gccframe.h: New file.
11772         * sysdeps/mips/gccframe.h: New file.
11773         * sysdeps/powerpc/gccframe.h: New file.
11774         * sysdeps/s390/gccframe.h: New file.
11775         * sysdeps/sh/gccframe.h: New file.
11776         * sysdeps/sparc/gccframe.h: New file.
11777         * sysdeps/vax/gccframe.h: New file.
11778         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11779         Set on all architectures except ia64.
11780         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11781         for i386.
11782         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11783         __deregister_frame_info): Move to elf/Versions.
11784         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11785         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11786         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11787         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11788         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11789         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11790         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11791         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11792         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11793         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11794         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11795         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11796         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11797         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11798         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11799         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11800         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11801         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11803 2001-11-15  Jeff Law  <law@redhat.com>
11805         * posix/regex.c (uintptr_t): Do not provide a definition if the
11806         system provided one.
11808 2001-11-13  Roland McGrath  <roland@frob.com>
11810         * stdio-common/tmpfile.c: Moved to ...
11811         * sysdeps/generic/tmpfile.c: ... here.
11812         * sysdeps/mach/hurd/tmpfile.c: New file.
11814         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11815         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11816         (fopenport): Define as weak alias.
11818         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11819         * libio/libioP.h: ... to here.
11821 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
11823         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11824         program header twice.  Construct list with the needed information.
11826 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
11828         * po/ca.po: Update from translation team.
11830         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11831         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
11832         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11833         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11835 2001-11-10  Andreas Jaeger  <aj@suse.de>
11837         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11838         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11839         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11841 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11843         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11844         correctly.
11845         * elf/dl-load.c (is_dst): New function.
11846         (_dl_dst_count): Use is_dst to check for DST variable.
11847         (_dl_dst_substitute): Likewise.
11849 2001-11-09  Roland McGrath  <roland@frob.com>
11851         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11852         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11853         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11854         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11855         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11856         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11857         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11858         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11859         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11860         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11861         * sysdeps/mach/hurd/powerpc/Dist: New file.
11863         * hurd/privports.c (__get_privileged_ports):
11864         Only contact the proc server if necessary for this call.
11865         Suggested by Neal H Walfield <neal@cs.uml.edu>.
11866         Check error return for mach_port_mod_refs.
11868 2001-11-09  Andreas Schwab  <schwab@suse.de>
11870         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11872 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11874         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
11875         object is always the last in the list.
11876         (_dl_map_object_from_fd): Delete code to remove from object list
11877         when DF_1_NOOPEN is seen.  This is done in lose.
11879 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
11881         * elf/dl-object.c (_dl_new_object): Various small optimizations.
11883 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
11885         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11886         HWCAP_CHECK macro code.
11888         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11889         Now returns MAP_FAILED on error.
11890         * elf/rtld.c: Adjust caller.
11891         * sysdeps/generic/dl-cache.c: Likewise.
11892         * sysdeps/generic/ldsodefs.h: Adjust description.
11894         * elf/dl-version.c (match_symbol): Optimize error handling for size.
11895         (_dl_check_map_versions): Likewise.
11897 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11899         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11900         _dl_signal_error directly, always use lose.  Set fd to -1 after
11901         file is closed.
11902         (lose): Don't call close if fd == -1.
11904 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
11906         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
11907          Also fix typo @code {mbsinit} to @code{mbsinit}.
11909 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11911         * elf/dl-profile.c: Replace state variable with simple flag named
11912         running.  Remove commented-out code.
11914         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11915         (_dl_init_paths): Likewise.
11916         (_dl_map_object_from_fd): Likewise.
11917         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11919 2001-11-06  Roland McGrath  <roland@frob.com>
11921         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11922         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11924         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11925         sysdeps/powerpc/elf/sysdep.h.
11926         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11928 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11930         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
11931         speed.
11932         (process_envvars): Some more optimizations.
11933         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11935         * elf/elf.h: Add dynamic tag definitions for prelinking.
11937         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11938         Rewrite code to remove environment varables for SUID binaries.
11939         Small optimization in LD_PROFILE handling.
11940         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11941         changes.
11942         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11944         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11946         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11947         strings.  Change type of second parameter.
11948         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11949         for last change.
11951         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11953 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11955         * manual/string.texi: Fix typos.
11956         * manual/examples/argp-ex2.c: Likewise.
11958 2001-11-05  Roland McGrath  <roland@frob.com>
11960         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11961         the more-specific unix/sysv/linux/powerpc file and breaks everything.
11962         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11963         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11964         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11965         here, put under [__ELF__].
11967 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11969         * manual/charset.texi: Extensive editing work.
11970         * manual/nss.texi: Likewise.
11971         Changes by Dennis Grace <dgrace@us.ibm.com>.
11973 2001-11-04  Roland McGrath  <roland@frob.com>
11975         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11976         parameter to dir_mkfile.
11978 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
11980         * string/bits/string2.h (__strndup): If n is smaller than len, set
11981         len to n + 1.
11982         * string/tester.c (test_strndup): New function.
11983         (main): Call it.
11985 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
11987         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11989         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11990         * scripts/cpp: New file.
11992         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11993         for rtld_search_dirs content.  Minor optimizations.
11995 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11997         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11998         avoiding unnecessary duplication.
12000 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
12002         * elf/dl-load.c (_dl_map_object): If library was found using
12003         LD_LIBRARY_PATH, don't try RUNPATH list.
12005 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12007         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
12008         Correct second argument of register_dump call.
12009         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
12010         Likewise.
12012 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
12014         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
12015         modules.
12016         * iconvdata/TESTS: Likewise.
12017         * iconvdata/gconv-modules: Likewise.
12018         * iconvdata/ibm1132.c: New file.
12019         * iconvdata/ibm1132.h: New file.
12020         * iconvdata/ibm1133.c: New file.
12021         * iconvdata/ibm1133.h: New file.
12022         * iconvdata/ibm1162.c: New file.
12023         * iconvdata/ibm1162.h: New file.
12024         * iconvdata/testdata/IBM1132: New file.
12025         * iconvdata/testdata/IBM1132..UTF8: New file.
12026         * iconvdata/testdata/IBM1133: New file.
12027         * iconvdata/testdata/IBM1133..UTF8: New file.
12028         * iconvdata/testdata/IBM1162: New file.
12029         * iconvdata/testdata/IBM1162..UTF8: New file.
12030         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
12032         * string/string.h: Fix typo in comment.
12033         * wcsmbs/wchar.h: Likewise.
12035 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
12037         * manual/getopt.texi (getopt_long, getopt_long_only): Include
12038         const in type of longopts parameter.
12040 2001-10-29  Andreas Jaeger  <aj@suse.de>
12042         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
12044 2001-10-29  Kevin Ryde  <user42@zip.com.au>
12046         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
12047         output, clarify `#' behaviour on 0.
12048         (Floating-Point Conversions): Clarify that %g only uses %e when
12049         the exponent would be greater than 1.
12051 2001-10-28  Roland McGrath  <roland@frob.com>
12053         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
12054         * sysdeps/mach/powerpc/machine-sp.h: New file.
12055         * sysdeps/mach/powerpc/sysdep.h: New file.
12056         * sysdeps/mach/powerpc/thread_state.h: New file.
12058         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
12059         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
12060         expect to need the same thing on every platform.
12062         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
12063         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
12065         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
12066         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
12067         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
12068         Move all these assembly-related definitions to ...
12069         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
12071         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
12072         by Peter Bruin <pjbruin@dds.nl>.
12074         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
12075         packing results for a `poll' call.
12077 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
12079         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
12080         correctly.
12081         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
12082         bracket expression.
12084         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12085         nrules value.
12086         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
12088 2001-10-24  H.J. Lu  <hjl@gnu.org>
12090         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
12091         Use __BEGIN_DECLS/__END_DECLS around prototypes.
12092         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
12094 2001-10-21  Jim Meyering  <meyering@lucent.com>
12096         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
12097         this code would end up calling gettext even in packages built
12098         with --disable-nls.
12099         * posix/getopt.c (_): Likewise.
12100         * posix/regex.c (_): Likewise.
12102 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
12104         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
12105         lookup not ip6.int.
12106         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
12107         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
12109 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
12111         * misc/sys/cdefs.h (__attribute_used__): Define.
12112         * elf/rtld.c (_dl_start): Add __attribute_used__.
12113         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
12115 2001-10-25  Andreas Schwab  <schwab@suse.de>
12117         * stdlib/a64l.c: Expect least significant digit first.
12118         * stdlib/l64a.c: Produce least significant digit first.
12119         * stdlib/Makefile (tests): Add test-a64l.
12120         * stdlib/test-a64l.c: New file.
12121         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
12123 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
12125         * po/sk.po: Update from translation team.
12127 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
12129         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
12131 2001-10-18  Andreas Schwab  <schwab@suse.de>
12133         * math/libm-test.inc (print_ulps): Print ulp values rounded to
12134         next whole number.
12135         (print_function_ulps): Likewise.
12136         (print_complex_function_ulps): Likewise.
12137         (print_max_error): Likewise.
12138         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
12140 2001-10-16  Andreas Schwab  <schwab@suse.de>
12142         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
12143         implementation.
12145         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
12146         BSD_SETJMP or BSD__SETJMP is defined, resp.
12147         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
12148         a tail call to __sigsetjmp that would require extending the
12149         caller's frame.
12150         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
12151         * sysdeps/m68k/bsd-setjmp.S: Deleted.
12152         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
12153         Reported by Jes Sorensen <jes@trained-monkey.org>.
12155 2001-10-16  Andreas Jaeger  <aj@suse.de>
12157         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
12158         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
12159         close PR libc/2589.
12161 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
12163         * po/ca.po: New file.  Contributed by the translation team.
12165 2001-10-15  Ralf Baechle  <ralf@gnu.org>
12167         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
12168         a varargs prototype.  Remove dependency from kernel header files.
12170         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
12171         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
12173 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
12175         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
12176         to generate hexadecimal identifier.
12177         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
12179 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
12181         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
12183 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
12185         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
12186         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
12187         Contributed by Stephen L Moshier <moshier@mediaone.net>.
12189         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
12190         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12191         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
12192         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
12193         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
12194         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
12196         * timezone/africa: Update from tzdata2001d.
12197         * timezone/asia: Likewise.
12198         * timezone/australasia: Likewise.
12199         * timezone/backward: Likewise.
12200         * timezone/europe: Likewise.
12201         * timezone/leapseconds: Likewise.
12202         * timezone/northamerica: Likewise.
12203         * timezone/southamerica: Likewise.
12204         * timezone/zone.tab: Likewise.
12206 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12208         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
12209         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
12211 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
12213         * elf/elf.h (PT_TLS): New definition.
12215 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
12217         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
12218         bits/errno.h
12220 2001-10-07  Roland McGrath  <roland@frob.com>
12222         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
12224 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
12226         * elf/elf.h: Add more ELFOSABI_* constants.
12228 2001-10-04  Ben Collins  <bcollins@debian.org>
12230         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
12231         decleration of __need_wchar_t.
12233 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
12235         * string/bits/string2.h (__strsep_g): Add prototype.
12236         (__strsep): Use it.
12237         * string/Versions (__strsep): Remove.
12238         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
12240 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
12242         * manua/llio.texi: Clarify file references added by mmap.
12243         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
12245 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
12247         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
12248         Add sc_loadrs and sc_rbs_bas to match current kernel.
12250 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
12252         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
12254         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
12256 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
12258         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
12259         object has been bumped because of relocation dependency, avoid
12260         duplicates in l_scope.
12261         (show_scope): Fix typos.
12262         * elf/Makefile: Add rules to build and run reldep6.
12263         * elf/reldep6.c: New file.
12264         * elf/reldep6mod0.c: New file.
12265         * elf/reldep6mod1.c: New file.
12266         * elf/reldep6mod2.c: New file.
12267         * elf/reldep6mod3.c: New file.
12268         * elf/reldep6mod4.c: New file.
12270 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
12272         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
12273         sparc64_fixup_plt.
12274         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
12275         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
12276         for non-lazy binding. Fix .plt[32768+] handling.
12277         (elf_machine_plt_value): Don't add addend.
12278         (elf_machine_rela): Call sparc64_fixup_plt instead of
12279         elf_machine_fixup_plt.
12280         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
12281         dynamic linker at 0xfffff800XXXXXXXX.
12283         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
12285 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
12287         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
12289 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
12291         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
12292         declare __cmsg_data field if its size would be bigger than 0.
12293         (CMSG_DATA): Adjust accordingly.
12294         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
12295         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
12296         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
12297         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
12298         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12299         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
12300         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12302 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
12304         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
12305         * iconvdata/testdata/IBM1160: New file.
12306         * iconvdata/testdata/IBM1160..UTF8: New file.
12307         * iconvdata/testdata/IBM1161: New file.
12308         * iconvdata/testdata/IBM1161..UTF8: New file.
12309         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
12311 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
12313         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
12314         UL_SETFSIZE computations better.
12316         * rt/Makefile: Remove use of filter for librt again.
12318         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
12319         UL_SETFSIZE computations better.
12321         * string/Versions: Export __strsep for GLIBC_2.2.5.
12322         * string/bits/string2.h: Define all __STRING_INLINE functions if
12323         _FORCE_INLINES is defined.
12324         Use int instead of char of parameter types.
12325         (__strsep): Don't use __strsep_g.  Don't define it.
12326         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
12327         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
12328         __strcpy_small.
12329         (__stpcpy_a_small): Renamed from __stpcpy_small.
12330         (__strcspn_c1): Don't define if _FORCE_INLINES.
12331         (__strspn_c1): Likewise.
12333 2001-09-22  Ben Collins  <bcollins@debian.org>
12335         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
12336         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
12337         * sysdeps/ia64/bits/sigaction.h: Likewise.
12338         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
12340 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
12342         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
12344 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
12346         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
12348 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
12350         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
12352 2001-09-20  H.J. Lu  <hjl@gnu.org>
12354         * include/dlfcn.h (__RTLD_SPROF): New definiton.
12355         * elf/dl-open.c (dl_open_worker): Return immediately after loading
12356         for __RTLD_SPROF.
12357         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
12358         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
12360 2001-09-20  H.J. Lu  <hjl@gnu.org>
12362         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
12363         don't add 1.
12365 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
12367         * nss/getent.c: Accept -s parameter to overwrite rules in
12368         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
12370         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
12371         with as many ".0" as necessary to form a complete address
12372         inet_network understands.
12374         * nss/getent.c: Various cleanups.  Use simpler and fewer function
12375         calls.
12377 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12379         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
12380         _JMPBUF_UNWINDS.
12381         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
12383 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
12385         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
12386         IBM1161.
12387         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
12388         * iconvdata/ibm1160.c: New file.
12389         * iconvdata/ibm1160.h: New file.
12390         * iconvdata/ibm1161.c: New file.
12391         * iconvdata/ibm1161.h: New file.
12392         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
12394 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
12396         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
12397         difference between base address and first PT_LOAD's virtual address,
12398         not the base address.
12400 2001-09-11  Tom Rix  <trix@redhat.com>
12402         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
12403         ifdef for __getopt_clean_environment.
12404         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
12406 2001-09-22  Andreas Jaeger  <aj@suse.de>
12408         * elf/reldep4.c (main): Add proper prototype to fix warning.
12410         * elf/reldep5.c (main): Remove unused variable.
12412         * math/math_private.h: Add prototypes.
12414 2001-09-21  Andreas Jaeger  <aj@suse.de>
12416         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
12417         * sysdeps/x86_64/Dist: New file.
12418         * sysdeps/x86_64/soft-fp/Dist: New file.
12420         * sysdeps/gnu/Dist: Remove eval.c.
12422 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
12424         * malloc/memusage.c (realloc): Don't count already allocated
12425         memory in the sums.
12426         (me): Always use dlsym() to find the real implementations.
12428         * malloc/memusage.sh: Make -n option actually do something.
12430 2001-09-20  Andreas Jaeger  <aj@suse.de>
12432         * elf/elf.h (R_390_NUM): Correct value.
12434         * Versions.def: Add missing versions 2.2.3 for libthread_db and
12435         libpthread.
12437         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
12438         for x86-64, install x86-64 into */lib64.
12440         * shlib-versions: Add x86-64.
12442         * elf/elf.h: Add x86-64 relocations.
12444 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
12446         * po/fr.po: Update from translation team.
12448 2001-09-19  Andreas Jaeger  <aj@suse.de>
12450         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
12451         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
12452         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
12453         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
12454         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
12455         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
12456         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
12457         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
12458         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
12459         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
12460         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
12461         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
12462         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
12463         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
12464         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
12465         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
12466         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
12467         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
12468         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
12469         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
12470         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
12471         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
12472         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
12473         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
12474         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
12475         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
12476         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
12477         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
12478         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
12479         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
12480         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
12481         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
12482         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
12483         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
12484         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
12485         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
12486         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
12487         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
12488         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
12489         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
12490         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
12491         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
12492         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
12493         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
12494         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
12495         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
12496         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
12497         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
12498         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
12499         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
12500         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
12501         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
12502         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
12503         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
12504         * sysdeps/unix/x86_64/sysdep.S: New file.
12505         * sysdeps/unix/x86_64/sysdep.h: New file.
12506         * sysdeps/x86_64/Implies: New file.
12507         * sysdeps/x86_64/Makefile: New file.
12508         * sysdeps/x86_64/Versions: New file.
12509         * sysdeps/x86_64/__longjmp.S: New file.
12510         * sysdeps/x86_64/abort-instr.h: New file.
12511         * sysdeps/x86_64/atomicity.h: New file.
12512         * sysdeps/x86_64/bits/endian.h: New file.
12513         * sysdeps/x86_64/bits/setjmp.h: New file.
12514         * sysdeps/x86_64/bits/string.h: New file.
12515         * sysdeps/x86_64/bp-asm.h: New file.
12516         * sysdeps/x86_64/bsd-_setjmp.S: New file.
12517         * sysdeps/x86_64/bsd-setjmp.S: New file.
12518         * sysdeps/x86_64/dl-machine.h: New file.
12519         * sysdeps/x86_64/elf/initfini.c: New file.
12520         * sysdeps/x86_64/elf/start.S: New file.
12521         * sysdeps/x86_64/ffs.c: New file.
12522         * sysdeps/x86_64/ffsll.c: New file.
12523         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
12524         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
12525         * sysdeps/x86_64/fpu/e_acosl.c: New file.
12526         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
12527         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
12528         * sysdeps/x86_64/fpu/e_expl.c: New file.
12529         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
12530         * sysdeps/x86_64/fpu/e_log10l.S: New file.
12531         * sysdeps/x86_64/fpu/e_log2l.S: New file.
12532         * sysdeps/x86_64/fpu/e_logl.S: New file.
12533         * sysdeps/x86_64/fpu/e_powl.S: New file.
12534         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
12535         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
12536         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
12537         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
12538         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
12539         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
12540         * sysdeps/x86_64/fpu/fegetenv.c: New file.
12541         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
12542         * sysdeps/x86_64/fpu/fegetround.c: New file.
12543         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
12544         * sysdeps/x86_64/fpu/fesetenv.c: New file.
12545         * sysdeps/x86_64/fpu/fesetround.c: New file.
12546         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
12547         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
12548         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
12549         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
12550         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
12551         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
12552         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
12553         * sysdeps/x86_64/fpu/s_atanl.c: New file.
12554         * sysdeps/x86_64/fpu/s_cosl.S: New file.
12555         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
12556         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
12557         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
12558         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
12559         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
12560         * sysdeps/x86_64/fpu/s_logbl.c: New file.
12561         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
12562         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
12563         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
12564         * sysdeps/x86_64/fpu/s_rintl.c: New file.
12565         * sysdeps/x86_64/fpu/s_significandl.c: New file.
12566         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
12567         * sysdeps/x86_64/fpu/s_sinl.S: New file.
12568         * sysdeps/x86_64/fpu/s_tanl.S: New file.
12569         * sysdeps/x86_64/gmp-mparam.h: New file.
12570         * sysdeps/x86_64/hp-timing.c: New file.
12571         * sysdeps/x86_64/hp-timing.h: New file.
12572         * sysdeps/x86_64/htonl.S: New file.
12573         * sysdeps/x86_64/memusage.h: New file.
12574         * sysdeps/x86_64/setjmp.S: New file.
12575         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
12576         * sysdeps/x86_64/stackinfo.h: New file.
12577         * sysdeps/x86_64/sysdep.h: New file.
12578         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
12580         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
12581         L Moshier.
12583 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12585         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
12586         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
12588 2001-09-18  Andreas Schwab  <schwab@suse.de>
12590         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
12591         list, now that l_scope is a pointer.
12593         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
12594         scope list.
12596 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12598         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
12599         (elf_machine_rela_relative): Add a missing declaration.
12601 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
12603         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
12604         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
12605         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
12606         ldd-rewrite scripts.
12608 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12610         * elf/ldd.bash.in: Update copyright message.
12612 2001-09-17  H.J. Lu  <hjl@gnu.org>
12614         * hurd/hurdmalloc.c (bcopy): Removed.
12615         (realloc): Replace bcopy with memcpy.
12616         * hurd/path-lookup.c (file_name_path_scan): Likewise.
12617         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12618         * sunrpc/rpcinfo.c (pmapdump): Likewise.
12620         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12621         (gethostbyaddr): Likewise.
12622         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12624 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12626         * sysdeps/gnu/eval.c: Removed.
12628 2001-09-18  Andreas Jaeger  <aj@suse.de>
12630         * sysdeps/i386/fpu/s_logbl.S: Move to ...
12631         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12633         * sysdeps/i386/fpu/s_rintl.S: Move to ...
12634         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12636         * sysdeps/i386/fpu/s_significandl.S: Move to ...
12637         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12639 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
12641         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12642         nrules value.
12644 2001-09-14  H.J. Lu  <hjl@gnu.org>
12646         * sysdeps/mips/fpu/libm-test-ulps: Updated.
12648 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
12650         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12651         Patch by Florian La Roche <laroche@redhat.com>.
12653         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12655         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12656         ETHER_CRC_LEN.
12658 2001-09-14  Andreas Schwab  <schwab@suse.de>
12660         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
12661         Sumner <bls@sgi.com>.
12662         * posix/execlp.c: Likewise.
12664 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
12666         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12667         is already found earlier in the search scope.
12669 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
12671         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12672         filter.
12674 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
12676         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12678 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
12680         * config.h.in: Enforce optimization to be used.
12681         * Makeconfig (preprocess-versions): Define ASSEMBLER.
12682         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12683         * posix/Makefile (annexc-CFLAGS): Define to -O.
12684         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12686 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
12688         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12689         Patch by Stephan Kulow.
12691 2001-09-08  Ben Collins  <bcollins@debian.org>
12693         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12694         usage of RESOLVE() (r_type, not reloc->r_type).
12696 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12698         * elf/dl-object.c: Avoid allocating extra memory block for name.
12699         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12700         allocated separately.
12701         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12703 2001-09-08  H.J. Lu  <hjl@gnu.org>
12705         * po/zh_TW.po: Fix a typo.
12707 2001-09-07  Tom Rix  <trix@redhat.com>
12709         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12711 2001-08-26  Tom Rix  <trix@redhat.com>
12713         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12714         command line options.
12715         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12716         * sysdeps/unix/sysv/aix/start.c: Removed.
12717         * sysdeps/unix/sysv/aix/start-libc.c: New file.
12718         * sysdeps/unix/sysv/aix/init-first.c: New file.
12719         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12721 2001-09-08  Ben Collins  <bcollins@debian.org>
12723         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12724         * sysdeps/generic/dl-machine.h: Likewise.
12725         * sysdeps/hppa/dl-fptr.c: Likewise.
12726         * sysdeps/ia64/dl-fptr.c: Likewise.
12727         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12728         * sysdeps/mips/dl-machine.h: Likewise.
12729         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12730         * sysdeps/powerpc/dl-machine.c: Likewise.
12732 2001-09-07  Ben Collins  <bcollins@debian.org>
12734         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12736         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12738 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12740         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12741         dependencies if necessary.
12743         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12744         loaded directly) determine length if l_initfini list by iterating
12745         over its elements.  Minor optimizations.
12746         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12747         for dependency objects.
12748         If object was already loaded check whether any of the dependencies
12749         is already on the relocation dependency list.  If yes, remove the
12750         latter.  Minor optimizations.
12751         * elf/dl-lookup.c (add_dependency): Add check for self reference of
12752         maps here.  Search l_initfini list only if the object was loaded
12753         directly and not only as a dependency.
12754         (_dl_lookup_symbol): Add relocation dependency also if object
12755         is not in global scope.  Remove test for self-reference here.
12756         (_dl_lookup_versioned_symbol): Likewise.
12757         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
12758         element of first name record.
12759         * elf/loadtest.c: Add some more test to recognize early if an object
12760         wasn't unloaded.
12761         * elf/Makefile: Add rules to build and run reldep5.
12762         * elf/reldep5.c: New file.
12763         * elf/reldepmod5.c: New file.
12764         * elf/reldepmod6.c: New file.
12766         * elf/reldep2.c: Fix typo.
12768 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
12770         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12771         elements.  Change l_scope to be a pointer only.
12772         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12773         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12774         here add searchlist of newly open file to the dependency's scope.
12775         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12776         only searchlist from its scope.  Free own scope array if necessary.
12777         * elf/Makefile (tests): Add dblload and dblunload now.
12779 2001-09-06  Andreas Jaeger  <aj@suse.de>
12781         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12782         Stephen L Moshier.
12784 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
12786         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
12787         they both fail.
12788         * elf/dblload.c: New file.
12789         * elf/dblloadmod1.c: New file.
12790         * elf/dblloadmod2.c: New file.
12791         * elf/dblloadmod3.c: New file.
12792         * elf/dblunload.c: New file.
12794 2001-09-04  Richard Henderson  <rth@redhat.com>
12796         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12797         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12799 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12801         Correct very misleading message for error in failed runtime relocation.
12802         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12803         place of the error.
12804         (_dl_signal_cerror): Likewise.
12805         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12806         * elf/dl-close.c: Likewise.
12807         * elf/dl-deps.c: Likewise.
12808         * elf/dl-load.c: Likewise.
12809         * elf/dl-lookup.c: Likewise.
12810         * elf/dl-open.c: Likewise.
12811         * elf/dl-reloc.c: Likewise.
12812         * elf/dl-sym.c: Likewise.
12813         * elf/dl-version.c: Likewise.
12814         * sysdeps/generic/dl-sysdep.c: Likewise.
12816 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12818         * iconv/strtab.c (strtabinit): Initialize null Strent.
12819         (newstring): Move len == 0 handling...
12820         (strtabadd): ...here.
12821         If len == 1, return null Strent.
12822         When inserting a suffix of an existing string, check if
12823         it is not equal to some suffix already recorded.
12824         Copy left and right members over if adding longer string.
12826 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12828         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12830         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12831         (__syscall_gethostname): Add prototype.
12833 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12835         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12837 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
12839         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12841 2001-08-27  Roland McGrath  <roland@frob.com>
12843         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12844         short, copy that much into NAME anyway before returning error.
12846 2001-09-01  Richard Henderson  <rth@redhat.com>
12848         * sysdeps/alpha/elf/Dist: Remove file.
12849         * sysdeps/alpha/elf/Makefile: Remove file.
12850         * sysdeps/alpha/elf/crtbegin.S: Remove file.
12851         * sysdeps/alpha/elf/crtend.S: Remove file.
12852         * sysdeps/alpha/elf/initfini.c: New file.
12854 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
12856         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12857         * iconv/tst-iconv3.c: Likewise.
12859 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
12861         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12863 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
12865         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12866         export it.
12867         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12868         * iconv/iconv_prog.c (insert_cache): New function.
12869         (print_known_names): If cache is used call insert_cache to use the
12870         information from the cache [PR libc/2509].
12872 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
12874         * time/strptime.c (strptime_internal): Recognize 'l' format and
12875         handle it like 'I' for symmetry with strftime.
12877 2001-08-31  Richard Henderson  <rth@redhat.com>
12879         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12880         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12881         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12882         (print_statistics): Make scalar unsigned long long.
12883         * sysdeps/alpha/hp-timing.h: New file.
12885 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12887         * stdio-common/perror.c (perror): Save errno early, pass it
12888         down to perror_internal.
12889         (perror_internal): Add errnum argument.
12891 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12893         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12894         Don't add old memory content for R_ALPHA_REFQUAD.
12896 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12898         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12899         memory correctly.
12901         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12902         instead of open, __close instead of close, __getpagesize instead
12903         of getpagesize.
12905         * string/argz-stringify.c (__argz_stringify): Use __strnlen
12906         instead of strnlen.
12907         * include/string.h (strndupa): Redefine here to use __strnlen
12908         instead of strnlen.
12909         * string/strndup.c (__strndup): Use __strnlen not strnlen.
12911         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12912         connected).
12914 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12916         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12917         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
12918         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12919         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12920         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12921         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12922         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12924 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12926         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12928 2001-08-30  Andreas Jaeger  <aj@suse.de>
12930         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12931         contributed Stephen L Moshier.
12933 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12935         * sunrpc/etc.rpc (sgi_fam): Add.
12937 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12939         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12941 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12943         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12944         first is from a previous call.
12945         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12947 2001-08-29  Andreas Schwab  <schwab@suse.de>
12949         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12951 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12953         * config.make.in (INSTALL_SCRIPT): Define.
12954         * Makeconfig (INSTALL_SCRIPT): Define.
12955         * Makerules (do-install-script): New macro to install scripts using
12956         INSTALL_SCRIPT.
12957         (install-bin-script): New rule to install scripts with
12958         do-install-script.
12959         (install-bin-script-nosubdir): New rule.
12960         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12961         (distinfo-vars): Add $(install-bin-script).
12962         * Rules (others): Likewise.
12963         * Makefile (glibcbug): Install with install-bin-script.
12964         * debug/Makefile (xtrace): Likewise.
12965         (catchsegv): Likewise.
12966         * elf/Makefile (ldd): Likewise.
12967         * malloc/Makefile (mtrace): Likewise.
12968         * timezone/Makefile (tzselect): Likewise.
12970 2001-08-29  H.J. Lu  <hjl@gnu.org>
12972         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12973         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12974         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12976 2001-08-29  Andreas Schwab  <schwab@suse.de>
12978         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12980 2001-08-28  H.J. Lu  <hjl@gnu.org>
12982         * Makeconfig (combreloc-LDFLAGS): New variable.
12983         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12984         * config.make.in (have-z-combreloc): New variable.
12985         * configure.in: Substitute libc_cv_z_combreloc.
12987 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12989         * po/sv.po: Update from translation team.
12990         * po/fr.po: Likewise.
12991         * po/da.po: Likewise.
12993 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12995         * Makerules: Fix a typo: MD% -> MD5.
12997 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
12999         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
13000         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
13002 2001-08-28  Andreas Jaeger  <aj@suse.de>
13004         * manual/libc-texinfo.sh: Add entry about free manuals.
13006         * manual/contrib.texi (Contributors): Fix cross reference.
13008         * manual/libc.texinfo (Copying): Include freemanuals.
13010         * manual/Makefile (appendices): Add freemanuals.
13012         * manual/freemanuals.texi: New file.
13013         Patch by Brian Youmans <3diff@gnu.org>.
13015         * manual/libm-err-tab.pl: Pretty print more platforms, print a
13016         smaller table.
13018         * manual/math.texi (Errors in Math Functions): Fix grammar, start
13019         table on separate page.
13020         Patch by Brian Youmans <3diff@gnu.org>.
13022 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
13024         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
13025         the connection went down after we first used it try to connect
13026         again and resend the message before printing to the console.
13027         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
13029 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
13031         * string/tst-strlen.c (main): Test strnlen (, -1) too.
13032         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
13033         bit set.
13035 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
13037         * iconv/strtab.c (searchstring): Use correct length for comparison.
13038         (strtabadd): Account total size correct if new string has old string as
13039         substring.
13041 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
13043         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
13045 2001-08-27  Andreas Jaeger  <aj@suse.de>
13047         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
13049         * math/libm-test.inc (j0_test): Add extra tests.
13050         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
13051         not x, in Hankel approximation.
13052         Patches by Stephen L Moshier.
13054 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
13056         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
13057         link_map.
13059         * configure.in: Fix test for .rela.dyn section.
13061         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
13063 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
13065         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
13066         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
13067         Pass type_class to _dl_lookup_*.
13068         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
13069         Pass around just type_class instead of noexec, noplt pair.
13070         (_dl_lookup_versioned_symbol): Likewise.
13071         (_dl_lookup_symbol_skip): Pass around just type_class instead of
13072         noexec, noplt pair.
13073         (_dl_lookup_versioned_symbol_skip): Likewise.
13074         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
13075         * elf/do-lookup.h (do_lookup): Likewise.
13076         * include/link.h (struct link_map): Replace noexec and noplt fields
13077         in l_lookup_cache with type_class field.
13078         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
13079         ELF_RTYPE_CLASS_COPY): Define.
13080         Adjust prototypes for _dl_lookup_symbol and
13081         _dl_lookup_versioned_symbol.
13082         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
13083         elf_machine_lookup_noexec_p): Remove.
13084         (elf_machine_type_class): Define.
13085         * sysdeps/arm/dl-machine.h: Likewise.
13086         * sysdeps/hppa/dl-machine.h: Likewise.
13087         * sysdeps/cris/dl-machine.h: Likewise.
13088         * sysdeps/i386/dl-machine.h: Likewise.
13089         * sysdeps/ia64/dl-machine.h: Likewise.
13090         * sysdeps/m68k/dl-machine.h: Likewise.
13091         * sysdeps/mips/mips64/dl-machine.h: Likewise.
13092         * sysdeps/mips/dl-machine.h: Likewise.
13093         * sysdeps/powerpc/dl-machine.h: Likewise.
13094         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13095         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13096         * sysdeps/sh/dl-machine.h: Likewise.
13097         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13098         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13100 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
13102         * manual/message.texi (Advanced gettext functions): Change
13103         description of plural forms for Slovak.
13104         Reported by Marcel Telka <marcel@telka.sk>.
13106         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
13107         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
13109 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
13111         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
13112         typo.  Patch by Florian La Roche <laroche@redhat.com>.
13114 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
13116         * include/link.h (struct link_map): Add l_lookup_cache element.
13117         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
13118         (RESOLVE_MAP): Likewise.
13119         (_dl_relocate_object): Remove cache initialization.
13120         * elf/dl-lookup.c: Rip out cache handling code.
13121         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
13122         declarations.
13124         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
13125         remove some __builtin_expect.
13126         (_dl_lookup_versioned_symbol): Likewise.
13128         * config.h.in: Add HAVE_Z_COMBRELOC.
13129         * configure.in: Add test for -z combreloc.
13131         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
13132         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
13133         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
13134         case to almost no code.
13136 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
13138         * po/tr.po: Update from translation team.
13140 2001-08-24  Andreas Jaeger  <aj@suse.de>
13142         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
13143         make clean works.
13145 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13147         * elf/rtld.c (print_statistics): Printf % after percent values.
13148         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
13150         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
13151         don't have to compute the hash value and initialize current_value.
13152         Move reference_name variable to where it is needed.
13153         (_dl_lookup_versioned_symbol): Likewise.
13155 2001-08-24  Roland McGrath  <roland@frob.com>
13157         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
13158         Just test that strerror returns non-null for a few errno codes.
13160 2001-08-23  Roland McGrath  <roland@frob.com>
13162         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
13163         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
13165         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
13167         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
13168         __mach_reply_port.
13170 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13172         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
13173         returns NULL.
13175         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
13176         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
13177         doesn't do it.
13178         * elf/rtld.c: Include <sys/param.h>.
13179         * elf/dl-reloc.c: Likewise.
13181 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
13183         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
13184         empty to prevent junk from being generated.
13185         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
13187 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
13189         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
13190         records.  Rename endrel to relative, initialize it to r, and use it
13191         in elf_machine_rel_relative calls.  Point r after relative relocs.
13193 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13195         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
13196         of R_386_NONE.
13198 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
13200         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
13201         necessary.  Undefine newly defined macros at the end.
13202         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
13203         Rename from elf_machine_rel_relative.
13204         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
13205         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
13206         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
13207         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
13208         Likewise.
13209         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
13210         Likewise.
13211         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
13212         Fix argument types.
13213         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
13214         Fix argument types.
13215         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
13216         Likewise.  Fix argument types.
13217         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
13218         Likewise.  Fix argument types.
13219         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
13220         Fix argument types.
13221         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
13222         ElfW(Rel) in argument.
13223         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
13224         function.
13226 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
13228         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
13230 2001-08-24  Andreas Jaeger  <aj@suse.de>
13232         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
13233         Stephen L Moshier <moshier@mediaone.net>.
13235 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13237         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
13238         first if RELCOUNT is set.
13240         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
13241         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
13242         elf_machine_rel_relative.
13243         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
13244         Minor optimizations.
13245         * sysdeps/arm/dl-machine.h: Likewise.
13246         * sysdeps/cris/dl-machine.h: Likewise.
13247         * sysdeps/hppa/dl-machine.h: Likewise.
13248         * sysdeps/i386/dl-machine.h: Likewise.
13249         * sysdeps/ia64/dl-machine.h: Likewise.
13250         * sysdeps/m68k/dl-machine.h: Likewise.
13251         * sysdeps/mips/dl-machine.h: Likewise.
13252         * sysdeps/powerpc/dl-machine.h: Likewise.
13253         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13254         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13255         * sysdeps/sh/dl-machine.h: Likewise.
13256         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13257         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13259 2001-08-23  Roland McGrath  <roland@frob.com>
13261         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
13263         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
13264         sysdeps/mach version.  Implement counting ("recursive") mutexes
13265         on top of cthreads mutexes.
13266         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
13268         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
13269         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
13270         (__libc_cleanup_region_start, __libc_cleanup_region_end,
13271         __libc_clean_end): Define these to call the cleanup function after
13272         normal exit when they're supposed to.
13274         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
13275         Take new first arg DOIT, a boolean saying whether to really install
13276         any cleanup handler.
13277         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
13278         (__libc_cleanup_end): Likewise.
13279         * sysdeps/generic/bits/libc-lock.h: Same changes.
13280         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
13281         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
13282         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
13283         Likewise.
13284         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
13285         * sysdeps/generic/bits/stdio-lock.h
13286         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
13288 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13290         * elf/ldconfig.c (search_dir): Remove stale symlinks.
13292 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13294         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
13295         functions.
13296         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
13297         lookups in cache.
13298         (_dl_lookup_versioned_symbol): Likewise.
13299         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
13300         relocation lookup.
13301         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
13302         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
13303         (lookup_cache, lookup_cache_versioned): Add declarations.
13305 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
13307         * stdlib/tst-random.c (main): Swap parameters in fail call.
13308         Patch by Pete Bevin <pete@petebevin.com>.
13310 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13312         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
13314 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
13316         * malloc/obstack.c: Indent preprocessor directives.
13317         Patch by Jim Meyering <meyering@ascend.com>.
13319         * po/ja.po: Update from translation team.
13321 2001-08-23  Roland McGrath  <roland@frob.com>
13323         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
13325         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
13326         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
13328 2001-08-22  Roland McGrath  <roland@frob.com>
13330         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
13331         __libc_lock_define_recursive.
13332         * elf/dl-open.c: Don't declare it here any more.
13333         * elf/dl-close.c: Likewise.
13334         * elf/dl-lookup.c: Likewise.
13335         * elf/dl-iteratephdr.c: Likewise.
13336         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
13337         __libc_lock_unlock_recursive.
13338         * elf/dl-close.c (_dl_close): Likewise
13339         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
13340         * elf/dl-open.c (_dl_open): Likewise
13342         * sysdeps/generic/bits/libc-lock.h
13343         (__libc_lock_define_recursive): New macro.
13344         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
13345         (_IO_lock_lock): Use __libc_lock_lock_recursive.
13346         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
13348         * conform/conformtest.pl (checknamespace): Sort the output list.
13350         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
13351         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
13352         definitions conditional on [__USE_XOPEN].
13354         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
13355         these unconditionally, not only use [__USE_BSD], so as to match
13356         the sysdeps/unix/sysv/linux files.
13358 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13360         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
13361         avoid warnings.
13363         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
13364         DL_LOOKUP_ADDRESS.
13366 2001-08-22  Roland McGrath  <roland@frob.com>
13368         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
13369         conditionalization of sa_handler/sa_sigaction member types to
13370         match the sysdeps/unix/sysv/linux file.
13372 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13374         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
13375         symbol sizes a bit better.
13377         * sysdeps/ia64/strncpy.S: Complete rewrite.
13378         Contributed by Jakub Jelinek <jakub@redhat.com>.
13380         * string/stratcliff.c (main): Add strncpy test.
13382 2001-08-22  Roland McGrath  <roland@frob.com>
13384         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
13385         and don't declare unsetenv or _environ directly.
13386         (unsetenv): Return int, not void.  Use __environ instead of _environ.
13388 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
13390         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
13391         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
13392         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
13393         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
13394         test for cmsg struct size.
13396 2001-04-23  Paul Eggert  <eggert@twinsun.com>
13398         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
13399         Rename __argc to ___argc in prototypes to avoid compatibility
13400         problems with systems that reserve the identifier "__argc".
13401         Similarly for __argv.
13403 2001-08-21  Roland McGrath  <roland@frob.com>
13405         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
13407         * mach/Makefile (tests): Removed.
13408         * mach/hello.c: File removed.
13410 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13412         * po/sv.po: Update from translation team.
13414         * stdio-common/vfscanf.c: Fix handling of %l[].
13415         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
13417         * libio/Makefile (tests): Add tst-sscanf.
13418         * libio/tst-sscanf.c: New file.
13420         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
13421         * malloc/mtrace.c (tr_where): dli_sname always points to a
13422         non-empty string if != NULL.
13423         Reported by Tim Janik <timj@gtk.org>.
13425 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
13427         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
13428         buf.  Free resources on failure.
13429         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
13430         (makefd_xprt): Likewise.
13431         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
13432         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
13433         * sunrpc/auth_unix.c (authunix_create): Likewise.
13435 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
13437         * string/strnlen.c: Remove.
13438         * sysdeps/generic/strnlen.c: New file.
13439         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
13441 2001-08-21  Roland McGrath  <roland@frob.com>
13443         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
13444         as a macro, not an extern inline function.
13446         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
13447         * Versions.def (libc): Add GLIBC_2.2.5 set.
13448         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
13449         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
13451 2001-08-20  Roland McGrath  <roland@frob.com>
13453         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
13454         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
13456 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
13458         * string/bits/string2.h: Remove strnlen optimization here.
13459         * sysdeps/i386/i486/bits/string.h: Add it here.
13461 2001-08-21  Wolfram Gloger  <wg@malloc.de>
13463         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
13465 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
13467         * po/gl.po: Update from translation team.
13469 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13471         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
13472         * misc/err.c (convert_and_print): Likewise.
13474         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
13475         function calls.
13477 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13479         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
13480         change of the gregset_t type.
13481         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13483 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
13485         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
13487 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13489         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
13491         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
13493 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
13495         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
13496         before calling the cthreads initialization code.
13498 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13500         * argp/argp-help.c: Fix two problems introduced in last change.
13502         * include/dirent.h: Include <dirstream.h> first.
13504 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
13506         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
13508         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
13509         * sunrpc/xdr_rec.c: Likewise.
13510         * sunrpc/xdr_mem.c: Likewise.
13511         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
13512         * sunrpc/rpc_cmsg.c: Likewise.
13513         * sunrpc/getrpcport.c (getrpcport): Likewise.
13514         * sunrpc/clnt_simp.c (callrpc): Likewise.
13515         * sunrpc/clnt_gen.c (clnt_create): Likewise.
13516         * string/envz.c: Likewise.
13518         * po/ko.po: Update from translation team.
13520         * argp/argp-help.c: Handle wide oriented stderr stream.
13522 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
13524         * sysdeps/generic/strtol.c: Little optimizations.  Add some
13525         __builtin_expect.
13527         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
13529         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
13530         * wcsmbs/wcwidth.c (wcwdith): Likewise.
13531         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
13533         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
13535         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
13537         * time/time.h (struct timespec): Use __time_t for tv_sec element.
13539         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
13540         wchar_t for function declarations and defintions.
13542         * misc/sys/select.h: Define __need_time_t before including <time.h>.
13543         Define suseconds_t if it hasn't happened yet.
13545         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
13547         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
13549         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
13550         <stddef.h>.
13552         * conform/data/stddef.h-data: Remove wint_t.
13554         * conform/conformtest.pl: Change namespace test to take #undef
13555         lines into account.
13557         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
13559         * conform/data/sys/socket.h-data: Add sockatmark.
13561 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13563         * io/fts.c: Update from recent BSD source.
13565 2001-08-17  Roland McGrath  <roland@frob.com>
13567         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
13568         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
13569         Likewise.
13571 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13573         * locale/duplocale.c (__duplocale): Also initialize the special
13574         __ctype_* elements.
13576         * conform/data/netdb.h-data: Adjust gai_strerror return type.
13578 2001-08-17  Andreas Jaeger  <aj@suse.de>
13580         * misc/getpass.c: Include wchar.h for prototypes.
13581         * malloc/obstack.c: Likewise.
13583 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13585         * sunrpc/svc_simple.c (universal): Use __write instead of write.
13587         * wcsmbs/wcscoll.c: Also define __wcscoll.
13588         * include/wchar.h: Declare __wcscoll.
13590         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
13591         * libio/vwprintf.c: Likewise.
13592         * libio/wprintf.c: Likewise.
13594         * iconv/gconv_cache.c: Use __munmap instead of munmap.
13596 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
13598         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
13599         instead of mbrtowc.
13600         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
13601         wcslen, and __wcscoll instead of wcscoll.
13603         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
13605         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
13606         __getuid instead of getuid.
13608         * stdio-common/perror.c (perror): Use __close instead of close.
13609         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13610         * libio/freopen.c (freopen): Likewise.
13611         * libio/freopen64.c (freopen64): Likewise.
13613         * libio/tst-ungetwc2.c (main): Define str const.
13615         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13616         * libio/fwprintf.c: Also define __fwprintf.
13617         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13618         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13619         * assert/assert-perr.c: Likewise.
13620         * assert/assert.c: Likewise.
13621         * gmon/gmon.c: Likewise.
13622         * inet/rcmd.c: Likewise.
13623         * malloc/obstack.c: Likewise.
13624         * misc/err.c: Likewise.
13625         * misc/error.c: Likewise.
13626         * misc/getpass.c: Likewise.
13627         * posix/getopt.c: Likewise.
13628         * resolv/res_hconf.c: Likewise.
13629         * stdio-common/perror.c: Likewise.
13630         * stdio-common/psignal.c: Likewise.
13631         * stdlib/fmtmsg.c: Likewise.
13632         * sunrpc/auth_unix.c: Likewise.
13633         * sunrpc/clnt_perr.c: Likewise.
13634         * sunrpc/clnt_tcp.c: Likewise.
13635         * sunrpc/clnt_udp.c: Likewise.
13636         * sunrpc/clnt_unix.c: Likewise.
13637         * sunrpc/svc_simple.c: Likewise.
13638         * sunrpc/svc_tcp.c: Likewise.
13639         * sunrpc/svc_udp.c: Likewise.
13640         * sunrpc/svc_unix.c: Likewise.
13641         * sunrpc/xdr.c: Likewise.
13642         * sunrpc/xdr_array.c: Likewise.
13643         * sunrpc/xdr_rec.c: Likewise.
13644         * sunrpc/xdr_ref.c: Likewise.
13645         * sysdeps/generic/wordexp.c: Likewise.
13647         * po/it.po: Update from translation team.
13649         * misc/err.c: Handle wide oriented stderr stream.
13651 2001-08-14  Tom Rix  <trix@redhat.com>
13653         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13654         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13656 2001-08-13  Tom Rix  <trix@redhat.com>
13658         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13659         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13660         and __intptr_t.
13662 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13664         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13665         Store the access registers to the ucontext structure.
13666         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13667         Likewise.
13669         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13670         Load the access registers from the ucontext structure.
13671         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13672         Likewise.
13674         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13675         offsets to the new ucontext layout.
13676         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13678         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13679         of the ucontext structure.
13680         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13682 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
13684         * misc/error.c (error): Handle wide oriented stderr stream correctly.
13685         (error_at_line): Likewise.
13687         * stdio-common/perror.c (perror): Implement according to standard.
13688         The stream orientation must not be changed if the stream was not
13689         oriented before the call.
13690         * stdio-common/Makefile (tests): Add tst-perror.
13691         * stdio-common/tst-perror.c: New file.
13694 See ChangeLog.12 for earlier changes.