Update.
[glibc.git] / ChangeLog
blobdadc4254c8fdc71cef876068cd44dbcc305df48b
1 2002-09-29  Bruno Haible  <bruno@clisp.org>
3         * sysdeps/generic/utmp_file.c (LOCKING_FAILED): New macro.
4         (UNLOCK_FILE): Add a label.
5         (getutent_r_file, internal_getut_r, getutline_r_file, pututline_file,
6         updwtmp_file): Shut off the alarm clock when locking failed.
8 2002-09-30  Isamu Hasegawa  <isamu@yamato.ibm.com>
10         * posix/regex_internal.h (re_match_context_t): Add a new member.
11         (re_fail_stack_ent_t): New structure.
12         (re_fail_stack_t): Likewise.
13         * posix/regexec.c (re_search_internal): Use the new member of
14         re_match_context_t.
15         Use fail stack only if it has back references and there are plural
16         matching candidates.
17         (proceed_next_node): Use fail stack if it is indicated.
18         (set_regs): Likewise.
19         (push_fail_stack): New function.
20         (pop_fail_stack): New function.
21         (check_dst_limits): Likewise.
22         (check_dst_limits_calc_pos): Likewise.
23         (search_subexp): Check the limitations on the top of subexpressions.
24         (sift_states_bkref): Check the limitations of the destination node.
25         Reuse the array sctx->sifted_states.
27 2002-09-30  Ulrich Drepper  <drepper@redhat.com>
29         * stdio-common/printf_fp.c: Shuffle a few lines around to help the
30         compiler optimizing.  No semantical changes intended.
32 2002-09-30  Jakub Jelinek  <jakub@redhat.com>
34         * sysdeps/ia64/strncpy.S: Only segfault in .recovery2 if some bits
35         from the next quad are needed.
37 2002-09-30  Roland McGrath  <roland@redhat.com>
39         * elf/tls-macros.h (TLS_LD, TLS_GD): Use call insn, not callq.
41         * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD] [! PIC]:
42         Use direct-%fs form of TLS access for errno.
44         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: File removed, since
45         the i386 version has all the same asm now.
47         * sysdeps/i386/elf/configure.in: Add @GOTNTPOFF and @NTPOFF uses to
48         the TLS support check.
49         * sysdeps/i386/elf/configure: Regenerated.
51         * sysdeps/unix/sysv/linux/i386/sysdep.h [USE_TLS && HAVE___THREAD]
52         (SYSCALL_ERROR_HANDLER): Use direct-%gs form of TLS access for errno.
54         * sysdeps/unix/i386/sysdep.S (syscall_error)
55         [USE_TLS && HAVE___THREAD]: Use TLS access for errno.
57         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
58         [USE_TLS && HAVE___THREAD] (SYSCALL_ERROR_HANDLER): Use TLS access.
60         * rt/tst-aio7.c (do_test): Don't read from stdin, which could be the
61         terminal when the test is running in a background job.  Instead, make
62         a pipe and read from its read half while never writing anything to it.
64 2002-09-30  Andreas Jaeger  <aj@suse.de>
66         * stdlib/tst-bsearch.c (main): Fix format strings.
67         * stdio-common/tst-rndseek.c (do_test): Likewise.
68         * libio/tst_swprintf.c (main): Likewise.
69         * catgets/tst-catgets.c (main): Likewise.
70         * libio/tst-fgetws.c (main): Likewise.
71         * posix/tst-mmap.c (main): Likewise.
72         * posix/bug-regex12.c (main): Likewise.
73         * posix/bug-regex11.c (main): Likewise.
74         * io/tst-getcwd.c (do_test): Likewise.
76         * iconvdata/tst-e2big.c (test): Use %td in printf for ptrdiff_t.
78         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
79         Store 4 bytes into errno, not 8 bytes.
81 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
83         * posix/regexec.c (sift_states_bkref): Remove ret variable.  Use
84         err instead.
86 2002-09-29  Roland McGrath  <roland@redhat.com>
88         * test-skeleton.c (timeout_handler): Use WUNTRACED flag in waitpid.
89         Examine the child's status and print something different if it wasn't
90         just killed by our SIGKILL.
91         (main): In the child process call setpgid to put it in its own pgrp.
93 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
95         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): The return value
96         semantics for sigtimedwait is different.  Rework the return value
97         handling and don't pass in a siginfo variable.
99 2002-09-29  Roland McGrath  <roland@redhat.com>
101         * malloc/malloc.c [! MALLOC_DEBUG] (assert): #undef before defining.
103         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.2.6): Add __errno_location.
105         * sysdeps/unix/sysv/linux/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]:
106         Define errno in .tbss.
107         * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]: Use TLS
108         access for setting errno.
110         * sysdeps/unix/x86_64/sysdep.S: Store 32 bits at errno, not 64 bits.
111         AFAICT, it was just blind luck that the word following errno in .bss
112         was just alignment padding and not some other variable to be clobbered.
114 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
116         * sysdeps/unix/sysv/linux/kernel-features.h
117         (__ASSUME_SETRESUID_SYSCALL): On the sparc, define to 1, not empty.
119 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
121         * nss/bug-erange.c (main): Don't fail if /etc/resolv.conf doesn't
122         exist.
124 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
126         * nss/Makefile: Move bug-erange from tests to xtests.
128 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
130         * stdlib/longlong.h (__udiv_qrnnd): Remove PARAMS from prototype.
132 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
134         * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall0): Make asm
135         volatile.
136         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
137         inline_syscall5, inline_syscall6): Likewise.
138         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
139         Likewise.
140         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (INLINE_SYSCALL):
141         Likewise.
143 2002-09-29  Roland McGrath  <roland@redhat.com>
145         * configure.in (libc_cv_ranlib_necessary check): Put the .o file in
146         the archive, not the .c file.
147         * configure: Regenerated.
149 2002-09-29  Roland McGrath  <roland@redhat.com>
151         * configure: Regenerated after aclocal.m4 change.
153         * sysdeps/x86_64/sysdep.h [HAVE_ELF] (L): Define with .L##name form.
154         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (L): Don't define it here.
156         * sysdeps/generic/dl-lookupcfg.h [USE_TLS] (DL_LOOKUP_RETURNS_MAP):
157         Define it, because _dl_sym presumes it (for any platform).
159         * sysdeps/x86_64/dl-tls.h: New file.
161         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add a cast.
163         * sysdeps/x86_64/elf/configure.in: New file.
164         * sysdeps/x86_64/elf/configure: New generated file.
166 2002-09-28  Roland McGrath  <roland@redhat.com>
168         * elf/rtld.c (_dl_start): Fix conditional for declaring CNT.
170         * aclocal.m4 (LIBC_PROG_BINUTILS): Don't clobber $RANLIB with ranlib
171         before we check it.
173 2002-09-28  Ulrich Drepper  <drepper@redhat.com>
175         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __syscall_exit
176         entry point.
178 2002-09-28  Jakub Jelinek  <jakub@redhat.com>
180         * posix/bug-regex11.c (tests): Add flags field.
181         (main): Avoid warnings.  Use test[i].flags.  Return nonzero
182         if any of the tests failed.
183         * posix/bug-regex12.c: New file.
184         * posix/Makefile (tests): Add bug-regex12.
186 2002-03-02  Thorsten Kukuk  <kukuk@suse.de>
188         * sysdeps/unix/nice.c (nice): Use getpriority() for the return value.
190 2002-09-28  Jeff Bailey  <jbailey@gnu.org>
192         * sysdeps/unix/sysv/sysv4/solaris2/configure.in: Delete.
193         * sysdeps/unix/sysv/aix/configure.in: Update comment and remove
194         stdio=libio setting.
196 2002-09-28  Roland McGrath  <roland@redhat.com>
198         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Use INTUSE for
199         _dl_signal_error.
200         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Likewise.
201         * sysdeps/powerpc/powerpc64/dl-machine.c
202         (_dl_reloc_overflow): Likewise.
203         * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
204         (elf_machine_rela): Likewise.
206 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
208         * include/libc-symbols.h (__hidden_dot_weak1): Fix typo.  Replace
209         ASM_GLOBAL_DIRECTIVE with .weak.
211 2002-09-28  Andreas Jaeger  <aj@suse.de>
213         * sysdeps/unix/sysv/linux/mips/truncate64.c (truncate64): Fix
214         number of args to syscall.
215         * sysdeps/unix/sysv/linux/mips/ftruncate64.c (__ftruncate64): Likewise.
216         Patch by Guido Guenther <agx@sigxcpu.org>.
218 2002-09-27  Roland McGrath  <roland@redhat.com>
220         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_pread, __NR_pwrite):
221         Define these to __NR_pread64, __NR_pwrite64 if not defined.
223         * sysdeps/unix/sysv/linux/powerpc/lchown.S
224         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Use this condition
225         on chown compatibility symbol; use compat_symbol, not symbol_version.
227 2002-09-27  Isamu Hasegawa  <isamu@yamato.ibm.com>
229         * posix/regcomp.c (reg_free): Free the debug area.
230         (re_compile_internal): Allocate debug area for the input string.
231         (create_initial_state): Check the back references in initial states
232         if they are really match null string in the initial state.
233         (parse_reg_exp): Mark the dfa that the dfa can have plural matchings.
234         (parse_expression): Likewise.
235         (parse_bracket_exp): Likewise.
236         * posix/regex_internal.c (re_node_set_intersect): Remove unused
237         function.
238         (re_node_set_contains): Change to return the index of node.
239         * posix/regex_internal.h (re_backref_cache_entry): Change the members.
240         (re_match_context_t): Likewise.
241         (struct re_dfa_t): Likewise.
242         (re_sift_context_t): New structure.
243         * posix/regexec.c (match_ctx_clear_flag): New function.
244         (sift_ctx_init): Likewise.
245         (update_cur_sifted_state): Likewise.
246         (add_epsilon_src_nodes): Likewise.
247         (sub_epsilon_src_nodes): Likewise.
248         (check_subexp_limits): Likewise.
249         (search_subexp): Likewise.
250         (sift_states_bkref): Likewise.
251         (merge_state_array): Likewise.
252         (sift_states_iter_bkref): Remove unused function.
253         (add_epsilon_backreference): Remove unused function.
254         (re_search_internal): Adapt new members and interfaces.
255         (check_matching): Check the back references in initial states
256         if they are really match null string in the initial state.
257         (proceed_next_node): Change the evaluation of back references,
258         since we have real registers here.
259         (set_regs): Adapt new interface of proceed_next_node.
260         (sift_states_backward): Add invocation of update_cur_sifted_state
261         instead of add_epsilon_backreference.
262         Add a sentinel to the outermost while loop.
263         Move the handling of back references to sift_states_bkref function,
264         since we can't handle some back references (e.g. a back reference
265         which match NULL string) here.
266         (transit_state_mb): Handle the new member max_mb_elem_len.
267         (transit_state_bkref_loop): Move the evaluation of back references to
268         search_subexp function, since we can't evaluate some back references
269         (e.g. a back reference which can have plural matchings) here.
270         (match_ctx_init): Adapt the new member.
271         (match_ctx_add_entry): Adapt the new members.
273 2002-09-25  Alan Modra  <amodra@bigpond.net.au>
275         * elf/do-rel.h: Define macro DO_ELF_MACHINE_REL_RELATIVE for
276         'elf_machine_rel_relative'
277         (elf_dynamic_do_rel): Call DO_ELF_MACHINE_REL_RELATIVE macro
278         instead of 'elf_machine_rel_relative'.
279         * sysdeps/hppa/dl-machine.h:
280         Define macro DO_ELF_MACHINE_REL_RELATIVE for
281         'elf_machine_rel_relative' with extra map parameter
282         required by HPPA.
283         (elf_machine_rela_relative): Add plt relocation changes.
285 2001-11-14  Matthew Wilcox  <willy@debian.org>
287         * sysdeps/unix/sysv/linux/hppa/bits/ipc.h: New file.
288         * sysdeps/unix/sysv/linux/hppa/bits/msq.h: New file.
289         * sysdeps/unix/sysv/linux/hppa/bits/sem.h: New file.
290         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: New file.
292 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
294         * sysdeps/powerpc/powerpc32/Makefile: Fix typo in comment.
296         * sysdeps/powerpc/powerpc64/Makefile
297         [$(build-shared) = yes] (pic-ccflag): Define it.
298         [$(subdir) = csu] (CFLAGS-initfini.s): Add -fpic here too.
300 2002-09-27  Roland McGrath  <roland@redhat.com>
302         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Remove
303         unneeded TLS cases.
305 2002-09-27  Jakub Jelinek  <jakub@redhat.com>
307         * elf/dl-addr.c (_dl_addr): Set dli_fbase to l_map_start
308         unconditionally.  Set dli_fname to _dl_argv[0] only for main program.
310 2002-09-27  Roland McGrath  <roland@redhat.com>
312         * elf/dl-addr.c (_dl_addr): Add a cast.
314         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [USE_TLS]: Handle new
315         TLS relocs R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, and R_X86_64_TPOFF64.
317         * elf/elf.h (R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, R_X86_64_TPOFF64,
318         R_X86_64_TLSGD, R_X86_64_TLSLD, R_X86_64_DTPOFF32,
319         R_x86_64_GOTTPOFF, R_X86_64_TPOFF32): New macros.
320         (R_X86_64_NUM): Update the value.
322 2002-09-24  Jakub Jelinek  <jakub@redhat.com>
324         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_load_address): Don't
325         rely on *r_offset of R_SPARC_RELATIVE reloc in .got to contain the
326         addend.
327         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Use
328         the same l_addr computation.
329         * sysdeps/sparc/sparc64/configure.in: Removed.
330         * sysdeps/sparc/sparc64/configure: Removed.
331         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Remove.
333 2002-09-26  Ulrich Drepper  <drepper@redhat.com>
335         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_HASH entry
336         if necessary.
337         * elf/dl-lookup.c (_dl_setup_hash): DT_HASH entry is already relocated.
338         * elf/dl-addr.c (_dl_addr): Use .hash[1] entry to determine end of the
339         symbol table if necessary.
341 2002-09-26  Roland McGrath  <roland@redhat.com>
343         * stdlib/longlong.h: Replaced with current version from GCC mainline,
344         last modified 2002-09-22  Kazu Hirata  <kazu@cs.umass.edu>.
346 2002-09-25  Andreas Jaeger  <aj@suse.de>
348         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add syscall_exit.
349         Patch by Guido Guenther <agx@sigxcpu.org>.
351 2002-09-25  Roland McGrath  <roland@redhat.com>
353         * Makeconfig (%.v.i pattern rule): Use $(CPPFLAGS).
355 2002-09-24  Ulrich Drepper  <drepper@redhat.com>
357         * sysdeps/unix/sysv/linux/configure.in: Recognize nptl add-on name.
359 2002-09-24  Roland McGrath  <roland@redhat.com>
361         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Move __libc_read,
362         __libc_write, __libc_lseek64, to ...
363         (ld: GLIBC_PRIVATE): ... here.
365         * csu/Versions: Use %include <tls.h> to get USE_TLS defined.
366         (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _errno, errno.
367         (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put errno here instead.
368         * resolv/Versions: Use %include <tls.h> to get USE_TLS defined.
369         (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _h_errno, h_errno,
370         and _res.
371         (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put h_errno, _res here.
373         * elf/tls-macros.h [__x86_64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
374         New macros for x86-64.
376         * sysdeps/unix/sysv/linux/alpha/bits/time.h: File removed.
377         It was indentical to the linux/bits/time.h file.
379         * nscd/nscd_gethst_r.c (nscd_gethst_r): Add a cast to silence warning.
381         * resolv/gethnamaddr.c (gethostbyaddr): Use socklen_t for SIZE.
383 2002-09-23  Ulrich Drepper  <drepper@redhat.com>
385         * po/zh_CN.po: New file.
387 2002-09-23  Roland McGrath  <roland@redhat.com>
389         * posix/unistd.h: Test [__USE_UNIX98] instead of [__USE_OPEN2K]
390         for gethostname declaration.
392         * catgets/open_catalog.c (__open_catalog): Don't use a value type
393         as the __builtin_expect expression, just the Boolean value.
395         * sysdeps/generic/wordexp.c (parse_glob): int -> size_t for counter.
396         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
397         * resolv/res_hconf.c (arg_service_list, parse_line): Likewise.
398         * iconvdata/tst-loading.c (main): Likewise.
399         * catgets/tst-catgets.c (main): Likewise.
400         * stdlib/tst-xpg-basename.c (main): Likewise.
401         * stdlib/tst-bsearch.c (main): Likewise.
402         * stdio-common/test-vfprintf.c (main): Likewise.
403         * stdio-common/tst-rndseek.c (do_test): Likewise.
404         * libio/tst_swprintf.c (main): Likewise.
405         * libio/tst-fgetws.c (main): Likewise.
406         * wcsmbs/tst-mbrtowc.c (check_ascii): Likewise.
407         * time/tst-posixtz.c (main): Likewise.
408         * time/tst-strptime.c (test_tm): Likewise.
409         * time/tst-strptime.c (main): Likewise.
410         * time/tst-getdate.c (main): Likewise.
411         * posix/tst-mmap.c (main): Likewise.
412         * posix/tst-getaddrinfo.c (do_test): Likewise.
413         * io/tst-getcwd.c (do_test): Likewise.
414         * resolv/tst-aton.c (main): Likewise.
415         * inet/tst-network.c (main): Likewise.
416         * libio/tst-fgetws.c (main): Likewise.
417         * sysdeps/posix/sprofil.c (add_region): int -> unsigned int for I.
418         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): int -> unsigned int
419         for PTYNO.
421         * stdlib/msort.c (qsort): Add a cast to silence warning.
422         * stdio-common/vfprintf.c (process_string_arg): Likewise.
423         * libio/oldfileops.c (_IO_old_do_write): Likewise.
424         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Likewise.
425         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
426         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
427         * argp/argp-fmtstream.c (__argp_fmtstream_printf): Likewise.
428         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
429         * sysdeps/unix/grantpt.c (grantpt): Likewise.
430         * libio/tst-widetext.c (main): Likewise.
431         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
432         * rt/tst-aio.c (test_file): Likewise.
433         * rt/tst-aio64.c (test_file): Likewise.
434         * resolv/tst-aton.c (main): Likewise.
436         * catgets/catgetsinfo.h (CATGETS_MAGIC): Use U suffix on the constant.
438         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Cast to int32_t
439         instead of uint32_t in these macros.
441 2002-09-22  Bruno Haible  <bruno@clisp.org>
443         * iconv/iconv_prog.c (main): Provide an error message that identifies
444         the wrong encoding.
446         * iconvdata/tscii.c: New file.
447         * iconvdata/testdata/TSCII: New file.
448         * iconvdata/testdata/TSCII..UTF8: New file.
449         * iconvdata/TSCII.precomposed: New file.
450         * iconvdata/TSCII.irreversible: New file.
451         * iconvdata/gconv-modules (TSCII): New module.
452         * iconvdata/Makefile (modules): Add TSCII.
453         (distribute): Add tscii.c.
454         * iconvdata/tst-table-from.c (try, utf8_decode, main): Double output
455         buffer size.
456         * iconvdata/tst-tables.sh: Add TSCII.
457         * iconvdata/TESTS: Add TSCII.
459         Revert 2002-04-18 patch.
460         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
461         FROM_DIRECTION): Make the FROM direction stateful again.
462         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
463         FROM_DIRECTION): Likewise.
465         * iconvdata/tst-e2big.c: New file.
466         * iconvdata/Makefile (tests): Add tst-e2big.
468 2002-09-23  Roland McGrath  <roland@redhat.com>
470         * elf/Makefile (test-extras): Define this instead of test-srcs.
471         * Makerules (all-nonlib): Include $(test-extras) too.
473 2002-09-21  Carlos O'Donell  <carlos@baldric.uwo.ca>
475         * sysdeps/hppa/abort-instr.h: New file.
477 2002-09-22  Roland McGrath  <roland@frob.com>
479         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Remove duplicate entry.
481         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Add alias __GI__exit.
483 2002-09-22  Andreas Schwab  <schwab@suse.de>
485         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Append, not overwrite.
487         * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal)
488         (isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]:
489         Use GCC builtins.
491 2002-09-21  Roland McGrath  <roland@redhat.com>
493         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM):
494         Correct the value so it covers all platforms, and is computed
495         from _DL_PLATFORMS_COUNT rather than hard-wired.
496         From Andrew Suffield <asuffield@debian.org>.
498 2002-09-20  Ulrich Drepper  <drepper@redhat.com>
500         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
501         locking when using mount tab file.
502         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
503         * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
504         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
506         * elf/dl-init.c (_dl_init): Fix test of the size of the
507         preinit_array section.
508         (call_init): Optimize access to DT_INIT_ARRAY entry a bit.
509         Reported by Brian Cabral <cabral@ikuni.com>.
511 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
513         * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros.
514         * sysdeps/powerpc/powerpc32/sysdep.h: New file.  Define powerpc32
515         specific macros copied from sysdeps/powerpc/sysdep.h.
516         * sysdeps/powerpc/powerpc64/sysdep.h: New file.  Define powerpc64
517         specific macros.
518         * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>.
519         [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h.
520         [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h.
522 2002-09-19  Bruno Haible  <bruno@clisp.org>
524         * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
525         returning.
527 2002-09-17  Bruno Haible  <bruno@clisp.org>
529         * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
530         * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
531         also on platforms with !HAVE_UT_TYPE.
532         (proc_utmp_eq): Remove function.
533         (internal_getut_r, pututline_file): Call __utmp_equal instead.
535 2002-09-20  Bruno Haible  <bruno@clisp.org>
537         * abi-tags: Add support for FreeBSD with ABI OS value 3.
538         * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
540 2002-09-20  Roland McGrath  <roland@redhat.com>
542         * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
543         (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
544         terms of __WORDSIZE.
545         * sysdeps/x86_64/gmp-mparam.h: File removed.
546         * sysdeps/sparc/gmp-mparam.h: File removed.
547         * sysdeps/mips/mips64/gmp-mparam.h: File removed.
548         * sysdeps/ia64/gmp-mparam.h: File removed.
549         * sysdeps/alpha/gmp-mparam.h: File removed.
551 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
553         * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
554         load, so as to work on both 32-bit and 64-bit.  Remove unnecessary
555         casts.  Align __libc_stack_end to 8 bytes.
557 2002-09-20  Roland McGrath  <roland@redhat.com>
559         * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
560         instead of asm for lrintf, __lrintf aliases.
562         * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
563         int array for 32-/64-bit compatibility.
564         From Steven Munroe  <sjmunroe@us.ibm.com>.
566 2002-09-17  Bruno Haible  <bruno@clisp.org>
568         * sysdeps/generic/ifreq.h (__if_nextreq): New function.
569         * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
570         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
571         * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
572         for iterating through the list of interfaces.
573         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
575 2002-09-20  Roland McGrath  <roland@redhat.com>
577         * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
578         Reported by Bruno Haible <bruno@clisp.org>.
580         * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
582         * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
583         * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
584         isatty unmodified.  Reported by Bruno Haible <bruno@clisp.org>.
586 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
588         * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
589         * sysdeps/powerpc/bits/wordsize.h: New file.
590         * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
591         array to int array for 32-/64-bit compatibility.
593 2002-09-20  Roland McGrath  <roland@redhat.com>
595         * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
597         * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
598         Reported by Bruno Haible <bruno@clisp.org>.
600         * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
601         before doubling RQ_LEN.
602         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
603         Reported by Bruno Haible <bruno@clisp.org>.
605 2002-09-18  Bruno Haible  <bruno@clisp.org>
607         * login/logout.c (logout): Don't assume ut_time has the same size as
608         a time_t.
609         * login/logwtmp.c (logwtmp): Likewise.
611         * sysdeps/pthread/configure: New file, moved here from
612         linuxthreads/sysdeps/unix/sysv/linux/configure.
614 2002-09-19  Ulrich Drepper  <drepper@redhat.com>
616         * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
617         (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
618         Reported by Glen Nakamura <glen@imodulo.com>.
620 2002-09-19  Neal H. Walfield  <neal@cs.uml.edu>
622         * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
623         thread's sigstate data structure if it has been allocated.
625 2002-09-19  Roland McGrath  <roland@redhat.com>
627         * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
628         [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
630 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
632         * version.h (VERSION): Bump to 2.2.94.
634         * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
635         * sysdeps/powerpc/powerpc32/fpu/Dist: ...here.  New file.
636         * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
637         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
639         * sysdeps/i386/Makefile: Remove obsolete db2 rules.
641         * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
643         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
647 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
649         * sysdeps/wordsize-32/Makefile: New file.
650         * sysdeps/arm/Makefile: Removed.
651         * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
652         Don't add divdi3 here.
653         * sysdeps/m68k/Makefile: Likewise.
654         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
655         * sysdeps/sh/Makefile: Likewise.
656         * sysdeps/s390/s390-32/Makefile: Likewise.
658 2002-09-18  Roland McGrath  <roland@redhat.com>
660         * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
661         the __ctype_* compat symbols, so the relocs generated bind to the
662         right versioned global symbol in the shared object.
664         * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
665         from the value taken from the DT_VERSYM table.
666         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
667         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
668         (RESOLVE_GOTSYM): Likewise.
670         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
671         Add libc_hidden_def.
672         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
673         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
674         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
675         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
676         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
677         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
678         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
679         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
681 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
683         * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
685         * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
686         define sigaction and __sigaction as wrappers around
687         __libc_sigaction which rejects changing SIGCANCEL.
688         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
690         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
691         SETTID/CLEARTID.
693         * signal/allocrtsig.c: Move to...
694         * sysdeps/generic/allocrtsig.c: ...here.  New file.
696 2002-09-17  Jakub Jelinek  <jakub@redhat.com>
698         * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
700         * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
701         R_386_TLS_LE): Define.
702         (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
703         comments.
704         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
705         ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
706         (elf_machine_rel): Handle R_386_TLS_TPOFF.
707         (elf_machine_rela): Likewise.
708         Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
710 2002-09-17  Roland McGrath  <roland@redhat.com>
712         * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
713         file-specific variable override so it compiles properly when using
714         --with-headers.
716 2002-09-17  Steven Munroe  <sjmunroe@us.ibm.com>
718         Ported to PowerPC64 running Linux.
719         * sysdeps/powerpc/powerpc64/Dist: New file.
720         * sysdeps/powerpc/powerpc64/Implies: New file.
721         * sysdeps/powerpc/powerpc64/Makefile: New file.
722         * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
723         * sysdeps/powerpc/powerpc64/atomicity.h: New file.
724         * sysdeps/powerpc/powerpc64/backtrace.c: New file.
725         * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
726         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
727         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
728         * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
729         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
730         * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
731         * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
732         * sysdeps/powerpc/powerpc64/memset.S: New file.
733         * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
734         * sysdeps/powerpc/powerpc64/register-dump.h: New file.
735         * sysdeps/powerpc/powerpc64/setjmp.S: New file.
736         * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
737         * sysdeps/powerpc/powerpc64/strchr.S: New file.
738         * sysdeps/powerpc/powerpc64/strcmp.S: New file.
739         * sysdeps/powerpc/powerpc64/strcpy.S: New file.
740         * sysdeps/powerpc/powerpc64/strlen.S: New file.
741         * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
742         * sysdeps/powerpc/powerpc64/elf/start.S: New file.
743         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
744         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
745         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
746         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
747         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
748         * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
749         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
753         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
754         (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
755         various gcc versions.  Dot names required for powerpc64.
756         [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
757         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
758         C_SYMBOL_DOT_NAME(alias).
759         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
760         original strong_alias macro.
761         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
762         C_SYMBOL_DOT_NAME(alias).
763         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
764         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
765         '.'ed name.
766         Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
767         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro.  Generate
768         .global C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
769         (hidden_def): Append hidden_dot_def1 macro to definition.
770         (hidden_ver): Append hidden_dot_def1 macro to definition.
771         (hidden_data_def): New macro.  Same as original hidden_def macro.
772         (hidden_data_ver): New macro.  Same as original hidden_ver macro.
773         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro.  Generate
774         .weakext C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
775         (hidden_weak): Append hidden_dot_weak1 macro to definition.
776         (hidden_data_weak): New macro.  Same as original hidden_weak macro.
777         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
778         Otherwise defined as __GI_name.
779         (libc_hidden_data_def): New macro.  Use hidden_data_def.
780         (libc_hidden_data_weak): New macro.  Use hidden_data_weak.
781         (libc_hidden_data_ver): New macro.  Use hidden_data_ver.
782         (rtld_hidden_data_def): New macro.  Use hidden_data_def.
783         (rtld_hidden_data_weak): New macro.  Use hidden_data_weak.
784         (rtld_hidden_data_ver): New macro.  Use hidden_data_ver.
785         (libm_hidden_data_def): New macro.  Use hidden_data_def.
786         (libm_hidden_data_weak): New macro.  Use hidden_data_weak.
787         (libm_hidden_data_ver): New macro.  Use hidden_data_ver.
788         * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
790 2002-09-17  Ulrich Drepper  <drepper@redhat.com>
792         * include/libc-symbols.h: Change *hidden_proto macros to accept
793         option parameters and pass those to the attribute definition.
794         * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
796         * include/unistd.h: Declare __libc_pause.
798         * include/sys/socket.h: Declare __libc_send, __libc_recv,
799         __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
801         * include/unistd.h: Declare __libc_fork.
803 2002-09-17  Roland McGrath  <roland@redhat.com>
805         * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
806         (passwd2des): Define it as an alias.
807         (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
809 2002-09-12  Bruno Haible  <bruno@clisp.org>
811         * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
812         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
814         * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
815         * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
817 2002-09-05  Steven Munroe  <sjmunroe@us.ibm.com>
819         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
820         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
821         __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
822         PowerPC64 does not have separate 64-bit syscalls.
824 2002-09-16  Roland McGrath  <roland@redhat.com>
826         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
828         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
829         New macro.
831         * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
833         * include/unistd.h: Uncomment libc_hidden_proto for _exit.
834         * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
835         * sysdeps/generic/_exit.c: Likewise.
837 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
839         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
841         * elf/rtld.c (struct dl_start_final_info): New.
842         (_dl_start_final): Change second argument to struct
843         dl_start_final_info *.  Set start_time from info.
844         (_dl_start): Remove bootstrap_map variable, add info.
845         Define bootstrap_map as macro.  If not DONT_USE_BOOTSTRAP_MAP,
846         store HP_TIMING_NOW result into info.start_time.
848 2002-09-16  Andreas Jaeger  <aj@suse.de>
850         * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
851         to _Exit.
852         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
854 2002-09-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
856         * sysdeps/powerpc/abort-instr.h: New file.
858 2002-09-14  Ulrich Drepper  <drepper@redhat.com>
860         * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
861         comment.
863         * test-skeleton.c (main): Provide more information in case waitpid
864         fails.
866         * include/unistd.h: Declare __exit_thread.
867         * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
868         Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
869         * sysdeps/unix/sysv/linux/exit-thread.S: New file.
870         * sysdeps/unix/sysv/linux/_exit.c: New file.
871         * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
872         * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
873         Add exit-thread.
875         * configure.in: Add dl_iterate_phdr to test using -nostdlib.
877 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
879         * sysdeps/i386/dl-machine.h (elf_machine_rel)
880         (case R_386_TLS_DTPMOD32): Don't use addend.
881         [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
882         (elf_machine_rela): Add support for TLS relocs.
884 2002-09-14  Roland McGrath  <roland@redhat.com>
886         * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
888 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
890         * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
891         specific asm macros for multiple percision integer math.
893 2002-06-04  Steven Munroe  <sjmunroe@us.ibm.com>
895         * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
896         * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
897         Remove per-machine conditionals for FLAG_* cases.
898         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
899         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
902 2002-09-10  Alan Modra <amodra@bigpond.net.au>
904         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
905         defined in entry.h.
906         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
907         lowest address for profiling in  __monstartup call.
908         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
910 2002-09-14  Roland McGrath  <roland@redhat.com>
912         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
913         instead of __NR_pread.
914         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
915         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
916         instead of __NR_pwrite.
917         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
919 2002-09-13  Roland McGrath  <roland@redhat.com>
921         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
923 2002-09-13  Andreas Jaeger  <aj@suse.de>
925         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
926         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
928 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
930         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
932 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
934         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
935         reading the headers.
937 2002-09-12  Roland McGrath  <roland@redhat.com>
939         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
940         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
941         find the ELF header.
943         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
944         executable if needed, in case it's actually a shared object.
946 2002-09-11  Roland McGrath  <roland@redhat.com>
948         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
949         l_map_start to adjust l_tls_initimage.
951         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
952         when using h_errno and it's not set to NETDB_INTERNAL.
953         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
955         * Makefile ($(common-objpfx)testrun.sh): New target.
956         (others): Depend on it.
957         (postclean-generated): Append it.
959         * nss/bug-erange.c: New file.
960         * nss/Makefile (tests): Add it.
962         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
963         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
965         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
966         strncmp, keeps the code smaller for a non-performance-critical case.
968         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
969         no longer wrongly matches arbitrary prefixes of NAME.
970         Reported by Jakub Jelinek <jakub@redhat.com>.
972 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
974         * posix/bug-regex11.c (tests): New array.
975         (main): Rewritten to run more different tests.
977 2002-09-10  Roland McGrath  <roland@redhat.com>
979         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
980         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
981         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
983         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
984         well so we don't get it declared by include/math.h's hidden_proto.
985         Then do hidden_proto for __isnanf locally so hidden_def works right.
987         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
988         a cast to turn nl_langinfo return value into an integer.
990 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
992         * posix/regexec.c (build_trtable): Fix the destination of
993         newline to prevent wrong states from overwriting.
994         Append break statements to optimization.
996 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
998         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
999         (build_range_exp): Add castings to strlen invocations.
1000         (build_collating_symbol): Restore the type of characters from "char"
1001         to "unsigned char", and supplement castings.
1002         (build_collating_symbol): Likewise.
1003         (build_equiv_class): Likewise.
1004         (build_charclass): Likewise.
1005         (seek_collating_symbol_entry): Likewise.
1006         (parse_bracket_exp): Likewise.
1007         (build_word_op): Supplement a casting.
1008         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
1009         (re_string_allocate): Fix castings.
1010         (re_string_construct): Likewise.
1011         (re_string_construct_common): Likewise.
1012         (re_string_realloc_buffers): Likewise.
1013         (build_wcs_buffer): Likewise.
1014         (build_wcs_upper_buffer): Likewise.
1015         (re_string_skip_chars): Likewise.
1016         (re_string_reconstruct): Likewise.
1017         * posix/regex_internal.h: Restore the type of characters in
1018         re_string_t and bracket_elem_t from "char" to "unsigned char".
1019         (re_string_elem_size_at): Fix castings.
1020         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
1021         (transit_state_bkref_loop): Restore the type of characters from
1022         "char" to "unsigned char", and append a cast to "char*" pointer in
1023         array subscript.
1024         (check_node_accept_bytes): Likewise.
1025         (find_collation_sequence_value): Likewise.
1027 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
1029         * sysdeps/mips/memcpy.S: New file.
1030         * sysdeps/mips/memset.S: New file.
1031         * sysdeps/mips/fpu/e_sqrt.c:  New file.
1032         * sysdeps/mips/fpu/e_sqrtf.c: New file.
1034         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
1035         functional before. Also removed all SHLIB_COMPAT stuff.
1036         * fpu/fegetenv.c: Likewise.
1037         * fpu/fesetenv.c:: Likewise.
1038         * fpu/feupdateenv.c: Likewise.
1039         * fpu/fgetexcptflg.c: Likewise.
1040         * fpu/fraiseexcpt.c: Likewise.
1042         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
1044 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
1046         * include/math.h (__finite_internal, __finitef_internal,
1047         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
1048         (isfinite): Remove.
1049         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
1050         __isinfl, __isnanl): Add hidden_proto.
1051         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
1052         libm_hidden_proto.
1053         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
1054         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
1055         __is{inf,nan} calls.
1056         * stdio-common/printf_size.c (printf_size): Likewise.
1057         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
1058         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
1059         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
1060         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
1061         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
1062         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
1063         (__finite): Add hidden_def.
1064         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
1065         (__finitef): Add hidden_def.
1066         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
1067         (__finitel): Add hidden_def.
1068         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
1069         hidden_def.
1070         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
1071         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
1072         libm_hidden_def.
1073         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
1074         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
1075         hidden_def.
1076         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
1077         (__isinfl): Remove INTDEF.
1078         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
1079         hidden_def.
1080         (__isnanl): Remove INTDEF.
1081         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
1082         libm_hidden_def.
1083         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
1084         instead of sin and cos.
1085         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
1086         Add hidden_def.
1087         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
1088         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
1089         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
1090         libm_hidden_def.
1091         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
1092         Add hidden_def.
1093         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
1094         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
1095         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
1096         libm_hidden_def.
1097         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
1098         libm_hidden_def.
1099         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
1100         Add hidden_def.
1101         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
1102         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
1103         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
1104         libm_hidden_def.
1105         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
1106         __finitel_internal): Remove aliases.
1107         (__finite, __finitef, __finitel): Add hidden_def.
1108         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
1109         __isnanl_internal): Remove aliases.
1110         (__isnan, __isnanf, __isnanl): Add hidden_def.
1111         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
1112         __isinfl_internal): Remove aliases.
1113         (__isinf, __isinff, __isinfl): Add hidden_def.
1114         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
1115         __fpclassifyl): Add libm_hidden_def.
1116         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
1117         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
1118         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
1119         (hidden_defx): Define and use.
1120         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
1121         libm_hidden_def.
1122         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
1123         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
1124         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
1125         Remove INTDEF.
1126         (__isnan, __isnanf): Add hidden_def.
1127         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
1128         (__finitel): Add libm_hidden_def.
1129         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
1131         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
1132         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
1133         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1134         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
1135         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1136         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
1137         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
1138         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
1139         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1140         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
1141         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1142         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
1143         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1144         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
1145         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1146         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
1147         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1148         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
1149         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1150         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
1151         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1152         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
1153         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1154         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
1155         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1156         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
1157         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1159 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
1161         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
1163 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
1165         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
1166         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
1168 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
1170         * string/stratcliff.c: Some more strncpy tests.
1171         Patch by Daniel Jacobowitz <drow@mvista.com>.
1173 2002-09-08  Roland McGrath  <roland@redhat.com>
1175         * resolv/resolv.h: Include <sys/types.h> for u_long even in
1176         the [__need_res_state] case.
1177         Reported by Bruno Haible <bruno@clisp.org>.
1179 2002-09-04  Bruno Haible  <bruno@clisp.org>
1181         * sysdeps/generic/bits/ustat.h: Comment fix.
1182         * io/sys/sendfile.h: Comment fix.
1183         * sysdeps/posix/pread.c: Comment fix.
1184         * sysdeps/posix/pread64.c: Comment fix.
1185         * sysdeps/posix/pwrite.c: Comment fix.
1186         * sysdeps/posix/pwrite64.c: Comment fix.
1188 2002-09-06  Roland McGrath  <roland@redhat.com>
1190         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
1191         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
1192         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
1193         (_UTSNAME_MACHINE_LENGTH): Likewise.
1194         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
1196 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
1198         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
1199         test for filesystem type name of mount points.
1201         * include/errno.h: Use errno definition with __thread for now only
1202         in libc and ld.so.
1204         * test-skeleton.c (main): Improve error message for unexpected
1205         signal case.
1207 2002-09-05  Roland McGrath  <roland@redhat.com>
1209         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
1210         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1212 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
1214         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
1215         case of failure.
1217 2002-09-04  Bruno Haible  <bruno@clisp.org>
1219         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
1220         sigset_get_old_mask): Turn into inline functions.
1221         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
1222         sigset_get_old_mask): Likewise.
1223         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
1224         sigset_get_old_mask): Likewise.
1225         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
1226         syntax.
1228         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
1230         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
1231         default definitions.
1232         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
1233         _sys_nerr_internal instead of _sys_nerr.
1235         * nscd/connections.c (handle_request): Declare CALLER inside #if.
1237 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
1239         * sysdeps/powerpc/__longjmp.S: Moved to...
1240         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
1241         * sysdeps/powerpc/add_n.S: Moved to...
1242         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
1243         * sysdeps/powerpc/addmul_1.S: Moved to...
1244         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
1245         * sysdeps/powerpc/atomicity.h: Moved to...
1246         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
1247         * sysdeps/powerpc/backtrace.c: Moved to...
1248         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
1249         * sysdeps/powerpc/bp-asm.h: Moved to...
1250         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
1251         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
1252         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
1253         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
1254         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
1255         * sysdeps/powerpc/dl-machine.c: Moved to...
1256         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
1257         * sysdeps/powerpc/dl-machine.h: Moved to...
1258         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
1259         * sysdeps/powerpc/dl-start.S: Moved to...
1260         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
1261         * sysdeps/powerpc/gprrest0.S: Moved to...
1262         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
1263         * sysdeps/powerpc/gprrest1.S: Moved to...
1264         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
1265         * sysdeps/powerpc/gprsave0.S: Moved to...
1266         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
1267         * sysdeps/powerpc/gprsave1.S: Moved to...
1268         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
1269         * sysdeps/powerpc/lshift.S: Moved to...
1270         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
1271         * sysdeps/powerpc/memset.S: Moved to...
1272         * sysdeps/powerpc/powerpc32/memset.S: ...here.
1273         * sysdeps/powerpc/mul_1.S: Moved to...
1274         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
1275         * sysdeps/powerpc/ppc-mcount.S: Moved to...
1276         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
1277         * sysdeps/powerpc/register-dump.h: Moved to...
1278         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
1279         * sysdeps/powerpc/rshift.S: Moved to...
1280         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
1281         * sysdeps/powerpc/setjmp.S: Moved to...
1282         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
1283         * sysdeps/powerpc/stpcpy.S: Moved to...
1284         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
1285         * sysdeps/powerpc/strchr.S: Moved to...
1286         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
1287         * sysdeps/powerpc/strcmp.S: Moved to...
1288         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
1289         * sysdeps/powerpc/strcpy.S: Moved to...
1290         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
1291         * sysdeps/powerpc/strlen.S: Moved to...
1292         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
1293         * sysdeps/powerpc/sub_n.S: Moved to...
1294         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
1295         * sysdeps/powerpc/submul_1.S: Moved to...
1296         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
1297         * sysdeps/powerpc/elf/bzero.S: Moved to...
1298         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
1299         * sysdeps/powerpc/elf/start.S: Moved to...
1300         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
1301         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
1302         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
1303         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
1304         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
1305         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
1306         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
1307         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
1308         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
1309         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
1310         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
1311         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
1312         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
1313         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
1314         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
1315         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
1316         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
1317         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
1318         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
1319         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
1320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
1321         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
1322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
1323         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
1324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
1325         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
1326         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
1327         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
1328         powerpc/powerpc64.
1330 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
1332         * FAQ.in: Add powerpc64 to supported targets list. Also state the
1333         minimum gcc version is 3.2
1334         * README: Add powerpc64 to supported targets list.
1335         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
1336         Add powerpc64 and machine=powerpc/powerpc64.
1337         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
1338         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
1339         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
1340         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
1341         * sysdeps/powerpc/powerpc32/Dist: New file.
1342         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
1343         * sysdeps/powerpc/powerpc32/Implies: New file.
1344         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
1345         ($(with-fp) = no): Move test to powerpc32/Makefile.
1346         ($(subdir) = misc): Move to powerpc32/Makefile.
1347         ($(build-shared) = yes): Move to powerpc32/Makefile.
1348         ($(subdir) = csu): Move to powerpc32/Makefile.
1349         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
1350         * sysdeps/powerpc/powerpc32/Makefile: New file.
1351         * sysdeps/powerpc/Versions: Remove libgcc functions.
1352         * sysdeps/powerpc/powerpc32/Versions: New file.
1353         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
1354         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
1355         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
1356         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
1357         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
1358         ($machine): Add powerpc/powerpc64 to if ... | for
1359         libc_cv_slibdir=/libc64.
1360         (powerpc*): Set ldd_rewrite_script.
1361         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
1362         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
1363         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
1364         Add clone.S.
1365         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
1366         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
1367         functions.  Remove GLIBC_2.2 functions except getrlimit and
1368         setrlimit.  Moved them to ...
1369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
1371 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
1373         * libio/tst-atime.c: Include <errno.h>.
1374         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
1376 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
1378         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
1379         warnings of some compilers.
1380         (build_collating_symbol): Change the type of characters from
1381         "unsigned char" to "char", and append a cast to "char*" pointer in
1382         array subscript.
1383         (build_collating_symbol): Likewise.
1384         (build_equiv_class): Likewise.
1385         (build_charclass): Likewise.
1386         (re_compile_pattern): Remove incorrect cast.
1387         (re_compile_fastmap_iter): Change the type of characters from
1388         "unsigned char" to "char", and append a cast to "char*" pointer
1389         in array subscript.
1390         (parse_bracket_exp): Likewise.
1391         * posix/regex_internal.c (re_string_construct_common): Likewise.
1392         (re_string_allocate): Likewise.
1393         (re_string_construct): Likewise.
1394         (re_string_realloc_buffers): Likewise.
1395         (build_wcs_buffer): Likewise.
1396         (re_string_reconstruct): Likewise.
1397         * posix/regex_internal.h: Change the type of characters in
1398         re_string_t and bracket_elem_t from "unsigned char" to "char".
1399         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
1400         warnings of some compilers.
1401         (transit_state_bkref_loop): Change the type of characters from
1402         "unsigned char" to "char", and append a cast to "char*" pointer in
1403         array subscript.
1404         (check_node_accept_bytes): Likewise.
1405         (find_collation_sequence_value): Likewise.
1407 2002-09-04  Roland McGrath  <roland@redhat.com>
1409         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
1410         from 1024 to 65536, to avoid buffer overrun.
1412 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
1414         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
1416 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
1418         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
1419         for filesystem.
1421 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
1423         * posix/bug-regex11.c: New test.
1424         * posix/Makefile (tests): Add bug-regex11.
1426 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
1428         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
1429         newlocale.
1431 2002-09-02  Roland McGrath  <roland@redhat.com>
1433         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
1434         __pthread_initialize_minimal and __libc_check_standard_fds to
1435         match the generic version.
1437         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
1438         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
1440         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
1441         warnings on platorms where char is unsigned.
1443 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
1445         * version.h (VERSION): Bump to 2.2.93.
1447         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
1449 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
1451         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
1452         as relocated.
1454 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
1456         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
1458 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
1460         * locale/localeinfo.h (struct locale_data): Add private.ctype.
1461         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
1462         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
1463         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
1464         (__wcsmbs_load_conv): Remove const from argument.
1465         (_nl_cleanup_ctype): New proto.
1466         (get_gconv_fcts): New function.
1467         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
1468         (__wcsmbs_to_wc): Rename back to...
1469         (to_wc): ... this.
1470         (__wcsmbs_gconv_fcts): Rename to...
1471         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
1472         (lock): Removed.
1473         (__libc_setlocale_lock): New extern.
1474         (__wcsmbs_load_conv): Remove const from argument.
1475         Initialize new_category->private.ctype instead of a global
1476         variable.
1477         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
1478         update_function_ptrs.  No locking is necessary.
1479         (_nl_cleanup_ctype): New function.
1480         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
1481         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
1482         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1483         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
1484         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
1485         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
1486         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
1487         * wcsmbs/wctob.c (wctob): Likewise.
1488         * stdlib/mblen.c (mblen): Likewise.
1489         * stdlib/mbtowc.c (mbtowc): Likewise.
1490         * stdlib/wctomb.c (wctomb): Likewise.
1491         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
1492         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
1493         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
1494         Removed.
1496 2002-09-02  Roland McGrath  <roland@frob.com>
1498         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
1500 2002-09-01  Roland McGrath  <roland@redhat.com>
1502         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
1503         Variable declarations removed.
1504         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
1505         these functions to replace them.
1506         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
1507         functions plus an indirection rather than the old global variables.
1508         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
1509         Macros removed.
1510         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
1511         inline functions.
1512         * ctype/ctype-info.c: Revert last reversion back the other way.
1513         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
1514         Define real function versions of include/ctype.h inlines here.
1515         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
1516         __ctype_tolower_loc, __ctype_toupper_loc.
1517         * locale/lc-ctype.c: Revert last reversion back the other way.
1518         (_nl_postload_ctype): If current thread uses the global locale,
1519         update its tsd vars.
1520         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
1521         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
1522         CTYPE_TOLOWER, CTYPE_TOUPPER.
1524         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
1525         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
1526         from __libc_tsd_threadvar_location.
1527         (__libc_tsd_set, __libc_tsd_get): Update uses.
1529 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
1531         * ctype/ctype.h: Undo the patch before the last one.  Put back the
1532         macro definitions for the standard functions to access the
1533         classification and mapping arrays.
1534         * include/ctype.h: Partly revert last patch.  Move the macro
1535         definitions for the exported functions back to the public header.
1536         #undef all the macros defined here before redefining.
1537         * ctype/ctype-info.c: Revert last patch.
1538         * locale/lc-ctype.c: Revert last patch.
1540         * ctype/Makefile (routines): Add isctype.
1541         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
1542         * ctype/ctype.h: Add declaration of isctype.
1543         * include/ctype.h: Declare __isctype.
1544         * ctype/isctype.c: New file.
1546 2002-09-01  Roland McGrath  <roland@redhat.com>
1548         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
1549         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1551         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1553         * locale/findlocale.c (_nl_remove_locale): Don't search in
1554         _nl_locale_file_list if DATA->alloc is ld_archive.
1555         Use _nl_unload_locale to do the rest of the work.
1557         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1558         of new structure to UNDELETABLE.
1560         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1561         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1562         towlower, towupper): Macros removed.
1563         * ctype/ctype.h (__tobody): Put parens around macro argument.
1564         (__isctype): Macro removed.
1565         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1566         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1567         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1568         tolower, toupper): Macros and inlines removed.
1569         * include/ctype.h [! NOT_IN_libc]
1570         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1571         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1572         tolower, toupper): Define here instead, using _NL_CURRENT.
1573         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1574         using _NL_CURRENT.
1575         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1576         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1577         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1578         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1579         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1580         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1581         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
1582         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1583         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1584         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1585         (ISSORTMASK): Update use.
1586         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1587         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1588         (_nss_files_getENTNAME_r): Likewise.
1589         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1590         Likewise.
1592         * Makerules (all-nonlib): Renamed from all-tests.
1593         Include $(others) here too.
1594         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1595         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1596         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1597         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1598         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
1599         the program modules via cppflags-iterator.mk.
1600         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1601         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1603 2002-08-31  Roland McGrath  <roland@redhat.com>
1605         * posix/tst-getconf.sh: If no third arg, work with static linking.
1607         * locale/categories.def (LC_TIME): No more _nl_postload_time.
1609         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1610         [_NL_CURRENT_INDIRECT].
1612 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1614         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1616 2002-08-31  Roland McGrath  <roland@redhat.com>
1618         * locale/newlocale.c (__newlocale): Don't use strdup for names.
1619         Instead, make the single allocation of the structure larger to hold
1620         the name strings.
1621         * locale/duplocale.c (__duplocale): Don't strdup names individually.
1622         Instead, calculate size for a single allocation and copy into it.
1623         * locale/freelocale.c (__freelocale): Don't free names individually.
1625         * locale/newlocale.c (__newlocale): Don't leak old data or names.
1627         * locale/xlocale.h (__locale_struct): Move __names member last,
1628         for binary compatibility.
1630         * locale/duplocale.c (__duplocale): Free names from the right array.
1632         * locale/uselocale.c (__uselocale): Return previous locale when
1633         setting a new one.
1635         * locale/newlocale.c: Commit changes from 2002-08-30
1636         batch where I failed to commit this file:
1637         (__newlocale): Fill in __names array.
1639 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1641         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1642         errlist-compat.c if versioning==yes.
1644 2002-08-31  Andreas Jaeger  <aj@suse.de>
1646         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1647         external functions with hidden attribute.
1648         (elf_machine_rela): Optimize.
1650         * sysdeps/x86_64/memset.S: New file.
1651         * sysdeps/x86_64/bzero.S: New file.
1652         * sysdeps/x86_64/stpcpy.S: New file.
1653         * sysdeps/x86_64/strcat.S: New file.
1654         * sysdeps/x86_64/strchr.S: New file.
1655         * sysdeps/x86_64/strcpy.S: New file.
1656         * sysdeps/x86_64/strcspn.S: New file.
1657         * sysdeps/x86_64/strlen.S: New file.
1658         * sysdeps/x86_64/strpbrk.S: New file.
1659         * sysdeps/x86_64/strspn.S: New file.
1660         * sysdeps/x86_64/strcmp.S: New file.
1661         * sysdeps/x86_64/strtok_r.S: New file.
1662         * sysdeps/x86_64/strtok.S: New file.
1663         * sysdeps/x86_64/memcpy.S: New file.
1664         * sysdeps/x86_64/mempcpy.S: New file.
1666         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1668         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1670 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1672         * stdio-common/Makefile (generated): Add errlist-compat.c.
1674         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1676         * locale/localeinfo.h: Pretty printing.
1678         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1679         form_number handling.
1681 2002-08-31  Andreas Jaeger  <aj@suse.de>
1683         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1684         double tests.
1686         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1687         __start_context.
1689         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1691         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1693         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1694         registers used for passing args.
1696         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1697         all needed registers.
1699         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1700         registers.
1702         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1703         registers.
1705 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
1707         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1708         always_inline attribute.
1710 2002-08-30  Roland McGrath  <roland@redhat.com>
1712         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1713         presume it's the stub and bail without error.
1715         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1716         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1718         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1720         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1721         macros replace the i686 versions for 64-bit mode.
1723         * locale/duplocale.c: Include <string.h>.
1725         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1726         [_LIBC] (category_to_name): Don't define the function.  Instead
1727         define a macro using _nl_category_names.
1729         * locale/xlocale.h (struct __locale_struct): New member `__names'.
1730         * locale/xlocale.c (_nl_C_locobj): Update initializer.
1731         * locale/global-locale.c (_nl_global_locale): Likewise.
1732         * locale/duplocale.c (__duplocale): strdup __names elements.
1733         * locale/freelocale.c (__freelocale): Free __names elements.
1734         * locale/localename.c (_nl_current_names): Variable removed.
1735         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1736         * locale/localeinfo.h (_nl_current_names): Removed decl.
1737         * locale/setlocale.c: Use _nl_global_locale->__names in place of
1738         _nl_current_names throughout.
1740         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1742         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1743         and sys_nerr in the output file.
1745         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1746         * scripts/cpp: Just use the environment variable.
1748         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1749         * libio/tst-mmap-offend.c (do_test): Likewise.
1750         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1751         * libio/tst-mmap-eofsync.c (do_test): Likewise.
1752         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1754         * locale/localename.c: If the current locale is the global locale, use
1755         _nl_current_names; otherwise use the locale object.
1757 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1759         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1760         'm' to enable mmap I/O.
1761         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
1762         former wasn't used (anymore?).
1763         (_IO_FLAGS2_MMAP): New define.
1764         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1765         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1766         _IO_FLAGS2_MMAP bit is set.
1767         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1768         Enable mmap-using mode only if 'm' was set.
1770 2002-08-29  Roland McGrath  <roland@frob.com>
1772         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1774         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1775         Change argument type from int to intptr_t.
1777         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1778         initializer on [! _HURD_THREADVAR_H] (bad kludge).
1779         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1780         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1781         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
1783         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1785         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1787         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1789         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1790         * assert/assert-perr.c: Add libc_hidden_def.
1791         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1793         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1794         found at all.
1795         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
1796         sys_errlist stuff to ...
1797         * sysdeps/unix/sysv/linux/Versions: ... here.
1799         * mach/mach.h: Include <features.h>.
1801 2002-08-29  Roland McGrath  <roland@redhat.com>
1803         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1804         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1805         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1807         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1809         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1810         (norm_add_slashes): alloca -> __alloca
1812 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
1814         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1815         string_malloced, it is unlikely to be set.
1816         Only call free with non-NULL workspace.
1817         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1818         -mcpu=ultrasparc, not only tune for it.
1819         (ASFLAGS*): Set unconditionally.
1821         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1822         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
1823         p_vaddr/p_offset when computing LOADADDR.
1825 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1827         * version.h (VERSION): Bump to 2.2.92.
1829         * time/Makefile (tst-ftime_l-ENV): New variable.
1831         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1833         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1834         <U017A>, <U017D> and <U0179>. Add missing mappings.
1835         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1837         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1838         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
1839         (struct tostruct): Use ACRINDEX as type for link field.
1840         (statuc gmonparam): Likewise for froms.
1841         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1842         kcount and froms.
1843         (write_call_graph): Use correct type for from_index and to_index.
1844         * gmon/mcount.c: Use correct types for frompcindex and toindex
1845         variables.
1846         Patches by Dan Kegel <dank@kegel.com>.
1848         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1849         canonical name.
1851         * time/strptime.c (ISSPACE): New #define.  Use isspace or
1852         __isspace_l.  Replace calls to isspace.
1853         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1855 2002-08-29  Roland McGrath  <roland@redhat.com>
1857         * string/tst-strxfrm.c: Remove __ from function names.
1859 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1861         * include/wchar.h: Declare __mbsrtowcs_l.
1862         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1863         * wcsmbs/mbsrtowcs.c: Add support for compilation with
1864         USE_IN_EXTENDED_LOCALE_MODEL.
1865         * wcsmbs/mbsrtowcs_l: New file.
1866         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
1867         define as static.  Change all uses.
1868         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
1869         Change all callers.
1870         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1871         * time/strftime.c: When translating for the extended locale model
1872         use the _l functions.
1873         * time/Makefile (tests): Add tst-ftime_l.
1874         * time/tst-ftime_l.c: New file.
1876 2002-08-28  Roland McGrath  <roland@redhat.com>
1878         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1879         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1880         from _nl_find_locale ok if for _nl_C_name.
1882         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1883         iterator to refer to each category's _nl_current_LC_FOO symbol, so
1884         we know they are all linked in.
1886         * NEWS: Added 2.2.6 text from 2.2 branch version.
1888         * time/strptime.c (strptime_internal): Remove spurious const.
1890         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1891         _nl_select_era_entry): Moved to ...
1892         * time/era.c: ... here, new file.
1893         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1894         Add internal_function to definitions.  Take an additional argument
1895         giving the `struct locale_data *' to use.
1896         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1897         _nl_parse_alt_digit): Moved to ...
1898         * time/alt_digit.c: ... here, new file.
1899         * time/lc-time-cleanup.c: New file.
1900         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1901         * locale/localeinfo.h (_nl_postload_time): Remove decl.
1902         (_nl_cleanup_time): Declare it.
1903         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1904         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1905         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1906         * time/strftime.c: Pass locale data to helper functions.
1907         * time/strptime.c: Likewise.
1909         * locale/localeinfo.h (struct locale_data): New member `private'
1910         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1911         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1912         * locale/C-collate.c: Update initializer.
1913         * locale/C-identification.c: Likewise.
1914         * locale/C-measurement.c: Likewise.
1915         * locale/C-telephone.c: Likewise.
1916         * locale/C-address.c: Likewise.
1917         * locale/C-name.c: Likewise.
1918         * locale/C-paper.c: Likewise.
1919         * locale/C-time.c: Likewise.
1920         * locale/C-numeric.c: Likewise.
1921         * locale/C-monetary.c: Likewise.
1922         * locale/C-messages.c : Likewise.
1923         * locale/C-ctype.c: Likewise.
1925         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1926         Redefine this too.
1928 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1930         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1931         (_rtld_global): Use it.
1933         * sysdeps/gnu/Dist: Remove errlist-compat.c.
1934         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1935         object directory.  Pass all Versions files to the awk script.
1936         * sysdeps/gnu/errlist-compat.c: Removed.
1937         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1938         first Versions file in the search path which has them.
1939         Allow multiple errlist symbol versions to have the same count of
1940         errors.
1941         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1942         of "errlist-compat.c".
1943         * sysdeps/gnu/errlist.c: Regenerated.
1944         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1945         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1946         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1947         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1948         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1949         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1950         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1951         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1952         ECANCELLED if not defined by kernel headers.
1953         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1954         already defined by kernel headers.
1955         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1956         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1957         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1958         is a macro.
1959         * Versions.def (GLIBC_2.3) [librt]: Add.
1961         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1963 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1965         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1966         missing comma to .type directive.
1968 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1970         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1971         unconditionally.
1972         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1973         check.
1974         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1976 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1978         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
1979         check to close_and_out close.  Replace return NULL statements where
1980         fd might be >= 0 with goto close_and_out.  Close the file descriptor
1981         when it is no longer needed.
1983 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1985         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
1986         string constants.
1987         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1988         * sysdeps/arm/dl-machine.h: Likewise.
1989         * sysdeps/cris/dl-machine.h: Likewise.
1990         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1991         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
1993 2002-08-28  Roland McGrath  <roland@redhat.com>
1995         * Makeconfig (default_cflags): Revert unintended change.
1997 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1999         * version.h (VERSION): Bump to 2.2.91.
2001         * configure.in: Disable TLS support by default for now.
2003         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
2005         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
2006         warnings.
2008         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
2010         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
2011         fprintf/fwprintf calls.
2013 2002-08-28  Roland McGrath  <roland@redhat.com>
2015         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
2016         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
2018         * locale/setlocale.c: Declare postload functions weak.
2020         * elf/tst-tls1-static.c: New file.
2021         * elf/tst-tls2-static.c: New file.
2022         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
2024         Make uselocale support static linking.
2025         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
2026         This file again just defines _nl_C_locobj.
2027         (_nl_C_locobj): Use a categories.def iterator in the initializer.
2028         * locale/global-locale.c: New file.  Define _nl_global_locale here,
2029         using all weak references in the initializer.
2030         * locale/Makefile (aux): Add global-locale.
2031         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
2032         these unconditional, along with the tsd decl.
2033         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
2034         Define it under these conditions.
2035         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
2036         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
2037         `extern __thread struct locale_data *const *'.
2038         [NL_CURRENT_INDIRECT]
2039         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
2040         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
2041         the thread variable _nl_current_LC_FOO and also a special absolute
2042         symbol _nl_current_LC_FOO_used.
2043         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
2044         Set each _nl_current_LC_FOO symbol to point into the new locale,
2045         using weak references to test if _nl_current_LC_FOO_used was linked in.
2046         * locale/setlocale.c [! SHARED]: Replace this conditional ...
2047         [NL_CURRENT_INDIRECT]: ... with this one.
2048         (_nl_current, _nl_C): Variables removed.
2049         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
2050         weak references to _nl_current_LC_FOO_used.
2051         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
2052         (free_category): New function, broken out of ...
2053         (free_mem): ... here.  Call that.
2054         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
2055         instead of a loop.
2057         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
2058         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
2059         it is already absolute.
2061         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
2062         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
2063         [$(build-static) = yes] (tests-static): New variable.
2064         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
2066 2002-08-26  Christoph Hellwig  <hch@lst.de>
2068         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
2069         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
2071 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2073         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
2075         * sysdeps/s390/Dist: Add bits/link.h.
2077         * sysdeps/sh/Dist: New file.
2079         * sysdeps/ia64/Dist: Add ia64libgcc.S.
2081         * sysdeps/wordsize-32/Dist: New file.
2083         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
2084         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
2085         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
2087         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
2088         sys/personality.h.
2090         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
2091         sparc/dl-brk.S.
2093         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
2095         * sysdeps/unix/bsd/sun/Dist: New file.
2097         * sysdeps/unix/bsd/osf/Dist: New file.
2099         * sysdeps/unix/bsd/hp/Dist: New file.
2101         * sysdeps/unix/arm/Dist: New file.
2103         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
2105         * sysdeps/mach/hurd/Dist: Add set-init.c.
2107         * sysdeps/i386/Dist: Add bits/link.h.
2109         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
2111         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
2113         * locale/Makefile (distribute): Add hashval.h.
2115         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
2117         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
2119         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
2120         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
2121         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
2122         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
2123         implementations.
2124         * libio/stdio.h: Likewise.
2125         * locale/locale.h: Likewise.
2126         * math/math.h: Likewise.
2127         * math/bits/mathcalls.h: Likewise.
2128         * setjmp/setjmp.h: Likewise.
2129         * signal/signal.h: Likewise.
2130         * stdlib/stdlib.h: Likewise.
2131         * string/string.h: Likewise.
2132         * time/time.h: Likewise.
2133         * wcsmbs/wchar.h: Likewise.
2134         * wctype/wctype.h: Likewise.
2136 2002-08-28  Roland McGrath  <roland@redhat.com>
2138         * locale/tst-C-locale.c (run_test): Remove __ from function names.
2140 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2141             Roland McGrath <roland@redhat.com>
2143         * locale/hashval.h (compute_hashval): Use prototype defn.
2144         (hashval_t): New macro, defined to unsigned long int
2145         if not already defined.
2146         (compute_hashval): Return hashval_t instead of unsigned long int.
2147         * locale/loadarchive.c (hashval_t): New macro.
2148         * locale/programs/locarchive.c: Include hashval.h directly instead
2149         of simple-hash.h.
2150         (compute_hashval, hashval_t): Define these macros first.
2151         (insert_name): Use archive_hashval instead of compute_hashval.
2152         (add_locale, delete_locales_from_archive): Likewise.
2154 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2156         * locale/programs/locarchive.c (insert_name): Suppress warnings about
2157         hash collisions if be_quiet.
2159 2002-08-27  Roland McGrath  <roland@redhat.com>
2161         * locale/locale.h (__newlocale, __duplocale, __freelocale,
2162         __uselocale): Don't declare these any more.
2163         * include/locale.h (__uselocale): Declare here instead, using __typeof.
2165         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
2166         and treat it as an EOF return.
2167         * sysdeps/unix/readdir_r.c: Likewise.
2169         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
2170         From Alexandre Oliva <aoliva@redhat.com>.
2171         * sysdeps/gnu/errlist-compat.c: Regenerated.
2173 2002-08-27  Brian Youmans  <3diff@gnu.org>
2175         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
2176         wording at request of copyright holder Stephen Moshier.
2177         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2178         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2179         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2180         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2181         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2182         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2183         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2184         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2185         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2186         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2187         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2188         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2189         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2190         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2192 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2194         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
2195         * ctype/ctype-extn.c (isblank_l): Add weak alias.
2196         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
2197         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
2198         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
2199         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
2200         * wctype/iswctype_l.c (iswctype_l): Likewise.
2202 2002-08-27  Roland McGrath  <roland@redhat.com>
2204         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
2206         * ctype/ctype.h (__exctype_l): Don't declare __ name.
2207         * stdlib/stdlib.h: Don't declare __*_l names.
2208         * include/stdlib.h: Declare them here instead.
2209         * include/string.h: Don't declare __*_l names.
2210         * string/string.h: Declare them here instead.
2211         * time/time.h: Don't declare __*_l names.
2212         * include/time.h: Declare them here instead.
2213         * wcsmbs/wchar.h: Don't declare __*_l names.
2214         * include/wchar.h: Declare them here instead.
2215         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
2216         Don't declare __*_l names.
2217         * include/wctype.h: Declare them here instead.
2218         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
2219         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
2220         * locale/langinfo.h: Don't declare __nl_langinfo_l.
2221         * include/langinfo.h: Declare it here with __typeof.
2223         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
2224         instead, taking an extra __locale_t argument.
2225         * time/Makefile (routines): Add strptime_l.
2226         * time/time.h (__strptime_l, strptime_l): Declare them.
2227         * time/strptime_l.c: New file.
2229         * time/time.h (__strftime_l, strftime_l): Declare them.
2230         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
2231         * time/strftime_l.c: New file.
2232         * time/wcsftime_l.c: New file.
2233         * time/Makefile (routines): Add strftime_l, wcsftime_l.
2234         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
2235         strftime_l, wcsftime_l.
2236         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
2237         or __wcsftime_l instead, taking an extra __locale_t argument.
2239         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
2240         (libc: GLIBC_2.3): ... here.
2242 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
2244         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
2246         * Makefile (distribute): Add LICENSES.
2248         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
2249         sys/debugreg.h.
2251         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
2253         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
2255         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
2257         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
2259         * sysdeps/mach/hurd/alpha/Dist: New file.
2261         * sysdeps/arm/Dist: Add bits/link.h.
2263         * sunrpc/Makefile: Distribute thrsvc.
2265         * stdio-common/Makefile: Remove more left-overs from old stdio.
2267         * include/linewrap.h: Removed.
2269         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
2271         * intl/Makefile (distribute): Add plural-eval.c.
2273 2002-08-27  Roland McGrath  <roland@redhat.com>
2275         * manual/sysinfo.texi (Mount Information): Correct file name to macro
2276         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
2277         Say mtab is in either /var/run or /etc.
2279 2002-08-26  Roland McGrath  <roland@redhat.com>
2281         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
2282         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
2284         * sysdeps/gnu/Versions: New file.
2285         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
2286         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
2287         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
2288         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
2289         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
2290         and _sys_nerr_internal instead of anything else.  Make it include
2291         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
2292         Make it emit some asm magic if [EMIT_ERR_MAX].
2293         * sysdeps/gnu/errlist.c: Regenerated.
2294         * sysdeps/gnu/errlist-compat.awk: New file.
2295         * sysdeps/gnu/errlist-compat.c: New file (generated).
2296         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
2297         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
2298         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
2299         (SYS_ERRLIST, SYS_NERR): Macros removed.
2300         (sys_nerr, _sys_nerr): Remove these weak aliases.
2301         * sysdeps/unix/sysv/linux/errlist.c: File removed.
2302         * sysdeps/unix/sysv/linux/errlist.h: File removed.
2303         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
2305         * include/libc-symbols.h (declare_symbol): New macro.
2306         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
2307         * configure.in: New check to define it.
2308         * configure: Regenerated.
2310 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
2312         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
2313         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
2315         * Make-dist: Remove traces of old stdio.
2316         * Makeconfig: Likewise.
2318         * locale/Makefile (localedef-aux): New variable.  Only md5
2319         assigned to it.  These files are not ddistributed in this directory.
2321         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
2322         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
2323         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
2325         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
2327         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
2328         set h_errno to NO_RECOVERY [PR libc/4360].
2330 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2332         * libio/Makefile (tests): Add bug-fopena+.
2333         * libio/bug-fopena+.c: New file.
2334         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
2335         file for _IO_IS_APPENDING if file isn't opened for reading, too.
2337         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
2339         * locale/xlocale.c: Fix the last change.  The variable still has
2340         to end in _data.
2341         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
2342         (__libc_tsd_set): Add _data prefix to variable name.
2344 2002-08-26  Roland McGrath  <roland@redhat.com>
2346         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
2347         macro with inline function.
2348         (sigset_get_old_mask): Likewise.
2349         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
2350         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2351         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2352         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
2353         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
2354         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
2355         values.
2356         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
2357         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
2359 2002-07-06  Bruno Haible  <bruno@clisp.org>
2361         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
2362         sigset_get_old_mask): Make it work with larger sigset_t.
2363         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
2364         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2365         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2367 2002-08-26  Roland McGrath  <roland@redhat.com>
2369         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
2370         * manual/filesys.texi (File Times): Document lutimes and futimes.
2371         * misc/Makefile (routines): Add them.
2372         * misc/Versions (libc: GLIBC_2.3): Likewise.
2373         * sysdeps/generic/lutimes.c: New file.
2374         * sysdeps/generic/futimes.c: New file.
2375         * sysdeps/mach/hurd/lutimes.c: New file.
2376         * sysdeps/mach/hurd/futimes.c: New file.
2378         * manual/filesys.texi (File Times): Add explicit note about null
2379         pointer argument to utimes.
2381 2002-08-26  Roland McGrath  <roland@frob.com>
2383         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
2384         (__ifreq): Add a cast.  Remove an unused variable.
2386         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
2387         _HURD_THREADVAR_LOCALE.
2389 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
2391         * posix/regexec.c (re_search_stub): Return correct match length
2392         if start != 0.
2393         * posix/bug-regex10.c: New test.
2394         * posix/Makefile (tests): Add bug-regex10.
2396 2002-08-26  Brian Youmans  <3diff@gnu.org>
2398         * COPYING.LIB: Replaced with fresh copy from
2399         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
2400         suggested copying permission notice now says version 2.1 instead
2401         of version 2.
2403         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
2404         from Library GPL.
2405         * crypt/crypt_util.c: Likewise.
2406         * crypt/ufc.c: Likewise.
2407         * elf/dl-conflict.c: Likewise.
2408         * elf/dl-iteratephdr.c: Likewise.
2409         * iconv/iconvconfig.h: Likewise.
2410         * malloc/arena.c: Likewise.
2411         * malloc/hooks.c: Likewise.
2412         * malloc/malloc.c: Likewise.
2413         * posix/glob/Makefile.ami: Likewise.
2414         * posix/glob/Makefile.in: Likewise.
2415         * stdlib/gmp-impl.h: Likewise.
2416         * stdlib/gmp.h: Likewise.
2417         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
2418         * sysdeps/generic/strnlen.c: Likewise.
2419         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
2420         * sysdeps/mach/hurd/recvmsg.c: Likewise.
2421         * sysdeps/mach/hurd/sendmsg.c: Likewise.
2422         * sysdeps/mach/hurd/spawni.c: Likewise.
2423         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
2424         * sysdeps/mach/powerpc/sysdep.h: Likewise.
2425         * sysdeps/mach/powerpc/thread_state.h: Likewise.
2426         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
2427         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
2428         * sysdeps/x86_64/gmp-mparam.h: Likewise.
2430         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
2431         Lesser GPL copying permission notice from 2 to 2.1.
2432         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
2433         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
2434         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2435         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
2436         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2437         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2438         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2439         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2440         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2441         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2442         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2443         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2444         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2445         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2446         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2447         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2448         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2449         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2450         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2451         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2452         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2453         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2454         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2455         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2456         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2457         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2458         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2459         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2460         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2461         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2462         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2463         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2464         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2465         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2466         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2467         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2468         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2469         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2470         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2471         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2472         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2473         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2474         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2475         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2476         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2477         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2478         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2479         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2480         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2481         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2482         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2483         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2484         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2485         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2486         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2488         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
2489         Moshier and Lesser GPL copying permission notice, per license from
2490         Moshier.
2491         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2492         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2493         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2494         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2495         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2496         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2497         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2498         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2499         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2500         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2501         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2502         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2503         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2504         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2506         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
2507         notice, per license from copyright holder Stephen Moshier.
2508         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2509         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2510         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2511         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2512         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2513         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2514         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2515         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2516         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2518 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2520         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
2521         (shared-only-routines): Likewise.
2523 2002-08-26  Roland McGrath  <roland@redhat.com>
2525         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
2526         name of "", store a null pointer instead.
2528         * configure.in (elf): Set to yes for freebsd*, netbsd*.
2529         * configure: Regenerated.
2531         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
2532         Initialize this instead of __libc_tsd_LOCALE_data.
2534         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
2535         ptsname_r to EINVAL.
2537         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
2539         * rt/Makefile: Revert last change, it was inappropriate to presume aio
2540         implementations depend on pthreads.
2541         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
2542         * rt/tst-aio64.c (do_test): Likewise.
2543         * rt/tst-aio2.c (do_test): Likewise.
2544         * rt/tst-aio3.c (do_test): Likewise.
2545         * rt/tst-aio4.c (do_test): Likewise.
2546         * rt/tst-aio5.c (do_test): Likewise.
2547         * rt/tst-aio6.c (do_test): Likewise.
2548         * rt/tst-aio7.c (do_test): Likewise.
2550         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2551         void so as to avoid compiler warnings.
2553         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2554         _IO_wide_data_FD, which is never used here.
2556         * libio/iofread.c
2557         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2558         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2559         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2561         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2562         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2564         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2565         (closelog): Likewise.
2567 2002-07-06  Bruno Haible  <bruno@clisp.org>
2569         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2571         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2572         * sysdeps/unix/alpha/pipe.S: ... here.
2573         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2575         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2577         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2578         * sysdeps/unix/i386/fork.S: Likewise.
2579         * sysdeps/unix/i386/pipe.S: Likewise.
2580         * sysdeps/unix/i386/wait.S: Likewise.
2582         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2583         * sysdeps/unix/arm/fork.S: Likewise.
2585         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2586         arguments.
2587         (DO_CALL): Swap argument order.
2588         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2589         arguments.
2590         (DO_CALL): Swap argument order.
2591         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2592         arguments.
2593         (DO_CALL): Swap argument order.
2594         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2595         arguments.
2596         (DO_CALL): Swap argument order.
2597         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2598         arguments.
2599         (DO_CALL): Swap argument order.
2600         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2601         arguments.
2602         (DO_CALL): Swap argument order.
2603         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2604         arguments.
2605         (DO_CALL): Swap argument order.
2607         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2608         (L): Define right for ELF.
2609         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2610         Now defined in sysdeps/i386/sysdep.h.
2612         * sysdeps/posix/readv.c: Ansify function definition.
2613         * sysdeps/posix/writev.c: Likewise.
2615         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2616         have the same size. Avoid direct cast from size_t to off_t.
2618         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2619         nul byte in entry[n].ut_user.
2620         (simulate_logout): Likewise.
2622         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2623         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2624         existence of corresponding members of 'struct utmp'.
2625         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2626         !_HAVE_UT_TYPE.
2628         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2629         allocate a buffer of at least BUFSIZ bytes, not just of
2630         sizeof (struct dirent).
2632         * sysdeps/generic/glob.c: Include <limits.h>.
2633         (NAME_MAX): Define a fallback.
2634         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2635         stack.
2636         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2637         (main): Allocate enough room for a 'struct dirent64' on the stack.
2638         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2639         'struct dirent'.
2641         * sysdeps/unix/sysv/linux/init-first.c: Don't include
2642         kernel-features.h.
2644         * inet/htontest.c: Include <sys/types.h>.
2646         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2648         * include/sys/sysctl.h: Comment fix.
2650         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2651         _dl_load_lock.
2652         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2654         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2656         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2657         (__getpeername): New alias.
2658         (__getsockname): New alias.
2659         (__socket): New alias.
2661         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2663         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2664         (__fcntl_internal): New alias.
2665         (__profil): New alias.
2667 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2669         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2670         entry was for getaddr* lookup or not.  Add only matching cache
2671         entry.  Change all callers [PR libc/4317].
2673         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2674         finding the read position [PR libc/4265].
2675         * libio/Makefile (tests): Add bug-rewind2.
2676         * libio/bug-rewind2.c: New file.
2678         * libio/bug-rewind.c: Fix creation of temp file.
2680 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2682         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2683         neither SUCCESS nor TRYAGAIN [PR libc/4259].
2684         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2685         to ENOENT if no entry is found.
2686         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2687         failure.
2688         * nis/nss_compat/compat-initgroups.c: Likewise.
2689         * nis/nss_compat/compat-pwd.c: Likewise.
2690         * nis/nss_compat/compat-spwd.c: Likewise.
2691         * nis/nss_nis/nis-alias.c: Likewise.
2692         * nis/nss_nis/nis-ethers.c: Likewise.
2693         * nis/nss_nis/nis-grp.c: Likewise.
2694         * nis/nss_nis/nis-hosts.c: Likewise.
2695         * nis/nss_nis/nis-initgroups.c: Likewise.
2696         * nis/nss_nis/nis-netgrp.c: Likewise.
2697         * nis/nss_nis/nis-network.c: Likewise.
2698         * nis/nss_nis/nis-proto.c: Likewise.
2699         * nis/nss_nis/nis-publickey.c: Likewise.
2700         * nis/nss_nis/nis-pwd.c: Likewise.
2701         * nis/nss_nis/nis-rpc.c: Likewise.
2702         * nis/nss_nis/nis-service.c: Likewise.
2703         * nis/nss_nis/nis-spwd.c: Likewise.
2704         * resolv/nss_dns/dns-host.c: Likewise.
2705         * resolv/nss_dns/dns-network.c: Likewise.
2706         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2707         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2708         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2709         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2710         * nis/nss_nisplus/nisplus-network.c: Likewise.
2711         * nis/nss_nisplus/nisplus-proto.c: Likewise.
2712         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2713         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2714         * nis/nss_nisplus/nisplus-service.c: Likewise.
2715         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2716         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2717         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2718         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2719         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2721         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2722         declaring __restore and __restore_rt as hidden (if possible).
2724 2002-08-25  Roland McGrath  <roland@redhat.com>
2726         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2728         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2729         (getutent_r_file, internal_getut_r): Updated all callers.
2730         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2732 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2734         * locale/programs/locale.c: Don't print aliases for non-existing
2735         locales for 'locale -a'.
2736         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2738 2002-07-19  H.J. Lu  <hjl@gnu.org>
2740         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2742 2002-07-16  H.J. Lu  <hjl@gnu.org>
2744         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2745         sys/personality.h.
2746         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2748 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2750         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2751         not moved ahead of the fputs call.
2752         * elf/tst-tlsmod2.c (in_dso): Likewise.
2753         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2754         * elf/tst-tlsmod4.c (in_dso): Likewise.
2756 2002-08-25  Andreas Schwab  <schwab@suse.de>
2758         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2760 2002-08-25  Roland McGrath  <roland@redhat.com>
2762         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2763         resetting handler, to avoid the possibility of a spurious SIGALRM
2764         delivered to the user's handler.
2765         Reported by Amit D. Chaudhary <amitc@brocade.com>,
2767         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
2768         set -fkeep-inline-functions, which is not needed for the current file.
2770         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2771         (_dl_setup_hash): Add attribute_hidden.
2772         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2773         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2774         (_dl_new_object, _dl_map_object_deps): Likewise.
2775         (_dl_map_object_deps_internal): Remove decl.
2776         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2778         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2779         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2780         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2781         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2782         instead relying on the compiler to produce only GOTOFF variable refs.
2784 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2786         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
2788         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2789         inline to avoid defining it in every file which includes this header.
2791         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2792         defining DONT_USE_BOOTSTRAP_MAP.
2794         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2795         * libio/tst-mmap-setvbuf.c (main): Likewise.
2796         * libio/tst-widetext.c (main): Likewise.
2798         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2799         message.
2800         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2801         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2803         * sysdeps/i386/elf/configure.in: Unconditionally define
2804         PI_STATIC_AND_HIDDEN.
2805         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2806         PI_STATIC_AND_HIDDEN is defined as well.
2807         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2809 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
2811         * sysdeps/ia64/bzero.S: Define __bzero as well.
2813         * locale/programs/charmap.c (charmap_new_char): Don't use
2814         ULONG_MAX as maximum UCS4 value.
2816         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2818         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2820         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2821         * malloc/malloc.c (mALLINFo): Likewise.
2823         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2825         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2826         examining result of _IO_do_flush call.
2828         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2829         Use prec not spec when sizing buffers.
2831         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2832         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2833         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2834         * stdio-common/vfscanf.c (inchar): Likewise.
2835         * misc/efgcvt_r.c (fcvt_r): Likewise.
2836         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2837         * elf/readlib.c (process_file): Likewise.
2838         * elf/sprof.c (load_profdata): Likewise.
2839         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2840         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2841         * locale/programs/charmap.c (charmap_read): Likewise.
2842         * libio/fileops.c: Likewise.
2843         * libio/fmemopen.c: Likewise.
2844         * stdlib/strtod.c: Likewise.
2845         * elf/dl-load.c: Likewise.
2846         * iconv/iconvconfig.c: Likewise.
2847         * iconv/iconv_prog.c (process_block): Likewise.
2848         * elf/rtld.c (dl_main): Likewise.
2850         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2851         macro to calm down the compiler.
2853         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2855         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2857         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2858         placement of errno definition.
2859         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2860         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2861         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2862         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2863         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2865         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2866         from 1024 to 65536, to avoid buffer overrun.
2868 2002-08-16  Paul Eggert  <eggert@twinsun.com>
2870         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2871         from 1024 to 65536, to avoid buffer overrun.
2872         * resolv/res_query.c (MAXPACKET): Likewise.
2874 2002-08-24  Andreas Jaeger  <aj@suse.de>
2876         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2878 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
2880         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2881         two52 locally.
2882         (log2): Likewise.
2883         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2884         Patch by Simon Gee <simong@agile.tv>.
2886         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2887         Prefer reading /proc/stat since it is more uniform across
2888         architectures.
2890         * manual/texinfo.tex: Update to latest official version.
2892         * sysvipc/sys/shm.h: Remove SHMLBA definition.
2893         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2894         * sysdeps/gnu/bits/shm.h: Likewise.
2895         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2896         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2897         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2898         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2899         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2900         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2901         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2902         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2903         since this is what the kernel says.
2905         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2906         since ssize_t is needed as well.  Replace const with __const.
2908 2002-08-23  Roland McGrath  <roland@redhat.com>
2910         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2911         __malloc_hook, __realloc_hook, __memalign_hook,
2912         __after_morecore_hook): Variable definitions moved to ...
2913         * malloc/malloc.c: ... here, so as to be before all references.
2915         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2916         global variable reference in an unused asm parameter, to ensure the
2917         compiler has set up the GOT register before we use it.
2919         * malloc/hooks.c: Move variable definitions ahead of uses.
2920         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2921         initializers that make reference to variables they define.
2923 2002-08-23  Andreas Jaeger  <aj@suse.de>
2925         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2926         alloca, free, qsort.
2928         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2930         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2931         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2933         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2934         <hch@lst.de>.
2935         * sysdeps/generic/fgetxattr.c: New file.
2936         * sysdeps/generic/flistxattr.c: New file.
2937         * sysdeps/generic/fremovexattr.c: New file.
2938         * sysdeps/generic/fsetxattr.c: New file.
2939         * sysdeps/generic/getxattr.c: New file.
2940         * sysdeps/generic/listxattr.c: New file.
2941         * sysdeps/generic/lgetxattr.c: New file.
2942         * sysdeps/generic/llistxattr.c: New file.
2943         * sysdeps/generic/lremovexattr.c: New file.
2944         * sysdeps/generic/lsetxattr.c: New file.
2945         * sysdeps/generic/removexattr.c: New file.
2946         * sysdeps/generic/setxattr.c: New file.
2947         * misc/Makefile (headers): Add sys/xattr.h.
2948         (routines): Add *xattr calls.
2949         * misc/Versions: Add *xattr calls with version 2.3.
2950         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2951         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2952         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2953         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2954         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2955         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2956         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2957         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2959 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
2961         * sysdeps/powerpc/elf/libc-start.c
2962         (__cache_line_size): Declare.
2963         (__aux_init_cache): New function.
2964         (__libc_start_main): Change type of `auxvec' parameter to
2965         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
2966         __aux_init_cache.
2967         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2968         (__cache_line_size): Declare.
2969         (__aux_init_cache): New function.
2970         (DL_PLATFORM_INIT): Define.
2971         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2972         value to select the correct stride for dcbz.
2974 2002-08-22  Andreas Jaeger  <aj@suse.de>
2976         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
2977         shmat.
2979 2002-08-22  Roland McGrath  <roland@redhat.com>
2981         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
2982         position indicated by locrectab against file bounds before rounding to
2983         page size.  In mapping loop, always set TO before breaking out of
2984         contiguous range coalescing loop.
2986         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
2987         (or MAP_COPY if available) instead of MAP_SHARED.
2989         * scripts/firstversions.awk: When encountering a version newer than
2990         the specified earliest version, be sure to emit the specified earliest
2991         version first if any renaming of an older version to that has been.
2993 2002-08-21  Roland McGrath  <roland@redhat.com>
2995         * configure.in: Make GCC version check require 3.[2-9]* and no others.
2996         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
2997         (Configuring and compiling): Don't mention older GCC versions any more.
2998         * INSTALL: Regenerated.
3000         * manual/install.texi (Configuring and compiling, Installation,
3001         Running make install, Linux): Linux -> GNU/Linux where appropriate.
3003         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
3004         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
3005         and with noinline otherwise.  Remove hack alloca use to prevent
3006         inlining, we can ask for it explicitly nowadays.
3008         * dlfcn/bug-dlsym1.c: New file.
3009         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
3010         * dlfcn/Makefile (distribute): Add them.
3011         (tests): Add bug-dlsym1 here.
3012         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
3013         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
3014         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
3016 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
3018         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
3019         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
3020         before relocation.
3021         (_dl_start): Don't use local bootstrap_map variable if
3022         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
3023         pass bootstrap_map to _dl_start_final in this case either.  Don't
3024         pass start_time to _dl_start_final ever.
3025         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
3027         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
3028         This cripples the scope lists necessary to search for symbols in
3029         dependencies which are not in the global scope.
3031         * include/setjmp.h (__libc_longjmp): Add declaration.
3033 2002-08-21  Andreas Jaeger  <aj@suse.de>
3035         * sysdeps/x86_64/_mcount.S: Fix assembler.
3037         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
3038         with biarch support.
3040 2002-08-21  Andreas Jaeger  <aj@suse.de>
3042         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
3044         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
3046         * sysdeps/x86_64/machine-gmon.h: New file.
3047         * sysdeps/x86_64/_mcount.S: New file.
3049 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
3051         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
3052         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
3053         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
3054         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
3055         to TL_INIT_TP.  Otherwise pass 1.
3056         * include/link.h (struct link_map): Add l_tls_tp_initialized.
3057         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
3059 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
3061         * locale/programs/localedef.c (add_to_readlist): Error about
3062         circular dependencies only if the locale in question hasn't
3063         been finished.
3064         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
3065         CTYPE_LOCALE to load_locale.
3066         * locale/programs/locfile.c (locfile_read): Don't include
3067         unneeded but available locales in locale_mask.
3069         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
3070         print any messages about enlarging archive.
3072 2002-08-20  Brian Youmans  <3diff@gnu.org>
3074         * manual/contrib.texi: Removed licenses, added acknowledgements
3075         for contributions by Intel, IBM, Craig Metz.
3076         * LICENSES: New file, contains the text of all non-FSF licenses in the
3077         distribution that require putting the notice in the accompanying
3078         documentation.
3079         * README.template, README: Mention LICENSES.
3081         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
3082         new one modelled on the modern BSD license, per recent letter
3083         of permission from CMU.
3084         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
3086         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
3087         from IBM to FSF, per the recent Software Letter.  Changed the
3088         distribution terms from GPL to LGPL.
3090         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
3091         copying permission notice (Lesser GPL), per recent IBM Software Letter.
3092         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
3093         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
3094         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
3095         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
3096         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
3097         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
3098         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
3099         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
3101         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
3102         from IBM to FSF, per the recent Software Letter.  Corrected the
3103         text of the copying permission notice to say Lesser GPL instead
3104         of GPL in warranty disclaimer paragraph.
3105         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
3106         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
3107         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
3108         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
3109         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
3110         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
3111         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
3112         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
3113         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
3114         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
3115         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
3116         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
3117         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
3118         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
3119         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
3120         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
3121         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
3122         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
3123         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
3124         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
3125         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
3127         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
3128         permission notice to say Lesser GPL instead of GPL in warranty
3129         disclaimer paragraph.
3130         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
3131         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3132         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3133         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3134         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3135         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3136         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3137         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3138         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3139         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3140         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
3141         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
3142         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
3143         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
3144         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
3145         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
3146         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
3147         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3148         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3149         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3150         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
3151         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
3152         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
3154 2002-08-20  Roland McGrath  <roland@redhat.com>
3156         Fix ABI compatibility with libc compiled with old tools on powerpc.
3157         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3158         and Jack Howarth <howarth@bromo.med.uc.edu>.
3159         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
3160         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
3161         pass -DHAVE_DOT_HIDDEN for these files.
3162         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
3163         __floatdisf.
3164         * sysdeps/powerpc/divdi3.c: New file.
3165         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
3166         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
3168 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
3170         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
3171         partially overlapping mappings.  Remove unneeded (char *) casts.
3172         Never allow duplication of ranges in mapped areas.
3174 2002-08-20  Roland McGrath  <roland@redhat.com>
3176         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
3177         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
3179 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
3181         * include/unistd.h: Don't hide _exit.
3183         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
3184         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
3185         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
3186         argument 1 to TLS_INIT_TP.
3187         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
3189         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
3191         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
3192         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
3193         memory allocation to...
3194         (allocate_dtv): ...here.  New function.
3195         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
3196         call allocate_dtv instead of _dl_allocate_tls_storage.
3197         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
3198         (_dl_get_tls_static_info): New function.
3199         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
3200         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
3202 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
3204         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
3205         immediately if result == NULL.
3207 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
3209         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
3211 2002-08-18  Roland McGrath  <roland@frob.com>
3213         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
3214         instead of __file_name_split.
3215         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
3217         * sysdeps/mach/hurd/dl-sysdep.c
3218         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
3219         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
3221 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
3223         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
3224         in change before last: MAX -> MIN.
3226 2002-08-15  Roland McGrath  <roland@redhat.com>
3228         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
3229         if seek would go past it.
3230         (mmap_remap_check): If file position is at or past EOF after check,
3231         leave read pointers at EOF and don't seek.
3233         * libio/tst-mmap-offend.c: New file.
3234         * libio/Makefile (tests): Add it.
3236         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
3237         the name as passed, rather than the name in the archive dictionary.
3239 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
3241         * csu/Makefile: Define elide-routines.os not static-only-routines.
3243         * include/sched.h (__clone): Add varargs at the end.
3245         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
3246         case.
3247         (TLS_INIT_HELPER): If defined, use it.
3248         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
3250 2002-08-15  Roland McGrath  <roland@redhat.com>
3252         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
3253         on L->l_prev; it can happen under rtld --verify too.
3255         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
3256         header separately, just map an initial window of 2MB from the file
3257         and remap if that is not large enough to cover the whole header.
3259 2002-08-15  Andreas Jaeger  <aj@suse.de>
3261         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
3262         version 2.3.
3263         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3264         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
3265         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
3266         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
3267         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
3268         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3269         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3270         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
3271         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
3272         Patch by Andreas Gruenbacher <agruen@suse.de>.
3274         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
3276 2002-08-14  Roland McGrath  <roland@redhat.com>
3278         * locale/locarchive.h (struct locale_category_data): Give this name to
3279         the type of locale_data_t's elements.
3280         * locale/programs/locarchive.c (cmpcategorysize): New static function.
3281         (add_locale): Use that to sort the categories by size and put all
3282         those that fit into two pages into the LC_ALL block, instead of
3283         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
3284         (show_archive_content): Detect categories inside LC_ALL block
3285         directly, instead of hard-coding.
3286         (oldlocrecentcmp): Compare just on file locations used.
3288 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
3290         * locale/programs/locarchive.c (struct oldlocrecent): New type.
3291         (oldlocrecentcmp): New function.
3292         (enlarge_archive): Re-add locales in the order they were added
3293         to the archive.
3294         (add_locale): Put all the small locale files together, if the small
3295         locale file block would occupy less pages if page size aligned, align
3296         it.
3297         (show_archive_content): Adjust for locale archives optimized for speed.
3299 2002-08-14  Roland McGrath  <roland@frob.com>
3301         * configure.in: Use "MISSING" as not-found value for MIG.
3302         * sysdeps/mach/configure.in: Fatal if mig not found.
3303         * configure, sysdeps/mach/configure: Regenerated.
3305 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
3307         * locale/loadarchive.c (archfname): Add missing slash.
3309         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
3310         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
3312 2002-08-12  Roland McGrath  <roland@redhat.com>
3314         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
3315         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
3316         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
3317         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
3318         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
3319         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
3320         * sysdeps/generic/waitpid.c: Likewise.
3322         * include/net/if.h: New file.  Use libc_hidden_proto
3323         for if_nametoindex and if_indextoname.
3324         * sysdeps/generic/if_index.c: Add libc_hidden_def.
3325         * sysdeps/mach/hurd/if_index.c: Likewise.
3326         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
3328         * include/grp.h (setgroups): Add libc_hidden_proto.
3329         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
3330         * sysdeps/mach/hurd/setgroups.c: Likewise.
3331         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
3332         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3334 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
3336         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
3337         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
3338         * sysdeps/generic/setegid.c (setegid): Likewise.
3339         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
3340         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
3341         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
3342         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
3343         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
3344         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
3345         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
3346         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
3347         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
3348         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
3349         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
3350         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
3351         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
3353         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
3354         __lxstat_internal, __lxstat64_internal): Remove.
3355         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
3356         Add hidden_proto.
3357         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
3358         Remove INTDEF where present, remove #undef at the beginning.
3359         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
3360         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
3361         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
3362         * sysdeps/generic/xstat.c (__xstat): Likewise.
3363         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
3364         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
3365         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
3366         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
3367         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
3368         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
3369         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
3370         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
3371         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
3372         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
3373         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
3374         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
3375         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
3376         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
3377         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
3378         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
3379         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
3380         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
3381         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
3382         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
3383         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
3384         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
3385         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
3386         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3387         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3388         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3389         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
3390         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
3391         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
3392         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3393         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
3394         * sysdeps/unix/xstat.c (__xstat): Likewise.
3396         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
3397         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
3398         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
3399         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
3400         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
3401         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
3402         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
3404         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
3405         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
3406         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
3407         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
3408         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
3409         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
3410         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
3411         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
3412         Likewise.
3413         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
3414         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
3415         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
3416         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
3417         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
3418         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
3419         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
3420         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
3422         * include/string.h (strcoll): Add libc_hidden_proto.
3423         * string/strcoll.c (strcoll): Add libc_hidden_def.
3425         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
3427 2002-08-11  Philip Blundell  <philb@gnu.org>
3429         * sysdeps/arm/Makefile: New file.
3431 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3433         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
3434         by another '|', end of regex or enclosing ')', clear branch.
3435         * posix/bug-regex9.c: New test.
3436         * posix/Makefile (tests): Add bug-regex9.
3438 2002-08-12  Roland McGrath  <roland@redhat.com>
3440         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
3441         start count condition, use TOTAL instead of variable that was never
3442         set.  Fix outer loop termination condition to TOTAL >= after update.
3444         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
3445         dl_tls_static_align and dl_tls_static_nelem.
3447 2002-08-11  Roland McGrath  <roland@redhat.com>
3449         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
3450         of the TLS macros, otherwise the compiler might not have initialized
3451         the PIC register yet when we use the PLT via asm.
3452         * elf/tst-tlsmod3.c (in_dso2): Likewise.
3453         * elf/tst-tlsmod2.c (in_dso): Likewise.
3455         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
3457         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
3458         Evaluate argument exactly once.  Remove __volatile__ from asm's.
3460         * include/unistd.h: Use libc_hidden_proto for getdomainname
3461         and getlogin_r.
3462         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
3463         * sysdeps/mach/hurd/getdomain.c: Likewise.
3464         * sysdeps/unix/getlogin_r.c: Likewise.
3465         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
3466         * sysdeps/generic/getlogin_r.c: Likewise.
3468         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
3469         * sunrpc/rtime.c: Add libc_hidden_def.
3471         * include/string.h: Use libc_hidden_proto for basename.
3472         * string/basename.c [_LIBC]: Add libc_hidden_def.
3474         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
3476         * locale/loadarchive.c: munmap -> __munmap throughout.
3478         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
3479         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
3480         * sysdeps/generic/gai_strerror.c: Likewise.
3482         * include/sys/errno.h: New file.
3484         * include/signal.h: No libc_hidden_proto for raise,
3485         __libc_current_sigrtmin, __libc_current_sigrtmax.
3486         These need to be overridden by linuxthreads.
3487         * sysdeps/posix/raise.c: Reverted.
3488         * sysdeps/generic/raise.c: Reverted.
3489         * signal/allocrtsig.c: Reverted.
3491         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
3493 2002-08-10  Roland McGrath  <roland@redhat.com>
3495         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
3496         * locale/localeinfo.h: Declare it.
3497         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
3498         current locale if it's not in the file list.
3499         Call _nl_archive_subfreeres.
3501 2002-08-10  Andreas Jaeger  <aj@suse.de>
3503         * sysdeps/i386/strchr.S: Add comment.
3505 2002-08-10  Roland McGrath  <roland@redhat.com>
3507         * include/wchar.h (putwc): Use libc_hidden_proto.
3508         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
3509         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
3510         * stdio-common/dprintf.c: Add libc_hidden_def.
3511         * stdio-common/fprintf.c: Likewise.
3512         * stdio-common/sprintf.c: Likewise.
3513         * stdio-common/sscanf.c: Likewise.
3514         * libio/iofwrite.c: Likewise.
3515         * libio/memstream.c: Likewise.
3516         * libio/putwc.c: Likewise.
3517         * stdio-common/perror.c: Likewise.
3518         * sysdeps/posix/remove.c: Likewise.
3519         * sysdeps/generic/remove.c: Likewise.
3520         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
3521         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
3523 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
3525         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3526         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
3527         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3528         towlower, towupper): Add libc_hidden_weak.
3530         * include/bits/dlfcn.h: New file.
3531         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
3533         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
3534         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
3535         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
3536         * include/pwd.h (_nss_files_parse_pwent): Likewise.
3537         * include/shadow.h (_nss_files_parse_spent): Likewise.
3538         * include/netdb.h (_nss_files_parse_protoent,
3539         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
3540         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
3541         (LINE_PARSER): Use it.
3542         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
3543         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
3545         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
3546         #endif.
3548         * manual/debug.texi (%MENU%): Remove trailing dot.
3549         Reported by <hayastan132@hotmail.com>.
3551         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
3552         aliases.
3553         (lseek): Dummy.
3554         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
3555         Likewise.
3557 2002-08-09  Roland McGrath  <roland@redhat.com>
3559         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
3560         name to find codeset name (if any) and normalize it.  If the
3561         normalized name differs, look up only that in the archive.
3562         * locale/programs/locarchive.c (add_locale_to_archive): If the name
3563         contains a codeset, normalize the codeset store only the normalized
3564         name in the archive.  If not, add an alias containing the locale's
3565         normalized codeset name.  Apply codeset name normalization when
3566         matching entries in the alias file.
3568         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3569         decrement HEAD->namehash_used here.
3570         (add_locale): Only need to insert name string when name_offset != 0.
3572         * locale/programs/localedef.c (options): Add -A/--alias-file.
3573         (alias_file): New variable.
3574         (parse_opt): Grok -A, set that.
3575         * locale/programs/localedef.h: Declare it.
3577         * locale/locarchive.h (struct locrecent): Add `refs' member.
3578         * locale/programs/locarchive.c (insert_name): New function, broken out
3579         of ...
3580         (add_locale_to_archive): ... here.  Call that.
3581         (add_alias): New function.
3582         (add_locale): New static function, add_locale_to_archive renamed.
3583         (add_locale_to_archive): Call that and use add_alias to add an alias
3584         for the name with codeset if the given name lacks it.
3585         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3587         * locale/Makefile (routines): Add loadarchive.
3588         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3589         (_nl_load_locale_from_archive): New function.
3590         * locale/localeinfo.h: Declare it.
3591         * locale/findlocale.c (_nl_find_locale): If using default locale path,
3592         try _nl_load_locale_from_archive first.
3594         * locale/loadlocale.c (_nl_intern_locale_data): New function,
3595         broken out of _nl_load_locale.
3596         (_nl_load_locale): Call that.
3597         * locale/localeinfo.h: Declare it.
3598         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3599         (struct locale_data): Remove unused member `options'.
3600         * locale/findlocale.c (_nl_remove_locale): Update uses.
3601         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3602         * locale/C-collate.c: Update initializer.
3603         * locale/C-identification.c: Likewise.
3604         * locale/C-measurement.c: Likewise.
3605         * locale/C-telephone.c: Likewise.
3606         * locale/C-address.c: Likewise.
3607         * locale/C-name.c: Likewise.
3608         * locale/C-paper.c: Likewise.
3609         * locale/C-time.c: Likewise.
3610         * locale/C-numeric.c: Likewise.
3611         * locale/C-monetary.c: Likewise.
3612         * locale/C-messages.c : Likewise.
3613         * locale/C-ctype.c: Likewise.
3615         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3616         use CHAR_BIT instead of BITSPERBYTE.
3618         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3619         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3620         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3621         (_nl_remove_locale): Likewise.
3622         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3624         * locale/findlocale.c (_nl_default_locale_path): New variable.
3625         (_nl_find_locale): If LOCALE_PATH is null, default to that.
3626         * locale/localeinfo.h: Declare it.
3627         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3628         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
3629         * locale/newlocale.c (__newlocale): Likewise.
3631         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3632         * inet/rexec.c (rexec_af): Add libc_hidden_def.
3633         * sysdeps/generic/morecore.c: Likewise.
3634         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3635         (__libc_current_sigrtmax): Likewise.
3637 2002-08-08  Roland McGrath  <roland@redhat.com>
3639         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3640         * catgets/open_catalog.c (__open_catalog): Likewise.
3642         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3643         from typo INITIAL_NUM_NANES.
3644         (create_archive): Update use.
3646 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3648         * sysdeps/unix/sysv/linux/sigwait.c: New file.
3650 2002-08-08  Roland McGrath  <roland@frob.com>
3652         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3654 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3656         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3657         else and undefine after including wcstol_l.c.
3658         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3660 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3662         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3664 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
3666         * configure.in: Make the test for broken_alias_attribute stricter.
3668 2002-05-24  Robert Love  <rml@tech9.net>
3670         * posix/Makefile (routines): Add sched_getaffinity and
3671         sched_setaffinity.
3672         * posix/sched.h: Add declarations for sched_getaffinity and
3673         sched_setaffinity.
3674         * sysdeps/generic/sched_getaffinity.c: New file.
3675         * sysdeps/generic/sched_setaffinity.c: New file.
3676         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3677         sched_setaffinity.
3679 2002-08-06  Andreas Schwab  <schwab@suse.de>
3681         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3683 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3685         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3686         message.
3688         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3689         It is known to be defined.
3691         * include/string.h: Define index and rindex only if _ISOMAC is not
3692         defined.
3694         * elf/rtld.c: Include <errno.h>.
3695         * sysdeps/generic/libc-tls.c: Likewise.
3697 2002-08-07  Roland McGrath  <roland@redhat.com>
3699         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3700         it internally.
3701         (precsize_aton): Likewise.
3703         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3704         the static symbols added in the last change (doofus is me).
3706         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3707         loop to notice missing categories in a composite name.
3709         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3710         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3711         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3712         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3714 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3716         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3718 2002-08-07  Roland McGrath  <roland@redhat.com>
3720         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3721         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3722         Reported by Jakub Jelinek  <jakub@redhat.com>.
3724 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
3726         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3727         division.
3729 2002-08-06  Roland McGrath  <roland@redhat.com>
3731         * include/getopt.h: Put private decls inside [_GETOPT_H].
3732         Use libc_hidden_proto for getopt_long, getopt_long_only.
3733         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3734         Add libc_hidden_def.
3736         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3737         Define as a macro for __dl_iterate_phdr.
3739         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3740         made static.  Add __ name as a strong alias.
3741         (internal_endnetgrent): Likewise.
3742         (internal_getnetgrent_r): Likewise.
3744         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3745         with no __ prefix.
3746         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3747         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3748         all *_l functions with no __ prefix.
3749         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3750         * ctype/ctype_l.c: Likewise.
3751         * locale/nl_langinfo.c: Likewise.
3752         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3753         * stdlib/stdlib.h [__USE_GNU]: Likewise.
3754         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3755         * wctype/wctype.h [__USE_GNU]: Likewise.
3756         * string/strcoll_l.c (strcoll_l): Define as weak alias.
3757         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3758         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3759         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3760         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3761         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3762         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3763         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3764         (__wcscasecmp_l): Add libc_hidden_def.
3765         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3766         (__wcsncasecmp_l): Add libc_hidden_def.
3767         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3768         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3769         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3770         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3771         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3772         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3773         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3774         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3775         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3776         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3777         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3778         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3779         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3780         * wctype/wctype_l.c (wctype_l) Define as weak alias.
3782 2002-08-05  Roland McGrath  <roland@redhat.com>
3784         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3785         netname2user, host2netname, user2netname, key_gendes.
3786         * sunrpc/netname.c: Add libc_hidden_def.
3787         * sunrpc/key_call.c: Likewise.
3789         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3790         freeaddrinfo.
3791         * inet/getnameinfo.c: Add libc_hidden_def.
3792         * sysdeps/generic/getaddrinfo.c: Likewise.
3793         * sysdeps/posix/getaddrinfo.c: Likewise.
3795         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3796         * wcsmbs/wmemchr.c: Add libc_hidden_def.
3797         * wcsmbs/wmemset.c: Add libc_hidden_def.
3799         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3800         (index, rindex): Define as macros for strchr, strrchr.
3802         * string/envz.c (envz_strip): index -> strchr
3804         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3805         * sunrpc/rpc_prot.c: Add libc_hidden_def.
3807         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3808         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3810         * include/stdlib.h: Use libc_hidden_proto for wctomb.
3811         * stdlib/wctomb.c: Add libc_hidden_def.
3813         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3814         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3815         * resolv/herror.c: Likewise.
3816         * inet/rcmd.c: Add libc_hidden_def.
3817         * inet/ruserpass.c: Likewise.
3818         * inet/getnetgrent_r.c: Likewise.
3820         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3821         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
3822         for svcerr_auth, svcerr_noprog, svcerr_progvers.
3823         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3824         libc_hidden_def.
3825         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3826         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3828         * sysdeps/posix/system.c (do_system): New function, guts broken out of
3829         __libc_system.
3830         (__libc_system): Call it, putting just the line == NULL test here.
3832         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3833         variables work right.
3835         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3836         * elf/dl-close.c (_dl_close): Likewise.
3838         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3839         in6addr_any, in6addr_loopback.  Remove decls for
3840         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3841         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3842         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3843         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3844         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3845         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3846         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3847         in6addr_loopback.
3848         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3850         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3851         ether_aton_r.
3852         * inet/ether_aton_r.c: Add libc_hidden_def.
3853         * inet/ether_ntoa_r.c: Likewise.
3855         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3856         xprt_unregister.
3857         * sunrpc/svc.c: Add libc_hidden_def.
3858         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3859         pmap_set, pmap_unset.
3860         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3861         * sunrpc/pm_getport.c: Likewise.
3862         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3863         * sunrpc/publickey.c: Add libc_hidden_def.
3865 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3867         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
3868         the other memset call in this function.
3870         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3871         at correct index.  Clear BSS region now that memalign is used.
3873 2002-08-05  Roland McGrath  <roland@redhat.com>
3875         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3876         * sysdeps/generic/uname.c: Add libc_hidden_def.
3877         * sysdeps/mach/hurd/uname.c: Likewise.
3879 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
3881         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3882         wcspbrk): Add libc_hidden_proto.
3883         * time/strftime.c (my_strftime): Add libc_hidden_def.
3884         (strftime): Remove libc_hidden_def.
3885         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3886         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3887         * wcsmbs/wcsspn.c (wcsspn): Likewise.
3888         * wcsmbs/wcscmp.c (wcscmp): Likewise.
3889         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3890         * wcsmbs/wcscoll.c (wcscoll): Likewise.
3892         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3893         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3894         __rpc_thread_createerr): Add libc_hidden_proto.
3895         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3896         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3897         __rpc_thread_createerr): Add libc_hidden_def.
3899         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3900         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3901         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3902         clnt_perror, clnt_sperror): Add libc_hidden_def.
3903         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3905         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3906         libc_hidden_proto.
3907         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3908         * sunrpc/des_soft.c (des_setparity): Likewise.
3910         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3911         Add libc_hidden_proto.
3912         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3913         Add libc_hidden_def.
3915 2002-08-05  Roland McGrath  <roland@redhat.com>
3917         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3918         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3919         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3920         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3921         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3922         old data, abandoning the original memory allocated by rtld at startup,
3923         instead of calling realloc normally.
3925 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3927         * po/fr.po: Update from translation team.
3929 2002-08-04  Roland McGrath  <roland@redhat.com>
3931         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3932         then generate a dummy module under the given name, obeying the
3933         normal rules for the "caller" field.
3935         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3936         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
3938         * include/pthread.h: Don't declare __pthread_initialize_minimal as
3939         weak here; we declare it weak or strong in the one place we use it.
3940         * sysdeps/generic/libc-start.c: ... which is here.
3941         Don't make the decl weak if [USE_TLS], since static programs need TLS
3942         setup even when single-threaded.
3944         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3946         * elf/Makefile (test-srcs): Add $(modules-names) to it.
3947         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3948         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3949         all these variables.
3951 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3953         * include/stdio.h: Don't define macro magic to redirect function
3954         calls if _ISOMAC is defined.
3956         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3957         ldouble asin tests.
3959 2002-08-04  Roland McGrath  <roland@redhat.com>
3961         * stdlib/lrand48_r.c: Add libc_hidden_def.
3963         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3964         TCB with __libc_memalign instead of mmap.
3965         (_dl_deallocate_tls): Free it with free instead of munmap.
3967         * Makerules (cpp-srcs-left): When setting this to run
3968         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3969         words.  Combine the two loops into one on the concatenated list,
3970         including those as well as $(test-srcs).
3972         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3973         since we align here with optimally minimal waste anyway.
3974         (malloc): Just call that.
3976         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
3977         the right variable.
3979         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
3980         to compute memory location for l_tls_initimage.
3981         * elf/rtld.c (_dl_start): Likewise.
3982         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3984         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
3985         because the .d file is generated in the non-shared case and
3986         so fails to catch them otherwise.
3988         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
3989         split out of _dl_allocate_tls.
3990         (_dl_allocate_tls_init): Likewise.
3991         (_dl_allocate_tls): Call those.
3992         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
3993         * elf/rtld.c (dl_main): Call them separately instead of calling
3994         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
3995         is finished, so that the initializer data has been relocated before we
3996         copy it into the main thread's TLS block.
3998         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
3999         loop conditions, prevented the last used module from being initialized.
4001 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
4003         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
4004         if glob resp. globfree are not macros.
4005         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
4006         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
4007         Add libc_hidden_ver.
4008         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
4009         libc_hidden_def.
4010         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
4011         instead of libc_hidden_weak.
4012         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
4013         libc_hidden_ver instead of libc_hidden_def.
4014         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
4015         libc_hidden_ver instead of libc_hidden_def.
4016         (wcstoll, wcstoq): Remove libc_hidden_weak.
4017         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
4018         libc_hidden_ver.
4019         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
4020         libc_hidden_ver.
4021         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
4022         libc_hidden_ver.
4023         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
4024         libc_hidden_ver.
4026 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
4028         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
4029         to access _sys_siglist.
4030         * string/strsignal.c: Likewise.
4031         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
4032         * sysdeps/gnu/siglist.c: Likewise.
4033         * sysdeps/unix/siglist.c: Likewise.
4034         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
4036         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
4038         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
4040         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
4041         alias and use it.
4042         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
4044         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
4045         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
4046         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
4048         * include/time.h: Add libc_hidden_proto for __gmtime_r.
4049         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
4051         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
4052         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
4053         and __gconv_get_cache respectively.
4054         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
4055         defined static.  Change all users.
4056         (__gconv_get_cache): New function.
4057         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
4058         (__gconv_get_alias_db): New function.
4059         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
4060         (__conv_modules_db): Likewise.
4061         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
4062         and __gconv_get_alias_db.
4063         * iconv/iconv_prog.c: Use the new functions instead of accessing the
4064         variables.
4066         * include/stdlib.h: Add prototype and libc_hidden_proto for
4067         __default_morecore.
4068         * sysdeps/generic/morecore.c: Include <stdlib.h>.
4070         * malloc/obstack.c: Remove fputs macro.
4072         * malloc/mtrace.c: Remove fopen macro.
4074 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
4076         * manual/debug.texi: Fix spelling to programmatically.
4077         Reported by <hayastan132@hotmail.com>.
4079 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
4081         * include/libio.h: Add libc_hidden_proto for __uflow.
4082         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
4083         fgetpos to _IO_* names.
4084         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
4085         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
4086         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
4087         putwc_unlocked, vswscanf.
4088         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
4089         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
4090         * libio/fseek.c: Likewise.
4091         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
4092         not fopencookie.
4093         * libio/genops.c (__uflow): Add libc_hidden_def.
4094         * libio/iofflush_u.c (fflush_unlocked): Likewise.
4095         * libio/iofgets_u.c (fgets_unlocked): Likewise.
4096         * libio/iofputs_u.c (fputs_unlocked): Likewise.
4097         * libio/iofputws_u.c (fputws_unlocked): Likewise.
4098         * libio/iofread_u.c (fread_unlocked): Likewise.
4099         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
4100         * libio/iovswscanf.c (vswscanf): Likewise.
4101         * libio/putwc_u.c (putwc_unlocked): Likewise.
4102         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
4103         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
4104         * malloc/mtrace.c: Likewise.
4106         * sunrpc/clnt_perr.c: Remove fputs macro.
4107         * sunrpc/svc_simple.c: Likewise.
4108         * sunrpc/svc_tcp.c: Likewise.
4109         * sunrpc/svc_udp.c: Likewise.
4110         * sunrpc/xdr_rec.c: Likewise.
4111         * sunrpc/xdr_ref.c: Likewise.
4113         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
4114         iconv_prog, linereader, and charmap-dir.
4115         * locale/Makefile: Likewise for locale and charmap-dir.
4116         * malloc/Makefile: Likewise for memusagestat.
4117         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
4118         * sunrpc/Makefile: Likewise for rpc_main.
4119         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
4120         * timezone/Makefile: Likewise for zic.
4122         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
4124         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
4125         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
4126         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
4127         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
4128         _dl_close.
4130         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
4131         __wunderflow.
4132         * libio/genops.c (__underflow): Add libc_hidden_def.
4133         * libio/wgenops.c (__wuflow): Likewise.
4134         (__wunderflow): Likewise.
4136         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
4137         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
4139         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
4140         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
4142         * include/string.h: Add libc_hidden_proto for __strverscmp.
4143         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
4145         * include/unistd.h: Add libc_hidden_proto for __sysconf.
4146         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
4147         * sysdeps/posix/sysconf.c: Likewise.
4148         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
4149         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
4151         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
4152         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
4153         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
4154         __iswxdigit_l, __towlower_l, __towupper_l.
4155         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
4156         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
4158         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
4159         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
4160         * sysdeps/mach/hurd/xmknod.c: Likewise.
4161         * sysdeps/unix/xmknod.c: Likewise.
4162         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4163         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
4164         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4166         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
4168 2002-08-03  Roland McGrath  <roland@redhat.com>
4170         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
4171         setpriority.
4172         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
4173         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
4174         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
4175         * sysdeps/mach/hurd/setpriority.c: Likewise.
4176         * sysdeps/mach/hurd/getpriority.c: Likewise.
4177         * sysdeps/generic/setpriority.c: Likewise.
4178         * sysdeps/generic/getpriority.c: Likewise.
4180         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
4181         * malloc/mcheck.c: Add libc_hidden_def.
4183         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
4184         * misc/hsearch_r.c: Add libc_hidden_def.
4186         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
4187         * posix/fnmatch.c: Add libc_hidden_weak.
4189         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
4190         execl, execle, execlp, execvp, getpid, getsid.
4191         * sysdeps/generic/alarm.c: Add libc_hidden_def.
4192         * sysdeps/unix/alarm.c: Likewise.
4193         * posix/confstr.c: Likewise.
4194         * posix/execvp.c: Likewise.
4195         * posix/execlp.c: Likewise.
4196         * posix/execle.c: Likewise.
4197         * posix/execl.c: Likewise.
4198         * sysdeps/generic/getsid.c: Likewise.
4199         * sysdeps/mach/hurd/getsid.c: Likewise.
4200         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
4201         * sysdeps/mach/hurd/getpid.c: Likewise.
4203         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
4204         qecvt_r, qfcvt_r, lrand48_r.
4205         * misc/efgcvt_r.c: Add libc_hidden_def.
4207         * include/wordexp.h: Use libc_hidden_proto for wordfree.
4208         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
4210         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
4211         * locale/nl_langinfo.c: Add libc_hidden_def.
4213         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
4214         * sysdeps/generic/glob.c: Add libc_hidden_def.
4215         * sysdeps/generic/glob64.c: Likewise.
4216         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
4218         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
4220         * elf/Makefile (CFLAGS-vismod2.c): New variable.
4222         * locale/setlocale.c (_nl_current_names): Variable moved ...
4223         * locale/localename.c (_nl_current_names): ... here, new file.
4224         Make it global, with attribute_hidden.
4225         * locale/localeinfo.h: Declare it.
4226         * locale/Makefile (aux): Add localename.
4227         * locale/localename.c (__current_locale_name): New function.
4228         * include/locale.h (__current_locale_name): Declare it.
4229         * intl/dcigettext.c (guess_category_value): Use that instead of
4230         calling setlocale.
4232         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
4233         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
4234         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
4235         * locale/newlocale.c: Add alias to __ name.
4236         * locale/duplocale.c: Likewise.
4237         * locale/freelocale.c: Likewise.
4238         * locale/uselocale.c: New file.
4239         * locale/Makefile (routines): Add it.
4240         * locale/Versions (libc: GLIBC_2.3): New set.
4241         Add newlocale, duplocale, freelocale, uselocale.
4242         (libc: GLIBC_PRIVATE): Add __uselocale.
4244         * locale/localeinfo.h [SHARED]
4245         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
4246         (_NL_CURRENT_DATA): Define using that.
4247         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
4248         (_NL_CURRENT_DEFINE): Define to empty.
4249         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
4250         conditionalized on this.
4251         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
4252         taking initializer of _nl_C_locobj.
4253         [SHARED] (_nl_global_locale): New variable, using that initializer.
4254         (_nl_C_locobj): Use new macro for initialzier.
4255         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
4256         [! SHARED] (CATEGORY_USED): New macro.
4257         [SHARED] (CATEGORY_USED, _nl_C): New macros.
4258         (setdata, setlocale): Use that macro instead of examining _nl_current.
4259         (setdata): Set the slot in _nl_global_locale.
4260         Conditionalize setting of _nl_current on [! SHARED].
4261         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
4262         declaration as an extern.
4263         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
4265         * include/locale.h: Use libc_hidden_proto for setlocale.
4266         * locale/setlocale.c: Add libc_hidden_def.
4268         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
4270         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
4271         * misc/hsearch_r.c: Add libc_hidden_def.
4272         * misc/lsearch.c: Likewise.
4274         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
4275         endttyent.
4276         * misc/getttyent.c: Add libc_hidden_def.
4278         * include/mcheck.h: Use libc_hidden_proto for mcheck.
4279         * malloc/mcheck.c: Add libc_hidden_def.
4281         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
4282         * include/argz.h: Use libc_hidden_proto for argz_delete.
4283         * string/argz-delete.c: Add libc_hidden_def.
4284         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
4286         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
4287         HIDDEN_JUMPTARGET for _exit.
4288         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
4289         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
4290         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
4291         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
4293         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
4294         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
4295         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
4296         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
4298         * include/stdlib.h: Use libc_hidden_proto for abort,
4299         __strtof_internal, __strtod_internal, __strtold_internal,
4300         __strtol_internal, __strtoll_internal, __strtoul_internal,
4301         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
4302         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
4303         __strtoul_l_internal, __strtoull_l_internal.
4304         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
4305         __wcstod_internal, __wcstold_internal, __wcstol_internal,
4306         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
4307         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
4308         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
4309         __wcsncasecmp_l.
4310         * sysdeps/generic/abort.c: Add libc_hidden_def.
4311         * stdlib/strtod.c: Likewise.
4312         * sysdeps/generic/strtol.c: Likewise.
4313         * sysdeps/wordsize-64/strtol.c: Likewise.
4314         * sysdeps/wordsize-64/wcstol.c: Likewise.
4315         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
4317         * include/stdlib.h: Use libc_hidden_proto for qsort.
4318         * stdlib/msort.c: Add libc_hidden_def.
4320         * include/utime.h: Use libc_hidden_proto for utime.
4321         * sysdeps/generic/utime.c: Add libc_hidden_def.
4322         * sysdeps/unix/utime.c: Likewise.
4324         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
4325         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
4326         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
4327         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
4328         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
4330         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
4331         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
4332         and __libc_current_sigrtmax.
4333         * signal/sigismem.c: Add libc_hidden_def.
4334         * signal/sigfillset.c: Likewise.
4335         * signal/sigempty.c: Likewise.
4336         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
4337         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
4338         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
4339         * sysdeps/posix/raise.c: Likewise.
4340         * sysdeps/generic/raise.c: Likewise.
4342 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
4344         * include/string.h: Use libc_hidden_proto for __stpcpy.
4345         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
4346         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
4347         * sysdeps/generic/stpcpy.c: Likewise.
4348         * sysdeps/i386/stpcpy.S: Likewise.
4349         * sysdeps/i386/i586/stpcpy.S: Likewise.
4350         * sysdeps/powerpc/stpcpy.S: Likewise.
4351         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
4352         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
4354         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
4355         __strncasecmp_l, __strdup, __strndup, __strerror_r.
4356         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
4357         libc_hidden_def.
4358         * string/strdup.c (__strdup): Likewise.
4359         * string/strndup.c (__strndup): Likewise.
4360         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
4361         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
4363 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4365         * include/libio.h: New file.
4366         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
4367         * libio/iolibio.h: #include <libio.h>, not "libio.h".
4368         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
4369         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
4370         * sysdeps/unix/common/syscalls.list: Likewise.
4371         * sysdeps/unix/inet/syscalls.list: Likewise.
4372         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
4373         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
4374         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4375         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4376         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4377         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4378         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4379         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4380         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4381         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
4382         * sysdeps/unix/syscalls.list: Likewise.
4384 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4385             Ulrich Drepper  <drepper@redhat.com>
4387         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
4388         the arguments is big enough to cause an overflow.
4390 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
4392         * assert/assert.c: Use hidden_def not INTDEF.
4394 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4396         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
4397         not defined.
4399 2002-08-03  Roland McGrath  <roland@redhat.com>
4401         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
4402         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
4403         verr, verrx.
4404         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
4405         * misc/syslog.c: Add libc_hidden_def.
4406         * misc/err.c: Likewise.
4407         * stdlib/exit.c: Likewise.
4408         * stdlib/bsearch.c: Likewise.
4409         * sysdeps/generic/getenv.c: Likewise.
4411         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
4413         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
4414         libc_hidden_weak for every system call symbol defined.
4416         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
4417         timelocal, localtime, strftime.
4418         * time/asctime.c: Add libc_hidden_def.
4419         * time/mktime.c: Likewise.
4420         * time/localtime.c: Likewise.
4421         * time/strftime.c: Likewise.
4422         * time/strptime.c: Likewise.
4423         * sysdeps/generic/time.c: Likewise.
4424         * sysdeps/unix/time.c: Likewise.
4425         * sysdeps/unix/sysv/i386/time.S: Likewise.
4426         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
4428         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
4429         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
4430         * resolv/inet_ntop.c: Likewise.
4431         * resolv/inet_pton.c: Likewise.
4432         * inet/inet_mkadr.c: Add libc_hidden_def.
4433         * inet/inet_netof.c: Likewise.
4434         * resolv/inet_addr.c: Likewise.
4436         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
4437         clauses from conditionals for now.  Will have to be fixed later
4438         for older compilers.
4440         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
4442 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4444         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
4445         broken alias attribute handling.
4446         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
4448 2002-08-02  Roland McGrath  <roland@frob.com>
4450         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
4451         since it sets the variables we use in a -D switch.
4453 2002-08-02  Roland McGrath  <roland@redhat.com>
4455         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
4456         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
4457         matches long int, not int.
4459         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
4460         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
4461         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4462         * wctype/wctrans.c (wctrans): Likewise.
4463         * wctype/wctype.c (__wctype): Likewise.
4464         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
4466 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4468         * assert/assert.c (__assert_fail): Fix typo in comment.
4470         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
4471         * sunrpc/rpc_thread.c: Define it without static.
4472         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
4474 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4476         * assert/assert.c (__assert_fail): Remove undef.
4477         Replace INTDEF with libc_hidden_def.
4478         * assert/__assert.c (__assert): Remove INTUSE.
4479         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
4480         libc_hidden_weak.
4481         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
4482         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
4483         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
4484         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
4485         libm_hiden_ver): Define.
4486         * include/assert.h (__assert_fail_internal): Remove.
4487         (__assert_fail): Add prototype.  Add hidden_proto.
4488         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
4489         libc_hidden_proto.
4490         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
4491         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
4492         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
4493         Add libc_hidden_proto.
4494         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
4495         __fcntl): Add libc_hidden_proto.  Remove macros.
4496         (__open_internal, __fcntl_internal): Remove.
4497         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
4498         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
4499         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
4500         libc_hiden_proto.
4501         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
4502         libc_hidden_def.
4503         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
4504         Add libc_hidden_def.
4505         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
4506         * sysdeps/generic/open.c (__open): Remove undef.
4507         Add libc_hidden_def.  Remove INTDEF.
4508         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
4509         Add libc_hidden_def.
4510         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
4511         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
4512         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
4513         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4514         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4515         (__libc_fcntl): Add libc_hidden_def.
4516         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
4517         (__open): Remove INTDEF2.  Add libc_hidden_weak.
4518         (__libc_open): Add libc_hidden_def.
4519         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
4520         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
4521         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4522         Add libc_hidden_def.
4523         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
4524         Add libc_hidden_def.
4525         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
4526         undef.
4527         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4528         (__libc_fcntl): Add libc_hidden_def.
4529         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
4530         __getpgid_internal, __chown_internal): Remove.
4531         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
4532         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
4533         __GI___chown): Add.
4534         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
4535         __getpid_internal, __open_internal, __write_internal): Remove.
4536         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
4537         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
4538         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
4539         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
4540         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
4541         Replace INTDEF with libc_hidden_def.
4542         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
4543         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
4544         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
4545         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
4546         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
4547         Add libc_hidden_proto.
4548         * include/sys/poll.h (__poll): Add libc_hidden_proto.
4549         * include/sys/select.h (__select): Likewise.
4550         * include/sys/socket.h (__send): Likewise.
4551         * include/sys/statfs.h (__statfs): Likewise.
4552         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
4553         __getpid, __getpgid, __setpgid, __close, __read, __write,
4554         __getpagesize, __sbrk): Likewise.
4555         (__chown_internal, __dup2_internal, __getpid_internal,
4556         __getpgid_internal, __close_internal, __write_internal,
4557         __getpagesize_internal): Remove.
4558         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
4559         Remove macros.
4560         * include/printf.h (__printf_fp): Add libc_hidden_proto.
4561         * include/sched.h (__sched_setscheduler): Likewise.
4562         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
4563         * include/stdlib.h (__secure_getenv): Likewise.
4564         * include/signal.h (__sigaction, __sigsuspend): Likewise.
4565         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4566         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4567         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4568         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4569         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4570         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4571         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4572         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4573         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4574         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4575         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4576         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4577         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4578         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4579         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4580         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4581         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4582         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4583         * libio/genops.c (__overflow): Add libc_hidden_def.
4584         * libio/iovdprintf.c: Remove libio.h include.
4585         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4586         libc_hidden_weak): Define to nothing if not defined.
4587         (__overflow, __woverflow): Add libc_hidden_proto.
4588         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4589         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4590         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4591         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4592         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4593         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4594         and libc_hidden_def.
4595         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4596         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4597         (__getpgid): Add libc_hidden_proto.
4598         (__bsd_getpgrp): Remove INTUSE.
4599         * resolv/res_init.c (__res_ninit, __res_randomid): Add
4600         libc_hidden_def.
4601         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4602         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4603         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4604         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4605         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4606         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4607         __rpc_thread_createerr): Add libc_hidden_def.
4608         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4609         libc_hidden_def.
4610         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4611         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4612         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4613         * sysdeps/generic/chown.c (__chown): Likewise.
4614         * sysdeps/generic/close.c (__close): Likewise.
4615         * sysdeps/generic/dup2.c (__dup2): Likewise.
4616         * sysdeps/generic/pipe.c (__pipe): Likewise.
4617         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4618         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4619         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4620         * sysdeps/generic/read.c (__libc_read): Likewise.
4621         (__read): Add libc_hidden_weak.
4622         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4623         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4624         * sysdeps/generic/select.c (__select): Likewise.
4625         * sysdeps/generic/send.c (__send): Likewise.
4626         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4627         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4628         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4629         * sysdeps/generic/statfs.c (__statfs): Likewise.
4630         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4631         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4632         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4633         Remove undef and INTDEF.
4634         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4635         * sysdeps/generic/getpid.c (__getpid): Likewise.
4636         * sysdeps/generic/write.c (__libc_write): Likewise.
4637         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4638         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4639         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4640         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4641         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
4642         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4643         Remove undef and INTDEF.
4644         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4645         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4646         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4647         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4648         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4649         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4650         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4651         (__pipe): Add libc_hidden_def.
4652         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4653         libc_hidden_weak.
4654         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4655         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4656         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4657         (__read): Add libc_hidden_weak.
4658         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4659         (__libc_pwrite64): Add libc_hidden_def.
4660         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4661         * sysdeps/mach/hurd/select.c (__select): Likewise.
4662         * sysdeps/mach/hurd/send.c (__send): Likewise.
4663         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4664         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4665         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4666         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4667         * sysdeps/posix/dup2.c: Likewise.
4668         Remove undef and INTDEF.
4669         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4670         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4671         (__pwrite64): Add libc_hidden_weak.
4672         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4673         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4674         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4675         * sysdeps/standalone/close.c (__close): Likewise.
4676         * sysdeps/standalone/write.c (__libc_write): Likewise.
4677         (__write): Add libc_hidden_weak.
4678         * sysdeps/standalone/read.c (__read): Likewise.
4679         (__libc_read): Add libc_hidden_def.
4680         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4681         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4682         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4683         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4684         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4685         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4686         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4687         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4688         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4689         __GI___sigaction): Add.
4690         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4691         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4692         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4693         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4694         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4695         __GI___setpgid): Add.
4696         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4697         Remove undef and INTDEF.
4698         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4699         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4700         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4701         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4702         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4703         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4704         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4705         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4706         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4707         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4708         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4709         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4710         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4711         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4712         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4713         __GI___statfs, __GI___send): Add.
4714         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4715         libc_hidden_ver resp. libc_hidden_def.
4716         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4717         libc_hidden_def.
4718         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4719         Likewise.  Remove undef and INTDEF.
4720         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4721         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4722         __GI___statfs, __GI___send): Add.
4723         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4724         libc_hidden_def.
4725         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4726         Likewise.
4727         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4728         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4729         libc_hidden_ver resp. libc_hidden_def.
4730         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4731         __GI___send): Add.
4732         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4733         Add libc_hidden_weak.
4734         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4735         Add libc_hidden_def.
4736         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4737         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4738         libc_hidden_weak.
4739         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4740         resp. libc_hidden_def.
4741         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4742         libc_hidden_weak.
4743         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
4744         INTDEF.
4745         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4746         Likewise.  Remove undef.
4747         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4748         libc_hidden_weak.
4749         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4750         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4751         libc_hidden_weak.
4752         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4753         libc_hidden_def.
4754         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4755         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4756         Likewise.  Remove undef and INTDEF.
4757         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4758         libc_hidden_def.
4759         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4760         libc_hidden_weak.
4761         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4762         libc_hidden_def.
4763         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4764         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4765         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4766         libc_hidden_weak.
4767         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4768         Add libc_hidden_def.
4769         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4770         __GI___statfs): Add.
4771         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4772         libc_hidden_weak.
4773         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4774         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4775         Remove undef and INTDEF.
4776         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4777         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4778         libc_hidden_def.
4779         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4780         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4781         libc_hidden_weak.
4782         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4783         libc_hidden_def.
4784         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4785         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4786         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4787         Add.
4788         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4789         libc_hidden_def.  Remove undef and INTDEF.
4790         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4791         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4792         libc_hidden_def.
4793         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4794         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4795         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4796         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4797         Remove undef and INTDEF.
4798         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4799         broken visibility attribute handling.
4800         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4802 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4804         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4805         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4807         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4808         previous patch.
4810 2002-06-29  Todd Fries  <todd@openbsd.org>
4812         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4814 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4816         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4818 2002-07-30  Roland McGrath  <roland@redhat.com>
4820         * resolv/resolv.h (_res): Define macro unconditionally.
4821         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4822         * include/resolv.h: ... here.
4823         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4824         as a __thread variable.
4825         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4826         a __thread variable instead of a global.
4827         * resolv/res_data.c [_LIBC]: Don't #undef _res.
4829         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4830         time we test it.
4832         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4834         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4835         decls of memset and memcpy.
4837         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4838         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4840         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4842         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4843         (__libc_tsd_define): Define using __thread.
4845         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4846         (__rpc_thread_variables): Use __libc_tsd_get.
4847         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4848         __rpc_thread_variables, which might allocate what we're about to free.
4850         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4851         thread-local variable.
4852         * resolv/netdb.h (h_errno): Define macro unconditionally.
4853         [_LIBC] (__set_h_errno): Macro moved to ...
4854         * include/netdb.h: ... here.
4855         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4856         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4857         [! _LIBC_REENTRANT]: #undef h_errno here.
4859         * include/errno.h: Protect from multiple inclusion.
4861         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4862         before defining them, since Linux's <linux/posix_types.h> might have
4863         defined them.
4865 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4867         * malloc/malloc.c (public_cALLOc): Check for overflow on
4868         multiplication.
4869         * sunrpc/xdr_array.c (xdr_array): Likewise.
4870         * sunrpc/rpc/types.h (mem_free): Add comment.
4871         Patch by Solar Designer <solar@openwall.com>.
4873 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4875         * sysdeps/unix/sysv/linux/kernel-features.h
4876         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4878 2002-08-01  Roland McGrath  <roland@redhat.com>
4880         * libio/fileops.c (_IO_file_sync_mmap): New function.
4881         (_IO_file_jumps_mmap): Use it.
4882         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
4883         repeat the stat check and resize the mapped buffer as necessary.
4885 2002-07-31  Roland McGrath  <roland@redhat.com>
4887         * libio/fileops.c (decide_maybe_mmap): New static function.
4888         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4889         mmap the file contents.  Then switch the jump tables to the mmap
4890         tables if it worked, or the vanilla file tables if not.
4891         (_IO_file_underflow_maybe_mmap): New function.
4892         (_IO_file_seekoff_maybe_mmap): New function.
4893         (_IO_file_xsgetn_maybe_mmap): New function.
4894         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4895         * libio/libioP.h: Declare those.
4896         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4897         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4898         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4899         If the stream is read-only, set its jump tables to those new ones.
4900         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4901         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4902         We need the tables set before _IO_file_attach.
4904         * libio/tst-mmap-eofsync.c: New file.
4905         * libio/tst-mmap-fflushsync.c: New file.
4906         * libio/bug-mmap-fflush.c: New file.
4907         * libio/tst-mmap2-eofsync.c: New file.
4908         * libio/Makefile (tests): Add them.
4910         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4911         _IO_file_underflow_mmap fails, it already set the appropriate bit.
4913 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
4915         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4916         Declarations moved to <bits/sys_errlist.h>.  Include that file.
4917         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4918         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
4919         declare sys_errlist and sys_nerr.
4920         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
4921         provide declarations.
4923 2002-07-31  Roland McGrath  <roland@redhat.com>
4925         * elf/rtld.c (dl_main): Fix typo in error message.
4927 2002-07-31  Roland McGrath  <roland@frob.com>
4929         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4930         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
4931         sysdeps/mach/hurd/dl-sysdep.c change.
4933 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
4935         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4936         -r`/build/include for kernel headers.
4938         * po/fi.po: New file.
4940 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
4942         * configure.in (static_nss): Set to `yes' if --disable-shared.
4944 2002-07-23  Bruno Haible  <bruno@clisp.org>
4946         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4947         is set.
4949 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4951         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4952         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4953         arguments.
4955 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4957         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4958         alias.
4960 2002-07-21  Bruno Haible  <bruno@clisp.org>
4962         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4963         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4964         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4965         trans_sysdep_tab_offset.
4966         (struct sysdep_segment): New type.
4967         (struct sysdep_string): New type.
4968         (SEGMENTS_END): New macro.
4969         * intl/gettextP.h (struct sysdep_string_desc): New type.
4970         (struct loaded_domain): New fields malloced, n_sysdep_strings,
4971         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4972         orig_tab, trans_tab, hash_tab to const pointers because they point
4973         into read-only memory.
4974         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4975         (PRI*): Define fallback values.
4976         (get_sysdep_segment_value): New function.
4977         (_nl_load_domain): Distinguish major and minor revision parts. Add
4978         support for minor revision 1 with system dependent strings.
4979         (_nl_unload_domain): Also free the 'malloced' field.
4980         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
4981         now done in loadmsgcat.c. Add support for system dependent strings.
4983 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4985         * posix/bug-regex7.c: New file.
4986         * posix/bug-regex8.c: New file.
4987         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
4989 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
4991         * posix/bug-regex4.c (main): Fix typos.
4992         * posix/bug-regex6.c (main): Likewise.
4994 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
4996         * posix/bug-regex6.c (main): Fix warnings.
4998         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
5000         * iconv/iconv_prog.c (main): Improve error message for the cases
5001         where -t and/or -f parameter are missing.
5003 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
5005         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
5006         (re_search): Likewise.
5007         (re_match_2): Likewise.
5008         (re_search_2): Likewise.
5009         (re_search_stub): New function.
5010         (re_search_2_stub): New function.
5011         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
5013 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
5015         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
5016         (re_string_eoi): Use STOP instead of LEN.
5017         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
5018         (re_string_construct): Likewise.
5019         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
5020         * posix/regexec.c (re_search_internal): Add a new argument STOP
5021         so that it can handle the argument STOP of re_search_2 and re_match_2
5022         correctly.
5023         (regexec): Adapt to new I/F of re_search_internal.
5024         (re_search_stub): Likewise.
5026 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
5028         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
5030         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
5032         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
5033         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
5034         of __divdi3.
5036         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
5037         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
5038         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
5039         alias for adjtimex syscall.
5041         * elf/dl-minimal.c: Define __assert_fail_internal.
5042         * assert/assert.c: Likewise.
5043         * include/assert.h: Define __assert_file macro if !SHARED and not
5044         NOT_IN_libc.
5046         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
5047         programs.
5048         * locale/Makefile: Likewise.
5049         * nscd/Makefile: Likewise.
5050         * catgets/Makefile: Likewise.
5052 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5054         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
5055         compute current position.
5057         * stdio-common/tst-fseek.c (main): Improve error messages.
5059         * libio/tst-freopen.c (main): Remove unused variable.
5061         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
5062         succesful seek call.  Simplify error checking.
5064 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
5066         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
5067         * sysdeps/ia64/fpu/libm_support.h: Likewise.
5069 2002-07-19  Roland McGrath  <roland@frob.com>
5071         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
5072         __libc_enable_secure is set.
5074 2002-07-24  Roland McGrath  <roland@frob.com>
5076         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
5077         This implementation supports only IPv4.
5078         * inet/ifaddrs.h: New file.
5079         * sysdeps/generic/ifaddrs.c: New file.
5080         * sysdeps/gnu/ifaddrs.c: New file.
5081         * inet/test-ifaddrs.c: New file.
5082         * inet/Makefile (routines): Add ifaddrs.
5083         (headers): Add ifaddrs.h here.
5084         (tests): Add test-ifaddrs.
5085         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
5087         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
5088         socket call to get an AF_INET socket, instead of using __opensock.
5089         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
5091         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
5092         if not -1 use it instead of calling __opensock.
5093         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
5094         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
5095         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
5097         * sysdeps/mach/hurd/ifreq.h: New file.
5098         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
5099         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
5100         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
5102         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
5103         which gets moved around.  Calculate size of mmap'd buffer instead.
5105 2002-07-24  Philip Blundell  <philb@gnu.org>
5107         * sysdeps/unix/arm/brk.S: Improve schedule.
5108         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
5109         efficient instruction.
5110         (__socket): Optimize return sequence.
5112 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5114         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
5115         sockets on old kernels.
5117 2002-07-22  Philip Blundell  <philb@gnu.org>
5119         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
5120         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
5121         alias.
5123 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5125         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
5126         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
5128         * locale/programs/locarchive.c (add_locale_to_archive): Correct
5129         test to detect duplicate locales.
5131         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
5132         position would be before beginning of file.
5133         (_IO_file_seekoff_mmap): Likewise.
5134         * libio/Makefile (tests): Add bug-fseek.
5135         * libio/bug-fseek.c: New file.
5137         * intl/explodename.c: Remove support for CEN-style locale variables.
5138         It was never used and shouldn't be since it's not portable.
5139         * intl/finddomain.c: Likewise.
5140         * intl/l10nflist.c: Likewise.
5141         * intl/loadinfo.h: Likewise.
5142         * locale/findlocale.c: Likewise.
5144 2002-07-24  Roland McGrath  <roland@frob.com>
5146         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
5147         position, calculate it to take into account an active pushback buffer.
5149         * libio/Makefile (tests): Add bug-ungetc.
5150         * libio/bug-ungetc.c: New file.
5152 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
5154         * sysdeps/generic/libc-tls.c: New file.
5155         * csu/Makefile (routines): Add libc-tls.
5156         (static-only-routines): Add libc-tls.
5157         * elf/dl-support.c (_dl_phdr): New variable.
5158         (_dl_phnum): New variable.
5159         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
5160         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
5161         for !SHARED.  First look through auxiliary vector.  If TLS always
5162         call __pthread_initialize_minimal.
5164         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
5165         in mmap call is never zero.
5167 2002-07-23  Andreas Jaeger  <aj@suse.de>
5169         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
5170         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
5172 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
5174         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
5175         creation and removal of the temp file.
5177         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
5178         file creation.
5179         * test-skeleton.c (create_temp_file): New function.
5181 2002-07-22  Andreas Jaeger  <aj@suse.de>
5183         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
5184         local label.
5186 2002-07-21  Roland McGrath  <roland@frob.com>
5188         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
5189         put -I../include before -I../stdlib so we get the right errno.h et al.
5190         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
5191         (CFLAGS-wcstof.c): Likewise.
5192         (CFLAGS-wcstold.c): Likewise.
5193         (CFLAGS-wcstod_l.c): Likewise.
5194         (CFLAGS-wcstof_l.c): Likewise.
5195         (CFLAGS-wcstold_l.c): Likewise.
5197 2002-07-19  Roland McGrath  <roland@frob.com>
5199         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
5201 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
5203         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
5204         __ASSUME_AT_XID is defined.
5205         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
5206         for 2.4.1 and up.
5207         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
5208         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
5210         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
5211         (CFLAGS-wcstof.c): Likewise.
5212         (CFLAGS-wcstold.c): Likewise.
5213         (CFLAGS-wcstod_l.c): Likewise.
5214         (CFLAGS-wcstof_l.c): Likewise.
5215         (CFLAGS-wcstold_l.c): Likewise.
5217 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
5219         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
5220         __priority_which_t): Always typedef to int for C++.
5222 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
5224         * configure.in: Add test for __thread support in compiler.
5225         * config.h.in: Add HAVE___THREAD.
5226         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
5227         * include/sys/errno.h: Moved to...
5228         * stdlib/sys/errno.h: ...here.  New file.
5229         * stdlib/errno.h: New file.  Moved from...
5230         * include/errno.h: ...here.  Changed into an internal header defining
5231         libc-local things like __set_errno.
5232         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
5233         bits/errno.h.
5234         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
5235         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
5236         either.
5237         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
5238         from...
5239         (_dl_start_final): ...here.  Add code to initialize tls elements from
5240         bootstrap_map.
5241         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
5242         if USE_TLS && HAVE___THREAD.
5243         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
5244         * sysdeps/mach/hurd/bits/errno.h: Likewise.
5245         * sysdeps/standalone/arm/bits/errno.h: Likewise.
5246         * sysdeps/standalone/bits/errno.h: Likewise.
5247         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
5248         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
5249         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
5250         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
5251         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
5252         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
5253         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
5254         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
5255         use GL(dl_rtld_map), use map parameter.
5256         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
5257         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
5258         USE_TLS && HAVE___THREAD.
5259         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
5260         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
5261         TLS code sequence.
5262         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5264         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
5265         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
5266         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
5267         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
5268         * sysdeps/unix/sysv/linux/readv.c: Likewise.
5269         * sysdeps/unix/sysv/linux/writev.c: Likewise.
5271 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
5273         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
5274         MS_INVALIDATE values.
5276 2002-07-17  Andreas Schwab  <schwab@suse.de>
5277             Ulrich Drepper  <drepper@redhat.com>
5279         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
5280         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5281         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5282         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5284 2002-07-01  H.J. Lu  <hjl@gnu.org>
5286         * elf/circleload1.c (load_dso): Call "circlemod1" and check
5287         return value.
5289         * elf/circlemod1.c (circlemod1): Return int.
5290         * elf/circlemod2.c (circlemod2): Likewise.
5291         * elf/circlemod2a.c (circlemod2): Likewise.
5292         * elf/circlemod3.c (circlemod3): Likewise.
5293         (circlemod3a): A new function.
5295 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
5297         * catgets/tst-catgets.c (main): Don't expect results for
5298         untranslated messages.
5300         * glibcbug.in: Fix little typo.  Remove STDIO.
5302         * config.h.in: Fail if __FAST_MATH__ is defined.
5303         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
5304         (CPPFLAGS-test-idouble.c): Likewise.
5305         (CPPFLAGS-test-ildouble.c): Likewise.
5307 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
5309         * intl/tst-gettext.sh: Pass -f option to msgfmt.
5310         * intl/tst-gettext.c: Correctly handle untranslated messages in
5311         positive tests.
5313         * po/de.po: Update from translation team.
5315 2002-07-02  H.J. Lu  <hjl@gnu.org>
5317         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
5318         use ll/sc.
5319         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
5321         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
5322         to 2.4.0 for mips.
5324 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
5326         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
5327         TLS fail if USE_TLS is not defined.
5329         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
5330         and adjust state for seek position.  [PR libc/4070]
5331         * libio/Makefile (tests): Add bug-rewind.
5332         * libio/bug-rewind.c: New file.
5334 2002-07-12  Philip Blundell  <philb@gnu.org>
5336         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
5337         (__backtrace): Use it.
5338         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
5340 2002-07-12  Philip Blundell  <philb@gnu.org>
5342         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
5343         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
5344         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
5345         (elf_machine_rela): Remove unused variable.
5347         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
5348         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
5349         define.
5351 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
5353         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
5355 2002-07-14  Andreas Jaeger  <aj@suse.de>
5357         * sysdeps/x86_64/bits/link.h: Add biarch support.
5359 2002-07-13  Andreas Jaeger  <aj@suse.de>
5361         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
5362         Use correct indices.
5363         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
5365 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5367         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
5368         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
5369         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
5370         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
5371         * sysdeps/s390/s390-32/bits/link.h: Remove.
5372         * sysdeps/s390/s390-64/bits/link.h: Remove.
5373         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
5374         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
5375         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
5376         * sysdeps/s390/bits/wordsize.h: New file.
5377         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
5378         elfclass.h.
5379         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
5380         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
5381         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
5382         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
5383         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
5384         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
5385         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
5386         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
5387         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
5388         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
5389         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
5390         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
5391         resource.h.
5392         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
5393         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
5394         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
5395         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
5396         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
5397         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
5398         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
5399         sigaction.h.
5400         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
5401         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
5402         siginfo.h.
5403         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
5404         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
5405         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
5406         socket.h.
5407         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
5408         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
5409         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
5410         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
5411         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
5412         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
5413         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
5414         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
5415         procfs.h.
5416         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
5417         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
5418         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
5419         ucontext.h.
5420         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
5421         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
5423 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
5425         * Versions.def (libc): Add GLIBC_2.3.
5426         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
5427         * stdlib/canonicalize.c: Add compatibility version for realpath
5428         and make new code available in GLIBC_2.3.
5430 2002-07-06  Bruno Haible  <bruno@clisp.org>
5432         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
5434 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
5436         * resolv/res_hconf.c (_res_hconf_init): Move code into new
5437         function do_init.  Use __libc_once.
5438         (do_init): New function.
5440         * iconvdata/iso8859-11.h: Removed.
5441         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
5442         (distribute): Remove iso8859-11.h.
5443         * iconvdata/tst-tables.sh: Add ISO-8859-11.
5445         * stdio-common/vfscanf.c (inchar): Restore errno from previous
5446         underflow operation if c == (W)EOF.
5448 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5450         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
5451         non-zero, adjust exponent.
5452         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
5453         Remove NO_LONG_DOUBLE aliases.
5454         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
5455         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
5456         (__log1pl): Raise divide by zero and invalid exceptions when needed.
5457         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
5458         1**y and -1**+-Inf.
5459         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
5460         Fix BITS_PER_MP_LIMB 32 extraction.
5461         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
5462         exceptions for qNaNs.
5463         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
5464         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
5465         Raise exceptions when needed.  Don't recurse unnecessarily.
5466         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
5467         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
5468         exceptions for qNaNs.
5469         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
5470         to fix *quo return value sign.
5471         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
5472         case -Inf argument.
5473         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
5475 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5477         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
5478         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
5479         -DNDEBUG.
5481 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5483         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
5484         the result.
5486         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
5487         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
5489         * Versions.def (libthread_db): Add GLIBC_2.3.
5491 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
5493         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
5494         new stream if possible.
5495         * libio/freopen64.c (freopen64): Likewise.
5496         * libio/Makefile (tests): Add tst-freopen.
5497         * libio/tst-freopen.c: New file.
5499 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5501         * libio/stdio.h (obstack_printf): Add format attribute.
5502         (obstack_vprintf): Likewise.
5504 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5506         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
5507         resp. 16 bytes on 32-bit resp. 64-bit platforms.
5508         (re_charset_t, re_string_t): Reorder structure members for 64-bit
5509         architectures.
5511 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5513         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
5514         (init_dfa): ...here.
5516 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5518         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
5519         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
5520         nodes in parse trees.
5521         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
5522         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
5523         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
5524         nodes which can epsilon transit.
5525         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
5526         to IS_EPSILON_NODE macro.
5527         * posix/regexec.c (update_regs): New function to update registers
5528         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
5529         (proceed_next_node): Use the entities of the nodes to determine
5530         whether the node can transit to.
5531         (set_regs): Use update_regs function to update registers.
5533 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5535         * posix/bug-regex4.c (main): Remove duplicate setlocale.
5536         * posix/bug-regex6.c: New file.
5537         * posix/Makefile (tests): Add bug-regex6.
5538         (bug-regex6-ENV): Set LOCPATH.
5540 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5542         * Versions.def [libpthread]: Add GLIBC_2.2.6.
5543         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
5545 2002-07-06  Bruno Haible  <bruno@clisp.org>
5547         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
5549 2002-07-06  Bruno Haible  <bruno@clisp.org>
5551         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
5552         declarations.
5554         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
5556         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
5558         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
5559         not _UTSNAME_H.
5560         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
5562         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
5563         * sysdeps/generic/bits/ustat.h: Likewise.
5565         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5567 2002-07-08  Andreas Jaeger  <aj@suse.de>
5569         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5571 2002-07-08  Andreas Jaeger  <aj@suse.de>
5573         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5575 2002-07-06  Andreas Jaeger  <aj@suse.de>
5577         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5578         * sysdeps/x86_64/fpu/s_copysign.S: New file.
5579         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5580         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5581         * sysdeps/x86_64/fpu/s_finitel.S: New file.
5582         * sysdeps/x86_64/fpu/s_fmax.S: New file.
5583         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5584         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5585         * sysdeps/x86_64/fpu/s_fmin.S: New file.
5586         * sysdeps/x86_64/fpu/s_fminf.S: New file.
5587         * sysdeps/x86_64/fpu/s_fminl.S: New file.
5589 2002-06-05  Brian Youmans <3diff@gnu.org>
5591         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5592         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5593         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5594         * sysdeps/ia64/fpu/e_asin.S: Likewise.
5595         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5596         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5597         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5598         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5599         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5600         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5601         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5602         * sysdeps/ia64/fpu/e_exp.S: Likewise.
5603         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5604         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5605         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5606         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5607         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5608         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5609         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5610         * sysdeps/ia64/fpu/e_log.S: Likewise.
5611         * sysdeps/ia64/fpu/e_logf.S: Likewise.
5612         * sysdeps/ia64/fpu/e_pow.S: Likewise.
5613         * sysdeps/ia64/fpu/e_powf.S: Likewise.
5614         * sysdeps/ia64/fpu/e_powl.S: Likewise.
5615         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5616         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5617         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5618         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5619         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5620         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5621         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5622         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5623         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5624         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5625         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5626         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5627         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5628         * sysdeps/ia64/fpu/libm_error.c: Likewise.
5629         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5630         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5631         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5632         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5633         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5634         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5635         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5636         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5637         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5638         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5639         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5640         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5641         * sysdeps/ia64/fpu/s_logb.S: Likewise.
5642         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5643         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5644         * sysdeps/ia64/fpu/s_modf.S: Likewise.
5645         * sysdeps/ia64/fpu/s_modff.S: Likewise.
5646         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5647         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5648         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5649         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5650         * sysdeps/ia64/fpu/s_rint.S: Likewise.
5651         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5652         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5653         * sysdeps/ia64/fpu/s_round.S: Likewise.
5654         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5655         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5656         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5657         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5658         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5659         * sysdeps/ia64/fpu/s_significand.S: Likewise.
5660         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5661         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5662         * sysdeps/ia64/fpu/s_tan.S: Likewise.
5663         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5664         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5665         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5666         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5667         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5668         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5669         reflect IBM donation of math library to FSF
5670         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5671         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5672         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5673         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5674         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5675         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5676         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5677         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5678         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5679         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5680         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5681         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5682         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5683         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5684         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5685         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5686         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5687         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5688         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5689         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5690         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5691         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5692         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5693         * sysdeps/vax/__longjmp.c: Likewise.
5694         * sysdeps/vax/setjmp.c: Likewise.
5695         * libio/filedoalloc.c: Fixed BSD copying permission notice to
5696         remove advertising clause
5697         * sysdeps/vax/htonl.s: Likewise.
5698         * sysdeps/vax/htons.s: Likewise.
5699         * libio/wfiledoalloc.c: Likewise.
5700         * stdlib/random.c: Likewise.
5701         * stdlib/random_r.c: Likewise.
5702         * sysdeps/mach/sys/reboot.h: Likewise.
5703         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5704         * sysdeps/posix/getaddrinfo.c: Likewise.
5705         * sunrpc/des_impl.c: Updated license permission notice to Lesser
5706         GPL and corrected pointer to point to the correct license.
5708 2002-07-04  Andreas Jaeger  <aj@suse.de>
5710         * scripts/config.guess: New upstream version.
5711         * scripts/config.sub: Likewise.
5713 2002-07-02  Andreas Schwab  <schwab@suse.de>
5715         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5716         in parallel to bumping up the buffer pointer.
5718 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5720         * math/libm-test.inc (acos_test): Add missing L suffix for
5721         expected result.
5722         (cpow_test): Likewise.
5723         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5724         error for acos (0.0625).
5726 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5728         * locale/iso-639.def: Add entry for Ganda.
5729         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5730         definition.
5731         (address_finish): Handle entries with two letter ISO 639 code.
5733         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5734         directory if it existed before.
5735         * iconv/iconvconfig.c: Implement --prefix option.
5737         * math/libm-test.inc (cexp_test): Add missing L suffix for
5738         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
5739         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5740         1.25 i).
5742 2002-05-29  H.J. Lu  <hjl@gnu.org>
5744         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5745         is turned on.
5747 2002-05-28  H.J. Lu  <hjl@gnu.org>
5749         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5750         are not dlopened on the dependency list of a dlopened object.
5752 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5754         * elf/dl-lookup.c (add_dependency): It is not necessary to add
5755         dependencies if they are created between objects which are created
5756         while processing RTLD_NOW for objects loaded as part of the same
5757         dlopen call.
5759 2002-06-14  H.J. Lu  <hjl@gnu.org>
5761         * elf/Makefile (tests): Add circleload1.
5762         (modules-names): Add circlemod1, circlemod2, circlemod3,
5763         circlemod1a, circlemod2a and circlemod3a.
5764         ($(objpfx)circleload1): New target.
5765         ($(objpfx)circleload1.out): Likewise.
5766         ($(objpfx)circlemod1.so): Likewise.
5767         ($(objpfx)circlemod2.so): Likewise.
5768         ($(objpfx)circlemod1a.so): Likewise.
5769         ($(objpfx)circlemod2a.so): Likewise.
5770         * elf/circleload1.c: New file.
5771         * elf/circlemod1.c: New file.
5772         * elf/circlemod1a.c: New file.
5773         * elf/circlemod2.c: New file.
5774         * elf/circlemod2a.c: New file.
5775         * elf/circlemod3.c: New file.
5776         * elf/circlemod3a.c: New file.
5778 2002-06-18  Amos Waterland  <apw@us.ibm.com>
5780         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5781         file descriptor.
5782         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5783         add check for fd not open for writing.
5785         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5786         completed element(s) and do not suspend thread if so.  Patch
5787         heavily modified by drepper.
5789         * rt/tst-aio7.c: New file.  Regression test for problems which the
5790         above three changes fix.
5791         * rt/Makefile (tests): Add tst-aio7.
5793 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
5795         * rt/tst-aio6.c: Fix comment.
5797         * catgets/gencat.c (read_input_file): Handle more than one slash
5798         at end of line correctly [PR libc/3926].
5799         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5801         * catgets/sample.SJIS: Add test case for above bug.
5802         * catgets/test-gencat.c: Adjust test code.
5803         * catgets/test-gencat.sh: Adjust expected results.
5805         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5806         to skip relative relocations.
5807         Patch by Geoff Keating <geoffk@redhat.com>.
5809 2002-05-26  Bruno Haible  <bruno@clisp.org>
5811         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5812         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5813         All callers changed.
5814         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5815         STANDARD_FROM_LOOP_ERR_HANDLER.
5816         (utf8_internal_loop): Likewise.
5817         (ucs2_internal_loop): Likewise.
5818         (internal_ucs2_loop): Perform error handling like in
5819         STANDARD_FROM_LOOP_ERR_HANDLER.
5820         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5821         in STANDARD_FROM_LOOP_ERR_HANDLER.
5822         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5823         handling.
5824         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5825         in STANDARD_FROM_LOOP_ERR_HANDLER.
5826         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5827         handling.
5828         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5829         in STANDARD_FROM_LOOP_ERR_HANDLER.
5830         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5831         handling.
5832         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5833         STANDARD_FROM_LOOP_ERR_HANDLER.
5834         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5835         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5836         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5837         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5838         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5839         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5840         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5841         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5842         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5843         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5844         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5845         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5846         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5847         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5848         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5849         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5850         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5851         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5852         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5853         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5854         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5855         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5856         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5857         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5858         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5859         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5860         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5861         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5862         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
5863         an error, still set result = __GCONV_ILLEGAL_INPUT.
5864         (BODY for TO_LOOP): Likewise.
5865         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5866         STANDARD_FROM_LOOP_ERR_HANDLER.
5867         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5868         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5869         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5870         handling.
5871         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5872         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5873         STANDARD_FROM_LOOP_ERR_HANDLER.
5874         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5875         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5876         STANDARD_FROM_LOOP_ERR_HANDLER.
5877         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5878         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5879         STANDARD_FROM_LOOP_ERR_HANDLER.
5880         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5881         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5882         STANDARD_FROM_LOOP_ERR_HANDLER.
5883         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5884         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5885         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5886         handling.
5887         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5888         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5889         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5890         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5892 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5894         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5895         labels in assembler instructions.
5897 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
5899         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5900         not enough content is available.
5901         * libio/tst-eof.c: New file.
5902         * libio/Makefile (tests): Add tst-eof.
5904         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5905         update atime.
5906         * libio/tst-atime.c: New file.
5907         * libio/Makefile (tests): Add tst-atime.
5909         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5910         handling of overly long words.
5912 2002-06-25  Andreas Jaeger  <aj@suse.de>
5914         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5915         to not use 32-bit pc relative relocations.
5916         (elf_machine_dynamic): Likewise.
5918 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5920         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5921         (__GETDENTS): Check for failed getdents64 syscall.
5922         * dirent/Makefile (tests): Add bug-readdir1.
5923         * dirent/bug-readdir1.c: New file.
5925 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
5927         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5928         lookups.
5929         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5930         code.  Print TLS modid and offset for modules containing PT_TLS
5931         segments.
5933 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5935         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5936         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5937         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5938         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5940 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5942         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5943         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5944         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5945         * nss/getXXent_r.c (NEW, NEW1): Define.
5946         (NEW (REENTRANT_GETNAME)): Strong alias to
5947         INTERNAL (REENTRANT_GETNAME).
5948         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5950 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5952         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5953         (_IO_file_jumps_mmap): Use it.
5954         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5955         * libio/libioP.h: Remove _IO_wdefault_setbuf and
5956         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
5957         prototype.
5958         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5959         (_IO_wfile_jumps_mmap): Don't use it anymore.
5960         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5961         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5962         _IO_wdefault_setbuf.
5963         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5964         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5965         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5967 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
5969         * libio/Makefile (tests): Add tst-mmap-setvbuf.
5970         * libio/tst-mmap-setvbuf.c: New test.
5972 2002-06-21  Andreas Jaeger  <aj@suse.de>
5974         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5976 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
5978         * include/unistd.h (__fork_internal): Remove.
5979         (__fork): Don't define to __fork_internal.
5980         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
5981         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
5982         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
5983         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
5984         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
5986 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5988         * po/hr.po: New file.
5990 2002-06-11  Wolfram Gloger  <wg@malloc.de>
5992         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
5993         Reported by Michael Meissner <meissner@redhat.com>.
5995 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
5997         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
5998         Patch by Hans Boehm <hans_boehm@hp.com>.
6000 2002-06-20  Andreas Jaeger  <aj@suse.de>
6002         * math/libm-test.inc: Use exact values as input parameters,
6003         compute output parameters with 36 digits for 128-bit long doubles.
6004         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
6005         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
6006         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
6008 2002-06-13  Stephen L Moshier  <steve@moshier.net>
6010         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
6011         argument or result is subnormal.
6013 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
6015         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
6016         quotient.
6017         * sysdeps/i386/fpu/s_remquof.S: Likewise.
6018         * sysdeps/i386/fpu/s_remquol.S: Likewise.
6020         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
6022 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
6024         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
6025         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
6026         Reported by Peter A. Buhr.
6028 2002-06-15  Roland McGrath  <roland@frob.com>
6030         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
6031         warning.
6033         * sysdeps/mach/hurd/getcwd.c
6034         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
6036         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
6037         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
6039         * sysdeps/alpha/divrem.h: Use local label instead of global one for
6040         jump to local subroutine.
6042 2002-06-14  Roland McGrath  <roland@frob.com>
6044         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
6045         * sysdeps/mach/hurd/Makeconfig: ... here.
6047 2002-06-13  Andreas Schwab  <schwab@suse.de>
6049         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
6050         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6051         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
6053 2002-06-13  Roland McGrath  <roland@frob.com>
6055         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
6056         * hurd/hurdstartup.c (_hurd_startup): Likewise.
6057         Use intptr_t instead of int for argc in stack layout.
6058         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
6059         (_dl_init_first): Likewise.
6060         (_hurd_stack_setup): Likewise.
6061         (init1): Add a cast.
6062         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
6064         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
6065         argument to pfinet_siocgifconf RPC.
6067 2002-06-13  Andreas Schwab  <schwab@suse.de>
6069         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
6070         expansion order.
6072 2002-06-12  Roland McGrath  <roland@frob.com>
6074         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
6075         if already defined.
6076         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
6077         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
6079 2002-06-11  Roland McGrath  <roland@frob.com>
6081         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
6082         file on [!RTLD_STAT64].
6083         * sysdeps/mach/hurd/fxstat64.c: Likewise.
6085         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
6086         (__fdopen): Use INTUSE.
6087         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
6089         * stdio-common/tmpfile64.c: File removed.
6090         * sysdeps/generic/tmpfile64.c: New file.
6091         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
6092         if not already defined.
6093         (tmpfile): Use it in place of __GT_FILE.
6095         * include/unistd.h: Declare __chown_internal.
6097         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
6098         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
6100 2002-06-09  Roland McGrath  <roland@frob.com>
6102         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
6103         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
6104         value of HURD_INTERFACE_VERSION >= 20020609.
6105         * sysdeps/mach/hurd/configure: Regenerated.
6106         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
6107         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
6108         convert a struct stat64 into a struct stat and return 0 or -1
6109         with errno set to EOVERFLOW.
6110         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
6111         for struct statfs64 to struct statfs.
6112         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
6113         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
6114         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
6115         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
6116         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
6117         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
6118         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
6119         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
6120         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
6121         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
6122         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
6123         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
6124         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
6125         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
6126         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
6127         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
6128         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
6129         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
6130         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
6131         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
6132         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
6133         Use struct stat64 for io_stat argument.
6134         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
6135         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
6136         to io_seek.
6137         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
6138         * hurd/fd-write.c (_hurd_fd_write): Likewise.
6139         * hurd/hurd/fd.h: Update decls.
6140         * sysdeps/mach/hurd/getcwd.c
6141         (_hurd_canonicalize_directory_name_internal): Use ino64_t
6142         and struct dirent64.
6143         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
6144         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
6145         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
6146         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
6148 2002-06-08  Roland McGrath  <roland@frob.com>
6150         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
6151         instead of unsigned long int for __allocation and __size members.
6153 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
6155         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
6156         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
6157         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
6158         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
6160 2002-06-07  Roland McGrath  <roland@frob.com>
6162         * sysdeps/mach/hurd/bits/environments.h: File removed.
6164 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
6166         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
6167         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
6168         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
6169         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
6170         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
6171         (sendfile64): Likewise.
6172         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
6173         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
6174         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
6175         Likewise.
6176         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
6178         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
6179         already defined.
6181 2002-06-04  Bruno Haible  <bruno@clisp.org>
6183         * sysdeps/cris/stackinfo.h: New file.
6185         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
6186         to an integer type before performing bit operations on it.
6188 2002-06-05  Roland McGrath  <roland@frob.com>
6190         * sysdeps/generic/sendfile.c: Include <errno.h>.
6191         * sysdeps/generic/sendfile64.c: Likewise.
6193         * io/Makefile (routines): Add sendfile and sendfile64.
6194         (headers): Add sys/sendfile.h to the list.
6195         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
6196         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
6197         * io/sys/sendfile.h: ... here.
6198         * sysdeps/generic/sendfile.c: New file.
6199         * sysdeps/generic/sendfile64.c: New file.
6201         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
6202         Move sendfile, sendfile64 to ...
6203         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
6204         * sysdeps/mach/hurd/sendfile.c: New file.
6205         * sysdeps/mach/hurd/sendfile64.c: New file.
6207         * sysdeps/mach/nanosleep.c: New file.
6209 2002-06-04  Roland McGrath  <roland@frob.com>
6211         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
6212         * sysdeps/alpha/elf/configure: New file (generated).
6214 2002-06-02  Roland McGrath  <roland@frob.com>
6216         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
6218 2002-06-01  Roland McGrath  <roland@frob.com>
6220         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
6221         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
6223 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
6225         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
6226         Add nsmap.
6227         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
6228         Remove nstimes setting.
6229         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
6230         * resolv/res_send.c (res_nsend): Don't close unconditionally if
6231         there is mix of IPv6 and IPv4 nameservers.
6232         Use nsmap array to find free slots and preserve nameserver ordering.
6233         Fix RES_ROTATE.
6235 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
6237         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
6238         use this header with LFS.
6240         * po/sk.po: Update from translation team.
6242 2002-05-28  Andreas Schwab  <schwab@suse.de>
6244         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
6245         message when finding object of wrong class.
6247 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
6249         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
6250         Patch by <radu@netsoft.ro>.
6252 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
6254         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
6255         Add readahead.
6256         * sysdeps/unix/sysv/linux/readahead.c: New file.
6257         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
6258         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
6259         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
6260         Add sendfile64 alias to sendfile syscall.
6261         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6262         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6263         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6264         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
6265         syscall.
6267         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
6268         special section for PIC register loading.
6269         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
6271         * config.h.in: Define HAVE_HIDDEN.
6272         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
6274         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
6276 2002-05-28  Roland McGrath  <roland@frob.com>
6278         * sysdeps/mach/alpha/setfpucw.c: New file.
6280 2002-05-26  Roland McGrath  <roland@frob.com>
6282         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
6283         Use integer_t instead of int for IOC_VOID case.
6285 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
6287         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
6289 2002-05-26  Bruno Haible  <bruno@clisp.org>
6291         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
6292         end of the ISO-8859-7 from idx table.
6294 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
6296         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
6298 2002-05-24  David S. Miller  <davem@redhat.com>
6300         * string/bits/string2.h (memset): Do not try to optimize when
6301         not _STRING_ARCH_unaligned if GCC will do the right thing.
6303 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
6305         * posix/regex.c: Define `inline' as a macro into nothing for the
6306         compilers which lack the keyword.
6307         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
6308         for the compatibility of gawk.
6309         * posix/regcomp.c: Add fake implementation of isblank() for the
6310         environments which lack the function.
6311         Don't use free_charset() in case of non-i18n envs.
6312         (build_range_exp): Don't use i18n related code in case of non-i18n
6313         envs.
6314         (build_collating_symbol): Likewise.
6315         (build_equiv_class): Likewise.
6316         (build_charclass): Likewise.
6317         (re_compile_fastmap_iter): Likewise.
6318         (parse_bracket_exp): Likewise.
6319         (build_word_op): Likewise.
6320         (regfree): Don't use free_charset() in case of non-i18n envs.
6321         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
6322         re_token_type_t in case of non-i18n envs.
6323         Don't define re_charset_t in case of non-i18n envs.
6324         Change the type of wcs of re_string_t from wchar_t to wint_t,
6325         since we store also WEOF.
6326         * posix/regex_internal.c: (re_string_realloc_buffers): Change
6327         the type of wcs of re_string_t from wchar_t to wint_t.
6328         (re_string_reconstruct): Likewise.
6329         (create_ci_newstate): Don't use i18n related code in case of
6330         non-i18n envs.
6331         (create_cd_newstate): Likewise.
6333 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
6335         * iconv/loop.c: Fix typo.
6337 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
6339         * inet/ether_line.c (ether_line): Fix a typo causing only
6340         lower 4 bits of each ethernet address byte being assigned.
6341         Don't modify what line points to.
6342         * inet/tst-ether_aton.c (main): Add ether_line tests.
6344 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
6346         * manual/filesys.texi: Don't make readlink example leak memory
6347         when readlink fails.
6349 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
6351         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
6352         some more security checks.
6354 2002-05-17  David S. Miller  <davem@redhat.com>
6356         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
6358 2002-05-16  David S. Miller  <davem@redhat.com>
6360         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
6361         (elf_machine_dynamic): Use it to force PIC register to be loaded.
6362         (elf_machine_load_address): Likewise.
6363         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
6365         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
6366         is unaligned, do not forget to fully initialize %g1 magic value.
6368         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
6369         register definitions and provide 32-bit variants of structures
6370         during 64-bit builds.
6372         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
6373         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
6374         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
6375         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
6376         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
6377         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
6378         Do not clear implicit one bit here, it must be done post-rounding.
6379         Only pad to the left using left shift if value uses less than the
6380         available fractional bits.
6382 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6384         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
6385         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
6386         (shared-only-routines): Likewise.
6387         * sysdeps/powerpc/libgcc-compat.c: New file.
6388         * sysdeps/wordsize-32/cmpdi2.c: Removed.
6389         * sysdeps/wordsize-32/fixdfdi.c: Removed.
6390         * sysdeps/wordsize-32/fixsfdi.c: Removed.
6391         * sysdeps/wordsize-32/shdi3.c: Removed.
6393 2002-05-16  Bruno Haible  <bruno@clisp.org>
6395         * MakeTAGS (libc.pot): Don't sort the output.
6396         * po/header.pot: Update to match xgettext 0.11 output.
6398 2002-05-16  Bruno Haible  <bruno@clisp.org>
6400         * MakeTAGS (subdirs): Remove duplicates.
6402 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
6404         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
6405         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
6406         alias.
6408 2002-05-19  Andreas Jaeger  <aj@suse.de>
6410         * sysdeps/unix/sysv/linux/configure.in: Warn against an
6411         installation in /usr/local.
6413 2002-05-16  Bruno Haible  <bruno@clisp.org>
6415         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
6416         string as argument of #error.
6418 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
6420         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
6421         don't define static.  Remove old __realpath function.  TC1 of
6422         POSIX 2001 will allow the second parameter to be NULL.
6423         * stdlib/test-canon.c: Comment out test for NULL as second
6424         parameter of realpath.
6426         * time/offtime.c (__offtime): Set errno if overflow is detected.
6428         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
6429         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
6430         dl-brk and dl-sbrk.
6432         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
6433         (fdimf): Likewise.
6435 2002-05-15  Roland McGrath  <roland@frob.com>
6437         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
6439 2002-05-12  Bruno Haible  <bruno@clisp.org>
6441         * iconvdata/testdata/EUC-JISX0213: New file.
6442         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
6443         * iconvdata/testdata/SHIFT_JISX0213: New file.
6444         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
6445         * iconvdata/testdata/ISO-2022-JP-3: New file.
6446         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
6447         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
6448         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
6449         contains comments indicating precomposed characters.
6451 2002-04-21  Bruno Haible  <bruno@clisp.org>
6453         * iconvdata/iso-2022-jp-3.c: New file.
6454         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
6455         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
6456         (LDFLAGS-ISO-2022-JP-3.so): New variable.
6457         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
6458         (distribute): Add iso-2022-jp-3.c.
6460 2002-05-12  Bruno Haible  <bruno@clisp.org>
6462         * iconvdata/tst-table-to.c (main): Restore handling of
6463         transliterations, broken by last patch.
6465 2002-05-12  Bruno Haible  <bruno@clisp.org>
6467         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
6469 2002-05-12  Bruno Haible  <bruno@clisp.org>
6471         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
6472         when there is not enough room in the output buffer.
6473         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
6475 2002-04-20  Bruno Haible  <bruno@clisp.org>
6477         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
6478         macros.
6479         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6480         Also make this macro work if FROM_DIRECTION evaluates to 0.
6481         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6482         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
6483         of consume_incomplete.
6484         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6485         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
6486         4, not 8.
6487         * iconvdata/cp1258.c: Likewise.
6488         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6489         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
6490         not 2.
6491         * iconvdata/ibm933.c: Likewise.
6492         * iconvdata/ibm935.c: Likewise.
6493         * iconvdata/ibm937.c: Likewise.
6494         * iconvdata/ibm939.c: Likewise.
6495         * iconvdata/iso-2022-cn.c: Define
6496         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6497         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
6498         * iconvdata/iso-2022-cn-ext.c: Likewise.
6499         * iconvdata/iso-2022-jp.c: Define
6500         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6501         {MIN,MAX}_NEEDED_{FROM,TO}.
6502         * iconvdata/tcvn5712-1.c: Define
6503         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6504         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
6505         * iconvdata/euc-jisx0213.c: Define
6506         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6507         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
6508         * iconvdata/shift_jisx0213.c: Likewise.
6510 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6512         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
6513         shdi3, fixdfdi, fixsfdi in csu dir.
6514         (shared-only-routines): Likewise.
6515         * sysdeps/wordsize-32/cmpdi2.c: New file.
6516         * sysdeps/wordsize-32/shdi3.c: New file.
6517         * sysdeps/wordsize-32/fixdfdi.c: New file.
6518         * sysdeps/wordsize-32/fixsfdi.c: New file.
6519         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
6520         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
6521         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
6523         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
6524         Only use va_arg if the argument will be used [PR libc/3259].
6526 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
6528         * catgets/catgets.c (catopen): Free buffer if internal catalog
6529         open fails.
6531 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6533         * debug/xtrace.sh: Make more robust.  For realtime tracking use
6534         non-buffering methods.
6535         * debug/pcprofiledump.c: Implement -u option.
6536         Patch by Roger Luethi <rl@hellgate.ch>.
6538 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
6540         * include/netinet/in.h (bindresvport_internal): Add prototype.
6541         * include/rpc/auth.h  (authunix_create_internal,
6542         authunix_create_default_internal, authnone_create_internal,
6543         authdes_pk_create_internal): Add prototypes.
6544         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
6545         clntudp_create_internal, clntudp_bufcreate_internal,
6546         clntunix_create_internal): Add prototypes.
6547         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
6548         svc_getreq_internal, svc_getreq_common_internal,
6549         svc_getreqset_internal, svc_getreq_poll_internal,
6550         svc_register_internal, svc_unregister_internal,
6551         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
6552         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
6553         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
6554         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
6555         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
6556         * inet/rcmd.c (rcmd_af): Use __listen.
6557         (rresvport_af): Use __bind.
6558         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
6559         authunix_create, authunix_create_default, authnone_create,
6560         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
6561         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
6562         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
6563         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
6564         _authenticate, add INTDEF after such function definitions.
6565         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6566         __setsockopt, __getsockname instead of non-__ variants.
6567         * sunrpc/pmap_rmt.c: Likewise.
6568         * sunrpc/rtime.c: Likewise.
6569         * sunrpc/svc_udp.c: Likewise.
6570         * sunrpc/clnt_unix.c: Likewise.
6571         * sunrpc/svc_unix.c: Likewise.
6572         * sunrpc/bindrsvprt.c: Likewise.
6573         * sunrpc/svc_tcp.c: Likewise.
6574         * sunrpc/auth_none.c: Likewise.
6575         * sunrpc/clnt_raw.c: Likewise.
6576         * sunrpc/clnt_tcp.c: Likewise.
6577         * sunrpc/auth_unix.c: Likewise.
6578         * sunrpc/key_call.c: Likewise.
6579         * sunrpc/clnt_gen.c: Likewise.
6580         * sunrpc/pm_getmaps.c: Likewise.
6581         * sunrpc/clnt_simp.c: Likewise.
6582         * sunrpc/pmap_clnt.c: Likewise.
6583         * sunrpc/svc_run.c: Likewise.
6584         * sunrpc/svc.c: Likewise.
6585         * sunrpc/svc_simple.c: Likewise.
6586         * sunrpc/pm_getport.c: Likewise.
6587         * sunrpc/auth_des.c: Likewise.
6588         * sunrpc/svc_auth.c: Likewise.
6589         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6590         __register_frame_info_table_bases, __deregister_frame_info_bases):
6591         Add INTDEF.
6592         (__register_frame_info_bases_internal,
6593         __register_frame_info_table_bases_internal,
6594         __deregister_frame_info_bases_internal): Add prototypes.
6595         (__register_frame_info, __register_frame): Use INTUSE in call to
6596         __register_frame_info_bases.
6597         (__register_frame_info_table): Similarly.
6598         (__deregister_frame_info, __deregister_frame): Similarly.
6599         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6600         sendto as weak alias.
6601         * sysdeps/mach/hurd/sendto.c: Likewise.
6602         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6603         recvfrom as weak alias.
6604         * sysdeps/mach/hurd/recvfrom.c: Likewise.
6605         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6606         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6607         recvmsg as weak alias.
6608         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6609         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6610         sendmsg as weak alias.
6611         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6612         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6613         setsockopt, add setsockopt as weak alias.
6614         * sysdeps/mach/hurd/setsockopt.c: Likewise.
6615         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6616         weak alias.
6617         * sysdeps/mach/hurd/bind.c: Likewise.
6618         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6619         as weak alias.
6620         * sysdeps/mach/hurd/listen.c: Likewise.
6621         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6622         getsockname, add getsockname as weak alias.
6623         * sysdeps/mach/hurd/getsockname.c: Likewise.
6624         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6625         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6626         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6627         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6628         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6629         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6630         Add aliases.
6631         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6632         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6633         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6634         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6635         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6636         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6637         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6638         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6639         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6640         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6641         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6642         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6644 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6646         * locale/programs/localedef.h (show_archive_content): Add verbose
6647         argument.
6648         * locale/programs/localedef.c (main): Adjust caller.
6649         * locale/programs/locarchive.c (struct nameent, struct dataent): New
6650         types.
6651         (nameentcmp, dataentcmp): New functions.
6652         (xstrcmp): Remove.
6653         (show_archive_content): Print verbose listing with --list-archive -v.
6655 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6657         * locale/programs/locarchive.c (open_archive): Take extra argument
6658         readonly.  If true open file with O_RDONLY and don't create the
6659         archive if it doesn't exist.
6660         Adapt all callers.
6661         (close_archive): Don't do anything if fd element is -1.
6662         * locale/programs/localedef.h (open_archive): Adjust prototype.
6663         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6664         call.
6666         * malloc/malloc.c (__posix_memalign): Correct check for size of
6667         alignment value [PR libc/3444].
6669         * include/stdio.h: Remove references to old stdio implementation.
6671         * libio/Makefile (bug-ungetwc2-ENV): Define.
6673 2002-05-13  Roland McGrath  <roland@frob.com>
6675         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6677         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6679 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
6681         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6682         Allocate three, not two, more than LEN when appending '/.'.
6683         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
6684         if NAME ends with '/.' if it is shorter than 2 chars.
6686 2002-05-12  Roland McGrath  <roland@frob.com>
6688         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6689         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6691         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6692         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6694 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6696         * sysdeps/ia64/Makefile: Remove extra endif.
6697         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6699 2002-05-10  Andreas Schwab  <schwab@suse.de>
6701         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6703 2002-05-09  Andreas Jaeger  <aj@suse.de>
6705         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6706         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6707         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6709         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6710         * sysdeps/wordsize-64/glob.c: ...here.
6711         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6712         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6713         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6715 2002-05-08  Roland McGrath  <roland@frob.com>
6717         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6718         O_NOTRANS flag in "." lookup.
6720 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
6722         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6724 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
6726         * locale/duplocale.c (__duplocale): Update special members only
6727         when allocation succeeded.
6729 2002-05-03  Roland McGrath  <roland@frob.com>
6731         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6732         we can only build libc.so.0.3(GLIBC_2.2.6) now.
6734 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
6736         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6737         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6738         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6739         * sysdeps/ia64/ia64libgcc.S: New file.
6741 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
6743         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6745         * malloc/memusage.c: Distinguish anonymous mmap.
6747 2002-05-01  Roland McGrath  <roland@frob.com>
6749         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6750         and use INTDEF on it.
6751         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6753         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6755         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6757 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
6759         * malloc/memusage.c: Add support for tracking mmap & friends.
6760         * malloc/memusage.sh: Implement -m/--mmap option.
6762 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6764         * locale/programs/locarchive.c (create_archive): Add archivefname
6765         argument, create fname from it.
6766         (enlarge_archive): Honour output_prefix.
6767         (open_archive): Likewise.
6769 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6771         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6772         too many stpcpy macros.
6774 2002-04-26  Bruno Haible  <bruno@clisp.org>
6776         * locale/programs/ld-collate.c (collate_read): Cast first argument
6777         for "%.*s" to int.
6779 2002-04-26  Bruno Haible  <bruno@clisp.org>
6781         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6782         __dcngettext_internal): New declarations.
6783         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6784         attribute declarations.
6786 2002-04-30  Roland McGrath  <roland@frob.com>
6788         Removed old GNU stdio implementation; GNU libio is now the only option.
6789         * configure.in: Removed --enable-libio option and @stdio@ subst var.
6790         Define USE_IN_LIBIO unconditionally.
6791         * configure: Regenerated.
6792         * Makeconfig (stdio): Set to libio by default.
6793         * config.make.in (stdio): Variable removed.
6794         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6795         * sysdeps/unix/sysv/linux/configure: Regenerated.
6796         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6797         * sysdeps/mach/hurd/configure: Regenerated.
6798         * stdio/.cvsignore: File removed.
6799         * stdio/Makefile: File removed.
6800         * stdio/Versions: File removed.
6801         * stdio/__fbufsize.c: File removed.
6802         * stdio/__flbf.c: File removed.
6803         * stdio/__fpending.c: File removed.
6804         * stdio/__fpurge.c: File removed.
6805         * stdio/__freadable.c: File removed.
6806         * stdio/__freading.c: File removed.
6807         * stdio/__fsetlocking.c: File removed.
6808         * stdio/__fwritable.c: File removed.
6809         * stdio/__fwriting.c: File removed.
6810         * stdio/clearerr.c: File removed.
6811         * stdio/fclose.c: File removed.
6812         * stdio/fcloseall.c: File removed.
6813         * stdio/feof.c: File removed.
6814         * stdio/ferror.c: File removed.
6815         * stdio/fflush.c: File removed.
6816         * stdio/fgetc.c: File removed.
6817         * stdio/fgetpos.c: File removed.
6818         * stdio/fgets.c: File removed.
6819         * stdio/fileno.c: File removed.
6820         * stdio/fmemopen.c: File removed.
6821         * stdio/fopen.c: File removed.
6822         * stdio/fopncook.c: File removed.
6823         * stdio/fputc.c: File removed.
6824         * stdio/fputs.c: File removed.
6825         * stdio/fread.c: File removed.
6826         * stdio/freopen.c: File removed.
6827         * stdio/fseek.c: File removed.
6828         * stdio/fsetpos.c: File removed.
6829         * stdio/ftell.c: File removed.
6830         * stdio/fwrite.c: File removed.
6831         * stdio/getc.c: File removed.
6832         * stdio/getchar.c: File removed.
6833         * stdio/getdelim.c: File removed.
6834         * stdio/gets.c: File removed.
6835         * stdio/glue.c: File removed.
6836         * stdio/internals.c: File removed.
6837         * stdio/linewrap.c: File removed.
6838         * stdio/linewrap.h: File removed.
6839         * stdio/memstream.c: File removed.
6840         * stdio/newstream.c: File removed.
6841         * stdio/obstream.c: File removed.
6842         * stdio/putc.c: File removed.
6843         * stdio/putchar.c: File removed.
6844         * stdio/puts.c: File removed.
6845         * stdio/rewind.c: File removed.
6846         * stdio/setbuf.c: File removed.
6847         * stdio/setbuffer.c: File removed.
6848         * stdio/setlinebuf.c: File removed.
6849         * stdio/setvbuf.c: File removed.
6850         * stdio/stdio.h: File removed.
6851         * stdio/ungetc.c: File removed.
6852         * stdio/vasprintf.c: File removed.
6853         * stdio/vscanf.c: File removed.
6854         * stdio/vsnprintf.c: File removed.
6855         * stdio/vsprintf.c: File removed.
6856         * stdio/vsscanf.c: File removed.
6857         * sysdeps/generic/defs.c: File removed.
6858         * sysdeps/generic/fdopen.c: File removed.
6859         * sysdeps/generic/pipestream.c: File removed.
6860         * sysdeps/generic/stdio_init.c: File removed.
6861         * sysdeps/generic/sysd-stdio.c: File removed.
6862         * sysdeps/generic/vdprintf.c: File removed.
6863         * sysdeps/mach/hurd/defs.c: File removed.
6864         * sysdeps/mach/hurd/fdopen.c: File removed.
6865         * sysdeps/mach/hurd/pipestream.c: File removed.
6866         * sysdeps/mach/hurd/stdio_init.c: File removed.
6867         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6868         * sysdeps/mach/hurd/vdprintf.c: File removed.
6869         * sysdeps/posix/defs.c: File removed.
6870         * sysdeps/posix/fdopen.c: File removed.
6871         * sysdeps/posix/pipestream.c: File removed.
6872         * sysdeps/posix/stdio_init.c: File removed.
6873         * sysdeps/posix/vdprintf.c: File removed.
6874         * sysdeps/unix/pipestream.c: File removed.
6875         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6876         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6877         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6879 2002-04-29  Roland McGrath  <roland@frob.com>
6881         * include/libc-symbols.h (link_warning): Use `unused' attribute.
6883 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
6885         * sysdeps/generic/tls.h: Describe what must be defined.
6887         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6888         glob_in_dir [PR libc/3385].
6889         * posix/globtest.sh: Add test case.
6891         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6892         //TRANSLIT twice.
6894 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
6896         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6897         _internal symbol handling.
6898         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6900 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6902         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6903         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6905 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
6907         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6908         not _LIBC and RE_ENABLE_I18N.
6909         (build_range_exp): Implement for not _LIBC.
6910         (build_collating_symbol): Likewise.
6911         (parse_bracket_exp): Unify redundant error handlings.
6912         Don't erase mbcset for non matching list in multibyte envs.
6913         (build_word_op): Add '_' to matching list for \w operator.
6914         * posix/regex_internal.c (re_string_construct): Invoke
6915         build_upper_buffer in case of not RE_ENABLE_I18N.
6916         (re_string_reconstruct): Don't touch cur_state in case of not
6917         RE_ENABLE_I18N.
6918         * posix/regex_internal.h (attribute_hidden): New macro in case of
6919         not _LIBC.
6920         (re_charset_t): Define range_starts/ends in case of not _LIBC.
6921         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6922         RE_ENABLE_I18N.
6923         (transit_state_mb): Likewise.
6924         (check_node_accept_bytes): Implement the code evaluating range
6925         expression in case of not _LIBC.
6926         (find_collation_sequence_value): Hide in case of not _LIBC.
6928 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
6930         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6931         i386/semctl.c.
6932         (__old_semctl, __new_semctl): Only use va_arg if the argument will
6933         be used.
6935 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6937         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6939         * sysdeps/ia64/strncpy.S: Fix recovery code.
6940         Patch by David Mosberger <davidm@hpl.hp.com>.
6942 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6944         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6945         GLIBC_2.2.6.
6947 2002-04-14  Bruno Haible  <bruno@clisp.org>
6949         * posix/regex.c (re_max_failures): Add back symbol for binary
6950         compatibility.
6952 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
6954         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6955         of buffer building functions.
6956         * posix/regex_internal.c (re_string_allocate): New function.
6957         (re_string_realloc_buffers): New function.
6958         (re_string_skip_chars): New function.
6959         (re_string_reconstruct): New function.
6960         (re_string_construct): Adapt it to new interface of buffer building
6961         functions.
6962         (re_string_construct_common): Likewise.
6963         (build_wcs_buffer): Likewise.
6964         (build_wcs_upper_buffer): Likewise.
6965         (build_upper_buffer): Likewise.
6966         (re_string_translate_buffer): Likewise.
6967         (re_string_context_at): Adapt it to variable length buffers.
6968         * posix/regex_internal.h (re_string_t): Add new fields to handle
6969         variable length buffers.
6970         (re_match_context_t): Likewise.
6971         * posix/regexec.c (re_search_internal): Adapt it to new interface
6972         of re_string_t and re_match_context_t.
6973         (acquire_init_state_context): Likewise.
6974         (check_matching): Likewise.
6975         (check_halt_state_context): Likewise.
6976         (proceed_next_node): Likewise.
6977         (set_regs): Likewise.
6978         (sift_states_backward): Likewise.
6979         (clean_state_log_if_need): Likewise.
6980         (sift_states_iter_mb): Likewise.
6981         (sift_states_iter_bkref): Likewise.
6982         (add_epsilon_backreference): Likewise.
6983         (transit_state): Likewise.
6984         (transit_state_sb): Likewise.
6985         (transit_state_mb): Likewise.
6986         (transit_state_bkref): Likewise.
6987         (transit_state_bkref_loop): Likewise.
6988         (check_node_accept): Likewise.
6989         (match_ctx_init): Likewise.
6990         (extend_buffers): New function.
6992 2002-04-21  Bruno Haible  <bruno@clisp.org>
6994         * iconvdata/tst-table.sh: For the second check, use the truncated
6995         GB18030 charmap table, like for the first check.
6997 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6999         * elf/dl-load.c (open_verify): Correct __lseek parameters.
7000         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
7002 2002-04-23  H.J. Lu  <hjl@gnu.org>
7004         * include/math.h (isfinite): Fix a typo.
7006 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
7008         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
7009         which is created by the test suite.
7011 2002-04-20  Bruno Haible  <bruno@clisp.org>
7013         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
7014         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
7016 2002-04-20  Bruno Haible  <bruno@clisp.org>
7018         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
7019         to avoid gcc warning.
7021 2002-04-20  Bruno Haible  <bruno@clisp.org>
7023         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
7024         of data->__statep->__count.
7026 2002-04-20  Bruno Haible  <bruno@clisp.org>
7028         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
7029         tag characters.
7030         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
7032 2002-04-24  Roland McGrath  <roland@frob.com>
7034         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
7035         use END macro instead of our own .end directive.
7036         Use `callsys' insn mnemonic instead of `call_pal'.
7038         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
7040         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
7041         macro; we need this for Hurd.
7043         Log entry was missing for 2002/03/24 commit of rev 1.8,
7044         goes with 2002-03-17 changes.
7045         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
7046         (sysdep_routines): Append ioperm here.
7047         (sysdep_headers): Append sys/io.h here.
7049 2002-04-23  Roland McGrath  <roland@frob.com>
7051         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
7052         * sysdeps/mach/hurd/sendto.c: Likewise.
7053         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
7054         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
7055         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
7057 2002-04-22  Roland McGrath  <roland@frob.com>
7059         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
7060         failure from i386_io_perm_* RPCs to ENOSYS.
7062 2002-04-22  Andreas Jaeger  <aj@suse.de>
7064         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
7066         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
7068         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
7069         register instead of destroying %rbx.
7071 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
7073         * string/string.h: Declare strerror_r also for XPG6.
7075 2002-04-19  Roland McGrath  <roland@frob.com>
7077         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
7079 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
7081         * Makefile: Add handling of xtests and xcheck targets.
7082         * MakeTAGS: Likewise.
7083         * Makeconfig: Likewise.
7084         * Makerules: Likewise.
7085         * Rules: Likewise.
7086         * manual/Makefile: Likewise.
7087         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
7088         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
7090 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
7092         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
7093         authnone_private_s.
7094         * sunrpc/auth_none.c: Include bits/libc-lock.h.
7095         Delete #ifdef _RPC_THREAD_SAFE_ block.
7096         (authnone_private): Make a struct, not a pointer to struct.
7097         (authnone_private_guard): New once-control variable.
7098         (authnone_create_once): New function, split out of
7099         authnone_create.  No need to allocate memory.
7100         (authnone_create): Just call authnone_create_once via
7101         __libc_once, then return &authnone_private->no_client.
7102         (authnone_marshal): Access private data via CLIENT argument,
7103         not authnone_private pointer.
7104         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
7105         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
7106         authnone_private_s.
7108 2002-04-12  H.J. Lu  <hjl@gnu.org>
7110         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
7112 2002-04-18  Bruno Haible  <bruno@clisp.org>
7114         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
7115         FROM_DIRECTION): Make the FROM direction stateless.
7116         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
7117         FROM_DIRECTION): Likewise.
7119 2002-04-15  Bruno Haible  <bruno@clisp.org>
7121         * iconvdata/JISX0213.TXT: New file.
7122         * iconvdata/jisx0213.h: New file.
7123         * iconvdata/jisx0213.c: New file.
7124         * iconvdata/euc-jisx0213.c: New file.
7125         * iconvdata/shift_jisx0213.c: New file.
7126         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
7127         * iconvdata/EUC-JISX0213.precomposed: New file.
7128         * iconvdata/SHIFT_JISX0213.precomposed: New file.
7129         * iconvdata/SHIFT_JISX0213.irreversible: New file.
7130         * iconvdata/tst-table-to.c (main): Make it work for encodings for
7131         which the "to" direction is stateful.
7132         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
7133         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
7134         SHIFT_JISX0213.
7135         (libJISX0213-routines): New variable.
7136         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
7137         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
7138         (LDFLAGS-libJISX0213.so): New variable.
7139         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
7140         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
7141         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
7143 2002-04-15  Bruno Haible  <bruno@clisp.org>
7145         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
7146         uint32_t.  Update to Unicode 3.2.
7147         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
7148         (BODY for TO_LOOP): Handle the ASCII range specially.
7149         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
7150         * iconvdata/testdata/BIG5HKSCS: Remove a character.
7151         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
7153 2002-04-15  Bruno Haible  <bruno@clisp.org>
7155         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
7156         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
7158 2002-04-15  Bruno Haible  <bruno@clisp.org>
7160         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
7161         (ucs4_to_cns11643): Update.
7162         * iconvdata/cns11643.c: Update to Unicode 3.2.
7163         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
7164         __cns11643_from_ucs4p2_tab): Regenerated.
7165         (__cns11643_from_ucs4p2c_tab): New array.
7166         * iconvdata/cvs11643l1.c: Update comments.
7167         * iconvdata/EUC-TW.irreversible: Remove two entries.
7169 2002-04-15  Bruno Haible  <bruno@clisp.org>
7171         * locale/C-translit.h.in: Update to Unicode 3.2.
7172         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
7173         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
7175 2002-04-15  Bruno Haible  <bruno@clisp.org>
7177         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
7178         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
7180 2002-04-15  Bruno Haible  <bruno@clisp.org>
7182         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
7183         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
7184         always one byte, not 0 bytes in some cases and 2 bytes in others.
7186         * iconvdata/tst-table-from.c (main): Correct the usage message.
7188 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
7190         * posix/regcomp.c (parse_expression): Fix incorrect error code.
7191         (parse_dup_op): Fix error handling like "a{}".
7192         (parse_bracket_exp): Add error handling.
7193         (fetch_number): Add error handling for "a{<very_large_number>}".
7195 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
7197         * posix/regcomp.c (parse_bracket_symbol): Add error handling
7198         in case that the symbol name is too long.
7199         (build_charclass): Handle [:lower:]/[:uppper:] correctly
7200         in case of REG_ICASE.
7202 2002-04-19  Andreas Jaeger  <aj@suse.de>
7204         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
7205         <hartvige@mips.com>.
7207 2002-04-15  H.J. Lu  <hjl@gnu.org>
7209         * include/math.h (__finitel_internal): Declare only if
7210         __NO_LONG_DOUBLE_MATH is not defined.
7211         (__isinfl_internal): Likewise.
7212         (__isnanl_internal): Likewise.
7214         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
7215         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
7216         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
7217         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
7218         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7219         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
7220         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7222         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
7223         __fcntl_internal.
7225         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
7226         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
7228 2002-04-15  Bruno Haible  <bruno@clisp.org>
7230         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
7231         (BODY for TO_LOOP): Likewise.
7232         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
7233         * iconvdata/tst-table.sh: Add support for encodings which contain
7234         precomposed Unicode characters, known to the iconv converter in both
7235         directions but not listed in the charmap.
7236         * iconvdata/IBM856.irreversible: New file.
7237         * iconvdata/IBM922.irreversible: New file.
7238         * iconvdata/IBM1132.irreversible: New file.
7239         * iconvdata/IBM1133.irreversible: New file.
7240         * iconvdata/IBM1160.irreversible: New file.
7241         * iconvdata/IBM1161.irreversible: New file.
7242         * iconvdata/IBM1163.irreversible: New file.
7243         * iconvdata/IBM1164.irreversible: New file.
7244         * iconvdata/ARMSCII-8.irreversible: New file.
7245         * iconvdata/TCVN5712-1.precomposed: New file.
7246         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
7247         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
7248         ARMSCII-8, TCVN5712-1.
7249         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
7250         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
7251         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
7252         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
7254 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
7256         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
7257         for EVENING69.  Include offsets in TZ environment variable.
7259 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
7261         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
7262         avoid compiler warnings.
7264         * locale/programs/localedef.c (main): Always call
7265         construct_output_path.
7267         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
7269         * locale/programs/locfile.c (to_archive): New variable.  To collect
7270         data which has to be added to the locale archive.
7271         (write_all_categories): Take new third parameter with locale name.
7272         Unless no_archive flag set add new locale data to the archive
7273         (write_locale_data): Unless no-archive flag set store generated data
7274         in to_archive data structure instead of generation output file.
7275         Add new parameter with locale category index.
7276         * locale/programs/locfile.h: Add new parameters in declaractions of
7277         write_all_categories and write_locale_data.
7278         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
7279         --add-to-archive, and --delete-from-archive options.  Pass extra
7280         parameter to write_all_categories.
7281         * locale/programs/localedef.h: Add prototypes for functions in
7282         locarchive.c.
7283         * locale/locarchive.h: New file.
7284         * locale/programs/locarchive.c: New file.
7285         * locale/Makefile (distribute): Add programs/locarchive.c and
7286         locarchive.h.
7287         (localedef-modules): Add md5 and locarchive.
7288         Add vpath to crypt subdir for md5.c.
7290         * locale/programs/ld-address.c: Pass locale category ID as new second
7291         parameter to write_locale_data.
7292         * locale/programs/ld-collate.c: Likewise.
7293         * locale/programs/ld-ctype.c: Likewise.
7294         * locale/programs/ld-identification.c: Likewise.
7295         * locale/programs/ld-measurement.c: Likewise.
7296         * locale/programs/ld-messages.c: Likewise.
7297         * locale/programs/ld-monetary.c: Likewise.
7298         * locale/programs/ld-name.c: Likewise.
7299         * locale/programs/ld-numeric.c: Likewise.
7300         * locale/programs/ld-paper.c: Likewise.
7301         * locale/programs/ld-telephone.c: Likewise.
7302         * locale/programs/ld-time.c: Likewise.
7304         * locale/simple-hash.c: Move compute_hashval function from here...
7305         * locale/hashval.h: ...to here.  New file.
7306         * locale/simple-hash.h: Add prototype for compute_hashval.
7308         * include/libintl.h: Minor cleanups.
7310 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
7312         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
7314 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
7316         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
7318 2002-04-14  Bruno Haible  <bruno@clisp.org>
7320         * locale/programs/charmap.c (charmap_read): Don't access result if
7321         result == NULL.
7323 2002-02-17  Andreas Schwab  <schwab@suse.de>
7325         * elf/reldep7.c: New file.
7326         * elf/reldep7mod1.c: New file.
7327         * elf/reldep7mod2.c: New file.
7328         * elf/Makefile: Add rules to build and run reldep7.
7330 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
7332         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
7333         the end of the function.  Pass original flags to recursive call if
7334         add_dependency failed.
7335         (_dl_lookup_versioned_symbol): Likewise.
7337 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
7339         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
7340         early, but check whether it overflowed afterwards.
7341         * time/tst-mktime.c (main): Add new tests.
7343 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
7345         * debug/xtrace.sh: Fix program name in help message.
7346         Patch by Roger Luethi <rl@hellgate.ch>.
7348         * include/sys/stat.h: Add prototypes for __lxstat_internal and
7349         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
7350         NOT_IN_libc.
7351         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
7352         * sysdeps/mach/hurd/lxstat.c: Likewise.
7353         * sysdeps/unix/common/lxstat.c: Likewise.
7354         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
7355         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
7356         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
7357         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
7358         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
7359         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
7360         * sysdeps/mach/hurd/lxstat64.c: Likewise.
7361         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
7362         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
7364         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
7365         prototypes.  Add __mbrlen and __mbrtowc macros.
7366         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
7367         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
7369         * include/unistd.h: Add prototype for __write_internal and add
7370         __libc_write macro is SHARED.
7371         * sysdeps/generic/write.c: Use INTDEF for __write.
7372         * sysdeps/mach/hurd/write.c: Likewise.
7373         * sysdeps/unix/sysv/aix/write.c: Likewise.
7374         * sysdeps/unix/syscalls.list: Add __libc_write alias.
7376         * assert/assert.c: Replace STR_N_SIZE with something usable in
7377         macro arguments.
7378         * assert/assert-perr.c: Likewise.
7380         * include/sys/socket.h: Declare __libc_sa_len_internal and define
7381         SA_LEN macro to use it if not NOT_IN_libc.
7382         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
7384         * include/fcntl.h: Declare __open_internal and define __open and
7385         __libc_open macros if not NOT_IN_libc.
7386         * sysdeps/generic/open.c: Use INTDEF for __open.
7387         * sysdeps/mach/hurd/open.c: Likewise.
7388         * sysdeps/unix/sysv/aix/open.c: Likewise.
7389         * sysdeps/unix/syscalls.list: Add __open_internal alias.
7391         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
7392         has correct number.
7394         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
7395         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
7396         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7397         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7399         * include/wctype.h: Declare __iswalpha_l_internal,
7400         __iswdigit_l_internal, __iswspace_l_internal,
7401         __iswxdigit_l_internal, and __iswctype_internal.  Define
7402         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
7403         __iswxdigit_l macros if not NOT_IN_libc.
7404         * wctype/iswctype.c: Use INTDEF for __iswctype.
7405         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
7407         * include/math.h: Declare __isinf_internal, __isinfl_internal,
7408         __isnan_internal, and __isnanl_internal.
7409         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
7410         __isnan, and __isnanl.
7411         * stdio-common/printf_size.c: Likewise.
7412         * sysdeps/generic/printf_fphex.c: Likewise.
7413         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
7414         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7415         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
7416         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
7417         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
7418         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7419         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
7420         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7421         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
7422         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7423         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
7424         * sysdeps/m68k/s_isinfl.c: Likewise.
7425         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
7426         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
7428         * include/sys/time.h: Declare __gettimeofday_internal and define
7429         __gettimeofday macro if not NOT_IN_libc.
7430         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
7431         * sysdeps/mach/gettimeofday.c: Likewise.
7432         * sysdeps/posix/gettimeofday.c: Likewise.
7433         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
7434         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
7435         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
7436         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
7438         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
7439         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
7440         Remove __lstat and __fstat inline functions.
7441         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
7442         * sysdeps/mach/hurd/fxstat.c: Likewise.
7443         * sysdeps/unix/fxstat.c: Likewise.
7444         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
7445         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
7446         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
7447         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
7448         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
7449         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
7450         * sysdeps/mach/hurd/fxstat64.c: Likewise.
7451         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
7452         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
7454         * include/unistd.h: Declare __getpid_internal and define
7455         __getpid macro if not NOT_IN_libc.
7456         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
7457         * sysdeps/generic/getpid.c: Likewise.
7458         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
7459         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
7461         * include/unistd.h: Declare __getpgid_internal and define
7462         __getpgid macro if not NOT_IN_libc.
7463         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
7464         * sysdeps/mach/hurd/getpgid.c: Likewise.
7465         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
7466         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
7467         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
7468         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
7470         * include/unistd.h: Declare __getpagesize_internal and define
7471         __getpagesize macro if not NOT_IN_libc.
7472         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
7473         __getpagesize.
7474         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
7475         * sysdeps/mach/getpagesize.c: Likewise.
7476         * sysdeps/posix/getpagesize.c: Likewise.
7477         * sysdeps/unix/getpagesize.c: Likewise.
7478         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
7479         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7480         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
7481         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
7483 2002-04-13  Andreas Jaeger  <aj@suse.de>
7485         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
7486         as clobber to reduce register pressure.
7487         (__strpbrk_cg): Likewise.
7488         (__mempcpy_by4): Likewise.
7489         (__strstr_cg): Likewise.
7490         Add prototype for __memrchr.
7492 2002-04-13  Andreas Schwab  <schwab@suse.de>
7494         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
7495         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
7496         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
7498 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
7500         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
7501         check whether the caller prefers getting the most recent version of
7502         a symbol of the earliest version.
7503         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
7504         _dl_do_lookup to also take the new parameter and pass it on.
7505         Change 'explicit' parameter of _dl_lookup_symbol and
7506         _dl_lookup_versioned_symbol to flags.  Adjust tests.
7507         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7508         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
7509         _dl_lookup_versioned_symbol.
7510         * elf/dl-reloc.c: Likewise.
7511         * elf/dl-runtime.c: Likewise.
7512         * elf/dl-sym.c: Likewise.
7513         * sysdeps/mips/dl-machine.h: Likewise.
7515 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7517         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
7518         in a token.
7519         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
7521 2002-04-10  Andreas Jaeger  <aj@suse.de>
7523         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
7525         * include/argz.h: Remove extra char from last patch.
7527 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
7529         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
7530         * sysdeps/unix/sysv/aix/chown.c: Likewise.
7531         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
7532         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
7533         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7534         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
7535         __chown_internal.
7536         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
7538         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
7539         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
7540         * intl/ngettext.c: Likewise.
7542         * include/sys/socket.h: Declare __connect_internal and define
7543         __connect macro if not NOT_IN_libc.
7544         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
7545         * sysdeps/unix/sysv/aix/connect.c: Likewise.
7546         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
7548         * include/unistd.h: Declare __close_internal and define __close macro
7549         if not NOT_IN_libc.
7550         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
7551         WJUMP3): Add extra parenthesis to avoid expanding element names with
7552         macors like __close.
7553         * sysdeps/unix/syscalls.list: Add __close_internal alias.
7555         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
7556         if not NOT_IN_libc.
7557         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
7558         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
7559         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
7561         * include/unistd.h: Declare __fork_internal and define __fork macro
7562         if not NOT_IN_libc.
7563         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
7564         * sysdeps/unix/sysv/aix/fork.c: Likewise.
7565         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7567         * include/stdio_ext.h: Declare __fsetlocking_internal and define
7568         __fsetlocking macro to use it if not NOT_IN_libc.
7569         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7571         * libio/__fbufsize.c: Correct copyright.
7572         * libio/__flbf.c: Likewise.
7573         * libio/__fpending.c: Likewise.
7574         * libio/__fpurge.c: Likewise.
7575         * libio/__freadable.c: Likewise.
7576         * libio/__freading.c: Likewise.
7577         * libio/__fsetlocking.c: Likewise.
7578         * libio/__fwritable.c: Likewise.
7579         * libio/__fwriting.c: Likewise.
7581         * include/stdio.h: Declare __asprintf_internal and define __asprintf
7582         macro to use it if not NOT_IN_libc.
7583         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7585         * include/mntent.h: Declare __setmntent_internal,
7586         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
7587         __getmntent_r, and __endmntent macros to use these functions if not
7588         NOT_IN_libc.
7589         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7590         __endmntent.
7592         * include/math.h: Declare __finite_internal, __finitef_internal, and
7593         __finitel_internal.  Redefine isfinite macro if in libc or libm using
7594         these functions.
7595         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7596         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7597         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7598         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7599         * sysdeps/i386/fpu/s_finitef.S: Likewise.
7600         * sysdeps/i386/fpu/s_finitel.S: Likewise.
7601         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7602         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7603         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7604         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7606         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
7607         to use this function if not NOT_IN_libc.
7608         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7609         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7610         * sysdeps/mach/hurd/fcntl.c: Likewise.
7611         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7612         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7614         * include/argz.h: Declare __argz_count_internal and
7615         __argz_stringify_internal.
7616         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7617         __argz_stringify.
7618         * string/argz-count.c: Use INTDEF for __argz_count.
7619         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7621         * include/stdlib.h: Declare __cxa_atexit_internal and define
7622         __cxa_atexit macro if not NOT_IN_libc.
7623         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7624         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7626         * assert/assert.c: Use INTDEF for __assert_fail.
7627         * assert/__assert.c: Use INTUSE for call to __assert_fail.
7628         * include/assert.h: Declare __assert_fail_internal.
7630         * extra-lib.mk: Mark assignment to lib with override.
7632 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7634         * Makerules: Use cppflags-iterator.mk to add defines for all test
7635         source files.
7637 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
7639         * elf/elf.h: Define R_SH_TLS_xxx macros.
7640         * elf/rtld.c: Remove an extra parenthesis.
7641         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7642         TLS_GD macros.
7643         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7644         * sysdeps/sh/dl-lookupcfg.h: New file.
7645         * sysdeps/sh/dl-tls.h: New file.
7646         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7647         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7648         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7649         R_SH_TLS_TPOFF32 relocations.
7651 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7653         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7654         of NOT_IN_LIBC.
7655         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7656         * include/stdlib.h: Likewise.
7658 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
7660         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7661         instead of _RTLD_LOCAL.
7662         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7663         * include/unistd.h: Likewise.
7664         * sysdeps/generic/ldsodefs.h: Likewise.
7666         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7667         if in libc or ld.so.
7669 2002-04-08  Andreas Jaeger  <aj@suse.de>
7671         * elf/cache.c (print_entry): Support x86-64.
7673 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7675         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7676         with one accessing the locale data structures directly.
7677         * stdio-common/printf-prs.c: Include localeinfo.h for new
7678         MB_CUR_MAX definition.
7680         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7681         is the name of the source file without extension.
7682         * Makefile (distribute): Add cppflags-iterator.mk.
7683         * cppflags-iterator.mk: New file.
7684         * extra-lib.mk: For the sources of the library run
7685         cppflags-iterator.mk.
7687         * include/libintl.h: Declare __dcgettext_internal and
7688         _libc_intl_domainname_internal.  Define __dcgettext using these
7689         two symbols if used in libc itself.
7690         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7691         _libc_intl_domainname_internal.
7692         * argp/argp-parse.c: Likewise.
7693         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7694         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7695         * intl/gettext.c: Likewise.
7696         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7697         alias.
7698         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7699         __dcgettext.
7700         * posix/regex_internal.c (gettext): Likewise.
7702 2002-04-08  Andreas Jaeger  <aj@suse.de>
7704         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7706         * sysdeps/x86_64/fpu/s_llrint.S: New file.
7707         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7708         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7709         * sysdeps/x86_64/fpu/s_lrint.S: New file.
7710         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7711         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7713 2002-04-08  Roland McGrath  <roland@frob.com>
7715         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7716         widening __hurd_fail value.
7718 2002-04-07  Roland McGrath  <roland@frob.com>
7720         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7721         <mach/machine/alpha_instruction.h>.
7722         (_hurd_setup_sighandler): Take proper arguments for current decls.
7723         Update code to use _hurdsig_catch_fault.
7724         Use `callsys' instruction instead of `call_pal'.
7725         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7727         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7728         (ALIGN, at, AT, fp): New macros.
7730 2002-04-06  Roland McGrath  <roland@frob.com>
7732         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7734         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7735         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7737         * sysdeps/mach/hurd/bind.c: Use prototype definition.
7738         * sysdeps/mach/hurd/connect.c: Likewise.
7739         * sysdeps/mach/hurd/getsockopt.c: Likewise.
7740         * sysdeps/mach/hurd/setsockopt.c: Likewise.
7742         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7743         __msg_sig_post RPC.
7745         * hurd/catch-exc.c: Use integer_t instead of int.
7746         * hurd/hurdfault.c: Likewise.
7748         * sysdeps/mach/hurd/alpha/exc2signal.c
7749         (_hurd_exception2signal): Rewritten.
7750         * sysdeps/mach/hurd/alpha/longjmp-ts.c
7751         (_hurd_longjmp_thread_state): Rewritten.
7753 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
7755         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7756         DB_LOOKUP_FCT prototype.
7757         * nss/getXXent_r.c: Likewise.
7758         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7759         * inet/getaliasname_r.c: Likewise.
7760         * inet/getnetbyad_r.c: Likewise.
7761         * inet/getnetbynm_r.c: Likewise.
7762         * inet/getnetent_r.c: Likewise.
7763         * inet/getproto_r.c: Likewise.
7764         * inet/getprtent_r.c: Likewise.
7765         * inet/getprtname_r.c: Likewise.
7766         * inet/getrpcbyname_r.c: Likewise.
7767         * inet/getrpcbynumber_r.c: Likewise.
7768         * inet/getrpcent_r.c: Likewise.
7769         * inet/getservent_r.c: Likewise.
7770         * inet/getsrvbynm_r.c: Likewise.
7771         * inet/getsrvbypt_r.c: Likewise.
7772         * shadow/getspent_r.c: Likewise.
7773         * shadow/getspnam_r.c: Likewise.
7775         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7777         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7778         Use i686-friendly PIC code.
7779         * sysdeps/i386/elf/setjmp.S: Likewise.
7781         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7783         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7784         list.
7785         * elf/Versions: Remove it here.
7787 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
7789         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7790         direction.  Reported by H . J . Lu <hjl@lucon.org>.
7792 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7794         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7795         test just before the test runs.
7796         * intl/tst-translit.sh: Likewise.
7797         * intl/tst-codeset.sh: Likewise.
7799         * timezone/zic.c: Update from tzcode2002c.
7800         * timezone/asia: Update from tzdata2002c.
7801         * timezone/backward: Likewise.
7802         * timezone/europe: Likewise.
7803         * timezone/northamerica: Likewise.
7804         * timezone/northamerica: Likewise.
7805         * timezone/northamerica: Likewise.
7806         * timezone/southamerica: Likewise.
7807         * timezone/zone.tab: Likewise.
7809 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
7811         * sysdeps/generic/brk.c (__curbrk): Declare.
7812         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7813         * sysdeps/generic/dl-sbrk.c: Likewise.
7814         * sysdeps/unix/arm/dl-brk.S: New file.
7815         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7816         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7817         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7818         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7819         * sysdeps/unix/i386/dl-brk.S: New file.
7820         * sysdeps/unix/mips/dl-brk.S: New file.
7821         * sysdeps/unix/sparc/dl-brk.S: New file.
7822         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7823         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7824         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7825         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7827 2002-04-03  Andreas Schwab  <schwab@suse.de>
7829         * Makefile (headers): Add gnu/lib-names.h here instead of
7830         install-others.
7831         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7832         installation rule.
7833         (install-headers): Add dependency on install-headers-nosubdir.
7834         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7835         instead of install-others.
7836         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7837         installation rule.
7839 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7841         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7842         Reported by Sam Roberts <sroberts@uniserve.com>.
7844 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7846         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7847         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7848         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7849         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7851 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
7853         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7854         (RTLD_START): Ditto.
7855         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7856         dependency violation.
7858 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7860         * time/mktime.c (__mktime_internal): Move check for year < 70 below
7861         all variable declarations.
7863 2002-04-04  Andreas Schwab  <schwab@suse.de>
7865         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7867 2002-04-04  Andreas Jaeger  <aj@suse.de>
7869         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7870         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7872         * sysdeps/x86_64/fpu/s_fabs.c: New file.
7873         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7874         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7876         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7878         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7880         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7881         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7883         * configure.in: Handle all mips entries the same.
7885         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7886         * sysdeps/mips/mips3/*: Likewise.
7887         * sysdeps/mips/p40/bits/endian.h: Likewise.
7889 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
7891         * misc/dirname.c (dirname): Ignore trailing slashes at end of
7892         non-null result [PR libc/2600].
7894         * misc/tst-dirname.c: Add more tests.
7896 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7898         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7899         define a code_set_name provide one based on the filename.
7901         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7903 2001-12-28  Andreas Jaeger  <aj@suse.de>
7905         * time/mktime.c (__mktime_internal): Check for year < 70
7906         [PR libc/2738].
7908 2002-04-03  Andreas Jaeger  <aj@suse.de>
7910         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7911         shmat.
7912         Reported by Andi Kleen <ak@suse.de>.
7914 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7916         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7917         * sysdeps/generic/w_lgammaf.c: Likewise.
7918         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7920         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7921         Adjust for new output format of the backtrace functions.
7923         * misc/syslog.c (vsyslog): Only use cleanup handler if
7924         _LIBC_REENTRANT is defined [PR libc/2924].
7926         * libio/Makefile (tests): Add bug-ungetwc2.
7927         * libio/bug-ungetwc2.c: New file.
7929         * manual/install.texi: Typographical and grammatical cleanup.
7930         Patch by Dennis Grace <dgrace@us.ibm.com>.
7932         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7933         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
7935         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
7936         always "&".  Adjust callers.
7937         Add "_" prefix to several generated definitions.
7938         Patch by paul@serice.net [PR libc/3158].
7940 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7942         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7943         size of _dl_arm_cap_flags.
7944         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7946         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7947         Define as 8.
7949 2002-03-22  H.J. Lu  <hjl@gnu.org>
7951         * scripts/firstversions.awk: Check the first version.
7953 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7955         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7956         dependencies must be stable to work correctly.
7957         Reported by martin.lubich@datacon.at.
7959         * libio/bug-ungetwc1.c: New file.
7960         * libio/Makefile (tests): Add bug-ungetwc1.
7962         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7963         if stream was last used for writing.
7965         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7966         number [PR libc/3111].
7968         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7969         to ...
7970         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7972 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
7974         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7975         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7976         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
7977         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
7978         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
7980 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
7982         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
7983         dynamic tags.
7985 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
7987         * sysdeps/i386/fpu/s_fabs.S: New file.
7988         * sysdeps/i386/fpu/s_fabsf.S: New file.
7989         * sysdeps/i386/fpu/s_fabsl.S: New file.
7990         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
7991         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
7992         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
7994 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7996         * rt/tst-shm.c (do_test): Add one more test for size of shared
7997         memory object.
7999 2002-03-29  Wolfram Gloger  <wg@malloc.de>
8001         * malloc/malloc.c: Add short description and prototypes for
8002         malloc_get_state, malloc_set_state and posix_memalign, for
8003         consistency and to avoid warnings with -Wstrict-prototypes.
8004         Reported by Andreas Jaeger <aj@suse.de>.
8006 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8008         * po/gl.po: Update from translation team.
8010 2002-03-31  Roland McGrath  <roland@frob.com>
8012         * hurd/hurdselect.c (_hurd_select): Fix
8013         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
8014         Use a union rather than casts to compare mach_msg_type_t as int.
8016 2002-03-25  Roland McGrath  <roland@frob.com>
8018         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
8019         check off the end of NAME when it's shorter than 2 chars.
8020         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
8022 2002-03-17  Roland McGrath  <roland@frob.com>
8024         * sysdeps/mach/hurd/i386/sys/io.h: New file.
8025         * sysdeps/mach/hurd/i386/ioperm.c: New file.
8026         * sysdeps/mach/hurd/i386/Dist: Add them.
8027         * sysdeps/mach/hurd/i386/Versions
8028         (libc: GLIBC_2.2.6): New set, add ioperm.
8029         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
8030         (mach_interface_list): Check for mach_i386.defs.
8031         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
8032         * sysdeps/mach/configure: Regenerated.
8034 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
8036         * po/fr.po: Update from translation team.
8038 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8040         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
8041         getpriority from syscalls list.
8043 2002-03-28  Andreas Jaeger  <aj@suse.de>
8045         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
8046         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
8047         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
8048         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
8050 2002-03-27  Andreas Jaeger  <aj@suse.de>
8052         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8053         sigcontext): Follow further kernel change.
8055         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
8056         kernel change.
8058         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
8059         Change for struct sigcontext change.
8061         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
8062         Follow changes in struct sigcontext.
8064         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
8065         sysycall, use wrapper instead.
8067 2002-03-26  Andreas Jaeger  <aj@suse.de>
8069         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
8070         read and write accesses as detailed as possible.
8071         (__memcpy_by2): Likewise.
8072         (__memcpy_g): Likewise.
8073         (memmove): Likewise.
8074         (memcmp): Likewise.
8075         (__memset_ccn_by4): Likewise.
8076         (__memset_ccn_by2): Likewise.
8077         (__memset_gcn_by4): Likewise.
8078         (__memset_gcn_by2): Likewise.
8079         (memchr): Likewise.
8080         (__memrchr): Likewise.
8081         (rawmemchr): Likewise.
8082         (__strlen_g): Likewise.
8083         (__strcpy_g): Likewise.
8084         (__mempcpy_by4): Likewise.
8085         (__mempcpy_by2): Likewise.
8086         (__mempcpy_byn): Likewise.
8087         (__stpcpy_g): Likewise.
8088         (__strncpy_by4): Likewise.
8089         (__strncpy_by2): Likewise.
8090         (__strncpy_byn): Likewise.
8091         (__strncpy_gg): Likewise.
8092         (__strcat_c): Likewise.
8093         (__strcat_g): Likewise.
8094         (__strncat_g): Likewise.
8095         (__strcmp_gg): Likewise.
8096         (__strncmp_g): Likewise.
8097         (__strchr_c): Likewise.
8098         (__strchr_g): Likewise.
8099         (__strchrnul_c): Likewise.
8100         (__strchrnul_g): Likewise.
8101         (__strrchr_c): Likewise.
8102         (__strrchr_g): Likewise.
8103         (__strrchr_c): Likewise.
8104         (__strrchr_g): Likewise.
8105         (__strcspn_c1): Likewise.
8106         (__strcspn_cg): Likewise.
8107         (__strcspn_g): Likewise.
8108         (__strcspn_g): Likewise.
8109         (__strspn_c1): Likewise.
8110         (__strspn_cg): Likewise.
8111         (__strspn_g): Likewise.
8112         (__strspn_g): Likewise.
8113         (__strpbrk_cg): Likewise.
8114         (__strpbrk_g): Likewise.
8115         (__strstr_cg): Likewise.
8116         (__strstr_g): Likewise.
8118         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
8119         Michal Ludvig <mludvig@suse.cz>.
8121         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
8122         compatibilty, adjust for kernel changes.
8124         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8125         sigcontext): Adjust for kernel changes.
8127 2002-03-25  Andreas Jaeger  <aj@suse.de>
8129         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
8130         little endian.
8131         Reported by Artur Zaprzala <zybi@talex.com.pl>.
8133 2002-03-24  Andreas Jaeger  <aj@suse.de>
8135         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
8137         * stdio-common/tst-fdopen.c (main): Remove unused variable.
8139         * iconv/tst-iconv3.c (main): Use correct printf strings.
8141 2002-03-18  Roland McGrath  <roland@frob.com>
8143         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
8144         (CMGROUP_MAX): New macro.
8146 2002-03-23  Roland McGrath  <roland@frob.com>
8148         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
8149         * sysdeps/posix/shm_unlink.c: Likewise.
8151 2002-03-22  Roland McGrath  <roland@frob.com>
8153         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
8154         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
8155         under --enable-libio.
8156         * sysdeps/mach/hurd/configure: Regenerated.
8158 2002-03-23  Roland McGrath  <roland@frob.com>
8160         * sysdeps/mach/hurd/i386/Makefile
8161         (sysdep_routines, shared-only-routines): Don't add framestate,
8162         reverting 2001-10-02 change.
8163         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
8164         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
8165         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8166         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8167         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
8168         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
8169         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8170         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
8171         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
8172         Do it here instead, only if [$(unwind-find-fde) = yes].
8174 2002-03-23  Andreas Jaeger  <aj@suse.de>
8176         * signal/signal.h: Fix typo. Patch by Steve Kemp
8177         <skx@tardis.ed.ac.uk>.
8179 2002-03-22  Andreas Jaeger  <aj@suse.de>
8181         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
8182         getresuid.
8184         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8185         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
8186         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8187         user_fpregs_struct): Rename fwd.
8189         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
8190         Follow sigcontext changes.
8192 2002-03-22  Andreas Jaeger  <aj@suse.de>
8194         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
8195         changes for NaNs on MIPS.
8196         Patch by Hartvig Ekner <hartvige@mips.com>.
8198 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
8200         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
8201         Use realloc if too large.
8202         (addgrbyid): Likewise.
8203         * nscd/hstcache.c (addhstbyname): Likewise.
8204         (addhstbyaddr): Likewise.
8205         (addhstbynamev6): Likewise.
8206         (addhstbyaddrv6): Likewise.
8207         * nscd/pwdcache.c (addpwbyname): Likewise.
8208         (addpwbyuid): Likewise.
8210 2002-03-21  Andreas Jaeger  <aj@suse.de>
8212         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8213         _fpstate): Add separate struct for x86-64.
8215         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8216         user_fpregs_struct): Change member names to follow kernel.
8218 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
8220         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
8221         Correctly close the UDP connection right away [PR libc/3120].
8223 2002-03-20  Andreas Jaeger  <aj@suse.de>
8225         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8226         user_fpregs_struct): Fix for changed kernel struct.
8227         (struct user_regs_struct): Likewise.
8228         (struct user): Likewise.
8229         Add 32-bit x86 compatibility.
8231         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
8233 2002-03-19  Andreas Jaeger  <aj@suse.de>
8235         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
8237 2002-03-18  Andreas Jaeger  <aj@suse.de>
8239         * iconvdata/Makefile: Only run tests when shared libs are
8240         available.
8242 2002-03-17  Andreas Jaeger  <aj@suse.de>
8244         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
8246         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
8248         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
8249         bits.
8251         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
8252         (CAUSE_SHIFT): New macro.
8253         Patch by Hartvig Ekner <hartvige@mips.com>.
8255         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
8256         * sysdeps/generic/unwind-pe.h: Likewise.
8258         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
8259         type to _IO_setb.
8261         * libio/stdio.c (AL2): Define variant when visibility attribute is
8262         not supported.
8264         * include/libc-symbols.h (_INTVARDEF): Define variant when
8265         visibility attribute is not supported.
8267 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
8269         * po/fr.po: Update from translation team.
8271 2002-02-25  Bruno Haible  <bruno@clisp.org>
8273         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
8275 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
8277         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
8278         buffers if _IO_file_attach failed.
8280         * libio/fileops.c (_IO_file_open): Close file descriptor if
8281         _IO_SEEKOFF call failed.
8283 2002-03-15  H.J. Lu  <hjl@gnu.org>
8284             Ulrich Drepper  <drepper@redhat.com>
8286         * configure.in: Check for availability of
8287         init_array/fini_array/preinit_array handling in binutils.
8288         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
8289         * config.make.in (have-initfini-array): New variable.
8291 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
8293         * stdio-common/tst-printf.c (main): Comment out one test which
8294         checked the compiler's ability to fold floating-point constants
8295         but not really printf.
8296         (rfg3): Make s const.
8297         * stdio-common/tst-printf.sh: Adjust for removed test.
8299         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
8300         internal function.  Adjust for internal_function calling convention.
8301         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
8302         as internal_function.
8304         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
8305         hidden.
8307         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
8308         declaration and definition.
8309         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
8310         declaration.
8311         * nss/getXXent_r.c: Likewise.
8312         * nss/nsswitch.h (db_lookup_function): Add internal_function to
8313         definition.
8315         * include/time.h: Declare __localtime_r as hidden.
8317         * include/aliases.h: Declare __getaliasent_r as hidden.
8318         * include/grp.h: Declare __getgrent_r as hidden.
8319         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
8320         __getservent_r, and __getprotoent_r as hidden.
8321         * include/pwd.h: Declare __getpwent_r as hidden.
8322         * include/shadow.h: Declare __getspent_r as hidden.
8323         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
8325         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
8326         and __gconv_transliterate as hidden.
8327         Add internal_function to __gconv_get_path declaration.
8328         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
8329         definition.  Add attribute_hidden to __gconv_read_conf definition.
8331 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
8333         * elf/rtld.c: Declare _environ as hidden.
8334         * sysdeps/generic/dl-environ.c: Likewise.
8335         * sysdeps/generic/dl-sysdep.c: Likewise.
8337         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
8338         _dl_mcount_internal as hidden.
8340         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
8341         * sysdeps/generic/dl-brk.c: New file.
8342         * sysdeps/generic/dl-sbrk.c: New file.
8343         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
8344         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
8346         * elf/dl-minimal.c (malloc): Declare _end as hidden.
8347         (__errno_location): New function.  Declare errno as hidden.
8348         * elf/rtld.c (_dl_argc): Define as hidden.
8349         (_dl_skip_args): Define as hidden.
8350         (_begin, _end): Declare as hidden.
8351         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
8352         * sysdeps/generic/entry.h (_start): Declare as hidden.
8353         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
8354         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
8355         _dl_runtime_resolve and _dl_runtime_profile as hidden.
8356         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
8358 2002-03-14  Roland McGrath  <roland@frob.com>
8360         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
8362         * Makeconfig (%.v.i, %.v): New implicit rules.
8363         (preprocess-versions): Variable removed.
8364         ($(common-objpfx)shlib-versions.v.i): New target giving just the
8365         shlib-versions input files as dependencies.
8366         ($(common-objpfx)soversions.i): Depend on that instead of the input
8367         files.  Use it as input instead of using a pipeline.
8368         (postclean-generated): Append soversions.i, shlib-versions.v, and
8369         shlib-versions.v.i here.
8370         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
8371         the Versions.def input files as dependencies.
8372         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
8373         ($(common-objpfx)Versions.all): Depend on that instead of the input
8374         files.  Use it as input instead of using a pipeline.
8375         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
8376         (postclean-generated): Append those .v and .v.i files here.
8378 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
8380         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
8381         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
8382         Remove.
8384 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
8386         * sysdeps/generic/mp_clz_tab.c: New file.
8387         * sysdeps/i386/mp_clz_tab.c: New file.
8388         * sysdeps/hppa/mp_clz_tab.c: New file.
8389         * sysdeps/powerpc/mp_clz_tab.c: New file.
8390         * stdlib/Makefile (aux): Revert last patch.
8391         * math/Makefile (gmp-objs): Likewise.
8393 2002-03-13  Paul Eggert  <eggert@twinsun.com>
8395         * time/strftime.c: Comment fixes for references to obsolescent
8396         standards, In most cases the simplest fix is to remove the
8397         confusing comments.  Cross-referencing all the standards properly
8398         is a bit of a pain, and it should be enough to put that info in
8399         the documentation as I did in my recent time.texi patch.
8401 2002-03-13  Paul Eggert  <eggert@twinsun.com>
8403         * manual/time.texi (Formatting Calendar Time):
8404         ISO C99 also specifies the E and O modifiers.
8405         %P is a GNU extension, and is not in ISO C99.
8406         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
8407         %T is also in ISO C99.
8408         The RFC 822 example is not valid in arbitrary locales.
8409         Reword the POSIX.2 wording slightly, to make it a bit clearer
8410         that POSIX.2 formats are also supported by later POSIX versions.
8411         If a format was introduced in ISO C99 it is also required by
8412         POSIX.1-2001.
8414 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
8416         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
8417         _sys_nerr_internal with INTVARDEF2.
8418         * include/libc-symbols.h (INTVARDEF2): New macro.
8419         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
8420         (_sys_nerr_internal): Library.
8422         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
8423         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
8425         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
8427 2002-03-13  Wolfram Gloger  <wg@malloc.de>
8429         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
8431 2002-03-02  Andreas Schwab  <schwab@suse.de>
8433         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
8434         'h' flag and positional arg.
8435         * stdio-common/tst-printf.c (rfg3): New function to test
8436         positional arguments.
8437         (main): Fix some warnings.
8439 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
8441         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
8442         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8444 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
8446         * grp/initgroups.c (__nss_group_data): Declare as hidden.
8448         * include/locale.h (_nl_C_locobj): Declare as hidden.
8450         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
8451         * time/strptime.c (_nl_C_LC_TIME): Likewise.
8453         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
8455         * include/sys/gmon.h: Declare _gmonparam as hidden.
8457         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
8458         (__ctype32_wctrans): Likewise.
8459         (__ctype32_width): Likewise.
8461         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
8462         use of __ttyname.
8464         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
8465         Define as hidden.
8466         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
8467         hidden.  Change all users of these variables.
8469         * posix/regex_internal.h (__re_error_msgid): Renamed from
8470         re_error_msgid.  Declare as hidden.
8471         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
8472         hidden.
8474         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
8475         (__printf_function_table): Likewise.
8476         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
8477         hidden.
8478         (__printf_function_table): Likewise.
8480         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
8481         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
8483         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
8484         * nss/nsswitch.c: Declare _nss_*_database as hidden.
8486         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
8487         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
8489 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
8491         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
8492         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8493         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8494         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8495         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8496         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8497         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8498         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8499         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
8500         _nl_C_LC_CTYPE_width: Declare as hidden.
8501         * include/locale.h: Declare _nl_locale_file_list.
8502         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
8503         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
8504         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
8505         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
8506         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
8507         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
8508         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
8509         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
8510         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
8511         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
8512         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
8513         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
8514         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8515         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8516         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8517         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8518         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8519         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8520         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8521         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
8522         _nl_C_LC_CTYPE_width, and as hidden.
8523         * locale/findlocale.c: Declare _nl_C as hidden.
8524         * locale/newlocale.c: Likewise.
8525         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
8526         _nl_locale_file_list.
8527         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
8528         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
8529         Define _nl_C_locobj as hidden.
8531         * malloc/mtrace.c (_mtrace_file): Define as hidden.
8532         (_mtrace_line): Likewise.
8534         * include/time.h: Declare __mon_yday as hidden.
8535         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
8537         * libio/libioP.h: Declare __libio_codecvt as hidden.
8538         * libio/fileops.c: Declare __libio_translit as hidden.
8539         * libio/iofwide.c: Define __libio_translit as hidden.
8541         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
8542         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
8543         * login/getutline_r.c: Likewise.
8544         * login/utmpname.c: Likewise.
8546         * login/utmp-private.h: Declare __libc_utmp_file_functions,
8547         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
8548         __libc_utmp_file_name as hidden.
8550         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
8551         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
8552         * locale/freelocale.c: Likewise.
8553         * locale/lc-time.c: Likewise.
8555         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
8556         (__libc_ptyname2): Likewise.
8557         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
8558         hidden.
8559         (__libc_ptyname2): Likewise.
8561         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
8562         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
8563         * sysdeps/generic/init-first.c: Likewise.
8564         * sysdeps/i386/init-first.c: Likewise.
8565         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8566         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8567         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8568         * sysdeps/sh/init-first.c: Likewise.
8569         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8570         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8572         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8573         (_itowa_upper_digits): Likewise.
8575         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8576         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8577         as hidden.
8579         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8580         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8581         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8582         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8584         * gmon/gmon.c (__bb_head): Define as hidden.
8585         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8587         * argp/argp-parse.c (_argp_hang): Define as static.
8589         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8590         handling in latest compilers.
8592         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8593         define alias.
8594         * libio/fileops.c (_IO_file_jumps): Likewise.
8595         * libio/stdfiles.c (_IO_list_all): Likewise.
8596         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8598         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8599         include/malloc.h.
8600         * include/malloc.h: Add __libc_malloc_initialized declaration
8601         here.  Mark variable hidden.
8602         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8604         * elf/dl-open.c (__libc_argc): Declare as hidden.
8605         (__libc_argv): Likewise.
8606         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8607         (__libc_argv): Likewise.
8608         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8609         __libc_argv as hidden.
8610         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8611         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8612         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8613         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8615         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8616         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8617         * stdlib/erand48.c: Likewise.
8618         * stdlib/jrand48.c: Likewise.
8619         * stdlib/lcong48.c: Likewise.
8620         * stdlib/lrand48.c: Likewise.
8621         * stdlib/mrand48.c: Likewise.
8622         * stdlib/nrand48.c: Likewise.
8623         * stdlib/seed48.c: Likewise.
8624         * stdlib/srand48.c: Likewise.
8626         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8627         (_itoa_lower_digits_internal): New declaration.
8628         (_itoa_upper_digits_internal): New declaration.
8629         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8630         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8631         (_itoa_upper_digits_internal): New declaration.
8632         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8633         _itoa_lower_digits.
8634         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8635         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8637         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8638         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8640         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8641         (_itowa_lower_digits): Likewise.
8642         (_itowa_upper_digits): Likewise.
8643         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8644         (_itowa_upper_digits): Likewise.
8646         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8647         not already defined.
8648         (GERMANIC_PLURAL): Declare as hidden.
8650         * posix/getopt.c (__getopt_initialized): Declare as hidden.
8651         (attribute_hidden): Define as empty macro if not already defined.
8653         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8654         (__gconv_max_path_elem_len): Likewise.
8655         (__gconv_path_envvar): Likewise.
8657         * math/Makefile (gmp-objs): Remove mp_clz_tab.
8658         * stdlib/Makefile (aux): Remove mp_clz_tab.
8659         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
8661         * stdlib/exit.h (__exit_funcs): Declare as hidden.
8663         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8665         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8666         _nl_category_names, _nl_category_name_sizes, _nl_current,
8667         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8669         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8670         (_nl_current_default_domain): Likewise
8671         (_nl_state_lock): Likewise.
8672         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8673         (_nl_current_default_domain): Likewise
8674         (_nl_state_lock): Likewise.
8675         * intl/bindtextdom.c (_nl_state_lock): Likewise.
8677         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8678         (_fpioconst_pow10): Likewise.
8680         * include/time.h (_tmbuf): Add attribute_hidden.
8682         * time/tzset.c (tzstring_list): Define as static.
8684         * include/time.h: Add attribute_hidden to __tzname_cur_max and
8685         __use_tzfile declaration.
8687         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8688         and __wcsmbs_last_locale declaration.
8690 2002-02-25  Paul Eggert  <eggert@twinsun.com>
8692         * timezone/Makefile (tzbases): Move systemv from here...
8693         (tzlinks): to here, since the entries in systemv were all changed
8694         from Zone to Link lines in tz-2001a.  Bug reported (and patch
8695         tested) by Peter Breitenlohner.
8697 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
8699         * time/tst-posixtz.c (tests): Add new tests.
8700         (main): Test whether tzset() sets daylight properly.
8702 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8704         * time/tzset.c (tz_compute): Move __daylight, __tzname and
8705         __tzname_cur_max setting...
8706         (tzset_internal): ...here.
8708 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8710         * time/tzset.c (compute_change): Don't return any value.
8711         (tz_compute): Likewise.  Don't handle southern hemisphere here.
8712         (__tz_convert): But here.
8714 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8716         * manual/examples/mkfsock.c: Include <string.h> as well.
8717         Patch by Alain De Carolis <alaind@wseurope.com>.
8719 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
8721         * posix/regexec.c (re_match): Fix incorrect register sizes.
8722         (re_search): Likewise.
8724 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8726         * posix/regcomp.c (regfree): Remove a disused condition.
8727         * posix/regex_internal.c (re_acquire_state): Likewise.
8728         (re_acquire_state_context): Likewise.
8729         (register_state): Remove a redundant malloc invocation.
8730         * posix/regex_internal.h: (re_state_table_entry): Simplify
8731         the structure.
8733 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8735         * posix/regcomp.c (regcomp): Add __builtin_expect to error
8736         handling conditions.
8737         (regerror): Likewise.
8738         (regfree): Likewise.
8739         (re_compile_internal): Likewise.
8740         (init_dfa): Likewise.
8741         (init_word_char): Likewise.
8742         (create_initial_state): Likewise.
8743         (analyze): Likewise.
8744         (analyze_tree): Likewise.
8745         (duplicate_node): Likewise.
8746         (calc_eclosure): Likewise.
8747         (calc_eclosure_iter): Likewise.
8748         (parse): Likewise.
8749         (parse_reg_exp): Likewise.
8750         (parse_branch): Likewise.
8751         (parse_expression): Likewise.
8752         (parse_subexp): Likewise.
8753         (parse_dup_op): Likewise.
8754         (parse_bracket_exp): Likewise.
8755         (build_equiv_class): Likewise.
8756         (build_charclass): Likewise.
8757         (build_word_op): Likewise.
8758         (fetch_number): Likewise.
8759         (create_tree): Likewise.
8760         (duplicate_tree): Likewise.
8761         * posix/regex.c (BE): New macro.
8762         * posix/regexec.c (re_match): Add __builtin_expect to error
8763         handling conditions.
8764         (re_match_2): Likewise.
8765         (re_search): Likewise.
8766         (re_search_internal): Likewise.
8767         (check_matching): Likewise.
8768         (proceed_next_node): Likewise.
8769         (set_regs): Likewise.
8770         (sift_states_backward): Likewise.
8771         (add_epsilon_backreference): Likewise.
8772         (transit_state): Likewise.
8773         (transit_state_sb): Likewise.
8774         (transit_state_mb): Likewise.
8775         (transit_state_bkref): Likewise.
8776         (transit_state_bkref_loop): Likewise.
8777         (build_trtable): Likewise.
8778         (group_nodes_into_DFAstates): Likewise.
8779         (match_ctx_init): Likewise.
8780         (match_ctx_add_entry): Likewise.
8781         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8782         to error handling conditions.
8783         (re_string_construct_toupper): Likewise.
8784         (build_wcs_buffer): Likewise.
8785         (build_wcs_upper_buffer): Likewise.
8786         (build_upper_buffer): Likewise.
8787         (re_string_translate_buffer): Likewise.
8788         (re_node_set_alloc): Likewise.
8789         (re_node_set_init_1): Likewise.
8790         (re_node_set_init_2): Likewise.
8791         (re_node_set_init_copy): Likewise.
8792         (re_node_set_intersect): Likewise.
8793         (re_node_set_init_union): Likewise.
8794         (re_node_set_merge): Likewise.
8795         (re_node_set_insert): Likewise.
8796         (re_dfa_add_node): Likewise.
8797         (re_acquire_state): Likewise.
8798         (re_acquire_state_context): Likewise.
8799         (create_new_state_common): Likewise.
8800         (register_state): Likewise.
8801         (create_ci_new_state): Likewise.
8802         (create_cd_new_state): Likewise.
8803         (re_string_context_at): Remove redundant condition.
8805 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8807         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8809         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8811 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
8813         * sysdeps/i386/elf/configure.in: Fix comment.
8815         * sysdeps/sparc/sparc64/configure.in: New file.
8816         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8817         if .dynamic comes before .got.
8818         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8820         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8821         HP_TIMING_ACCUM): Fix typos.
8823 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8825         * string/strfry.c: Add some more randomness to the seed.
8826         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8828         * po/es.po: Update from translation team.
8829         * po/fr.po: Likewise.
8831         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8833         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8834         when determining type of format.
8835         Patch by James Antill <james@anqd.org> [PR libc/2787].
8837 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
8839         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8841 2002-03-11  Roland McGrath  <roland@frob.com>
8843         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8845         * Versions.def (libc): Add GLIBC_2.2.6.
8846         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8847         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8848         __errno_location instead of __hurd_errno_location, and don't inline it.
8849         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8850         * hurd/errno.c: New file.
8851         * hurd/Makefile (routines): Add errno.
8853 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8855         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8856         ridiculously large widths and precisions [PR libc/3026].
8858 2002-03-11  Andreas Jaeger  <aj@suse.de>
8860         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8861         support.
8862         Patch by Susanne Oberhauser <froh@SuSE.de>.
8864 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8866         * inet/rexec.c (ahostbuf): Define as static.
8868         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8869         (__ctype32_wctrans): Likewise.
8870         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8871         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8872         (__ctype32_wctrans): Likewise.
8873         (__ctype32_width): Likewise.
8875         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8876         They were never exported anyway.
8878         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8879         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
8880         exported.
8881         * include/sys/gmon.h: Declare _gmonparam.
8883         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8884         symbols for getdents64.  They were never exported.
8886 2002-03-09  Roland McGrath  <roland@frob.com>
8888         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8889         Reported by Jon Arney <jarney1@cox.net>.
8891 2002-02-23  Roland McGrath  <roland@frob.com>
8893         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8894         declaration.
8895         (__hurd_errno_location): Function removed.
8897 2002-03-06  Andreas Jaeger  <aj@suse.de>
8899         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8900         32-bit.
8902 2002-03-04  Andreas Jaeger  <aj@suse.de>
8904         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8906         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8907         x86-64.
8909         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8911         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8913         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8915         * sysdeps/x86_64/bits/setjmp.h: New file.
8917         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8919         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8921         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8922         for x86.
8923         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8924         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8926 2002-02-28  Bo Thorsen  <bo@suse.de>
8928         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8929         version.
8931 2002-03-03  Andreas Jaeger  <aj@suse.de>
8933         * sysdeps/x86_64/bits/wordsize.h: New file.
8935         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8936         * elf/tst-tlsmod1.c: Likewise.
8938         * posix/regcomp.c: Get regex.h from include dir for internal
8939         prototypes.
8941         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8942         to libc-internal.h and include it.
8943         * include/libc-internal.h: Add __init_misc.
8945         * misc/init-misc.c: Include libc-internal.h for prototypes.
8947         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8949         * misc/error.c [_LIBC]: Include libioP.h for prototype of
8950         _IO_putc_internal.
8952 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
8954         * posix/regcomp.c: Compatibility changes to allow using the code
8955         outside glibc.
8957 2002-02-28  Hartvig Ekner <hartvige@mips.com>
8959         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8960         compiled non-PIC.
8962 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
8964         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8965         of .str elements in the returned data structure.
8967         * elf/elf.h: Add Alpha TLS bits.
8969 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8971         * sysdeps/unix/sysv/linux/nice.c: New file.
8973 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
8975         * elf/Makefile (dl-routines): Add dl-origin.
8976         (elide-routines.os): Add dl-origin.
8977         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
8978         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
8979         _dl_debug_state.
8980         * include/libc-symbols.c: Define attribute_hidden depending on
8981         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
8983         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
8984         * elf/dl-load.c: Likewise.
8985         * elf/rtld.c: Likewise.
8986         * include/unistd.h: Declare __libc_enable_secure_internal.
8987         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
8988         Use INTUSE with __libc_enable_secure.
8989         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8991         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
8992         * elf/dl-error.c: Likewise,
8993         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
8995         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
8996         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
8997         function definition.  Use INTDEF with _dl_get_origin.
8998         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9000         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
9001         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
9003         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
9004         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
9005         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
9007         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
9008         * elf/dl-deps.c: Likewise.
9009         * elf/dl-error.c: Likewise.
9010         * elf/dl-fini.c: Likewise.
9011         * elf/dl-init.c: Likewise.
9012         * elf/dl-load.c: Likewise.
9013         * elf/dl-lookup.c: Likewise.
9014         * elf/dl-reloc.c: Likewise.
9015         * elf/dl-version.c: Likewise.
9016         * elf/do-lookup.h: Likewise.
9017         * sysdeps/arm/dl-machine.h: Likewise.
9018         * sysdeps/cris/dl-machine.h: Likewise.
9019         * sysdeps/hppa/dl-machine.h: Likewise.
9020         * sysdeps/i386/dl-machine.h: Likewise.
9021         * sysdeps/m68k/dl-machine.h: Likewise.
9022         * sysdeps/powerpc/dl-machine.h: Likewise.
9023         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9024         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9025         * sysdeps/sh/dl-machine.h: Likewise.
9026         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
9027         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
9028         * sysdeps/x86_64/dl-machine.h: Likewise.
9029         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
9030         _dl_argv[0].  Use INTUSE with _dl_argv.
9031         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
9032         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
9034 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
9036         * elf/rtld.c (_rtld_global): Remove .protected.
9037         (_rtld_local): Strong alias to _rtld_global.
9038         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
9039         only .os object.
9040         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
9041         _rtld_local instead of _rtld_global.
9042         (_rtld_local): Add hidden extern, possibly in .sdata section.
9043         * configure.in: Add tests for visibility attribute and .sdata.
9044         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
9045         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
9046         * sysdeps/arm/dl-machine.h: Likewise.
9047         * sysdeps/generic/ldsodefs.h: Likewise.
9048         * sysdeps/hppa/dl-machine.h: Likewise.
9049         * sysdeps/cris/dl-machine.h: Likewise.
9050         * sysdeps/i386/dl-machine.h: Likewise.
9051         * sysdeps/ia64/dl-machine.h: Likewise.
9052         * sysdeps/m68k/dl-machine.h: Likewise.
9053         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9054         * sysdeps/mips/dl-machine.h: Likewise.
9055         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9056         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9057         * sysdeps/sh/dl-machine.h: Likewise.
9058         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9059         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9060         * sysdeps/x86_64/dl-machine.h: Likewise.
9062 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
9064         * login/login.c (login): Always initialize ut_line field
9065         [PR libc/2991].
9067 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
9069         * sysdeps/i386/Makefile (sysdep_routines): Add
9070         divdi3 in csu dir.
9071         (shared-only-routines): Likewise.
9072         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
9073         (shared-only-routines): Likewise.
9074         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
9075         (shared-only-routines): Likewise.
9076         * sysdeps/wordsize-32/divdi3.c: New file.
9078 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
9080         * locale/iso-4217.def: Remove obsolete currencies for countries
9081         with Euro.
9083 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
9085         * posix/regcomp.c (regcomp): Remove a redundant condition.
9086         (init_word_char): Add a check on malloc failure.
9087         (create_initial_state): Likewise.
9088         (duplicate_node): Likewise.
9089         (calc_eclosure): Likewise.
9090         (calc_eclosure_iter): Likewise.
9091         (parse_expression): Likewise.
9092         (parse_bracket_exp): Remove unnecessary malloc invocations.
9093         (build_equiv_class): Likewise.
9094         (build_charclass): Likewise.
9095         * posix/regex_internal.c (re_node_set_intersect): Add a check
9096         on malloc failure.
9097         (re_node_set_add_intersect): Likewise.
9098         (re_node_set_merge): Likewise.
9099         (re_acquire_state): Likewise.
9100         (re_acquire_state_context): Likewise.
9101         (create_newstate_common): Likewise.
9102         (register_state): Likewise.
9103         (create_ci_newstate): Likewise.
9104         (create_cd_newstate): Likewise.
9105         * posix/regex_internal.h: Fix prototypes of re_acquire_state
9106         and re_acquire_state_context.
9107         * posix/regexec.c (regexec): Suit it to the error handling of
9108         re_search_internal.
9109         (re_match): Likewise.
9110         (re_search): Likewise.
9111         (re_search_internal): Add a check on malloc failure.
9112         (acquire_init_state_context): Likewise.
9113         (check_matching): Likewise.
9114         (proceed_next_node): Likewise.
9115         (set_regs): Likewise.
9116         (sift_states_backward): Likewise.
9117         (sift_states_iter_bkref): Likewise.
9118         (add_epsilon_backreference): Likewise.
9119         (transit_state): Likewise.
9120         (transit_state_sb): Likewise.
9121         (transit_state_mb): Likewise.
9122         (transit_state_bkref_loop): Likewise.
9123         (build_trtable): Likewise.
9124         (group_nodes_into_DFAstates): Likewise.
9125         (match_ctx_init): Likewise.
9126         (match_ctx_add_entry): Likewise.
9128 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
9130         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
9131         l_libname if profiling is enabled [PR libc/2916].
9133         * sysdeps/ia64/dl-tls.h: New file.
9135 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
9137         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
9138         Work around an Alpha gas bug.
9140 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
9142         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
9143         uses read to load the catalog.
9144         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
9146 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
9148         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
9149         regex_internal.c, and regex_internal.h.
9150         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
9151         * posix/regex.c: Complete rewrite.
9152         * posix/regexec.c: New file.
9153         * posix/regcomp.c: New file.
9154         * posix/regex_internal.c: New file.
9155         * posix/regex_internal.h: New file.
9156         * posix/regex.h (RE_ICASE): New macro.
9157         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
9159         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
9160         ungetwc.  It's a macro.
9161         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
9162         implementation.
9163         Reported by Jason Merrill <jason@redhat.com>.
9165 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
9167         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
9168         position to fp->_offset if it is set.
9169         * stdio-common/Makefile (tests): Add tst-fdopen.
9170         * stdio-common/tst-fdopen.c: New test.
9172 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
9174         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
9175         * stdio-common/tst-ungetc.c (main): Add another test.
9177 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
9179         * assert/assert-perr.c: Use INTUSE to reference functions and variables
9180         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
9181         aliases.  Add prototypes for the new aliases.
9182         * assert/assert.c: Likewise.
9183         * include/libc-symbols.h: Likewise.
9184         * include/stdio.h: Likewise.
9185         * include/netinet/in.h: Likewise.
9186         * include/rpc/auth.h: Likewise.
9187         * include/rpc/auth_unix.h: Likewise.
9188         * include/rpc/key_prot.h: Likewise.
9189         * include/rpc/pmap_prot.h: Likewise.
9190         * include/rpc/pmap_rmt.h: Likewise.
9191         * include/rpc/rpc_msg.h: Likewise.
9192         * include/rpc/xdr.h: Likewise.
9193         * inet/gethstbyad_r.c: Likewise.
9194         * inet/gethstbynm2_r.c: Likewise.
9195         * inet/gethstbynm_r.c: Likewise.
9196         * inet/gethstent_r.c: Likewise.
9197         * inet/in6_addr.c: Likewise.
9198         * libio/__fpurge.c: Likewise.
9199         * libio/filedoalloc.c: Likewise.
9200         * libio/fileops.c: Likewise.
9201         * libio/ftello.c: Likewise.
9202         * libio/ftello64.c: Likewise.
9203         * libio/genops.c: Likewise.
9204         * libio/iofclose.c: Likewise.
9205         * libio/iofdopen.c: Likewise.
9206         * libio/iofflush.c: Likewise.
9207         * libio/iofflush_u.c: Likewise.
9208         * libio/iofgetpos.c: Likewise.
9209         * libio/iofgetpos64.c: Likewise.
9210         * libio/iofgets.c: Likewise.
9211         * libio/iofgets_u.c: Likewise.
9212         * libio/iofopen.c: Likewise.
9213         * libio/iofopncook.c: Likewise.
9214         * libio/iofputs.c: Likewise.
9215         * libio/iofread.c: Likewise.
9216         * libio/iofread_u.c: Likewise.
9217         * libio/iofsetpos.c: Likewise.
9218         * libio/iofsetpos64.c: Likewise.
9219         * libio/ioftell.c: Likewise.
9220         * libio/iofwrite.c: Likewise.
9221         * libio/iogetline.c: Likewise.
9222         * libio/iogets.c: Likewise.
9223         * libio/iogetwline.c: Likewise.
9224         * libio/iolibio.h: Likewise.
9225         * libio/iopadn.c: Likewise.
9226         * libio/iopopen.c: Likewise.
9227         * libio/ioseekoff.c: Likewise.
9228         * libio/ioseekpos.c: Likewise.
9229         * libio/iosetbuffer.c: Likewise.
9230         * libio/iosetvbuf.c: Likewise.
9231         * libio/ioungetc.c: Likewise.
9232         * libio/ioungetwc.c: Likewise.
9233         * libio/iovdprintf.c: Likewise.
9234         * libio/iovsprintf.c: Likewise.
9235         * libio/iovsscanf.c: Likewise.
9236         * libio/libioP.h: Likewise.
9237         * libio/memstream.c: Likewise.
9238         * libio/obprintf.c: Likewise.
9239         * libio/oldfileops.c: Likewise.
9240         * libio/oldiofclose.c: Likewise.
9241         * libio/oldiofdopen.c: Likewise.
9242         * libio/oldiofgetpos.c: Likewise.
9243         * libio/oldiofgetpos64.c: Likewise.
9244         * libio/oldiofopen.c: Likewise.
9245         * libio/oldiofsetpos.c: Likewise.
9246         * libio/oldiofsetpos64.c: Likewise.
9247         * libio/oldiopopen.c: Likewise.
9248         * libio/oldstdfiles.c: Likewise.
9249         * libio/putc.c: Likewise.
9250         * libio/setbuf.c: Likewise.
9251         * libio/setlinebuf.c: Likewise.
9252         * libio/stdfiles.c: Likewise.
9253         * libio/stdio.c: Likewise.
9254         * libio/strops.c: Likewise.
9255         * libio/vasprintf.c: Likewise.
9256         * libio/vscanf.c: Likewise.
9257         * libio/vsnprintf.c: Likewise.
9258         * libio/vswprintf.c: Likewise.
9259         * libio/wfiledoalloc.c: Likewise.
9260         * libio/wfileops.c: Likewise.
9261         * libio/wgenops.c: Likewise.
9262         * libio/wstrops.c: Likewise.
9263         * malloc/mtrace.c: Likewise.
9264         * misc/error.c: Likewise.
9265         * misc/syslog.c: Likewise.
9266         * nss/getXXbyYY_r.c: Likewise.
9267         * nss/getXXent_r.c: Likewise.
9268         * nss/hosts-lookup.c: Likewise.
9269         * stdio-common/getw.c
9270         * stdio-common/printf-prs.c: Likewise.
9271         * stdio-common/printf_fp.c: Likewise.
9272         * stdio-common/printf_size.c: Likewise.
9273         * stdio-common/putw.c: Likewise.
9274         * stdio-common/scanf.c: Likewise.
9275         * stdio-common/sprintf.c: Likewise.
9276         * stdio-common/tmpfile64.c: Likewise.
9277         * stdio-common/vfprintf.c: Likewise.
9278         * stdio-common/vfscanf.c: Likewise.
9279         * stdlib/strfmon.c: Likewise.
9280         * sunrpc/auth_des.c: Likewise.
9281         * sunrpc/auth_none.c: Likewise.
9282         * sunrpc/auth_unix.c: Likewise.
9283         * sunrpc/authdes_prot.c: Likewise.
9284         * sunrpc/authuxprot.c: Likewise.
9285         * sunrpc/clnt_perr.c: Likewise.
9286         * sunrpc/clnt_raw.c: Likewise.
9287         * sunrpc/clnt_tcp.c: Likewise.
9288         * sunrpc/clnt_udp.c: Likewise.
9289         * sunrpc/clnt_unix.c: Likewise.
9290         * sunrpc/key_call.c: Likewise.
9291         * sunrpc/key_prot.c: Likewise.
9292         * sunrpc/openchild.c: Likewise.
9293         * sunrpc/pm_getmaps.c: Likewise.
9294         * sunrpc/pm_getport.c: Likewise.
9295         * sunrpc/pmap_clnt.c: Likewise.
9296         * sunrpc/pmap_prot.c: Likewise.
9297         * sunrpc/pmap_prot2.c: Likewise.
9298         * sunrpc/pmap_rmt.c: Likewise.
9299         * sunrpc/rpc_cmsg.c: Likewise.
9300         * sunrpc/rpc_prot.c: Likewise.
9301         * sunrpc/svc_authux.c: Likewise.
9302         * sunrpc/svc_raw.c: Likewise.
9303         * sunrpc/svc_simple.c: Likewise.
9304         * sunrpc/svc_tcp.c: Likewise.
9305         * sunrpc/svc_udp.c: Likewise.
9306         * sunrpc/svc_unix.c: Likewise.
9307         * sunrpc/xdr.c: Likewise.
9308         * sunrpc/xdr_array.c: Likewise.
9309         * sunrpc/xdr_mem.c: Likewise.
9310         * sunrpc/xdr_rec.c: Likewise.
9311         * sunrpc/xdr_ref.c: Likewise.
9312         * sunrpc/xdr_stdio.c: Likewise.
9313         * sysdeps/generic/_strerror.c: Likewise.
9314         * sysdeps/generic/printf_fphex.c: Likewise.
9315         * sysdeps/generic/tmpfile.c: Likewise.
9316         * sysdeps/gnu/errlist.awk: Likewise.
9317         * sysdeps/gnu/errlist.c: Likewise.
9319         * libio/Makefile (routines): Remove iosprint.
9320         * libio/iosprintf.c: Removed
9323 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
9325         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
9326         non_dynamic_init and exported now.
9327         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
9328         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
9329         !SHARED.
9330         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
9331         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
9332         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
9334 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
9336         * elf/dl-close.c (free_slotinfo): Check for end of list and return
9337         true in this case.
9339         * locale/iso-639.def: Add language codes for Walloon.
9341         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
9342         total number of relocations performed.
9344         * elf/sprof.c (load_profdata): If do_test provide information as
9345         to why loading failed.
9346         * elf/dl-profile.c (_dl_start_profile): Initialize all of
9347         hist_hdr.dimen.
9349         * csu/set-init.c: Moved to...
9350         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
9351         * csu/Makefile: Don't compile set-init.
9352         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
9353         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
9354         to __libc_init.
9355         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
9356         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
9357         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
9358         __libc_init.
9359         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
9360         __libc_subinit.
9362 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
9364         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
9365         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
9366         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
9367         (_dl_deallocate_tls): New function.
9368         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
9369         _dl_deallocate_tls.
9371 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
9373         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
9374         * stdio-common/tst-fseek.c (main): Add test for this.
9376 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
9378         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
9380 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
9382         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
9383         pointer before dereferencing.
9385 2002-02-18  Roland McGrath  <roland@frob.com>
9387         * sysdeps/mach/hurd/times.c: Fix typo in last change.
9389         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
9390         Use task_policy in place of task_priority.
9392         * sysdeps/generic/bits/mman.h
9393         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
9394         * sysdeps/mach/msync.c: New file.
9396         * sysdeps/mach/powerpc/syscall.S: New file.
9398         * mach/msg.c [MACH_MSG_OVERWRITE]
9399         (__mach_msg_trap, __mach_msg_overwrite): New functions.
9400         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
9402         * sysdeps/mach/configure.in: Check for clock.defs to put into
9403         mach_interface_list.
9404         * sysdeps/mach/configure: Regenerated.
9406         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
9407         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
9408         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
9409         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
9410         (mach-shortcuts): Add device_read_overwrite_request,
9411         device_read_overwrite, vm_read_overwrite, thread_switch.
9413         * configure.in (base_machine): Set to $machine by default.
9414         * configure: Regenerated.
9416         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
9417         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
9418         * sysdeps/mach/configure: Regenerated.
9419         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
9421         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
9423         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
9425         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
9426         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
9428 2002-02-17  Roland McGrath  <roland@frob.com>
9430         * sysdeps/mach/hurd/times.c
9431         [NO_CREATION_TIME] (startup_time): New static variable.
9432         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
9433         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
9434         creation_time from task_basic_info.
9435         (__times): Use __gettimeofday instead of __host_get_time.
9437         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
9438         Use untyped Mach IPC message format.
9440         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
9442         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
9443         _S_catch_exception_raise_state_identity,
9444         _hurdsig_fault_catch_exception_raise_state,
9445         _hurdsig_fault_catch_exception_raise_state_identity.
9447         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
9449         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
9450         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
9452         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
9453         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
9455         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
9456         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
9457         them as no-op macros.
9458         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
9459         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
9461         * sysdeps/powerpc/dl-machine.h
9462         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
9464         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
9465         Use untyped Mach IPC message format.
9467         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
9468         Handle untyped Mach IPC message formats.
9470         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
9471         Expect different argument conventions when this is defined.
9472         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
9473         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
9474         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
9475         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
9476         for OSF Mach variant.
9477         (faulted): Use mig_reply_error_t for REPLY.
9478         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
9479         in __thread_set_exception_ports call.
9480         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
9481         __mach_port_set_attributes in place of __mach_port_set_qlimit.
9483         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
9484         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
9485         on Darwin, which includes bogons.
9487         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
9488         variable LOADBASE so it's not declared when it's not used.
9490 2002-02-16  Roland McGrath  <roland@frob.com>
9492         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
9493         to use BI.creation_time.
9495         * mach/Machrules (MIG): Add -x c to CPP value passed down.
9497         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
9498         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
9499         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
9500         host_page_size instead of vm_statistics.
9502         * sysdeps/mach/Makefile (mach-before-compile): Don't include
9503         mach_interface.h here, since not all variants use that name.
9505         * sysdeps/mach/configure.in: Add some checks for Mach headers
9506         to ensure a sane installation.
9507         (mach_interface_list): Define this variable by checking for .defs
9508         files found in various variants.
9509         * configure.in (mach_interface_list): AC_SUBST this.
9510         * config.make.in (mach-interface-list): New substituted variable.
9511         * mach/Makefile (user-interfaces): Define this using the value
9512         of $(mach-interface-list) instead of mach, mach4.
9513         Updated other references to mach_interface to use it as well.
9515         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
9517         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
9518         mig_reply_error_t for OSF Mach variant.
9520         * mach/Makefile (routines): Remove bootprivport.
9521         * mach/bootprivport.c: File removed.  It has never been used.
9523         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
9524         Grok the OSF flavor of message format.
9525         (mach_msg_destroy_port): For MAKE_SEND and
9526         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
9527         no-senders notification.
9529 2002-02-06  Roland McGrath  <roland@frob.com>
9531         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
9532         to here if 2.0 compatibility enabled ...
9533         (libc: GLIBC_2.1.3): ... from here.
9535 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
9537         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
9538         generation counter.
9539         * elf/dl-close.c (_dl_close): Likewise.
9541 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
9543         * elf/Makefile: Add rules to build and run tst-tls8.
9544         * elf/tst-tls8.c: New file.
9545         * elf/tst-tlsmod4.c: New file.
9547         * stdlib/test-a64l.c (tests): Add more test cases.
9549         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
9550         Reported by Walter Harms <WHarms@bfs.de>.
9552 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
9554         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
9555         definitions for struct sigcontext.
9556         Suggested by David Mosberger-Tang.
9558 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9560         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
9561         for removing reference of module in slotinfo list.
9562         (_dl_close): Use remove_slotinfo.
9563         * sysdeps/generic/dl-tls.c: General pretty printing.
9564         (oom): Define only if SHARED.
9565         (_dl_next_tls_modid): Correct starting point for the case we assume
9566         there is a gap.  Add missing instruction grouping (doh!).  Correct
9567         tests for reaching maximum index.
9568         * elf/Makefile: Add rules to build and run tst-tls7.
9569         * elf/tst-tls7.c: New file.
9570         * elf/tst-tlsmod3.c: New file.
9572         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9573         USE_TLS.
9574         * elf/tst-tlsmod2.c: Likewise.
9576         * elf/dl-close.c (_dl_close): When closing an object using TLS
9577         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9578         true.  Increment dl_tls_generation only if we closed any TLS-using
9579         object.
9580         * elf/tst-tls6.c: New file.
9581         * elf/Makefile: Add rules to build and run tst-tls6.
9583         * po/da.po: Update from translation team.
9585         * locale/categories.def: Fix typo [PR libc/2948].
9586         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9587         [PR libc/2949].
9588         * locale/iso-4217.def: Update from official version [PR libc/2950].
9589         * glibcbug.in: Honor TMPDIR [PR libc/2951].
9590         * locale/programs/ld-collate.c (collate_finish): Bail out with a
9591         message if input is too confusion instead of using assert.
9592         (collate_read): Don't crash on unknown symbol [PR libc/2952].
9593         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9595         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9596         * elf/tst-tls2.c: Likewise.
9597         * elf/tst-tls3.c: Likewise.
9599 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
9601         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9603 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9605         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9606         if this is really necessary.
9608         * elf/dl-close.c (_dl_close): Implement freeing entries in the
9609         slotinfo array.
9610         (free_mem): Free memory for the slotinfo array if possible.
9612 2002-02-12  Andreas Schwab  <schwab@suse.de>
9614         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9616 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
9618         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9619         TLS_DTV_UNALLOCATE.
9620         (oom): New function.
9621         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9622         (_dl_determine_tlsoffset): Likewise.
9623         (_dl_allocate_tls): Likewise.
9624         (__TLS_GET_ADDR): Define if not already defined.
9625         (_dl_tls_symaddr): New function.
9626         (allocate_and_init): New function.
9627         (__tls_get_addr): Actually implement handling of generation counter
9628         and deferred allocation.
9629         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9630         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9631         _dl_tls_generation.
9632         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9633         Declare _dl_tls_symaddr.
9634         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9635         SHARED.
9636         * include/link.h (struct link_map):  Remove l_tls_nextimage and
9637         l_tls_previmage.
9638         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9639         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9640         (_dl_vsym): Likewise.
9641         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9642         layout.
9643         (dl_main): Allow PT_TLS be present for empty segment.  Remove
9644         nextimage list handling.  Instead add all modules using TLS to
9645         dl_tls_dtv_slotinfo_list.
9646         * elf/dl-open.c (dl_open_worker): After successfully loading all
9647         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9648         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9649         empty segment don't do anything.  Remove handling of initimage list.
9650         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9651         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9652         * elf/dl-minimal.c: Define __libc_memalign.
9653         * elf/dl-support.c: Remove _dl_initimage_list.  Add
9654         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9655         _dl_tls_generation.
9656         * include/stdlib.h: Declare __libc_memalign.
9658         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9659         * elf/tst-tls4.c: New file.
9660         * elf/tst-tls5.c: New file.
9661         * elf/tst-tlsmod2.c: New file.
9663         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9665         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9667         * elf/tst-tls1.c: Use test-skeleton.c.
9668         * elf/tst-tls2.c: Likewise.
9669         * elf/tst-tls3.c: Likewise.
9671         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9673 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
9675         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9677 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
9679         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9681         * elf/tst-tls3.c: New file.
9682         * elf/tst-tlsmod1.c: New file.
9683         * elf/Makefile: Add rules to build and run tst-tls3.
9685         * sysdeps/i386/dl-machine.h: Include <tls.h>.
9686         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9687         TLS relocations.
9689         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9691         * po/fr.po: Update from translation team.
9693         * elf/tls-macros.h: Add alternative macros for use in PIC.
9695         * elf/dl-lookup.c: Include <tls.h>.
9696         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9698         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9699         required by passing pointer to last element of the list.
9701         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9702         l_tls_initimage to a place where it actually is performed.
9704         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9705         after globfree() calls.
9707         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9708         (openaux): Pass open_mode as new last argument to _dl_map_object.
9709         (_dl_map_object_deps): Add new argument open_mode.  Initialize
9710         open_mode element of args variable with it.
9711         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9712         _dl_map_object_deps.
9713         * elf/rtld.c (dl_main): Add zero as last parameter to
9714         _dl_map_object_deps call.
9715         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9716         * elf/nodlopen2.c: New file.
9717         * elf/nodlopenmod2.c: New file.
9718         * elf/Makefile: Add rules to build and run nodlopen2.
9720         * elf/tst-tls1.c: Move TLS helper macros to...
9721         * elf/tls-macros.h: ...here.  New file.
9722         * elf/tst-tls2.c: New file.
9723         * elf/Makefile (tests): Add tst-tls2.
9724         (distribute): Add tls-macros.h.
9726         * po/sv.po: Update from translation team.
9728         * elf/tst-tls1.c (main): Add complete set of tests.  Split
9729         architecture specific definitions from the actual test code.
9731         * po/tr.po: Update from translation team.
9733 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
9735         * elf/Makefile (tests): Add tst-tls1.
9736         * elf/tst-tls1.c: New file.
9738         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9739         alignment of TCB for now.
9741         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9742         initialization image for the application itself.
9744         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9745         loop to initialize TLS block.
9747 2002-02-08  Richard Henderson  <rth@redhat.com>
9749         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9750         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9752         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9754 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
9756         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9758 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
9760         * po/ca.po: Update from translation team.
9761         * po/sk.po: Likewise.
9763         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9764         (dl_main): Move dtv/static TLS handling before relocation.
9765         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
9766         TLS_INIT_TP to allocate and install the dtv/static TLS block.
9767         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9768         so far uses TLS initialize GL(dl_tls_static_size) and
9769         GL(dl_tls_static_align) to account for the TCB.
9770         (_dl_allocate_tls): New function.
9771         * sysdeps/generic/ldsodefs.h (rtld_global): Add
9772         _dl_initial_dtv_malloced.
9774         * configure.in: Test for __builtin_memset more realistically.
9776         * csu/version.c (banner): If TLS support is available say so.
9778 2002-02-04  H.J. Lu  <hjl@gnu.org>
9780         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9781         __attribute_used__.
9782         (__dl_runtime_resolve): Likewise.
9784         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9785         declaration.
9787 2001-11-15  H.J. Lu  <hjl@gnu.org>
9789         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9790         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9792         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9794 2002-02-07  H.J. Lu  <hjl@gnu.org>
9796         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9797         ".set noreorder".
9798         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9799         Likewise.
9801 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9803         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9805         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9806         ___tls_get_addr_internal.
9807         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9809         * po/ko.po: Update from translation team.
9811 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
9813         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9814         attribute, change __pad{1,2} type to unsigned int.
9815         (struct stat64): Remove packed attribute.
9817 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9819         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9821 2002-02-07  Andreas Schwab  <schwab@suse.de>
9823         * configure.in: Fix check for -zcombreloc.
9825 2002-02-06  H.J. Lu  <hjl@gnu.org>
9827         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9828         * configure.in: Check if __builtin_memset really works.
9829         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9830         __GNUC_PREREQ (2, 96) before using __builtin_memset.
9832 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9834         * io/bug-ftw3.c (main): Don't try the test if root.
9836 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9838         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9839         constraints.
9840         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9841         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9842         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9843         Likewise.
9844         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9845         a weak alias for __clone.
9846         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9847         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9848         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9849         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9850         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9851         a weak alias for __mmap64.
9853 2002-02-05  H.J. Lu  <hjl@gnu.org>
9855         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9856         (atomic_add): Likewise.
9857         (compare_and_swap): Likewise.
9858         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9860 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9862         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9864         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9865         alignment of the TCB and store total size and alignment of static
9866         TLS block in _dl_tls_static_size and _dl_tls_static_align.
9867         tls_index is a typedef.
9868         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9869         _dl_tls_static_align.
9870         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9871         * elf/dl-support.c: Define _dl_tls_static_size and
9872         _dl_tls_static_align.
9874 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9876         * configure.in: Add --without-tls option.
9877         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9878         --without-tls is given.
9880         * sysdeps/generic/dl-tls.c: Include <tls.h>.
9882         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9884 2002-02-06  Roland McGrath  <roland@frob.com>
9886         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9887         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9889         * scripts/versions.awk: Improve error message for missing version.
9890         Each version inherits from the last one only if they have the same
9891         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9892         but not GLIBC_x and FOO_y.
9894         * scripts/firstversions.awk: Handle libraries that don't have each
9895         particular version named in the third column of shlib-versions.
9897         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9899 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9901         * Versions.def [ld]: Add GLIBC_2.3.
9902         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9903         * elf/Makefile (dl-routines): Add dl-tls.
9904         (distribute): Add dl-tls.h.
9905         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9906         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9907         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9908         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9909         along with the other info in the link map.  Change queueing of init
9910         images for double linked list.  Use _dl_next_tls_modid to compute
9911         l_tls_modid.
9912         * elf/rtld.c (_dl_start_final): Store alignment requirement
9913         along with the other info in rtld map and executable map.
9914         (dl_main): Add ld.so to the init image list if necessary.  Compute
9915         final module ID with _dl_next_tls_modid.
9916         * include/link.h (struct link_map): Add l_tls_previmage and
9917         l_tls_align.
9918         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9919         * sysdeps/i386/elf/Versions: New file.
9920         * sysdeps/generic/dl-tls.c: New file.
9921         * sysdeps/generic/dl-tls.h: New file.
9922         * sysdeps/i386/dl-tls.h: New file.
9924 2002-02-06  Roland McGrath  <roland@frob.com>
9926         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9927         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9929 2002-01-05  Roland McGrath  <roland@frob.com>
9931         * sysdeps/mach/configure.in: New file.
9932         * sysdeps/mach/configure: New generated file.
9934         * mach/Makefile (user-interfaces): Remove default_pager_helper.
9935         It has never been used by anything.
9937 2002-02-06  H.J. Lu  <hjl@gnu.org>
9939         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9940         is included.
9942 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9944         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9945         attribute((packed)) to counter stupid people misusing gcc options.
9946         (struct stat64): Likewise.
9948 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9950         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
9951         the variables which are used as booleans.
9953 2002-02-06  Andreas Jaeger  <aj@suse.de>
9955         * include/libc-symbols.h (INTUSE): Renamed from INT.
9956         * elf/dl-deps.c: Change users.
9957         * sysdeps/generic/dl-sysdep.c: Likewise.
9958         * sysdeps/generic/dl-cache.c: Likewise.
9959         * elf/dl-reloc.c: Likewise.
9960         * elf/rtld.c: Likewise.
9961         * elf/dl-version.c: Likewise.
9962         * elf/dl-load.c: Likewise.
9963         * elf/dl-dst.h: Likewise.
9964         * elf/dl-init.c: Likewise.
9965         * elf/dl-error.c: Likewise.
9966         * elf/dl-fini.c: Likewise.
9967         * elf/dl-runtime.c: Likewise.
9968         * elf/do-lookup.h: Likewise.
9970         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9971         definition.
9972         * stdio-common/_itowa.h: Likewise.
9974 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9976         * elf/dl-minimal.c: Define _itoa_lower_digits.
9978         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
9979         DT_FLAGS set.
9981         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
9982         loading modules with the DF_STATIC_TLS flag set.
9983         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
9984         element.
9985         * include/link.h (struct link_map): Add l_flags field.
9986         * elf/elf.h (DF_STATIC_TLS): New definition.
9988         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
9989         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
9991         * elf/rtld.c (process_dl_debug): Correct printing help message.
9992         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
9993         for %s.
9995         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
9996         definition and pass &errno in use of this variable.
9997         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
9999 2002-02-04  Andreas Schwab  <schwab@suse.de>
10001         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
10002         * locale/programs/charmap-dir.c: Wrap calls that output messages
10003         with WITH_CUR_LOCALE.  Include "localedef.h" first.
10004         * locale/programs/charmap.c: Likewise.
10005         * locale/programs/ld-address.c: Likewise.
10006         * locale/programs/ld-collate.c: Likewise.
10007         * locale/programs/ld-ctype.c: Likewise.
10008         * locale/programs/ld-identification.c: Likewise.
10009         * locale/programs/ld-measurement.c: Likewise.
10010         * locale/programs/ld-messages.c: Likewise.
10011         * locale/programs/ld-monetary.c: Likewise.
10012         * locale/programs/ld-name.c: Likewise.
10013         * locale/programs/ld-numeric.c: Likewise.
10014         * locale/programs/ld-paper.c: Likewise.
10015         * locale/programs/ld-telephone.c: Likewise.
10016         * locale/programs/ld-time.c: Likewise.
10017         * locale/programs/linereader.c: Likewise.
10018         * locale/programs/linereader.h: Likewise.
10019         * locale/programs/localedef.c: Likewise.
10020         * locale/programs/locfile.c: Likewise.
10021         * locale/programs/repertoire.c: Likewise.
10023 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
10025         * elf/rtld.c (_dl_start_final): Determine load address to locate
10026         ehdr with GL(dl_rtld_map).l_map_start.
10028         * po/ca.po: Update from translation team.
10030         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
10031         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
10032         header entry.
10033         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10034         _dl_tls_module_cnt.
10035         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
10037 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
10039         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
10040         * include/link.h (struct link_map): Add various members for TLS
10041         information.
10042         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
10043         _rtld_tlsoffset, add _dl_initimage_list.
10044         * sysdeps/i386/dl-lookupcfg.h: New file.
10045         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
10046         TLS relocation.  When using TLS we now use RESOLVE_MAP.
10047         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
10048         is used.
10050         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
10051         unused.
10053         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
10054         thread-pointer as soon as possible.
10055         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
10056         elements in rtld_global.
10057         * sysdeps/generic/tls.h: New file.
10058         * elf/Makefile (distribute): Add tls.h.
10059         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
10060         relocations.  Not complete yet.
10062         * resolv/resolv.h: Allow user to define __need_res_state and only
10063         define __res_start structure then.
10064         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
10066         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
10067         dl_cpuclock_offset initialization to _dl_start_final.
10068         (_dl_show_auxv): Avoid unnecessary sign extension.
10069         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
10071 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
10073         * config.h.in: Add HAVE_TLS_SUPPORT.
10074         * sysdeps/i386/elf/configure.in: New file.
10076 2002-02-03  Andreas Schwab  <schwab@suse.de>
10078         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
10079         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
10081 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
10083         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
10084         alloca if the memory reqirements are too high.
10086 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
10088         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
10089         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
10090         the former is available anyway and speed isn't important here.
10091         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
10092         * elf/dl-version.c (match_symbol): Likewise.
10093         (_dl_check_map_versions): Likewise.
10094         * elf/rtld.c (process_envvars): Likewise.
10095         (print_statistics): Likewise.
10096         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
10097         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
10098         bases.  Add assert to catch uses of unimplemented features.
10099         (__strsep): Add assert to catch uses of unimplemented features.
10100         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
10101         and avoid inline optimization.
10102         * elf/rtld.c (process_envvars): Likewise.
10103         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
10104         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
10105         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
10107 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10109         * stdio-common/_itoa.h: Minor simplifications of the code.
10110         * stdio-common/_itoa.c: Likewise.
10112         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
10113         instead of _dl_printf for debugging info output.
10115         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
10116         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
10118 2002-02-01  H.J. Lu  <hjl@gnu.org>
10120         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
10121         (atomic_add): Likewise.
10122         (compare_and_swap): Return 0 only when failed to compare. Use
10123         branch likely.
10125         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
10126         branch likely.
10128 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
10130         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
10132 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10134         * elf/dl-minimal.c (__strsep): New minimal implementation.
10136 2002-02-02  Paul Eggert  <eggert@twinsun.com>
10138         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
10139         (__mktime_internal): If no tm_isdst is requested, prefer solutions
10140         with tm_isdst > 0 when the requested time falls within a
10141         spring-forward gap [PR libc/2894].
10143 2002-02-03  Andreas Schwab  <schwab@suse.de>
10145         * stdio-common/tst-rndseek.c: Increase timeout.
10147 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10149         Change ld.so to not use functions which are exported.  One cannot
10150         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
10151         definitions.
10152         * include/libc-symbols.h: Define INT and INTDEF.
10153         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
10154         _dl_signal_error_internal, _dl_map_object_internal,
10155         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
10156         _dl_lookup_versioned_symbol_internal,
10157         _dl_relocate_object_internal, _dl_debug_state_internal,
10158         _dl_start_profile_internal, and _dl_unload_cache_internal.
10159         * include/dlfcn.h: Declare _dl_catch_error_internal.
10160         * elf/rtld.c: Use INT for calls to any of the *_internal functions
10161         above.  Add INTDEF to function definitions.
10162         * elf/dl-debug.c: Likewise.
10163         * elf/dl-deps.c: Likewise.
10164         * elf/dl-dst.h: Likewise.
10165         * elf/dl-error.c: Likewise.
10166         * elf/dl-fini.c: Likewise.
10167         * elf/dl-init.c: Likewise.
10168         * elf/dl-load.c: Likewise.
10169         * elf/dl-lookup.c: Likewise.
10170         * elf/dl-misc.c: Likewise.
10171         * elf/dl-open.c: Likewise.
10172         * elf/dl-profile.c: Likewise.
10173         * elf/dl-reloc.c: Likewise.
10174         * elf/dl-runtime.c: Likewise.
10175         * elf/dl-version.c: Likewise.
10176         * elf/do-lookup.h: Likewise.
10177         * sysdeps/generic/dl-cache.c: Likewise.
10178         * sysdeps/generic/dl-sysdep.c: Likewise.
10179         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
10180         instead of _dl_init.
10181         * sysdeps/arm/dl-machine.h: Likewise.
10182         * sysdeps/cris/dl-machine.h: Likewise.
10183         * sysdeps/hppa/dl-machine.h: Likewise.
10184         * sysdeps/i386/dl-machine.h: Likewise.
10185         * sysdeps/ia64/dl-machine.h: Likewise.
10186         * sysdeps/m68k/dl-machine.h: Likewise.
10187         * sysdeps/mips/dl-machine.h: Likewise.
10188         * sysdeps/mips/mips64/dl-machine.h: Likewise.
10189         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10190         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10191         * sysdeps/sh/dl-machine.h: Likewise.
10192         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10193         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10194         * sysdeps/x86_64/dl-machine.h: Likewise.
10195         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
10197         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
10198         and _dl_debug_initialize.
10200         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
10201         more information.
10202         * elf/rtld.c (dl_main): Avoid strrchr.
10203         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
10204         result of readlink.  Search from the back for '/'.
10206         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
10207         strncpy if possible.
10209         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
10210         strncmp.
10211         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
10212         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
10213         strspn, and strcspn.
10214         (process_envvars): Don't use strcspn.
10216         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
10217         (_dl_dst_substitute): Likewise.
10219 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10221         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
10222         code which is never used when relocating ld.so itself.
10224         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
10225         starting ld.so itself.  Move l_addr variable initialization closer
10226         to use.
10227         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
10229 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
10231         * Versions.def (libc): Add GLIBC_PRIVATE.
10232         (libdb, libnss_db, libdb1): Remove.
10233         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
10234         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
10235         (libpthread): Add GLIBC_PRIVATE.
10236         (libresolv): Likewise, remove GLIBC_2.1.
10237         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
10238         GLIBC_2.2.3, GLIBC_2.3.
10239         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
10240         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
10241         _dl_sym, _dl_vsym): Likewise.
10242         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
10243         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
10244         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
10245         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
10246         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
10247         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
10248         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
10249         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
10250         Likewise.
10251         (_dl_object_relocation_scope): Remove.
10252         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
10253         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
10254         __gconv_cache): Move to GLIBC_PRIVATE.
10255         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
10256         __internal_setnetgrent): Likewise.
10257         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
10258         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
10259         * locale/Versions (__collate_element_hash, __collate_element_strings,
10260         __collate_symbol_classes, __collate_symbol_hash,
10261         __collate_symbol_strings, _nl_current_LC_COLLATE,
10262         _nl_current_LC_CTYPE): Likewise.
10263         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
10264         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
10265         (libnss_nis, libnss_nisplus): Likewise.
10266         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
10267         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
10268         (libnss_files): Move all symbols to GLIBC_PRIVATE.
10269         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
10270         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
10271         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
10272         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
10273         __ns_get16, __ns_samename): Likewise.
10274         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
10275         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
10276         GLIBC_PRIVATE.
10277         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
10278         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
10279         __libc_connect): Likewise.
10280         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
10281         Likewise.
10282         * stdlib/Versions (__libc_system): Likewise.
10283         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
10284         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
10285         * sysdeps/ia64/fpu/Versions: Likewise.
10286         * sysdeps/ia64/Versions: Likewise.
10287         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
10288         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
10289         to GLIBC_PRIVATE.
10290         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
10291         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
10292         __libc_sigaction): Likewise.
10293         * termios/Versions (__libc_tcdrain): Likewise.
10295         * misc/sys/cdefs (__attribute_noinline__): Define.
10296         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
10297         __attribute_noinline__.
10299         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
10300         * elf/dl-xstat64.c: New file.
10301         * elf/dl-fxstat64.c: New file.
10302         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
10303         don't export __fxstat64 at multiple versions.
10304         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
10305         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
10307 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
10309         * locale/program/ld-collate.c (collate_finish): Assign a wide
10310         char collation sequence value to multi character collating
10311         elements, and avoid over writing by non-character elements.
10313 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10315         * elf/Makefile (distribute): Add dl-procinfo.c.
10316         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
10317         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
10319 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
10321         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
10322         definition.
10323         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
10324         _rtld_global struct.
10325         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10326         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
10327         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10328         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
10329         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
10330         _dl_fpu_control_set): Remove unused externs.
10331         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
10332         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
10333         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
10334         related variables in _rtld_global struct.
10335         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
10336         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
10337         unused extern.
10339 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10341         * sysdeps/generic/dl-procinfo.c: New file.
10343 2002-02-01  Andreas Schwab  <schwab@suse.de>
10345         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
10347 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10349         * elf/rtld.c (_dl_start): Mark as internal_function.
10350         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
10351         in register.
10352         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
10353         General pretty printing.
10355 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
10357         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
10358         * elf/dl-reloc.c: Pretty printing.
10359         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
10360         procinfo-related variables in rtld_global struct.
10361         * elf/dl-support.c: Likewise.
10362         * elf/rtld.c: Likewise.
10363         * sysdeps/i386/i686/Makefile: Likewise.
10364         * sysdeps/i386/i686/hp-timing.c: Likewise.
10365         * sysdeps/i386/i686/hp-timing.h: Likewise.
10366         * sysdeps/ia64/Makefile: Likewise.
10367         * sysdeps/ia64/hp-timing.c: Likewise.
10368         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
10369         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
10370         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
10371         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
10372         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10373         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
10374         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
10375         * sysdeps/x86_64/Makefile: Likewise.
10377         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
10378         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
10379         _dl_debug_fd to rtld_global.
10380         * elf/Versions: Likewise.
10381         * elf/dl-close.c: Likewise.
10382         * elf/dl-iteratephdr.c: Likewise.
10383         * elf/dl-lookup.c: Likewise.
10384         * elf/dl-misc.c: Likewise.
10385         * elf/dl-open.c: Likewise.
10386         * elf/dl-support.c: Likewise.
10387         * elf/do-lookup.h: Likewise.
10388         * elf/rtld.c: Likewise.
10389         * sysdeps/generic/dl-cache.c: Likewise.
10390         * sysdeps/generic/dl-sysdep.c: Likewise.
10391         * sysdeps/ia64/Versions: Likewise.
10392         * sysdeps/unix/clock_gettime.c: Likewise.
10393         * sysdeps/unix/clock_settime.c: Likewise.
10394         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10395         * sysdeps/sparc/Versions: Removed.
10396         * sysdeps/i386/i686/Versions : Removed.
10397         * sysdeps/x86_64/Versions: Removed.
10398         * configure.in: Define HAVE_PROTECTED if .protected is available.
10399         * config.h.in: Add entry for HAVE_PROTECTED.
10401 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
10403         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
10404         code in struct _rtld_global.  Export this struct, remove all
10405         exports for the signal variables.
10406         * sysdeps/arm/dl-machine: Likewise.
10407         * sysdeps/generic/dl-origin: Likewise.
10408         * sysdeps/generic/dl-sysdep: Likewise.
10409         * sysdeps/generic/dl-cache: Likewise.
10410         * sysdeps/hppa/dl-fptr: Likewise.
10411         * sysdeps/hppa/dl-machine: Likewise.
10412         * sysdeps/cris/dl-machine: Likewise.
10413         * sysdeps/i386/dl-machine: Likewise.
10414         * sysdeps/ia64/dl-machine: Likewise.
10415         * sysdeps/m68k/dl-machine: Likewise.
10416         * sysdeps/mach/hurd/dl-sysdep: Likewise.
10417         * sysdeps/mips/mips64/dl-machine: Likewise.
10418         * sysdeps/mips/dl-machine: Likewise.
10419         * sysdeps/powerpc/elf/libc-start: Likewise.
10420         * sysdeps/powerpc/dl-machine: Likewise.
10421         * sysdeps/powerpc/dl-start: Likewise.
10422         * sysdeps/sparc/sparc32/dl-machine: Likewise.
10423         * sysdeps/sparc/sparc64/dl-machine: Likewise.
10424         * sysdeps/sh/dl-machine: Likewise.
10425         * sysdeps/s390/s390-32/dl-machine: Likewise.
10426         * sysdeps/s390/s390-64/dl-machine: Likewise.
10427         * sysdeps/unix/sysv/aix/libc-start: Likewise.
10428         * sysdeps/unix/sysv/aix/start-libc: Likewise.
10429         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
10430         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
10431         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
10432         * sysdeps/x86_64/dl-machine: Likewise.
10434 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
10436         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
10437         are too high.
10439 2002-01-31  Andreas Schwab  <schwab@suse.de>
10441         * sysdeps/posix/readv.c: Check for ssize_t overflow.
10443 2002-01-31  Andreas Schwab  <schwab@suse.de>
10445         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
10446         reference to _dl_pagesize.
10448 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
10450         * Versions.def [ld]: Add GLIBC_2.3.
10451         * elf/dl-addr.c: Move global variables for SHARED code in struct
10452         _rtld_global.  Export this struct, remove all exports for the
10453         signal variables.
10454         * elf/dl-close.c: Likewise.
10455         * elf/dl-conflict.c: Likewise.
10456         * elf/dl-debug.c: Likewise.
10457         * elf/dl-deps.c: Likewise.
10458         * elf/dl-dst.h: Likewise.
10459         * elf/dl-error.c: Likewise.
10460         * elf/dl-fini.c: Likewise.
10461         * elf/dl-init.c: Likewise.
10462         * elf/dl-iteratephdr.c: Likewise.
10463         * elf/dl-libc.c: Likewise.
10464         * elf/dl-load.c: Likewise.
10465         * elf/dl-lookup.c: Likewise.
10466         * elf/dl-minimal.c: Likewise.
10467         * elf/dl-object.c: Likewise.
10468         * elf/dl-open.c: Likewise.
10469         * elf/dl-profile.c: Likewise.
10470         * elf/dl-profstub.c: Likewise.
10471         * elf/dl-reloc.c: Likewise.
10472         * elf/dl-runtime.c: Likewise.
10473         * elf/dl-support.c: Likewise.
10474         * elf/dl-sym.c: Likewise.
10475         * elf/dl-version.c: Likewise.
10476         * elf/do-lookup.h: Likewise.
10477         * elf/do-rel.h: Likewise.
10478         * elf/dynamic-link.h: Likewise.
10479         * elf/rtld.c: Likewise.
10480         * sysdeps/generic/dl-cache.c: Likewise.
10481         * sysdeps/generic/dl-sysdep.c: Likewise.
10482         * sysdeps/generic/ldsodefs.h: Likewise.
10483         * sysdeps/generic/libc-start.c: Likewise.
10484         * sysdeps/i386/dl-machine.h: Likewise.
10485         * sysdeps/ia64/dl-fptr.c: Likewise.
10486         * sysdeps/ia64/dl-machine.h: Likewise.
10487         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
10488         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10489         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
10490         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
10491         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
10492         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
10493         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
10494         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
10496 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10498         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
10499         to avoid warning
10500         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
10502         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
10503         SHARED version.
10504         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
10506         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
10508 2002-01-29  Ben Collins  <bcollins@debian.org>
10510         * string/bits/string2.h (__mempcpy): Protect size arg for
10511         addition when using __builtin_memcpy.
10513 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10515         * stdlib/Makefile (tests): Add tst-qsort.
10516         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
10518         * manual/signal.texi (Process Signal Mask): Document that
10519         pthread_sigmask, not sigprocmask, must be used in MT programs.
10520         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
10522         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
10523         found.
10524         * misc/Makefile (tests): Add tst-hsearch.
10525         * misc/tst-hsearch.c: New file.
10527 2002-01-18  Wolfram Gloger  <wg@malloc.de>
10529         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
10530         * malloc/malloc.h: Likewise.
10531         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
10532         * malloc/arena.c: New file.
10533         * malloc/hooks.c: New file.
10534         * malloc/tst-mallocstate.c: New file.
10535         * malloc/Makefile: Add new testcase tst-mallocstate.
10536         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
10538 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10540         * stdlib/msort.c: Remove last patch.  The optimization violates the
10541         same rule which qsort.c had problems with.
10543 2002-01-27  Paul Eggert  <eggert@twinsun.com>
10545         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
10546         to a pivot element that lies outside the array to be sorted, as
10547         ISO C99 requires that the comparison function be called only with
10548         addresses of array elements [PR libc/2880].
10550 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10552         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
10553         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
10555         * timezone/asia: Update from tzdata2002b.
10556         * timezone/australasia: Likewise.
10557         * timezone/backward: Likewise.
10558         * timezone/europe: Likewise.
10559         * timezone/leapseconds: Likewise.
10560         * timezone/iso3166.tab: Likewise.
10561         * timezone/zone.tab: Likewise.
10563 2002-01-23  Richard Henderson  <rth@redhat.com>
10565         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10567 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10569         * string/strxfrm.c: Allocate one more byte for rulearr and clear
10570         this element [PR libc/2855].
10572         * string/strcoll.c: Handle zero-length arguments specially
10573         [PR libc/2856].
10575 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
10577         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10578         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10579         short lengths and constant src.
10580         (strcpy): Don't optimize for gcc 3.0+.
10581         (__stpcpy): For gcc 3.0+, don't use
10582         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10583         for short string literal src.
10585 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10587         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10588         Set for arm, too.
10590 2001-01-22  Paul Eggert  <eggert@twinsun.com>
10592         * manual/llio.texi (Linked Channels, Cleaning Streams):
10593         Make it clearer that a just-opened input stream might need cleaning.
10595 2002-01-21  H.J. Lu  <hjl@gnu.org>
10597         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10598         Don't use label at end of compound statement.
10600 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
10602         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10603         Remove test for negative integer arg; sin_pi does it correctly.
10605 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
10607         * nscd/Makefile (distribute): Filter out xmalloc.c.
10609 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
10611         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10612         Set offset if read end wasn't the buffer end.
10613         (_IO_file_seekoff_mmap): New function.
10614         (_IO_file_xsgetn_mmap): New function.
10615         (_IO_file_jumps_mmap): Use the two new functions.
10616         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10617         != end buffer.
10618         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10619         _IO_file_underflow_mmap.
10620         * libio/iofopen.c: Don't position file descriptor at end of file.
10621         * libio/tst-widetext.c: Improve error messages.
10622         * stdio-common/tst-rndseek.c: Likewise.
10624 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
10626         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10627         end of enum for !_GNU_SOURCE.
10628         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10629         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10630         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10631         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10632         values unless _GNU_SOURCE.
10634         * iconvdata/tcvn5712-1.c: Minor cleanups.
10636 2002-01-18  Andreas Schwab  <schwab@suse.de>
10638         * sysdeps/unix/sysv/linux/configure.in
10639         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10641 2002-01-16  Roger Sayle  <roger@eyesopen.com>
10643         * stdlib/msort.c (msort_with_tmp): Replace implementation with
10644         more efficient "Towers of Hanoi" mergesort.
10645         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10646         for generic, sizeof(int) and sizeof(long) variants respectively.
10648 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
10650         * manual/syslog.texi (openlog): Describe possible problems with
10651         first parameter.
10652         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10654         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
10655         * nscd/connections.c (begin_drop_privileges): New function.
10656         (finish_drop_privileges): New function.
10657         (nscd_init): Call the new functions which also install all groups
10658         for the server user.
10659         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10660         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10662 2002-01-17  H.J. Lu  <hjl@gnu.org>
10664         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10665         `const' from `got'.
10667 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10669         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10670         instructions for pointer operations.
10671         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10673 2002-01-17  Andreas Jaeger  <aj@suse.de>
10675         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10676         __uint128_t build-in.
10678         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10679         PowerPC, sync with 2.2 branch.
10681 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10683         * posix/getconf.c: Update copyright year.
10684         * nss/getent.c: Likewise.
10685         * nscd/nscd_nischeck.c: Likewise.
10686         * iconv/iconvconfig.c: Likewise.
10687         * iconv/iconv_prog.c: Likewise.
10688         * elf/ldconfig.c: Likewise.
10689         * catgets/gencat.c: Likewise.
10690         * csu/version.c: Likewise.
10691         * elf/ldd.bash.in: Likewise.
10692         * elf/sprof.c (print_version): Likewise.
10693         * locale/programs/locale.c: Likewise.
10694         * locale/programs/localedef.c: Likewise.
10695         * nscd/nscd.c (print_version): Likewise.
10696         * debug/xtrace.sh: Likewise.
10697         * malloc/memusage.sh: Likewise.
10698         * malloc/mtrace.pl: Likewise.
10700 2002-01-16  Andreas Schwab  <schwab@suse.de>
10702         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10703         reliably remove "-ia64" from rtld name.
10705 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10707         * iconvdata/gb18030.c: Bug fixes and support for more characters.
10708         Patch by Yu Shao <yshao@redhat.com>.
10710 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10712         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10713         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10714         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10716 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10718         * sysdeps/s390/fpu/libm-test-ulps: Update.
10720 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
10722         * elf/elf.h: Update x86 relocations.
10724 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10726         * locale/programs/charmap.c (new_width): Check whether byte
10727         sequences for both ends of range have the same length.
10729 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10731         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10733 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10735         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10736         string literals.
10737         (__full_ieee754_sqrt): Add __attribute_used__.
10739 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10741         * sysdeps/generic/group_member.c (__group_member): Also check
10742         groups[0] [PR libc/2781].
10744 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
10746         * Makefile (distribute): Add scripts/cpp.
10747         * elf/Makefile (distribute): Add reldep6mod[01234].c,
10748         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10749         unwind-dw2-fde.h, and dwarf2.h.
10750         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10751         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10752         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10753         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10755 2002-01-07  Roland McGrath  <roland@frob.com>
10757         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10758         volatile on type of ARGC so the compiler doesn't get clever.
10760 2002-01-07  Andreas Jaeger  <aj@suse.de>
10762         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10763         * sysdeps/i386/bits/byteswap.h: Likewise.
10764         * sysdeps/ia64/bits/byteswap.h: Likewise.
10765         * sysdeps/m68k/bits/byteswap.h: Likewise.
10766         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10767         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10769 2002-01-02  Bruno Haible  <bruno@clisp.org>
10771         * intl/plural.y: Fix %expect count.
10773 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10775         * elf/Makefile (routines, shared-only-routines): Add
10776         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10777         * elf/elf.h (PT_GNU_EH_FRAME): Define.
10778         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10779         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10780         Optimize if .eh_frame section contains no FDEs.
10781         (__register_frame, __deregister_frame_info_bases,
10782         __deregister_frame): Likewise.
10783         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10784         DW_CFA_restore handling.
10786 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
10788         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10790         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10791         for x < 0.25 and restore original range reduction method.
10792         (__ieee754_lgammal_r): Make sure signgam is set before returning.
10794 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
10796         * libio/fileops.c (_IO_file_underflow_mmap): New function.
10797         (_IO_file_close_mmap): New function.
10798         (_IO_file_jumps_mmap): New variable.
10799         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10800         trying to convert rest of byte buffer.
10801         (_IO_wfile_underflow_mmap): New function.
10802         (_IO_wfile_jumps_mmap): New variable.
10803         * libio/iofopen.c (__fopen_maybe_mmap): New function.
10804         (__fopen_internal): New function.  Split out from _IO_new_fopen.
10805         (_IO_new_fopen): Call __fopen_internal.
10806         * libio/iofopen64.c: Just call __fopen_internal.
10807         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10808         successfully.
10809         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10810         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10811         _IO_file_close_mmap.
10813         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10814         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10816         * stdio-common/Makefile (tests): Add tst-rndseek.
10817         * stdio-common/tst-rndseek.c: New file.
10819 2002-01-05  Roland McGrath  <roland@frob.com>
10821         * config.h.in (HAVE_MIG_RETCODE): New #undef.
10822         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10823         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10824         * sysdeps/mach/hurd/configure: Regenerated.
10826 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
10828         * elf/elf.h: Add more TLS definitions.
10830 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
10832         * include/features.h (__GLIBC_MINOR__): Bump to 3.
10834 2002-01-02  Roland McGrath  <roland@frob.com>
10836         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10837         __sigisemptyset.  Don't use MASK uninitialized.
10839         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10840         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10841         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10842         __sigdelset, __sigaddset, __sigorset.
10844         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10845         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10847         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10848         _hurd_ports is null.
10850         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10851         for old CMU and new OSF Mach interface flavors.
10852         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10853         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10855         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10857         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10858         Pass extra arguments to task_create for OSF variant.
10859         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10861         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10862         conditional on [HAVE_AUX_VECTOR].
10864         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10865         mach_msg_timeout_t as type of final argument.
10867         * hurd/privports.c (__get_privileged_ports):
10868         Change host_priv_t to mach_port_t in argument type.
10869         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10870         Update decls.
10872         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10873         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
10874         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10875         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10876         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10877         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10879 2002-01-01  Roland McGrath  <roland@frob.com>
10881         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10883 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
10885         * include/stdlib.h: Define inlines for the _l variants of the strto*
10886         functions.
10888 2002-01-01  Roland McGrath  <roland@frob.com>
10890         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10892         * mach/Machrules (MIG): Set CPP as well as CC.
10894 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
10896         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10897         locale to parse /proc/loadavg [PR libc/2760].
10899 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
10901         * elf/dl-conflict.c: Include sys/param.h.
10902         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10903         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10904         warning.
10905         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10906         literals to avoid warnings.
10908 2001-12-31  Andreas Jaeger  <aj@suse.de>
10910         * configure.in: Don't check for gsed since we do not use it anywhere.
10912 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10914         * io/fts.c: Update from BSD to fix memory leaks.
10916 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10918         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10919         * elf/chroot_canon.c: Likewise.
10920         * elf/dl-object.c: Likewise.
10921         * iconv/iconv_charmap.c: Likewise.
10922         * iconv/iconv_prog.c: Likewise.
10923         * libio/iogetdelim.c: Likewise.
10924         * locale/lc-time.c: Likewise.
10925         * stdlib/canonicalize.c: Likewise.
10926         * sunrpc/svc.c: Likewise.
10927         * sysdeps/generic/glob.c: Likewise.
10929 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10931         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10932         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10933         remove high order bit from the program counter.
10934         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10936 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10938         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10939         unnecessary code and add missing reloc types.
10940         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10941         case for reloc type R_390_NONE.
10943 2001-12-28  Andreas Jaeger  <aj@suse.de>
10945         * io/bug-ftw3.c: Include string.h for prototypes.
10947         * crypt/md5test.c (main): Remove unused variable.
10949         * dlfcn/modstatic.c: Add prototype to avoid warning.
10951 2001-12-26  Roland McGrath  <roland@frob.com>
10953         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10954         check only (SS->pending & MASK) for the signal to return.
10955         From Jeroen Dekkers <jeroen@dekkers.cx>.
10957 2001-12-22  Roland McGrath  <roland@frob.com>
10959         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10960         Use preprocessor #if conditionals instead of `if' to avoid
10961         warnings about divide by zero in dead code.
10963         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10964         _hurd_port_init, and __hurd_self_sigstate.
10966         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10968 2001-12-21  Andreas Jaeger  <aj@suse.de>
10970         * elf/dblloadmod1.c: Add prototype to avoid warning.
10971         * elf/dblloadmod2.c: Likewise.
10972         * elf/dblloadmod3.c: Likewise.
10973         * elf/reldepmod5.c: Likewise.
10974         * elf/reldepmod6.c: Likewise.
10976         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
10977         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
10978         used on all architectures.
10980         * sunrpc/svc_tcp.c: Add noreturn attribute for
10981         svctcp_rendezvous_abort.
10982         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
10984         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
10985         to avoid warning.
10987 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
10989         * manual/llio.texi (aio_fsync): Fix a typo.
10990         Patch by Tammy Fox <tfox@redhat.com>.
10992 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
10994         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
10995         stack bias from child stack pointer before passing it to clone syscall.
10997 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
10999         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
11000         _SC_TZNAME_MAX.
11001         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
11002         Reported by Thorsten Kukuk <kukuk@suse.de>.
11004         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
11005         add some casts.
11007         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
11009 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
11011         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
11012         conforming: return EBADF if file descriptor is invalid and EINVAL
11013         if file descriptor is no valid tty.
11014         * login/tst-grantpt.c: New file.
11015         * login/Makefile (tests): Add tst-grantpt.
11017 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
11019         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
11020         different than implemented in last patch.
11021         * io/bug-ftw3.c: Adjust test for changed handling of
11022         inaccessibility of toplevel dir.
11024 2001-12-16  Roland McGrath  <roland@frob.com>
11026         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
11027         * grp/initgroups.c (internal_getgrouplist): Likewise.
11029         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
11030         `default:' to silence new GCC warning.
11031         Rewrite cast of lvalue to silence new GCC warning.
11033         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
11035         * sysdeps/mach/hurd/spawni.c: New file, by me with a
11036         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
11038 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
11040         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
11041         Patch by Stephen R. van den Berg.
11043         * crypt/md5.h: Define md5_uintptr.
11045 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
11047         * libio/tst_swprintf.c (main): Add test for string argument with
11048         zero precision.
11049         * stdio-common/Makefile (tests): Add tst-sprintf.
11050         * stdio-common/tst-sprintf.c: New file.
11052 2001-12-13  Andreas Schwab  <schwab@suse.de>
11054         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
11055         zero precision with wide character string format.
11057 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
11059         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
11060         but have a user supplied buffer, return the empty buffer, not NULL.
11062 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
11064         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
11065         Patch by Eric Sharkey <sharkey@netrics.com>.
11067         * crypt/md5test.c (main): Add test for multiple calls to
11068         __md5_process_bytes to itererate over input string.
11070 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
11072         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
11073         from __nis_findfastest.  Take timeout value from parameter.
11074         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
11075         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
11076         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
11078 2001-12-12  Andreas Jaeger  <aj@suse.de>
11080         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
11081         combreloc test so that it works in this case.
11083         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
11085 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
11087         * sysdeps/sh/Makefile: New file.
11088         * sysdeps/sh/_mcount.S: New file.
11089         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
11090         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
11092 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
11094         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
11095         limitation [PR libc/2564].
11097 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
11099         * elf/Makefile (dl-routines): Add conflict.
11100         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
11101         (ld.so): Add _begin local symbol.
11102         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
11103         Define.
11104         * elf/dl-deps.c (_dl_build_local_scope): New function.
11105         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
11106         of all libraries.
11107         * elf/do-rel.h (VALIDX): Define.
11108         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
11109         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
11110         can be skipped.
11111         * elf/dl-conflict.c: New file.
11112         * elf/dl-lookup.c (_dl_debug_bindings): New function.
11113         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
11114         non-NULL.
11115         (_dl_lookup_symbol_skip): Likewise.
11116         (_dl_lookup_versioned_symbol): Likewise.
11117         (_dl_lookup_versioned_symbol_skip): Likewise.
11118         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
11119         define to ElfW(Rel).
11120         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
11121         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
11122         ranges.
11123         Don't adjust address dynamic tags if l_addr is 0.
11124         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
11125         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
11126         (VALIDX, ADDRIDX): Define.
11127         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
11128         (dl_main): Print library list for LD_TRACE_PRELINKING.
11129         If prelinking information can be used, skip relocating libraries and
11130         call _dl_resolve_conflicts instead.
11131         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
11132         * elf/dl-load.c (_dl_map_object): Don't create fake libs
11133         if LD_TRACE_PRELINKING.
11134         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
11135         + DT_ADDRNUM.
11136         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
11137         (DL_DEBUG_PRELINK): Define.
11138         (_dl_resolve_conflicts): Add prototype.
11140         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
11141         .plt for prelinked libraries where prelinking info cannot be used.
11142         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
11143         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
11144         * sysdeps/arm/bits/link.h: New file.
11145         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
11146         content of .got[1].
11147         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
11148         (ELF_MACHINE_PLT_REL): Define.
11149         (elf_machine_rela, elf_machine_rela_relative): New functions.
11150         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
11151         of adjusting it if prelinked and prelinking cannot be used.
11152         * sysdeps/i386/bits/link.h: New file.
11153         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
11154         content of .got[1].
11155         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
11156         (ELF_MACHINE_PLT_REL): Define.
11157         (elf_machine_rela, elf_machine_rela_relative): New functions.
11158         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
11159         of adjusting it if prelinked and prelinking cannot be used.
11160         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
11161         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
11162         to find out map for R_PPC_JMP_SLOT relocs.
11163         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
11164         (OPCODE_BA): Define.
11165         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
11166         libraries where prelinking info cannot be used.
11167         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
11168         (elf_machine_fixup_plt): Call sparc_fixup_plt.
11169         (elf_machine_rela): Set value to 0 if relocating conflicts.
11170         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
11171         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
11172         (sparc64_fixup_plt): Fix a typo.
11173         (elf_machine_rela): Set value to 0 if relocating conflicts.
11174         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
11175         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
11176         libraries where prelinking info cannot be used.
11177         * sysdeps/sh/bits/link.h: New file.
11178         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
11179         content of .got[1].
11180         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
11181         of adjusting it if prelinked and prelinking cannot be used.
11182         * sysdeps/s390/s390-32/bits/link.h: New file.
11183         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
11184         Save original content of .got[1].
11185         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
11186         of adjusting it if prelinked and prelinking cannot be used.
11187         * sysdeps/s390/s390-64/bits/link.h: New file.
11188         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
11189         Save original content of .got[1].
11190         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
11191         of adjusting it if prelinked and prelinking cannot be used.
11192         * sysdeps/x86_64/bits/link.h: New file.
11193         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
11194         Save original content of .got[1].
11195         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
11196         of adjusting it if prelinked and prelinking cannot be used.
11198 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
11200         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
11201         where appropriate instead of numbers.  Little optimizations.
11203 2001-12-10  Roland McGrath  <roland@frob.com>
11205         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
11206         set it.
11208         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
11209         set to GLIBC_2.2.5, not GLIBC_2.2.4.
11211         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
11212         Fix conditionals so this is set by default for stdio and not for libio.
11213         * sysdeps/mach/hurd/configure: Regenerated.
11215 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
11217         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
11219 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
11221         * io/Makefile (tests): Add bug-ftw3.
11222         * io/bug-ftw3.c: New file.
11224         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
11225         matches and GLOB_NOCHECK is set.
11226         * posix/globtest.sh: Correct expected result for NOCHECK test.
11228         * po/ca.po: Update from translation team.
11230 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
11232         Implement transliteration of characters in strings of the locale
11233         definitions.
11234         * locale/programs/linereader.c: Adjust for additional parameter to
11235         lr_token.
11236         (get_string): If character <Uxxxx> is not found try to transliterate
11237         it.
11238         * locale/programs/ld-ctype.c: Adjust for additional parameter to
11239         lr_token.  Add const to charmap parameter of all functions.
11240         (find_translit, find_translit2): New functions.
11241         * locale/programs/charmap.c: Adjust for additional parameter to
11242         lr_token.
11243         * locale/programs/repertoire.c: Likewise.
11244         * locale/programs/linereader.h: Likewise.
11245         * locale/programs/ld-address.c: Likewise.  Add const to charmap
11246         parameter of all functions.
11247         * locale/programs/ld-collate.c: Likewise.
11248         * locale/programs/ld-identification.c: Likewise.
11249         * locale/programs/ld-measurement.c: Likewise.
11250         * locale/programs/ld-messages.c: Likewise.
11251         * locale/programs/ld-monetary.c: Likewise.
11252         * locale/programs/ld-name.c: Likewise.
11253         * locale/programs/ld-numeric.c: Likewise.
11254         * locale/programs/ld-paper.c: Likewise.
11255         * locale/programs/ld-paper.c: Likewise.
11256         * locale/programs/ld-telephone.c: Likewise.
11257         * locale/programs/ld-time.c: Likewise.
11258         * locale/programs/locfile.c: Likewise.
11259         * locale/programs/localedef.c: Likewise.
11260         * locale/programs/localedef.h: Likewise.
11261         * locale/programs/locfile.h: Likewise.  Add declaration for
11262         find_translit.
11263         * locale/programs/simple-hash.c: Add const to first parameter of
11264         find_entry, iterate_table, and lookup.
11265         * locale/programs/simple-hash.h: Likewise.
11266         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
11267         instead.
11268         * include/locale.h: Define __LC_LAST.
11269         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
11271 2001-12-07  Geoff Keating  <geoffk@redhat.com>
11273         * sysdeps/powerpc/Dist: Update for recent FP changes.
11274         * sysdeps/powerpc/fpu/Dist: Likewise.
11276 2001-12-07  Andreas Schwab  <schwab@suse.de>
11278         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
11280 2001-12-06  Geoff Keating  <geoffk@redhat.com>
11282         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
11283         save/restore functions here.
11284         (libm-support): Don't define these functions here.
11285         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
11286         functions here.
11287         * sysdeps/powerpc/fe_nomask.c: Move to...
11288         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
11289         * sysdeps/powerpc/fprrest.S: Move to...
11290         * sysdeps/powerpc/fpu/fprrest.S: ... here.
11291         * sysdeps/powerpc/fprsave.S: Move to...
11292         * sysdeps/powerpc/fpu/fprsave.S: ... here.
11294 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
11296         * sysdeps/unix/sysv/linux/opensock.c: New file.
11298 2001-12-06  Geoff Keating  <geoffk@redhat.com>
11300         * config.make.in (with-fp): Define from configure.
11301         * configure.in: Substitute with_fp.
11302         * configure: Regenerate.
11303         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
11304         specified, and don't change FPU environment.
11306 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
11308         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
11309         * assert/assert.c: Check result of __asprintf call and don't use
11310         string if it failed.
11311         * assert/assert-perr.c: Likewise.
11312         * inet/rcmd.c: Likewise.
11313         * locale/programs/localedef.c (main): Check result of
11314         construct_output_path and exit if it failed.
11315         (construct_output_path): Check result of asprintf and mkdir calls and
11316         fail if they failed.
11317         * posix/getopt.c: Check result of __asprintf calls and fail if
11318         they failed.
11319         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
11321 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11323         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
11324         patch.
11325         * sysdeps/generic/strncase.c: Likewise.
11326         * string/tester.c: Add tests for strcasecmp and strncasecmp.
11328 2001-12-05  Geoff Keating  <geoffk@redhat.com>
11330         * scripts/cpp: Test the exit status from 'type', not 'awk'.
11332         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
11333         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
11334         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
11335         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
11336         * sysdeps/powerpc/fclrexcpt.c: Move to...
11337         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
11338         * sysdeps/powerpc/fpu_control.h: Move to...
11339         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
11341 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11343         * iconvdata/ibm1129.h: Remove duplicate mappings.
11344         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
11345         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
11346         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11348         * timezone/zic.c: Fix handling of turnaround times.
11349         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
11351 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
11353         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
11354         overflow problem.
11356 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11358         * posix/regex.c: For use outside glibc defined bounded pointer
11359         macros here.  Patch by Jim Meyering <jim@meyering.net>.
11361         * iconvdata/Makefile (modules): Add TCVN5712-1.
11362         * iconvdata/TESTS: Add TCVN5712-1.
11363         * iconvdata/gconv-modules: Likewise.
11364         * iconvdata/tcvn5712-1.c: New file.
11365         * iconvdata/testdata/TCVN-5712: New file.
11366         * iconvdata/testdata/TCVN-5712..UTF8: New file.
11368 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
11370         * iconvdata/cp1258.c: Optimize conversion from UCS4.
11372 2001-12-02  Roland McGrath  <roland@frob.com>
11374         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
11376         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
11377         Reported by Jeff Bailey <jbailey@nisa.net>.
11379         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
11380         Reported by Jeff Bailey <jbailey@nisa.net>.
11382         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
11383         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
11384         Reported by Jeff Bailey <jbailey@nisa.net>.
11386 2001-12-01  Roland McGrath  <roland@frob.com>
11388         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
11389         missing backslash in test arguments.
11390         * sysdeps/mach/hurd/configure: Regenerated.
11392 2001-11-26  Roland McGrath  <roland@frob.com>
11394         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
11395         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
11397 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
11399         * iconvdata/Makefile (modules): Add ARMSCII-8.
11400         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
11401         * iconvdata/armscii-8.c: New file.
11403 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
11405         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
11406         don't match, fix {{a,b},c} globbing, clean up.
11407         Patch by Flavio Veloso <flaviovs@magnux.com>.
11408         * posix/globtest.sh: Add new tests.
11410 2001-11-29  Andreas Jaeger  <aj@suse.de>
11412         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
11413         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
11415         * sysdeps/generic/abort.c: Include libioP.h for
11416         _IO_flush_all_lockp prototype.
11418 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
11420         * posix/regex.h: Define __restrict_arr correctly.
11422 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11424         * iconvdata/ibm1163.c: New file.
11425         * iconvdata/ibm1163.h: New file.
11426         * iconvdata/ibm1164.c: New file.
11427         * iconvdata/ibm1164.h: New file.
11428         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
11429         * iconvdata/Makefile: Likewise.
11430         * iconvdata/testdata/IBM1163: New file.
11431         * iconvdata/testdata/IBM1163..UTF8: New file.
11432         * iconvdata/testdata/IBM1164: New file.
11433         * iconvdata/testdata/IBM1164..UTF8: New file.
11434         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11436         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
11437         * iconvdata/ibm1124.h: Likewise.
11438         * iconvdata/ibm1132.h: Likewise.
11439         * iconvdata/ibm1133.h: Likewise.
11440         * iconvdata/ibm1160.h: Likewise.
11441         * iconvdata/ibm1161.h: Likewise.
11442         * iconvdata/ibm1162.h: Likewise.
11443         * iconvdata/ibm856.h: Likewise.
11444         * iconvdata/ibm922.h: Likewise.
11445         * iconvdata/ibm930.h: Likewise.
11446         * iconvdata/ibm932.h: Likewise.
11447         * iconvdata/ibm933.h: Likewise.
11448         * iconvdata/ibm935.h: Likewise.
11449         * iconvdata/ibm937.h: Likewise.
11450         * iconvdata/ibm939.h: Likewise.
11451         * iconvdata/ibm943.h: Likewise.
11452         * iconvdata/ibm930.c: Pretty printing.
11453         * iconvdata/ibm937.c: Avoid access accross array boundary.
11455         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
11456         the current locale's codeset.
11457         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
11458         empty input string.
11459         * iconv/iconv_prog.c: Pass empty strings as default value for to-
11460         and from-charset.  Don't determine locale's charset here.
11462         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
11463         as the old _IO_flush_all but lock only if parameter is nonzero.
11464         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
11465         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
11466         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
11467         if libio is used [PR libc/2575].
11469 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
11471         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
11472         __signbitl): Only define for ISO C99.
11474 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11476         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
11477         herrnop to NETDB_INTERNAL if we run out of buffer space.
11479 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11481         * nss/nss_files/files-XXX.c (internal_getent): Correct input
11482         overflow test for platforms with signed char.
11483         Reported by Andrew Haley <aph@cambridge.redhat.com>.
11485 2001-11-28  Bruno Haible  <bruno@clisp.org>
11487         * locale/programs/simple-hash.c (lookup_2): Remove function.
11488         (insert_entry_2): Call lookup instead of lookup_2.
11490 2001-03-04  Bruno Haible  <bruno@clisp.org>
11492         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
11494 2001-10-31  Bruno Haible  <bruno@clisp.org>
11496         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
11498 2001-03-21  Bruno Haible  <bruno@clisp.org>
11500         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
11501         chokes on empty macro arguments.
11502         * intl/plural.y: Add #pragma for alloca on AIX 3.
11504 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11506         * intl/dcigettext.c (guess_category_value): Only implement for
11507         glibc.  Otherwise rely on function _nl_locale_name which isn't
11508         present in the glibc sources.
11510 2001-09-24  Bruno Haible  <bruno@clisp.org>
11512         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
11513         transliteration when building on a glibc system but outside glibc.
11515 2001-09-22  Bruno Haible  <bruno@clisp.org>
11517         * intl/plural-eval.c: New file, extracted from dcigettext.c.
11518         * intl/dcigettext.c (plural_eval): Remove function, moved to
11519         intl/plural-eval.c.
11520         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
11521         Include plural-eval.c.
11523 2001-09-22  Bruno Haible  <bruno@clisp.org>
11525         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
11526         don't start with a digit; nplurals must be positive.
11528 2001-09-02  Bruno Haible  <bruno@clisp.org>
11530         * intl/plural-exp.h: New file, extracted from gettextP.h.
11531         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
11532         * intl/gettextP.h (struct expression, struct parse_args,
11533         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
11534         * intl/loadmsgcat.c: Include plural-exp.h.
11535         (PLURAL_PARSE): Move macro to plural-exp.h.
11536         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
11537         plural-exp.c.
11538         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
11539         EXTRACT_PLURAL_EXPRESSION.
11540         (_nl_unload_domain): Update.
11541         * intl/dcigettext.c: Include plural-exp.h.
11542         * intl/plural.y: Include plural-exp.h, not gettextP.h.
11543         (FREE_EXPRESSION): Move macro to plural-exp.h.
11544         * intl/Makefile (routines): Add plural-exp.
11545         (distribute): Add plural-exp.h.
11547 2001-07-28  Bruno Haible  <bruno@clisp.org>
11549         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
11550         isdigit, tolower argument to 'unsigned char'.
11551         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
11552         'unsigned char'.
11553         * intl/localealias.c (read_alias_file): Cast isspace argument to
11554         'unsigned char'.
11556 2001-10-20  Bruno Haible  <bruno@clisp.org>
11558         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
11559         anyway.)
11560         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
11561         with the variable 'index' in plural_lookup.
11562         * intl/l10nflist.c (strchr): Likewise.
11563         * intl/localealias.c (strchr): Likewise.
11565         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11566         * intl/bindtextdom.c: Likewise.
11567         * intl/dcigettext.c: Likewise.
11568         * intl/dgettext.c: Likewise.
11569         * intl/dngettext.c: Likewise.
11570         * intl/explodename.c: Likewise.
11571         * intl/finddomain.c: Likewise.
11572         * intl/gettext.c: Likewise.
11573         * intl/l10nflist.c: Likewise.
11574         * intl/loadmsgcat.c: Likewise.
11575         * intl/localealias.c: Likewise.
11576         * intl/ngettext.c: Likewise.
11577         * intl/textdomain.c: Likewise.
11578         * intl/gettext.h: Assume <limits.h> exists.
11580 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11582         * stdio-common/Makefile (tests): Add scanf11.
11583         * stdio-common/scanf11.c: New file.
11585 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11587         * version.h (RELEASE): Define as development.
11588         (VERSION): Set to 2.2.90.
11590 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11592         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11593         * nis/nss_nis/nis-grp.c: Likewise.
11594         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11596         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11597         * nis/nss_nis/nis-pwd.c: Likewise.
11598         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11600         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11601         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11602         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11604         * nscd/grpcache.c: Use strtoul instead of atol.
11605         * nscd/pwdcache.c: Likewise.
11606         * nss/getent.c: Likewise.
11608 2001-11-27  Paul Eggert  <eggert@twinsun.com>
11610         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11611         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11613 2001-11-19  Bruno Haible  <bruno@clisp.org>
11615         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11616         90%.
11617         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11618         improves the quality of the hash function, especially for short
11619         strings.
11621 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11623         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11624         are found call conv_error and not input_error [PR libc/2669].
11626         * math/bits/mathcalls.h: Mark ceil and floor as const.
11627         Reported by David Mosberger.
11629 2001-11-21  Jim Meyering  <meyering@lucent.com>
11631         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11632         Define to be __-prefixed.
11633         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11635 2001-11-26  Andreas Jaeger  <aj@suse.de>
11637         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11638         avoid warning.
11640 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
11642         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11643         initialization.
11645         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11646         unused variables.  Fix threshold for returning 1.0.
11648         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11649         argument.
11651         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11652         remove unused variables.
11654         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11656         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11657         include local math header files.
11659 2001-11-22  Andreas Jaeger  <aj@suse.de>
11661         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11662         avoid warning.
11664 2001-11-21  Andreas Jaeger  <aj@suse.de>
11666         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11668         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11669         sys/debugreg.h
11671 2001-11-15  Andreas Jaeger  <aj@suse.de>
11673         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11674         compilers that support it.
11676         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11677         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11678         * stdlib/stdlib.h: Likewise.
11680 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
11682         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11683         statement with gotos.
11684         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11686 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
11688         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11690 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
11692         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11694 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
11695             H.J. Lu  <hjl@gnu.org>
11697         * Versions.def (libc): Add GCC_3.0.
11698         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11699         if gcc supports this flag.
11700         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11701         (gcc3): Allow glibc to be compiled with gcc 3.x.
11702         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11703         * config.make.in (static-libgcc, unwind-find-fde): Add.
11704         * Makerules (build-shlib-helper, build-module-helper): Use it.
11705         * scripts/versions.awk: Make sure GLIBC_ versions come first.
11706         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11707         necessary.
11708         (_fini): Call __deregister_frame_info_bases if
11709         __register_frame_info_bases was used to register.
11710         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11711         for GLIBC_2.0.
11712         (__register_frame_info_bases, __register_frame_info_table_bases,
11713         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11714         * elf/Makefile (routines): Add unwind-dw2-fde.
11715         (shared-only-routines): Add unwind-dw2-fde.
11716         * sysdeps/alpha/gccframe.h: New file.
11717         * sysdeps/arm/gccframe.h: New file.
11718         * sysdeps/generic/framestate.c: New file.
11719         * sysdeps/generic/dwarf2.h: New file.
11720         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11721         * sysdeps/generic/unwind-dw2-fde.c: New file.
11722         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11723         * sysdeps/generic/unwind-dw2-fde.h: New file.
11724         * sysdeps/generic/unwind-dw2.c: New file.
11725         * sysdeps/generic/unwind-pe.h: New file.
11726         * sysdeps/generic/unwind.h: New file.
11727         * sysdeps/hppa/gccframe.h: New file.
11728         * sysdeps/i386/gccframe.h: New file.
11729         * sysdeps/m68k/gccframe.h: New file.
11730         * sysdeps/mips/gccframe.h: New file.
11731         * sysdeps/powerpc/gccframe.h: New file.
11732         * sysdeps/s390/gccframe.h: New file.
11733         * sysdeps/sh/gccframe.h: New file.
11734         * sysdeps/sparc/gccframe.h: New file.
11735         * sysdeps/vax/gccframe.h: New file.
11736         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11737         Set on all architectures except ia64.
11738         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11739         for i386.
11740         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11741         __deregister_frame_info): Move to elf/Versions.
11742         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11743         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11744         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11745         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11746         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11747         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11748         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11749         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11750         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11751         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11752         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11753         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11754         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11755         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11756         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11757         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11758         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11759         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11761 2001-11-15  Jeff Law  <law@redhat.com>
11763         * posix/regex.c (uintptr_t): Do not provide a definition if the
11764         system provided one.
11766 2001-11-13  Roland McGrath  <roland@frob.com>
11768         * stdio-common/tmpfile.c: Moved to ...
11769         * sysdeps/generic/tmpfile.c: ... here.
11770         * sysdeps/mach/hurd/tmpfile.c: New file.
11772         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11773         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11774         (fopenport): Define as weak alias.
11776         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11777         * libio/libioP.h: ... to here.
11779 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
11781         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11782         program header twice.  Construct list with the needed information.
11784 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
11786         * po/ca.po: Update from translation team.
11788         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11789         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
11790         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11791         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11793 2001-11-10  Andreas Jaeger  <aj@suse.de>
11795         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11796         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11797         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11799 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11801         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11802         correctly.
11803         * elf/dl-load.c (is_dst): New function.
11804         (_dl_dst_count): Use is_dst to check for DST variable.
11805         (_dl_dst_substitute): Likewise.
11807 2001-11-09  Roland McGrath  <roland@frob.com>
11809         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11810         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11811         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11812         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11813         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11814         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11815         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11816         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11817         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11818         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11819         * sysdeps/mach/hurd/powerpc/Dist: New file.
11821         * hurd/privports.c (__get_privileged_ports):
11822         Only contact the proc server if necessary for this call.
11823         Suggested by Neal H Walfield <neal@cs.uml.edu>.
11824         Check error return for mach_port_mod_refs.
11826 2001-11-09  Andreas Schwab  <schwab@suse.de>
11828         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11830 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11832         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
11833         object is always the last in the list.
11834         (_dl_map_object_from_fd): Delete code to remove from object list
11835         when DF_1_NOOPEN is seen.  This is done in lose.
11837 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
11839         * elf/dl-object.c (_dl_new_object): Various small optimizations.
11841 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
11843         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11844         HWCAP_CHECK macro code.
11846         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11847         Now returns MAP_FAILED on error.
11848         * elf/rtld.c: Adjust caller.
11849         * sysdeps/generic/dl-cache.c: Likewise.
11850         * sysdeps/generic/ldsodefs.h: Adjust description.
11852         * elf/dl-version.c (match_symbol): Optimize error handling for size.
11853         (_dl_check_map_versions): Likewise.
11855 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11857         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11858         _dl_signal_error directly, always use lose.  Set fd to -1 after
11859         file is closed.
11860         (lose): Don't call close if fd == -1.
11862 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
11864         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
11865          Also fix typo @code {mbsinit} to @code{mbsinit}.
11867 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11869         * elf/dl-profile.c: Replace state variable with simple flag named
11870         running.  Remove commented-out code.
11872         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11873         (_dl_init_paths): Likewise.
11874         (_dl_map_object_from_fd): Likewise.
11875         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11877 2001-11-06  Roland McGrath  <roland@frob.com>
11879         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11880         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11882         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11883         sysdeps/powerpc/elf/sysdep.h.
11884         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11886 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11888         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
11889         speed.
11890         (process_envvars): Some more optimizations.
11891         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11893         * elf/elf.h: Add dynamic tag definitions for prelinking.
11895         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11896         Rewrite code to remove environment varables for SUID binaries.
11897         Small optimization in LD_PROFILE handling.
11898         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11899         changes.
11900         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11902         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11904         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11905         strings.  Change type of second parameter.
11906         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11907         for last change.
11909         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11911 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11913         * manual/string.texi: Fix typos.
11914         * manual/examples/argp-ex2.c: Likewise.
11916 2001-11-05  Roland McGrath  <roland@frob.com>
11918         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11919         the more-specific unix/sysv/linux/powerpc file and breaks everything.
11920         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11921         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11922         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11923         here, put under [__ELF__].
11925 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11927         * manual/charset.texi: Extensive editing work.
11928         * manual/nss.texi: Likewise.
11929         Changes by Dennis Grace <dgrace@us.ibm.com>.
11931 2001-11-04  Roland McGrath  <roland@frob.com>
11933         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11934         parameter to dir_mkfile.
11936 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
11938         * string/bits/string2.h (__strndup): If n is smaller than len, set
11939         len to n + 1.
11940         * string/tester.c (test_strndup): New function.
11941         (main): Call it.
11943 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
11945         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11947         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11948         * scripts/cpp: New file.
11950         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11951         for rtld_search_dirs content.  Minor optimizations.
11953 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11955         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11956         avoiding unnecessary duplication.
11958 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
11960         * elf/dl-load.c (_dl_map_object): If library was found using
11961         LD_LIBRARY_PATH, don't try RUNPATH list.
11963 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11965         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11966         Correct second argument of register_dump call.
11967         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11968         Likewise.
11970 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11972         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11973         modules.
11974         * iconvdata/TESTS: Likewise.
11975         * iconvdata/gconv-modules: Likewise.
11976         * iconvdata/ibm1132.c: New file.
11977         * iconvdata/ibm1132.h: New file.
11978         * iconvdata/ibm1133.c: New file.
11979         * iconvdata/ibm1133.h: New file.
11980         * iconvdata/ibm1162.c: New file.
11981         * iconvdata/ibm1162.h: New file.
11982         * iconvdata/testdata/IBM1132: New file.
11983         * iconvdata/testdata/IBM1132..UTF8: New file.
11984         * iconvdata/testdata/IBM1133: New file.
11985         * iconvdata/testdata/IBM1133..UTF8: New file.
11986         * iconvdata/testdata/IBM1162: New file.
11987         * iconvdata/testdata/IBM1162..UTF8: New file.
11988         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
11990         * string/string.h: Fix typo in comment.
11991         * wcsmbs/wchar.h: Likewise.
11993 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
11995         * manual/getopt.texi (getopt_long, getopt_long_only): Include
11996         const in type of longopts parameter.
11998 2001-10-29  Andreas Jaeger  <aj@suse.de>
12000         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
12002 2001-10-29  Kevin Ryde  <user42@zip.com.au>
12004         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
12005         output, clarify `#' behaviour on 0.
12006         (Floating-Point Conversions): Clarify that %g only uses %e when
12007         the exponent would be greater than 1.
12009 2001-10-28  Roland McGrath  <roland@frob.com>
12011         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
12012         * sysdeps/mach/powerpc/machine-sp.h: New file.
12013         * sysdeps/mach/powerpc/sysdep.h: New file.
12014         * sysdeps/mach/powerpc/thread_state.h: New file.
12016         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
12017         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
12018         expect to need the same thing on every platform.
12020         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
12021         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
12023         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
12024         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
12025         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
12026         Move all these assembly-related definitions to ...
12027         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
12029         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
12030         by Peter Bruin <pjbruin@dds.nl>.
12032         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
12033         packing results for a `poll' call.
12035 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
12037         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
12038         correctly.
12039         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
12040         bracket expression.
12042         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12043         nrules value.
12044         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
12046 2001-10-24  H.J. Lu  <hjl@gnu.org>
12048         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
12049         Use __BEGIN_DECLS/__END_DECLS around prototypes.
12050         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
12052 2001-10-21  Jim Meyering  <meyering@lucent.com>
12054         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
12055         this code would end up calling gettext even in packages built
12056         with --disable-nls.
12057         * posix/getopt.c (_): Likewise.
12058         * posix/regex.c (_): Likewise.
12060 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
12062         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
12063         lookup not ip6.int.
12064         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
12065         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
12067 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
12069         * misc/sys/cdefs.h (__attribute_used__): Define.
12070         * elf/rtld.c (_dl_start): Add __attribute_used__.
12071         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
12073 2001-10-25  Andreas Schwab  <schwab@suse.de>
12075         * stdlib/a64l.c: Expect least significant digit first.
12076         * stdlib/l64a.c: Produce least significant digit first.
12077         * stdlib/Makefile (tests): Add test-a64l.
12078         * stdlib/test-a64l.c: New file.
12079         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
12081 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
12083         * po/sk.po: Update from translation team.
12085 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
12087         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
12089 2001-10-18  Andreas Schwab  <schwab@suse.de>
12091         * math/libm-test.inc (print_ulps): Print ulp values rounded to
12092         next whole number.
12093         (print_function_ulps): Likewise.
12094         (print_complex_function_ulps): Likewise.
12095         (print_max_error): Likewise.
12096         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
12098 2001-10-16  Andreas Schwab  <schwab@suse.de>
12100         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
12101         implementation.
12103         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
12104         BSD_SETJMP or BSD__SETJMP is defined, resp.
12105         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
12106         a tail call to __sigsetjmp that would require extending the
12107         caller's frame.
12108         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
12109         * sysdeps/m68k/bsd-setjmp.S: Deleted.
12110         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
12111         Reported by Jes Sorensen <jes@trained-monkey.org>.
12113 2001-10-16  Andreas Jaeger  <aj@suse.de>
12115         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
12116         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
12117         close PR libc/2589.
12119 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
12121         * po/ca.po: New file.  Contributed by the translation team.
12123 2001-10-15  Ralf Baechle  <ralf@gnu.org>
12125         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
12126         a varargs prototype.  Remove dependency from kernel header files.
12128         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
12129         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
12131 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
12133         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
12134         to generate hexadecimal identifier.
12135         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
12137 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
12139         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
12141 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
12143         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
12144         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
12145         Contributed by Stephen L Moshier <moshier@mediaone.net>.
12147         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
12148         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12149         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
12150         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
12151         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
12152         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
12154         * timezone/africa: Update from tzdata2001d.
12155         * timezone/asia: Likewise.
12156         * timezone/australasia: Likewise.
12157         * timezone/backward: Likewise.
12158         * timezone/europe: Likewise.
12159         * timezone/leapseconds: Likewise.
12160         * timezone/northamerica: Likewise.
12161         * timezone/southamerica: Likewise.
12162         * timezone/zone.tab: Likewise.
12164 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12166         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
12167         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
12169 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
12171         * elf/elf.h (PT_TLS): New definition.
12173 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
12175         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
12176         bits/errno.h
12178 2001-10-07  Roland McGrath  <roland@frob.com>
12180         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
12182 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
12184         * elf/elf.h: Add more ELFOSABI_* constants.
12186 2001-10-04  Ben Collins  <bcollins@debian.org>
12188         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
12189         decleration of __need_wchar_t.
12191 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
12193         * string/bits/string2.h (__strsep_g): Add prototype.
12194         (__strsep): Use it.
12195         * string/Versions (__strsep): Remove.
12196         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
12198 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
12200         * manua/llio.texi: Clarify file references added by mmap.
12201         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
12203 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
12205         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
12206         Add sc_loadrs and sc_rbs_bas to match current kernel.
12208 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
12210         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
12212         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
12214 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
12216         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
12217         object has been bumped because of relocation dependency, avoid
12218         duplicates in l_scope.
12219         (show_scope): Fix typos.
12220         * elf/Makefile: Add rules to build and run reldep6.
12221         * elf/reldep6.c: New file.
12222         * elf/reldep6mod0.c: New file.
12223         * elf/reldep6mod1.c: New file.
12224         * elf/reldep6mod2.c: New file.
12225         * elf/reldep6mod3.c: New file.
12226         * elf/reldep6mod4.c: New file.
12228 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
12230         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
12231         sparc64_fixup_plt.
12232         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
12233         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
12234         for non-lazy binding. Fix .plt[32768+] handling.
12235         (elf_machine_plt_value): Don't add addend.
12236         (elf_machine_rela): Call sparc64_fixup_plt instead of
12237         elf_machine_fixup_plt.
12238         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
12239         dynamic linker at 0xfffff800XXXXXXXX.
12241         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
12243 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
12245         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
12247 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
12249         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
12250         declare __cmsg_data field if its size would be bigger than 0.
12251         (CMSG_DATA): Adjust accordingly.
12252         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
12253         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
12254         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
12255         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
12256         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12257         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
12258         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12260 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
12262         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
12263         * iconvdata/testdata/IBM1160: New file.
12264         * iconvdata/testdata/IBM1160..UTF8: New file.
12265         * iconvdata/testdata/IBM1161: New file.
12266         * iconvdata/testdata/IBM1161..UTF8: New file.
12267         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
12269 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
12271         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
12272         UL_SETFSIZE computations better.
12274         * rt/Makefile: Remove use of filter for librt again.
12276         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
12277         UL_SETFSIZE computations better.
12279         * string/Versions: Export __strsep for GLIBC_2.2.5.
12280         * string/bits/string2.h: Define all __STRING_INLINE functions if
12281         _FORCE_INLINES is defined.
12282         Use int instead of char of parameter types.
12283         (__strsep): Don't use __strsep_g.  Don't define it.
12284         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
12285         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
12286         __strcpy_small.
12287         (__stpcpy_a_small): Renamed from __stpcpy_small.
12288         (__strcspn_c1): Don't define if _FORCE_INLINES.
12289         (__strspn_c1): Likewise.
12291 2001-09-22  Ben Collins  <bcollins@debian.org>
12293         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
12294         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
12295         * sysdeps/ia64/bits/sigaction.h: Likewise.
12296         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
12298 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
12300         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
12302 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
12304         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
12306 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
12308         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
12310 2001-09-20  H.J. Lu  <hjl@gnu.org>
12312         * include/dlfcn.h (__RTLD_SPROF): New definiton.
12313         * elf/dl-open.c (dl_open_worker): Return immediately after loading
12314         for __RTLD_SPROF.
12315         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
12316         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
12318 2001-09-20  H.J. Lu  <hjl@gnu.org>
12320         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
12321         don't add 1.
12323 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
12325         * nss/getent.c: Accept -s parameter to overwrite rules in
12326         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
12328         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
12329         with as many ".0" as necessary to form a complete address
12330         inet_network understands.
12332         * nss/getent.c: Various cleanups.  Use simpler and fewer function
12333         calls.
12335 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12337         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
12338         _JMPBUF_UNWINDS.
12339         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
12341 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
12343         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
12344         IBM1161.
12345         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
12346         * iconvdata/ibm1160.c: New file.
12347         * iconvdata/ibm1160.h: New file.
12348         * iconvdata/ibm1161.c: New file.
12349         * iconvdata/ibm1161.h: New file.
12350         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
12352 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
12354         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
12355         difference between base address and first PT_LOAD's virtual address,
12356         not the base address.
12358 2001-09-11  Tom Rix  <trix@redhat.com>
12360         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
12361         ifdef for __getopt_clean_environment.
12362         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
12364 2001-09-22  Andreas Jaeger  <aj@suse.de>
12366         * elf/reldep4.c (main): Add proper prototype to fix warning.
12368         * elf/reldep5.c (main): Remove unused variable.
12370         * math/math_private.h: Add prototypes.
12372 2001-09-21  Andreas Jaeger  <aj@suse.de>
12374         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
12375         * sysdeps/x86_64/Dist: New file.
12376         * sysdeps/x86_64/soft-fp/Dist: New file.
12378         * sysdeps/gnu/Dist: Remove eval.c.
12380 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
12382         * malloc/memusage.c (realloc): Don't count already allocated
12383         memory in the sums.
12384         (me): Always use dlsym() to find the real implementations.
12386         * malloc/memusage.sh: Make -n option actually do something.
12388 2001-09-20  Andreas Jaeger  <aj@suse.de>
12390         * elf/elf.h (R_390_NUM): Correct value.
12392         * Versions.def: Add missing versions 2.2.3 for libthread_db and
12393         libpthread.
12395         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
12396         for x86-64, install x86-64 into */lib64.
12398         * shlib-versions: Add x86-64.
12400         * elf/elf.h: Add x86-64 relocations.
12402 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
12404         * po/fr.po: Update from translation team.
12406 2001-09-19  Andreas Jaeger  <aj@suse.de>
12408         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
12409         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
12410         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
12411         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
12412         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
12413         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
12414         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
12415         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
12416         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
12417         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
12418         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
12419         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
12420         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
12421         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
12422         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
12423         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
12424         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
12425         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
12426         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
12427         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
12428         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
12429         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
12430         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
12431         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
12432         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
12433         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
12434         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
12435         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
12436         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
12437         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
12438         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
12439         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
12440         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
12441         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
12442         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
12443         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
12444         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
12445         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
12446         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
12447         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
12448         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
12449         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
12450         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
12451         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
12452         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
12453         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
12454         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
12455         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
12456         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
12457         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
12458         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
12459         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
12460         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
12461         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
12462         * sysdeps/unix/x86_64/sysdep.S: New file.
12463         * sysdeps/unix/x86_64/sysdep.h: New file.
12464         * sysdeps/x86_64/Implies: New file.
12465         * sysdeps/x86_64/Makefile: New file.
12466         * sysdeps/x86_64/Versions: New file.
12467         * sysdeps/x86_64/__longjmp.S: New file.
12468         * sysdeps/x86_64/abort-instr.h: New file.
12469         * sysdeps/x86_64/atomicity.h: New file.
12470         * sysdeps/x86_64/bits/endian.h: New file.
12471         * sysdeps/x86_64/bits/setjmp.h: New file.
12472         * sysdeps/x86_64/bits/string.h: New file.
12473         * sysdeps/x86_64/bp-asm.h: New file.
12474         * sysdeps/x86_64/bsd-_setjmp.S: New file.
12475         * sysdeps/x86_64/bsd-setjmp.S: New file.
12476         * sysdeps/x86_64/dl-machine.h: New file.
12477         * sysdeps/x86_64/elf/initfini.c: New file.
12478         * sysdeps/x86_64/elf/start.S: New file.
12479         * sysdeps/x86_64/ffs.c: New file.
12480         * sysdeps/x86_64/ffsll.c: New file.
12481         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
12482         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
12483         * sysdeps/x86_64/fpu/e_acosl.c: New file.
12484         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
12485         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
12486         * sysdeps/x86_64/fpu/e_expl.c: New file.
12487         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
12488         * sysdeps/x86_64/fpu/e_log10l.S: New file.
12489         * sysdeps/x86_64/fpu/e_log2l.S: New file.
12490         * sysdeps/x86_64/fpu/e_logl.S: New file.
12491         * sysdeps/x86_64/fpu/e_powl.S: New file.
12492         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
12493         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
12494         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
12495         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
12496         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
12497         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
12498         * sysdeps/x86_64/fpu/fegetenv.c: New file.
12499         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
12500         * sysdeps/x86_64/fpu/fegetround.c: New file.
12501         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
12502         * sysdeps/x86_64/fpu/fesetenv.c: New file.
12503         * sysdeps/x86_64/fpu/fesetround.c: New file.
12504         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
12505         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
12506         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
12507         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
12508         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
12509         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
12510         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
12511         * sysdeps/x86_64/fpu/s_atanl.c: New file.
12512         * sysdeps/x86_64/fpu/s_cosl.S: New file.
12513         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
12514         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
12515         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
12516         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
12517         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
12518         * sysdeps/x86_64/fpu/s_logbl.c: New file.
12519         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
12520         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
12521         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
12522         * sysdeps/x86_64/fpu/s_rintl.c: New file.
12523         * sysdeps/x86_64/fpu/s_significandl.c: New file.
12524         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
12525         * sysdeps/x86_64/fpu/s_sinl.S: New file.
12526         * sysdeps/x86_64/fpu/s_tanl.S: New file.
12527         * sysdeps/x86_64/gmp-mparam.h: New file.
12528         * sysdeps/x86_64/hp-timing.c: New file.
12529         * sysdeps/x86_64/hp-timing.h: New file.
12530         * sysdeps/x86_64/htonl.S: New file.
12531         * sysdeps/x86_64/memusage.h: New file.
12532         * sysdeps/x86_64/setjmp.S: New file.
12533         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
12534         * sysdeps/x86_64/stackinfo.h: New file.
12535         * sysdeps/x86_64/sysdep.h: New file.
12536         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
12538         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
12539         L Moshier.
12541 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12543         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
12544         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
12546 2001-09-18  Andreas Schwab  <schwab@suse.de>
12548         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
12549         list, now that l_scope is a pointer.
12551         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
12552         scope list.
12554 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12556         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
12557         (elf_machine_rela_relative): Add a missing declaration.
12559 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
12561         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
12562         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
12563         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
12564         ldd-rewrite scripts.
12566 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12568         * elf/ldd.bash.in: Update copyright message.
12570 2001-09-17  H.J. Lu  <hjl@gnu.org>
12572         * hurd/hurdmalloc.c (bcopy): Removed.
12573         (realloc): Replace bcopy with memcpy.
12574         * hurd/path-lookup.c (file_name_path_scan): Likewise.
12575         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12576         * sunrpc/rpcinfo.c (pmapdump): Likewise.
12578         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12579         (gethostbyaddr): Likewise.
12580         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12582 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12584         * sysdeps/gnu/eval.c: Removed.
12586 2001-09-18  Andreas Jaeger  <aj@suse.de>
12588         * sysdeps/i386/fpu/s_logbl.S: Move to ...
12589         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12591         * sysdeps/i386/fpu/s_rintl.S: Move to ...
12592         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12594         * sysdeps/i386/fpu/s_significandl.S: Move to ...
12595         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12597 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
12599         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12600         nrules value.
12602 2001-09-14  H.J. Lu  <hjl@gnu.org>
12604         * sysdeps/mips/fpu/libm-test-ulps: Updated.
12606 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
12608         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12609         Patch by Florian La Roche <laroche@redhat.com>.
12611         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12613         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12614         ETHER_CRC_LEN.
12616 2001-09-14  Andreas Schwab  <schwab@suse.de>
12618         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
12619         Sumner <bls@sgi.com>.
12620         * posix/execlp.c: Likewise.
12622 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
12624         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12625         is already found earlier in the search scope.
12627 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
12629         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12630         filter.
12632 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
12634         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12636 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
12638         * config.h.in: Enforce optimization to be used.
12639         * Makeconfig (preprocess-versions): Define ASSEMBLER.
12640         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12641         * posix/Makefile (annexc-CFLAGS): Define to -O.
12642         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12644 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
12646         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12647         Patch by Stephan Kulow.
12649 2001-09-08  Ben Collins  <bcollins@debian.org>
12651         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12652         usage of RESOLVE() (r_type, not reloc->r_type).
12654 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12656         * elf/dl-object.c: Avoid allocating extra memory block for name.
12657         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12658         allocated separately.
12659         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12661 2001-09-08  H.J. Lu  <hjl@gnu.org>
12663         * po/zh_TW.po: Fix a typo.
12665 2001-09-07  Tom Rix  <trix@redhat.com>
12667         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12669 2001-08-26  Tom Rix  <trix@redhat.com>
12671         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12672         command line options.
12673         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12674         * sysdeps/unix/sysv/aix/start.c: Removed.
12675         * sysdeps/unix/sysv/aix/start-libc.c: New file.
12676         * sysdeps/unix/sysv/aix/init-first.c: New file.
12677         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12679 2001-09-08  Ben Collins  <bcollins@debian.org>
12681         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12682         * sysdeps/generic/dl-machine.h: Likewise.
12683         * sysdeps/hppa/dl-fptr.c: Likewise.
12684         * sysdeps/ia64/dl-fptr.c: Likewise.
12685         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12686         * sysdeps/mips/dl-machine.h: Likewise.
12687         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12688         * sysdeps/powerpc/dl-machine.c: Likewise.
12690 2001-09-07  Ben Collins  <bcollins@debian.org>
12692         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12694         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12696 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12698         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12699         dependencies if necessary.
12701         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12702         loaded directly) determine length if l_initfini list by iterating
12703         over its elements.  Minor optimizations.
12704         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12705         for dependency objects.
12706         If object was already loaded check whether any of the dependencies
12707         is already on the relocation dependency list.  If yes, remove the
12708         latter.  Minor optimizations.
12709         * elf/dl-lookup.c (add_dependency): Add check for self reference of
12710         maps here.  Search l_initfini list only if the object was loaded
12711         directly and not only as a dependency.
12712         (_dl_lookup_symbol): Add relocation dependency also if object
12713         is not in global scope.  Remove test for self-reference here.
12714         (_dl_lookup_versioned_symbol): Likewise.
12715         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
12716         element of first name record.
12717         * elf/loadtest.c: Add some more test to recognize early if an object
12718         wasn't unloaded.
12719         * elf/Makefile: Add rules to build and run reldep5.
12720         * elf/reldep5.c: New file.
12721         * elf/reldepmod5.c: New file.
12722         * elf/reldepmod6.c: New file.
12724         * elf/reldep2.c: Fix typo.
12726 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
12728         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12729         elements.  Change l_scope to be a pointer only.
12730         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12731         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12732         here add searchlist of newly open file to the dependency's scope.
12733         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12734         only searchlist from its scope.  Free own scope array if necessary.
12735         * elf/Makefile (tests): Add dblload and dblunload now.
12737 2001-09-06  Andreas Jaeger  <aj@suse.de>
12739         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12740         Stephen L Moshier.
12742 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
12744         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
12745         they both fail.
12746         * elf/dblload.c: New file.
12747         * elf/dblloadmod1.c: New file.
12748         * elf/dblloadmod2.c: New file.
12749         * elf/dblloadmod3.c: New file.
12750         * elf/dblunload.c: New file.
12752 2001-09-04  Richard Henderson  <rth@redhat.com>
12754         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12755         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12757 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12759         Correct very misleading message for error in failed runtime relocation.
12760         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12761         place of the error.
12762         (_dl_signal_cerror): Likewise.
12763         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12764         * elf/dl-close.c: Likewise.
12765         * elf/dl-deps.c: Likewise.
12766         * elf/dl-load.c: Likewise.
12767         * elf/dl-lookup.c: Likewise.
12768         * elf/dl-open.c: Likewise.
12769         * elf/dl-reloc.c: Likewise.
12770         * elf/dl-sym.c: Likewise.
12771         * elf/dl-version.c: Likewise.
12772         * sysdeps/generic/dl-sysdep.c: Likewise.
12774 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12776         * iconv/strtab.c (strtabinit): Initialize null Strent.
12777         (newstring): Move len == 0 handling...
12778         (strtabadd): ...here.
12779         If len == 1, return null Strent.
12780         When inserting a suffix of an existing string, check if
12781         it is not equal to some suffix already recorded.
12782         Copy left and right members over if adding longer string.
12784 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12786         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12788         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12789         (__syscall_gethostname): Add prototype.
12791 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12793         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12795 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
12797         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12799 2001-08-27  Roland McGrath  <roland@frob.com>
12801         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12802         short, copy that much into NAME anyway before returning error.
12804 2001-09-01  Richard Henderson  <rth@redhat.com>
12806         * sysdeps/alpha/elf/Dist: Remove file.
12807         * sysdeps/alpha/elf/Makefile: Remove file.
12808         * sysdeps/alpha/elf/crtbegin.S: Remove file.
12809         * sysdeps/alpha/elf/crtend.S: Remove file.
12810         * sysdeps/alpha/elf/initfini.c: New file.
12812 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
12814         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12815         * iconv/tst-iconv3.c: Likewise.
12817 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
12819         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12821 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
12823         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12824         export it.
12825         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12826         * iconv/iconv_prog.c (insert_cache): New function.
12827         (print_known_names): If cache is used call insert_cache to use the
12828         information from the cache [PR libc/2509].
12830 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
12832         * time/strptime.c (strptime_internal): Recognize 'l' format and
12833         handle it like 'I' for symmetry with strftime.
12835 2001-08-31  Richard Henderson  <rth@redhat.com>
12837         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12838         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12839         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12840         (print_statistics): Make scalar unsigned long long.
12841         * sysdeps/alpha/hp-timing.h: New file.
12843 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12845         * stdio-common/perror.c (perror): Save errno early, pass it
12846         down to perror_internal.
12847         (perror_internal): Add errnum argument.
12849 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12851         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12852         Don't add old memory content for R_ALPHA_REFQUAD.
12854 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12856         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12857         memory correctly.
12859         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12860         instead of open, __close instead of close, __getpagesize instead
12861         of getpagesize.
12863         * string/argz-stringify.c (__argz_stringify): Use __strnlen
12864         instead of strnlen.
12865         * include/string.h (strndupa): Redefine here to use __strnlen
12866         instead of strnlen.
12867         * string/strndup.c (__strndup): Use __strnlen not strnlen.
12869         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12870         connected).
12872 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12874         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12875         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
12876         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12877         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12878         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12879         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12880         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12882 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12884         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12886 2001-08-30  Andreas Jaeger  <aj@suse.de>
12888         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12889         contributed Stephen L Moshier.
12891 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12893         * sunrpc/etc.rpc (sgi_fam): Add.
12895 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12897         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12899 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12901         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12902         first is from a previous call.
12903         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12905 2001-08-29  Andreas Schwab  <schwab@suse.de>
12907         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12909 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12911         * config.make.in (INSTALL_SCRIPT): Define.
12912         * Makeconfig (INSTALL_SCRIPT): Define.
12913         * Makerules (do-install-script): New macro to install scripts using
12914         INSTALL_SCRIPT.
12915         (install-bin-script): New rule to install scripts with
12916         do-install-script.
12917         (install-bin-script-nosubdir): New rule.
12918         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12919         (distinfo-vars): Add $(install-bin-script).
12920         * Rules (others): Likewise.
12921         * Makefile (glibcbug): Install with install-bin-script.
12922         * debug/Makefile (xtrace): Likewise.
12923         (catchsegv): Likewise.
12924         * elf/Makefile (ldd): Likewise.
12925         * malloc/Makefile (mtrace): Likewise.
12926         * timezone/Makefile (tzselect): Likewise.
12928 2001-08-29  H.J. Lu  <hjl@gnu.org>
12930         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12931         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12932         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12934 2001-08-29  Andreas Schwab  <schwab@suse.de>
12936         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12938 2001-08-28  H.J. Lu  <hjl@gnu.org>
12940         * Makeconfig (combreloc-LDFLAGS): New variable.
12941         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12942         * config.make.in (have-z-combreloc): New variable.
12943         * configure.in: Substitute libc_cv_z_combreloc.
12945 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12947         * po/sv.po: Update from translation team.
12948         * po/fr.po: Likewise.
12949         * po/da.po: Likewise.
12951 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12953         * Makerules: Fix a typo: MD% -> MD5.
12955 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
12957         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12958         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12960 2001-08-28  Andreas Jaeger  <aj@suse.de>
12962         * manual/libc-texinfo.sh: Add entry about free manuals.
12964         * manual/contrib.texi (Contributors): Fix cross reference.
12966         * manual/libc.texinfo (Copying): Include freemanuals.
12968         * manual/Makefile (appendices): Add freemanuals.
12970         * manual/freemanuals.texi: New file.
12971         Patch by Brian Youmans <3diff@gnu.org>.
12973         * manual/libm-err-tab.pl: Pretty print more platforms, print a
12974         smaller table.
12976         * manual/math.texi (Errors in Math Functions): Fix grammar, start
12977         table on separate page.
12978         Patch by Brian Youmans <3diff@gnu.org>.
12980 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12982         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
12983         the connection went down after we first used it try to connect
12984         again and resend the message before printing to the console.
12985         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
12987 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
12989         * string/tst-strlen.c (main): Test strnlen (, -1) too.
12990         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
12991         bit set.
12993 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
12995         * iconv/strtab.c (searchstring): Use correct length for comparison.
12996         (strtabadd): Account total size correct if new string has old string as
12997         substring.
12999 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
13001         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
13003 2001-08-27  Andreas Jaeger  <aj@suse.de>
13005         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
13007         * math/libm-test.inc (j0_test): Add extra tests.
13008         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
13009         not x, in Hankel approximation.
13010         Patches by Stephen L Moshier.
13012 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
13014         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
13015         link_map.
13017         * configure.in: Fix test for .rela.dyn section.
13019         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
13021 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
13023         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
13024         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
13025         Pass type_class to _dl_lookup_*.
13026         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
13027         Pass around just type_class instead of noexec, noplt pair.
13028         (_dl_lookup_versioned_symbol): Likewise.
13029         (_dl_lookup_symbol_skip): Pass around just type_class instead of
13030         noexec, noplt pair.
13031         (_dl_lookup_versioned_symbol_skip): Likewise.
13032         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
13033         * elf/do-lookup.h (do_lookup): Likewise.
13034         * include/link.h (struct link_map): Replace noexec and noplt fields
13035         in l_lookup_cache with type_class field.
13036         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
13037         ELF_RTYPE_CLASS_COPY): Define.
13038         Adjust prototypes for _dl_lookup_symbol and
13039         _dl_lookup_versioned_symbol.
13040         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
13041         elf_machine_lookup_noexec_p): Remove.
13042         (elf_machine_type_class): Define.
13043         * sysdeps/arm/dl-machine.h: Likewise.
13044         * sysdeps/hppa/dl-machine.h: Likewise.
13045         * sysdeps/cris/dl-machine.h: Likewise.
13046         * sysdeps/i386/dl-machine.h: Likewise.
13047         * sysdeps/ia64/dl-machine.h: Likewise.
13048         * sysdeps/m68k/dl-machine.h: Likewise.
13049         * sysdeps/mips/mips64/dl-machine.h: Likewise.
13050         * sysdeps/mips/dl-machine.h: Likewise.
13051         * sysdeps/powerpc/dl-machine.h: Likewise.
13052         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13053         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13054         * sysdeps/sh/dl-machine.h: Likewise.
13055         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13056         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13058 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
13060         * manual/message.texi (Advanced gettext functions): Change
13061         description of plural forms for Slovak.
13062         Reported by Marcel Telka <marcel@telka.sk>.
13064         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
13065         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
13067 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
13069         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
13070         typo.  Patch by Florian La Roche <laroche@redhat.com>.
13072 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
13074         * include/link.h (struct link_map): Add l_lookup_cache element.
13075         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
13076         (RESOLVE_MAP): Likewise.
13077         (_dl_relocate_object): Remove cache initialization.
13078         * elf/dl-lookup.c: Rip out cache handling code.
13079         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
13080         declarations.
13082         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
13083         remove some __builtin_expect.
13084         (_dl_lookup_versioned_symbol): Likewise.
13086         * config.h.in: Add HAVE_Z_COMBRELOC.
13087         * configure.in: Add test for -z combreloc.
13089         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
13090         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
13091         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
13092         case to almost no code.
13094 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
13096         * po/tr.po: Update from translation team.
13098 2001-08-24  Andreas Jaeger  <aj@suse.de>
13100         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
13101         make clean works.
13103 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13105         * elf/rtld.c (print_statistics): Printf % after percent values.
13106         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
13108         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
13109         don't have to compute the hash value and initialize current_value.
13110         Move reference_name variable to where it is needed.
13111         (_dl_lookup_versioned_symbol): Likewise.
13113 2001-08-24  Roland McGrath  <roland@frob.com>
13115         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
13116         Just test that strerror returns non-null for a few errno codes.
13118 2001-08-23  Roland McGrath  <roland@frob.com>
13120         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
13121         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
13123         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
13125         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
13126         __mach_reply_port.
13128 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13130         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
13131         returns NULL.
13133         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
13134         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
13135         doesn't do it.
13136         * elf/rtld.c: Include <sys/param.h>.
13137         * elf/dl-reloc.c: Likewise.
13139 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
13141         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
13142         empty to prevent junk from being generated.
13143         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
13145 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
13147         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
13148         records.  Rename endrel to relative, initialize it to r, and use it
13149         in elf_machine_rel_relative calls.  Point r after relative relocs.
13151 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13153         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
13154         of R_386_NONE.
13156 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
13158         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
13159         necessary.  Undefine newly defined macros at the end.
13160         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
13161         Rename from elf_machine_rel_relative.
13162         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
13163         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
13164         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
13165         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
13166         Likewise.
13167         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
13168         Likewise.
13169         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
13170         Fix argument types.
13171         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
13172         Fix argument types.
13173         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
13174         Likewise.  Fix argument types.
13175         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
13176         Likewise.  Fix argument types.
13177         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
13178         Fix argument types.
13179         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
13180         ElfW(Rel) in argument.
13181         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
13182         function.
13184 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
13186         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
13188 2001-08-24  Andreas Jaeger  <aj@suse.de>
13190         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
13191         Stephen L Moshier <moshier@mediaone.net>.
13193 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13195         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
13196         first if RELCOUNT is set.
13198         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
13199         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
13200         elf_machine_rel_relative.
13201         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
13202         Minor optimizations.
13203         * sysdeps/arm/dl-machine.h: Likewise.
13204         * sysdeps/cris/dl-machine.h: Likewise.
13205         * sysdeps/hppa/dl-machine.h: Likewise.
13206         * sysdeps/i386/dl-machine.h: Likewise.
13207         * sysdeps/ia64/dl-machine.h: Likewise.
13208         * sysdeps/m68k/dl-machine.h: Likewise.
13209         * sysdeps/mips/dl-machine.h: Likewise.
13210         * sysdeps/powerpc/dl-machine.h: Likewise.
13211         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13212         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13213         * sysdeps/sh/dl-machine.h: Likewise.
13214         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13215         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13217 2001-08-23  Roland McGrath  <roland@frob.com>
13219         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
13221         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
13222         sysdeps/mach version.  Implement counting ("recursive") mutexes
13223         on top of cthreads mutexes.
13224         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
13226         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
13227         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
13228         (__libc_cleanup_region_start, __libc_cleanup_region_end,
13229         __libc_clean_end): Define these to call the cleanup function after
13230         normal exit when they're supposed to.
13232         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
13233         Take new first arg DOIT, a boolean saying whether to really install
13234         any cleanup handler.
13235         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
13236         (__libc_cleanup_end): Likewise.
13237         * sysdeps/generic/bits/libc-lock.h: Same changes.
13238         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
13239         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
13240         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
13241         Likewise.
13242         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
13243         * sysdeps/generic/bits/stdio-lock.h
13244         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
13246 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13248         * elf/ldconfig.c (search_dir): Remove stale symlinks.
13250 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13252         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
13253         functions.
13254         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
13255         lookups in cache.
13256         (_dl_lookup_versioned_symbol): Likewise.
13257         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
13258         relocation lookup.
13259         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
13260         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
13261         (lookup_cache, lookup_cache_versioned): Add declarations.
13263 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
13265         * stdlib/tst-random.c (main): Swap parameters in fail call.
13266         Patch by Pete Bevin <pete@petebevin.com>.
13268 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13270         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
13272 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
13274         * malloc/obstack.c: Indent preprocessor directives.
13275         Patch by Jim Meyering <meyering@ascend.com>.
13277         * po/ja.po: Update from translation team.
13279 2001-08-23  Roland McGrath  <roland@frob.com>
13281         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
13283         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
13284         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
13286 2001-08-22  Roland McGrath  <roland@frob.com>
13288         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
13289         __libc_lock_define_recursive.
13290         * elf/dl-open.c: Don't declare it here any more.
13291         * elf/dl-close.c: Likewise.
13292         * elf/dl-lookup.c: Likewise.
13293         * elf/dl-iteratephdr.c: Likewise.
13294         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
13295         __libc_lock_unlock_recursive.
13296         * elf/dl-close.c (_dl_close): Likewise
13297         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
13298         * elf/dl-open.c (_dl_open): Likewise
13300         * sysdeps/generic/bits/libc-lock.h
13301         (__libc_lock_define_recursive): New macro.
13302         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
13303         (_IO_lock_lock): Use __libc_lock_lock_recursive.
13304         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
13306         * conform/conformtest.pl (checknamespace): Sort the output list.
13308         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
13309         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
13310         definitions conditional on [__USE_XOPEN].
13312         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
13313         these unconditionally, not only use [__USE_BSD], so as to match
13314         the sysdeps/unix/sysv/linux files.
13316 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13318         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
13319         avoid warnings.
13321         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
13322         DL_LOOKUP_ADDRESS.
13324 2001-08-22  Roland McGrath  <roland@frob.com>
13326         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
13327         conditionalization of sa_handler/sa_sigaction member types to
13328         match the sysdeps/unix/sysv/linux file.
13330 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13332         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
13333         symbol sizes a bit better.
13335         * sysdeps/ia64/strncpy.S: Complete rewrite.
13336         Contributed by Jakub Jelinek <jakub@redhat.com>.
13338         * string/stratcliff.c (main): Add strncpy test.
13340 2001-08-22  Roland McGrath  <roland@frob.com>
13342         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
13343         and don't declare unsetenv or _environ directly.
13344         (unsetenv): Return int, not void.  Use __environ instead of _environ.
13346 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
13348         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
13349         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
13350         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
13351         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
13352         test for cmsg struct size.
13354 2001-04-23  Paul Eggert  <eggert@twinsun.com>
13356         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
13357         Rename __argc to ___argc in prototypes to avoid compatibility
13358         problems with systems that reserve the identifier "__argc".
13359         Similarly for __argv.
13361 2001-08-21  Roland McGrath  <roland@frob.com>
13363         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
13365         * mach/Makefile (tests): Removed.
13366         * mach/hello.c: File removed.
13368 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13370         * po/sv.po: Update from translation team.
13372         * stdio-common/vfscanf.c: Fix handling of %l[].
13373         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
13375         * libio/Makefile (tests): Add tst-sscanf.
13376         * libio/tst-sscanf.c: New file.
13378         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
13379         * malloc/mtrace.c (tr_where): dli_sname always points to a
13380         non-empty string if != NULL.
13381         Reported by Tim Janik <timj@gtk.org>.
13383 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
13385         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
13386         buf.  Free resources on failure.
13387         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
13388         (makefd_xprt): Likewise.
13389         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
13390         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
13391         * sunrpc/auth_unix.c (authunix_create): Likewise.
13393 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
13395         * string/strnlen.c: Remove.
13396         * sysdeps/generic/strnlen.c: New file.
13397         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
13399 2001-08-21  Roland McGrath  <roland@frob.com>
13401         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
13402         as a macro, not an extern inline function.
13404         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
13405         * Versions.def (libc): Add GLIBC_2.2.5 set.
13406         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
13407         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
13409 2001-08-20  Roland McGrath  <roland@frob.com>
13411         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
13412         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
13414 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
13416         * string/bits/string2.h: Remove strnlen optimization here.
13417         * sysdeps/i386/i486/bits/string.h: Add it here.
13419 2001-08-21  Wolfram Gloger  <wg@malloc.de>
13421         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
13423 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
13425         * po/gl.po: Update from translation team.
13427 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13429         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
13430         * misc/err.c (convert_and_print): Likewise.
13432         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
13433         function calls.
13435 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13437         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
13438         change of the gregset_t type.
13439         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13441 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
13443         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
13445 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13447         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
13449         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
13451 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
13453         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
13454         before calling the cthreads initialization code.
13456 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13458         * argp/argp-help.c: Fix two problems introduced in last change.
13460         * include/dirent.h: Include <dirstream.h> first.
13462 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
13464         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
13466         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
13467         * sunrpc/xdr_rec.c: Likewise.
13468         * sunrpc/xdr_mem.c: Likewise.
13469         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
13470         * sunrpc/rpc_cmsg.c: Likewise.
13471         * sunrpc/getrpcport.c (getrpcport): Likewise.
13472         * sunrpc/clnt_simp.c (callrpc): Likewise.
13473         * sunrpc/clnt_gen.c (clnt_create): Likewise.
13474         * string/envz.c: Likewise.
13476         * po/ko.po: Update from translation team.
13478         * argp/argp-help.c: Handle wide oriented stderr stream.
13480 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
13482         * sysdeps/generic/strtol.c: Little optimizations.  Add some
13483         __builtin_expect.
13485         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
13487         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
13488         * wcsmbs/wcwidth.c (wcwdith): Likewise.
13489         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
13491         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
13493         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
13495         * time/time.h (struct timespec): Use __time_t for tv_sec element.
13497         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
13498         wchar_t for function declarations and defintions.
13500         * misc/sys/select.h: Define __need_time_t before including <time.h>.
13501         Define suseconds_t if it hasn't happened yet.
13503         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
13505         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
13507         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
13508         <stddef.h>.
13510         * conform/data/stddef.h-data: Remove wint_t.
13512         * conform/conformtest.pl: Change namespace test to take #undef
13513         lines into account.
13515         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
13517         * conform/data/sys/socket.h-data: Add sockatmark.
13519 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13521         * io/fts.c: Update from recent BSD source.
13523 2001-08-17  Roland McGrath  <roland@frob.com>
13525         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
13526         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
13527         Likewise.
13529 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13531         * locale/duplocale.c (__duplocale): Also initialize the special
13532         __ctype_* elements.
13534         * conform/data/netdb.h-data: Adjust gai_strerror return type.
13536 2001-08-17  Andreas Jaeger  <aj@suse.de>
13538         * misc/getpass.c: Include wchar.h for prototypes.
13539         * malloc/obstack.c: Likewise.
13541 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13543         * sunrpc/svc_simple.c (universal): Use __write instead of write.
13545         * wcsmbs/wcscoll.c: Also define __wcscoll.
13546         * include/wchar.h: Declare __wcscoll.
13548         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
13549         * libio/vwprintf.c: Likewise.
13550         * libio/wprintf.c: Likewise.
13552         * iconv/gconv_cache.c: Use __munmap instead of munmap.
13554 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
13556         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
13557         instead of mbrtowc.
13558         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
13559         wcslen, and __wcscoll instead of wcscoll.
13561         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
13563         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
13564         __getuid instead of getuid.
13566         * stdio-common/perror.c (perror): Use __close instead of close.
13567         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13568         * libio/freopen.c (freopen): Likewise.
13569         * libio/freopen64.c (freopen64): Likewise.
13571         * libio/tst-ungetwc2.c (main): Define str const.
13573         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13574         * libio/fwprintf.c: Also define __fwprintf.
13575         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13576         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13577         * assert/assert-perr.c: Likewise.
13578         * assert/assert.c: Likewise.
13579         * gmon/gmon.c: Likewise.
13580         * inet/rcmd.c: Likewise.
13581         * malloc/obstack.c: Likewise.
13582         * misc/err.c: Likewise.
13583         * misc/error.c: Likewise.
13584         * misc/getpass.c: Likewise.
13585         * posix/getopt.c: Likewise.
13586         * resolv/res_hconf.c: Likewise.
13587         * stdio-common/perror.c: Likewise.
13588         * stdio-common/psignal.c: Likewise.
13589         * stdlib/fmtmsg.c: Likewise.
13590         * sunrpc/auth_unix.c: Likewise.
13591         * sunrpc/clnt_perr.c: Likewise.
13592         * sunrpc/clnt_tcp.c: Likewise.
13593         * sunrpc/clnt_udp.c: Likewise.
13594         * sunrpc/clnt_unix.c: Likewise.
13595         * sunrpc/svc_simple.c: Likewise.
13596         * sunrpc/svc_tcp.c: Likewise.
13597         * sunrpc/svc_udp.c: Likewise.
13598         * sunrpc/svc_unix.c: Likewise.
13599         * sunrpc/xdr.c: Likewise.
13600         * sunrpc/xdr_array.c: Likewise.
13601         * sunrpc/xdr_rec.c: Likewise.
13602         * sunrpc/xdr_ref.c: Likewise.
13603         * sysdeps/generic/wordexp.c: Likewise.
13605         * po/it.po: Update from translation team.
13607         * misc/err.c: Handle wide oriented stderr stream.
13609 2001-08-14  Tom Rix  <trix@redhat.com>
13611         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13612         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13614 2001-08-13  Tom Rix  <trix@redhat.com>
13616         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13617         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13618         and __intptr_t.
13620 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13622         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13623         Store the access registers to the ucontext structure.
13624         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13625         Likewise.
13627         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13628         Load the access registers from the ucontext structure.
13629         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13630         Likewise.
13632         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13633         offsets to the new ucontext layout.
13634         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13636         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13637         of the ucontext structure.
13638         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13640 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
13642         * misc/error.c (error): Handle wide oriented stderr stream correctly.
13643         (error_at_line): Likewise.
13645         * stdio-common/perror.c (perror): Implement according to standard.
13646         The stream orientation must not be changed if the stream was not
13647         oriented before the call.
13648         * stdio-common/Makefile (tests): Add tst-perror.
13649         * stdio-common/tst-perror.c: New file.
13652 See ChangeLog.12 for earlier changes.