(re_string_reconstruct): Reset the member LEN and STOP.
[glibc.git] / ChangeLog
blob42a958ff97cb9d47777a6e729aaa115e16bd515c
1 2002-10-01  Roland McGrath  <roland@frob.com>
3         * config.h.in (NO_HIDDEN): New #undef.
4         * include/libc-symbols.h [! NO_HIDDEN]: Add this condition to
5         nonempty definitions of hidden_proto et al.
6         * configure.in: Grok --disable-hidden-plt to define NO_HIDDEN.
7         * configure: Regenerated.
8         * sysdeps/mach/hurd/configure.in: Always define NO_HIDDEN.
9         * sysdeps/mach/hurd/configure: Regenerated.
11 2002-09-19  David Mosberger  <davidm@hpl.hp.com>
13         * sysdeps/ia64/dl-fptr.c (make_fdesc): Load address of "local" via
14         a 64-bit gp-relative address to enable binaries with large data
15         sections.
17 2002-09-30  Ulrich Drepper  <drepper@redhat.com>
19         * stdlib/cxa_finalize.c (__cxa_finalize): Call UNREGISTER_ATFORK
20         if it is defined.
21         * posix/Makefile (distribute): Add fork.h.
22         * sysdeps/generic/fork.h: New file.
24 2002-09-29  Bruno Haible  <bruno@clisp.org>
26         * sysdeps/generic/utmp_file.c (LOCKING_FAILED): New macro.
27         (UNLOCK_FILE): Add a label.
28         (getutent_r_file, internal_getut_r, getutline_r_file, pututline_file,
29         updwtmp_file): Shut off the alarm clock when locking failed.
31 2002-09-30  Isamu Hasegawa  <isamu@yamato.ibm.com>
33         * posix/regex_internal.h (re_match_context_t): Add a new member.
34         (re_fail_stack_ent_t): New structure.
35         (re_fail_stack_t): Likewise.
36         * posix/regexec.c (re_search_internal): Use the new member of
37         re_match_context_t.
38         Use fail stack only if it has back references and there are plural
39         matching candidates.
40         (proceed_next_node): Use fail stack if it is indicated.
41         (set_regs): Likewise.
42         (push_fail_stack): New function.
43         (pop_fail_stack): New function.
44         (check_dst_limits): Likewise.
45         (check_dst_limits_calc_pos): Likewise.
46         (search_subexp): Check the limitations on the top of subexpressions.
47         (sift_states_bkref): Check the limitations of the destination node.
48         Reuse the array sctx->sifted_states.
50 2002-09-30  Ulrich Drepper  <drepper@redhat.com>
52         * stdio-common/printf_fp.c: Shuffle a few lines around to help the
53         compiler optimizing.  No semantical changes intended.
55 2002-09-30  Jakub Jelinek  <jakub@redhat.com>
57         * sysdeps/ia64/strncpy.S: Only segfault in .recovery2 if some bits
58         from the next quad are needed.
60 2002-09-30  Roland McGrath  <roland@redhat.com>
62         * elf/tls-macros.h (TLS_LD, TLS_GD): Use call insn, not callq.
64         * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD] [! PIC]:
65         Use direct-%fs form of TLS access for errno.
67         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: File removed, since
68         the i386 version has all the same asm now.
70         * sysdeps/i386/elf/configure.in: Add @GOTNTPOFF and @NTPOFF uses to
71         the TLS support check.
72         * sysdeps/i386/elf/configure: Regenerated.
74         * sysdeps/unix/sysv/linux/i386/sysdep.h [USE_TLS && HAVE___THREAD]
75         (SYSCALL_ERROR_HANDLER): Use direct-%gs form of TLS access for errno.
77         * sysdeps/unix/i386/sysdep.S (syscall_error)
78         [USE_TLS && HAVE___THREAD]: Use TLS access for errno.
80         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
81         [USE_TLS && HAVE___THREAD] (SYSCALL_ERROR_HANDLER): Use TLS access.
83         * rt/tst-aio7.c (do_test): Don't read from stdin, which could be the
84         terminal when the test is running in a background job.  Instead, make
85         a pipe and read from its read half while never writing anything to it.
87 2002-09-30  Andreas Jaeger  <aj@suse.de>
89         * stdlib/tst-bsearch.c (main): Fix format strings.
90         * stdio-common/tst-rndseek.c (do_test): Likewise.
91         * libio/tst_swprintf.c (main): Likewise.
92         * catgets/tst-catgets.c (main): Likewise.
93         * libio/tst-fgetws.c (main): Likewise.
94         * posix/tst-mmap.c (main): Likewise.
95         * posix/bug-regex12.c (main): Likewise.
96         * posix/bug-regex11.c (main): Likewise.
97         * io/tst-getcwd.c (do_test): Likewise.
99         * iconvdata/tst-e2big.c (test): Use %td in printf for ptrdiff_t.
101         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
102         Store 4 bytes into errno, not 8 bytes.
104 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
106         * posix/regexec.c (sift_states_bkref): Remove ret variable.  Use
107         err instead.
109 2002-09-29  Roland McGrath  <roland@redhat.com>
111         * test-skeleton.c (timeout_handler): Use WUNTRACED flag in waitpid.
112         Examine the child's status and print something different if it wasn't
113         just killed by our SIGKILL.
114         (main): In the child process call setpgid to put it in its own pgrp.
116 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
118         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): The return value
119         semantics for sigtimedwait is different.  Rework the return value
120         handling and don't pass in a siginfo variable.
122 2002-09-29  Roland McGrath  <roland@redhat.com>
124         * malloc/malloc.c [! MALLOC_DEBUG] (assert): #undef before defining.
126         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.2.6): Add __errno_location.
128         * sysdeps/unix/sysv/linux/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]:
129         Define errno in .tbss.
130         * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]: Use TLS
131         access for setting errno.
133         * sysdeps/unix/x86_64/sysdep.S: Store 32 bits at errno, not 64 bits.
134         AFAICT, it was just blind luck that the word following errno in .bss
135         was just alignment padding and not some other variable to be clobbered.
137 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
139         * sysdeps/unix/sysv/linux/kernel-features.h
140         (__ASSUME_SETRESUID_SYSCALL): On the sparc, define to 1, not empty.
142 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
144         * nss/bug-erange.c (main): Don't fail if /etc/resolv.conf doesn't
145         exist.
147 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
149         * nss/Makefile: Move bug-erange from tests to xtests.
151 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
153         * stdlib/longlong.h (__udiv_qrnnd): Remove PARAMS from prototype.
155 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
157         * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall0): Make asm
158         volatile.
159         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
160         inline_syscall5, inline_syscall6): Likewise.
161         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
162         Likewise.
163         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (INLINE_SYSCALL):
164         Likewise.
166 2002-09-29  Roland McGrath  <roland@redhat.com>
168         * configure.in (libc_cv_ranlib_necessary check): Put the .o file in
169         the archive, not the .c file.
170         * configure: Regenerated.
172 2002-09-29  Roland McGrath  <roland@redhat.com>
174         * configure: Regenerated after aclocal.m4 change.
176         * sysdeps/x86_64/sysdep.h [HAVE_ELF] (L): Define with .L##name form.
177         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (L): Don't define it here.
179         * sysdeps/generic/dl-lookupcfg.h [USE_TLS] (DL_LOOKUP_RETURNS_MAP):
180         Define it, because _dl_sym presumes it (for any platform).
182         * sysdeps/x86_64/dl-tls.h: New file.
184         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add a cast.
186         * sysdeps/x86_64/elf/configure.in: New file.
187         * sysdeps/x86_64/elf/configure: New generated file.
189 2002-09-28  Roland McGrath  <roland@redhat.com>
191         * elf/rtld.c (_dl_start): Fix conditional for declaring CNT.
193         * aclocal.m4 (LIBC_PROG_BINUTILS): Don't clobber $RANLIB with ranlib
194         before we check it.
196 2002-09-28  Ulrich Drepper  <drepper@redhat.com>
198         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __syscall_exit
199         entry point.
201 2002-09-28  Jakub Jelinek  <jakub@redhat.com>
203         * posix/bug-regex11.c (tests): Add flags field.
204         (main): Avoid warnings.  Use test[i].flags.  Return nonzero
205         if any of the tests failed.
206         * posix/bug-regex12.c: New file.
207         * posix/Makefile (tests): Add bug-regex12.
209 2002-03-02  Thorsten Kukuk  <kukuk@suse.de>
211         * sysdeps/unix/nice.c (nice): Use getpriority() for the return value.
213 2002-09-28  Jeff Bailey  <jbailey@gnu.org>
215         * sysdeps/unix/sysv/sysv4/solaris2/configure.in: Delete.
216         * sysdeps/unix/sysv/aix/configure.in: Update comment and remove
217         stdio=libio setting.
219 2002-09-28  Roland McGrath  <roland@redhat.com>
221         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Use INTUSE for
222         _dl_signal_error.
223         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Likewise.
224         * sysdeps/powerpc/powerpc64/dl-machine.c
225         (_dl_reloc_overflow): Likewise.
226         * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
227         (elf_machine_rela): Likewise.
229 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
231         * include/libc-symbols.h (__hidden_dot_weak1): Fix typo.  Replace
232         ASM_GLOBAL_DIRECTIVE with .weak.
234 2002-09-28  Andreas Jaeger  <aj@suse.de>
236         * sysdeps/unix/sysv/linux/mips/truncate64.c (truncate64): Fix
237         number of args to syscall.
238         * sysdeps/unix/sysv/linux/mips/ftruncate64.c (__ftruncate64): Likewise.
239         Patch by Guido Guenther <agx@sigxcpu.org>.
241 2002-09-27  Roland McGrath  <roland@redhat.com>
243         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_pread, __NR_pwrite):
244         Define these to __NR_pread64, __NR_pwrite64 if not defined.
246         * sysdeps/unix/sysv/linux/powerpc/lchown.S
247         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Use this condition
248         on chown compatibility symbol; use compat_symbol, not symbol_version.
250 2002-09-27  Isamu Hasegawa  <isamu@yamato.ibm.com>
252         * posix/regcomp.c (reg_free): Free the debug area.
253         (re_compile_internal): Allocate debug area for the input string.
254         (create_initial_state): Check the back references in initial states
255         if they are really match null string in the initial state.
256         (parse_reg_exp): Mark the dfa that the dfa can have plural matchings.
257         (parse_expression): Likewise.
258         (parse_bracket_exp): Likewise.
259         * posix/regex_internal.c (re_node_set_intersect): Remove unused
260         function.
261         (re_node_set_contains): Change to return the index of node.
262         * posix/regex_internal.h (re_backref_cache_entry): Change the members.
263         (re_match_context_t): Likewise.
264         (struct re_dfa_t): Likewise.
265         (re_sift_context_t): New structure.
266         * posix/regexec.c (match_ctx_clear_flag): New function.
267         (sift_ctx_init): Likewise.
268         (update_cur_sifted_state): Likewise.
269         (add_epsilon_src_nodes): Likewise.
270         (sub_epsilon_src_nodes): Likewise.
271         (check_subexp_limits): Likewise.
272         (search_subexp): Likewise.
273         (sift_states_bkref): Likewise.
274         (merge_state_array): Likewise.
275         (sift_states_iter_bkref): Remove unused function.
276         (add_epsilon_backreference): Remove unused function.
277         (re_search_internal): Adapt new members and interfaces.
278         (check_matching): Check the back references in initial states
279         if they are really match null string in the initial state.
280         (proceed_next_node): Change the evaluation of back references,
281         since we have real registers here.
282         (set_regs): Adapt new interface of proceed_next_node.
283         (sift_states_backward): Add invocation of update_cur_sifted_state
284         instead of add_epsilon_backreference.
285         Add a sentinel to the outermost while loop.
286         Move the handling of back references to sift_states_bkref function,
287         since we can't handle some back references (e.g. a back reference
288         which match NULL string) here.
289         (transit_state_mb): Handle the new member max_mb_elem_len.
290         (transit_state_bkref_loop): Move the evaluation of back references to
291         search_subexp function, since we can't evaluate some back references
292         (e.g. a back reference which can have plural matchings) here.
293         (match_ctx_init): Adapt the new member.
294         (match_ctx_add_entry): Adapt the new members.
296 2002-09-25  Alan Modra  <amodra@bigpond.net.au>
298         * elf/do-rel.h: Define macro DO_ELF_MACHINE_REL_RELATIVE for
299         'elf_machine_rel_relative'
300         (elf_dynamic_do_rel): Call DO_ELF_MACHINE_REL_RELATIVE macro
301         instead of 'elf_machine_rel_relative'.
302         * sysdeps/hppa/dl-machine.h:
303         Define macro DO_ELF_MACHINE_REL_RELATIVE for
304         'elf_machine_rel_relative' with extra map parameter
305         required by HPPA.
306         (elf_machine_rela_relative): Add plt relocation changes.
308 2001-11-14  Matthew Wilcox  <willy@debian.org>
310         * sysdeps/unix/sysv/linux/hppa/bits/ipc.h: New file.
311         * sysdeps/unix/sysv/linux/hppa/bits/msq.h: New file.
312         * sysdeps/unix/sysv/linux/hppa/bits/sem.h: New file.
313         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: New file.
315 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
317         * sysdeps/powerpc/powerpc32/Makefile: Fix typo in comment.
319         * sysdeps/powerpc/powerpc64/Makefile
320         [$(build-shared) = yes] (pic-ccflag): Define it.
321         [$(subdir) = csu] (CFLAGS-initfini.s): Add -fpic here too.
323 2002-09-27  Roland McGrath  <roland@redhat.com>
325         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Remove
326         unneeded TLS cases.
328 2002-09-27  Jakub Jelinek  <jakub@redhat.com>
330         * elf/dl-addr.c (_dl_addr): Set dli_fbase to l_map_start
331         unconditionally.  Set dli_fname to _dl_argv[0] only for main program.
333 2002-09-27  Roland McGrath  <roland@redhat.com>
335         * elf/dl-addr.c (_dl_addr): Add a cast.
337         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [USE_TLS]: Handle new
338         TLS relocs R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, and R_X86_64_TPOFF64.
340         * elf/elf.h (R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, R_X86_64_TPOFF64,
341         R_X86_64_TLSGD, R_X86_64_TLSLD, R_X86_64_DTPOFF32,
342         R_x86_64_GOTTPOFF, R_X86_64_TPOFF32): New macros.
343         (R_X86_64_NUM): Update the value.
345 2002-09-24  Jakub Jelinek  <jakub@redhat.com>
347         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_load_address): Don't
348         rely on *r_offset of R_SPARC_RELATIVE reloc in .got to contain the
349         addend.
350         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Use
351         the same l_addr computation.
352         * sysdeps/sparc/sparc64/configure.in: Removed.
353         * sysdeps/sparc/sparc64/configure: Removed.
354         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Remove.
356 2002-09-26  Ulrich Drepper  <drepper@redhat.com>
358         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_HASH entry
359         if necessary.
360         * elf/dl-lookup.c (_dl_setup_hash): DT_HASH entry is already relocated.
361         * elf/dl-addr.c (_dl_addr): Use .hash[1] entry to determine end of the
362         symbol table if necessary.
364 2002-09-26  Roland McGrath  <roland@redhat.com>
366         * stdlib/longlong.h: Replaced with current version from GCC mainline,
367         last modified 2002-09-22  Kazu Hirata  <kazu@cs.umass.edu>.
369 2002-09-25  Andreas Jaeger  <aj@suse.de>
371         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add syscall_exit.
372         Patch by Guido Guenther <agx@sigxcpu.org>.
374 2002-09-25  Roland McGrath  <roland@redhat.com>
376         * Makeconfig (%.v.i pattern rule): Use $(CPPFLAGS).
378 2002-09-24  Ulrich Drepper  <drepper@redhat.com>
380         * sysdeps/unix/sysv/linux/configure.in: Recognize nptl add-on name.
382 2002-09-24  Roland McGrath  <roland@redhat.com>
384         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Move __libc_read,
385         __libc_write, __libc_lseek64, to ...
386         (ld: GLIBC_PRIVATE): ... here.
388         * csu/Versions: Use %include <tls.h> to get USE_TLS defined.
389         (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _errno, errno.
390         (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put errno here instead.
391         * resolv/Versions: Use %include <tls.h> to get USE_TLS defined.
392         (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _h_errno, h_errno,
393         and _res.
394         (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put h_errno, _res here.
396         * elf/tls-macros.h [__x86_64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
397         New macros for x86-64.
399         * sysdeps/unix/sysv/linux/alpha/bits/time.h: File removed.
400         It was indentical to the linux/bits/time.h file.
402         * nscd/nscd_gethst_r.c (nscd_gethst_r): Add a cast to silence warning.
404         * resolv/gethnamaddr.c (gethostbyaddr): Use socklen_t for SIZE.
406 2002-09-23  Ulrich Drepper  <drepper@redhat.com>
408         * po/zh_CN.po: New file.
410 2002-09-23  Roland McGrath  <roland@redhat.com>
412         * posix/unistd.h: Test [__USE_UNIX98] instead of [__USE_OPEN2K]
413         for gethostname declaration.
415         * catgets/open_catalog.c (__open_catalog): Don't use a value type
416         as the __builtin_expect expression, just the Boolean value.
418         * sysdeps/generic/wordexp.c (parse_glob): int -> size_t for counter.
419         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
420         * resolv/res_hconf.c (arg_service_list, parse_line): Likewise.
421         * iconvdata/tst-loading.c (main): Likewise.
422         * catgets/tst-catgets.c (main): Likewise.
423         * stdlib/tst-xpg-basename.c (main): Likewise.
424         * stdlib/tst-bsearch.c (main): Likewise.
425         * stdio-common/test-vfprintf.c (main): Likewise.
426         * stdio-common/tst-rndseek.c (do_test): Likewise.
427         * libio/tst_swprintf.c (main): Likewise.
428         * libio/tst-fgetws.c (main): Likewise.
429         * wcsmbs/tst-mbrtowc.c (check_ascii): Likewise.
430         * time/tst-posixtz.c (main): Likewise.
431         * time/tst-strptime.c (test_tm): Likewise.
432         * time/tst-strptime.c (main): Likewise.
433         * time/tst-getdate.c (main): Likewise.
434         * posix/tst-mmap.c (main): Likewise.
435         * posix/tst-getaddrinfo.c (do_test): Likewise.
436         * io/tst-getcwd.c (do_test): Likewise.
437         * resolv/tst-aton.c (main): Likewise.
438         * inet/tst-network.c (main): Likewise.
439         * libio/tst-fgetws.c (main): Likewise.
440         * sysdeps/posix/sprofil.c (add_region): int -> unsigned int for I.
441         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): int -> unsigned int
442         for PTYNO.
444         * stdlib/msort.c (qsort): Add a cast to silence warning.
445         * stdio-common/vfprintf.c (process_string_arg): Likewise.
446         * libio/oldfileops.c (_IO_old_do_write): Likewise.
447         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Likewise.
448         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
449         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
450         * argp/argp-fmtstream.c (__argp_fmtstream_printf): Likewise.
451         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
452         * sysdeps/unix/grantpt.c (grantpt): Likewise.
453         * libio/tst-widetext.c (main): Likewise.
454         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
455         * rt/tst-aio.c (test_file): Likewise.
456         * rt/tst-aio64.c (test_file): Likewise.
457         * resolv/tst-aton.c (main): Likewise.
459         * catgets/catgetsinfo.h (CATGETS_MAGIC): Use U suffix on the constant.
461         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Cast to int32_t
462         instead of uint32_t in these macros.
464 2002-09-22  Bruno Haible  <bruno@clisp.org>
466         * iconv/iconv_prog.c (main): Provide an error message that identifies
467         the wrong encoding.
469         * iconvdata/tscii.c: New file.
470         * iconvdata/testdata/TSCII: New file.
471         * iconvdata/testdata/TSCII..UTF8: New file.
472         * iconvdata/TSCII.precomposed: New file.
473         * iconvdata/TSCII.irreversible: New file.
474         * iconvdata/gconv-modules (TSCII): New module.
475         * iconvdata/Makefile (modules): Add TSCII.
476         (distribute): Add tscii.c.
477         * iconvdata/tst-table-from.c (try, utf8_decode, main): Double output
478         buffer size.
479         * iconvdata/tst-tables.sh: Add TSCII.
480         * iconvdata/TESTS: Add TSCII.
482         Revert 2002-04-18 patch.
483         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
484         FROM_DIRECTION): Make the FROM direction stateful again.
485         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
486         FROM_DIRECTION): Likewise.
488         * iconvdata/tst-e2big.c: New file.
489         * iconvdata/Makefile (tests): Add tst-e2big.
491 2002-09-23  Roland McGrath  <roland@redhat.com>
493         * elf/Makefile (test-extras): Define this instead of test-srcs.
494         * Makerules (all-nonlib): Include $(test-extras) too.
496 2002-09-21  Carlos O'Donell  <carlos@baldric.uwo.ca>
498         * sysdeps/hppa/abort-instr.h: New file.
500 2002-09-22  Roland McGrath  <roland@frob.com>
502         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Remove duplicate entry.
504         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Add alias __GI__exit.
506 2002-09-22  Andreas Schwab  <schwab@suse.de>
508         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Append, not overwrite.
510         * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal)
511         (isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]:
512         Use GCC builtins.
514 2002-09-21  Roland McGrath  <roland@redhat.com>
516         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM):
517         Correct the value so it covers all platforms, and is computed
518         from _DL_PLATFORMS_COUNT rather than hard-wired.
519         From Andrew Suffield <asuffield@debian.org>.
521 2002-09-20  Ulrich Drepper  <drepper@redhat.com>
523         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
524         locking when using mount tab file.
525         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
526         * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
527         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
529         * elf/dl-init.c (_dl_init): Fix test of the size of the
530         preinit_array section.
531         (call_init): Optimize access to DT_INIT_ARRAY entry a bit.
532         Reported by Brian Cabral <cabral@ikuni.com>.
534 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
536         * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros.
537         * sysdeps/powerpc/powerpc32/sysdep.h: New file.  Define powerpc32
538         specific macros copied from sysdeps/powerpc/sysdep.h.
539         * sysdeps/powerpc/powerpc64/sysdep.h: New file.  Define powerpc64
540         specific macros.
541         * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>.
542         [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h.
543         [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h.
545 2002-09-19  Bruno Haible  <bruno@clisp.org>
547         * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
548         returning.
550 2002-09-17  Bruno Haible  <bruno@clisp.org>
552         * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
553         * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
554         also on platforms with !HAVE_UT_TYPE.
555         (proc_utmp_eq): Remove function.
556         (internal_getut_r, pututline_file): Call __utmp_equal instead.
558 2002-09-20  Bruno Haible  <bruno@clisp.org>
560         * abi-tags: Add support for FreeBSD with ABI OS value 3.
561         * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
563 2002-09-20  Roland McGrath  <roland@redhat.com>
565         * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
566         (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
567         terms of __WORDSIZE.
568         * sysdeps/x86_64/gmp-mparam.h: File removed.
569         * sysdeps/sparc/gmp-mparam.h: File removed.
570         * sysdeps/mips/mips64/gmp-mparam.h: File removed.
571         * sysdeps/ia64/gmp-mparam.h: File removed.
572         * sysdeps/alpha/gmp-mparam.h: File removed.
574 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
576         * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
577         load, so as to work on both 32-bit and 64-bit.  Remove unnecessary
578         casts.  Align __libc_stack_end to 8 bytes.
580 2002-09-20  Roland McGrath  <roland@redhat.com>
582         * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
583         instead of asm for lrintf, __lrintf aliases.
585         * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
586         int array for 32-/64-bit compatibility.
587         From Steven Munroe  <sjmunroe@us.ibm.com>.
589 2002-09-17  Bruno Haible  <bruno@clisp.org>
591         * sysdeps/generic/ifreq.h (__if_nextreq): New function.
592         * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
593         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
594         * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
595         for iterating through the list of interfaces.
596         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
598 2002-09-20  Roland McGrath  <roland@redhat.com>
600         * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
601         Reported by Bruno Haible <bruno@clisp.org>.
603         * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
605         * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
606         * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
607         isatty unmodified.  Reported by Bruno Haible <bruno@clisp.org>.
609 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
611         * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
612         * sysdeps/powerpc/bits/wordsize.h: New file.
613         * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
614         array to int array for 32-/64-bit compatibility.
616 2002-09-20  Roland McGrath  <roland@redhat.com>
618         * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
620         * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
621         Reported by Bruno Haible <bruno@clisp.org>.
623         * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
624         before doubling RQ_LEN.
625         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
626         Reported by Bruno Haible <bruno@clisp.org>.
628 2002-09-18  Bruno Haible  <bruno@clisp.org>
630         * login/logout.c (logout): Don't assume ut_time has the same size as
631         a time_t.
632         * login/logwtmp.c (logwtmp): Likewise.
634         * sysdeps/pthread/configure: New file, moved here from
635         linuxthreads/sysdeps/unix/sysv/linux/configure.
637 2002-09-19  Ulrich Drepper  <drepper@redhat.com>
639         * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
640         (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
641         Reported by Glen Nakamura <glen@imodulo.com>.
643 2002-09-19  Neal H. Walfield  <neal@cs.uml.edu>
645         * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
646         thread's sigstate data structure if it has been allocated.
648 2002-09-19  Roland McGrath  <roland@redhat.com>
650         * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
651         [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
653 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
655         * version.h (VERSION): Bump to 2.2.94.
657         * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
658         * sysdeps/powerpc/powerpc32/fpu/Dist: ...here.  New file.
659         * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
660         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
662         * sysdeps/i386/Makefile: Remove obsolete db2 rules.
664         * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
666         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
670 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
672         * sysdeps/wordsize-32/Makefile: New file.
673         * sysdeps/arm/Makefile: Removed.
674         * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
675         Don't add divdi3 here.
676         * sysdeps/m68k/Makefile: Likewise.
677         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
678         * sysdeps/sh/Makefile: Likewise.
679         * sysdeps/s390/s390-32/Makefile: Likewise.
681 2002-09-18  Roland McGrath  <roland@redhat.com>
683         * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
684         the __ctype_* compat symbols, so the relocs generated bind to the
685         right versioned global symbol in the shared object.
687         * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
688         from the value taken from the DT_VERSYM table.
689         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
690         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
691         (RESOLVE_GOTSYM): Likewise.
693         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
694         Add libc_hidden_def.
695         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
696         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
697         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
698         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
699         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
700         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
701         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
702         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
704 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
706         * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
708         * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
709         define sigaction and __sigaction as wrappers around
710         __libc_sigaction which rejects changing SIGCANCEL.
711         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
713         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
714         SETTID/CLEARTID.
716         * signal/allocrtsig.c: Move to...
717         * sysdeps/generic/allocrtsig.c: ...here.  New file.
719 2002-09-17  Jakub Jelinek  <jakub@redhat.com>
721         * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
723         * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
724         R_386_TLS_LE): Define.
725         (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
726         comments.
727         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
728         ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
729         (elf_machine_rel): Handle R_386_TLS_TPOFF.
730         (elf_machine_rela): Likewise.
731         Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
733 2002-09-17  Roland McGrath  <roland@redhat.com>
735         * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
736         file-specific variable override so it compiles properly when using
737         --with-headers.
739 2002-09-17  Steven Munroe  <sjmunroe@us.ibm.com>
741         Ported to PowerPC64 running Linux.
742         * sysdeps/powerpc/powerpc64/Dist: New file.
743         * sysdeps/powerpc/powerpc64/Implies: New file.
744         * sysdeps/powerpc/powerpc64/Makefile: New file.
745         * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
746         * sysdeps/powerpc/powerpc64/atomicity.h: New file.
747         * sysdeps/powerpc/powerpc64/backtrace.c: New file.
748         * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
749         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
750         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
751         * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
752         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
753         * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
754         * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
755         * sysdeps/powerpc/powerpc64/memset.S: New file.
756         * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
757         * sysdeps/powerpc/powerpc64/register-dump.h: New file.
758         * sysdeps/powerpc/powerpc64/setjmp.S: New file.
759         * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
760         * sysdeps/powerpc/powerpc64/strchr.S: New file.
761         * sysdeps/powerpc/powerpc64/strcmp.S: New file.
762         * sysdeps/powerpc/powerpc64/strcpy.S: New file.
763         * sysdeps/powerpc/powerpc64/strlen.S: New file.
764         * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
765         * sysdeps/powerpc/powerpc64/elf/start.S: New file.
766         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
767         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
768         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
769         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
771         * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
772         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
774         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
776         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
777         (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
778         various gcc versions.  Dot names required for powerpc64.
779         [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
780         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
781         C_SYMBOL_DOT_NAME(alias).
782         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
783         original strong_alias macro.
784         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
785         C_SYMBOL_DOT_NAME(alias).
786         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
787         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
788         '.'ed name.
789         Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
790         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro.  Generate
791         .global C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
792         (hidden_def): Append hidden_dot_def1 macro to definition.
793         (hidden_ver): Append hidden_dot_def1 macro to definition.
794         (hidden_data_def): New macro.  Same as original hidden_def macro.
795         (hidden_data_ver): New macro.  Same as original hidden_ver macro.
796         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro.  Generate
797         .weakext C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
798         (hidden_weak): Append hidden_dot_weak1 macro to definition.
799         (hidden_data_weak): New macro.  Same as original hidden_weak macro.
800         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
801         Otherwise defined as __GI_name.
802         (libc_hidden_data_def): New macro.  Use hidden_data_def.
803         (libc_hidden_data_weak): New macro.  Use hidden_data_weak.
804         (libc_hidden_data_ver): New macro.  Use hidden_data_ver.
805         (rtld_hidden_data_def): New macro.  Use hidden_data_def.
806         (rtld_hidden_data_weak): New macro.  Use hidden_data_weak.
807         (rtld_hidden_data_ver): New macro.  Use hidden_data_ver.
808         (libm_hidden_data_def): New macro.  Use hidden_data_def.
809         (libm_hidden_data_weak): New macro.  Use hidden_data_weak.
810         (libm_hidden_data_ver): New macro.  Use hidden_data_ver.
811         * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
813 2002-09-17  Ulrich Drepper  <drepper@redhat.com>
815         * include/libc-symbols.h: Change *hidden_proto macros to accept
816         option parameters and pass those to the attribute definition.
817         * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
819         * include/unistd.h: Declare __libc_pause.
821         * include/sys/socket.h: Declare __libc_send, __libc_recv,
822         __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
824         * include/unistd.h: Declare __libc_fork.
826 2002-09-17  Roland McGrath  <roland@redhat.com>
828         * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
829         (passwd2des): Define it as an alias.
830         (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
832 2002-09-12  Bruno Haible  <bruno@clisp.org>
834         * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
835         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
837         * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
838         * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
840 2002-09-05  Steven Munroe  <sjmunroe@us.ibm.com>
842         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
843         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
844         __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
845         PowerPC64 does not have separate 64-bit syscalls.
847 2002-09-16  Roland McGrath  <roland@redhat.com>
849         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
852         New macro.
854         * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
856         * include/unistd.h: Uncomment libc_hidden_proto for _exit.
857         * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
858         * sysdeps/generic/_exit.c: Likewise.
860 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
862         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
864         * elf/rtld.c (struct dl_start_final_info): New.
865         (_dl_start_final): Change second argument to struct
866         dl_start_final_info *.  Set start_time from info.
867         (_dl_start): Remove bootstrap_map variable, add info.
868         Define bootstrap_map as macro.  If not DONT_USE_BOOTSTRAP_MAP,
869         store HP_TIMING_NOW result into info.start_time.
871 2002-09-16  Andreas Jaeger  <aj@suse.de>
873         * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
874         to _Exit.
875         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
877 2002-09-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
879         * sysdeps/powerpc/abort-instr.h: New file.
881 2002-09-14  Ulrich Drepper  <drepper@redhat.com>
883         * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
884         comment.
886         * test-skeleton.c (main): Provide more information in case waitpid
887         fails.
889         * include/unistd.h: Declare __exit_thread.
890         * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
891         Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
892         * sysdeps/unix/sysv/linux/exit-thread.S: New file.
893         * sysdeps/unix/sysv/linux/_exit.c: New file.
894         * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
895         * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
896         Add exit-thread.
898         * configure.in: Add dl_iterate_phdr to test using -nostdlib.
900 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
902         * sysdeps/i386/dl-machine.h (elf_machine_rel)
903         (case R_386_TLS_DTPMOD32): Don't use addend.
904         [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
905         (elf_machine_rela): Add support for TLS relocs.
907 2002-09-14  Roland McGrath  <roland@redhat.com>
909         * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
911 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
913         * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
914         specific asm macros for multiple percision integer math.
916 2002-06-04  Steven Munroe  <sjmunroe@us.ibm.com>
918         * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
919         * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
920         Remove per-machine conditionals for FLAG_* cases.
921         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
922         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
923         * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
925 2002-09-10  Alan Modra <amodra@bigpond.net.au>
927         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
928         defined in entry.h.
929         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
930         lowest address for profiling in  __monstartup call.
931         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
933 2002-09-14  Roland McGrath  <roland@redhat.com>
935         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
936         instead of __NR_pread.
937         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
938         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
939         instead of __NR_pwrite.
940         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
942 2002-09-13  Roland McGrath  <roland@redhat.com>
944         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
946 2002-09-13  Andreas Jaeger  <aj@suse.de>
948         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
949         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
951 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
953         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
955 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
957         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
958         reading the headers.
960 2002-09-12  Roland McGrath  <roland@redhat.com>
962         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
963         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
964         find the ELF header.
966         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
967         executable if needed, in case it's actually a shared object.
969 2002-09-11  Roland McGrath  <roland@redhat.com>
971         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
972         l_map_start to adjust l_tls_initimage.
974         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
975         when using h_errno and it's not set to NETDB_INTERNAL.
976         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
978         * Makefile ($(common-objpfx)testrun.sh): New target.
979         (others): Depend on it.
980         (postclean-generated): Append it.
982         * nss/bug-erange.c: New file.
983         * nss/Makefile (tests): Add it.
985         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
986         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
988         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
989         strncmp, keeps the code smaller for a non-performance-critical case.
991         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
992         no longer wrongly matches arbitrary prefixes of NAME.
993         Reported by Jakub Jelinek <jakub@redhat.com>.
995 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
997         * posix/bug-regex11.c (tests): New array.
998         (main): Rewritten to run more different tests.
1000 2002-09-10  Roland McGrath  <roland@redhat.com>
1002         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
1003         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
1004         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
1006         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
1007         well so we don't get it declared by include/math.h's hidden_proto.
1008         Then do hidden_proto for __isnanf locally so hidden_def works right.
1010         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
1011         a cast to turn nl_langinfo return value into an integer.
1013 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
1015         * posix/regexec.c (build_trtable): Fix the destination of
1016         newline to prevent wrong states from overwriting.
1017         Append break statements to optimization.
1019 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
1021         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
1022         (build_range_exp): Add castings to strlen invocations.
1023         (build_collating_symbol): Restore the type of characters from "char"
1024         to "unsigned char", and supplement castings.
1025         (build_collating_symbol): Likewise.
1026         (build_equiv_class): Likewise.
1027         (build_charclass): Likewise.
1028         (seek_collating_symbol_entry): Likewise.
1029         (parse_bracket_exp): Likewise.
1030         (build_word_op): Supplement a casting.
1031         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
1032         (re_string_allocate): Fix castings.
1033         (re_string_construct): Likewise.
1034         (re_string_construct_common): Likewise.
1035         (re_string_realloc_buffers): Likewise.
1036         (build_wcs_buffer): Likewise.
1037         (build_wcs_upper_buffer): Likewise.
1038         (re_string_skip_chars): Likewise.
1039         (re_string_reconstruct): Likewise.
1040         * posix/regex_internal.h: Restore the type of characters in
1041         re_string_t and bracket_elem_t from "char" to "unsigned char".
1042         (re_string_elem_size_at): Fix castings.
1043         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
1044         (transit_state_bkref_loop): Restore the type of characters from
1045         "char" to "unsigned char", and append a cast to "char*" pointer in
1046         array subscript.
1047         (check_node_accept_bytes): Likewise.
1048         (find_collation_sequence_value): Likewise.
1050 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
1052         * sysdeps/mips/memcpy.S: New file.
1053         * sysdeps/mips/memset.S: New file.
1054         * sysdeps/mips/fpu/e_sqrt.c:  New file.
1055         * sysdeps/mips/fpu/e_sqrtf.c: New file.
1057         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
1058         functional before. Also removed all SHLIB_COMPAT stuff.
1059         * fpu/fegetenv.c: Likewise.
1060         * fpu/fesetenv.c:: Likewise.
1061         * fpu/feupdateenv.c: Likewise.
1062         * fpu/fgetexcptflg.c: Likewise.
1063         * fpu/fraiseexcpt.c: Likewise.
1065         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
1067 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
1069         * include/math.h (__finite_internal, __finitef_internal,
1070         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
1071         (isfinite): Remove.
1072         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
1073         __isinfl, __isnanl): Add hidden_proto.
1074         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
1075         libm_hidden_proto.
1076         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
1077         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
1078         __is{inf,nan} calls.
1079         * stdio-common/printf_size.c (printf_size): Likewise.
1080         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
1081         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
1082         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
1083         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
1084         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
1085         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
1086         (__finite): Add hidden_def.
1087         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
1088         (__finitef): Add hidden_def.
1089         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
1090         (__finitel): Add hidden_def.
1091         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
1092         hidden_def.
1093         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
1094         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
1095         libm_hidden_def.
1096         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
1097         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
1098         hidden_def.
1099         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
1100         (__isinfl): Remove INTDEF.
1101         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
1102         hidden_def.
1103         (__isnanl): Remove INTDEF.
1104         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
1105         libm_hidden_def.
1106         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
1107         instead of sin and cos.
1108         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
1109         Add hidden_def.
1110         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
1111         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
1112         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
1113         libm_hidden_def.
1114         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
1115         Add hidden_def.
1116         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
1117         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
1118         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
1119         libm_hidden_def.
1120         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
1121         libm_hidden_def.
1122         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
1123         Add hidden_def.
1124         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
1125         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
1126         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
1127         libm_hidden_def.
1128         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
1129         __finitel_internal): Remove aliases.
1130         (__finite, __finitef, __finitel): Add hidden_def.
1131         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
1132         __isnanl_internal): Remove aliases.
1133         (__isnan, __isnanf, __isnanl): Add hidden_def.
1134         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
1135         __isinfl_internal): Remove aliases.
1136         (__isinf, __isinff, __isinfl): Add hidden_def.
1137         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
1138         __fpclassifyl): Add libm_hidden_def.
1139         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
1140         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
1141         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
1142         (hidden_defx): Define and use.
1143         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
1144         libm_hidden_def.
1145         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
1146         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
1147         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
1148         Remove INTDEF.
1149         (__isnan, __isnanf): Add hidden_def.
1150         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
1151         (__finitel): Add libm_hidden_def.
1152         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
1154         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
1155         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
1156         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1157         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
1158         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1159         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
1160         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
1161         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
1162         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1163         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
1164         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1165         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
1166         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1167         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
1168         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1169         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
1170         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1171         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
1172         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1173         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
1174         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1175         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
1176         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1177         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
1178         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1179         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
1180         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
1182 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
1184         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
1186 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
1188         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
1189         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
1191 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
1193         * string/stratcliff.c: Some more strncpy tests.
1194         Patch by Daniel Jacobowitz <drow@mvista.com>.
1196 2002-09-08  Roland McGrath  <roland@redhat.com>
1198         * resolv/resolv.h: Include <sys/types.h> for u_long even in
1199         the [__need_res_state] case.
1200         Reported by Bruno Haible <bruno@clisp.org>.
1202 2002-09-04  Bruno Haible  <bruno@clisp.org>
1204         * sysdeps/generic/bits/ustat.h: Comment fix.
1205         * io/sys/sendfile.h: Comment fix.
1206         * sysdeps/posix/pread.c: Comment fix.
1207         * sysdeps/posix/pread64.c: Comment fix.
1208         * sysdeps/posix/pwrite.c: Comment fix.
1209         * sysdeps/posix/pwrite64.c: Comment fix.
1211 2002-09-06  Roland McGrath  <roland@redhat.com>
1213         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
1214         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
1215         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
1216         (_UTSNAME_MACHINE_LENGTH): Likewise.
1217         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
1219 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
1221         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
1222         test for filesystem type name of mount points.
1224         * include/errno.h: Use errno definition with __thread for now only
1225         in libc and ld.so.
1227         * test-skeleton.c (main): Improve error message for unexpected
1228         signal case.
1230 2002-09-05  Roland McGrath  <roland@redhat.com>
1232         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
1233         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1235 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
1237         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
1238         case of failure.
1240 2002-09-04  Bruno Haible  <bruno@clisp.org>
1242         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
1243         sigset_get_old_mask): Turn into inline functions.
1244         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
1245         sigset_get_old_mask): Likewise.
1246         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
1247         sigset_get_old_mask): Likewise.
1248         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
1249         syntax.
1251         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
1253         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
1254         default definitions.
1255         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
1256         _sys_nerr_internal instead of _sys_nerr.
1258         * nscd/connections.c (handle_request): Declare CALLER inside #if.
1260 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
1262         * sysdeps/powerpc/__longjmp.S: Moved to...
1263         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
1264         * sysdeps/powerpc/add_n.S: Moved to...
1265         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
1266         * sysdeps/powerpc/addmul_1.S: Moved to...
1267         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
1268         * sysdeps/powerpc/atomicity.h: Moved to...
1269         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
1270         * sysdeps/powerpc/backtrace.c: Moved to...
1271         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
1272         * sysdeps/powerpc/bp-asm.h: Moved to...
1273         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
1274         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
1275         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
1276         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
1277         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
1278         * sysdeps/powerpc/dl-machine.c: Moved to...
1279         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
1280         * sysdeps/powerpc/dl-machine.h: Moved to...
1281         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
1282         * sysdeps/powerpc/dl-start.S: Moved to...
1283         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
1284         * sysdeps/powerpc/gprrest0.S: Moved to...
1285         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
1286         * sysdeps/powerpc/gprrest1.S: Moved to...
1287         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
1288         * sysdeps/powerpc/gprsave0.S: Moved to...
1289         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
1290         * sysdeps/powerpc/gprsave1.S: Moved to...
1291         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
1292         * sysdeps/powerpc/lshift.S: Moved to...
1293         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
1294         * sysdeps/powerpc/memset.S: Moved to...
1295         * sysdeps/powerpc/powerpc32/memset.S: ...here.
1296         * sysdeps/powerpc/mul_1.S: Moved to...
1297         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
1298         * sysdeps/powerpc/ppc-mcount.S: Moved to...
1299         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
1300         * sysdeps/powerpc/register-dump.h: Moved to...
1301         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
1302         * sysdeps/powerpc/rshift.S: Moved to...
1303         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
1304         * sysdeps/powerpc/setjmp.S: Moved to...
1305         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
1306         * sysdeps/powerpc/stpcpy.S: Moved to...
1307         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
1308         * sysdeps/powerpc/strchr.S: Moved to...
1309         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
1310         * sysdeps/powerpc/strcmp.S: Moved to...
1311         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
1312         * sysdeps/powerpc/strcpy.S: Moved to...
1313         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
1314         * sysdeps/powerpc/strlen.S: Moved to...
1315         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
1316         * sysdeps/powerpc/sub_n.S: Moved to...
1317         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
1318         * sysdeps/powerpc/submul_1.S: Moved to...
1319         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
1320         * sysdeps/powerpc/elf/bzero.S: Moved to...
1321         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
1322         * sysdeps/powerpc/elf/start.S: Moved to...
1323         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
1324         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
1325         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
1326         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
1327         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
1328         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
1329         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
1330         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
1331         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
1332         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
1333         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
1334         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
1335         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
1336         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
1337         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
1338         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
1339         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
1340         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
1341         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
1342         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
1343         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
1344         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
1345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
1346         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
1347         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
1348         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
1349         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
1350         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
1351         powerpc/powerpc64.
1353 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
1355         * FAQ.in: Add powerpc64 to supported targets list. Also state the
1356         minimum gcc version is 3.2
1357         * README: Add powerpc64 to supported targets list.
1358         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
1359         Add powerpc64 and machine=powerpc/powerpc64.
1360         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
1361         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
1362         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
1363         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
1364         * sysdeps/powerpc/powerpc32/Dist: New file.
1365         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
1366         * sysdeps/powerpc/powerpc32/Implies: New file.
1367         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
1368         ($(with-fp) = no): Move test to powerpc32/Makefile.
1369         ($(subdir) = misc): Move to powerpc32/Makefile.
1370         ($(build-shared) = yes): Move to powerpc32/Makefile.
1371         ($(subdir) = csu): Move to powerpc32/Makefile.
1372         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
1373         * sysdeps/powerpc/powerpc32/Makefile: New file.
1374         * sysdeps/powerpc/Versions: Remove libgcc functions.
1375         * sysdeps/powerpc/powerpc32/Versions: New file.
1376         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
1377         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
1378         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
1379         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
1380         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
1381         ($machine): Add powerpc/powerpc64 to if ... | for
1382         libc_cv_slibdir=/libc64.
1383         (powerpc*): Set ldd_rewrite_script.
1384         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
1385         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
1386         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
1387         Add clone.S.
1388         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
1389         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
1390         functions.  Remove GLIBC_2.2 functions except getrlimit and
1391         setrlimit.  Moved them to ...
1392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
1394 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
1396         * libio/tst-atime.c: Include <errno.h>.
1397         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
1399 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
1401         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
1402         warnings of some compilers.
1403         (build_collating_symbol): Change the type of characters from
1404         "unsigned char" to "char", and append a cast to "char*" pointer in
1405         array subscript.
1406         (build_collating_symbol): Likewise.
1407         (build_equiv_class): Likewise.
1408         (build_charclass): Likewise.
1409         (re_compile_pattern): Remove incorrect cast.
1410         (re_compile_fastmap_iter): Change the type of characters from
1411         "unsigned char" to "char", and append a cast to "char*" pointer
1412         in array subscript.
1413         (parse_bracket_exp): Likewise.
1414         * posix/regex_internal.c (re_string_construct_common): Likewise.
1415         (re_string_allocate): Likewise.
1416         (re_string_construct): Likewise.
1417         (re_string_realloc_buffers): Likewise.
1418         (build_wcs_buffer): Likewise.
1419         (re_string_reconstruct): Likewise.
1420         * posix/regex_internal.h: Change the type of characters in
1421         re_string_t and bracket_elem_t from "unsigned char" to "char".
1422         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
1423         warnings of some compilers.
1424         (transit_state_bkref_loop): Change the type of characters from
1425         "unsigned char" to "char", and append a cast to "char*" pointer in
1426         array subscript.
1427         (check_node_accept_bytes): Likewise.
1428         (find_collation_sequence_value): Likewise.
1430 2002-09-04  Roland McGrath  <roland@redhat.com>
1432         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
1433         from 1024 to 65536, to avoid buffer overrun.
1435 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
1437         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
1439 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
1441         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
1442         for filesystem.
1444 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
1446         * posix/bug-regex11.c: New test.
1447         * posix/Makefile (tests): Add bug-regex11.
1449 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
1451         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
1452         newlocale.
1454 2002-09-02  Roland McGrath  <roland@redhat.com>
1456         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
1457         __pthread_initialize_minimal and __libc_check_standard_fds to
1458         match the generic version.
1460         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
1461         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
1463         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
1464         warnings on platorms where char is unsigned.
1466 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
1468         * version.h (VERSION): Bump to 2.2.93.
1470         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
1472 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
1474         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
1475         as relocated.
1477 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
1479         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
1481 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
1483         * locale/localeinfo.h (struct locale_data): Add private.ctype.
1484         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
1485         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
1486         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
1487         (__wcsmbs_load_conv): Remove const from argument.
1488         (_nl_cleanup_ctype): New proto.
1489         (get_gconv_fcts): New function.
1490         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
1491         (__wcsmbs_to_wc): Rename back to...
1492         (to_wc): ... this.
1493         (__wcsmbs_gconv_fcts): Rename to...
1494         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
1495         (lock): Removed.
1496         (__libc_setlocale_lock): New extern.
1497         (__wcsmbs_load_conv): Remove const from argument.
1498         Initialize new_category->private.ctype instead of a global
1499         variable.
1500         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
1501         update_function_ptrs.  No locking is necessary.
1502         (_nl_cleanup_ctype): New function.
1503         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
1504         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
1505         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1506         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
1507         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
1508         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
1509         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
1510         * wcsmbs/wctob.c (wctob): Likewise.
1511         * stdlib/mblen.c (mblen): Likewise.
1512         * stdlib/mbtowc.c (mbtowc): Likewise.
1513         * stdlib/wctomb.c (wctomb): Likewise.
1514         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
1515         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
1516         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
1517         Removed.
1519 2002-09-02  Roland McGrath  <roland@frob.com>
1521         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
1523 2002-09-01  Roland McGrath  <roland@redhat.com>
1525         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
1526         Variable declarations removed.
1527         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
1528         these functions to replace them.
1529         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
1530         functions plus an indirection rather than the old global variables.
1531         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
1532         Macros removed.
1533         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
1534         inline functions.
1535         * ctype/ctype-info.c: Revert last reversion back the other way.
1536         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
1537         Define real function versions of include/ctype.h inlines here.
1538         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
1539         __ctype_tolower_loc, __ctype_toupper_loc.
1540         * locale/lc-ctype.c: Revert last reversion back the other way.
1541         (_nl_postload_ctype): If current thread uses the global locale,
1542         update its tsd vars.
1543         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
1544         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
1545         CTYPE_TOLOWER, CTYPE_TOUPPER.
1547         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
1548         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
1549         from __libc_tsd_threadvar_location.
1550         (__libc_tsd_set, __libc_tsd_get): Update uses.
1552 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
1554         * ctype/ctype.h: Undo the patch before the last one.  Put back the
1555         macro definitions for the standard functions to access the
1556         classification and mapping arrays.
1557         * include/ctype.h: Partly revert last patch.  Move the macro
1558         definitions for the exported functions back to the public header.
1559         #undef all the macros defined here before redefining.
1560         * ctype/ctype-info.c: Revert last patch.
1561         * locale/lc-ctype.c: Revert last patch.
1563         * ctype/Makefile (routines): Add isctype.
1564         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
1565         * ctype/ctype.h: Add declaration of isctype.
1566         * include/ctype.h: Declare __isctype.
1567         * ctype/isctype.c: New file.
1569 2002-09-01  Roland McGrath  <roland@redhat.com>
1571         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
1572         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
1574         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
1576         * locale/findlocale.c (_nl_remove_locale): Don't search in
1577         _nl_locale_file_list if DATA->alloc is ld_archive.
1578         Use _nl_unload_locale to do the rest of the work.
1580         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
1581         of new structure to UNDELETABLE.
1583         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
1584         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
1585         towlower, towupper): Macros removed.
1586         * ctype/ctype.h (__tobody): Put parens around macro argument.
1587         (__isctype): Macro removed.
1588         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
1589         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1590         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1591         tolower, toupper): Macros and inlines removed.
1592         * include/ctype.h [! NOT_IN_libc]
1593         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
1594         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
1595         tolower, toupper): Define here instead, using _NL_CURRENT.
1596         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
1597         using _NL_CURRENT.
1598         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
1599         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
1600         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
1601         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
1602         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
1603         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
1604         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
1605         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
1606         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
1607         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
1608         (ISSORTMASK): Update use.
1609         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
1610         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
1611         (_nss_files_getENTNAME_r): Likewise.
1612         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
1613         Likewise.
1615         * Makerules (all-nonlib): Renamed from all-tests.
1616         Include $(others) here too.
1617         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
1618         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
1619         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
1620         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
1621         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
1622         the program modules via cppflags-iterator.mk.
1623         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
1624         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
1626 2002-08-31  Roland McGrath  <roland@redhat.com>
1628         * posix/tst-getconf.sh: If no third arg, work with static linking.
1630         * locale/categories.def (LC_TIME): No more _nl_postload_time.
1632         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
1633         [_NL_CURRENT_INDIRECT].
1635 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1637         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
1639 2002-08-31  Roland McGrath  <roland@redhat.com>
1641         * locale/newlocale.c (__newlocale): Don't use strdup for names.
1642         Instead, make the single allocation of the structure larger to hold
1643         the name strings.
1644         * locale/duplocale.c (__duplocale): Don't strdup names individually.
1645         Instead, calculate size for a single allocation and copy into it.
1646         * locale/freelocale.c (__freelocale): Don't free names individually.
1648         * locale/newlocale.c (__newlocale): Don't leak old data or names.
1650         * locale/xlocale.h (__locale_struct): Move __names member last,
1651         for binary compatibility.
1653         * locale/duplocale.c (__duplocale): Free names from the right array.
1655         * locale/uselocale.c (__uselocale): Return previous locale when
1656         setting a new one.
1658         * locale/newlocale.c: Commit changes from 2002-08-30
1659         batch where I failed to commit this file:
1660         (__newlocale): Fill in __names array.
1662 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1664         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
1665         errlist-compat.c if versioning==yes.
1667 2002-08-31  Andreas Jaeger  <aj@suse.de>
1669         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
1670         external functions with hidden attribute.
1671         (elf_machine_rela): Optimize.
1673         * sysdeps/x86_64/memset.S: New file.
1674         * sysdeps/x86_64/bzero.S: New file.
1675         * sysdeps/x86_64/stpcpy.S: New file.
1676         * sysdeps/x86_64/strcat.S: New file.
1677         * sysdeps/x86_64/strchr.S: New file.
1678         * sysdeps/x86_64/strcpy.S: New file.
1679         * sysdeps/x86_64/strcspn.S: New file.
1680         * sysdeps/x86_64/strlen.S: New file.
1681         * sysdeps/x86_64/strpbrk.S: New file.
1682         * sysdeps/x86_64/strspn.S: New file.
1683         * sysdeps/x86_64/strcmp.S: New file.
1684         * sysdeps/x86_64/strtok_r.S: New file.
1685         * sysdeps/x86_64/strtok.S: New file.
1686         * sysdeps/x86_64/memcpy.S: New file.
1687         * sysdeps/x86_64/mempcpy.S: New file.
1689         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
1691         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
1693 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
1695         * stdio-common/Makefile (generated): Add errlist-compat.c.
1697         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
1699         * locale/localeinfo.h: Pretty printing.
1701         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
1702         form_number handling.
1704 2002-08-31  Andreas Jaeger  <aj@suse.de>
1706         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
1707         double tests.
1709         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
1710         __start_context.
1712         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
1714         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
1716         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
1717         registers used for passing args.
1719         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
1720         all needed registers.
1722         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
1723         registers.
1725         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
1726         registers.
1728 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
1730         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
1731         always_inline attribute.
1733 2002-08-30  Roland McGrath  <roland@redhat.com>
1735         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
1736         presume it's the stub and bail without error.
1738         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
1739         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
1741         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
1743         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
1744         macros replace the i686 versions for 64-bit mode.
1746         * locale/duplocale.c: Include <string.h>.
1748         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
1749         [_LIBC] (category_to_name): Don't define the function.  Instead
1750         define a macro using _nl_category_names.
1752         * locale/xlocale.h (struct __locale_struct): New member `__names'.
1753         * locale/xlocale.c (_nl_C_locobj): Update initializer.
1754         * locale/global-locale.c (_nl_global_locale): Likewise.
1755         * locale/duplocale.c (__duplocale): strdup __names elements.
1756         * locale/freelocale.c (__freelocale): Free __names elements.
1757         * locale/localename.c (_nl_current_names): Variable removed.
1758         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
1759         * locale/localeinfo.h (_nl_current_names): Removed decl.
1760         * locale/setlocale.c: Use _nl_global_locale->__names in place of
1761         _nl_current_names throughout.
1763         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
1765         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
1766         and sys_nerr in the output file.
1768         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
1769         * scripts/cpp: Just use the environment variable.
1771         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
1772         * libio/tst-mmap-offend.c (do_test): Likewise.
1773         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
1774         * libio/tst-mmap-eofsync.c (do_test): Likewise.
1775         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
1777         * locale/localename.c: If the current locale is the global locale, use
1778         _nl_current_names; otherwise use the locale object.
1780 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1782         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
1783         'm' to enable mmap I/O.
1784         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
1785         former wasn't used (anymore?).
1786         (_IO_FLAGS2_MMAP): New define.
1787         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
1788         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
1789         _IO_FLAGS2_MMAP bit is set.
1790         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
1791         Enable mmap-using mode only if 'm' was set.
1793 2002-08-29  Roland McGrath  <roland@frob.com>
1795         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
1797         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
1798         Change argument type from int to intptr_t.
1800         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
1801         initializer on [! _HURD_THREADVAR_H] (bad kludge).
1802         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
1803         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
1804         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
1806         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
1808         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
1810         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
1812         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
1813         * assert/assert-perr.c: Add libc_hidden_def.
1814         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
1816         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
1817         found at all.
1818         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
1819         sys_errlist stuff to ...
1820         * sysdeps/unix/sysv/linux/Versions: ... here.
1822         * mach/mach.h: Include <features.h>.
1824 2002-08-29  Roland McGrath  <roland@redhat.com>
1826         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
1827         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
1828         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
1830         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
1832         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
1833         (norm_add_slashes): alloca -> __alloca
1835 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
1837         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
1838         string_malloced, it is unlikely to be set.
1839         Only call free with non-NULL workspace.
1840         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
1841         -mcpu=ultrasparc, not only tune for it.
1842         (ASFLAGS*): Set unconditionally.
1844         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
1845         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
1846         p_vaddr/p_offset when computing LOADADDR.
1848 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
1850         * version.h (VERSION): Bump to 2.2.92.
1852         * time/Makefile (tst-ftime_l-ENV): New variable.
1854         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
1856         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
1857         <U017A>, <U017D> and <U0179>. Add missing mappings.
1858         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
1860         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
1861         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
1862         (struct tostruct): Use ACRINDEX as type for link field.
1863         (statuc gmonparam): Likewise for froms.
1864         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
1865         kcount and froms.
1866         (write_call_graph): Use correct type for from_index and to_index.
1867         * gmon/mcount.c: Use correct types for frompcindex and toindex
1868         variables.
1869         Patches by Dan Kegel <dank@kegel.com>.
1871         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
1872         canonical name.
1874         * time/strptime.c (ISSPACE): New #define.  Use isspace or
1875         __isspace_l.  Replace calls to isspace.
1876         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
1878 2002-08-29  Roland McGrath  <roland@redhat.com>
1880         * string/tst-strxfrm.c: Remove __ from function names.
1882 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1884         * include/wchar.h: Declare __mbsrtowcs_l.
1885         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
1886         * wcsmbs/mbsrtowcs.c: Add support for compilation with
1887         USE_IN_EXTENDED_LOCALE_MODEL.
1888         * wcsmbs/mbsrtowcs_l: New file.
1889         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
1890         define as static.  Change all uses.
1891         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
1892         Change all callers.
1893         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
1894         * time/strftime.c: When translating for the extended locale model
1895         use the _l functions.
1896         * time/Makefile (tests): Add tst-ftime_l.
1897         * time/tst-ftime_l.c: New file.
1899 2002-08-28  Roland McGrath  <roland@redhat.com>
1901         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
1902         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
1903         from _nl_find_locale ok if for _nl_C_name.
1905         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
1906         iterator to refer to each category's _nl_current_LC_FOO symbol, so
1907         we know they are all linked in.
1909         * NEWS: Added 2.2.6 text from 2.2 branch version.
1911         * time/strptime.c (strptime_internal): Remove spurious const.
1913         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
1914         _nl_select_era_entry): Moved to ...
1915         * time/era.c: ... here, new file.
1916         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
1917         Add internal_function to definitions.  Take an additional argument
1918         giving the `struct locale_data *' to use.
1919         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
1920         _nl_parse_alt_digit): Moved to ...
1921         * time/alt_digit.c: ... here, new file.
1922         * time/lc-time-cleanup.c: New file.
1923         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
1924         * locale/localeinfo.h (_nl_postload_time): Remove decl.
1925         (_nl_cleanup_time): Declare it.
1926         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
1927         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
1928         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
1929         * time/strftime.c: Pass locale data to helper functions.
1930         * time/strptime.c: Likewise.
1932         * locale/localeinfo.h (struct locale_data): New member `private'
1933         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
1934         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
1935         * locale/C-collate.c: Update initializer.
1936         * locale/C-identification.c: Likewise.
1937         * locale/C-measurement.c: Likewise.
1938         * locale/C-telephone.c: Likewise.
1939         * locale/C-address.c: Likewise.
1940         * locale/C-name.c: Likewise.
1941         * locale/C-paper.c: Likewise.
1942         * locale/C-time.c: Likewise.
1943         * locale/C-numeric.c: Likewise.
1944         * locale/C-monetary.c: Likewise.
1945         * locale/C-messages.c : Likewise.
1946         * locale/C-ctype.c: Likewise.
1948         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
1949         Redefine this too.
1951 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1953         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
1954         (_rtld_global): Use it.
1956         * sysdeps/gnu/Dist: Remove errlist-compat.c.
1957         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
1958         object directory.  Pass all Versions files to the awk script.
1959         * sysdeps/gnu/errlist-compat.c: Removed.
1960         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
1961         first Versions file in the search path which has them.
1962         Allow multiple errlist symbol versions to have the same count of
1963         errors.
1964         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
1965         of "errlist-compat.c".
1966         * sysdeps/gnu/errlist.c: Regenerated.
1967         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
1968         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
1969         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1970         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
1971         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
1972         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
1973         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
1974         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
1975         ECANCELLED if not defined by kernel headers.
1976         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
1977         already defined by kernel headers.
1978         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
1979         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
1980         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
1981         is a macro.
1982         * Versions.def (GLIBC_2.3) [librt]: Add.
1984         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
1986 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
1988         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
1989         missing comma to .type directive.
1991 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
1993         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
1994         unconditionally.
1995         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
1996         check.
1997         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
1999 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2001         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
2002         check to close_and_out close.  Replace return NULL statements where
2003         fd might be >= 0 with goto close_and_out.  Close the file descriptor
2004         when it is no longer needed.
2006 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2008         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
2009         string constants.
2010         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2011         * sysdeps/arm/dl-machine.h: Likewise.
2012         * sysdeps/cris/dl-machine.h: Likewise.
2013         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
2014         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
2016 2002-08-28  Roland McGrath  <roland@redhat.com>
2018         * Makeconfig (default_cflags): Revert unintended change.
2020 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2022         * version.h (VERSION): Bump to 2.2.91.
2024         * configure.in: Disable TLS support by default for now.
2026         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
2028         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
2029         warnings.
2031         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
2033         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
2034         fprintf/fwprintf calls.
2036 2002-08-28  Roland McGrath  <roland@redhat.com>
2038         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
2039         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
2041         * locale/setlocale.c: Declare postload functions weak.
2043         * elf/tst-tls1-static.c: New file.
2044         * elf/tst-tls2-static.c: New file.
2045         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
2047         Make uselocale support static linking.
2048         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
2049         This file again just defines _nl_C_locobj.
2050         (_nl_C_locobj): Use a categories.def iterator in the initializer.
2051         * locale/global-locale.c: New file.  Define _nl_global_locale here,
2052         using all weak references in the initializer.
2053         * locale/Makefile (aux): Add global-locale.
2054         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
2055         these unconditional, along with the tsd decl.
2056         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
2057         Define it under these conditions.
2058         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
2059         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
2060         `extern __thread struct locale_data *const *'.
2061         [NL_CURRENT_INDIRECT]
2062         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
2063         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
2064         the thread variable _nl_current_LC_FOO and also a special absolute
2065         symbol _nl_current_LC_FOO_used.
2066         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
2067         Set each _nl_current_LC_FOO symbol to point into the new locale,
2068         using weak references to test if _nl_current_LC_FOO_used was linked in.
2069         * locale/setlocale.c [! SHARED]: Replace this conditional ...
2070         [NL_CURRENT_INDIRECT]: ... with this one.
2071         (_nl_current, _nl_C): Variables removed.
2072         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
2073         weak references to _nl_current_LC_FOO_used.
2074         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
2075         (free_category): New function, broken out of ...
2076         (free_mem): ... here.  Call that.
2077         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
2078         instead of a loop.
2080         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
2081         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
2082         it is already absolute.
2084         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
2085         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
2086         [$(build-static) = yes] (tests-static): New variable.
2087         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
2089 2002-08-26  Christoph Hellwig  <hch@lst.de>
2091         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
2092         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
2094 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
2096         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
2098         * sysdeps/s390/Dist: Add bits/link.h.
2100         * sysdeps/sh/Dist: New file.
2102         * sysdeps/ia64/Dist: Add ia64libgcc.S.
2104         * sysdeps/wordsize-32/Dist: New file.
2106         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
2107         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
2108         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
2110         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
2111         sys/personality.h.
2113         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
2114         sparc/dl-brk.S.
2116         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
2118         * sysdeps/unix/bsd/sun/Dist: New file.
2120         * sysdeps/unix/bsd/osf/Dist: New file.
2122         * sysdeps/unix/bsd/hp/Dist: New file.
2124         * sysdeps/unix/arm/Dist: New file.
2126         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
2128         * sysdeps/mach/hurd/Dist: Add set-init.c.
2130         * sysdeps/i386/Dist: Add bits/link.h.
2132         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
2134         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
2136         * locale/Makefile (distribute): Add hashval.h.
2138         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
2140         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
2142         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
2143         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
2144         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
2145         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
2146         implementations.
2147         * libio/stdio.h: Likewise.
2148         * locale/locale.h: Likewise.
2149         * math/math.h: Likewise.
2150         * math/bits/mathcalls.h: Likewise.
2151         * setjmp/setjmp.h: Likewise.
2152         * signal/signal.h: Likewise.
2153         * stdlib/stdlib.h: Likewise.
2154         * string/string.h: Likewise.
2155         * time/time.h: Likewise.
2156         * wcsmbs/wchar.h: Likewise.
2157         * wctype/wctype.h: Likewise.
2159 2002-08-28  Roland McGrath  <roland@redhat.com>
2161         * locale/tst-C-locale.c (run_test): Remove __ from function names.
2163 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2164             Roland McGrath <roland@redhat.com>
2166         * locale/hashval.h (compute_hashval): Use prototype defn.
2167         (hashval_t): New macro, defined to unsigned long int
2168         if not already defined.
2169         (compute_hashval): Return hashval_t instead of unsigned long int.
2170         * locale/loadarchive.c (hashval_t): New macro.
2171         * locale/programs/locarchive.c: Include hashval.h directly instead
2172         of simple-hash.h.
2173         (compute_hashval, hashval_t): Define these macros first.
2174         (insert_name): Use archive_hashval instead of compute_hashval.
2175         (add_locale, delete_locales_from_archive): Likewise.
2177 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2179         * locale/programs/locarchive.c (insert_name): Suppress warnings about
2180         hash collisions if be_quiet.
2182 2002-08-27  Roland McGrath  <roland@redhat.com>
2184         * locale/locale.h (__newlocale, __duplocale, __freelocale,
2185         __uselocale): Don't declare these any more.
2186         * include/locale.h (__uselocale): Declare here instead, using __typeof.
2188         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
2189         and treat it as an EOF return.
2190         * sysdeps/unix/readdir_r.c: Likewise.
2192         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
2193         From Alexandre Oliva <aoliva@redhat.com>.
2194         * sysdeps/gnu/errlist-compat.c: Regenerated.
2196 2002-08-27  Brian Youmans  <3diff@gnu.org>
2198         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
2199         wording at request of copyright holder Stephen Moshier.
2200         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2201         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2202         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2203         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2204         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2205         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2206         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2207         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2208         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2209         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2210         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2211         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2212         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2213         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2215 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
2217         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
2218         * ctype/ctype-extn.c (isblank_l): Add weak alias.
2219         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
2220         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
2221         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
2222         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
2223         * wctype/iswctype_l.c (iswctype_l): Likewise.
2225 2002-08-27  Roland McGrath  <roland@redhat.com>
2227         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
2229         * ctype/ctype.h (__exctype_l): Don't declare __ name.
2230         * stdlib/stdlib.h: Don't declare __*_l names.
2231         * include/stdlib.h: Declare them here instead.
2232         * include/string.h: Don't declare __*_l names.
2233         * string/string.h: Declare them here instead.
2234         * time/time.h: Don't declare __*_l names.
2235         * include/time.h: Declare them here instead.
2236         * wcsmbs/wchar.h: Don't declare __*_l names.
2237         * include/wchar.h: Declare them here instead.
2238         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
2239         Don't declare __*_l names.
2240         * include/wctype.h: Declare them here instead.
2241         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
2242         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
2243         * locale/langinfo.h: Don't declare __nl_langinfo_l.
2244         * include/langinfo.h: Declare it here with __typeof.
2246         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
2247         instead, taking an extra __locale_t argument.
2248         * time/Makefile (routines): Add strptime_l.
2249         * time/time.h (__strptime_l, strptime_l): Declare them.
2250         * time/strptime_l.c: New file.
2252         * time/time.h (__strftime_l, strftime_l): Declare them.
2253         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
2254         * time/strftime_l.c: New file.
2255         * time/wcsftime_l.c: New file.
2256         * time/Makefile (routines): Add strftime_l, wcsftime_l.
2257         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
2258         strftime_l, wcsftime_l.
2259         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
2260         or __wcsftime_l instead, taking an extra __locale_t argument.
2262         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
2263         (libc: GLIBC_2.3): ... here.
2265 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
2267         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
2269         * Makefile (distribute): Add LICENSES.
2271         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
2272         sys/debugreg.h.
2274         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
2276         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
2278         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
2280         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
2282         * sysdeps/mach/hurd/alpha/Dist: New file.
2284         * sysdeps/arm/Dist: Add bits/link.h.
2286         * sunrpc/Makefile: Distribute thrsvc.
2288         * stdio-common/Makefile: Remove more left-overs from old stdio.
2290         * include/linewrap.h: Removed.
2292         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
2294         * intl/Makefile (distribute): Add plural-eval.c.
2296 2002-08-27  Roland McGrath  <roland@redhat.com>
2298         * manual/sysinfo.texi (Mount Information): Correct file name to macro
2299         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
2300         Say mtab is in either /var/run or /etc.
2302 2002-08-26  Roland McGrath  <roland@redhat.com>
2304         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
2305         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
2307         * sysdeps/gnu/Versions: New file.
2308         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
2309         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
2310         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
2311         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
2312         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
2313         and _sys_nerr_internal instead of anything else.  Make it include
2314         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
2315         Make it emit some asm magic if [EMIT_ERR_MAX].
2316         * sysdeps/gnu/errlist.c: Regenerated.
2317         * sysdeps/gnu/errlist-compat.awk: New file.
2318         * sysdeps/gnu/errlist-compat.c: New file (generated).
2319         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
2320         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
2321         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
2322         (SYS_ERRLIST, SYS_NERR): Macros removed.
2323         (sys_nerr, _sys_nerr): Remove these weak aliases.
2324         * sysdeps/unix/sysv/linux/errlist.c: File removed.
2325         * sysdeps/unix/sysv/linux/errlist.h: File removed.
2326         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
2328         * include/libc-symbols.h (declare_symbol): New macro.
2329         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
2330         * configure.in: New check to define it.
2331         * configure: Regenerated.
2333 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
2335         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
2336         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
2338         * Make-dist: Remove traces of old stdio.
2339         * Makeconfig: Likewise.
2341         * locale/Makefile (localedef-aux): New variable.  Only md5
2342         assigned to it.  These files are not ddistributed in this directory.
2344         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
2345         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
2346         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
2348         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
2350         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
2351         set h_errno to NO_RECOVERY [PR libc/4360].
2353 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2355         * libio/Makefile (tests): Add bug-fopena+.
2356         * libio/bug-fopena+.c: New file.
2357         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
2358         file for _IO_IS_APPENDING if file isn't opened for reading, too.
2360         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
2362         * locale/xlocale.c: Fix the last change.  The variable still has
2363         to end in _data.
2364         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
2365         (__libc_tsd_set): Add _data prefix to variable name.
2367 2002-08-26  Roland McGrath  <roland@redhat.com>
2369         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
2370         macro with inline function.
2371         (sigset_get_old_mask): Likewise.
2372         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
2373         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2374         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2375         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
2376         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
2377         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
2378         values.
2379         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
2380         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
2382 2002-07-06  Bruno Haible  <bruno@clisp.org>
2384         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
2385         sigset_get_old_mask): Make it work with larger sigset_t.
2386         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
2387         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
2388         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
2390 2002-08-26  Roland McGrath  <roland@redhat.com>
2392         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
2393         * manual/filesys.texi (File Times): Document lutimes and futimes.
2394         * misc/Makefile (routines): Add them.
2395         * misc/Versions (libc: GLIBC_2.3): Likewise.
2396         * sysdeps/generic/lutimes.c: New file.
2397         * sysdeps/generic/futimes.c: New file.
2398         * sysdeps/mach/hurd/lutimes.c: New file.
2399         * sysdeps/mach/hurd/futimes.c: New file.
2401         * manual/filesys.texi (File Times): Add explicit note about null
2402         pointer argument to utimes.
2404 2002-08-26  Roland McGrath  <roland@frob.com>
2406         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
2407         (__ifreq): Add a cast.  Remove an unused variable.
2409         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
2410         _HURD_THREADVAR_LOCALE.
2412 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
2414         * posix/regexec.c (re_search_stub): Return correct match length
2415         if start != 0.
2416         * posix/bug-regex10.c: New test.
2417         * posix/Makefile (tests): Add bug-regex10.
2419 2002-08-26  Brian Youmans  <3diff@gnu.org>
2421         * COPYING.LIB: Replaced with fresh copy from
2422         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
2423         suggested copying permission notice now says version 2.1 instead
2424         of version 2.
2426         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
2427         from Library GPL.
2428         * crypt/crypt_util.c: Likewise.
2429         * crypt/ufc.c: Likewise.
2430         * elf/dl-conflict.c: Likewise.
2431         * elf/dl-iteratephdr.c: Likewise.
2432         * iconv/iconvconfig.h: Likewise.
2433         * malloc/arena.c: Likewise.
2434         * malloc/hooks.c: Likewise.
2435         * malloc/malloc.c: Likewise.
2436         * posix/glob/Makefile.ami: Likewise.
2437         * posix/glob/Makefile.in: Likewise.
2438         * stdlib/gmp-impl.h: Likewise.
2439         * stdlib/gmp.h: Likewise.
2440         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
2441         * sysdeps/generic/strnlen.c: Likewise.
2442         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
2443         * sysdeps/mach/hurd/recvmsg.c: Likewise.
2444         * sysdeps/mach/hurd/sendmsg.c: Likewise.
2445         * sysdeps/mach/hurd/spawni.c: Likewise.
2446         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
2447         * sysdeps/mach/powerpc/sysdep.h: Likewise.
2448         * sysdeps/mach/powerpc/thread_state.h: Likewise.
2449         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
2450         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
2451         * sysdeps/x86_64/gmp-mparam.h: Likewise.
2453         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
2454         Lesser GPL copying permission notice from 2 to 2.1.
2455         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
2456         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
2457         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2458         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
2459         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
2460         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
2461         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2462         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
2463         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2464         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
2465         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2466         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2467         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2468         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2469         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2470         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2471         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2472         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2473         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2474         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
2475         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
2476         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2477         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
2478         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2479         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2480         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
2481         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2482         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
2483         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2484         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
2485         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2486         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
2487         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2488         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
2489         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2490         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2491         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2492         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
2493         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2494         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
2495         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2496         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2497         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
2498         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
2499         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
2500         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
2501         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
2502         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
2503         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
2504         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
2505         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
2506         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
2507         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
2508         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2509         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
2511         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
2512         Moshier and Lesser GPL copying permission notice, per license from
2513         Moshier.
2514         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2515         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2516         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2517         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2518         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2519         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2520         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2521         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2522         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2523         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2524         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2525         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2526         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2527         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2529         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
2530         notice, per license from copyright holder Stephen Moshier.
2531         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2532         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2533         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2534         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2535         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2536         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2537         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2538         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2539         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2541 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2543         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
2544         (shared-only-routines): Likewise.
2546 2002-08-26  Roland McGrath  <roland@redhat.com>
2548         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
2549         name of "", store a null pointer instead.
2551         * configure.in (elf): Set to yes for freebsd*, netbsd*.
2552         * configure: Regenerated.
2554         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
2555         Initialize this instead of __libc_tsd_LOCALE_data.
2557         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
2558         ptsname_r to EINVAL.
2560         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
2562         * rt/Makefile: Revert last change, it was inappropriate to presume aio
2563         implementations depend on pthreads.
2564         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
2565         * rt/tst-aio64.c (do_test): Likewise.
2566         * rt/tst-aio2.c (do_test): Likewise.
2567         * rt/tst-aio3.c (do_test): Likewise.
2568         * rt/tst-aio4.c (do_test): Likewise.
2569         * rt/tst-aio5.c (do_test): Likewise.
2570         * rt/tst-aio6.c (do_test): Likewise.
2571         * rt/tst-aio7.c (do_test): Likewise.
2573         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
2574         void so as to avoid compiler warnings.
2576         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
2577         _IO_wide_data_FD, which is never used here.
2579         * libio/iofread.c
2580         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
2581         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
2582         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
2584         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
2585         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
2587         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
2588         (closelog): Likewise.
2590 2002-07-06  Bruno Haible  <bruno@clisp.org>
2592         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
2594         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
2595         * sysdeps/unix/alpha/pipe.S: ... here.
2596         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
2598         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
2600         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
2601         * sysdeps/unix/i386/fork.S: Likewise.
2602         * sysdeps/unix/i386/pipe.S: Likewise.
2603         * sysdeps/unix/i386/wait.S: Likewise.
2605         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
2606         * sysdeps/unix/arm/fork.S: Likewise.
2608         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
2609         arguments.
2610         (DO_CALL): Swap argument order.
2611         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
2612         arguments.
2613         (DO_CALL): Swap argument order.
2614         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
2615         arguments.
2616         (DO_CALL): Swap argument order.
2617         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
2618         arguments.
2619         (DO_CALL): Swap argument order.
2620         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
2621         arguments.
2622         (DO_CALL): Swap argument order.
2623         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
2624         arguments.
2625         (DO_CALL): Swap argument order.
2626         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
2627         arguments.
2628         (DO_CALL): Swap argument order.
2630         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
2631         (L): Define right for ELF.
2632         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
2633         Now defined in sysdeps/i386/sysdep.h.
2635         * sysdeps/posix/readv.c: Ansify function definition.
2636         * sysdeps/posix/writev.c: Likewise.
2638         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
2639         have the same size. Avoid direct cast from size_t to off_t.
2641         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
2642         nul byte in entry[n].ut_user.
2643         (simulate_logout): Likewise.
2645         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
2646         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
2647         existence of corresponding members of 'struct utmp'.
2648         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
2649         !_HAVE_UT_TYPE.
2651         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
2652         allocate a buffer of at least BUFSIZ bytes, not just of
2653         sizeof (struct dirent).
2655         * sysdeps/generic/glob.c: Include <limits.h>.
2656         (NAME_MAX): Define a fallback.
2657         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
2658         stack.
2659         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
2660         (main): Allocate enough room for a 'struct dirent64' on the stack.
2661         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
2662         'struct dirent'.
2664         * sysdeps/unix/sysv/linux/init-first.c: Don't include
2665         kernel-features.h.
2667         * inet/htontest.c: Include <sys/types.h>.
2669         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
2671         * include/sys/sysctl.h: Comment fix.
2673         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
2674         _dl_load_lock.
2675         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
2677         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
2679         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
2680         (__getpeername): New alias.
2681         (__getsockname): New alias.
2682         (__socket): New alias.
2684         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
2686         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
2687         (__fcntl_internal): New alias.
2688         (__profil): New alias.
2690 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
2692         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
2693         entry was for getaddr* lookup or not.  Add only matching cache
2694         entry.  Change all callers [PR libc/4317].
2696         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
2697         finding the read position [PR libc/4265].
2698         * libio/Makefile (tests): Add bug-rewind2.
2699         * libio/bug-rewind2.c: New file.
2701         * libio/bug-rewind.c: Fix creation of temp file.
2703 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2705         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
2706         neither SUCCESS nor TRYAGAIN [PR libc/4259].
2707         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
2708         to ENOENT if no entry is found.
2709         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
2710         failure.
2711         * nis/nss_compat/compat-initgroups.c: Likewise.
2712         * nis/nss_compat/compat-pwd.c: Likewise.
2713         * nis/nss_compat/compat-spwd.c: Likewise.
2714         * nis/nss_nis/nis-alias.c: Likewise.
2715         * nis/nss_nis/nis-ethers.c: Likewise.
2716         * nis/nss_nis/nis-grp.c: Likewise.
2717         * nis/nss_nis/nis-hosts.c: Likewise.
2718         * nis/nss_nis/nis-initgroups.c: Likewise.
2719         * nis/nss_nis/nis-netgrp.c: Likewise.
2720         * nis/nss_nis/nis-network.c: Likewise.
2721         * nis/nss_nis/nis-proto.c: Likewise.
2722         * nis/nss_nis/nis-publickey.c: Likewise.
2723         * nis/nss_nis/nis-pwd.c: Likewise.
2724         * nis/nss_nis/nis-rpc.c: Likewise.
2725         * nis/nss_nis/nis-service.c: Likewise.
2726         * nis/nss_nis/nis-spwd.c: Likewise.
2727         * resolv/nss_dns/dns-host.c: Likewise.
2728         * resolv/nss_dns/dns-network.c: Likewise.
2729         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
2730         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2731         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2732         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2733         * nis/nss_nisplus/nisplus-network.c: Likewise.
2734         * nis/nss_nisplus/nisplus-proto.c: Likewise.
2735         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2736         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2737         * nis/nss_nisplus/nisplus-service.c: Likewise.
2738         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2739         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
2740         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2741         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
2742         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2744         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
2745         declaring __restore and __restore_rt as hidden (if possible).
2747 2002-08-25  Roland McGrath  <roland@redhat.com>
2749         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
2751         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
2752         (getutent_r_file, internal_getut_r): Updated all callers.
2753         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
2755 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2757         * locale/programs/locale.c: Don't print aliases for non-existing
2758         locales for 'locale -a'.
2759         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
2761 2002-07-19  H.J. Lu  <hjl@gnu.org>
2763         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
2765 2002-07-16  H.J. Lu  <hjl@gnu.org>
2767         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2768         sys/personality.h.
2769         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
2771 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2773         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
2774         not moved ahead of the fputs call.
2775         * elf/tst-tlsmod2.c (in_dso): Likewise.
2776         * elf/tst-tlsmod3.c (in_dso2): Likewise.
2777         * elf/tst-tlsmod4.c (in_dso): Likewise.
2779 2002-08-25  Andreas Schwab  <schwab@suse.de>
2781         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
2783 2002-08-25  Roland McGrath  <roland@redhat.com>
2785         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
2786         resetting handler, to avoid the possibility of a spurious SIGALRM
2787         delivered to the user's handler.
2788         Reported by Amit D. Chaudhary <amitc@brocade.com>,
2790         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
2791         set -fkeep-inline-functions, which is not needed for the current file.
2793         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
2794         (_dl_setup_hash): Add attribute_hidden.
2795         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
2796         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
2797         (_dl_new_object, _dl_map_object_deps): Likewise.
2798         (_dl_map_object_deps_internal): Remove decl.
2799         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
2801         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
2802         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
2803         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
2804         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
2805         instead relying on the compiler to produce only GOTOFF variable refs.
2807 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
2809         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
2811         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
2812         inline to avoid defining it in every file which includes this header.
2814         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
2815         defining DONT_USE_BOOTSTRAP_MAP.
2817         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
2818         * libio/tst-mmap-setvbuf.c (main): Likewise.
2819         * libio/tst-widetext.c (main): Likewise.
2821         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
2822         message.
2823         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
2824         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
2826         * sysdeps/i386/elf/configure.in: Unconditionally define
2827         PI_STATIC_AND_HIDDEN.
2828         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
2829         PI_STATIC_AND_HIDDEN is defined as well.
2830         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
2832 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
2834         * sysdeps/ia64/bzero.S: Define __bzero as well.
2836         * locale/programs/charmap.c (charmap_new_char): Don't use
2837         ULONG_MAX as maximum UCS4 value.
2839         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
2841         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
2843         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
2844         * malloc/malloc.c (mALLINFo): Likewise.
2846         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
2848         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
2849         examining result of _IO_do_flush call.
2851         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
2852         Use prec not spec when sizing buffers.
2854         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
2855         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2856         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2857         * stdio-common/vfscanf.c (inchar): Likewise.
2858         * misc/efgcvt_r.c (fcvt_r): Likewise.
2859         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2860         * elf/readlib.c (process_file): Likewise.
2861         * elf/sprof.c (load_profdata): Likewise.
2862         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
2863         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
2864         * locale/programs/charmap.c (charmap_read): Likewise.
2865         * libio/fileops.c: Likewise.
2866         * libio/fmemopen.c: Likewise.
2867         * stdlib/strtod.c: Likewise.
2868         * elf/dl-load.c: Likewise.
2869         * iconv/iconvconfig.c: Likewise.
2870         * iconv/iconv_prog.c (process_block): Likewise.
2871         * elf/rtld.c (dl_main): Likewise.
2873         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
2874         macro to calm down the compiler.
2876         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
2878         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
2880         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
2881         placement of errno definition.
2882         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2883         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
2884         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2885         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2886         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2888         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
2889         from 1024 to 65536, to avoid buffer overrun.
2891 2002-08-16  Paul Eggert  <eggert@twinsun.com>
2893         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
2894         from 1024 to 65536, to avoid buffer overrun.
2895         * resolv/res_query.c (MAXPACKET): Likewise.
2897 2002-08-24  Andreas Jaeger  <aj@suse.de>
2899         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
2901 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
2903         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
2904         two52 locally.
2905         (log2): Likewise.
2906         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
2907         Patch by Simon Gee <simong@agile.tv>.
2909         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
2910         Prefer reading /proc/stat since it is more uniform across
2911         architectures.
2913         * manual/texinfo.tex: Update to latest official version.
2915         * sysvipc/sys/shm.h: Remove SHMLBA definition.
2916         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
2917         * sysdeps/gnu/bits/shm.h: Likewise.
2918         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2919         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2920         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2921         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2922         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2923         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2924         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2925         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
2926         since this is what the kernel says.
2928         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
2929         since ssize_t is needed as well.  Replace const with __const.
2931 2002-08-23  Roland McGrath  <roland@redhat.com>
2933         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
2934         __malloc_hook, __realloc_hook, __memalign_hook,
2935         __after_morecore_hook): Variable definitions moved to ...
2936         * malloc/malloc.c: ... here, so as to be before all references.
2938         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
2939         global variable reference in an unused asm parameter, to ensure the
2940         compiler has set up the GOT register before we use it.
2942         * malloc/hooks.c: Move variable definitions ahead of uses.
2943         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
2944         initializers that make reference to variables they define.
2946 2002-08-23  Andreas Jaeger  <aj@suse.de>
2948         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
2949         alloca, free, qsort.
2951         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
2953         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
2954         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2956         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
2957         <hch@lst.de>.
2958         * sysdeps/generic/fgetxattr.c: New file.
2959         * sysdeps/generic/flistxattr.c: New file.
2960         * sysdeps/generic/fremovexattr.c: New file.
2961         * sysdeps/generic/fsetxattr.c: New file.
2962         * sysdeps/generic/getxattr.c: New file.
2963         * sysdeps/generic/listxattr.c: New file.
2964         * sysdeps/generic/lgetxattr.c: New file.
2965         * sysdeps/generic/llistxattr.c: New file.
2966         * sysdeps/generic/lremovexattr.c: New file.
2967         * sysdeps/generic/lsetxattr.c: New file.
2968         * sysdeps/generic/removexattr.c: New file.
2969         * sysdeps/generic/setxattr.c: New file.
2970         * misc/Makefile (headers): Add sys/xattr.h.
2971         (routines): Add *xattr calls.
2972         * misc/Versions: Add *xattr calls with version 2.3.
2973         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
2974         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2975         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2976         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2977         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
2978         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2979         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2980         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2982 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
2984         * sysdeps/powerpc/elf/libc-start.c
2985         (__cache_line_size): Declare.
2986         (__aux_init_cache): New function.
2987         (__libc_start_main): Change type of `auxvec' parameter to
2988         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
2989         __aux_init_cache.
2990         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2991         (__cache_line_size): Declare.
2992         (__aux_init_cache): New function.
2993         (DL_PLATFORM_INIT): Define.
2994         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
2995         value to select the correct stride for dcbz.
2997 2002-08-22  Andreas Jaeger  <aj@suse.de>
2999         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
3000         shmat.
3002 2002-08-22  Roland McGrath  <roland@redhat.com>
3004         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
3005         position indicated by locrectab against file bounds before rounding to
3006         page size.  In mapping loop, always set TO before breaking out of
3007         contiguous range coalescing loop.
3009         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
3010         (or MAP_COPY if available) instead of MAP_SHARED.
3012         * scripts/firstversions.awk: When encountering a version newer than
3013         the specified earliest version, be sure to emit the specified earliest
3014         version first if any renaming of an older version to that has been.
3016 2002-08-21  Roland McGrath  <roland@redhat.com>
3018         * configure.in: Make GCC version check require 3.[2-9]* and no others.
3019         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
3020         (Configuring and compiling): Don't mention older GCC versions any more.
3021         * INSTALL: Regenerated.
3023         * manual/install.texi (Configuring and compiling, Installation,
3024         Running make install, Linux): Linux -> GNU/Linux where appropriate.
3026         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
3027         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
3028         and with noinline otherwise.  Remove hack alloca use to prevent
3029         inlining, we can ask for it explicitly nowadays.
3031         * dlfcn/bug-dlsym1.c: New file.
3032         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
3033         * dlfcn/Makefile (distribute): Add them.
3034         (tests): Add bug-dlsym1 here.
3035         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
3036         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
3037         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
3039 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
3041         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
3042         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
3043         before relocation.
3044         (_dl_start): Don't use local bootstrap_map variable if
3045         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
3046         pass bootstrap_map to _dl_start_final in this case either.  Don't
3047         pass start_time to _dl_start_final ever.
3048         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
3050         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
3051         This cripples the scope lists necessary to search for symbols in
3052         dependencies which are not in the global scope.
3054         * include/setjmp.h (__libc_longjmp): Add declaration.
3056 2002-08-21  Andreas Jaeger  <aj@suse.de>
3058         * sysdeps/x86_64/_mcount.S: Fix assembler.
3060         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
3061         with biarch support.
3063 2002-08-21  Andreas Jaeger  <aj@suse.de>
3065         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
3067         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
3069         * sysdeps/x86_64/machine-gmon.h: New file.
3070         * sysdeps/x86_64/_mcount.S: New file.
3072 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
3074         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
3075         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
3076         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
3077         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
3078         to TL_INIT_TP.  Otherwise pass 1.
3079         * include/link.h (struct link_map): Add l_tls_tp_initialized.
3080         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
3082 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
3084         * locale/programs/localedef.c (add_to_readlist): Error about
3085         circular dependencies only if the locale in question hasn't
3086         been finished.
3087         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
3088         CTYPE_LOCALE to load_locale.
3089         * locale/programs/locfile.c (locfile_read): Don't include
3090         unneeded but available locales in locale_mask.
3092         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
3093         print any messages about enlarging archive.
3095 2002-08-20  Brian Youmans  <3diff@gnu.org>
3097         * manual/contrib.texi: Removed licenses, added acknowledgements
3098         for contributions by Intel, IBM, Craig Metz.
3099         * LICENSES: New file, contains the text of all non-FSF licenses in the
3100         distribution that require putting the notice in the accompanying
3101         documentation.
3102         * README.template, README: Mention LICENSES.
3104         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
3105         new one modelled on the modern BSD license, per recent letter
3106         of permission from CMU.
3107         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
3109         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
3110         from IBM to FSF, per the recent Software Letter.  Changed the
3111         distribution terms from GPL to LGPL.
3113         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
3114         copying permission notice (Lesser GPL), per recent IBM Software Letter.
3115         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
3116         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
3117         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
3118         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
3119         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
3120         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
3121         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
3122         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
3124         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
3125         from IBM to FSF, per the recent Software Letter.  Corrected the
3126         text of the copying permission notice to say Lesser GPL instead
3127         of GPL in warranty disclaimer paragraph.
3128         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
3129         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
3130         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
3131         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
3132         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
3133         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
3134         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
3135         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
3136         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
3137         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
3138         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
3139         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
3140         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
3141         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
3142         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
3143         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
3144         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
3145         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
3146         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
3147         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
3148         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
3150         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
3151         permission notice to say Lesser GPL instead of GPL in warranty
3152         disclaimer paragraph.
3153         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
3154         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3155         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3156         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3157         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3158         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3159         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3160         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3161         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3162         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3163         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
3164         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
3165         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
3166         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
3167         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
3168         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
3169         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
3170         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3171         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3172         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3173         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
3174         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
3175         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
3177 2002-08-20  Roland McGrath  <roland@redhat.com>
3179         Fix ABI compatibility with libc compiled with old tools on powerpc.
3180         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3181         and Jack Howarth <howarth@bromo.med.uc.edu>.
3182         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
3183         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
3184         pass -DHAVE_DOT_HIDDEN for these files.
3185         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
3186         __floatdisf.
3187         * sysdeps/powerpc/divdi3.c: New file.
3188         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
3189         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
3191 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
3193         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
3194         partially overlapping mappings.  Remove unneeded (char *) casts.
3195         Never allow duplication of ranges in mapped areas.
3197 2002-08-20  Roland McGrath  <roland@redhat.com>
3199         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
3200         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
3202 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
3204         * include/unistd.h: Don't hide _exit.
3206         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
3207         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
3208         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
3209         argument 1 to TLS_INIT_TP.
3210         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
3212         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
3214         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
3215         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
3216         memory allocation to...
3217         (allocate_dtv): ...here.  New function.
3218         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
3219         call allocate_dtv instead of _dl_allocate_tls_storage.
3220         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
3221         (_dl_get_tls_static_info): New function.
3222         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
3223         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
3225 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
3227         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
3228         immediately if result == NULL.
3230 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
3232         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
3234 2002-08-18  Roland McGrath  <roland@frob.com>
3236         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
3237         instead of __file_name_split.
3238         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
3240         * sysdeps/mach/hurd/dl-sysdep.c
3241         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
3242         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
3244 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
3246         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
3247         in change before last: MAX -> MIN.
3249 2002-08-15  Roland McGrath  <roland@redhat.com>
3251         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
3252         if seek would go past it.
3253         (mmap_remap_check): If file position is at or past EOF after check,
3254         leave read pointers at EOF and don't seek.
3256         * libio/tst-mmap-offend.c: New file.
3257         * libio/Makefile (tests): Add it.
3259         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
3260         the name as passed, rather than the name in the archive dictionary.
3262 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
3264         * csu/Makefile: Define elide-routines.os not static-only-routines.
3266         * include/sched.h (__clone): Add varargs at the end.
3268         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
3269         case.
3270         (TLS_INIT_HELPER): If defined, use it.
3271         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
3273 2002-08-15  Roland McGrath  <roland@redhat.com>
3275         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
3276         on L->l_prev; it can happen under rtld --verify too.
3278         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
3279         header separately, just map an initial window of 2MB from the file
3280         and remap if that is not large enough to cover the whole header.
3282 2002-08-15  Andreas Jaeger  <aj@suse.de>
3284         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
3285         version 2.3.
3286         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3287         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
3288         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
3289         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
3290         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
3291         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3292         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3293         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
3294         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
3295         Patch by Andreas Gruenbacher <agruen@suse.de>.
3297         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
3299 2002-08-14  Roland McGrath  <roland@redhat.com>
3301         * locale/locarchive.h (struct locale_category_data): Give this name to
3302         the type of locale_data_t's elements.
3303         * locale/programs/locarchive.c (cmpcategorysize): New static function.
3304         (add_locale): Use that to sort the categories by size and put all
3305         those that fit into two pages into the LC_ALL block, instead of
3306         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
3307         (show_archive_content): Detect categories inside LC_ALL block
3308         directly, instead of hard-coding.
3309         (oldlocrecentcmp): Compare just on file locations used.
3311 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
3313         * locale/programs/locarchive.c (struct oldlocrecent): New type.
3314         (oldlocrecentcmp): New function.
3315         (enlarge_archive): Re-add locales in the order they were added
3316         to the archive.
3317         (add_locale): Put all the small locale files together, if the small
3318         locale file block would occupy less pages if page size aligned, align
3319         it.
3320         (show_archive_content): Adjust for locale archives optimized for speed.
3322 2002-08-14  Roland McGrath  <roland@frob.com>
3324         * configure.in: Use "MISSING" as not-found value for MIG.
3325         * sysdeps/mach/configure.in: Fatal if mig not found.
3326         * configure, sysdeps/mach/configure: Regenerated.
3328 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
3330         * locale/loadarchive.c (archfname): Add missing slash.
3332         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
3333         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
3335 2002-08-12  Roland McGrath  <roland@redhat.com>
3337         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
3338         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
3339         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
3340         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
3341         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
3342         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
3343         * sysdeps/generic/waitpid.c: Likewise.
3345         * include/net/if.h: New file.  Use libc_hidden_proto
3346         for if_nametoindex and if_indextoname.
3347         * sysdeps/generic/if_index.c: Add libc_hidden_def.
3348         * sysdeps/mach/hurd/if_index.c: Likewise.
3349         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
3351         * include/grp.h (setgroups): Add libc_hidden_proto.
3352         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
3353         * sysdeps/mach/hurd/setgroups.c: Likewise.
3354         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
3355         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3357 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
3359         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
3360         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
3361         * sysdeps/generic/setegid.c (setegid): Likewise.
3362         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
3363         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
3364         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
3365         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
3366         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
3367         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
3368         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
3369         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
3370         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
3371         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
3372         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
3373         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
3374         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
3376         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
3377         __lxstat_internal, __lxstat64_internal): Remove.
3378         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
3379         Add hidden_proto.
3380         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
3381         Remove INTDEF where present, remove #undef at the beginning.
3382         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
3383         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
3384         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
3385         * sysdeps/generic/xstat.c (__xstat): Likewise.
3386         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
3387         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
3388         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
3389         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
3390         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
3391         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
3392         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
3393         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
3394         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
3395         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
3396         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
3397         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
3398         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
3399         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
3400         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
3401         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
3402         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
3403         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
3404         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
3405         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
3406         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
3407         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
3408         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
3409         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3410         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3411         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3412         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
3413         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
3414         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
3415         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3416         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
3417         * sysdeps/unix/xstat.c (__xstat): Likewise.
3419         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
3420         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
3421         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
3422         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
3423         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
3424         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
3425         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
3427         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
3428         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
3429         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
3430         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
3431         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
3432         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
3433         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
3434         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
3435         Likewise.
3436         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
3437         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
3438         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
3439         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
3440         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
3441         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
3442         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
3443         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
3445         * include/string.h (strcoll): Add libc_hidden_proto.
3446         * string/strcoll.c (strcoll): Add libc_hidden_def.
3448         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
3450 2002-08-11  Philip Blundell  <philb@gnu.org>
3452         * sysdeps/arm/Makefile: New file.
3454 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3456         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
3457         by another '|', end of regex or enclosing ')', clear branch.
3458         * posix/bug-regex9.c: New test.
3459         * posix/Makefile (tests): Add bug-regex9.
3461 2002-08-12  Roland McGrath  <roland@redhat.com>
3463         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
3464         start count condition, use TOTAL instead of variable that was never
3465         set.  Fix outer loop termination condition to TOTAL >= after update.
3467         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
3468         dl_tls_static_align and dl_tls_static_nelem.
3470 2002-08-11  Roland McGrath  <roland@redhat.com>
3472         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
3473         of the TLS macros, otherwise the compiler might not have initialized
3474         the PIC register yet when we use the PLT via asm.
3475         * elf/tst-tlsmod3.c (in_dso2): Likewise.
3476         * elf/tst-tlsmod2.c (in_dso): Likewise.
3478         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
3480         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
3481         Evaluate argument exactly once.  Remove __volatile__ from asm's.
3483         * include/unistd.h: Use libc_hidden_proto for getdomainname
3484         and getlogin_r.
3485         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
3486         * sysdeps/mach/hurd/getdomain.c: Likewise.
3487         * sysdeps/unix/getlogin_r.c: Likewise.
3488         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
3489         * sysdeps/generic/getlogin_r.c: Likewise.
3491         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
3492         * sunrpc/rtime.c: Add libc_hidden_def.
3494         * include/string.h: Use libc_hidden_proto for basename.
3495         * string/basename.c [_LIBC]: Add libc_hidden_def.
3497         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
3499         * locale/loadarchive.c: munmap -> __munmap throughout.
3501         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
3502         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
3503         * sysdeps/generic/gai_strerror.c: Likewise.
3505         * include/sys/errno.h: New file.
3507         * include/signal.h: No libc_hidden_proto for raise,
3508         __libc_current_sigrtmin, __libc_current_sigrtmax.
3509         These need to be overridden by linuxthreads.
3510         * sysdeps/posix/raise.c: Reverted.
3511         * sysdeps/generic/raise.c: Reverted.
3512         * signal/allocrtsig.c: Reverted.
3514         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
3516 2002-08-10  Roland McGrath  <roland@redhat.com>
3518         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
3519         * locale/localeinfo.h: Declare it.
3520         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
3521         current locale if it's not in the file list.
3522         Call _nl_archive_subfreeres.
3524 2002-08-10  Andreas Jaeger  <aj@suse.de>
3526         * sysdeps/i386/strchr.S: Add comment.
3528 2002-08-10  Roland McGrath  <roland@redhat.com>
3530         * include/wchar.h (putwc): Use libc_hidden_proto.
3531         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
3532         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
3533         * stdio-common/dprintf.c: Add libc_hidden_def.
3534         * stdio-common/fprintf.c: Likewise.
3535         * stdio-common/sprintf.c: Likewise.
3536         * stdio-common/sscanf.c: Likewise.
3537         * libio/iofwrite.c: Likewise.
3538         * libio/memstream.c: Likewise.
3539         * libio/putwc.c: Likewise.
3540         * stdio-common/perror.c: Likewise.
3541         * sysdeps/posix/remove.c: Likewise.
3542         * sysdeps/generic/remove.c: Likewise.
3543         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
3544         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
3546 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
3548         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3549         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
3550         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
3551         towlower, towupper): Add libc_hidden_weak.
3553         * include/bits/dlfcn.h: New file.
3554         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
3556         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
3557         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
3558         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
3559         * include/pwd.h (_nss_files_parse_pwent): Likewise.
3560         * include/shadow.h (_nss_files_parse_spent): Likewise.
3561         * include/netdb.h (_nss_files_parse_protoent,
3562         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
3563         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
3564         (LINE_PARSER): Use it.
3565         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
3566         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
3568         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
3569         #endif.
3571         * manual/debug.texi (%MENU%): Remove trailing dot.
3572         Reported by <hayastan132@hotmail.com>.
3574         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
3575         aliases.
3576         (lseek): Dummy.
3577         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
3578         Likewise.
3580 2002-08-09  Roland McGrath  <roland@redhat.com>
3582         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
3583         name to find codeset name (if any) and normalize it.  If the
3584         normalized name differs, look up only that in the archive.
3585         * locale/programs/locarchive.c (add_locale_to_archive): If the name
3586         contains a codeset, normalize the codeset store only the normalized
3587         name in the archive.  If not, add an alias containing the locale's
3588         normalized codeset name.  Apply codeset name normalization when
3589         matching entries in the alias file.
3591         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
3592         decrement HEAD->namehash_used here.
3593         (add_locale): Only need to insert name string when name_offset != 0.
3595         * locale/programs/localedef.c (options): Add -A/--alias-file.
3596         (alias_file): New variable.
3597         (parse_opt): Grok -A, set that.
3598         * locale/programs/localedef.h: Declare it.
3600         * locale/locarchive.h (struct locrecent): Add `refs' member.
3601         * locale/programs/locarchive.c (insert_name): New function, broken out
3602         of ...
3603         (add_locale_to_archive): ... here.  Call that.
3604         (add_alias): New function.
3605         (add_locale): New static function, add_locale_to_archive renamed.
3606         (add_locale_to_archive): Call that and use add_alias to add an alias
3607         for the name with codeset if the given name lacks it.
3608         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
3610         * locale/Makefile (routines): Add loadarchive.
3611         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
3612         (_nl_load_locale_from_archive): New function.
3613         * locale/localeinfo.h: Declare it.
3614         * locale/findlocale.c (_nl_find_locale): If using default locale path,
3615         try _nl_load_locale_from_archive first.
3617         * locale/loadlocale.c (_nl_intern_locale_data): New function,
3618         broken out of _nl_load_locale.
3619         (_nl_load_locale): Call that.
3620         * locale/localeinfo.h: Declare it.
3621         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
3622         (struct locale_data): Remove unused member `options'.
3623         * locale/findlocale.c (_nl_remove_locale): Update uses.
3624         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3625         * locale/C-collate.c: Update initializer.
3626         * locale/C-identification.c: Likewise.
3627         * locale/C-measurement.c: Likewise.
3628         * locale/C-telephone.c: Likewise.
3629         * locale/C-address.c: Likewise.
3630         * locale/C-name.c: Likewise.
3631         * locale/C-paper.c: Likewise.
3632         * locale/C-time.c: Likewise.
3633         * locale/C-numeric.c: Likewise.
3634         * locale/C-monetary.c: Likewise.
3635         * locale/C-messages.c : Likewise.
3636         * locale/C-ctype.c: Likewise.
3638         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
3639         use CHAR_BIT instead of BITSPERBYTE.
3641         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
3642         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
3643         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
3644         (_nl_remove_locale): Likewise.
3645         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
3647         * locale/findlocale.c (_nl_default_locale_path): New variable.
3648         (_nl_find_locale): If LOCALE_PATH is null, default to that.
3649         * locale/localeinfo.h: Declare it.
3650         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
3651         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
3652         * locale/newlocale.c (__newlocale): Likewise.
3654         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
3655         * inet/rexec.c (rexec_af): Add libc_hidden_def.
3656         * sysdeps/generic/morecore.c: Likewise.
3657         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
3658         (__libc_current_sigrtmax): Likewise.
3660 2002-08-08  Roland McGrath  <roland@redhat.com>
3662         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
3663         * catgets/open_catalog.c (__open_catalog): Likewise.
3665         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
3666         from typo INITIAL_NUM_NANES.
3667         (create_archive): Update use.
3669 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3671         * sysdeps/unix/sysv/linux/sigwait.c: New file.
3673 2002-08-08  Roland McGrath  <roland@frob.com>
3675         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
3677 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
3679         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
3680         else and undefine after including wcstol_l.c.
3681         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
3683 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
3685         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
3687 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
3689         * configure.in: Make the test for broken_alias_attribute stricter.
3691 2002-05-24  Robert Love  <rml@tech9.net>
3693         * posix/Makefile (routines): Add sched_getaffinity and
3694         sched_setaffinity.
3695         * posix/sched.h: Add declarations for sched_getaffinity and
3696         sched_setaffinity.
3697         * sysdeps/generic/sched_getaffinity.c: New file.
3698         * sysdeps/generic/sched_setaffinity.c: New file.
3699         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
3700         sched_setaffinity.
3702 2002-08-06  Andreas Schwab  <schwab@suse.de>
3704         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
3706 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3708         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
3709         message.
3711         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
3712         It is known to be defined.
3714         * include/string.h: Define index and rindex only if _ISOMAC is not
3715         defined.
3717         * elf/rtld.c: Include <errno.h>.
3718         * sysdeps/generic/libc-tls.c: Likewise.
3720 2002-08-07  Roland McGrath  <roland@redhat.com>
3722         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
3723         it internally.
3724         (precsize_aton): Likewise.
3726         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
3727         the static symbols added in the last change (doofus is me).
3729         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
3730         loop to notice missing categories in a composite name.
3732         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
3733         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
3734         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
3735         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
3737 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
3739         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
3741 2002-08-07  Roland McGrath  <roland@redhat.com>
3743         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
3744         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
3745         Reported by Jakub Jelinek  <jakub@redhat.com>.
3747 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
3749         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
3750         division.
3752 2002-08-06  Roland McGrath  <roland@redhat.com>
3754         * include/getopt.h: Put private decls inside [_GETOPT_H].
3755         Use libc_hidden_proto for getopt_long, getopt_long_only.
3756         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
3757         Add libc_hidden_def.
3759         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
3760         Define as a macro for __dl_iterate_phdr.
3762         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
3763         made static.  Add __ name as a strong alias.
3764         (internal_endnetgrent): Likewise.
3765         (internal_getnetgrent_r): Likewise.
3767         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
3768         with no __ prefix.
3769         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
3770         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
3771         all *_l functions with no __ prefix.
3772         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
3773         * ctype/ctype_l.c: Likewise.
3774         * locale/nl_langinfo.c: Likewise.
3775         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
3776         * stdlib/stdlib.h [__USE_GNU]: Likewise.
3777         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
3778         * wctype/wctype.h [__USE_GNU]: Likewise.
3779         * string/strcoll_l.c (strcoll_l): Define as weak alias.
3780         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
3781         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
3782         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
3783         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
3784         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
3785         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
3786         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
3787         (__wcscasecmp_l): Add libc_hidden_def.
3788         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
3789         (__wcsncasecmp_l): Add libc_hidden_def.
3790         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
3791         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
3792         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
3793         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
3794         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
3795         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
3796         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
3797         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
3798         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
3799         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
3800         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
3801         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
3802         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
3803         * wctype/wctype_l.c (wctype_l) Define as weak alias.
3805 2002-08-05  Roland McGrath  <roland@redhat.com>
3807         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
3808         netname2user, host2netname, user2netname, key_gendes.
3809         * sunrpc/netname.c: Add libc_hidden_def.
3810         * sunrpc/key_call.c: Likewise.
3812         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
3813         freeaddrinfo.
3814         * inet/getnameinfo.c: Add libc_hidden_def.
3815         * sysdeps/generic/getaddrinfo.c: Likewise.
3816         * sysdeps/posix/getaddrinfo.c: Likewise.
3818         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
3819         * wcsmbs/wmemchr.c: Add libc_hidden_def.
3820         * wcsmbs/wmemset.c: Add libc_hidden_def.
3822         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
3823         (index, rindex): Define as macros for strchr, strrchr.
3825         * string/envz.c (envz_strip): index -> strchr
3827         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
3828         * sunrpc/rpc_prot.c: Add libc_hidden_def.
3830         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
3831         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
3833         * include/stdlib.h: Use libc_hidden_proto for wctomb.
3834         * stdlib/wctomb.c: Add libc_hidden_def.
3836         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
3837         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
3838         * resolv/herror.c: Likewise.
3839         * inet/rcmd.c: Add libc_hidden_def.
3840         * inet/ruserpass.c: Likewise.
3841         * inet/getnetgrent_r.c: Likewise.
3843         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
3844         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
3845         for svcerr_auth, svcerr_noprog, svcerr_progvers.
3846         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
3847         libc_hidden_def.
3848         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
3849         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
3851         * sysdeps/posix/system.c (do_system): New function, guts broken out of
3852         __libc_system.
3853         (__libc_system): Call it, putting just the line == NULL test here.
3855         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
3856         variables work right.
3858         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
3859         * elf/dl-close.c (_dl_close): Likewise.
3861         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
3862         in6addr_any, in6addr_loopback.  Remove decls for
3863         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
3864         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
3865         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
3866         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
3867         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
3868         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
3869         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
3870         in6addr_loopback.
3871         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
3873         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
3874         ether_aton_r.
3875         * inet/ether_aton_r.c: Add libc_hidden_def.
3876         * inet/ether_ntoa_r.c: Likewise.
3878         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
3879         xprt_unregister.
3880         * sunrpc/svc.c: Add libc_hidden_def.
3881         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
3882         pmap_set, pmap_unset.
3883         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
3884         * sunrpc/pm_getport.c: Likewise.
3885         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
3886         * sunrpc/publickey.c: Add libc_hidden_def.
3888 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3890         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
3891         the other memset call in this function.
3893         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
3894         at correct index.  Clear BSS region now that memalign is used.
3896 2002-08-05  Roland McGrath  <roland@redhat.com>
3898         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
3899         * sysdeps/generic/uname.c: Add libc_hidden_def.
3900         * sysdeps/mach/hurd/uname.c: Likewise.
3902 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
3904         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
3905         wcspbrk): Add libc_hidden_proto.
3906         * time/strftime.c (my_strftime): Add libc_hidden_def.
3907         (strftime): Remove libc_hidden_def.
3908         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
3909         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3910         * wcsmbs/wcsspn.c (wcsspn): Likewise.
3911         * wcsmbs/wcscmp.c (wcscmp): Likewise.
3912         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
3913         * wcsmbs/wcscoll.c (wcscoll): Likewise.
3915         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
3916         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3917         __rpc_thread_createerr): Add libc_hidden_proto.
3918         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
3919         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
3920         __rpc_thread_createerr): Add libc_hidden_def.
3922         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
3923         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
3924         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
3925         clnt_perror, clnt_sperror): Add libc_hidden_def.
3926         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
3928         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
3929         libc_hidden_proto.
3930         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
3931         * sunrpc/des_soft.c (des_setparity): Likewise.
3933         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
3934         Add libc_hidden_proto.
3935         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
3936         Add libc_hidden_def.
3938 2002-08-05  Roland McGrath  <roland@redhat.com>
3940         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
3941         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
3942         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
3943         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
3944         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
3945         old data, abandoning the original memory allocated by rtld at startup,
3946         instead of calling realloc normally.
3948 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
3950         * po/fr.po: Update from translation team.
3952 2002-08-04  Roland McGrath  <roland@redhat.com>
3954         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
3955         then generate a dummy module under the given name, obeying the
3956         normal rules for the "caller" field.
3958         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
3959         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
3961         * include/pthread.h: Don't declare __pthread_initialize_minimal as
3962         weak here; we declare it weak or strong in the one place we use it.
3963         * sysdeps/generic/libc-start.c: ... which is here.
3964         Don't make the decl weak if [USE_TLS], since static programs need TLS
3965         setup even when single-threaded.
3967         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
3969         * elf/Makefile (test-srcs): Add $(modules-names) to it.
3970         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
3971         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
3972         all these variables.
3974 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
3976         * include/stdio.h: Don't define macro magic to redirect function
3977         calls if _ISOMAC is defined.
3979         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
3980         ldouble asin tests.
3982 2002-08-04  Roland McGrath  <roland@redhat.com>
3984         * stdlib/lrand48_r.c: Add libc_hidden_def.
3986         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
3987         TCB with __libc_memalign instead of mmap.
3988         (_dl_deallocate_tls): Free it with free instead of munmap.
3990         * Makerules (cpp-srcs-left): When setting this to run
3991         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
3992         words.  Combine the two loops into one on the concatenated list,
3993         including those as well as $(test-srcs).
3995         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
3996         since we align here with optimally minimal waste anyway.
3997         (malloc): Just call that.
3999         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
4000         the right variable.
4002         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
4003         to compute memory location for l_tls_initimage.
4004         * elf/rtld.c (_dl_start): Likewise.
4005         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
4007         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
4008         because the .d file is generated in the non-shared case and
4009         so fails to catch them otherwise.
4011         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
4012         split out of _dl_allocate_tls.
4013         (_dl_allocate_tls_init): Likewise.
4014         (_dl_allocate_tls): Call those.
4015         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
4016         * elf/rtld.c (dl_main): Call them separately instead of calling
4017         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
4018         is finished, so that the initializer data has been relocated before we
4019         copy it into the main thread's TLS block.
4021         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
4022         loop conditions, prevented the last used module from being initialized.
4024 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
4026         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
4027         if glob resp. globfree are not macros.
4028         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
4029         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
4030         Add libc_hidden_ver.
4031         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
4032         libc_hidden_def.
4033         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
4034         instead of libc_hidden_weak.
4035         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
4036         libc_hidden_ver instead of libc_hidden_def.
4037         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
4038         libc_hidden_ver instead of libc_hidden_def.
4039         (wcstoll, wcstoq): Remove libc_hidden_weak.
4040         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
4041         libc_hidden_ver.
4042         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
4043         libc_hidden_ver.
4044         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
4045         libc_hidden_ver.
4046         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
4047         libc_hidden_ver.
4049 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
4051         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
4052         to access _sys_siglist.
4053         * string/strsignal.c: Likewise.
4054         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
4055         * sysdeps/gnu/siglist.c: Likewise.
4056         * sysdeps/unix/siglist.c: Likewise.
4057         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
4059         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
4061         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
4063         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
4064         alias and use it.
4065         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
4067         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
4068         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
4069         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
4071         * include/time.h: Add libc_hidden_proto for __gmtime_r.
4072         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
4074         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
4075         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
4076         and __gconv_get_cache respectively.
4077         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
4078         defined static.  Change all users.
4079         (__gconv_get_cache): New function.
4080         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
4081         (__gconv_get_alias_db): New function.
4082         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
4083         (__conv_modules_db): Likewise.
4084         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
4085         and __gconv_get_alias_db.
4086         * iconv/iconv_prog.c: Use the new functions instead of accessing the
4087         variables.
4089         * include/stdlib.h: Add prototype and libc_hidden_proto for
4090         __default_morecore.
4091         * sysdeps/generic/morecore.c: Include <stdlib.h>.
4093         * malloc/obstack.c: Remove fputs macro.
4095         * malloc/mtrace.c: Remove fopen macro.
4097 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
4099         * manual/debug.texi: Fix spelling to programmatically.
4100         Reported by <hayastan132@hotmail.com>.
4102 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
4104         * include/libio.h: Add libc_hidden_proto for __uflow.
4105         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
4106         fgetpos to _IO_* names.
4107         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
4108         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
4109         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
4110         putwc_unlocked, vswscanf.
4111         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
4112         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
4113         * libio/fseek.c: Likewise.
4114         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
4115         not fopencookie.
4116         * libio/genops.c (__uflow): Add libc_hidden_def.
4117         * libio/iofflush_u.c (fflush_unlocked): Likewise.
4118         * libio/iofgets_u.c (fgets_unlocked): Likewise.
4119         * libio/iofputs_u.c (fputs_unlocked): Likewise.
4120         * libio/iofputws_u.c (fputws_unlocked): Likewise.
4121         * libio/iofread_u.c (fread_unlocked): Likewise.
4122         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
4123         * libio/iovswscanf.c (vswscanf): Likewise.
4124         * libio/putwc_u.c (putwc_unlocked): Likewise.
4125         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
4126         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
4127         * malloc/mtrace.c: Likewise.
4129         * sunrpc/clnt_perr.c: Remove fputs macro.
4130         * sunrpc/svc_simple.c: Likewise.
4131         * sunrpc/svc_tcp.c: Likewise.
4132         * sunrpc/svc_udp.c: Likewise.
4133         * sunrpc/xdr_rec.c: Likewise.
4134         * sunrpc/xdr_ref.c: Likewise.
4136         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
4137         iconv_prog, linereader, and charmap-dir.
4138         * locale/Makefile: Likewise for locale and charmap-dir.
4139         * malloc/Makefile: Likewise for memusagestat.
4140         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
4141         * sunrpc/Makefile: Likewise for rpc_main.
4142         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
4143         * timezone/Makefile: Likewise for zic.
4145         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
4147         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
4148         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
4149         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
4150         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
4151         _dl_close.
4153         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
4154         __wunderflow.
4155         * libio/genops.c (__underflow): Add libc_hidden_def.
4156         * libio/wgenops.c (__wuflow): Likewise.
4157         (__wunderflow): Likewise.
4159         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
4160         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
4162         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
4163         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
4165         * include/string.h: Add libc_hidden_proto for __strverscmp.
4166         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
4168         * include/unistd.h: Add libc_hidden_proto for __sysconf.
4169         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
4170         * sysdeps/posix/sysconf.c: Likewise.
4171         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
4172         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
4174         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
4175         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
4176         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
4177         __iswxdigit_l, __towlower_l, __towupper_l.
4178         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
4179         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
4181         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
4182         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
4183         * sysdeps/mach/hurd/xmknod.c: Likewise.
4184         * sysdeps/unix/xmknod.c: Likewise.
4185         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4186         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
4187         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4189         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
4191 2002-08-03  Roland McGrath  <roland@redhat.com>
4193         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
4194         setpriority.
4195         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
4196         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
4197         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
4198         * sysdeps/mach/hurd/setpriority.c: Likewise.
4199         * sysdeps/mach/hurd/getpriority.c: Likewise.
4200         * sysdeps/generic/setpriority.c: Likewise.
4201         * sysdeps/generic/getpriority.c: Likewise.
4203         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
4204         * malloc/mcheck.c: Add libc_hidden_def.
4206         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
4207         * misc/hsearch_r.c: Add libc_hidden_def.
4209         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
4210         * posix/fnmatch.c: Add libc_hidden_weak.
4212         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
4213         execl, execle, execlp, execvp, getpid, getsid.
4214         * sysdeps/generic/alarm.c: Add libc_hidden_def.
4215         * sysdeps/unix/alarm.c: Likewise.
4216         * posix/confstr.c: Likewise.
4217         * posix/execvp.c: Likewise.
4218         * posix/execlp.c: Likewise.
4219         * posix/execle.c: Likewise.
4220         * posix/execl.c: Likewise.
4221         * sysdeps/generic/getsid.c: Likewise.
4222         * sysdeps/mach/hurd/getsid.c: Likewise.
4223         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
4224         * sysdeps/mach/hurd/getpid.c: Likewise.
4226         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
4227         qecvt_r, qfcvt_r, lrand48_r.
4228         * misc/efgcvt_r.c: Add libc_hidden_def.
4230         * include/wordexp.h: Use libc_hidden_proto for wordfree.
4231         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
4233         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
4234         * locale/nl_langinfo.c: Add libc_hidden_def.
4236         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
4237         * sysdeps/generic/glob.c: Add libc_hidden_def.
4238         * sysdeps/generic/glob64.c: Likewise.
4239         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
4241         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
4243         * elf/Makefile (CFLAGS-vismod2.c): New variable.
4245         * locale/setlocale.c (_nl_current_names): Variable moved ...
4246         * locale/localename.c (_nl_current_names): ... here, new file.
4247         Make it global, with attribute_hidden.
4248         * locale/localeinfo.h: Declare it.
4249         * locale/Makefile (aux): Add localename.
4250         * locale/localename.c (__current_locale_name): New function.
4251         * include/locale.h (__current_locale_name): Declare it.
4252         * intl/dcigettext.c (guess_category_value): Use that instead of
4253         calling setlocale.
4255         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
4256         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
4257         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
4258         * locale/newlocale.c: Add alias to __ name.
4259         * locale/duplocale.c: Likewise.
4260         * locale/freelocale.c: Likewise.
4261         * locale/uselocale.c: New file.
4262         * locale/Makefile (routines): Add it.
4263         * locale/Versions (libc: GLIBC_2.3): New set.
4264         Add newlocale, duplocale, freelocale, uselocale.
4265         (libc: GLIBC_PRIVATE): Add __uselocale.
4267         * locale/localeinfo.h [SHARED]
4268         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
4269         (_NL_CURRENT_DATA): Define using that.
4270         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
4271         (_NL_CURRENT_DEFINE): Define to empty.
4272         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
4273         conditionalized on this.
4274         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
4275         taking initializer of _nl_C_locobj.
4276         [SHARED] (_nl_global_locale): New variable, using that initializer.
4277         (_nl_C_locobj): Use new macro for initialzier.
4278         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
4279         [! SHARED] (CATEGORY_USED): New macro.
4280         [SHARED] (CATEGORY_USED, _nl_C): New macros.
4281         (setdata, setlocale): Use that macro instead of examining _nl_current.
4282         (setdata): Set the slot in _nl_global_locale.
4283         Conditionalize setting of _nl_current on [! SHARED].
4284         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
4285         declaration as an extern.
4286         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
4288         * include/locale.h: Use libc_hidden_proto for setlocale.
4289         * locale/setlocale.c: Add libc_hidden_def.
4291         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
4293         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
4294         * misc/hsearch_r.c: Add libc_hidden_def.
4295         * misc/lsearch.c: Likewise.
4297         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
4298         endttyent.
4299         * misc/getttyent.c: Add libc_hidden_def.
4301         * include/mcheck.h: Use libc_hidden_proto for mcheck.
4302         * malloc/mcheck.c: Add libc_hidden_def.
4304         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
4305         * include/argz.h: Use libc_hidden_proto for argz_delete.
4306         * string/argz-delete.c: Add libc_hidden_def.
4307         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
4309         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
4310         HIDDEN_JUMPTARGET for _exit.
4311         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
4312         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
4313         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
4314         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
4316         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
4317         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
4318         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
4319         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
4321         * include/stdlib.h: Use libc_hidden_proto for abort,
4322         __strtof_internal, __strtod_internal, __strtold_internal,
4323         __strtol_internal, __strtoll_internal, __strtoul_internal,
4324         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
4325         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
4326         __strtoul_l_internal, __strtoull_l_internal.
4327         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
4328         __wcstod_internal, __wcstold_internal, __wcstol_internal,
4329         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
4330         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
4331         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
4332         __wcsncasecmp_l.
4333         * sysdeps/generic/abort.c: Add libc_hidden_def.
4334         * stdlib/strtod.c: Likewise.
4335         * sysdeps/generic/strtol.c: Likewise.
4336         * sysdeps/wordsize-64/strtol.c: Likewise.
4337         * sysdeps/wordsize-64/wcstol.c: Likewise.
4338         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
4340         * include/stdlib.h: Use libc_hidden_proto for qsort.
4341         * stdlib/msort.c: Add libc_hidden_def.
4343         * include/utime.h: Use libc_hidden_proto for utime.
4344         * sysdeps/generic/utime.c: Add libc_hidden_def.
4345         * sysdeps/unix/utime.c: Likewise.
4347         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
4348         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
4349         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
4350         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
4351         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
4353         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
4354         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
4355         and __libc_current_sigrtmax.
4356         * signal/sigismem.c: Add libc_hidden_def.
4357         * signal/sigfillset.c: Likewise.
4358         * signal/sigempty.c: Likewise.
4359         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
4360         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
4361         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
4362         * sysdeps/posix/raise.c: Likewise.
4363         * sysdeps/generic/raise.c: Likewise.
4365 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
4367         * include/string.h: Use libc_hidden_proto for __stpcpy.
4368         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
4369         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
4370         * sysdeps/generic/stpcpy.c: Likewise.
4371         * sysdeps/i386/stpcpy.S: Likewise.
4372         * sysdeps/i386/i586/stpcpy.S: Likewise.
4373         * sysdeps/powerpc/stpcpy.S: Likewise.
4374         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
4375         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
4377         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
4378         __strncasecmp_l, __strdup, __strndup, __strerror_r.
4379         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
4380         libc_hidden_def.
4381         * string/strdup.c (__strdup): Likewise.
4382         * string/strndup.c (__strndup): Likewise.
4383         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
4384         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
4386 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4388         * include/libio.h: New file.
4389         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
4390         * libio/iolibio.h: #include <libio.h>, not "libio.h".
4391         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
4392         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
4393         * sysdeps/unix/common/syscalls.list: Likewise.
4394         * sysdeps/unix/inet/syscalls.list: Likewise.
4395         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
4396         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
4397         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4398         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4399         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4400         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4401         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4402         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4403         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4404         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
4405         * sysdeps/unix/syscalls.list: Likewise.
4407 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4408             Ulrich Drepper  <drepper@redhat.com>
4410         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
4411         the arguments is big enough to cause an overflow.
4413 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
4415         * assert/assert.c: Use hidden_def not INTDEF.
4417 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
4419         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
4420         not defined.
4422 2002-08-03  Roland McGrath  <roland@redhat.com>
4424         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
4425         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
4426         verr, verrx.
4427         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
4428         * misc/syslog.c: Add libc_hidden_def.
4429         * misc/err.c: Likewise.
4430         * stdlib/exit.c: Likewise.
4431         * stdlib/bsearch.c: Likewise.
4432         * sysdeps/generic/getenv.c: Likewise.
4434         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
4436         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
4437         libc_hidden_weak for every system call symbol defined.
4439         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
4440         timelocal, localtime, strftime.
4441         * time/asctime.c: Add libc_hidden_def.
4442         * time/mktime.c: Likewise.
4443         * time/localtime.c: Likewise.
4444         * time/strftime.c: Likewise.
4445         * time/strptime.c: Likewise.
4446         * sysdeps/generic/time.c: Likewise.
4447         * sysdeps/unix/time.c: Likewise.
4448         * sysdeps/unix/sysv/i386/time.S: Likewise.
4449         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
4451         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
4452         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
4453         * resolv/inet_ntop.c: Likewise.
4454         * resolv/inet_pton.c: Likewise.
4455         * inet/inet_mkadr.c: Add libc_hidden_def.
4456         * inet/inet_netof.c: Likewise.
4457         * resolv/inet_addr.c: Likewise.
4459         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
4460         clauses from conditionals for now.  Will have to be fixed later
4461         for older compilers.
4463         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
4465 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4467         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
4468         broken alias attribute handling.
4469         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
4471 2002-08-02  Roland McGrath  <roland@frob.com>
4473         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
4474         since it sets the variables we use in a -D switch.
4476 2002-08-02  Roland McGrath  <roland@redhat.com>
4478         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
4479         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
4480         matches long int, not int.
4482         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
4483         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
4484         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4485         * wctype/wctrans.c (wctrans): Likewise.
4486         * wctype/wctype.c (__wctype): Likewise.
4487         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
4489 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4491         * assert/assert.c (__assert_fail): Fix typo in comment.
4493         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
4494         * sunrpc/rpc_thread.c: Define it without static.
4495         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
4497 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4499         * assert/assert.c (__assert_fail): Remove undef.
4500         Replace INTDEF with libc_hidden_def.
4501         * assert/__assert.c (__assert): Remove INTUSE.
4502         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
4503         libc_hidden_weak.
4504         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
4505         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
4506         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
4507         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
4508         libm_hiden_ver): Define.
4509         * include/assert.h (__assert_fail_internal): Remove.
4510         (__assert_fail): Add prototype.  Add hidden_proto.
4511         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
4512         libc_hidden_proto.
4513         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
4514         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
4515         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
4516         Add libc_hidden_proto.
4517         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
4518         __fcntl): Add libc_hidden_proto.  Remove macros.
4519         (__open_internal, __fcntl_internal): Remove.
4520         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
4521         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
4522         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
4523         libc_hiden_proto.
4524         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
4525         libc_hidden_def.
4526         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
4527         Add libc_hidden_def.
4528         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
4529         * sysdeps/generic/open.c (__open): Remove undef.
4530         Add libc_hidden_def.  Remove INTDEF.
4531         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
4532         Add libc_hidden_def.
4533         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
4534         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
4535         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
4536         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4537         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4538         (__libc_fcntl): Add libc_hidden_def.
4539         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
4540         (__open): Remove INTDEF2.  Add libc_hidden_weak.
4541         (__libc_open): Add libc_hidden_def.
4542         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
4543         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
4544         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
4545         Add libc_hidden_def.
4546         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
4547         Add libc_hidden_def.
4548         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
4549         undef.
4550         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
4551         (__libc_fcntl): Add libc_hidden_def.
4552         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
4553         __getpgid_internal, __chown_internal): Remove.
4554         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
4555         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
4556         __GI___chown): Add.
4557         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
4558         __getpid_internal, __open_internal, __write_internal): Remove.
4559         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
4560         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
4561         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
4562         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
4563         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
4564         Replace INTDEF with libc_hidden_def.
4565         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
4566         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
4567         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
4568         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
4569         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
4570         Add libc_hidden_proto.
4571         * include/sys/poll.h (__poll): Add libc_hidden_proto.
4572         * include/sys/select.h (__select): Likewise.
4573         * include/sys/socket.h (__send): Likewise.
4574         * include/sys/statfs.h (__statfs): Likewise.
4575         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
4576         __getpid, __getpgid, __setpgid, __close, __read, __write,
4577         __getpagesize, __sbrk): Likewise.
4578         (__chown_internal, __dup2_internal, __getpid_internal,
4579         __getpgid_internal, __close_internal, __write_internal,
4580         __getpagesize_internal): Remove.
4581         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
4582         Remove macros.
4583         * include/printf.h (__printf_fp): Add libc_hidden_proto.
4584         * include/sched.h (__sched_setscheduler): Likewise.
4585         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
4586         * include/stdlib.h (__secure_getenv): Likewise.
4587         * include/signal.h (__sigaction, __sigsuspend): Likewise.
4588         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
4589         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
4590         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
4591         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
4592         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
4593         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
4594         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
4595         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
4596         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
4597         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
4598         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
4599         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
4600         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
4601         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
4602         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
4603         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4604         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4605         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4606         * libio/genops.c (__overflow): Add libc_hidden_def.
4607         * libio/iovdprintf.c: Remove libio.h include.
4608         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
4609         libc_hidden_weak): Define to nothing if not defined.
4610         (__overflow, __woverflow): Add libc_hidden_proto.
4611         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
4612         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
4613         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4614         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
4615         (DB_LOOKUP_FCT): Add libc_hidden_proto.
4616         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
4617         and libc_hidden_def.
4618         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
4619         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
4620         (__getpgid): Add libc_hidden_proto.
4621         (__bsd_getpgrp): Remove INTUSE.
4622         * resolv/res_init.c (__res_ninit, __res_randomid): Add
4623         libc_hidden_def.
4624         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
4625         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
4626         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
4627         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
4628         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
4629         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
4630         __rpc_thread_createerr): Add libc_hidden_def.
4631         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
4632         libc_hidden_def.
4633         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
4634         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
4635         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
4636         * sysdeps/generic/chown.c (__chown): Likewise.
4637         * sysdeps/generic/close.c (__close): Likewise.
4638         * sysdeps/generic/dup2.c (__dup2): Likewise.
4639         * sysdeps/generic/pipe.c (__pipe): Likewise.
4640         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
4641         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
4642         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
4643         * sysdeps/generic/read.c (__libc_read): Likewise.
4644         (__read): Add libc_hidden_weak.
4645         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
4646         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
4647         * sysdeps/generic/select.c (__select): Likewise.
4648         * sysdeps/generic/send.c (__send): Likewise.
4649         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
4650         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
4651         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
4652         * sysdeps/generic/statfs.c (__statfs): Likewise.
4653         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
4654         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
4655         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
4656         Remove undef and INTDEF.
4657         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
4658         * sysdeps/generic/getpid.c (__getpid): Likewise.
4659         * sysdeps/generic/write.c (__libc_write): Likewise.
4660         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4661         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
4662         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4663         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
4664         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
4665         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
4666         Remove undef and INTDEF.
4667         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
4668         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
4669         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4670         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4671         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
4672         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
4673         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
4674         (__pipe): Add libc_hidden_def.
4675         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
4676         libc_hidden_weak.
4677         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
4678         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
4679         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
4680         (__read): Add libc_hidden_weak.
4681         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
4682         (__libc_pwrite64): Add libc_hidden_def.
4683         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4684         * sysdeps/mach/hurd/select.c (__select): Likewise.
4685         * sysdeps/mach/hurd/send.c (__send): Likewise.
4686         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
4687         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4688         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
4689         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
4690         * sysdeps/posix/dup2.c: Likewise.
4691         Remove undef and INTDEF.
4692         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
4693         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
4694         (__pwrite64): Add libc_hidden_weak.
4695         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
4696         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
4697         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
4698         * sysdeps/standalone/close.c (__close): Likewise.
4699         * sysdeps/standalone/write.c (__libc_write): Likewise.
4700         (__write): Add libc_hidden_weak.
4701         * sysdeps/standalone/read.c (__read): Likewise.
4702         (__libc_read): Add libc_hidden_def.
4703         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
4704         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
4705         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4706         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
4707         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
4708         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
4709         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
4710         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
4711         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
4712         __GI___sigaction): Add.
4713         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
4714         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
4715         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
4716         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
4717         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
4718         __GI___setpgid): Add.
4719         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
4720         Remove undef and INTDEF.
4721         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
4722         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
4723         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
4724         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
4725         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
4726         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
4727         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
4728         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
4729         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
4730         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
4731         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
4732         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
4733         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
4734         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
4735         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
4736         __GI___statfs, __GI___send): Add.
4737         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
4738         libc_hidden_ver resp. libc_hidden_def.
4739         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
4740         libc_hidden_def.
4741         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4742         Likewise.  Remove undef and INTDEF.
4743         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
4744         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
4745         __GI___statfs, __GI___send): Add.
4746         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
4747         libc_hidden_def.
4748         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
4749         Likewise.
4750         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
4751         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
4752         libc_hidden_ver resp. libc_hidden_def.
4753         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
4754         __GI___send): Add.
4755         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
4756         Add libc_hidden_weak.
4757         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
4758         Add libc_hidden_def.
4759         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
4760         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
4761         libc_hidden_weak.
4762         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
4763         resp. libc_hidden_def.
4764         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
4765         libc_hidden_weak.
4766         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
4767         INTDEF.
4768         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4769         Likewise.  Remove undef.
4770         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
4771         libc_hidden_weak.
4772         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
4773         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
4774         libc_hidden_weak.
4775         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
4776         libc_hidden_def.
4777         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
4778         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
4779         Likewise.  Remove undef and INTDEF.
4780         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
4781         libc_hidden_def.
4782         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
4783         libc_hidden_weak.
4784         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
4785         libc_hidden_def.
4786         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
4787         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
4788         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
4789         libc_hidden_weak.
4790         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
4791         Add libc_hidden_def.
4792         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
4793         __GI___statfs): Add.
4794         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
4795         libc_hidden_weak.
4796         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
4797         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
4798         Remove undef and INTDEF.
4799         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
4800         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
4801         libc_hidden_def.
4802         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
4803         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
4804         libc_hidden_weak.
4805         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
4806         libc_hidden_def.
4807         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
4808         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
4809         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
4810         Add.
4811         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
4812         libc_hidden_def.  Remove undef and INTDEF.
4813         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
4814         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
4815         libc_hidden_def.
4816         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
4817         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
4818         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
4819         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
4820         Remove undef and INTDEF.
4821         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
4822         broken visibility attribute handling.
4823         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
4825 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
4827         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
4828         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
4830         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
4831         previous patch.
4833 2002-06-29  Todd Fries  <todd@openbsd.org>
4835         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
4837 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4839         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
4841 2002-07-30  Roland McGrath  <roland@redhat.com>
4843         * resolv/resolv.h (_res): Define macro unconditionally.
4844         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
4845         * include/resolv.h: ... here.
4846         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
4847         as a __thread variable.
4848         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
4849         a __thread variable instead of a global.
4850         * resolv/res_data.c [_LIBC]: Don't #undef _res.
4852         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
4853         time we test it.
4855         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
4857         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
4858         decls of memset and memcpy.
4860         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
4861         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
4863         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
4865         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
4866         (__libc_tsd_define): Define using __thread.
4868         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
4869         (__rpc_thread_variables): Use __libc_tsd_get.
4870         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
4871         __rpc_thread_variables, which might allocate what we're about to free.
4873         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
4874         thread-local variable.
4875         * resolv/netdb.h (h_errno): Define macro unconditionally.
4876         [_LIBC] (__set_h_errno): Macro moved to ...
4877         * include/netdb.h: ... here.
4878         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
4879         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
4880         [! _LIBC_REENTRANT]: #undef h_errno here.
4882         * include/errno.h: Protect from multiple inclusion.
4884         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
4885         before defining them, since Linux's <linux/posix_types.h> might have
4886         defined them.
4888 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4890         * malloc/malloc.c (public_cALLOc): Check for overflow on
4891         multiplication.
4892         * sunrpc/xdr_array.c (xdr_array): Likewise.
4893         * sunrpc/rpc/types.h (mem_free): Add comment.
4894         Patch by Solar Designer <solar@openwall.com>.
4896 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
4898         * sysdeps/unix/sysv/linux/kernel-features.h
4899         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
4901 2002-08-01  Roland McGrath  <roland@redhat.com>
4903         * libio/fileops.c (_IO_file_sync_mmap): New function.
4904         (_IO_file_jumps_mmap): Use it.
4905         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
4906         repeat the stat check and resize the mapped buffer as necessary.
4908 2002-07-31  Roland McGrath  <roland@redhat.com>
4910         * libio/fileops.c (decide_maybe_mmap): New static function.
4911         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
4912         mmap the file contents.  Then switch the jump tables to the mmap
4913         tables if it worked, or the vanilla file tables if not.
4914         (_IO_file_underflow_maybe_mmap): New function.
4915         (_IO_file_seekoff_maybe_mmap): New function.
4916         (_IO_file_xsgetn_maybe_mmap): New function.
4917         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
4918         * libio/libioP.h: Declare those.
4919         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
4920         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
4921         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
4922         If the stream is read-only, set its jump tables to those new ones.
4923         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
4924         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
4925         We need the tables set before _IO_file_attach.
4927         * libio/tst-mmap-eofsync.c: New file.
4928         * libio/tst-mmap-fflushsync.c: New file.
4929         * libio/bug-mmap-fflush.c: New file.
4930         * libio/tst-mmap2-eofsync.c: New file.
4931         * libio/Makefile (tests): Add them.
4933         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
4934         _IO_file_underflow_mmap fails, it already set the appropriate bit.
4936 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
4938         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
4939         Declarations moved to <bits/sys_errlist.h>.  Include that file.
4940         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
4941         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
4942         declare sys_errlist and sys_nerr.
4943         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
4944         provide declarations.
4946 2002-07-31  Roland McGrath  <roland@redhat.com>
4948         * elf/rtld.c (dl_main): Fix typo in error message.
4950 2002-07-31  Roland McGrath  <roland@frob.com>
4952         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
4953         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
4954         sysdeps/mach/hurd/dl-sysdep.c change.
4956 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
4958         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
4959         -r`/build/include for kernel headers.
4961         * po/fi.po: New file.
4963 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
4965         * configure.in (static_nss): Set to `yes' if --disable-shared.
4967 2002-07-23  Bruno Haible  <bruno@clisp.org>
4969         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
4970         is set.
4972 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4974         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
4975         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
4976         arguments.
4978 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
4980         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
4981         alias.
4983 2002-07-21  Bruno Haible  <bruno@clisp.org>
4985         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
4986         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
4987         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
4988         trans_sysdep_tab_offset.
4989         (struct sysdep_segment): New type.
4990         (struct sysdep_string): New type.
4991         (SEGMENTS_END): New macro.
4992         * intl/gettextP.h (struct sysdep_string_desc): New type.
4993         (struct loaded_domain): New fields malloced, n_sysdep_strings,
4994         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
4995         orig_tab, trans_tab, hash_tab to const pointers because they point
4996         into read-only memory.
4997         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
4998         (PRI*): Define fallback values.
4999         (get_sysdep_segment_value): New function.
5000         (_nl_load_domain): Distinguish major and minor revision parts. Add
5001         support for minor revision 1 with system dependent strings.
5002         (_nl_unload_domain): Also free the 'malloced' field.
5003         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
5004         now done in loadmsgcat.c. Add support for system dependent strings.
5006 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
5008         * posix/bug-regex7.c: New file.
5009         * posix/bug-regex8.c: New file.
5010         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
5012 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
5014         * posix/bug-regex4.c (main): Fix typos.
5015         * posix/bug-regex6.c (main): Likewise.
5017 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
5019         * posix/bug-regex6.c (main): Fix warnings.
5021         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
5023         * iconv/iconv_prog.c (main): Improve error message for the cases
5024         where -t and/or -f parameter are missing.
5026 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
5028         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
5029         (re_search): Likewise.
5030         (re_match_2): Likewise.
5031         (re_search_2): Likewise.
5032         (re_search_stub): New function.
5033         (re_search_2_stub): New function.
5034         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
5036 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
5038         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
5039         (re_string_eoi): Use STOP instead of LEN.
5040         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
5041         (re_string_construct): Likewise.
5042         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
5043         * posix/regexec.c (re_search_internal): Add a new argument STOP
5044         so that it can handle the argument STOP of re_search_2 and re_match_2
5045         correctly.
5046         (regexec): Adapt to new I/F of re_search_internal.
5047         (re_search_stub): Likewise.
5049 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
5051         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
5053         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
5055         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
5056         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
5057         of __divdi3.
5059         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
5060         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
5061         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
5062         alias for adjtimex syscall.
5064         * elf/dl-minimal.c: Define __assert_fail_internal.
5065         * assert/assert.c: Likewise.
5066         * include/assert.h: Define __assert_file macro if !SHARED and not
5067         NOT_IN_libc.
5069         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
5070         programs.
5071         * locale/Makefile: Likewise.
5072         * nscd/Makefile: Likewise.
5073         * catgets/Makefile: Likewise.
5075 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5077         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
5078         compute current position.
5080         * stdio-common/tst-fseek.c (main): Improve error messages.
5082         * libio/tst-freopen.c (main): Remove unused variable.
5084         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
5085         succesful seek call.  Simplify error checking.
5087 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
5089         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
5090         * sysdeps/ia64/fpu/libm_support.h: Likewise.
5092 2002-07-19  Roland McGrath  <roland@frob.com>
5094         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
5095         __libc_enable_secure is set.
5097 2002-07-24  Roland McGrath  <roland@frob.com>
5099         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
5100         This implementation supports only IPv4.
5101         * inet/ifaddrs.h: New file.
5102         * sysdeps/generic/ifaddrs.c: New file.
5103         * sysdeps/gnu/ifaddrs.c: New file.
5104         * inet/test-ifaddrs.c: New file.
5105         * inet/Makefile (routines): Add ifaddrs.
5106         (headers): Add ifaddrs.h here.
5107         (tests): Add test-ifaddrs.
5108         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
5110         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
5111         socket call to get an AF_INET socket, instead of using __opensock.
5112         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
5114         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
5115         if not -1 use it instead of calling __opensock.
5116         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
5117         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
5118         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
5120         * sysdeps/mach/hurd/ifreq.h: New file.
5121         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
5122         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
5123         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
5125         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
5126         which gets moved around.  Calculate size of mmap'd buffer instead.
5128 2002-07-24  Philip Blundell  <philb@gnu.org>
5130         * sysdeps/unix/arm/brk.S: Improve schedule.
5131         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
5132         efficient instruction.
5133         (__socket): Optimize return sequence.
5135 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5137         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
5138         sockets on old kernels.
5140 2002-07-22  Philip Blundell  <philb@gnu.org>
5142         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
5143         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
5144         alias.
5146 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
5148         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
5149         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
5151         * locale/programs/locarchive.c (add_locale_to_archive): Correct
5152         test to detect duplicate locales.
5154         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
5155         position would be before beginning of file.
5156         (_IO_file_seekoff_mmap): Likewise.
5157         * libio/Makefile (tests): Add bug-fseek.
5158         * libio/bug-fseek.c: New file.
5160         * intl/explodename.c: Remove support for CEN-style locale variables.
5161         It was never used and shouldn't be since it's not portable.
5162         * intl/finddomain.c: Likewise.
5163         * intl/l10nflist.c: Likewise.
5164         * intl/loadinfo.h: Likewise.
5165         * locale/findlocale.c: Likewise.
5167 2002-07-24  Roland McGrath  <roland@frob.com>
5169         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
5170         position, calculate it to take into account an active pushback buffer.
5172         * libio/Makefile (tests): Add bug-ungetc.
5173         * libio/bug-ungetc.c: New file.
5175 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
5177         * sysdeps/generic/libc-tls.c: New file.
5178         * csu/Makefile (routines): Add libc-tls.
5179         (static-only-routines): Add libc-tls.
5180         * elf/dl-support.c (_dl_phdr): New variable.
5181         (_dl_phnum): New variable.
5182         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
5183         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
5184         for !SHARED.  First look through auxiliary vector.  If TLS always
5185         call __pthread_initialize_minimal.
5187         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
5188         in mmap call is never zero.
5190 2002-07-23  Andreas Jaeger  <aj@suse.de>
5192         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
5193         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
5195 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
5197         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
5198         creation and removal of the temp file.
5200         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
5201         file creation.
5202         * test-skeleton.c (create_temp_file): New function.
5204 2002-07-22  Andreas Jaeger  <aj@suse.de>
5206         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
5207         local label.
5209 2002-07-21  Roland McGrath  <roland@frob.com>
5211         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
5212         put -I../include before -I../stdlib so we get the right errno.h et al.
5213         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
5214         (CFLAGS-wcstof.c): Likewise.
5215         (CFLAGS-wcstold.c): Likewise.
5216         (CFLAGS-wcstod_l.c): Likewise.
5217         (CFLAGS-wcstof_l.c): Likewise.
5218         (CFLAGS-wcstold_l.c): Likewise.
5220 2002-07-19  Roland McGrath  <roland@frob.com>
5222         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
5224 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
5226         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
5227         __ASSUME_AT_XID is defined.
5228         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
5229         for 2.4.1 and up.
5230         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
5231         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
5233         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
5234         (CFLAGS-wcstof.c): Likewise.
5235         (CFLAGS-wcstold.c): Likewise.
5236         (CFLAGS-wcstod_l.c): Likewise.
5237         (CFLAGS-wcstof_l.c): Likewise.
5238         (CFLAGS-wcstold_l.c): Likewise.
5240 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
5242         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
5243         __priority_which_t): Always typedef to int for C++.
5245 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
5247         * configure.in: Add test for __thread support in compiler.
5248         * config.h.in: Add HAVE___THREAD.
5249         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
5250         * include/sys/errno.h: Moved to...
5251         * stdlib/sys/errno.h: ...here.  New file.
5252         * stdlib/errno.h: New file.  Moved from...
5253         * include/errno.h: ...here.  Changed into an internal header defining
5254         libc-local things like __set_errno.
5255         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
5256         bits/errno.h.
5257         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
5258         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
5259         either.
5260         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
5261         from...
5262         (_dl_start_final): ...here.  Add code to initialize tls elements from
5263         bootstrap_map.
5264         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
5265         if USE_TLS && HAVE___THREAD.
5266         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
5267         * sysdeps/mach/hurd/bits/errno.h: Likewise.
5268         * sysdeps/standalone/arm/bits/errno.h: Likewise.
5269         * sysdeps/standalone/bits/errno.h: Likewise.
5270         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
5271         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
5272         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
5273         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
5274         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
5275         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
5276         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
5277         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
5278         use GL(dl_rtld_map), use map parameter.
5279         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
5280         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
5281         USE_TLS && HAVE___THREAD.
5282         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
5283         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
5284         TLS code sequence.
5285         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
5287         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
5288         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
5289         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
5290         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
5291         * sysdeps/unix/sysv/linux/readv.c: Likewise.
5292         * sysdeps/unix/sysv/linux/writev.c: Likewise.
5294 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
5296         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
5297         MS_INVALIDATE values.
5299 2002-07-17  Andreas Schwab  <schwab@suse.de>
5300             Ulrich Drepper  <drepper@redhat.com>
5302         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
5303         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5304         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5305         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5307 2002-07-01  H.J. Lu  <hjl@gnu.org>
5309         * elf/circleload1.c (load_dso): Call "circlemod1" and check
5310         return value.
5312         * elf/circlemod1.c (circlemod1): Return int.
5313         * elf/circlemod2.c (circlemod2): Likewise.
5314         * elf/circlemod2a.c (circlemod2): Likewise.
5315         * elf/circlemod3.c (circlemod3): Likewise.
5316         (circlemod3a): A new function.
5318 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
5320         * catgets/tst-catgets.c (main): Don't expect results for
5321         untranslated messages.
5323         * glibcbug.in: Fix little typo.  Remove STDIO.
5325         * config.h.in: Fail if __FAST_MATH__ is defined.
5326         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
5327         (CPPFLAGS-test-idouble.c): Likewise.
5328         (CPPFLAGS-test-ildouble.c): Likewise.
5330 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
5332         * intl/tst-gettext.sh: Pass -f option to msgfmt.
5333         * intl/tst-gettext.c: Correctly handle untranslated messages in
5334         positive tests.
5336         * po/de.po: Update from translation team.
5338 2002-07-02  H.J. Lu  <hjl@gnu.org>
5340         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
5341         use ll/sc.
5342         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
5344         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
5345         to 2.4.0 for mips.
5347 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
5349         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
5350         TLS fail if USE_TLS is not defined.
5352         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
5353         and adjust state for seek position.  [PR libc/4070]
5354         * libio/Makefile (tests): Add bug-rewind.
5355         * libio/bug-rewind.c: New file.
5357 2002-07-12  Philip Blundell  <philb@gnu.org>
5359         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
5360         (__backtrace): Use it.
5361         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
5363 2002-07-12  Philip Blundell  <philb@gnu.org>
5365         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
5366         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
5367         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
5368         (elf_machine_rela): Remove unused variable.
5370         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
5371         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
5372         define.
5374 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
5376         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
5378 2002-07-14  Andreas Jaeger  <aj@suse.de>
5380         * sysdeps/x86_64/bits/link.h: Add biarch support.
5382 2002-07-13  Andreas Jaeger  <aj@suse.de>
5384         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
5385         Use correct indices.
5386         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
5388 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5390         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
5391         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
5392         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
5393         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
5394         * sysdeps/s390/s390-32/bits/link.h: Remove.
5395         * sysdeps/s390/s390-64/bits/link.h: Remove.
5396         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
5397         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
5398         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
5399         * sysdeps/s390/bits/wordsize.h: New file.
5400         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
5401         elfclass.h.
5402         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
5403         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
5404         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
5405         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
5406         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
5407         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
5408         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
5409         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
5410         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
5411         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
5412         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
5413         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
5414         resource.h.
5415         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
5416         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
5417         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
5418         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
5419         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
5420         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
5421         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
5422         sigaction.h.
5423         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
5424         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
5425         siginfo.h.
5426         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
5427         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
5428         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
5429         socket.h.
5430         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
5431         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
5432         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
5433         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
5434         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
5435         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
5436         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
5437         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
5438         procfs.h.
5439         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
5440         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
5441         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
5442         ucontext.h.
5443         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
5444         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
5446 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
5448         * Versions.def (libc): Add GLIBC_2.3.
5449         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
5450         * stdlib/canonicalize.c: Add compatibility version for realpath
5451         and make new code available in GLIBC_2.3.
5453 2002-07-06  Bruno Haible  <bruno@clisp.org>
5455         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
5457 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
5459         * resolv/res_hconf.c (_res_hconf_init): Move code into new
5460         function do_init.  Use __libc_once.
5461         (do_init): New function.
5463         * iconvdata/iso8859-11.h: Removed.
5464         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
5465         (distribute): Remove iso8859-11.h.
5466         * iconvdata/tst-tables.sh: Add ISO-8859-11.
5468         * stdio-common/vfscanf.c (inchar): Restore errno from previous
5469         underflow operation if c == (W)EOF.
5471 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5473         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
5474         non-zero, adjust exponent.
5475         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
5476         Remove NO_LONG_DOUBLE aliases.
5477         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
5478         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
5479         (__log1pl): Raise divide by zero and invalid exceptions when needed.
5480         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
5481         1**y and -1**+-Inf.
5482         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
5483         Fix BITS_PER_MP_LIMB 32 extraction.
5484         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
5485         exceptions for qNaNs.
5486         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
5487         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
5488         Raise exceptions when needed.  Don't recurse unnecessarily.
5489         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
5490         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
5491         exceptions for qNaNs.
5492         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
5493         to fix *quo return value sign.
5494         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
5495         case -Inf argument.
5496         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
5498 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5500         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
5501         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
5502         -DNDEBUG.
5504 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5506         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
5507         the result.
5509         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
5510         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
5512         * Versions.def (libthread_db): Add GLIBC_2.3.
5514 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
5516         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
5517         new stream if possible.
5518         * libio/freopen64.c (freopen64): Likewise.
5519         * libio/Makefile (tests): Add tst-freopen.
5520         * libio/tst-freopen.c: New file.
5522 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5524         * libio/stdio.h (obstack_printf): Add format attribute.
5525         (obstack_vprintf): Likewise.
5527 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5529         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
5530         resp. 16 bytes on 32-bit resp. 64-bit platforms.
5531         (re_charset_t, re_string_t): Reorder structure members for 64-bit
5532         architectures.
5534 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
5536         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
5537         (init_dfa): ...here.
5539 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5541         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
5542         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
5543         nodes in parse trees.
5544         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
5545         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
5546         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
5547         nodes which can epsilon transit.
5548         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
5549         to IS_EPSILON_NODE macro.
5550         * posix/regexec.c (update_regs): New function to update registers
5551         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
5552         (proceed_next_node): Use the entities of the nodes to determine
5553         whether the node can transit to.
5554         (set_regs): Use update_regs function to update registers.
5556 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
5558         * posix/bug-regex4.c (main): Remove duplicate setlocale.
5559         * posix/bug-regex6.c: New file.
5560         * posix/Makefile (tests): Add bug-regex6.
5561         (bug-regex6-ENV): Set LOCPATH.
5563 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
5565         * Versions.def [libpthread]: Add GLIBC_2.2.6.
5566         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
5568 2002-07-06  Bruno Haible  <bruno@clisp.org>
5570         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
5572 2002-07-06  Bruno Haible  <bruno@clisp.org>
5574         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
5575         declarations.
5577         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
5579         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
5581         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
5582         not _UTSNAME_H.
5583         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
5585         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
5586         * sysdeps/generic/bits/ustat.h: Likewise.
5588         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
5590 2002-07-08  Andreas Jaeger  <aj@suse.de>
5592         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
5594 2002-07-08  Andreas Jaeger  <aj@suse.de>
5596         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
5598 2002-07-06  Andreas Jaeger  <aj@suse.de>
5600         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
5601         * sysdeps/x86_64/fpu/s_copysign.S: New file.
5602         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
5603         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
5604         * sysdeps/x86_64/fpu/s_finitel.S: New file.
5605         * sysdeps/x86_64/fpu/s_fmax.S: New file.
5606         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
5607         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
5608         * sysdeps/x86_64/fpu/s_fmin.S: New file.
5609         * sysdeps/x86_64/fpu/s_fminf.S: New file.
5610         * sysdeps/x86_64/fpu/s_fminl.S: New file.
5612 2002-06-05  Brian Youmans <3diff@gnu.org>
5614         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
5615         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
5616         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
5617         * sysdeps/ia64/fpu/e_asin.S: Likewise.
5618         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
5619         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
5620         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
5621         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
5622         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
5623         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
5624         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
5625         * sysdeps/ia64/fpu/e_exp.S: Likewise.
5626         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5627         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
5628         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
5629         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
5630         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
5631         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
5632         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
5633         * sysdeps/ia64/fpu/e_log.S: Likewise.
5634         * sysdeps/ia64/fpu/e_logf.S: Likewise.
5635         * sysdeps/ia64/fpu/e_pow.S: Likewise.
5636         * sysdeps/ia64/fpu/e_powf.S: Likewise.
5637         * sysdeps/ia64/fpu/e_powl.S: Likewise.
5638         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
5639         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
5640         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
5641         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
5642         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
5643         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
5644         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
5645         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
5646         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
5647         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
5648         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
5649         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
5650         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
5651         * sysdeps/ia64/fpu/libm_error.c: Likewise.
5652         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
5653         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
5654         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
5655         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
5656         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
5657         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
5658         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
5659         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
5660         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
5661         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
5662         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
5663         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
5664         * sysdeps/ia64/fpu/s_logb.S: Likewise.
5665         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
5666         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
5667         * sysdeps/ia64/fpu/s_modf.S: Likewise.
5668         * sysdeps/ia64/fpu/s_modff.S: Likewise.
5669         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
5670         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
5671         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
5672         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
5673         * sysdeps/ia64/fpu/s_rint.S: Likewise.
5674         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
5675         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
5676         * sysdeps/ia64/fpu/s_round.S: Likewise.
5677         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
5678         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
5679         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
5680         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
5681         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
5682         * sysdeps/ia64/fpu/s_significand.S: Likewise.
5683         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
5684         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
5685         * sysdeps/ia64/fpu/s_tan.S: Likewise.
5686         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
5687         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
5688         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
5689         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
5690         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
5691         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
5692         reflect IBM donation of math library to FSF
5693         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5694         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5695         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5696         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5697         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5698         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5699         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5700         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5701         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5702         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5703         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5704         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5705         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5706         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
5707         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5708         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5709         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5710         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5711         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5712         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5713         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5714         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5715         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
5716         * sysdeps/vax/__longjmp.c: Likewise.
5717         * sysdeps/vax/setjmp.c: Likewise.
5718         * libio/filedoalloc.c: Fixed BSD copying permission notice to
5719         remove advertising clause
5720         * sysdeps/vax/htonl.s: Likewise.
5721         * sysdeps/vax/htons.s: Likewise.
5722         * libio/wfiledoalloc.c: Likewise.
5723         * stdlib/random.c: Likewise.
5724         * stdlib/random_r.c: Likewise.
5725         * sysdeps/mach/sys/reboot.h: Likewise.
5726         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
5727         * sysdeps/posix/getaddrinfo.c: Likewise.
5728         * sunrpc/des_impl.c: Updated license permission notice to Lesser
5729         GPL and corrected pointer to point to the correct license.
5731 2002-07-04  Andreas Jaeger  <aj@suse.de>
5733         * scripts/config.guess: New upstream version.
5734         * scripts/config.sub: Likewise.
5736 2002-07-02  Andreas Schwab  <schwab@suse.de>
5738         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
5739         in parallel to bumping up the buffer pointer.
5741 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
5743         * math/libm-test.inc (acos_test): Add missing L suffix for
5744         expected result.
5745         (cpow_test): Likewise.
5746         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
5747         error for acos (0.0625).
5749 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5751         * locale/iso-639.def: Add entry for Ganda.
5752         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
5753         definition.
5754         (address_finish): Handle entries with two letter ISO 639 code.
5756         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
5757         directory if it existed before.
5758         * iconv/iconvconfig.c: Implement --prefix option.
5760         * math/libm-test.inc (cexp_test): Add missing L suffix for
5761         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
5762         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
5763         1.25 i).
5765 2002-05-29  H.J. Lu  <hjl@gnu.org>
5767         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
5768         is turned on.
5770 2002-05-28  H.J. Lu  <hjl@gnu.org>
5772         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
5773         are not dlopened on the dependency list of a dlopened object.
5775 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
5777         * elf/dl-lookup.c (add_dependency): It is not necessary to add
5778         dependencies if they are created between objects which are created
5779         while processing RTLD_NOW for objects loaded as part of the same
5780         dlopen call.
5782 2002-06-14  H.J. Lu  <hjl@gnu.org>
5784         * elf/Makefile (tests): Add circleload1.
5785         (modules-names): Add circlemod1, circlemod2, circlemod3,
5786         circlemod1a, circlemod2a and circlemod3a.
5787         ($(objpfx)circleload1): New target.
5788         ($(objpfx)circleload1.out): Likewise.
5789         ($(objpfx)circlemod1.so): Likewise.
5790         ($(objpfx)circlemod2.so): Likewise.
5791         ($(objpfx)circlemod1a.so): Likewise.
5792         ($(objpfx)circlemod2a.so): Likewise.
5793         * elf/circleload1.c: New file.
5794         * elf/circlemod1.c: New file.
5795         * elf/circlemod1a.c: New file.
5796         * elf/circlemod2.c: New file.
5797         * elf/circlemod2a.c: New file.
5798         * elf/circlemod3.c: New file.
5799         * elf/circlemod3a.c: New file.
5801 2002-06-18  Amos Waterland  <apw@us.ibm.com>
5803         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
5804         file descriptor.
5805         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
5806         add check for fd not open for writing.
5808         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
5809         completed element(s) and do not suspend thread if so.  Patch
5810         heavily modified by drepper.
5812         * rt/tst-aio7.c: New file.  Regression test for problems which the
5813         above three changes fix.
5814         * rt/Makefile (tests): Add tst-aio7.
5816 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
5818         * rt/tst-aio6.c: Fix comment.
5820         * catgets/gencat.c (read_input_file): Handle more than one slash
5821         at end of line correctly [PR libc/3926].
5822         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
5824         * catgets/sample.SJIS: Add test case for above bug.
5825         * catgets/test-gencat.c: Adjust test code.
5826         * catgets/test-gencat.sh: Adjust expected results.
5828         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
5829         to skip relative relocations.
5830         Patch by Geoff Keating <geoffk@redhat.com>.
5832 2002-05-26  Bruno Haible  <bruno@clisp.org>
5834         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
5835         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
5836         All callers changed.
5837         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
5838         STANDARD_FROM_LOOP_ERR_HANDLER.
5839         (utf8_internal_loop): Likewise.
5840         (ucs2_internal_loop): Likewise.
5841         (internal_ucs2_loop): Perform error handling like in
5842         STANDARD_FROM_LOOP_ERR_HANDLER.
5843         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
5844         in STANDARD_FROM_LOOP_ERR_HANDLER.
5845         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5846         handling.
5847         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
5848         in STANDARD_FROM_LOOP_ERR_HANDLER.
5849         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5850         handling.
5851         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
5852         in STANDARD_FROM_LOOP_ERR_HANDLER.
5853         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5854         handling.
5855         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
5856         STANDARD_FROM_LOOP_ERR_HANDLER.
5857         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
5858         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
5859         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
5860         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
5861         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
5862         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
5863         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
5864         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
5865         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
5866         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
5867         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
5868         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
5869         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
5870         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
5871         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
5872         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
5873         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
5874         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
5875         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
5876         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
5877         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
5878         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
5879         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
5880         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
5881         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
5882         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
5883         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
5884         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
5885         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
5886         an error, still set result = __GCONV_ILLEGAL_INPUT.
5887         (BODY for TO_LOOP): Likewise.
5888         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
5889         STANDARD_FROM_LOOP_ERR_HANDLER.
5890         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5891         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
5892         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5893         handling.
5894         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5895         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
5896         STANDARD_FROM_LOOP_ERR_HANDLER.
5897         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5898         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
5899         STANDARD_FROM_LOOP_ERR_HANDLER.
5900         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5901         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
5902         STANDARD_FROM_LOOP_ERR_HANDLER.
5903         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5904         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
5905         STANDARD_FROM_LOOP_ERR_HANDLER.
5906         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5907         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
5908         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
5909         handling.
5910         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
5911         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
5912         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
5913         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
5915 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5917         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
5918         labels in assembler instructions.
5920 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
5922         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
5923         not enough content is available.
5924         * libio/tst-eof.c: New file.
5925         * libio/Makefile (tests): Add tst-eof.
5927         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
5928         update atime.
5929         * libio/tst-atime.c: New file.
5930         * libio/Makefile (tests): Add tst-atime.
5932         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
5933         handling of overly long words.
5935 2002-06-25  Andreas Jaeger  <aj@suse.de>
5937         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
5938         to not use 32-bit pc relative relocations.
5939         (elf_machine_dynamic): Likewise.
5941 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5943         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
5944         (__GETDENTS): Check for failed getdents64 syscall.
5945         * dirent/Makefile (tests): Add bug-readdir1.
5946         * dirent/bug-readdir1.c: New file.
5948 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
5950         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
5951         lookups.
5952         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
5953         code.  Print TLS modid and offset for modules containing PT_TLS
5954         segments.
5956 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
5958         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
5959         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
5960         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
5961         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
5963 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
5965         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
5966         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
5967         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
5968         * nss/getXXent_r.c (NEW, NEW1): Define.
5969         (NEW (REENTRANT_GETNAME)): Strong alias to
5970         INTERNAL (REENTRANT_GETNAME).
5971         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
5973 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
5975         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
5976         (_IO_file_jumps_mmap): Use it.
5977         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
5978         * libio/libioP.h: Remove _IO_wdefault_setbuf and
5979         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
5980         prototype.
5981         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
5982         (_IO_wfile_jumps_mmap): Don't use it anymore.
5983         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
5984         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
5985         _IO_wdefault_setbuf.
5986         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
5987         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
5988         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
5990 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
5992         * libio/Makefile (tests): Add tst-mmap-setvbuf.
5993         * libio/tst-mmap-setvbuf.c: New test.
5995 2002-06-21  Andreas Jaeger  <aj@suse.de>
5997         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
5999 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
6001         * include/unistd.h (__fork_internal): Remove.
6002         (__fork): Don't define to __fork_internal.
6003         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
6004         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
6005         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
6006         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
6007         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
6009 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
6011         * po/hr.po: New file.
6013 2002-06-11  Wolfram Gloger  <wg@malloc.de>
6015         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
6016         Reported by Michael Meissner <meissner@redhat.com>.
6018 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
6020         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
6021         Patch by Hans Boehm <hans_boehm@hp.com>.
6023 2002-06-20  Andreas Jaeger  <aj@suse.de>
6025         * math/libm-test.inc: Use exact values as input parameters,
6026         compute output parameters with 36 digits for 128-bit long doubles.
6027         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
6028         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
6029         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
6031 2002-06-13  Stephen L Moshier  <steve@moshier.net>
6033         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
6034         argument or result is subnormal.
6036 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
6038         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
6039         quotient.
6040         * sysdeps/i386/fpu/s_remquof.S: Likewise.
6041         * sysdeps/i386/fpu/s_remquol.S: Likewise.
6043         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
6045 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
6047         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
6048         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
6049         Reported by Peter A. Buhr.
6051 2002-06-15  Roland McGrath  <roland@frob.com>
6053         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
6054         warning.
6056         * sysdeps/mach/hurd/getcwd.c
6057         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
6059         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
6060         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
6062         * sysdeps/alpha/divrem.h: Use local label instead of global one for
6063         jump to local subroutine.
6065 2002-06-14  Roland McGrath  <roland@frob.com>
6067         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
6068         * sysdeps/mach/hurd/Makeconfig: ... here.
6070 2002-06-13  Andreas Schwab  <schwab@suse.de>
6072         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
6073         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
6074         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
6076 2002-06-13  Roland McGrath  <roland@frob.com>
6078         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
6079         * hurd/hurdstartup.c (_hurd_startup): Likewise.
6080         Use intptr_t instead of int for argc in stack layout.
6081         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
6082         (_dl_init_first): Likewise.
6083         (_hurd_stack_setup): Likewise.
6084         (init1): Add a cast.
6085         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
6087         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
6088         argument to pfinet_siocgifconf RPC.
6090 2002-06-13  Andreas Schwab  <schwab@suse.de>
6092         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
6093         expansion order.
6095 2002-06-12  Roland McGrath  <roland@frob.com>
6097         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
6098         if already defined.
6099         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
6100         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
6102 2002-06-11  Roland McGrath  <roland@frob.com>
6104         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
6105         file on [!RTLD_STAT64].
6106         * sysdeps/mach/hurd/fxstat64.c: Likewise.
6108         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
6109         (__fdopen): Use INTUSE.
6110         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
6112         * stdio-common/tmpfile64.c: File removed.
6113         * sysdeps/generic/tmpfile64.c: New file.
6114         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
6115         if not already defined.
6116         (tmpfile): Use it in place of __GT_FILE.
6118         * include/unistd.h: Declare __chown_internal.
6120         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
6121         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
6123 2002-06-09  Roland McGrath  <roland@frob.com>
6125         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
6126         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
6127         value of HURD_INTERFACE_VERSION >= 20020609.
6128         * sysdeps/mach/hurd/configure: Regenerated.
6129         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
6130         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
6131         convert a struct stat64 into a struct stat and return 0 or -1
6132         with errno set to EOVERFLOW.
6133         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
6134         for struct statfs64 to struct statfs.
6135         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
6136         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
6137         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
6138         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
6139         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
6140         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
6141         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
6142         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
6143         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
6144         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
6145         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
6146         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
6147         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
6148         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
6149         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
6150         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
6151         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
6152         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
6153         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
6154         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
6155         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
6156         Use struct stat64 for io_stat argument.
6157         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
6158         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
6159         to io_seek.
6160         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
6161         * hurd/fd-write.c (_hurd_fd_write): Likewise.
6162         * hurd/hurd/fd.h: Update decls.
6163         * sysdeps/mach/hurd/getcwd.c
6164         (_hurd_canonicalize_directory_name_internal): Use ino64_t
6165         and struct dirent64.
6166         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
6167         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
6168         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
6169         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
6171 2002-06-08  Roland McGrath  <roland@frob.com>
6173         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
6174         instead of unsigned long int for __allocation and __size members.
6176 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
6178         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
6179         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
6180         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
6181         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
6183 2002-06-07  Roland McGrath  <roland@frob.com>
6185         * sysdeps/mach/hurd/bits/environments.h: File removed.
6187 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
6189         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
6190         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
6191         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
6192         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
6193         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
6194         (sendfile64): Likewise.
6195         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
6196         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
6197         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
6198         Likewise.
6199         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
6201         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
6202         already defined.
6204 2002-06-04  Bruno Haible  <bruno@clisp.org>
6206         * sysdeps/cris/stackinfo.h: New file.
6208         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
6209         to an integer type before performing bit operations on it.
6211 2002-06-05  Roland McGrath  <roland@frob.com>
6213         * sysdeps/generic/sendfile.c: Include <errno.h>.
6214         * sysdeps/generic/sendfile64.c: Likewise.
6216         * io/Makefile (routines): Add sendfile and sendfile64.
6217         (headers): Add sys/sendfile.h to the list.
6218         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
6219         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
6220         * io/sys/sendfile.h: ... here.
6221         * sysdeps/generic/sendfile.c: New file.
6222         * sysdeps/generic/sendfile64.c: New file.
6224         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
6225         Move sendfile, sendfile64 to ...
6226         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
6227         * sysdeps/mach/hurd/sendfile.c: New file.
6228         * sysdeps/mach/hurd/sendfile64.c: New file.
6230         * sysdeps/mach/nanosleep.c: New file.
6232 2002-06-04  Roland McGrath  <roland@frob.com>
6234         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
6235         * sysdeps/alpha/elf/configure: New file (generated).
6237 2002-06-02  Roland McGrath  <roland@frob.com>
6239         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
6241 2002-06-01  Roland McGrath  <roland@frob.com>
6243         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
6244         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
6246 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
6248         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
6249         Add nsmap.
6250         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
6251         Remove nstimes setting.
6252         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
6253         * resolv/res_send.c (res_nsend): Don't close unconditionally if
6254         there is mix of IPv6 and IPv4 nameservers.
6255         Use nsmap array to find free slots and preserve nameserver ordering.
6256         Fix RES_ROTATE.
6258 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
6260         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
6261         use this header with LFS.
6263         * po/sk.po: Update from translation team.
6265 2002-05-28  Andreas Schwab  <schwab@suse.de>
6267         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
6268         message when finding object of wrong class.
6270 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
6272         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
6273         Patch by <radu@netsoft.ro>.
6275 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
6277         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
6278         Add readahead.
6279         * sysdeps/unix/sysv/linux/readahead.c: New file.
6280         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
6281         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
6282         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
6283         Add sendfile64 alias to sendfile syscall.
6284         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6285         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6286         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6287         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
6288         syscall.
6290         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
6291         special section for PIC register loading.
6292         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
6294         * config.h.in: Define HAVE_HIDDEN.
6295         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
6297         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
6299 2002-05-28  Roland McGrath  <roland@frob.com>
6301         * sysdeps/mach/alpha/setfpucw.c: New file.
6303 2002-05-26  Roland McGrath  <roland@frob.com>
6305         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
6306         Use integer_t instead of int for IOC_VOID case.
6308 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
6310         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
6312 2002-05-26  Bruno Haible  <bruno@clisp.org>
6314         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
6315         end of the ISO-8859-7 from idx table.
6317 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
6319         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
6321 2002-05-24  David S. Miller  <davem@redhat.com>
6323         * string/bits/string2.h (memset): Do not try to optimize when
6324         not _STRING_ARCH_unaligned if GCC will do the right thing.
6326 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
6328         * posix/regex.c: Define `inline' as a macro into nothing for the
6329         compilers which lack the keyword.
6330         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
6331         for the compatibility of gawk.
6332         * posix/regcomp.c: Add fake implementation of isblank() for the
6333         environments which lack the function.
6334         Don't use free_charset() in case of non-i18n envs.
6335         (build_range_exp): Don't use i18n related code in case of non-i18n
6336         envs.
6337         (build_collating_symbol): Likewise.
6338         (build_equiv_class): Likewise.
6339         (build_charclass): Likewise.
6340         (re_compile_fastmap_iter): Likewise.
6341         (parse_bracket_exp): Likewise.
6342         (build_word_op): Likewise.
6343         (regfree): Don't use free_charset() in case of non-i18n envs.
6344         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
6345         re_token_type_t in case of non-i18n envs.
6346         Don't define re_charset_t in case of non-i18n envs.
6347         Change the type of wcs of re_string_t from wchar_t to wint_t,
6348         since we store also WEOF.
6349         * posix/regex_internal.c: (re_string_realloc_buffers): Change
6350         the type of wcs of re_string_t from wchar_t to wint_t.
6351         (re_string_reconstruct): Likewise.
6352         (create_ci_newstate): Don't use i18n related code in case of
6353         non-i18n envs.
6354         (create_cd_newstate): Likewise.
6356 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
6358         * iconv/loop.c: Fix typo.
6360 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
6362         * inet/ether_line.c (ether_line): Fix a typo causing only
6363         lower 4 bits of each ethernet address byte being assigned.
6364         Don't modify what line points to.
6365         * inet/tst-ether_aton.c (main): Add ether_line tests.
6367 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
6369         * manual/filesys.texi: Don't make readlink example leak memory
6370         when readlink fails.
6372 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
6374         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
6375         some more security checks.
6377 2002-05-17  David S. Miller  <davem@redhat.com>
6379         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
6381 2002-05-16  David S. Miller  <davem@redhat.com>
6383         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
6384         (elf_machine_dynamic): Use it to force PIC register to be loaded.
6385         (elf_machine_load_address): Likewise.
6386         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
6388         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
6389         is unaligned, do not forget to fully initialize %g1 magic value.
6391         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
6392         register definitions and provide 32-bit variants of structures
6393         during 64-bit builds.
6395         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
6396         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
6397         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
6398         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
6399         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
6400         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
6401         Do not clear implicit one bit here, it must be done post-rounding.
6402         Only pad to the left using left shift if value uses less than the
6403         available fractional bits.
6405 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6407         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
6408         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
6409         (shared-only-routines): Likewise.
6410         * sysdeps/powerpc/libgcc-compat.c: New file.
6411         * sysdeps/wordsize-32/cmpdi2.c: Removed.
6412         * sysdeps/wordsize-32/fixdfdi.c: Removed.
6413         * sysdeps/wordsize-32/fixsfdi.c: Removed.
6414         * sysdeps/wordsize-32/shdi3.c: Removed.
6416 2002-05-16  Bruno Haible  <bruno@clisp.org>
6418         * MakeTAGS (libc.pot): Don't sort the output.
6419         * po/header.pot: Update to match xgettext 0.11 output.
6421 2002-05-16  Bruno Haible  <bruno@clisp.org>
6423         * MakeTAGS (subdirs): Remove duplicates.
6425 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
6427         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
6428         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
6429         alias.
6431 2002-05-19  Andreas Jaeger  <aj@suse.de>
6433         * sysdeps/unix/sysv/linux/configure.in: Warn against an
6434         installation in /usr/local.
6436 2002-05-16  Bruno Haible  <bruno@clisp.org>
6438         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
6439         string as argument of #error.
6441 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
6443         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
6444         don't define static.  Remove old __realpath function.  TC1 of
6445         POSIX 2001 will allow the second parameter to be NULL.
6446         * stdlib/test-canon.c: Comment out test for NULL as second
6447         parameter of realpath.
6449         * time/offtime.c (__offtime): Set errno if overflow is detected.
6451         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
6452         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
6453         dl-brk and dl-sbrk.
6455         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
6456         (fdimf): Likewise.
6458 2002-05-15  Roland McGrath  <roland@frob.com>
6460         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
6462 2002-05-12  Bruno Haible  <bruno@clisp.org>
6464         * iconvdata/testdata/EUC-JISX0213: New file.
6465         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
6466         * iconvdata/testdata/SHIFT_JISX0213: New file.
6467         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
6468         * iconvdata/testdata/ISO-2022-JP-3: New file.
6469         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
6470         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
6471         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
6472         contains comments indicating precomposed characters.
6474 2002-04-21  Bruno Haible  <bruno@clisp.org>
6476         * iconvdata/iso-2022-jp-3.c: New file.
6477         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
6478         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
6479         (LDFLAGS-ISO-2022-JP-3.so): New variable.
6480         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
6481         (distribute): Add iso-2022-jp-3.c.
6483 2002-05-12  Bruno Haible  <bruno@clisp.org>
6485         * iconvdata/tst-table-to.c (main): Restore handling of
6486         transliterations, broken by last patch.
6488 2002-05-12  Bruno Haible  <bruno@clisp.org>
6490         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
6492 2002-05-12  Bruno Haible  <bruno@clisp.org>
6494         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
6495         when there is not enough room in the output buffer.
6496         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
6498 2002-04-20  Bruno Haible  <bruno@clisp.org>
6500         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
6501         macros.
6502         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6503         Also make this macro work if FROM_DIRECTION evaluates to 0.
6504         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
6505         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
6506         of consume_incomplete.
6507         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6508         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
6509         4, not 8.
6510         * iconvdata/cp1258.c: Likewise.
6511         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
6512         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
6513         not 2.
6514         * iconvdata/ibm933.c: Likewise.
6515         * iconvdata/ibm935.c: Likewise.
6516         * iconvdata/ibm937.c: Likewise.
6517         * iconvdata/ibm939.c: Likewise.
6518         * iconvdata/iso-2022-cn.c: Define
6519         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6520         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
6521         * iconvdata/iso-2022-cn-ext.c: Likewise.
6522         * iconvdata/iso-2022-jp.c: Define
6523         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6524         {MIN,MAX}_NEEDED_{FROM,TO}.
6525         * iconvdata/tcvn5712-1.c: Define
6526         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6527         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
6528         * iconvdata/euc-jisx0213.c: Define
6529         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
6530         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
6531         * iconvdata/shift_jisx0213.c: Likewise.
6533 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6535         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
6536         shdi3, fixdfdi, fixsfdi in csu dir.
6537         (shared-only-routines): Likewise.
6538         * sysdeps/wordsize-32/cmpdi2.c: New file.
6539         * sysdeps/wordsize-32/shdi3.c: New file.
6540         * sysdeps/wordsize-32/fixdfdi.c: New file.
6541         * sysdeps/wordsize-32/fixsfdi.c: New file.
6542         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
6543         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
6544         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
6546         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
6547         Only use va_arg if the argument will be used [PR libc/3259].
6549 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
6551         * catgets/catgets.c (catopen): Free buffer if internal catalog
6552         open fails.
6554 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6556         * debug/xtrace.sh: Make more robust.  For realtime tracking use
6557         non-buffering methods.
6558         * debug/pcprofiledump.c: Implement -u option.
6559         Patch by Roger Luethi <rl@hellgate.ch>.
6561 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
6563         * include/netinet/in.h (bindresvport_internal): Add prototype.
6564         * include/rpc/auth.h  (authunix_create_internal,
6565         authunix_create_default_internal, authnone_create_internal,
6566         authdes_pk_create_internal): Add prototypes.
6567         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
6568         clntudp_create_internal, clntudp_bufcreate_internal,
6569         clntunix_create_internal): Add prototypes.
6570         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
6571         svc_getreq_internal, svc_getreq_common_internal,
6572         svc_getreqset_internal, svc_getreq_poll_internal,
6573         svc_register_internal, svc_unregister_internal,
6574         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
6575         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
6576         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
6577         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
6578         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
6579         * inet/rcmd.c (rcmd_af): Use __listen.
6580         (rresvport_af): Use __bind.
6581         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
6582         authunix_create, authunix_create_default, authnone_create,
6583         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
6584         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
6585         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
6586         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
6587         _authenticate, add INTDEF after such function definitions.
6588         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
6589         __setsockopt, __getsockname instead of non-__ variants.
6590         * sunrpc/pmap_rmt.c: Likewise.
6591         * sunrpc/rtime.c: Likewise.
6592         * sunrpc/svc_udp.c: Likewise.
6593         * sunrpc/clnt_unix.c: Likewise.
6594         * sunrpc/svc_unix.c: Likewise.
6595         * sunrpc/bindrsvprt.c: Likewise.
6596         * sunrpc/svc_tcp.c: Likewise.
6597         * sunrpc/auth_none.c: Likewise.
6598         * sunrpc/clnt_raw.c: Likewise.
6599         * sunrpc/clnt_tcp.c: Likewise.
6600         * sunrpc/auth_unix.c: Likewise.
6601         * sunrpc/key_call.c: Likewise.
6602         * sunrpc/clnt_gen.c: Likewise.
6603         * sunrpc/pm_getmaps.c: Likewise.
6604         * sunrpc/clnt_simp.c: Likewise.
6605         * sunrpc/pmap_clnt.c: Likewise.
6606         * sunrpc/svc_run.c: Likewise.
6607         * sunrpc/svc.c: Likewise.
6608         * sunrpc/svc_simple.c: Likewise.
6609         * sunrpc/pm_getport.c: Likewise.
6610         * sunrpc/auth_des.c: Likewise.
6611         * sunrpc/svc_auth.c: Likewise.
6612         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
6613         __register_frame_info_table_bases, __deregister_frame_info_bases):
6614         Add INTDEF.
6615         (__register_frame_info_bases_internal,
6616         __register_frame_info_table_bases_internal,
6617         __deregister_frame_info_bases_internal): Add prototypes.
6618         (__register_frame_info, __register_frame): Use INTUSE in call to
6619         __register_frame_info_bases.
6620         (__register_frame_info_table): Similarly.
6621         (__deregister_frame_info, __deregister_frame): Similarly.
6622         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
6623         sendto as weak alias.
6624         * sysdeps/mach/hurd/sendto.c: Likewise.
6625         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
6626         recvfrom as weak alias.
6627         * sysdeps/mach/hurd/recvfrom.c: Likewise.
6628         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
6629         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
6630         recvmsg as weak alias.
6631         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
6632         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
6633         sendmsg as weak alias.
6634         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
6635         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
6636         setsockopt, add setsockopt as weak alias.
6637         * sysdeps/mach/hurd/setsockopt.c: Likewise.
6638         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
6639         weak alias.
6640         * sysdeps/mach/hurd/bind.c: Likewise.
6641         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
6642         as weak alias.
6643         * sysdeps/mach/hurd/listen.c: Likewise.
6644         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
6645         getsockname, add getsockname as weak alias.
6646         * sysdeps/mach/hurd/getsockname.c: Likewise.
6647         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
6648         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
6649         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
6650         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
6651         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
6652         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
6653         Add aliases.
6654         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6655         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6656         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
6657         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6658         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
6659         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
6660         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
6661         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
6662         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
6663         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
6664         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
6665         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
6667 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6669         * locale/programs/localedef.h (show_archive_content): Add verbose
6670         argument.
6671         * locale/programs/localedef.c (main): Adjust caller.
6672         * locale/programs/locarchive.c (struct nameent, struct dataent): New
6673         types.
6674         (nameentcmp, dataentcmp): New functions.
6675         (xstrcmp): Remove.
6676         (show_archive_content): Print verbose listing with --list-archive -v.
6678 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
6680         * locale/programs/locarchive.c (open_archive): Take extra argument
6681         readonly.  If true open file with O_RDONLY and don't create the
6682         archive if it doesn't exist.
6683         Adapt all callers.
6684         (close_archive): Don't do anything if fd element is -1.
6685         * locale/programs/localedef.h (open_archive): Adjust prototype.
6686         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
6687         call.
6689         * malloc/malloc.c (__posix_memalign): Correct check for size of
6690         alignment value [PR libc/3444].
6692         * include/stdio.h: Remove references to old stdio implementation.
6694         * libio/Makefile (bug-ungetwc2-ENV): Define.
6696 2002-05-13  Roland McGrath  <roland@frob.com>
6698         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
6700         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
6702 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
6704         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6705         Allocate three, not two, more than LEN when appending '/.'.
6706         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
6707         if NAME ends with '/.' if it is shorter than 2 chars.
6709 2002-05-12  Roland McGrath  <roland@frob.com>
6711         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
6712         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
6714         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
6715         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
6717 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
6719         * sysdeps/ia64/Makefile: Remove extra endif.
6720         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
6722 2002-05-10  Andreas Schwab  <schwab@suse.de>
6724         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
6726 2002-05-09  Andreas Jaeger  <aj@suse.de>
6728         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
6729         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
6730         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
6732         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
6733         * sysdeps/wordsize-64/glob.c: ...here.
6734         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
6735         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
6736         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
6738 2002-05-08  Roland McGrath  <roland@frob.com>
6740         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
6741         O_NOTRANS flag in "." lookup.
6743 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
6745         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
6747 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
6749         * locale/duplocale.c (__duplocale): Update special members only
6750         when allocation succeeded.
6752 2002-05-03  Roland McGrath  <roland@frob.com>
6754         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
6755         we can only build libc.so.0.3(GLIBC_2.2.6) now.
6757 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
6759         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
6760         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
6761         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
6762         * sysdeps/ia64/ia64libgcc.S: New file.
6764 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
6766         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
6768         * malloc/memusage.c: Distinguish anonymous mmap.
6770 2002-05-01  Roland McGrath  <roland@frob.com>
6772         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
6773         and use INTDEF on it.
6774         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
6776         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
6778         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
6780 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
6782         * malloc/memusage.c: Add support for tracking mmap & friends.
6783         * malloc/memusage.sh: Implement -m/--mmap option.
6785 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6787         * locale/programs/locarchive.c (create_archive): Add archivefname
6788         argument, create fname from it.
6789         (enlarge_archive): Honour output_prefix.
6790         (open_archive): Likewise.
6792 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
6794         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
6795         too many stpcpy macros.
6797 2002-04-26  Bruno Haible  <bruno@clisp.org>
6799         * locale/programs/ld-collate.c (collate_read): Cast first argument
6800         for "%.*s" to int.
6802 2002-04-26  Bruno Haible  <bruno@clisp.org>
6804         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
6805         __dcngettext_internal): New declarations.
6806         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
6807         attribute declarations.
6809 2002-04-30  Roland McGrath  <roland@frob.com>
6811         Removed old GNU stdio implementation; GNU libio is now the only option.
6812         * configure.in: Removed --enable-libio option and @stdio@ subst var.
6813         Define USE_IN_LIBIO unconditionally.
6814         * configure: Regenerated.
6815         * Makeconfig (stdio): Set to libio by default.
6816         * config.make.in (stdio): Variable removed.
6817         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
6818         * sysdeps/unix/sysv/linux/configure: Regenerated.
6819         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
6820         * sysdeps/mach/hurd/configure: Regenerated.
6821         * stdio/.cvsignore: File removed.
6822         * stdio/Makefile: File removed.
6823         * stdio/Versions: File removed.
6824         * stdio/__fbufsize.c: File removed.
6825         * stdio/__flbf.c: File removed.
6826         * stdio/__fpending.c: File removed.
6827         * stdio/__fpurge.c: File removed.
6828         * stdio/__freadable.c: File removed.
6829         * stdio/__freading.c: File removed.
6830         * stdio/__fsetlocking.c: File removed.
6831         * stdio/__fwritable.c: File removed.
6832         * stdio/__fwriting.c: File removed.
6833         * stdio/clearerr.c: File removed.
6834         * stdio/fclose.c: File removed.
6835         * stdio/fcloseall.c: File removed.
6836         * stdio/feof.c: File removed.
6837         * stdio/ferror.c: File removed.
6838         * stdio/fflush.c: File removed.
6839         * stdio/fgetc.c: File removed.
6840         * stdio/fgetpos.c: File removed.
6841         * stdio/fgets.c: File removed.
6842         * stdio/fileno.c: File removed.
6843         * stdio/fmemopen.c: File removed.
6844         * stdio/fopen.c: File removed.
6845         * stdio/fopncook.c: File removed.
6846         * stdio/fputc.c: File removed.
6847         * stdio/fputs.c: File removed.
6848         * stdio/fread.c: File removed.
6849         * stdio/freopen.c: File removed.
6850         * stdio/fseek.c: File removed.
6851         * stdio/fsetpos.c: File removed.
6852         * stdio/ftell.c: File removed.
6853         * stdio/fwrite.c: File removed.
6854         * stdio/getc.c: File removed.
6855         * stdio/getchar.c: File removed.
6856         * stdio/getdelim.c: File removed.
6857         * stdio/gets.c: File removed.
6858         * stdio/glue.c: File removed.
6859         * stdio/internals.c: File removed.
6860         * stdio/linewrap.c: File removed.
6861         * stdio/linewrap.h: File removed.
6862         * stdio/memstream.c: File removed.
6863         * stdio/newstream.c: File removed.
6864         * stdio/obstream.c: File removed.
6865         * stdio/putc.c: File removed.
6866         * stdio/putchar.c: File removed.
6867         * stdio/puts.c: File removed.
6868         * stdio/rewind.c: File removed.
6869         * stdio/setbuf.c: File removed.
6870         * stdio/setbuffer.c: File removed.
6871         * stdio/setlinebuf.c: File removed.
6872         * stdio/setvbuf.c: File removed.
6873         * stdio/stdio.h: File removed.
6874         * stdio/ungetc.c: File removed.
6875         * stdio/vasprintf.c: File removed.
6876         * stdio/vscanf.c: File removed.
6877         * stdio/vsnprintf.c: File removed.
6878         * stdio/vsprintf.c: File removed.
6879         * stdio/vsscanf.c: File removed.
6880         * sysdeps/generic/defs.c: File removed.
6881         * sysdeps/generic/fdopen.c: File removed.
6882         * sysdeps/generic/pipestream.c: File removed.
6883         * sysdeps/generic/stdio_init.c: File removed.
6884         * sysdeps/generic/sysd-stdio.c: File removed.
6885         * sysdeps/generic/vdprintf.c: File removed.
6886         * sysdeps/mach/hurd/defs.c: File removed.
6887         * sysdeps/mach/hurd/fdopen.c: File removed.
6888         * sysdeps/mach/hurd/pipestream.c: File removed.
6889         * sysdeps/mach/hurd/stdio_init.c: File removed.
6890         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
6891         * sysdeps/mach/hurd/vdprintf.c: File removed.
6892         * sysdeps/posix/defs.c: File removed.
6893         * sysdeps/posix/fdopen.c: File removed.
6894         * sysdeps/posix/pipestream.c: File removed.
6895         * sysdeps/posix/stdio_init.c: File removed.
6896         * sysdeps/posix/vdprintf.c: File removed.
6897         * sysdeps/unix/pipestream.c: File removed.
6898         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
6899         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
6900         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
6902 2002-04-29  Roland McGrath  <roland@frob.com>
6904         * include/libc-symbols.h (link_warning): Use `unused' attribute.
6906 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
6908         * sysdeps/generic/tls.h: Describe what must be defined.
6910         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
6911         glob_in_dir [PR libc/3385].
6912         * posix/globtest.sh: Add test case.
6914         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
6915         //TRANSLIT twice.
6917 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
6919         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
6920         _internal symbol handling.
6921         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
6923 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6925         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
6926         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
6928 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
6930         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
6931         not _LIBC and RE_ENABLE_I18N.
6932         (build_range_exp): Implement for not _LIBC.
6933         (build_collating_symbol): Likewise.
6934         (parse_bracket_exp): Unify redundant error handlings.
6935         Don't erase mbcset for non matching list in multibyte envs.
6936         (build_word_op): Add '_' to matching list for \w operator.
6937         * posix/regex_internal.c (re_string_construct): Invoke
6938         build_upper_buffer in case of not RE_ENABLE_I18N.
6939         (re_string_reconstruct): Don't touch cur_state in case of not
6940         RE_ENABLE_I18N.
6941         * posix/regex_internal.h (attribute_hidden): New macro in case of
6942         not _LIBC.
6943         (re_charset_t): Define range_starts/ends in case of not _LIBC.
6944         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
6945         RE_ENABLE_I18N.
6946         (transit_state_mb): Likewise.
6947         (check_node_accept_bytes): Implement the code evaluating range
6948         expression in case of not _LIBC.
6949         (find_collation_sequence_value): Hide in case of not _LIBC.
6951 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
6953         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
6954         i386/semctl.c.
6955         (__old_semctl, __new_semctl): Only use va_arg if the argument will
6956         be used.
6958 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
6960         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
6962         * sysdeps/ia64/strncpy.S: Fix recovery code.
6963         Patch by David Mosberger <davidm@hpl.hp.com>.
6965 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
6967         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
6968         GLIBC_2.2.6.
6970 2002-04-14  Bruno Haible  <bruno@clisp.org>
6972         * posix/regex.c (re_max_failures): Add back symbol for binary
6973         compatibility.
6975 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
6977         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
6978         of buffer building functions.
6979         * posix/regex_internal.c (re_string_allocate): New function.
6980         (re_string_realloc_buffers): New function.
6981         (re_string_skip_chars): New function.
6982         (re_string_reconstruct): New function.
6983         (re_string_construct): Adapt it to new interface of buffer building
6984         functions.
6985         (re_string_construct_common): Likewise.
6986         (build_wcs_buffer): Likewise.
6987         (build_wcs_upper_buffer): Likewise.
6988         (build_upper_buffer): Likewise.
6989         (re_string_translate_buffer): Likewise.
6990         (re_string_context_at): Adapt it to variable length buffers.
6991         * posix/regex_internal.h (re_string_t): Add new fields to handle
6992         variable length buffers.
6993         (re_match_context_t): Likewise.
6994         * posix/regexec.c (re_search_internal): Adapt it to new interface
6995         of re_string_t and re_match_context_t.
6996         (acquire_init_state_context): Likewise.
6997         (check_matching): Likewise.
6998         (check_halt_state_context): Likewise.
6999         (proceed_next_node): Likewise.
7000         (set_regs): Likewise.
7001         (sift_states_backward): Likewise.
7002         (clean_state_log_if_need): Likewise.
7003         (sift_states_iter_mb): Likewise.
7004         (sift_states_iter_bkref): Likewise.
7005         (add_epsilon_backreference): Likewise.
7006         (transit_state): Likewise.
7007         (transit_state_sb): Likewise.
7008         (transit_state_mb): Likewise.
7009         (transit_state_bkref): Likewise.
7010         (transit_state_bkref_loop): Likewise.
7011         (check_node_accept): Likewise.
7012         (match_ctx_init): Likewise.
7013         (extend_buffers): New function.
7015 2002-04-21  Bruno Haible  <bruno@clisp.org>
7017         * iconvdata/tst-table.sh: For the second check, use the truncated
7018         GB18030 charmap table, like for the first check.
7020 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
7022         * elf/dl-load.c (open_verify): Correct __lseek parameters.
7023         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
7025 2002-04-23  H.J. Lu  <hjl@gnu.org>
7027         * include/math.h (isfinite): Fix a typo.
7029 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
7031         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
7032         which is created by the test suite.
7034 2002-04-20  Bruno Haible  <bruno@clisp.org>
7036         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
7037         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
7039 2002-04-20  Bruno Haible  <bruno@clisp.org>
7041         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
7042         to avoid gcc warning.
7044 2002-04-20  Bruno Haible  <bruno@clisp.org>
7046         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
7047         of data->__statep->__count.
7049 2002-04-20  Bruno Haible  <bruno@clisp.org>
7051         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
7052         tag characters.
7053         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
7055 2002-04-24  Roland McGrath  <roland@frob.com>
7057         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
7058         use END macro instead of our own .end directive.
7059         Use `callsys' insn mnemonic instead of `call_pal'.
7061         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
7063         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
7064         macro; we need this for Hurd.
7066         Log entry was missing for 2002/03/24 commit of rev 1.8,
7067         goes with 2002-03-17 changes.
7068         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
7069         (sysdep_routines): Append ioperm here.
7070         (sysdep_headers): Append sys/io.h here.
7072 2002-04-23  Roland McGrath  <roland@frob.com>
7074         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
7075         * sysdeps/mach/hurd/sendto.c: Likewise.
7076         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
7077         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
7078         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
7080 2002-04-22  Roland McGrath  <roland@frob.com>
7082         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
7083         failure from i386_io_perm_* RPCs to ENOSYS.
7085 2002-04-22  Andreas Jaeger  <aj@suse.de>
7087         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
7089         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
7091         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
7092         register instead of destroying %rbx.
7094 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
7096         * string/string.h: Declare strerror_r also for XPG6.
7098 2002-04-19  Roland McGrath  <roland@frob.com>
7100         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
7102 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
7104         * Makefile: Add handling of xtests and xcheck targets.
7105         * MakeTAGS: Likewise.
7106         * Makeconfig: Likewise.
7107         * Makerules: Likewise.
7108         * Rules: Likewise.
7109         * manual/Makefile: Likewise.
7110         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
7111         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
7113 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
7115         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
7116         authnone_private_s.
7117         * sunrpc/auth_none.c: Include bits/libc-lock.h.
7118         Delete #ifdef _RPC_THREAD_SAFE_ block.
7119         (authnone_private): Make a struct, not a pointer to struct.
7120         (authnone_private_guard): New once-control variable.
7121         (authnone_create_once): New function, split out of
7122         authnone_create.  No need to allocate memory.
7123         (authnone_create): Just call authnone_create_once via
7124         __libc_once, then return &authnone_private->no_client.
7125         (authnone_marshal): Access private data via CLIENT argument,
7126         not authnone_private pointer.
7127         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
7128         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
7129         authnone_private_s.
7131 2002-04-12  H.J. Lu  <hjl@gnu.org>
7133         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
7135 2002-04-18  Bruno Haible  <bruno@clisp.org>
7137         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
7138         FROM_DIRECTION): Make the FROM direction stateless.
7139         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
7140         FROM_DIRECTION): Likewise.
7142 2002-04-15  Bruno Haible  <bruno@clisp.org>
7144         * iconvdata/JISX0213.TXT: New file.
7145         * iconvdata/jisx0213.h: New file.
7146         * iconvdata/jisx0213.c: New file.
7147         * iconvdata/euc-jisx0213.c: New file.
7148         * iconvdata/shift_jisx0213.c: New file.
7149         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
7150         * iconvdata/EUC-JISX0213.precomposed: New file.
7151         * iconvdata/SHIFT_JISX0213.precomposed: New file.
7152         * iconvdata/SHIFT_JISX0213.irreversible: New file.
7153         * iconvdata/tst-table-to.c (main): Make it work for encodings for
7154         which the "to" direction is stateful.
7155         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
7156         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
7157         SHIFT_JISX0213.
7158         (libJISX0213-routines): New variable.
7159         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
7160         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
7161         (LDFLAGS-libJISX0213.so): New variable.
7162         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
7163         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
7164         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
7166 2002-04-15  Bruno Haible  <bruno@clisp.org>
7168         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
7169         uint32_t.  Update to Unicode 3.2.
7170         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
7171         (BODY for TO_LOOP): Handle the ASCII range specially.
7172         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
7173         * iconvdata/testdata/BIG5HKSCS: Remove a character.
7174         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
7176 2002-04-15  Bruno Haible  <bruno@clisp.org>
7178         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
7179         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
7181 2002-04-15  Bruno Haible  <bruno@clisp.org>
7183         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
7184         (ucs4_to_cns11643): Update.
7185         * iconvdata/cns11643.c: Update to Unicode 3.2.
7186         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
7187         __cns11643_from_ucs4p2_tab): Regenerated.
7188         (__cns11643_from_ucs4p2c_tab): New array.
7189         * iconvdata/cvs11643l1.c: Update comments.
7190         * iconvdata/EUC-TW.irreversible: Remove two entries.
7192 2002-04-15  Bruno Haible  <bruno@clisp.org>
7194         * locale/C-translit.h.in: Update to Unicode 3.2.
7195         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
7196         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
7198 2002-04-15  Bruno Haible  <bruno@clisp.org>
7200         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
7201         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
7203 2002-04-15  Bruno Haible  <bruno@clisp.org>
7205         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
7206         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
7207         always one byte, not 0 bytes in some cases and 2 bytes in others.
7209         * iconvdata/tst-table-from.c (main): Correct the usage message.
7211 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
7213         * posix/regcomp.c (parse_expression): Fix incorrect error code.
7214         (parse_dup_op): Fix error handling like "a{}".
7215         (parse_bracket_exp): Add error handling.
7216         (fetch_number): Add error handling for "a{<very_large_number>}".
7218 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
7220         * posix/regcomp.c (parse_bracket_symbol): Add error handling
7221         in case that the symbol name is too long.
7222         (build_charclass): Handle [:lower:]/[:uppper:] correctly
7223         in case of REG_ICASE.
7225 2002-04-19  Andreas Jaeger  <aj@suse.de>
7227         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
7228         <hartvige@mips.com>.
7230 2002-04-15  H.J. Lu  <hjl@gnu.org>
7232         * include/math.h (__finitel_internal): Declare only if
7233         __NO_LONG_DOUBLE_MATH is not defined.
7234         (__isinfl_internal): Likewise.
7235         (__isnanl_internal): Likewise.
7237         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
7238         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
7239         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
7240         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
7241         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7242         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
7243         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7245         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
7246         __fcntl_internal.
7248         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
7249         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
7251 2002-04-15  Bruno Haible  <bruno@clisp.org>
7253         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
7254         (BODY for TO_LOOP): Likewise.
7255         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
7256         * iconvdata/tst-table.sh: Add support for encodings which contain
7257         precomposed Unicode characters, known to the iconv converter in both
7258         directions but not listed in the charmap.
7259         * iconvdata/IBM856.irreversible: New file.
7260         * iconvdata/IBM922.irreversible: New file.
7261         * iconvdata/IBM1132.irreversible: New file.
7262         * iconvdata/IBM1133.irreversible: New file.
7263         * iconvdata/IBM1160.irreversible: New file.
7264         * iconvdata/IBM1161.irreversible: New file.
7265         * iconvdata/IBM1163.irreversible: New file.
7266         * iconvdata/IBM1164.irreversible: New file.
7267         * iconvdata/ARMSCII-8.irreversible: New file.
7268         * iconvdata/TCVN5712-1.precomposed: New file.
7269         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
7270         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
7271         ARMSCII-8, TCVN5712-1.
7272         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
7273         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
7274         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
7275         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
7277 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
7279         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
7280         for EVENING69.  Include offsets in TZ environment variable.
7282 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
7284         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
7285         avoid compiler warnings.
7287         * locale/programs/localedef.c (main): Always call
7288         construct_output_path.
7290         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
7292         * locale/programs/locfile.c (to_archive): New variable.  To collect
7293         data which has to be added to the locale archive.
7294         (write_all_categories): Take new third parameter with locale name.
7295         Unless no_archive flag set add new locale data to the archive
7296         (write_locale_data): Unless no-archive flag set store generated data
7297         in to_archive data structure instead of generation output file.
7298         Add new parameter with locale category index.
7299         * locale/programs/locfile.h: Add new parameters in declaractions of
7300         write_all_categories and write_locale_data.
7301         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
7302         --add-to-archive, and --delete-from-archive options.  Pass extra
7303         parameter to write_all_categories.
7304         * locale/programs/localedef.h: Add prototypes for functions in
7305         locarchive.c.
7306         * locale/locarchive.h: New file.
7307         * locale/programs/locarchive.c: New file.
7308         * locale/Makefile (distribute): Add programs/locarchive.c and
7309         locarchive.h.
7310         (localedef-modules): Add md5 and locarchive.
7311         Add vpath to crypt subdir for md5.c.
7313         * locale/programs/ld-address.c: Pass locale category ID as new second
7314         parameter to write_locale_data.
7315         * locale/programs/ld-collate.c: Likewise.
7316         * locale/programs/ld-ctype.c: Likewise.
7317         * locale/programs/ld-identification.c: Likewise.
7318         * locale/programs/ld-measurement.c: Likewise.
7319         * locale/programs/ld-messages.c: Likewise.
7320         * locale/programs/ld-monetary.c: Likewise.
7321         * locale/programs/ld-name.c: Likewise.
7322         * locale/programs/ld-numeric.c: Likewise.
7323         * locale/programs/ld-paper.c: Likewise.
7324         * locale/programs/ld-telephone.c: Likewise.
7325         * locale/programs/ld-time.c: Likewise.
7327         * locale/simple-hash.c: Move compute_hashval function from here...
7328         * locale/hashval.h: ...to here.  New file.
7329         * locale/simple-hash.h: Add prototype for compute_hashval.
7331         * include/libintl.h: Minor cleanups.
7333 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
7335         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
7337 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
7339         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
7341 2002-04-14  Bruno Haible  <bruno@clisp.org>
7343         * locale/programs/charmap.c (charmap_read): Don't access result if
7344         result == NULL.
7346 2002-02-17  Andreas Schwab  <schwab@suse.de>
7348         * elf/reldep7.c: New file.
7349         * elf/reldep7mod1.c: New file.
7350         * elf/reldep7mod2.c: New file.
7351         * elf/Makefile: Add rules to build and run reldep7.
7353 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
7355         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
7356         the end of the function.  Pass original flags to recursive call if
7357         add_dependency failed.
7358         (_dl_lookup_versioned_symbol): Likewise.
7360 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
7362         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
7363         early, but check whether it overflowed afterwards.
7364         * time/tst-mktime.c (main): Add new tests.
7366 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
7368         * debug/xtrace.sh: Fix program name in help message.
7369         Patch by Roger Luethi <rl@hellgate.ch>.
7371         * include/sys/stat.h: Add prototypes for __lxstat_internal and
7372         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
7373         NOT_IN_libc.
7374         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
7375         * sysdeps/mach/hurd/lxstat.c: Likewise.
7376         * sysdeps/unix/common/lxstat.c: Likewise.
7377         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
7378         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
7379         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
7380         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
7381         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
7382         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
7383         * sysdeps/mach/hurd/lxstat64.c: Likewise.
7384         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
7385         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
7387         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
7388         prototypes.  Add __mbrlen and __mbrtowc macros.
7389         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
7390         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
7392         * include/unistd.h: Add prototype for __write_internal and add
7393         __libc_write macro is SHARED.
7394         * sysdeps/generic/write.c: Use INTDEF for __write.
7395         * sysdeps/mach/hurd/write.c: Likewise.
7396         * sysdeps/unix/sysv/aix/write.c: Likewise.
7397         * sysdeps/unix/syscalls.list: Add __libc_write alias.
7399         * assert/assert.c: Replace STR_N_SIZE with something usable in
7400         macro arguments.
7401         * assert/assert-perr.c: Likewise.
7403         * include/sys/socket.h: Declare __libc_sa_len_internal and define
7404         SA_LEN macro to use it if not NOT_IN_libc.
7405         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
7407         * include/fcntl.h: Declare __open_internal and define __open and
7408         __libc_open macros if not NOT_IN_libc.
7409         * sysdeps/generic/open.c: Use INTDEF for __open.
7410         * sysdeps/mach/hurd/open.c: Likewise.
7411         * sysdeps/unix/sysv/aix/open.c: Likewise.
7412         * sysdeps/unix/syscalls.list: Add __open_internal alias.
7414         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
7415         has correct number.
7417         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
7418         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
7419         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7420         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7422         * include/wctype.h: Declare __iswalpha_l_internal,
7423         __iswdigit_l_internal, __iswspace_l_internal,
7424         __iswxdigit_l_internal, and __iswctype_internal.  Define
7425         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
7426         __iswxdigit_l macros if not NOT_IN_libc.
7427         * wctype/iswctype.c: Use INTDEF for __iswctype.
7428         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
7430         * include/math.h: Declare __isinf_internal, __isinfl_internal,
7431         __isnan_internal, and __isnanl_internal.
7432         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
7433         __isnan, and __isnanl.
7434         * stdio-common/printf_size.c: Likewise.
7435         * sysdeps/generic/printf_fphex.c: Likewise.
7436         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
7437         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
7438         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
7439         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
7440         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
7441         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
7442         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
7443         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
7444         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
7445         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
7446         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
7447         * sysdeps/m68k/s_isinfl.c: Likewise.
7448         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
7449         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
7451         * include/sys/time.h: Declare __gettimeofday_internal and define
7452         __gettimeofday macro if not NOT_IN_libc.
7453         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
7454         * sysdeps/mach/gettimeofday.c: Likewise.
7455         * sysdeps/posix/gettimeofday.c: Likewise.
7456         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
7457         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
7458         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
7459         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
7461         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
7462         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
7463         Remove __lstat and __fstat inline functions.
7464         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
7465         * sysdeps/mach/hurd/fxstat.c: Likewise.
7466         * sysdeps/unix/fxstat.c: Likewise.
7467         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
7468         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
7469         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
7470         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
7471         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
7472         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
7473         * sysdeps/mach/hurd/fxstat64.c: Likewise.
7474         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
7475         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
7477         * include/unistd.h: Declare __getpid_internal and define
7478         __getpid macro if not NOT_IN_libc.
7479         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
7480         * sysdeps/generic/getpid.c: Likewise.
7481         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
7482         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
7484         * include/unistd.h: Declare __getpgid_internal and define
7485         __getpgid macro if not NOT_IN_libc.
7486         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
7487         * sysdeps/mach/hurd/getpgid.c: Likewise.
7488         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
7489         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
7490         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
7491         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
7493         * include/unistd.h: Declare __getpagesize_internal and define
7494         __getpagesize macro if not NOT_IN_libc.
7495         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
7496         __getpagesize.
7497         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
7498         * sysdeps/mach/getpagesize.c: Likewise.
7499         * sysdeps/posix/getpagesize.c: Likewise.
7500         * sysdeps/unix/getpagesize.c: Likewise.
7501         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
7502         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7503         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
7504         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
7506 2002-04-13  Andreas Jaeger  <aj@suse.de>
7508         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
7509         as clobber to reduce register pressure.
7510         (__strpbrk_cg): Likewise.
7511         (__mempcpy_by4): Likewise.
7512         (__strstr_cg): Likewise.
7513         Add prototype for __memrchr.
7515 2002-04-13  Andreas Schwab  <schwab@suse.de>
7517         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
7518         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
7519         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
7521 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
7523         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
7524         check whether the caller prefers getting the most recent version of
7525         a symbol of the earliest version.
7526         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
7527         _dl_do_lookup to also take the new parameter and pass it on.
7528         Change 'explicit' parameter of _dl_lookup_symbol and
7529         _dl_lookup_versioned_symbol to flags.  Adjust tests.
7530         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7531         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
7532         _dl_lookup_versioned_symbol.
7533         * elf/dl-reloc.c: Likewise.
7534         * elf/dl-runtime.c: Likewise.
7535         * elf/dl-sym.c: Likewise.
7536         * sysdeps/mips/dl-machine.h: Likewise.
7538 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7540         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
7541         in a token.
7542         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
7544 2002-04-10  Andreas Jaeger  <aj@suse.de>
7546         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
7548         * include/argz.h: Remove extra char from last patch.
7550 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
7552         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
7553         * sysdeps/unix/sysv/aix/chown.c: Likewise.
7554         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
7555         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
7556         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7557         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
7558         __chown_internal.
7559         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
7561         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
7562         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
7563         * intl/ngettext.c: Likewise.
7565         * include/sys/socket.h: Declare __connect_internal and define
7566         __connect macro if not NOT_IN_libc.
7567         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
7568         * sysdeps/unix/sysv/aix/connect.c: Likewise.
7569         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
7571         * include/unistd.h: Declare __close_internal and define __close macro
7572         if not NOT_IN_libc.
7573         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
7574         WJUMP3): Add extra parenthesis to avoid expanding element names with
7575         macors like __close.
7576         * sysdeps/unix/syscalls.list: Add __close_internal alias.
7578         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
7579         if not NOT_IN_libc.
7580         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
7581         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
7582         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
7584         * include/unistd.h: Declare __fork_internal and define __fork macro
7585         if not NOT_IN_libc.
7586         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
7587         * sysdeps/unix/sysv/aix/fork.c: Likewise.
7588         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
7590         * include/stdio_ext.h: Declare __fsetlocking_internal and define
7591         __fsetlocking macro to use it if not NOT_IN_libc.
7592         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
7594         * libio/__fbufsize.c: Correct copyright.
7595         * libio/__flbf.c: Likewise.
7596         * libio/__fpending.c: Likewise.
7597         * libio/__fpurge.c: Likewise.
7598         * libio/__freadable.c: Likewise.
7599         * libio/__freading.c: Likewise.
7600         * libio/__fsetlocking.c: Likewise.
7601         * libio/__fwritable.c: Likewise.
7602         * libio/__fwriting.c: Likewise.
7604         * include/stdio.h: Declare __asprintf_internal and define __asprintf
7605         macro to use it if not NOT_IN_libc.
7606         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
7608         * include/mntent.h: Declare __setmntent_internal,
7609         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
7610         __getmntent_r, and __endmntent macros to use these functions if not
7611         NOT_IN_libc.
7612         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
7613         __endmntent.
7615         * include/math.h: Declare __finite_internal, __finitef_internal, and
7616         __finitel_internal.  Redefine isfinite macro if in libc or libm using
7617         these functions.
7618         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
7619         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
7620         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
7621         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
7622         * sysdeps/i386/fpu/s_finitef.S: Likewise.
7623         * sysdeps/i386/fpu/s_finitel.S: Likewise.
7624         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
7625         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
7626         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
7627         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7629         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
7630         to use this function if not NOT_IN_libc.
7631         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
7632         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
7633         * sysdeps/mach/hurd/fcntl.c: Likewise.
7634         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
7635         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
7637         * include/argz.h: Declare __argz_count_internal and
7638         __argz_stringify_internal.
7639         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
7640         __argz_stringify.
7641         * string/argz-count.c: Use INTDEF for __argz_count.
7642         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
7644         * include/stdlib.h: Declare __cxa_atexit_internal and define
7645         __cxa_atexit macro if not NOT_IN_libc.
7646         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
7647         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
7649         * assert/assert.c: Use INTDEF for __assert_fail.
7650         * assert/__assert.c: Use INTUSE for call to __assert_fail.
7651         * include/assert.h: Declare __assert_fail_internal.
7653         * extra-lib.mk: Mark assignment to lib with override.
7655 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7657         * Makerules: Use cppflags-iterator.mk to add defines for all test
7658         source files.
7660 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
7662         * elf/elf.h: Define R_SH_TLS_xxx macros.
7663         * elf/rtld.c: Remove an extra parenthesis.
7664         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7665         TLS_GD macros.
7666         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
7667         * sysdeps/sh/dl-lookupcfg.h: New file.
7668         * sysdeps/sh/dl-tls.h: New file.
7669         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
7670         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
7671         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
7672         R_SH_TLS_TPOFF32 relocations.
7674 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7676         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
7677         of NOT_IN_LIBC.
7678         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
7679         * include/stdlib.h: Likewise.
7681 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
7683         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
7684         instead of _RTLD_LOCAL.
7685         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
7686         * include/unistd.h: Likewise.
7687         * sysdeps/generic/ldsodefs.h: Likewise.
7689         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
7690         if in libc or ld.so.
7692 2002-04-08  Andreas Jaeger  <aj@suse.de>
7694         * elf/cache.c (print_entry): Support x86-64.
7696 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
7698         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
7699         with one accessing the locale data structures directly.
7700         * stdio-common/printf-prs.c: Include localeinfo.h for new
7701         MB_CUR_MAX definition.
7703         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
7704         is the name of the source file without extension.
7705         * Makefile (distribute): Add cppflags-iterator.mk.
7706         * cppflags-iterator.mk: New file.
7707         * extra-lib.mk: For the sources of the library run
7708         cppflags-iterator.mk.
7710         * include/libintl.h: Declare __dcgettext_internal and
7711         _libc_intl_domainname_internal.  Define __dcgettext using these
7712         two symbols if used in libc itself.
7713         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
7714         _libc_intl_domainname_internal.
7715         * argp/argp-parse.c: Likewise.
7716         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
7717         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
7718         * intl/gettext.c: Likewise.
7719         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
7720         alias.
7721         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
7722         __dcgettext.
7723         * posix/regex_internal.c (gettext): Likewise.
7725 2002-04-08  Andreas Jaeger  <aj@suse.de>
7727         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
7729         * sysdeps/x86_64/fpu/s_llrint.S: New file.
7730         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
7731         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
7732         * sysdeps/x86_64/fpu/s_lrint.S: New file.
7733         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
7734         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
7736 2002-04-08  Roland McGrath  <roland@frob.com>
7738         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
7739         widening __hurd_fail value.
7741 2002-04-07  Roland McGrath  <roland@frob.com>
7743         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
7744         <mach/machine/alpha_instruction.h>.
7745         (_hurd_setup_sighandler): Take proper arguments for current decls.
7746         Update code to use _hurdsig_catch_fault.
7747         Use `callsys' instruction instead of `call_pal'.
7748         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
7750         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
7751         (ALIGN, at, AT, fp): New macros.
7753 2002-04-06  Roland McGrath  <roland@frob.com>
7755         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
7757         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
7758         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
7760         * sysdeps/mach/hurd/bind.c: Use prototype definition.
7761         * sysdeps/mach/hurd/connect.c: Likewise.
7762         * sysdeps/mach/hurd/getsockopt.c: Likewise.
7763         * sysdeps/mach/hurd/setsockopt.c: Likewise.
7765         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
7766         __msg_sig_post RPC.
7768         * hurd/catch-exc.c: Use integer_t instead of int.
7769         * hurd/hurdfault.c: Likewise.
7771         * sysdeps/mach/hurd/alpha/exc2signal.c
7772         (_hurd_exception2signal): Rewritten.
7773         * sysdeps/mach/hurd/alpha/longjmp-ts.c
7774         (_hurd_longjmp_thread_state): Rewritten.
7776 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
7778         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
7779         DB_LOOKUP_FCT prototype.
7780         * nss/getXXent_r.c: Likewise.
7781         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
7782         * inet/getaliasname_r.c: Likewise.
7783         * inet/getnetbyad_r.c: Likewise.
7784         * inet/getnetbynm_r.c: Likewise.
7785         * inet/getnetent_r.c: Likewise.
7786         * inet/getproto_r.c: Likewise.
7787         * inet/getprtent_r.c: Likewise.
7788         * inet/getprtname_r.c: Likewise.
7789         * inet/getrpcbyname_r.c: Likewise.
7790         * inet/getrpcbynumber_r.c: Likewise.
7791         * inet/getrpcent_r.c: Likewise.
7792         * inet/getservent_r.c: Likewise.
7793         * inet/getsrvbynm_r.c: Likewise.
7794         * inet/getsrvbypt_r.c: Likewise.
7795         * shadow/getspent_r.c: Likewise.
7796         * shadow/getspnam_r.c: Likewise.
7798         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
7800         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
7801         Use i686-friendly PIC code.
7802         * sysdeps/i386/elf/setjmp.S: Likewise.
7804         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
7806         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
7807         list.
7808         * elf/Versions: Remove it here.
7810 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
7812         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
7813         direction.  Reported by H . J . Lu <hjl@lucon.org>.
7815 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7817         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
7818         test just before the test runs.
7819         * intl/tst-translit.sh: Likewise.
7820         * intl/tst-codeset.sh: Likewise.
7822         * timezone/zic.c: Update from tzcode2002c.
7823         * timezone/asia: Update from tzdata2002c.
7824         * timezone/backward: Likewise.
7825         * timezone/europe: Likewise.
7826         * timezone/northamerica: Likewise.
7827         * timezone/northamerica: Likewise.
7828         * timezone/northamerica: Likewise.
7829         * timezone/southamerica: Likewise.
7830         * timezone/zone.tab: Likewise.
7832 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
7834         * sysdeps/generic/brk.c (__curbrk): Declare.
7835         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
7836         * sysdeps/generic/dl-sbrk.c: Likewise.
7837         * sysdeps/unix/arm/dl-brk.S: New file.
7838         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
7839         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
7840         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
7841         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
7842         * sysdeps/unix/i386/dl-brk.S: New file.
7843         * sysdeps/unix/mips/dl-brk.S: New file.
7844         * sysdeps/unix/sparc/dl-brk.S: New file.
7845         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
7846         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
7847         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
7848         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
7850 2002-04-03  Andreas Schwab  <schwab@suse.de>
7852         * Makefile (headers): Add gnu/lib-names.h here instead of
7853         install-others.
7854         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
7855         installation rule.
7856         (install-headers): Add dependency on install-headers-nosubdir.
7857         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
7858         instead of install-others.
7859         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
7860         installation rule.
7862 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
7864         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
7865         Reported by Sam Roberts <sroberts@uniserve.com>.
7867 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7869         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
7870         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
7871         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7872         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
7874 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
7876         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
7877         (RTLD_START): Ditto.
7878         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
7879         dependency violation.
7881 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7883         * time/mktime.c (__mktime_internal): Move check for year < 70 below
7884         all variable declarations.
7886 2002-04-04  Andreas Schwab  <schwab@suse.de>
7888         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
7890 2002-04-04  Andreas Jaeger  <aj@suse.de>
7892         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
7893         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
7895         * sysdeps/x86_64/fpu/s_fabs.c: New file.
7896         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
7897         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
7899         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
7901         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
7903         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
7904         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
7906         * configure.in: Handle all mips entries the same.
7908         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
7909         * sysdeps/mips/mips3/*: Likewise.
7910         * sysdeps/mips/p40/bits/endian.h: Likewise.
7912 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
7914         * misc/dirname.c (dirname): Ignore trailing slashes at end of
7915         non-null result [PR libc/2600].
7917         * misc/tst-dirname.c: Add more tests.
7919 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7921         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
7922         define a code_set_name provide one based on the filename.
7924         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
7926 2001-12-28  Andreas Jaeger  <aj@suse.de>
7928         * time/mktime.c (__mktime_internal): Check for year < 70
7929         [PR libc/2738].
7931 2002-04-03  Andreas Jaeger  <aj@suse.de>
7933         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
7934         shmat.
7935         Reported by Andi Kleen <ak@suse.de>.
7937 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
7939         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
7940         * sysdeps/generic/w_lgammaf.c: Likewise.
7941         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
7943         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
7944         Adjust for new output format of the backtrace functions.
7946         * misc/syslog.c (vsyslog): Only use cleanup handler if
7947         _LIBC_REENTRANT is defined [PR libc/2924].
7949         * libio/Makefile (tests): Add bug-ungetwc2.
7950         * libio/bug-ungetwc2.c: New file.
7952         * manual/install.texi: Typographical and grammatical cleanup.
7953         Patch by Dennis Grace <dgrace@us.ibm.com>.
7955         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
7956         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
7958         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
7959         always "&".  Adjust callers.
7960         Add "_" prefix to several generated definitions.
7961         Patch by paul@serice.net [PR libc/3158].
7963 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7965         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
7966         size of _dl_arm_cap_flags.
7967         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
7969         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7970         Define as 8.
7972 2002-03-22  H.J. Lu  <hjl@gnu.org>
7974         * scripts/firstversions.awk: Check the first version.
7976 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
7978         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
7979         dependencies must be stable to work correctly.
7980         Reported by martin.lubich@datacon.at.
7982         * libio/bug-ungetwc1.c: New file.
7983         * libio/Makefile (tests): Add bug-ungetwc1.
7985         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
7986         if stream was last used for writing.
7988         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
7989         number [PR libc/3111].
7991         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
7992         to ...
7993         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
7995 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
7997         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
7998         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7999         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
8000         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
8001         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
8003 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
8005         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
8006         dynamic tags.
8008 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8010         * sysdeps/i386/fpu/s_fabs.S: New file.
8011         * sysdeps/i386/fpu/s_fabsf.S: New file.
8012         * sysdeps/i386/fpu/s_fabsl.S: New file.
8013         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
8014         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
8015         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
8017 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8019         * rt/tst-shm.c (do_test): Add one more test for size of shared
8020         memory object.
8022 2002-03-29  Wolfram Gloger  <wg@malloc.de>
8024         * malloc/malloc.c: Add short description and prototypes for
8025         malloc_get_state, malloc_set_state and posix_memalign, for
8026         consistency and to avoid warnings with -Wstrict-prototypes.
8027         Reported by Andreas Jaeger <aj@suse.de>.
8029 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
8031         * po/gl.po: Update from translation team.
8033 2002-03-31  Roland McGrath  <roland@frob.com>
8035         * hurd/hurdselect.c (_hurd_select): Fix
8036         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
8037         Use a union rather than casts to compare mach_msg_type_t as int.
8039 2002-03-25  Roland McGrath  <roland@frob.com>
8041         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
8042         check off the end of NAME when it's shorter than 2 chars.
8043         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
8045 2002-03-17  Roland McGrath  <roland@frob.com>
8047         * sysdeps/mach/hurd/i386/sys/io.h: New file.
8048         * sysdeps/mach/hurd/i386/ioperm.c: New file.
8049         * sysdeps/mach/hurd/i386/Dist: Add them.
8050         * sysdeps/mach/hurd/i386/Versions
8051         (libc: GLIBC_2.2.6): New set, add ioperm.
8052         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
8053         (mach_interface_list): Check for mach_i386.defs.
8054         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
8055         * sysdeps/mach/configure: Regenerated.
8057 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
8059         * po/fr.po: Update from translation team.
8061 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8063         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
8064         getpriority from syscalls list.
8066 2002-03-28  Andreas Jaeger  <aj@suse.de>
8068         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
8069         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
8070         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
8071         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
8073 2002-03-27  Andreas Jaeger  <aj@suse.de>
8075         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8076         sigcontext): Follow further kernel change.
8078         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
8079         kernel change.
8081         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
8082         Change for struct sigcontext change.
8084         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
8085         Follow changes in struct sigcontext.
8087         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
8088         sysycall, use wrapper instead.
8090 2002-03-26  Andreas Jaeger  <aj@suse.de>
8092         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
8093         read and write accesses as detailed as possible.
8094         (__memcpy_by2): Likewise.
8095         (__memcpy_g): Likewise.
8096         (memmove): Likewise.
8097         (memcmp): Likewise.
8098         (__memset_ccn_by4): Likewise.
8099         (__memset_ccn_by2): Likewise.
8100         (__memset_gcn_by4): Likewise.
8101         (__memset_gcn_by2): Likewise.
8102         (memchr): Likewise.
8103         (__memrchr): Likewise.
8104         (rawmemchr): Likewise.
8105         (__strlen_g): Likewise.
8106         (__strcpy_g): Likewise.
8107         (__mempcpy_by4): Likewise.
8108         (__mempcpy_by2): Likewise.
8109         (__mempcpy_byn): Likewise.
8110         (__stpcpy_g): Likewise.
8111         (__strncpy_by4): Likewise.
8112         (__strncpy_by2): Likewise.
8113         (__strncpy_byn): Likewise.
8114         (__strncpy_gg): Likewise.
8115         (__strcat_c): Likewise.
8116         (__strcat_g): Likewise.
8117         (__strncat_g): Likewise.
8118         (__strcmp_gg): Likewise.
8119         (__strncmp_g): Likewise.
8120         (__strchr_c): Likewise.
8121         (__strchr_g): Likewise.
8122         (__strchrnul_c): Likewise.
8123         (__strchrnul_g): Likewise.
8124         (__strrchr_c): Likewise.
8125         (__strrchr_g): Likewise.
8126         (__strrchr_c): Likewise.
8127         (__strrchr_g): Likewise.
8128         (__strcspn_c1): Likewise.
8129         (__strcspn_cg): Likewise.
8130         (__strcspn_g): Likewise.
8131         (__strcspn_g): Likewise.
8132         (__strspn_c1): Likewise.
8133         (__strspn_cg): Likewise.
8134         (__strspn_g): Likewise.
8135         (__strspn_g): Likewise.
8136         (__strpbrk_cg): Likewise.
8137         (__strpbrk_g): Likewise.
8138         (__strstr_cg): Likewise.
8139         (__strstr_g): Likewise.
8141         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
8142         Michal Ludvig <mludvig@suse.cz>.
8144         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
8145         compatibilty, adjust for kernel changes.
8147         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8148         sigcontext): Adjust for kernel changes.
8150 2002-03-25  Andreas Jaeger  <aj@suse.de>
8152         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
8153         little endian.
8154         Reported by Artur Zaprzala <zybi@talex.com.pl>.
8156 2002-03-24  Andreas Jaeger  <aj@suse.de>
8158         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
8160         * stdio-common/tst-fdopen.c (main): Remove unused variable.
8162         * iconv/tst-iconv3.c (main): Use correct printf strings.
8164 2002-03-18  Roland McGrath  <roland@frob.com>
8166         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
8167         (CMGROUP_MAX): New macro.
8169 2002-03-23  Roland McGrath  <roland@frob.com>
8171         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
8172         * sysdeps/posix/shm_unlink.c: Likewise.
8174 2002-03-22  Roland McGrath  <roland@frob.com>
8176         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
8177         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
8178         under --enable-libio.
8179         * sysdeps/mach/hurd/configure: Regenerated.
8181 2002-03-23  Roland McGrath  <roland@frob.com>
8183         * sysdeps/mach/hurd/i386/Makefile
8184         (sysdep_routines, shared-only-routines): Don't add framestate,
8185         reverting 2001-10-02 change.
8186         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
8187         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
8188         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8189         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8190         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
8191         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
8192         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8193         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
8194         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
8195         Do it here instead, only if [$(unwind-find-fde) = yes].
8197 2002-03-23  Andreas Jaeger  <aj@suse.de>
8199         * signal/signal.h: Fix typo. Patch by Steve Kemp
8200         <skx@tardis.ed.ac.uk>.
8202 2002-03-22  Andreas Jaeger  <aj@suse.de>
8204         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
8205         getresuid.
8207         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8208         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
8209         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8210         user_fpregs_struct): Rename fwd.
8212         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
8213         Follow sigcontext changes.
8215 2002-03-22  Andreas Jaeger  <aj@suse.de>
8217         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
8218         changes for NaNs on MIPS.
8219         Patch by Hartvig Ekner <hartvige@mips.com>.
8221 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
8223         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
8224         Use realloc if too large.
8225         (addgrbyid): Likewise.
8226         * nscd/hstcache.c (addhstbyname): Likewise.
8227         (addhstbyaddr): Likewise.
8228         (addhstbynamev6): Likewise.
8229         (addhstbyaddrv6): Likewise.
8230         * nscd/pwdcache.c (addpwbyname): Likewise.
8231         (addpwbyuid): Likewise.
8233 2002-03-21  Andreas Jaeger  <aj@suse.de>
8235         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
8236         _fpstate): Add separate struct for x86-64.
8238         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8239         user_fpregs_struct): Change member names to follow kernel.
8241 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
8243         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
8244         Correctly close the UDP connection right away [PR libc/3120].
8246 2002-03-20  Andreas Jaeger  <aj@suse.de>
8248         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
8249         user_fpregs_struct): Fix for changed kernel struct.
8250         (struct user_regs_struct): Likewise.
8251         (struct user): Likewise.
8252         Add 32-bit x86 compatibility.
8254         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
8256 2002-03-19  Andreas Jaeger  <aj@suse.de>
8258         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
8260 2002-03-18  Andreas Jaeger  <aj@suse.de>
8262         * iconvdata/Makefile: Only run tests when shared libs are
8263         available.
8265 2002-03-17  Andreas Jaeger  <aj@suse.de>
8267         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
8269         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
8271         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
8272         bits.
8274         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
8275         (CAUSE_SHIFT): New macro.
8276         Patch by Hartvig Ekner <hartvige@mips.com>.
8278         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
8279         * sysdeps/generic/unwind-pe.h: Likewise.
8281         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
8282         type to _IO_setb.
8284         * libio/stdio.c (AL2): Define variant when visibility attribute is
8285         not supported.
8287         * include/libc-symbols.h (_INTVARDEF): Define variant when
8288         visibility attribute is not supported.
8290 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
8292         * po/fr.po: Update from translation team.
8294 2002-02-25  Bruno Haible  <bruno@clisp.org>
8296         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
8298 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
8300         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
8301         buffers if _IO_file_attach failed.
8303         * libio/fileops.c (_IO_file_open): Close file descriptor if
8304         _IO_SEEKOFF call failed.
8306 2002-03-15  H.J. Lu  <hjl@gnu.org>
8307             Ulrich Drepper  <drepper@redhat.com>
8309         * configure.in: Check for availability of
8310         init_array/fini_array/preinit_array handling in binutils.
8311         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
8312         * config.make.in (have-initfini-array): New variable.
8314 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
8316         * stdio-common/tst-printf.c (main): Comment out one test which
8317         checked the compiler's ability to fold floating-point constants
8318         but not really printf.
8319         (rfg3): Make s const.
8320         * stdio-common/tst-printf.sh: Adjust for removed test.
8322         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
8323         internal function.  Adjust for internal_function calling convention.
8324         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
8325         as internal_function.
8327         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
8328         hidden.
8330         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
8331         declaration and definition.
8332         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
8333         declaration.
8334         * nss/getXXent_r.c: Likewise.
8335         * nss/nsswitch.h (db_lookup_function): Add internal_function to
8336         definition.
8338         * include/time.h: Declare __localtime_r as hidden.
8340         * include/aliases.h: Declare __getaliasent_r as hidden.
8341         * include/grp.h: Declare __getgrent_r as hidden.
8342         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
8343         __getservent_r, and __getprotoent_r as hidden.
8344         * include/pwd.h: Declare __getpwent_r as hidden.
8345         * include/shadow.h: Declare __getspent_r as hidden.
8346         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
8348         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
8349         and __gconv_transliterate as hidden.
8350         Add internal_function to __gconv_get_path declaration.
8351         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
8352         definition.  Add attribute_hidden to __gconv_read_conf definition.
8354 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
8356         * elf/rtld.c: Declare _environ as hidden.
8357         * sysdeps/generic/dl-environ.c: Likewise.
8358         * sysdeps/generic/dl-sysdep.c: Likewise.
8360         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
8361         _dl_mcount_internal as hidden.
8363         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
8364         * sysdeps/generic/dl-brk.c: New file.
8365         * sysdeps/generic/dl-sbrk.c: New file.
8366         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
8367         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
8369         * elf/dl-minimal.c (malloc): Declare _end as hidden.
8370         (__errno_location): New function.  Declare errno as hidden.
8371         * elf/rtld.c (_dl_argc): Define as hidden.
8372         (_dl_skip_args): Define as hidden.
8373         (_begin, _end): Declare as hidden.
8374         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
8375         * sysdeps/generic/entry.h (_start): Declare as hidden.
8376         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
8377         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
8378         _dl_runtime_resolve and _dl_runtime_profile as hidden.
8379         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
8381 2002-03-14  Roland McGrath  <roland@frob.com>
8383         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
8385         * Makeconfig (%.v.i, %.v): New implicit rules.
8386         (preprocess-versions): Variable removed.
8387         ($(common-objpfx)shlib-versions.v.i): New target giving just the
8388         shlib-versions input files as dependencies.
8389         ($(common-objpfx)soversions.i): Depend on that instead of the input
8390         files.  Use it as input instead of using a pipeline.
8391         (postclean-generated): Append soversions.i, shlib-versions.v, and
8392         shlib-versions.v.i here.
8393         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
8394         the Versions.def input files as dependencies.
8395         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
8396         ($(common-objpfx)Versions.all): Depend on that instead of the input
8397         files.  Use it as input instead of using a pipeline.
8398         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
8399         (postclean-generated): Append those .v and .v.i files here.
8401 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
8403         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
8404         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
8405         Remove.
8407 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
8409         * sysdeps/generic/mp_clz_tab.c: New file.
8410         * sysdeps/i386/mp_clz_tab.c: New file.
8411         * sysdeps/hppa/mp_clz_tab.c: New file.
8412         * sysdeps/powerpc/mp_clz_tab.c: New file.
8413         * stdlib/Makefile (aux): Revert last patch.
8414         * math/Makefile (gmp-objs): Likewise.
8416 2002-03-13  Paul Eggert  <eggert@twinsun.com>
8418         * time/strftime.c: Comment fixes for references to obsolescent
8419         standards, In most cases the simplest fix is to remove the
8420         confusing comments.  Cross-referencing all the standards properly
8421         is a bit of a pain, and it should be enough to put that info in
8422         the documentation as I did in my recent time.texi patch.
8424 2002-03-13  Paul Eggert  <eggert@twinsun.com>
8426         * manual/time.texi (Formatting Calendar Time):
8427         ISO C99 also specifies the E and O modifiers.
8428         %P is a GNU extension, and is not in ISO C99.
8429         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
8430         %T is also in ISO C99.
8431         The RFC 822 example is not valid in arbitrary locales.
8432         Reword the POSIX.2 wording slightly, to make it a bit clearer
8433         that POSIX.2 formats are also supported by later POSIX versions.
8434         If a format was introduced in ISO C99 it is also required by
8435         POSIX.1-2001.
8437 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
8439         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
8440         _sys_nerr_internal with INTVARDEF2.
8441         * include/libc-symbols.h (INTVARDEF2): New macro.
8442         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
8443         (_sys_nerr_internal): Library.
8445         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
8446         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
8448         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
8450 2002-03-13  Wolfram Gloger  <wg@malloc.de>
8452         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
8454 2002-03-02  Andreas Schwab  <schwab@suse.de>
8456         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
8457         'h' flag and positional arg.
8458         * stdio-common/tst-printf.c (rfg3): New function to test
8459         positional arguments.
8460         (main): Fix some warnings.
8462 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
8464         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
8465         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8467 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
8469         * grp/initgroups.c (__nss_group_data): Declare as hidden.
8471         * include/locale.h (_nl_C_locobj): Declare as hidden.
8473         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
8474         * time/strptime.c (_nl_C_LC_TIME): Likewise.
8476         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
8478         * include/sys/gmon.h: Declare _gmonparam as hidden.
8480         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
8481         (__ctype32_wctrans): Likewise.
8482         (__ctype32_width): Likewise.
8484         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
8485         use of __ttyname.
8487         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
8488         Define as hidden.
8489         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
8490         hidden.  Change all users of these variables.
8492         * posix/regex_internal.h (__re_error_msgid): Renamed from
8493         re_error_msgid.  Declare as hidden.
8494         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
8495         hidden.
8497         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
8498         (__printf_function_table): Likewise.
8499         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
8500         hidden.
8501         (__printf_function_table): Likewise.
8503         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
8504         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
8506         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
8507         * nss/nsswitch.c: Declare _nss_*_database as hidden.
8509         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
8510         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
8512 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
8514         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
8515         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8516         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8517         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8518         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8519         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8520         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8521         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8522         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
8523         _nl_C_LC_CTYPE_width: Declare as hidden.
8524         * include/locale.h: Declare _nl_locale_file_list.
8525         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
8526         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
8527         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
8528         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
8529         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
8530         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
8531         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
8532         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
8533         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
8534         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
8535         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
8536         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
8537         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
8538         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
8539         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
8540         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
8541         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
8542         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
8543         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
8544         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
8545         _nl_C_LC_CTYPE_width, and as hidden.
8546         * locale/findlocale.c: Declare _nl_C as hidden.
8547         * locale/newlocale.c: Likewise.
8548         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
8549         _nl_locale_file_list.
8550         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
8551         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
8552         Define _nl_C_locobj as hidden.
8554         * malloc/mtrace.c (_mtrace_file): Define as hidden.
8555         (_mtrace_line): Likewise.
8557         * include/time.h: Declare __mon_yday as hidden.
8558         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
8560         * libio/libioP.h: Declare __libio_codecvt as hidden.
8561         * libio/fileops.c: Declare __libio_translit as hidden.
8562         * libio/iofwide.c: Define __libio_translit as hidden.
8564         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
8565         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
8566         * login/getutline_r.c: Likewise.
8567         * login/utmpname.c: Likewise.
8569         * login/utmp-private.h: Declare __libc_utmp_file_functions,
8570         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
8571         __libc_utmp_file_name as hidden.
8573         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
8574         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
8575         * locale/freelocale.c: Likewise.
8576         * locale/lc-time.c: Likewise.
8578         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
8579         (__libc_ptyname2): Likewise.
8580         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
8581         hidden.
8582         (__libc_ptyname2): Likewise.
8584         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
8585         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
8586         * sysdeps/generic/init-first.c: Likewise.
8587         * sysdeps/i386/init-first.c: Likewise.
8588         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
8589         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8590         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8591         * sysdeps/sh/init-first.c: Likewise.
8592         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8593         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8595         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
8596         (_itowa_upper_digits): Likewise.
8598         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
8599         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
8600         as hidden.
8602         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
8603         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
8604         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
8605         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
8607         * gmon/gmon.c (__bb_head): Define as hidden.
8608         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
8610         * argp/argp-parse.c (_argp_hang): Define as static.
8612         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
8613         handling in latest compilers.
8615         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
8616         define alias.
8617         * libio/fileops.c (_IO_file_jumps): Likewise.
8618         * libio/stdfiles.c (_IO_list_all): Likewise.
8619         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
8621         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
8622         include/malloc.h.
8623         * include/malloc.h: Add __libc_malloc_initialized declaration
8624         here.  Mark variable hidden.
8625         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
8627         * elf/dl-open.c (__libc_argc): Declare as hidden.
8628         (__libc_argv): Likewise.
8629         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
8630         (__libc_argv): Likewise.
8631         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
8632         __libc_argv as hidden.
8633         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
8634         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
8635         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
8636         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8638         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
8639         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
8640         * stdlib/erand48.c: Likewise.
8641         * stdlib/jrand48.c: Likewise.
8642         * stdlib/lcong48.c: Likewise.
8643         * stdlib/lrand48.c: Likewise.
8644         * stdlib/mrand48.c: Likewise.
8645         * stdlib/nrand48.c: Likewise.
8646         * stdlib/seed48.c: Likewise.
8647         * stdlib/srand48.c: Likewise.
8649         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
8650         (_itoa_lower_digits_internal): New declaration.
8651         (_itoa_upper_digits_internal): New declaration.
8652         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
8653         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
8654         (_itoa_upper_digits_internal): New declaration.
8655         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
8656         _itoa_lower_digits.
8657         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
8658         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
8660         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
8661         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
8663         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
8664         (_itowa_lower_digits): Likewise.
8665         (_itowa_upper_digits): Likewise.
8666         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
8667         (_itowa_upper_digits): Likewise.
8669         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
8670         not already defined.
8671         (GERMANIC_PLURAL): Declare as hidden.
8673         * posix/getopt.c (__getopt_initialized): Declare as hidden.
8674         (attribute_hidden): Define as empty macro if not already defined.
8676         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
8677         (__gconv_max_path_elem_len): Likewise.
8678         (__gconv_path_envvar): Likewise.
8680         * math/Makefile (gmp-objs): Remove mp_clz_tab.
8681         * stdlib/Makefile (aux): Remove mp_clz_tab.
8682         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
8684         * stdlib/exit.h (__exit_funcs): Declare as hidden.
8686         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
8688         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
8689         _nl_category_names, _nl_category_name_sizes, _nl_current,
8690         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
8692         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
8693         (_nl_current_default_domain): Likewise
8694         (_nl_state_lock): Likewise.
8695         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
8696         (_nl_current_default_domain): Likewise
8697         (_nl_state_lock): Likewise.
8698         * intl/bindtextdom.c (_nl_state_lock): Likewise.
8700         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
8701         (_fpioconst_pow10): Likewise.
8703         * include/time.h (_tmbuf): Add attribute_hidden.
8705         * time/tzset.c (tzstring_list): Define as static.
8707         * include/time.h: Add attribute_hidden to __tzname_cur_max and
8708         __use_tzfile declaration.
8710         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
8711         and __wcsmbs_last_locale declaration.
8713 2002-02-25  Paul Eggert  <eggert@twinsun.com>
8715         * timezone/Makefile (tzbases): Move systemv from here...
8716         (tzlinks): to here, since the entries in systemv were all changed
8717         from Zone to Link lines in tz-2001a.  Bug reported (and patch
8718         tested) by Peter Breitenlohner.
8720 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
8722         * time/tst-posixtz.c (tests): Add new tests.
8723         (main): Test whether tzset() sets daylight properly.
8725 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8727         * time/tzset.c (tz_compute): Move __daylight, __tzname and
8728         __tzname_cur_max setting...
8729         (tzset_internal): ...here.
8731 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8733         * time/tzset.c (compute_change): Don't return any value.
8734         (tz_compute): Likewise.  Don't handle southern hemisphere here.
8735         (__tz_convert): But here.
8737 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8739         * manual/examples/mkfsock.c: Include <string.h> as well.
8740         Patch by Alain De Carolis <alaind@wseurope.com>.
8742 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
8744         * posix/regexec.c (re_match): Fix incorrect register sizes.
8745         (re_search): Likewise.
8747 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8749         * posix/regcomp.c (regfree): Remove a disused condition.
8750         * posix/regex_internal.c (re_acquire_state): Likewise.
8751         (re_acquire_state_context): Likewise.
8752         (register_state): Remove a redundant malloc invocation.
8753         * posix/regex_internal.h: (re_state_table_entry): Simplify
8754         the structure.
8756 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
8758         * posix/regcomp.c (regcomp): Add __builtin_expect to error
8759         handling conditions.
8760         (regerror): Likewise.
8761         (regfree): Likewise.
8762         (re_compile_internal): Likewise.
8763         (init_dfa): Likewise.
8764         (init_word_char): Likewise.
8765         (create_initial_state): Likewise.
8766         (analyze): Likewise.
8767         (analyze_tree): Likewise.
8768         (duplicate_node): Likewise.
8769         (calc_eclosure): Likewise.
8770         (calc_eclosure_iter): Likewise.
8771         (parse): Likewise.
8772         (parse_reg_exp): Likewise.
8773         (parse_branch): Likewise.
8774         (parse_expression): Likewise.
8775         (parse_subexp): Likewise.
8776         (parse_dup_op): Likewise.
8777         (parse_bracket_exp): Likewise.
8778         (build_equiv_class): Likewise.
8779         (build_charclass): Likewise.
8780         (build_word_op): Likewise.
8781         (fetch_number): Likewise.
8782         (create_tree): Likewise.
8783         (duplicate_tree): Likewise.
8784         * posix/regex.c (BE): New macro.
8785         * posix/regexec.c (re_match): Add __builtin_expect to error
8786         handling conditions.
8787         (re_match_2): Likewise.
8788         (re_search): Likewise.
8789         (re_search_internal): Likewise.
8790         (check_matching): Likewise.
8791         (proceed_next_node): Likewise.
8792         (set_regs): Likewise.
8793         (sift_states_backward): Likewise.
8794         (add_epsilon_backreference): Likewise.
8795         (transit_state): Likewise.
8796         (transit_state_sb): Likewise.
8797         (transit_state_mb): Likewise.
8798         (transit_state_bkref): Likewise.
8799         (transit_state_bkref_loop): Likewise.
8800         (build_trtable): Likewise.
8801         (group_nodes_into_DFAstates): Likewise.
8802         (match_ctx_init): Likewise.
8803         (match_ctx_add_entry): Likewise.
8804         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
8805         to error handling conditions.
8806         (re_string_construct_toupper): Likewise.
8807         (build_wcs_buffer): Likewise.
8808         (build_wcs_upper_buffer): Likewise.
8809         (build_upper_buffer): Likewise.
8810         (re_string_translate_buffer): Likewise.
8811         (re_node_set_alloc): Likewise.
8812         (re_node_set_init_1): Likewise.
8813         (re_node_set_init_2): Likewise.
8814         (re_node_set_init_copy): Likewise.
8815         (re_node_set_intersect): Likewise.
8816         (re_node_set_init_union): Likewise.
8817         (re_node_set_merge): Likewise.
8818         (re_node_set_insert): Likewise.
8819         (re_dfa_add_node): Likewise.
8820         (re_acquire_state): Likewise.
8821         (re_acquire_state_context): Likewise.
8822         (create_new_state_common): Likewise.
8823         (register_state): Likewise.
8824         (create_ci_new_state): Likewise.
8825         (create_cd_new_state): Likewise.
8826         (re_string_context_at): Remove redundant condition.
8828 2002-01-16  Roger Sayle  <roger@eyesopen.com>
8830         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
8832         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
8834 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
8836         * sysdeps/i386/elf/configure.in: Fix comment.
8838         * sysdeps/sparc/sparc64/configure.in: New file.
8839         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
8840         if .dynamic comes before .got.
8841         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
8843         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
8844         HP_TIMING_ACCUM): Fix typos.
8846 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8848         * string/strfry.c: Add some more randomness to the seed.
8849         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
8851         * po/es.po: Update from translation team.
8852         * po/fr.po: Likewise.
8854         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
8856         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
8857         when determining type of format.
8858         Patch by James Antill <james@anqd.org> [PR libc/2787].
8860 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
8862         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
8864 2002-03-11  Roland McGrath  <roland@frob.com>
8866         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
8868         * Versions.def (libc): Add GLIBC_2.2.6.
8869         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
8870         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
8871         __errno_location instead of __hurd_errno_location, and don't inline it.
8872         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8873         * hurd/errno.c: New file.
8874         * hurd/Makefile (routines): Add errno.
8876 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8878         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
8879         ridiculously large widths and precisions [PR libc/3026].
8881 2002-03-11  Andreas Jaeger  <aj@suse.de>
8883         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
8884         support.
8885         Patch by Susanne Oberhauser <froh@SuSE.de>.
8887 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
8889         * inet/rexec.c (ahostbuf): Define as static.
8891         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
8892         (__ctype32_wctrans): Likewise.
8893         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
8894         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
8895         (__ctype32_wctrans): Likewise.
8896         (__ctype32_width): Likewise.
8898         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
8899         They were never exported anyway.
8901         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
8902         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
8903         exported.
8904         * include/sys/gmon.h: Declare _gmonparam.
8906         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
8907         symbols for getdents64.  They were never exported.
8909 2002-03-09  Roland McGrath  <roland@frob.com>
8911         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
8912         Reported by Jon Arney <jarney1@cox.net>.
8914 2002-02-23  Roland McGrath  <roland@frob.com>
8916         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
8917         declaration.
8918         (__hurd_errno_location): Function removed.
8920 2002-03-06  Andreas Jaeger  <aj@suse.de>
8922         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
8923         32-bit.
8925 2002-03-04  Andreas Jaeger  <aj@suse.de>
8927         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
8929         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
8930         x86-64.
8932         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
8934         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
8936         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
8938         * sysdeps/x86_64/bits/setjmp.h: New file.
8940         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
8942         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
8944         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
8945         for x86.
8946         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
8947         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
8949 2002-02-28  Bo Thorsen  <bo@suse.de>
8951         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
8952         version.
8954 2002-03-03  Andreas Jaeger  <aj@suse.de>
8956         * sysdeps/x86_64/bits/wordsize.h: New file.
8958         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
8959         * elf/tst-tlsmod1.c: Likewise.
8961         * posix/regcomp.c: Get regex.h from include dir for internal
8962         prototypes.
8964         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
8965         to libc-internal.h and include it.
8966         * include/libc-internal.h: Add __init_misc.
8968         * misc/init-misc.c: Include libc-internal.h for prototypes.
8970         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
8972         * misc/error.c [_LIBC]: Include libioP.h for prototype of
8973         _IO_putc_internal.
8975 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
8977         * posix/regcomp.c: Compatibility changes to allow using the code
8978         outside glibc.
8980 2002-02-28  Hartvig Ekner <hartvige@mips.com>
8982         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
8983         compiled non-PIC.
8985 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
8987         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
8988         of .str elements in the returned data structure.
8990         * elf/elf.h: Add Alpha TLS bits.
8992 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8994         * sysdeps/unix/sysv/linux/nice.c: New file.
8996 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
8998         * elf/Makefile (dl-routines): Add dl-origin.
8999         (elide-routines.os): Add dl-origin.
9000         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
9001         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
9002         _dl_debug_state.
9003         * include/libc-symbols.c: Define attribute_hidden depending on
9004         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
9006         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
9007         * elf/dl-load.c: Likewise.
9008         * elf/rtld.c: Likewise.
9009         * include/unistd.h: Declare __libc_enable_secure_internal.
9010         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
9011         Use INTUSE with __libc_enable_secure.
9012         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
9014         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
9015         * elf/dl-error.c: Likewise,
9016         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
9018         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
9019         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
9020         function definition.  Use INTDEF with _dl_get_origin.
9021         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9023         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
9024         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
9026         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
9027         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
9028         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
9030         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
9031         * elf/dl-deps.c: Likewise.
9032         * elf/dl-error.c: Likewise.
9033         * elf/dl-fini.c: Likewise.
9034         * elf/dl-init.c: Likewise.
9035         * elf/dl-load.c: Likewise.
9036         * elf/dl-lookup.c: Likewise.
9037         * elf/dl-reloc.c: Likewise.
9038         * elf/dl-version.c: Likewise.
9039         * elf/do-lookup.h: Likewise.
9040         * sysdeps/arm/dl-machine.h: Likewise.
9041         * sysdeps/cris/dl-machine.h: Likewise.
9042         * sysdeps/hppa/dl-machine.h: Likewise.
9043         * sysdeps/i386/dl-machine.h: Likewise.
9044         * sysdeps/m68k/dl-machine.h: Likewise.
9045         * sysdeps/powerpc/dl-machine.h: Likewise.
9046         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9047         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9048         * sysdeps/sh/dl-machine.h: Likewise.
9049         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
9050         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
9051         * sysdeps/x86_64/dl-machine.h: Likewise.
9052         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
9053         _dl_argv[0].  Use INTUSE with _dl_argv.
9054         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
9055         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
9057 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
9059         * elf/rtld.c (_rtld_global): Remove .protected.
9060         (_rtld_local): Strong alias to _rtld_global.
9061         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
9062         only .os object.
9063         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
9064         _rtld_local instead of _rtld_global.
9065         (_rtld_local): Add hidden extern, possibly in .sdata section.
9066         * configure.in: Add tests for visibility attribute and .sdata.
9067         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
9068         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
9069         * sysdeps/arm/dl-machine.h: Likewise.
9070         * sysdeps/generic/ldsodefs.h: Likewise.
9071         * sysdeps/hppa/dl-machine.h: Likewise.
9072         * sysdeps/cris/dl-machine.h: Likewise.
9073         * sysdeps/i386/dl-machine.h: Likewise.
9074         * sysdeps/ia64/dl-machine.h: Likewise.
9075         * sysdeps/m68k/dl-machine.h: Likewise.
9076         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9077         * sysdeps/mips/dl-machine.h: Likewise.
9078         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9079         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9080         * sysdeps/sh/dl-machine.h: Likewise.
9081         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9082         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9083         * sysdeps/x86_64/dl-machine.h: Likewise.
9085 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
9087         * login/login.c (login): Always initialize ut_line field
9088         [PR libc/2991].
9090 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
9092         * sysdeps/i386/Makefile (sysdep_routines): Add
9093         divdi3 in csu dir.
9094         (shared-only-routines): Likewise.
9095         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
9096         (shared-only-routines): Likewise.
9097         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
9098         (shared-only-routines): Likewise.
9099         * sysdeps/wordsize-32/divdi3.c: New file.
9101 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
9103         * locale/iso-4217.def: Remove obsolete currencies for countries
9104         with Euro.
9106 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
9108         * posix/regcomp.c (regcomp): Remove a redundant condition.
9109         (init_word_char): Add a check on malloc failure.
9110         (create_initial_state): Likewise.
9111         (duplicate_node): Likewise.
9112         (calc_eclosure): Likewise.
9113         (calc_eclosure_iter): Likewise.
9114         (parse_expression): Likewise.
9115         (parse_bracket_exp): Remove unnecessary malloc invocations.
9116         (build_equiv_class): Likewise.
9117         (build_charclass): Likewise.
9118         * posix/regex_internal.c (re_node_set_intersect): Add a check
9119         on malloc failure.
9120         (re_node_set_add_intersect): Likewise.
9121         (re_node_set_merge): Likewise.
9122         (re_acquire_state): Likewise.
9123         (re_acquire_state_context): Likewise.
9124         (create_newstate_common): Likewise.
9125         (register_state): Likewise.
9126         (create_ci_newstate): Likewise.
9127         (create_cd_newstate): Likewise.
9128         * posix/regex_internal.h: Fix prototypes of re_acquire_state
9129         and re_acquire_state_context.
9130         * posix/regexec.c (regexec): Suit it to the error handling of
9131         re_search_internal.
9132         (re_match): Likewise.
9133         (re_search): Likewise.
9134         (re_search_internal): Add a check on malloc failure.
9135         (acquire_init_state_context): Likewise.
9136         (check_matching): Likewise.
9137         (proceed_next_node): Likewise.
9138         (set_regs): Likewise.
9139         (sift_states_backward): Likewise.
9140         (sift_states_iter_bkref): Likewise.
9141         (add_epsilon_backreference): Likewise.
9142         (transit_state): Likewise.
9143         (transit_state_sb): Likewise.
9144         (transit_state_mb): Likewise.
9145         (transit_state_bkref_loop): Likewise.
9146         (build_trtable): Likewise.
9147         (group_nodes_into_DFAstates): Likewise.
9148         (match_ctx_init): Likewise.
9149         (match_ctx_add_entry): Likewise.
9151 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
9153         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
9154         l_libname if profiling is enabled [PR libc/2916].
9156         * sysdeps/ia64/dl-tls.h: New file.
9158 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
9160         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
9161         Work around an Alpha gas bug.
9163 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
9165         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
9166         uses read to load the catalog.
9167         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
9169 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
9171         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
9172         regex_internal.c, and regex_internal.h.
9173         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
9174         * posix/regex.c: Complete rewrite.
9175         * posix/regexec.c: New file.
9176         * posix/regcomp.c: New file.
9177         * posix/regex_internal.c: New file.
9178         * posix/regex_internal.h: New file.
9179         * posix/regex.h (RE_ICASE): New macro.
9180         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
9182         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
9183         ungetwc.  It's a macro.
9184         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
9185         implementation.
9186         Reported by Jason Merrill <jason@redhat.com>.
9188 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
9190         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
9191         position to fp->_offset if it is set.
9192         * stdio-common/Makefile (tests): Add tst-fdopen.
9193         * stdio-common/tst-fdopen.c: New test.
9195 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
9197         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
9198         * stdio-common/tst-ungetc.c (main): Add another test.
9200 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
9202         * assert/assert-perr.c: Use INTUSE to reference functions and variables
9203         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
9204         aliases.  Add prototypes for the new aliases.
9205         * assert/assert.c: Likewise.
9206         * include/libc-symbols.h: Likewise.
9207         * include/stdio.h: Likewise.
9208         * include/netinet/in.h: Likewise.
9209         * include/rpc/auth.h: Likewise.
9210         * include/rpc/auth_unix.h: Likewise.
9211         * include/rpc/key_prot.h: Likewise.
9212         * include/rpc/pmap_prot.h: Likewise.
9213         * include/rpc/pmap_rmt.h: Likewise.
9214         * include/rpc/rpc_msg.h: Likewise.
9215         * include/rpc/xdr.h: Likewise.
9216         * inet/gethstbyad_r.c: Likewise.
9217         * inet/gethstbynm2_r.c: Likewise.
9218         * inet/gethstbynm_r.c: Likewise.
9219         * inet/gethstent_r.c: Likewise.
9220         * inet/in6_addr.c: Likewise.
9221         * libio/__fpurge.c: Likewise.
9222         * libio/filedoalloc.c: Likewise.
9223         * libio/fileops.c: Likewise.
9224         * libio/ftello.c: Likewise.
9225         * libio/ftello64.c: Likewise.
9226         * libio/genops.c: Likewise.
9227         * libio/iofclose.c: Likewise.
9228         * libio/iofdopen.c: Likewise.
9229         * libio/iofflush.c: Likewise.
9230         * libio/iofflush_u.c: Likewise.
9231         * libio/iofgetpos.c: Likewise.
9232         * libio/iofgetpos64.c: Likewise.
9233         * libio/iofgets.c: Likewise.
9234         * libio/iofgets_u.c: Likewise.
9235         * libio/iofopen.c: Likewise.
9236         * libio/iofopncook.c: Likewise.
9237         * libio/iofputs.c: Likewise.
9238         * libio/iofread.c: Likewise.
9239         * libio/iofread_u.c: Likewise.
9240         * libio/iofsetpos.c: Likewise.
9241         * libio/iofsetpos64.c: Likewise.
9242         * libio/ioftell.c: Likewise.
9243         * libio/iofwrite.c: Likewise.
9244         * libio/iogetline.c: Likewise.
9245         * libio/iogets.c: Likewise.
9246         * libio/iogetwline.c: Likewise.
9247         * libio/iolibio.h: Likewise.
9248         * libio/iopadn.c: Likewise.
9249         * libio/iopopen.c: Likewise.
9250         * libio/ioseekoff.c: Likewise.
9251         * libio/ioseekpos.c: Likewise.
9252         * libio/iosetbuffer.c: Likewise.
9253         * libio/iosetvbuf.c: Likewise.
9254         * libio/ioungetc.c: Likewise.
9255         * libio/ioungetwc.c: Likewise.
9256         * libio/iovdprintf.c: Likewise.
9257         * libio/iovsprintf.c: Likewise.
9258         * libio/iovsscanf.c: Likewise.
9259         * libio/libioP.h: Likewise.
9260         * libio/memstream.c: Likewise.
9261         * libio/obprintf.c: Likewise.
9262         * libio/oldfileops.c: Likewise.
9263         * libio/oldiofclose.c: Likewise.
9264         * libio/oldiofdopen.c: Likewise.
9265         * libio/oldiofgetpos.c: Likewise.
9266         * libio/oldiofgetpos64.c: Likewise.
9267         * libio/oldiofopen.c: Likewise.
9268         * libio/oldiofsetpos.c: Likewise.
9269         * libio/oldiofsetpos64.c: Likewise.
9270         * libio/oldiopopen.c: Likewise.
9271         * libio/oldstdfiles.c: Likewise.
9272         * libio/putc.c: Likewise.
9273         * libio/setbuf.c: Likewise.
9274         * libio/setlinebuf.c: Likewise.
9275         * libio/stdfiles.c: Likewise.
9276         * libio/stdio.c: Likewise.
9277         * libio/strops.c: Likewise.
9278         * libio/vasprintf.c: Likewise.
9279         * libio/vscanf.c: Likewise.
9280         * libio/vsnprintf.c: Likewise.
9281         * libio/vswprintf.c: Likewise.
9282         * libio/wfiledoalloc.c: Likewise.
9283         * libio/wfileops.c: Likewise.
9284         * libio/wgenops.c: Likewise.
9285         * libio/wstrops.c: Likewise.
9286         * malloc/mtrace.c: Likewise.
9287         * misc/error.c: Likewise.
9288         * misc/syslog.c: Likewise.
9289         * nss/getXXbyYY_r.c: Likewise.
9290         * nss/getXXent_r.c: Likewise.
9291         * nss/hosts-lookup.c: Likewise.
9292         * stdio-common/getw.c
9293         * stdio-common/printf-prs.c: Likewise.
9294         * stdio-common/printf_fp.c: Likewise.
9295         * stdio-common/printf_size.c: Likewise.
9296         * stdio-common/putw.c: Likewise.
9297         * stdio-common/scanf.c: Likewise.
9298         * stdio-common/sprintf.c: Likewise.
9299         * stdio-common/tmpfile64.c: Likewise.
9300         * stdio-common/vfprintf.c: Likewise.
9301         * stdio-common/vfscanf.c: Likewise.
9302         * stdlib/strfmon.c: Likewise.
9303         * sunrpc/auth_des.c: Likewise.
9304         * sunrpc/auth_none.c: Likewise.
9305         * sunrpc/auth_unix.c: Likewise.
9306         * sunrpc/authdes_prot.c: Likewise.
9307         * sunrpc/authuxprot.c: Likewise.
9308         * sunrpc/clnt_perr.c: Likewise.
9309         * sunrpc/clnt_raw.c: Likewise.
9310         * sunrpc/clnt_tcp.c: Likewise.
9311         * sunrpc/clnt_udp.c: Likewise.
9312         * sunrpc/clnt_unix.c: Likewise.
9313         * sunrpc/key_call.c: Likewise.
9314         * sunrpc/key_prot.c: Likewise.
9315         * sunrpc/openchild.c: Likewise.
9316         * sunrpc/pm_getmaps.c: Likewise.
9317         * sunrpc/pm_getport.c: Likewise.
9318         * sunrpc/pmap_clnt.c: Likewise.
9319         * sunrpc/pmap_prot.c: Likewise.
9320         * sunrpc/pmap_prot2.c: Likewise.
9321         * sunrpc/pmap_rmt.c: Likewise.
9322         * sunrpc/rpc_cmsg.c: Likewise.
9323         * sunrpc/rpc_prot.c: Likewise.
9324         * sunrpc/svc_authux.c: Likewise.
9325         * sunrpc/svc_raw.c: Likewise.
9326         * sunrpc/svc_simple.c: Likewise.
9327         * sunrpc/svc_tcp.c: Likewise.
9328         * sunrpc/svc_udp.c: Likewise.
9329         * sunrpc/svc_unix.c: Likewise.
9330         * sunrpc/xdr.c: Likewise.
9331         * sunrpc/xdr_array.c: Likewise.
9332         * sunrpc/xdr_mem.c: Likewise.
9333         * sunrpc/xdr_rec.c: Likewise.
9334         * sunrpc/xdr_ref.c: Likewise.
9335         * sunrpc/xdr_stdio.c: Likewise.
9336         * sysdeps/generic/_strerror.c: Likewise.
9337         * sysdeps/generic/printf_fphex.c: Likewise.
9338         * sysdeps/generic/tmpfile.c: Likewise.
9339         * sysdeps/gnu/errlist.awk: Likewise.
9340         * sysdeps/gnu/errlist.c: Likewise.
9342         * libio/Makefile (routines): Remove iosprint.
9343         * libio/iosprintf.c: Removed
9346 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
9348         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
9349         non_dynamic_init and exported now.
9350         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
9351         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
9352         !SHARED.
9353         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
9354         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
9355         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
9357 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
9359         * elf/dl-close.c (free_slotinfo): Check for end of list and return
9360         true in this case.
9362         * locale/iso-639.def: Add language codes for Walloon.
9364         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
9365         total number of relocations performed.
9367         * elf/sprof.c (load_profdata): If do_test provide information as
9368         to why loading failed.
9369         * elf/dl-profile.c (_dl_start_profile): Initialize all of
9370         hist_hdr.dimen.
9372         * csu/set-init.c: Moved to...
9373         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
9374         * csu/Makefile: Don't compile set-init.
9375         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
9376         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
9377         to __libc_init.
9378         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
9379         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
9380         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
9381         __libc_init.
9382         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
9383         __libc_subinit.
9385 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
9387         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
9388         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
9389         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
9390         (_dl_deallocate_tls): New function.
9391         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
9392         _dl_deallocate_tls.
9394 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
9396         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
9397         * stdio-common/tst-fseek.c (main): Add test for this.
9399 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
9401         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
9403 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
9405         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
9406         pointer before dereferencing.
9408 2002-02-18  Roland McGrath  <roland@frob.com>
9410         * sysdeps/mach/hurd/times.c: Fix typo in last change.
9412         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
9413         Use task_policy in place of task_priority.
9415         * sysdeps/generic/bits/mman.h
9416         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
9417         * sysdeps/mach/msync.c: New file.
9419         * sysdeps/mach/powerpc/syscall.S: New file.
9421         * mach/msg.c [MACH_MSG_OVERWRITE]
9422         (__mach_msg_trap, __mach_msg_overwrite): New functions.
9423         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
9425         * sysdeps/mach/configure.in: Check for clock.defs to put into
9426         mach_interface_list.
9427         * sysdeps/mach/configure: Regenerated.
9429         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
9430         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
9431         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
9432         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
9433         (mach-shortcuts): Add device_read_overwrite_request,
9434         device_read_overwrite, vm_read_overwrite, thread_switch.
9436         * configure.in (base_machine): Set to $machine by default.
9437         * configure: Regenerated.
9439         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
9440         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
9441         * sysdeps/mach/configure: Regenerated.
9442         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
9444         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
9446         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
9448         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
9449         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
9451 2002-02-17  Roland McGrath  <roland@frob.com>
9453         * sysdeps/mach/hurd/times.c
9454         [NO_CREATION_TIME] (startup_time): New static variable.
9455         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
9456         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
9457         creation_time from task_basic_info.
9458         (__times): Use __gettimeofday instead of __host_get_time.
9460         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
9461         Use untyped Mach IPC message format.
9463         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
9465         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
9466         _S_catch_exception_raise_state_identity,
9467         _hurdsig_fault_catch_exception_raise_state,
9468         _hurdsig_fault_catch_exception_raise_state_identity.
9470         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
9472         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
9473         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
9475         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
9476         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
9478         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
9479         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
9480         them as no-op macros.
9481         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
9482         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
9484         * sysdeps/powerpc/dl-machine.h
9485         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
9487         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
9488         Use untyped Mach IPC message format.
9490         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
9491         Handle untyped Mach IPC message formats.
9493         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
9494         Expect different argument conventions when this is defined.
9495         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
9496         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
9497         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
9498         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
9499         for OSF Mach variant.
9500         (faulted): Use mig_reply_error_t for REPLY.
9501         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
9502         in __thread_set_exception_ports call.
9503         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
9504         __mach_port_set_attributes in place of __mach_port_set_qlimit.
9506         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
9507         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
9508         on Darwin, which includes bogons.
9510         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
9511         variable LOADBASE so it's not declared when it's not used.
9513 2002-02-16  Roland McGrath  <roland@frob.com>
9515         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
9516         to use BI.creation_time.
9518         * mach/Machrules (MIG): Add -x c to CPP value passed down.
9520         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
9521         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
9522         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
9523         host_page_size instead of vm_statistics.
9525         * sysdeps/mach/Makefile (mach-before-compile): Don't include
9526         mach_interface.h here, since not all variants use that name.
9528         * sysdeps/mach/configure.in: Add some checks for Mach headers
9529         to ensure a sane installation.
9530         (mach_interface_list): Define this variable by checking for .defs
9531         files found in various variants.
9532         * configure.in (mach_interface_list): AC_SUBST this.
9533         * config.make.in (mach-interface-list): New substituted variable.
9534         * mach/Makefile (user-interfaces): Define this using the value
9535         of $(mach-interface-list) instead of mach, mach4.
9536         Updated other references to mach_interface to use it as well.
9538         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
9540         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
9541         mig_reply_error_t for OSF Mach variant.
9543         * mach/Makefile (routines): Remove bootprivport.
9544         * mach/bootprivport.c: File removed.  It has never been used.
9546         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
9547         Grok the OSF flavor of message format.
9548         (mach_msg_destroy_port): For MAKE_SEND and
9549         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
9550         no-senders notification.
9552 2002-02-06  Roland McGrath  <roland@frob.com>
9554         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
9555         to here if 2.0 compatibility enabled ...
9556         (libc: GLIBC_2.1.3): ... from here.
9558 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
9560         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
9561         generation counter.
9562         * elf/dl-close.c (_dl_close): Likewise.
9564 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
9566         * elf/Makefile: Add rules to build and run tst-tls8.
9567         * elf/tst-tls8.c: New file.
9568         * elf/tst-tlsmod4.c: New file.
9570         * stdlib/test-a64l.c (tests): Add more test cases.
9572         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
9573         Reported by Walter Harms <WHarms@bfs.de>.
9575 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
9577         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
9578         definitions for struct sigcontext.
9579         Suggested by David Mosberger-Tang.
9581 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9583         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
9584         for removing reference of module in slotinfo list.
9585         (_dl_close): Use remove_slotinfo.
9586         * sysdeps/generic/dl-tls.c: General pretty printing.
9587         (oom): Define only if SHARED.
9588         (_dl_next_tls_modid): Correct starting point for the case we assume
9589         there is a gap.  Add missing instruction grouping (doh!).  Correct
9590         tests for reaching maximum index.
9591         * elf/Makefile: Add rules to build and run tst-tls7.
9592         * elf/tst-tls7.c: New file.
9593         * elf/tst-tlsmod3.c: New file.
9595         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
9596         USE_TLS.
9597         * elf/tst-tlsmod2.c: Likewise.
9599         * elf/dl-close.c (_dl_close): When closing an object using TLS
9600         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
9601         true.  Increment dl_tls_generation only if we closed any TLS-using
9602         object.
9603         * elf/tst-tls6.c: New file.
9604         * elf/Makefile: Add rules to build and run tst-tls6.
9606         * po/da.po: Update from translation team.
9608         * locale/categories.def: Fix typo [PR libc/2948].
9609         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
9610         [PR libc/2949].
9611         * locale/iso-4217.def: Update from official version [PR libc/2950].
9612         * glibcbug.in: Honor TMPDIR [PR libc/2951].
9613         * locale/programs/ld-collate.c (collate_finish): Bail out with a
9614         message if input is too confusion instead of using assert.
9615         (collate_read): Don't crash on unknown symbol [PR libc/2952].
9616         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
9618         * elf/tst-tls1.c: Move #include "tls-macros.h" inside #ifdef USE_TLS.
9619         * elf/tst-tls2.c: Likewise.
9620         * elf/tst-tls3.c: Likewise.
9622 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
9624         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
9626 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
9628         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
9629         if this is really necessary.
9631         * elf/dl-close.c (_dl_close): Implement freeing entries in the
9632         slotinfo array.
9633         (free_mem): Free memory for the slotinfo array if possible.
9635 2002-02-12  Andreas Schwab  <schwab@suse.de>
9637         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
9639 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
9641         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
9642         TLS_DTV_UNALLOCATE.
9643         (oom): New function.
9644         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
9645         (_dl_determine_tlsoffset): Likewise.
9646         (_dl_allocate_tls): Likewise.
9647         (__TLS_GET_ADDR): Define if not already defined.
9648         (_dl_tls_symaddr): New function.
9649         (allocate_and_init): New function.
9650         (__tls_get_addr): Actually implement handling of generation counter
9651         and deferred allocation.
9652         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
9653         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9654         _dl_tls_generation.
9655         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
9656         Declare _dl_tls_symaddr.
9657         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
9658         SHARED.
9659         * include/link.h (struct link_map):  Remove l_tls_nextimage and
9660         l_tls_previmage.
9661         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
9662         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
9663         (_dl_vsym): Likewise.
9664         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
9665         layout.
9666         (dl_main): Allow PT_TLS be present for empty segment.  Remove
9667         nextimage list handling.  Instead add all modules using TLS to
9668         dl_tls_dtv_slotinfo_list.
9669         * elf/dl-open.c (dl_open_worker): After successfully loading all
9670         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
9671         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
9672         empty segment don't do anything.  Remove handling of initimage list.
9673         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
9674         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
9675         * elf/dl-minimal.c: Define __libc_memalign.
9676         * elf/dl-support.c: Remove _dl_initimage_list.  Add
9677         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
9678         _dl_tls_generation.
9679         * include/stdlib.h: Declare __libc_memalign.
9681         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
9682         * elf/tst-tls4.c: New file.
9683         * elf/tst-tls5.c: New file.
9684         * elf/tst-tlsmod2.c: New file.
9686         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
9688         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
9690         * elf/tst-tls1.c: Use test-skeleton.c.
9691         * elf/tst-tls2.c: Likewise.
9692         * elf/tst-tls3.c: Likewise.
9694         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
9696 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
9698         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
9700 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
9702         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
9704         * elf/tst-tls3.c: New file.
9705         * elf/tst-tlsmod1.c: New file.
9706         * elf/Makefile: Add rules to build and run tst-tls3.
9708         * sysdeps/i386/dl-machine.h: Include <tls.h>.
9709         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
9710         TLS relocations.
9712         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
9714         * po/fr.po: Update from translation team.
9716         * elf/tls-macros.h: Add alternative macros for use in PIC.
9718         * elf/dl-lookup.c: Include <tls.h>.
9719         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
9721         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
9722         required by passing pointer to last element of the list.
9724         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
9725         l_tls_initimage to a place where it actually is performed.
9727         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
9728         after globfree() calls.
9730         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
9731         (openaux): Pass open_mode as new last argument to _dl_map_object.
9732         (_dl_map_object_deps): Add new argument open_mode.  Initialize
9733         open_mode element of args variable with it.
9734         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
9735         _dl_map_object_deps.
9736         * elf/rtld.c (dl_main): Add zero as last parameter to
9737         _dl_map_object_deps call.
9738         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
9739         * elf/nodlopen2.c: New file.
9740         * elf/nodlopenmod2.c: New file.
9741         * elf/Makefile: Add rules to build and run nodlopen2.
9743         * elf/tst-tls1.c: Move TLS helper macros to...
9744         * elf/tls-macros.h: ...here.  New file.
9745         * elf/tst-tls2.c: New file.
9746         * elf/Makefile (tests): Add tst-tls2.
9747         (distribute): Add tls-macros.h.
9749         * po/sv.po: Update from translation team.
9751         * elf/tst-tls1.c (main): Add complete set of tests.  Split
9752         architecture specific definitions from the actual test code.
9754         * po/tr.po: Update from translation team.
9756 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
9758         * elf/Makefile (tests): Add tst-tls1.
9759         * elf/tst-tls1.c: New file.
9761         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
9762         alignment of TCB for now.
9764         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
9765         initialization image for the application itself.
9767         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
9768         loop to initialize TLS block.
9770 2002-02-08  Richard Henderson  <rth@redhat.com>
9772         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
9773         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
9775         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
9777 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
9779         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
9781 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
9783         * po/ca.po: Update from translation team.
9784         * po/sk.po: Likewise.
9786         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
9787         (dl_main): Move dtv/static TLS handling before relocation.
9788         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
9789         TLS_INIT_TP to allocate and install the dtv/static TLS block.
9790         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
9791         so far uses TLS initialize GL(dl_tls_static_size) and
9792         GL(dl_tls_static_align) to account for the TCB.
9793         (_dl_allocate_tls): New function.
9794         * sysdeps/generic/ldsodefs.h (rtld_global): Add
9795         _dl_initial_dtv_malloced.
9797         * configure.in: Test for __builtin_memset more realistically.
9799         * csu/version.c (banner): If TLS support is available say so.
9801 2002-02-04  H.J. Lu  <hjl@gnu.org>
9803         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
9804         __attribute_used__.
9805         (__dl_runtime_resolve): Likewise.
9807         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
9808         declaration.
9810 2001-11-15  H.J. Lu  <hjl@gnu.org>
9812         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
9813         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
9815         * sysdeps/unix/sysv/linux/mips/sys/user.h: New file.
9817 2002-02-07  H.J. Lu  <hjl@gnu.org>
9819         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
9820         ".set noreorder".
9821         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
9822         Likewise.
9824 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9826         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
9828         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
9829         ___tls_get_addr_internal.
9830         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
9832         * po/ko.po: Update from translation team.
9834 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
9836         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
9837         attribute, change __pad{1,2} type to unsigned int.
9838         (struct stat64): Remove packed attribute.
9840 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9842         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
9844 2002-02-07  Andreas Schwab  <schwab@suse.de>
9846         * configure.in: Fix check for -zcombreloc.
9848 2002-02-06  H.J. Lu  <hjl@gnu.org>
9850         * config.h.in (HAVE_BUILTIN_MEMSET): New macro.
9851         * configure.in: Check if __builtin_memset really works.
9852         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
9853         __GNUC_PREREQ (2, 96) before using __builtin_memset.
9855 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9857         * io/bug-ftw3.c (main): Don't try the test if root.
9859 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9861         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
9862         constraints.
9863         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
9864         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
9865         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
9866         Likewise.
9867         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
9868         a weak alias for __clone.
9869         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
9870         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
9871         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
9872         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
9873         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
9874         a weak alias for __mmap64.
9876 2002-02-05  H.J. Lu  <hjl@gnu.org>
9878         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
9879         (atomic_add): Likewise.
9880         (compare_and_swap): Likewise.
9881         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
9883 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
9885         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
9887         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
9888         alignment of the TCB and store total size and alignment of static
9889         TLS block in _dl_tls_static_size and _dl_tls_static_align.
9890         tls_index is a typedef.
9891         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
9892         _dl_tls_static_align.
9893         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
9894         * elf/dl-support.c: Define _dl_tls_static_size and
9895         _dl_tls_static_align.
9897 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9899         * configure.in: Add --without-tls option.
9900         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
9901         --without-tls is given.
9903         * sysdeps/generic/dl-tls.c: Include <tls.h>.
9905         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
9907 2002-02-06  Roland McGrath  <roland@frob.com>
9909         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
9910         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
9912         * scripts/versions.awk: Improve error message for missing version.
9913         Each version inherits from the last one only if they have the same
9914         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9915         but not GLIBC_x and FOO_y.
9917         * scripts/firstversions.awk: Handle libraries that don't have each
9918         particular version named in the third column of shlib-versions.
9920         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
9922 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9924         * Versions.def [ld]: Add GLIBC_2.3.
9925         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
9926         * elf/Makefile (dl-routines): Add dl-tls.
9927         (distribute): Add dl-tls.h.
9928         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
9929         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9930         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
9931         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
9932         along with the other info in the link map.  Change queueing of init
9933         images for double linked list.  Use _dl_next_tls_modid to compute
9934         l_tls_modid.
9935         * elf/rtld.c (_dl_start_final): Store alignment requirement
9936         along with the other info in rtld map and executable map.
9937         (dl_main): Add ld.so to the init image list if necessary.  Compute
9938         final module ID with _dl_next_tls_modid.
9939         * include/link.h (struct link_map): Add l_tls_previmage and
9940         l_tls_align.
9941         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
9942         * sysdeps/i386/elf/Versions: New file.
9943         * sysdeps/generic/dl-tls.c: New file.
9944         * sysdeps/generic/dl-tls.h: New file.
9945         * sysdeps/i386/dl-tls.h: New file.
9947 2002-02-06  Roland McGrath  <roland@frob.com>
9949         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
9950         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
9952 2002-01-05  Roland McGrath  <roland@frob.com>
9954         * sysdeps/mach/configure.in: New file.
9955         * sysdeps/mach/configure: New generated file.
9957         * mach/Makefile (user-interfaces): Remove default_pager_helper.
9958         It has never been used by anything.
9960 2002-02-06  H.J. Lu  <hjl@gnu.org>
9962         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
9963         is included.
9965 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
9967         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
9968         attribute((packed)) to counter stupid people misusing gcc options.
9969         (struct stat64): Likewise.
9971 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9973         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
9974         the variables which are used as booleans.
9976 2002-02-06  Andreas Jaeger  <aj@suse.de>
9978         * include/libc-symbols.h (INTUSE): Renamed from INT.
9979         * elf/dl-deps.c: Change users.
9980         * sysdeps/generic/dl-sysdep.c: Likewise.
9981         * sysdeps/generic/dl-cache.c: Likewise.
9982         * elf/dl-reloc.c: Likewise.
9983         * elf/rtld.c: Likewise.
9984         * elf/dl-version.c: Likewise.
9985         * elf/dl-load.c: Likewise.
9986         * elf/dl-dst.h: Likewise.
9987         * elf/dl-init.c: Likewise.
9988         * elf/dl-error.c: Likewise.
9989         * elf/dl-fini.c: Likewise.
9990         * elf/dl-runtime.c: Likewise.
9991         * elf/do-lookup.h: Likewise.
9993         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
9994         definition.
9995         * stdio-common/_itowa.h: Likewise.
9997 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9999         * elf/dl-minimal.c: Define _itoa_lower_digits.
10001         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
10002         DT_FLAGS set.
10004         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
10005         loading modules with the DF_STATIC_TLS flag set.
10006         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
10007         element.
10008         * include/link.h (struct link_map): Add l_flags field.
10009         * elf/elf.h (DF_STATIC_TLS): New definition.
10011         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
10012         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
10014         * elf/rtld.c (process_dl_debug): Correct printing help message.
10015         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
10016         for %s.
10018         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
10019         definition and pass &errno in use of this variable.
10020         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
10022 2002-02-04  Andreas Schwab  <schwab@suse.de>
10024         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
10025         * locale/programs/charmap-dir.c: Wrap calls that output messages
10026         with WITH_CUR_LOCALE.  Include "localedef.h" first.
10027         * locale/programs/charmap.c: Likewise.
10028         * locale/programs/ld-address.c: Likewise.
10029         * locale/programs/ld-collate.c: Likewise.
10030         * locale/programs/ld-ctype.c: Likewise.
10031         * locale/programs/ld-identification.c: Likewise.
10032         * locale/programs/ld-measurement.c: Likewise.
10033         * locale/programs/ld-messages.c: Likewise.
10034         * locale/programs/ld-monetary.c: Likewise.
10035         * locale/programs/ld-name.c: Likewise.
10036         * locale/programs/ld-numeric.c: Likewise.
10037         * locale/programs/ld-paper.c: Likewise.
10038         * locale/programs/ld-telephone.c: Likewise.
10039         * locale/programs/ld-time.c: Likewise.
10040         * locale/programs/linereader.c: Likewise.
10041         * locale/programs/linereader.h: Likewise.
10042         * locale/programs/localedef.c: Likewise.
10043         * locale/programs/locfile.c: Likewise.
10044         * locale/programs/repertoire.c: Likewise.
10046 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
10048         * elf/rtld.c (_dl_start_final): Determine load address to locate
10049         ehdr with GL(dl_rtld_map).l_map_start.
10051         * po/ca.po: Update from translation team.
10053         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
10054         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
10055         header entry.
10056         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10057         _dl_tls_module_cnt.
10058         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
10060 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
10062         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
10063         * include/link.h (struct link_map): Add various members for TLS
10064         information.
10065         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
10066         _rtld_tlsoffset, add _dl_initimage_list.
10067         * sysdeps/i386/dl-lookupcfg.h: New file.
10068         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
10069         TLS relocation.  When using TLS we now use RESOLVE_MAP.
10070         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
10071         is used.
10073         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
10074         unused.
10076         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
10077         thread-pointer as soon as possible.
10078         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
10079         elements in rtld_global.
10080         * sysdeps/generic/tls.h: New file.
10081         * elf/Makefile (distribute): Add tls.h.
10082         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
10083         relocations.  Not complete yet.
10085         * resolv/resolv.h: Allow user to define __need_res_state and only
10086         define __res_start structure then.
10087         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
10089         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
10090         dl_cpuclock_offset initialization to _dl_start_final.
10091         (_dl_show_auxv): Avoid unnecessary sign extension.
10092         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
10094 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
10096         * config.h.in: Add HAVE_TLS_SUPPORT.
10097         * sysdeps/i386/elf/configure.in: New file.
10099 2002-02-03  Andreas Schwab  <schwab@suse.de>
10101         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
10102         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
10104 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
10106         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
10107         alloca if the memory reqirements are too high.
10109 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
10111         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
10112         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
10113         the former is available anyway and speed isn't important here.
10114         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
10115         * elf/dl-version.c (match_symbol): Likewise.
10116         (_dl_check_map_versions): Likewise.
10117         * elf/rtld.c (process_envvars): Likewise.
10118         (print_statistics): Likewise.
10119         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
10120         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
10121         bases.  Add assert to catch uses of unimplemented features.
10122         (__strsep): Add assert to catch uses of unimplemented features.
10123         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
10124         and avoid inline optimization.
10125         * elf/rtld.c (process_envvars): Likewise.
10126         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
10127         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
10128         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
10130 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10132         * stdio-common/_itoa.h: Minor simplifications of the code.
10133         * stdio-common/_itoa.c: Likewise.
10135         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
10136         instead of _dl_printf for debugging info output.
10138         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
10139         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
10141 2002-02-01  H.J. Lu  <hjl@gnu.org>
10143         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
10144         (atomic_add): Likewise.
10145         (compare_and_swap): Return 0 only when failed to compare. Use
10146         branch likely.
10148         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
10149         branch likely.
10151 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
10153         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
10155 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10157         * elf/dl-minimal.c (__strsep): New minimal implementation.
10159 2002-02-02  Paul Eggert  <eggert@twinsun.com>
10161         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
10162         (__mktime_internal): If no tm_isdst is requested, prefer solutions
10163         with tm_isdst > 0 when the requested time falls within a
10164         spring-forward gap [PR libc/2894].
10166 2002-02-03  Andreas Schwab  <schwab@suse.de>
10168         * stdio-common/tst-rndseek.c: Increase timeout.
10170 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
10172         Change ld.so to not use functions which are exported.  One cannot
10173         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
10174         definitions.
10175         * include/libc-symbols.h: Define INT and INTDEF.
10176         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
10177         _dl_signal_error_internal, _dl_map_object_internal,
10178         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
10179         _dl_lookup_versioned_symbol_internal,
10180         _dl_relocate_object_internal, _dl_debug_state_internal,
10181         _dl_start_profile_internal, and _dl_unload_cache_internal.
10182         * include/dlfcn.h: Declare _dl_catch_error_internal.
10183         * elf/rtld.c: Use INT for calls to any of the *_internal functions
10184         above.  Add INTDEF to function definitions.
10185         * elf/dl-debug.c: Likewise.
10186         * elf/dl-deps.c: Likewise.
10187         * elf/dl-dst.h: Likewise.
10188         * elf/dl-error.c: Likewise.
10189         * elf/dl-fini.c: Likewise.
10190         * elf/dl-init.c: Likewise.
10191         * elf/dl-load.c: Likewise.
10192         * elf/dl-lookup.c: Likewise.
10193         * elf/dl-misc.c: Likewise.
10194         * elf/dl-open.c: Likewise.
10195         * elf/dl-profile.c: Likewise.
10196         * elf/dl-reloc.c: Likewise.
10197         * elf/dl-runtime.c: Likewise.
10198         * elf/dl-version.c: Likewise.
10199         * elf/do-lookup.h: Likewise.
10200         * sysdeps/generic/dl-cache.c: Likewise.
10201         * sysdeps/generic/dl-sysdep.c: Likewise.
10202         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
10203         instead of _dl_init.
10204         * sysdeps/arm/dl-machine.h: Likewise.
10205         * sysdeps/cris/dl-machine.h: Likewise.
10206         * sysdeps/hppa/dl-machine.h: Likewise.
10207         * sysdeps/i386/dl-machine.h: Likewise.
10208         * sysdeps/ia64/dl-machine.h: Likewise.
10209         * sysdeps/m68k/dl-machine.h: Likewise.
10210         * sysdeps/mips/dl-machine.h: Likewise.
10211         * sysdeps/mips/mips64/dl-machine.h: Likewise.
10212         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10213         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10214         * sysdeps/sh/dl-machine.h: Likewise.
10215         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10216         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10217         * sysdeps/x86_64/dl-machine.h: Likewise.
10218         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
10220         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
10221         and _dl_debug_initialize.
10223         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
10224         more information.
10225         * elf/rtld.c (dl_main): Avoid strrchr.
10226         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
10227         result of readlink.  Search from the back for '/'.
10229         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
10230         strncpy if possible.
10232         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
10233         strncmp.
10234         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
10235         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
10236         strspn, and strcspn.
10237         (process_envvars): Don't use strcspn.
10239         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
10240         (_dl_dst_substitute): Likewise.
10242 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10244         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
10245         code which is never used when relocating ld.so itself.
10247         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
10248         starting ld.so itself.  Move l_addr variable initialization closer
10249         to use.
10250         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
10252 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
10254         * Versions.def (libc): Add GLIBC_PRIVATE.
10255         (libdb, libnss_db, libdb1): Remove.
10256         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
10257         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
10258         (libpthread): Add GLIBC_PRIVATE.
10259         (libresolv): Likewise, remove GLIBC_2.1.
10260         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
10261         GLIBC_2.2.3, GLIBC_2.3.
10262         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
10263         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
10264         _dl_sym, _dl_vsym): Likewise.
10265         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
10266         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
10267         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
10268         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
10269         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
10270         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
10271         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
10272         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
10273         Likewise.
10274         (_dl_object_relocation_scope): Remove.
10275         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
10276         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
10277         __gconv_cache): Move to GLIBC_PRIVATE.
10278         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
10279         __internal_setnetgrent): Likewise.
10280         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
10281         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
10282         * locale/Versions (__collate_element_hash, __collate_element_strings,
10283         __collate_symbol_classes, __collate_symbol_hash,
10284         __collate_symbol_strings, _nl_current_LC_COLLATE,
10285         _nl_current_LC_CTYPE): Likewise.
10286         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
10287         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
10288         (libnss_nis, libnss_nisplus): Likewise.
10289         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
10290         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
10291         (libnss_files): Move all symbols to GLIBC_PRIVATE.
10292         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
10293         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
10294         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
10295         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
10296         __ns_get16, __ns_samename): Likewise.
10297         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
10298         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
10299         GLIBC_PRIVATE.
10300         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
10301         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
10302         __libc_connect): Likewise.
10303         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
10304         Likewise.
10305         * stdlib/Versions (__libc_system): Likewise.
10306         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
10307         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
10308         * sysdeps/ia64/fpu/Versions: Likewise.
10309         * sysdeps/ia64/Versions: Likewise.
10310         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
10311         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
10312         to GLIBC_PRIVATE.
10313         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
10314         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
10315         __libc_sigaction): Likewise.
10316         * termios/Versions (__libc_tcdrain): Likewise.
10318         * misc/sys/cdefs (__attribute_noinline__): Define.
10319         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
10320         __attribute_noinline__.
10322         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
10323         * elf/dl-xstat64.c: New file.
10324         * elf/dl-fxstat64.c: New file.
10325         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
10326         don't export __fxstat64 at multiple versions.
10327         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
10328         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
10330 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
10332         * locale/program/ld-collate.c (collate_finish): Assign a wide
10333         char collation sequence value to multi character collating
10334         elements, and avoid over writing by non-character elements.
10336 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10338         * elf/Makefile (distribute): Add dl-procinfo.c.
10339         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
10340         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
10342 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
10344         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
10345         definition.
10346         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
10347         _rtld_global struct.
10348         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10349         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
10350         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10351         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
10352         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
10353         _dl_fpu_control_set): Remove unused externs.
10354         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
10355         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
10356         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
10357         related variables in _rtld_global struct.
10358         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
10359         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
10360         unused extern.
10362 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10364         * sysdeps/generic/dl-procinfo.c: New file.
10366 2002-02-01  Andreas Schwab  <schwab@suse.de>
10368         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
10370 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
10372         * elf/rtld.c (_dl_start): Mark as internal_function.
10373         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
10374         in register.
10375         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
10376         General pretty printing.
10378 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
10380         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
10381         * elf/dl-reloc.c: Pretty printing.
10382         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
10383         procinfo-related variables in rtld_global struct.
10384         * elf/dl-support.c: Likewise.
10385         * elf/rtld.c: Likewise.
10386         * sysdeps/i386/i686/Makefile: Likewise.
10387         * sysdeps/i386/i686/hp-timing.c: Likewise.
10388         * sysdeps/i386/i686/hp-timing.h: Likewise.
10389         * sysdeps/ia64/Makefile: Likewise.
10390         * sysdeps/ia64/hp-timing.c: Likewise.
10391         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
10392         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
10393         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
10394         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
10395         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
10396         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
10397         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
10398         * sysdeps/x86_64/Makefile: Likewise.
10400         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
10401         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
10402         _dl_debug_fd to rtld_global.
10403         * elf/Versions: Likewise.
10404         * elf/dl-close.c: Likewise.
10405         * elf/dl-iteratephdr.c: Likewise.
10406         * elf/dl-lookup.c: Likewise.
10407         * elf/dl-misc.c: Likewise.
10408         * elf/dl-open.c: Likewise.
10409         * elf/dl-support.c: Likewise.
10410         * elf/do-lookup.h: Likewise.
10411         * elf/rtld.c: Likewise.
10412         * sysdeps/generic/dl-cache.c: Likewise.
10413         * sysdeps/generic/dl-sysdep.c: Likewise.
10414         * sysdeps/ia64/Versions: Likewise.
10415         * sysdeps/unix/clock_gettime.c: Likewise.
10416         * sysdeps/unix/clock_settime.c: Likewise.
10417         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10418         * sysdeps/sparc/Versions: Removed.
10419         * sysdeps/i386/i686/Versions : Removed.
10420         * sysdeps/x86_64/Versions: Removed.
10421         * configure.in: Define HAVE_PROTECTED if .protected is available.
10422         * config.h.in: Add entry for HAVE_PROTECTED.
10424 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
10426         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
10427         code in struct _rtld_global.  Export this struct, remove all
10428         exports for the signal variables.
10429         * sysdeps/arm/dl-machine: Likewise.
10430         * sysdeps/generic/dl-origin: Likewise.
10431         * sysdeps/generic/dl-sysdep: Likewise.
10432         * sysdeps/generic/dl-cache: Likewise.
10433         * sysdeps/hppa/dl-fptr: Likewise.
10434         * sysdeps/hppa/dl-machine: Likewise.
10435         * sysdeps/cris/dl-machine: Likewise.
10436         * sysdeps/i386/dl-machine: Likewise.
10437         * sysdeps/ia64/dl-machine: Likewise.
10438         * sysdeps/m68k/dl-machine: Likewise.
10439         * sysdeps/mach/hurd/dl-sysdep: Likewise.
10440         * sysdeps/mips/mips64/dl-machine: Likewise.
10441         * sysdeps/mips/dl-machine: Likewise.
10442         * sysdeps/powerpc/elf/libc-start: Likewise.
10443         * sysdeps/powerpc/dl-machine: Likewise.
10444         * sysdeps/powerpc/dl-start: Likewise.
10445         * sysdeps/sparc/sparc32/dl-machine: Likewise.
10446         * sysdeps/sparc/sparc64/dl-machine: Likewise.
10447         * sysdeps/sh/dl-machine: Likewise.
10448         * sysdeps/s390/s390-32/dl-machine: Likewise.
10449         * sysdeps/s390/s390-64/dl-machine: Likewise.
10450         * sysdeps/unix/sysv/aix/libc-start: Likewise.
10451         * sysdeps/unix/sysv/aix/start-libc: Likewise.
10452         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
10453         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
10454         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
10455         * sysdeps/x86_64/dl-machine: Likewise.
10457 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
10459         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
10460         are too high.
10462 2002-01-31  Andreas Schwab  <schwab@suse.de>
10464         * sysdeps/posix/readv.c: Check for ssize_t overflow.
10466 2002-01-31  Andreas Schwab  <schwab@suse.de>
10468         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
10469         reference to _dl_pagesize.
10471 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
10473         * Versions.def [ld]: Add GLIBC_2.3.
10474         * elf/dl-addr.c: Move global variables for SHARED code in struct
10475         _rtld_global.  Export this struct, remove all exports for the
10476         signal variables.
10477         * elf/dl-close.c: Likewise.
10478         * elf/dl-conflict.c: Likewise.
10479         * elf/dl-debug.c: Likewise.
10480         * elf/dl-deps.c: Likewise.
10481         * elf/dl-dst.h: Likewise.
10482         * elf/dl-error.c: Likewise.
10483         * elf/dl-fini.c: Likewise.
10484         * elf/dl-init.c: Likewise.
10485         * elf/dl-iteratephdr.c: Likewise.
10486         * elf/dl-libc.c: Likewise.
10487         * elf/dl-load.c: Likewise.
10488         * elf/dl-lookup.c: Likewise.
10489         * elf/dl-minimal.c: Likewise.
10490         * elf/dl-object.c: Likewise.
10491         * elf/dl-open.c: Likewise.
10492         * elf/dl-profile.c: Likewise.
10493         * elf/dl-profstub.c: Likewise.
10494         * elf/dl-reloc.c: Likewise.
10495         * elf/dl-runtime.c: Likewise.
10496         * elf/dl-support.c: Likewise.
10497         * elf/dl-sym.c: Likewise.
10498         * elf/dl-version.c: Likewise.
10499         * elf/do-lookup.h: Likewise.
10500         * elf/do-rel.h: Likewise.
10501         * elf/dynamic-link.h: Likewise.
10502         * elf/rtld.c: Likewise.
10503         * sysdeps/generic/dl-cache.c: Likewise.
10504         * sysdeps/generic/dl-sysdep.c: Likewise.
10505         * sysdeps/generic/ldsodefs.h: Likewise.
10506         * sysdeps/generic/libc-start.c: Likewise.
10507         * sysdeps/i386/dl-machine.h: Likewise.
10508         * sysdeps/ia64/dl-fptr.c: Likewise.
10509         * sysdeps/ia64/dl-machine.h: Likewise.
10510         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
10511         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10512         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
10513         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
10514         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
10515         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
10516         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
10517         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
10519 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10521         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
10522         to avoid warning
10523         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
10525         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
10526         SHARED version.
10527         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
10529         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
10531 2002-01-29  Ben Collins  <bcollins@debian.org>
10533         * string/bits/string2.h (__mempcpy): Protect size arg for
10534         addition when using __builtin_memcpy.
10536 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
10538         * stdlib/Makefile (tests): Add tst-qsort.
10539         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
10541         * manual/signal.texi (Process Signal Mask): Document that
10542         pthread_sigmask, not sigprocmask, must be used in MT programs.
10543         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
10545         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
10546         found.
10547         * misc/Makefile (tests): Add tst-hsearch.
10548         * misc/tst-hsearch.c: New file.
10550 2002-01-18  Wolfram Gloger  <wg@malloc.de>
10552         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
10553         * malloc/malloc.h: Likewise.
10554         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
10555         * malloc/arena.c: New file.
10556         * malloc/hooks.c: New file.
10557         * malloc/tst-mallocstate.c: New file.
10558         * malloc/Makefile: Add new testcase tst-mallocstate.
10559         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
10561 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10563         * stdlib/msort.c: Remove last patch.  The optimization violates the
10564         same rule which qsort.c had problems with.
10566 2002-01-27  Paul Eggert  <eggert@twinsun.com>
10568         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
10569         to a pivot element that lies outside the array to be sorted, as
10570         ISO C99 requires that the comparison function be called only with
10571         addresses of array elements [PR libc/2880].
10573 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10575         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
10576         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
10578         * timezone/asia: Update from tzdata2002b.
10579         * timezone/australasia: Likewise.
10580         * timezone/backward: Likewise.
10581         * timezone/europe: Likewise.
10582         * timezone/leapseconds: Likewise.
10583         * timezone/iso3166.tab: Likewise.
10584         * timezone/zone.tab: Likewise.
10586 2002-01-23  Richard Henderson  <rth@redhat.com>
10588         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
10590 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
10592         * string/strxfrm.c: Allocate one more byte for rulearr and clear
10593         this element [PR libc/2855].
10595         * string/strcoll.c: Handle zero-length arguments specially
10596         [PR libc/2856].
10598 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
10600         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
10601         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
10602         short lengths and constant src.
10603         (strcpy): Don't optimize for gcc 3.0+.
10604         (__stpcpy): For gcc 3.0+, don't use
10605         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
10606         for short string literal src.
10608 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10610         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
10611         Set for arm, too.
10613 2001-01-22  Paul Eggert  <eggert@twinsun.com>
10615         * manual/llio.texi (Linked Channels, Cleaning Streams):
10616         Make it clearer that a just-opened input stream might need cleaning.
10618 2002-01-21  H.J. Lu  <hjl@gnu.org>
10620         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10621         Don't use label at end of compound statement.
10623 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
10625         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
10626         Remove test for negative integer arg; sin_pi does it correctly.
10628 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
10630         * nscd/Makefile (distribute): Filter out xmalloc.c.
10632 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
10634         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
10635         Set offset if read end wasn't the buffer end.
10636         (_IO_file_seekoff_mmap): New function.
10637         (_IO_file_xsgetn_mmap): New function.
10638         (_IO_file_jumps_mmap): Use the two new functions.
10639         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
10640         != end buffer.
10641         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
10642         _IO_file_underflow_mmap.
10643         * libio/iofopen.c: Don't position file descriptor at end of file.
10644         * libio/tst-widetext.c: Improve error messages.
10645         * stdio-common/tst-rndseek.c: Likewise.
10647 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
10649         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
10650         end of enum for !_GNU_SOURCE.
10651         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
10652         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
10653         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
10654         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
10655         values unless _GNU_SOURCE.
10657         * iconvdata/tcvn5712-1.c: Minor cleanups.
10659 2002-01-18  Andreas Schwab  <schwab@suse.de>
10661         * sysdeps/unix/sysv/linux/configure.in
10662         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
10664 2002-01-16  Roger Sayle  <roger@eyesopen.com>
10666         * stdlib/msort.c (msort_with_tmp): Replace implementation with
10667         more efficient "Towers of Hanoi" mergesort.
10668         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
10669         for generic, sizeof(int) and sizeof(long) variants respectively.
10671 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
10673         * manual/syslog.texi (openlog): Describe possible problems with
10674         first parameter.
10675         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10677         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
10678         * nscd/connections.c (begin_drop_privileges): New function.
10679         (finish_drop_privileges): New function.
10680         (nscd_init): Call the new functions which also install all groups
10681         for the server user.
10682         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
10683         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
10685 2002-01-17  H.J. Lu  <hjl@gnu.org>
10687         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
10688         `const' from `got'.
10690 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10692         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
10693         instructions for pointer operations.
10694         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
10696 2002-01-17  Andreas Jaeger  <aj@suse.de>
10698         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
10699         __uint128_t build-in.
10701         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
10702         PowerPC, sync with 2.2 branch.
10704 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10706         * posix/getconf.c: Update copyright year.
10707         * nss/getent.c: Likewise.
10708         * nscd/nscd_nischeck.c: Likewise.
10709         * iconv/iconvconfig.c: Likewise.
10710         * iconv/iconv_prog.c: Likewise.
10711         * elf/ldconfig.c: Likewise.
10712         * catgets/gencat.c: Likewise.
10713         * csu/version.c: Likewise.
10714         * elf/ldd.bash.in: Likewise.
10715         * elf/sprof.c (print_version): Likewise.
10716         * locale/programs/locale.c: Likewise.
10717         * locale/programs/localedef.c: Likewise.
10718         * nscd/nscd.c (print_version): Likewise.
10719         * debug/xtrace.sh: Likewise.
10720         * malloc/memusage.sh: Likewise.
10721         * malloc/mtrace.pl: Likewise.
10723 2002-01-16  Andreas Schwab  <schwab@suse.de>
10725         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
10726         reliably remove "-ia64" from rtld name.
10728 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
10730         * iconvdata/gb18030.c: Bug fixes and support for more characters.
10731         Patch by Yu Shao <yshao@redhat.com>.
10733 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10735         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
10736         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
10737         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
10739 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10741         * sysdeps/s390/fpu/libm-test-ulps: Update.
10743 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
10745         * elf/elf.h: Update x86 relocations.
10747 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10749         * locale/programs/charmap.c (new_width): Check whether byte
10750         sequences for both ends of range have the same length.
10752 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10754         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
10756 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
10758         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
10759         string literals.
10760         (__full_ieee754_sqrt): Add __attribute_used__.
10762 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
10764         * sysdeps/generic/group_member.c (__group_member): Also check
10765         groups[0] [PR libc/2781].
10767 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
10769         * Makefile (distribute): Add scripts/cpp.
10770         * elf/Makefile (distribute): Add reldep6mod[01234].c,
10771         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
10772         unwind-dw2-fde.h, and dwarf2.h.
10773         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
10774         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
10775         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
10776         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
10778 2002-01-07  Roland McGrath  <roland@frob.com>
10780         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
10781         volatile on type of ARGC so the compiler doesn't get clever.
10783 2002-01-07  Andreas Jaeger  <aj@suse.de>
10785         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
10786         * sysdeps/i386/bits/byteswap.h: Likewise.
10787         * sysdeps/ia64/bits/byteswap.h: Likewise.
10788         * sysdeps/m68k/bits/byteswap.h: Likewise.
10789         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
10790         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
10792 2002-01-02  Bruno Haible  <bruno@clisp.org>
10794         * intl/plural.y: Fix %expect count.
10796 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10798         * elf/Makefile (routines, shared-only-routines): Add
10799         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
10800         * elf/elf.h (PT_GNU_EH_FRAME): Define.
10801         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
10802         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
10803         Optimize if .eh_frame section contains no FDEs.
10804         (__register_frame, __deregister_frame_info_bases,
10805         __deregister_frame): Likewise.
10806         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
10807         DW_CFA_restore handling.
10809 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
10811         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
10813         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
10814         for x < 0.25 and restore original range reduction method.
10815         (__ieee754_lgammal_r): Make sure signgam is set before returning.
10817 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
10819         * libio/fileops.c (_IO_file_underflow_mmap): New function.
10820         (_IO_file_close_mmap): New function.
10821         (_IO_file_jumps_mmap): New variable.
10822         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
10823         trying to convert rest of byte buffer.
10824         (_IO_wfile_underflow_mmap): New function.
10825         (_IO_wfile_jumps_mmap): New variable.
10826         * libio/iofopen.c (__fopen_maybe_mmap): New function.
10827         (__fopen_internal): New function.  Split out from _IO_new_fopen.
10828         (_IO_new_fopen): Call __fopen_internal.
10829         * libio/iofopen64.c: Just call __fopen_internal.
10830         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
10831         successfully.
10832         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
10833         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
10834         _IO_file_close_mmap.
10836         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
10837         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
10839         * stdio-common/Makefile (tests): Add tst-rndseek.
10840         * stdio-common/tst-rndseek.c: New file.
10842 2002-01-05  Roland McGrath  <roland@frob.com>
10844         * config.h.in (HAVE_MIG_RETCODE): New #undef.
10845         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
10846         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
10847         * sysdeps/mach/hurd/configure: Regenerated.
10849 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
10851         * elf/elf.h: Add more TLS definitions.
10853 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
10855         * include/features.h (__GLIBC_MINOR__): Bump to 3.
10857 2002-01-02  Roland McGrath  <roland@frob.com>
10859         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
10860         __sigisemptyset.  Don't use MASK uninitialized.
10862         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
10863         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
10864         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
10865         __sigdelset, __sigaddset, __sigorset.
10867         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
10868         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
10870         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
10871         _hurd_ports is null.
10873         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
10874         for old CMU and new OSF Mach interface flavors.
10875         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
10876         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10878         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
10880         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
10881         Pass extra arguments to task_create for OSF variant.
10882         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
10884         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
10885         conditional on [HAVE_AUX_VECTOR].
10887         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
10888         mach_msg_timeout_t as type of final argument.
10890         * hurd/privports.c (__get_privileged_ports):
10891         Change host_priv_t to mach_port_t in argument type.
10892         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
10893         Update decls.
10895         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
10896         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
10897         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
10898         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
10899         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
10900         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
10902 2002-01-01  Roland McGrath  <roland@frob.com>
10904         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
10906 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
10908         * include/stdlib.h: Define inlines for the _l variants of the strto*
10909         functions.
10911 2002-01-01  Roland McGrath  <roland@frob.com>
10913         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10915         * mach/Machrules (MIG): Set CPP as well as CC.
10917 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
10919         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
10920         locale to parse /proc/loadavg [PR libc/2760].
10922 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
10924         * elf/dl-conflict.c: Include sys/param.h.
10925         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
10926         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
10927         warning.
10928         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
10929         literals to avoid warnings.
10931 2001-12-31  Andreas Jaeger  <aj@suse.de>
10933         * configure.in: Don't check for gsed since we do not use it anywhere.
10935 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10937         * io/fts.c: Update from BSD to fix memory leaks.
10939 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
10941         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
10942         * elf/chroot_canon.c: Likewise.
10943         * elf/dl-object.c: Likewise.
10944         * iconv/iconv_charmap.c: Likewise.
10945         * iconv/iconv_prog.c: Likewise.
10946         * libio/iogetdelim.c: Likewise.
10947         * locale/lc-time.c: Likewise.
10948         * stdlib/canonicalize.c: Likewise.
10949         * sunrpc/svc.c: Likewise.
10950         * sysdeps/generic/glob.c: Likewise.
10952 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10954         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
10955         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
10956         remove high order bit from the program counter.
10957         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
10959 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10961         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
10962         unnecessary code and add missing reloc types.
10963         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
10964         case for reloc type R_390_NONE.
10966 2001-12-28  Andreas Jaeger  <aj@suse.de>
10968         * io/bug-ftw3.c: Include string.h for prototypes.
10970         * crypt/md5test.c (main): Remove unused variable.
10972         * dlfcn/modstatic.c: Add prototype to avoid warning.
10974 2001-12-26  Roland McGrath  <roland@frob.com>
10976         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
10977         check only (SS->pending & MASK) for the signal to return.
10978         From Jeroen Dekkers <jeroen@dekkers.cx>.
10980 2001-12-22  Roland McGrath  <roland@frob.com>
10982         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
10983         Use preprocessor #if conditionals instead of `if' to avoid
10984         warnings about divide by zero in dead code.
10986         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
10987         _hurd_port_init, and __hurd_self_sigstate.
10989         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
10991 2001-12-21  Andreas Jaeger  <aj@suse.de>
10993         * elf/dblloadmod1.c: Add prototype to avoid warning.
10994         * elf/dblloadmod2.c: Likewise.
10995         * elf/dblloadmod3.c: Likewise.
10996         * elf/reldepmod5.c: Likewise.
10997         * elf/reldepmod6.c: Likewise.
10999         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
11000         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
11001         used on all architectures.
11003         * sunrpc/svc_tcp.c: Add noreturn attribute for
11004         svctcp_rendezvous_abort.
11005         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
11007         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
11008         to avoid warning.
11010 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
11012         * manual/llio.texi (aio_fsync): Fix a typo.
11013         Patch by Tammy Fox <tfox@redhat.com>.
11015 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
11017         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
11018         stack bias from child stack pointer before passing it to clone syscall.
11020 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
11022         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
11023         _SC_TZNAME_MAX.
11024         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
11025         Reported by Thorsten Kukuk <kukuk@suse.de>.
11027         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
11028         add some casts.
11030         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
11032 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
11034         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
11035         conforming: return EBADF if file descriptor is invalid and EINVAL
11036         if file descriptor is no valid tty.
11037         * login/tst-grantpt.c: New file.
11038         * login/Makefile (tests): Add tst-grantpt.
11040 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
11042         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
11043         different than implemented in last patch.
11044         * io/bug-ftw3.c: Adjust test for changed handling of
11045         inaccessibility of toplevel dir.
11047 2001-12-16  Roland McGrath  <roland@frob.com>
11049         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
11050         * grp/initgroups.c (internal_getgrouplist): Likewise.
11052         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
11053         `default:' to silence new GCC warning.
11054         Rewrite cast of lvalue to silence new GCC warning.
11056         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
11058         * sysdeps/mach/hurd/spawni.c: New file, by me with a
11059         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
11061 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
11063         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
11064         Patch by Stephen R. van den Berg.
11066         * crypt/md5.h: Define md5_uintptr.
11068 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
11070         * libio/tst_swprintf.c (main): Add test for string argument with
11071         zero precision.
11072         * stdio-common/Makefile (tests): Add tst-sprintf.
11073         * stdio-common/tst-sprintf.c: New file.
11075 2001-12-13  Andreas Schwab  <schwab@suse.de>
11077         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
11078         zero precision with wide character string format.
11080 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
11082         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
11083         but have a user supplied buffer, return the empty buffer, not NULL.
11085 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
11087         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
11088         Patch by Eric Sharkey <sharkey@netrics.com>.
11090         * crypt/md5test.c (main): Add test for multiple calls to
11091         __md5_process_bytes to itererate over input string.
11093 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
11095         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
11096         from __nis_findfastest.  Take timeout value from parameter.
11097         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
11098         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
11099         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
11101 2001-12-12  Andreas Jaeger  <aj@suse.de>
11103         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
11104         combreloc test so that it works in this case.
11106         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
11108 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
11110         * sysdeps/sh/Makefile: New file.
11111         * sysdeps/sh/_mcount.S: New file.
11112         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
11113         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
11115 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
11117         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
11118         limitation [PR libc/2564].
11120 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
11122         * elf/Makefile (dl-routines): Add conflict.
11123         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
11124         (ld.so): Add _begin local symbol.
11125         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
11126         Define.
11127         * elf/dl-deps.c (_dl_build_local_scope): New function.
11128         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
11129         of all libraries.
11130         * elf/do-rel.h (VALIDX): Define.
11131         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
11132         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
11133         can be skipped.
11134         * elf/dl-conflict.c: New file.
11135         * elf/dl-lookup.c (_dl_debug_bindings): New function.
11136         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
11137         non-NULL.
11138         (_dl_lookup_symbol_skip): Likewise.
11139         (_dl_lookup_versioned_symbol): Likewise.
11140         (_dl_lookup_versioned_symbol_skip): Likewise.
11141         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
11142         define to ElfW(Rel).
11143         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
11144         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
11145         ranges.
11146         Don't adjust address dynamic tags if l_addr is 0.
11147         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
11148         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
11149         (VALIDX, ADDRIDX): Define.
11150         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
11151         (dl_main): Print library list for LD_TRACE_PRELINKING.
11152         If prelinking information can be used, skip relocating libraries and
11153         call _dl_resolve_conflicts instead.
11154         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
11155         * elf/dl-load.c (_dl_map_object): Don't create fake libs
11156         if LD_TRACE_PRELINKING.
11157         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
11158         + DT_ADDRNUM.
11159         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
11160         (DL_DEBUG_PRELINK): Define.
11161         (_dl_resolve_conflicts): Add prototype.
11163         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
11164         .plt for prelinked libraries where prelinking info cannot be used.
11165         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
11166         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
11167         * sysdeps/arm/bits/link.h: New file.
11168         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
11169         content of .got[1].
11170         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
11171         (ELF_MACHINE_PLT_REL): Define.
11172         (elf_machine_rela, elf_machine_rela_relative): New functions.
11173         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
11174         of adjusting it if prelinked and prelinking cannot be used.
11175         * sysdeps/i386/bits/link.h: New file.
11176         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
11177         content of .got[1].
11178         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
11179         (ELF_MACHINE_PLT_REL): Define.
11180         (elf_machine_rela, elf_machine_rela_relative): New functions.
11181         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
11182         of adjusting it if prelinked and prelinking cannot be used.
11183         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
11184         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
11185         to find out map for R_PPC_JMP_SLOT relocs.
11186         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
11187         (OPCODE_BA): Define.
11188         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
11189         libraries where prelinking info cannot be used.
11190         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
11191         (elf_machine_fixup_plt): Call sparc_fixup_plt.
11192         (elf_machine_rela): Set value to 0 if relocating conflicts.
11193         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
11194         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
11195         (sparc64_fixup_plt): Fix a typo.
11196         (elf_machine_rela): Set value to 0 if relocating conflicts.
11197         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
11198         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
11199         libraries where prelinking info cannot be used.
11200         * sysdeps/sh/bits/link.h: New file.
11201         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
11202         content of .got[1].
11203         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
11204         of adjusting it if prelinked and prelinking cannot be used.
11205         * sysdeps/s390/s390-32/bits/link.h: New file.
11206         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
11207         Save original content of .got[1].
11208         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
11209         of adjusting it if prelinked and prelinking cannot be used.
11210         * sysdeps/s390/s390-64/bits/link.h: New file.
11211         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
11212         Save original content of .got[1].
11213         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
11214         of adjusting it if prelinked and prelinking cannot be used.
11215         * sysdeps/x86_64/bits/link.h: New file.
11216         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
11217         Save original content of .got[1].
11218         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
11219         of adjusting it if prelinked and prelinking cannot be used.
11221 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
11223         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
11224         where appropriate instead of numbers.  Little optimizations.
11226 2001-12-10  Roland McGrath  <roland@frob.com>
11228         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
11229         set it.
11231         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
11232         set to GLIBC_2.2.5, not GLIBC_2.2.4.
11234         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
11235         Fix conditionals so this is set by default for stdio and not for libio.
11236         * sysdeps/mach/hurd/configure: Regenerated.
11238 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
11240         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
11242 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
11244         * io/Makefile (tests): Add bug-ftw3.
11245         * io/bug-ftw3.c: New file.
11247         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
11248         matches and GLOB_NOCHECK is set.
11249         * posix/globtest.sh: Correct expected result for NOCHECK test.
11251         * po/ca.po: Update from translation team.
11253 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
11255         Implement transliteration of characters in strings of the locale
11256         definitions.
11257         * locale/programs/linereader.c: Adjust for additional parameter to
11258         lr_token.
11259         (get_string): If character <Uxxxx> is not found try to transliterate
11260         it.
11261         * locale/programs/ld-ctype.c: Adjust for additional parameter to
11262         lr_token.  Add const to charmap parameter of all functions.
11263         (find_translit, find_translit2): New functions.
11264         * locale/programs/charmap.c: Adjust for additional parameter to
11265         lr_token.
11266         * locale/programs/repertoire.c: Likewise.
11267         * locale/programs/linereader.h: Likewise.
11268         * locale/programs/ld-address.c: Likewise.  Add const to charmap
11269         parameter of all functions.
11270         * locale/programs/ld-collate.c: Likewise.
11271         * locale/programs/ld-identification.c: Likewise.
11272         * locale/programs/ld-measurement.c: Likewise.
11273         * locale/programs/ld-messages.c: Likewise.
11274         * locale/programs/ld-monetary.c: Likewise.
11275         * locale/programs/ld-name.c: Likewise.
11276         * locale/programs/ld-numeric.c: Likewise.
11277         * locale/programs/ld-paper.c: Likewise.
11278         * locale/programs/ld-paper.c: Likewise.
11279         * locale/programs/ld-telephone.c: Likewise.
11280         * locale/programs/ld-time.c: Likewise.
11281         * locale/programs/locfile.c: Likewise.
11282         * locale/programs/localedef.c: Likewise.
11283         * locale/programs/localedef.h: Likewise.
11284         * locale/programs/locfile.h: Likewise.  Add declaration for
11285         find_translit.
11286         * locale/programs/simple-hash.c: Add const to first parameter of
11287         find_entry, iterate_table, and lookup.
11288         * locale/programs/simple-hash.h: Likewise.
11289         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
11290         instead.
11291         * include/locale.h: Define __LC_LAST.
11292         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
11294 2001-12-07  Geoff Keating  <geoffk@redhat.com>
11296         * sysdeps/powerpc/Dist: Update for recent FP changes.
11297         * sysdeps/powerpc/fpu/Dist: Likewise.
11299 2001-12-07  Andreas Schwab  <schwab@suse.de>
11301         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
11303 2001-12-06  Geoff Keating  <geoffk@redhat.com>
11305         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
11306         save/restore functions here.
11307         (libm-support): Don't define these functions here.
11308         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
11309         functions here.
11310         * sysdeps/powerpc/fe_nomask.c: Move to...
11311         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
11312         * sysdeps/powerpc/fprrest.S: Move to...
11313         * sysdeps/powerpc/fpu/fprrest.S: ... here.
11314         * sysdeps/powerpc/fprsave.S: Move to...
11315         * sysdeps/powerpc/fpu/fprsave.S: ... here.
11317 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
11319         * sysdeps/unix/sysv/linux/opensock.c: New file.
11321 2001-12-06  Geoff Keating  <geoffk@redhat.com>
11323         * config.make.in (with-fp): Define from configure.
11324         * configure.in: Substitute with_fp.
11325         * configure: Regenerate.
11326         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
11327         specified, and don't change FPU environment.
11329 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
11331         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
11332         * assert/assert.c: Check result of __asprintf call and don't use
11333         string if it failed.
11334         * assert/assert-perr.c: Likewise.
11335         * inet/rcmd.c: Likewise.
11336         * locale/programs/localedef.c (main): Check result of
11337         construct_output_path and exit if it failed.
11338         (construct_output_path): Check result of asprintf and mkdir calls and
11339         fail if they failed.
11340         * posix/getopt.c: Check result of __asprintf calls and fail if
11341         they failed.
11342         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
11344 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11346         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
11347         patch.
11348         * sysdeps/generic/strncase.c: Likewise.
11349         * string/tester.c: Add tests for strcasecmp and strncasecmp.
11351 2001-12-05  Geoff Keating  <geoffk@redhat.com>
11353         * scripts/cpp: Test the exit status from 'type', not 'awk'.
11355         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
11356         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
11357         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
11358         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
11359         * sysdeps/powerpc/fclrexcpt.c: Move to...
11360         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
11361         * sysdeps/powerpc/fpu_control.h: Move to...
11362         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
11364 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11366         * iconvdata/ibm1129.h: Remove duplicate mappings.
11367         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
11368         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
11369         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11371         * timezone/zic.c: Fix handling of turnaround times.
11372         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
11374 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
11376         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
11377         overflow problem.
11379 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
11381         * posix/regex.c: For use outside glibc defined bounded pointer
11382         macros here.  Patch by Jim Meyering <jim@meyering.net>.
11384         * iconvdata/Makefile (modules): Add TCVN5712-1.
11385         * iconvdata/TESTS: Add TCVN5712-1.
11386         * iconvdata/gconv-modules: Likewise.
11387         * iconvdata/tcvn5712-1.c: New file.
11388         * iconvdata/testdata/TCVN-5712: New file.
11389         * iconvdata/testdata/TCVN-5712..UTF8: New file.
11391 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
11393         * iconvdata/cp1258.c: Optimize conversion from UCS4.
11395 2001-12-02  Roland McGrath  <roland@frob.com>
11397         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
11399         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
11400         Reported by Jeff Bailey <jbailey@nisa.net>.
11402         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
11403         Reported by Jeff Bailey <jbailey@nisa.net>.
11405         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
11406         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
11407         Reported by Jeff Bailey <jbailey@nisa.net>.
11409 2001-12-01  Roland McGrath  <roland@frob.com>
11411         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
11412         missing backslash in test arguments.
11413         * sysdeps/mach/hurd/configure: Regenerated.
11415 2001-11-26  Roland McGrath  <roland@frob.com>
11417         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
11418         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
11420 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
11422         * iconvdata/Makefile (modules): Add ARMSCII-8.
11423         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
11424         * iconvdata/armscii-8.c: New file.
11426 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
11428         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
11429         don't match, fix {{a,b},c} globbing, clean up.
11430         Patch by Flavio Veloso <flaviovs@magnux.com>.
11431         * posix/globtest.sh: Add new tests.
11433 2001-11-29  Andreas Jaeger  <aj@suse.de>
11435         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
11436         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
11438         * sysdeps/generic/abort.c: Include libioP.h for
11439         _IO_flush_all_lockp prototype.
11441 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
11443         * posix/regex.h: Define __restrict_arr correctly.
11445 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11447         * iconvdata/ibm1163.c: New file.
11448         * iconvdata/ibm1163.h: New file.
11449         * iconvdata/ibm1164.c: New file.
11450         * iconvdata/ibm1164.h: New file.
11451         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
11452         * iconvdata/Makefile: Likewise.
11453         * iconvdata/testdata/IBM1163: New file.
11454         * iconvdata/testdata/IBM1163..UTF8: New file.
11455         * iconvdata/testdata/IBM1164: New file.
11456         * iconvdata/testdata/IBM1164..UTF8: New file.
11457         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
11459         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
11460         * iconvdata/ibm1124.h: Likewise.
11461         * iconvdata/ibm1132.h: Likewise.
11462         * iconvdata/ibm1133.h: Likewise.
11463         * iconvdata/ibm1160.h: Likewise.
11464         * iconvdata/ibm1161.h: Likewise.
11465         * iconvdata/ibm1162.h: Likewise.
11466         * iconvdata/ibm856.h: Likewise.
11467         * iconvdata/ibm922.h: Likewise.
11468         * iconvdata/ibm930.h: Likewise.
11469         * iconvdata/ibm932.h: Likewise.
11470         * iconvdata/ibm933.h: Likewise.
11471         * iconvdata/ibm935.h: Likewise.
11472         * iconvdata/ibm937.h: Likewise.
11473         * iconvdata/ibm939.h: Likewise.
11474         * iconvdata/ibm943.h: Likewise.
11475         * iconvdata/ibm930.c: Pretty printing.
11476         * iconvdata/ibm937.c: Avoid access accross array boundary.
11478         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
11479         the current locale's codeset.
11480         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
11481         empty input string.
11482         * iconv/iconv_prog.c: Pass empty strings as default value for to-
11483         and from-charset.  Don't determine locale's charset here.
11485         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
11486         as the old _IO_flush_all but lock only if parameter is nonzero.
11487         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
11488         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
11489         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
11490         if libio is used [PR libc/2575].
11492 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
11494         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
11495         __signbitl): Only define for ISO C99.
11497 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11499         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
11500         herrnop to NETDB_INTERNAL if we run out of buffer space.
11502 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
11504         * nss/nss_files/files-XXX.c (internal_getent): Correct input
11505         overflow test for platforms with signed char.
11506         Reported by Andrew Haley <aph@cambridge.redhat.com>.
11508 2001-11-28  Bruno Haible  <bruno@clisp.org>
11510         * locale/programs/simple-hash.c (lookup_2): Remove function.
11511         (insert_entry_2): Call lookup instead of lookup_2.
11513 2001-03-04  Bruno Haible  <bruno@clisp.org>
11515         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
11517 2001-10-31  Bruno Haible  <bruno@clisp.org>
11519         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
11521 2001-03-21  Bruno Haible  <bruno@clisp.org>
11523         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
11524         chokes on empty macro arguments.
11525         * intl/plural.y: Add #pragma for alloca on AIX 3.
11527 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11529         * intl/dcigettext.c (guess_category_value): Only implement for
11530         glibc.  Otherwise rely on function _nl_locale_name which isn't
11531         present in the glibc sources.
11533 2001-09-24  Bruno Haible  <bruno@clisp.org>
11535         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
11536         transliteration when building on a glibc system but outside glibc.
11538 2001-09-22  Bruno Haible  <bruno@clisp.org>
11540         * intl/plural-eval.c: New file, extracted from dcigettext.c.
11541         * intl/dcigettext.c (plural_eval): Remove function, moved to
11542         intl/plural-eval.c.
11543         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
11544         Include plural-eval.c.
11546 2001-09-22  Bruno Haible  <bruno@clisp.org>
11548         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
11549         don't start with a digit; nplurals must be positive.
11551 2001-09-02  Bruno Haible  <bruno@clisp.org>
11553         * intl/plural-exp.h: New file, extracted from gettextP.h.
11554         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
11555         * intl/gettextP.h (struct expression, struct parse_args,
11556         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
11557         * intl/loadmsgcat.c: Include plural-exp.h.
11558         (PLURAL_PARSE): Move macro to plural-exp.h.
11559         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
11560         plural-exp.c.
11561         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
11562         EXTRACT_PLURAL_EXPRESSION.
11563         (_nl_unload_domain): Update.
11564         * intl/dcigettext.c: Include plural-exp.h.
11565         * intl/plural.y: Include plural-exp.h, not gettextP.h.
11566         (FREE_EXPRESSION): Move macro to plural-exp.h.
11567         * intl/Makefile (routines): Add plural-exp.
11568         (distribute): Add plural-exp.h.
11570 2001-07-28  Bruno Haible  <bruno@clisp.org>
11572         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
11573         isdigit, tolower argument to 'unsigned char'.
11574         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
11575         'unsigned char'.
11576         * intl/localealias.c (read_alias_file): Cast isspace argument to
11577         'unsigned char'.
11579 2001-10-20  Bruno Haible  <bruno@clisp.org>
11581         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
11582         anyway.)
11583         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
11584         with the variable 'index' in plural_lookup.
11585         * intl/l10nflist.c (strchr): Likewise.
11586         * intl/localealias.c (strchr): Likewise.
11588         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
11589         * intl/bindtextdom.c: Likewise.
11590         * intl/dcigettext.c: Likewise.
11591         * intl/dgettext.c: Likewise.
11592         * intl/dngettext.c: Likewise.
11593         * intl/explodename.c: Likewise.
11594         * intl/finddomain.c: Likewise.
11595         * intl/gettext.c: Likewise.
11596         * intl/l10nflist.c: Likewise.
11597         * intl/loadmsgcat.c: Likewise.
11598         * intl/localealias.c: Likewise.
11599         * intl/ngettext.c: Likewise.
11600         * intl/textdomain.c: Likewise.
11601         * intl/gettext.h: Assume <limits.h> exists.
11603 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
11605         * stdio-common/Makefile (tests): Add scanf11.
11606         * stdio-common/scanf11.c: New file.
11608 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11610         * version.h (RELEASE): Define as development.
11611         (VERSION): Set to 2.2.90.
11613 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
11615         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
11616         * nis/nss_nis/nis-grp.c: Likewise.
11617         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11619         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
11620         * nis/nss_nis/nis-pwd.c: Likewise.
11621         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11623         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
11624         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11625         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11627         * nscd/grpcache.c: Use strtoul instead of atol.
11628         * nscd/pwdcache.c: Likewise.
11629         * nss/getent.c: Likewise.
11631 2001-11-27  Paul Eggert  <eggert@twinsun.com>
11633         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11634         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11636 2001-11-19  Bruno Haible  <bruno@clisp.org>
11638         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
11639         90%.
11640         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
11641         improves the quality of the hash function, especially for short
11642         strings.
11644 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
11646         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
11647         are found call conv_error and not input_error [PR libc/2669].
11649         * math/bits/mathcalls.h: Mark ceil and floor as const.
11650         Reported by David Mosberger.
11652 2001-11-21  Jim Meyering  <meyering@lucent.com>
11654         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
11655         Define to be __-prefixed.
11656         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
11658 2001-11-26  Andreas Jaeger  <aj@suse.de>
11660         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
11661         avoid warning.
11663 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
11665         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
11666         initialization.
11668         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
11669         unused variables.  Fix threshold for returning 1.0.
11671         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
11672         argument.
11674         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
11675         remove unused variables.
11677         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
11679         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
11680         include local math header files.
11682 2001-11-22  Andreas Jaeger  <aj@suse.de>
11684         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
11685         avoid warning.
11687 2001-11-21  Andreas Jaeger  <aj@suse.de>
11689         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
11691         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
11692         sys/debugreg.h
11694 2001-11-15  Andreas Jaeger  <aj@suse.de>
11696         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
11697         compilers that support it.
11699         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
11700         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
11701         * stdlib/stdlib.h: Likewise.
11703 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
11705         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
11706         statement with gotos.
11707         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
11709 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
11711         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
11713 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
11715         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
11717 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
11718             H.J. Lu  <hjl@gnu.org>
11720         * Versions.def (libc): Add GCC_3.0.
11721         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
11722         if gcc supports this flag.
11723         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
11724         (gcc3): Allow glibc to be compiled with gcc 3.x.
11725         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
11726         * config.make.in (static-libgcc, unwind-find-fde): Add.
11727         * Makerules (build-shlib-helper, build-module-helper): Use it.
11728         * scripts/versions.awk: Make sure GLIBC_ versions come first.
11729         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
11730         necessary.
11731         (_fini): Call __deregister_frame_info_bases if
11732         __register_frame_info_bases was used to register.
11733         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
11734         for GLIBC_2.0.
11735         (__register_frame_info_bases, __register_frame_info_table_bases,
11736         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
11737         * elf/Makefile (routines): Add unwind-dw2-fde.
11738         (shared-only-routines): Add unwind-dw2-fde.
11739         * sysdeps/alpha/gccframe.h: New file.
11740         * sysdeps/arm/gccframe.h: New file.
11741         * sysdeps/generic/framestate.c: New file.
11742         * sysdeps/generic/dwarf2.h: New file.
11743         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
11744         * sysdeps/generic/unwind-dw2-fde.c: New file.
11745         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
11746         * sysdeps/generic/unwind-dw2-fde.h: New file.
11747         * sysdeps/generic/unwind-dw2.c: New file.
11748         * sysdeps/generic/unwind-pe.h: New file.
11749         * sysdeps/generic/unwind.h: New file.
11750         * sysdeps/hppa/gccframe.h: New file.
11751         * sysdeps/i386/gccframe.h: New file.
11752         * sysdeps/m68k/gccframe.h: New file.
11753         * sysdeps/mips/gccframe.h: New file.
11754         * sysdeps/powerpc/gccframe.h: New file.
11755         * sysdeps/s390/gccframe.h: New file.
11756         * sysdeps/sh/gccframe.h: New file.
11757         * sysdeps/sparc/gccframe.h: New file.
11758         * sysdeps/vax/gccframe.h: New file.
11759         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
11760         Set on all architectures except ia64.
11761         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
11762         for i386.
11763         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
11764         __deregister_frame_info): Move to elf/Versions.
11765         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
11766         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
11767         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
11768         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
11769         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
11770         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
11771         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
11772         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
11773         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
11774         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
11775         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
11776         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
11777         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
11778         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
11779         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
11780         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
11781         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
11782         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
11784 2001-11-15  Jeff Law  <law@redhat.com>
11786         * posix/regex.c (uintptr_t): Do not provide a definition if the
11787         system provided one.
11789 2001-11-13  Roland McGrath  <roland@frob.com>
11791         * stdio-common/tmpfile.c: Moved to ...
11792         * sysdeps/generic/tmpfile.c: ... here.
11793         * sysdeps/mach/hurd/tmpfile.c: New file.
11795         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
11796         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
11797         (fopenport): Define as weak alias.
11799         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
11800         * libio/libioP.h: ... to here.
11802 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
11804         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
11805         program header twice.  Construct list with the needed information.
11807 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
11809         * po/ca.po: Update from translation team.
11811         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
11812         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
11813         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
11814         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11816 2001-11-10  Andreas Jaeger  <aj@suse.de>
11818         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
11819         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11820         Contributed by Stephen L Moshier <moshier@mediaone.net>.
11822 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11824         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
11825         correctly.
11826         * elf/dl-load.c (is_dst): New function.
11827         (_dl_dst_count): Use is_dst to check for DST variable.
11828         (_dl_dst_substitute): Likewise.
11830 2001-11-09  Roland McGrath  <roland@frob.com>
11832         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
11833         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
11834         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
11835         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
11836         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
11837         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
11838         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
11839         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
11840         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
11841         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
11842         * sysdeps/mach/hurd/powerpc/Dist: New file.
11844         * hurd/privports.c (__get_privileged_ports):
11845         Only contact the proc server if necessary for this call.
11846         Suggested by Neal H Walfield <neal@cs.uml.edu>.
11847         Check error return for mach_port_mod_refs.
11849 2001-11-09  Andreas Schwab  <schwab@suse.de>
11851         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
11853 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
11855         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
11856         object is always the last in the list.
11857         (_dl_map_object_from_fd): Delete code to remove from object list
11858         when DF_1_NOOPEN is seen.  This is done in lose.
11860 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
11862         * elf/dl-object.c (_dl_new_object): Various small optimizations.
11864 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
11866         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
11867         HWCAP_CHECK macro code.
11869         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
11870         Now returns MAP_FAILED on error.
11871         * elf/rtld.c: Adjust caller.
11872         * sysdeps/generic/dl-cache.c: Likewise.
11873         * sysdeps/generic/ldsodefs.h: Adjust description.
11875         * elf/dl-version.c (match_symbol): Optimize error handling for size.
11876         (_dl_check_map_versions): Likewise.
11878 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11880         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
11881         _dl_signal_error directly, always use lose.  Set fd to -1 after
11882         file is closed.
11883         (lose): Don't call close if fd == -1.
11885 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
11887         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
11888          Also fix typo @code {mbsinit} to @code{mbsinit}.
11890 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
11892         * elf/dl-profile.c: Replace state variable with simple flag named
11893         running.  Remove commented-out code.
11895         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
11896         (_dl_init_paths): Likewise.
11897         (_dl_map_object_from_fd): Likewise.
11898         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11900 2001-11-06  Roland McGrath  <roland@frob.com>
11902         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
11903         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
11905         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
11906         sysdeps/powerpc/elf/sysdep.h.
11907         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
11909 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11911         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
11912         speed.
11913         (process_envvars): Some more optimizations.
11914         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
11916         * elf/elf.h: Add dynamic tag definitions for prelinking.
11918         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
11919         Rewrite code to remove environment varables for SUID binaries.
11920         Small optimization in LD_PROFILE handling.
11921         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
11922         changes.
11923         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
11925         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
11927         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
11928         strings.  Change type of second parameter.
11929         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
11930         for last change.
11932         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
11934 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11936         * manual/string.texi: Fix typos.
11937         * manual/examples/argp-ex2.c: Likewise.
11939 2001-11-05  Roland McGrath  <roland@frob.com>
11941         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
11942         the more-specific unix/sysv/linux/powerpc file and breaks everything.
11943         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
11944         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
11945         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
11946         here, put under [__ELF__].
11948 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
11950         * manual/charset.texi: Extensive editing work.
11951         * manual/nss.texi: Likewise.
11952         Changes by Dennis Grace <dgrace@us.ibm.com>.
11954 2001-11-04  Roland McGrath  <roland@frob.com>
11956         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
11957         parameter to dir_mkfile.
11959 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
11961         * string/bits/string2.h (__strndup): If n is smaller than len, set
11962         len to n + 1.
11963         * string/tester.c (test_strndup): New function.
11964         (main): Call it.
11966 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
11968         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
11970         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
11971         * scripts/cpp: New file.
11973         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
11974         for rtld_search_dirs content.  Minor optimizations.
11976 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11978         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
11979         avoiding unnecessary duplication.
11981 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
11983         * elf/dl-load.c (_dl_map_object): If library was found using
11984         LD_LIBRARY_PATH, don't try RUNPATH list.
11986 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11988         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
11989         Correct second argument of register_dump call.
11990         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
11991         Likewise.
11993 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11995         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
11996         modules.
11997         * iconvdata/TESTS: Likewise.
11998         * iconvdata/gconv-modules: Likewise.
11999         * iconvdata/ibm1132.c: New file.
12000         * iconvdata/ibm1132.h: New file.
12001         * iconvdata/ibm1133.c: New file.
12002         * iconvdata/ibm1133.h: New file.
12003         * iconvdata/ibm1162.c: New file.
12004         * iconvdata/ibm1162.h: New file.
12005         * iconvdata/testdata/IBM1132: New file.
12006         * iconvdata/testdata/IBM1132..UTF8: New file.
12007         * iconvdata/testdata/IBM1133: New file.
12008         * iconvdata/testdata/IBM1133..UTF8: New file.
12009         * iconvdata/testdata/IBM1162: New file.
12010         * iconvdata/testdata/IBM1162..UTF8: New file.
12011         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
12013         * string/string.h: Fix typo in comment.
12014         * wcsmbs/wchar.h: Likewise.
12016 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
12018         * manual/getopt.texi (getopt_long, getopt_long_only): Include
12019         const in type of longopts parameter.
12021 2001-10-29  Andreas Jaeger  <aj@suse.de>
12023         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
12025 2001-10-29  Kevin Ryde  <user42@zip.com.au>
12027         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
12028         output, clarify `#' behaviour on 0.
12029         (Floating-Point Conversions): Clarify that %g only uses %e when
12030         the exponent would be greater than 1.
12032 2001-10-28  Roland McGrath  <roland@frob.com>
12034         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
12035         * sysdeps/mach/powerpc/machine-sp.h: New file.
12036         * sysdeps/mach/powerpc/sysdep.h: New file.
12037         * sysdeps/mach/powerpc/thread_state.h: New file.
12039         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
12040         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
12041         expect to need the same thing on every platform.
12043         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
12044         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
12046         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
12047         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
12048         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
12049         Move all these assembly-related definitions to ...
12050         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
12052         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
12053         by Peter Bruin <pjbruin@dds.nl>.
12055         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
12056         packing results for a `poll' call.
12058 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
12060         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
12061         correctly.
12062         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
12063         bracket expression.
12065         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12066         nrules value.
12067         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
12069 2001-10-24  H.J. Lu  <hjl@gnu.org>
12071         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
12072         Use __BEGIN_DECLS/__END_DECLS around prototypes.
12073         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
12075 2001-10-21  Jim Meyering  <meyering@lucent.com>
12077         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
12078         this code would end up calling gettext even in packages built
12079         with --disable-nls.
12080         * posix/getopt.c (_): Likewise.
12081         * posix/regex.c (_): Likewise.
12083 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
12085         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
12086         lookup not ip6.int.
12087         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
12088         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
12090 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
12092         * misc/sys/cdefs.h (__attribute_used__): Define.
12093         * elf/rtld.c (_dl_start): Add __attribute_used__.
12094         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
12096 2001-10-25  Andreas Schwab  <schwab@suse.de>
12098         * stdlib/a64l.c: Expect least significant digit first.
12099         * stdlib/l64a.c: Produce least significant digit first.
12100         * stdlib/Makefile (tests): Add test-a64l.
12101         * stdlib/test-a64l.c: New file.
12102         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
12104 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
12106         * po/sk.po: Update from translation team.
12108 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
12110         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
12112 2001-10-18  Andreas Schwab  <schwab@suse.de>
12114         * math/libm-test.inc (print_ulps): Print ulp values rounded to
12115         next whole number.
12116         (print_function_ulps): Likewise.
12117         (print_complex_function_ulps): Likewise.
12118         (print_max_error): Likewise.
12119         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
12121 2001-10-16  Andreas Schwab  <schwab@suse.de>
12123         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
12124         implementation.
12126         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
12127         BSD_SETJMP or BSD__SETJMP is defined, resp.
12128         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
12129         a tail call to __sigsetjmp that would require extending the
12130         caller's frame.
12131         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
12132         * sysdeps/m68k/bsd-setjmp.S: Deleted.
12133         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
12134         Reported by Jes Sorensen <jes@trained-monkey.org>.
12136 2001-10-16  Andreas Jaeger  <aj@suse.de>
12138         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
12139         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
12140         close PR libc/2589.
12142 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
12144         * po/ca.po: New file.  Contributed by the translation team.
12146 2001-10-15  Ralf Baechle  <ralf@gnu.org>
12148         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
12149         a varargs prototype.  Remove dependency from kernel header files.
12151         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
12152         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
12154 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
12156         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
12157         to generate hexadecimal identifier.
12158         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
12160 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
12162         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
12164 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
12166         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
12167         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
12168         Contributed by Stephen L Moshier <moshier@mediaone.net>.
12170         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
12171         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12172         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
12173         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
12174         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
12175         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
12177         * timezone/africa: Update from tzdata2001d.
12178         * timezone/asia: Likewise.
12179         * timezone/australasia: Likewise.
12180         * timezone/backward: Likewise.
12181         * timezone/europe: Likewise.
12182         * timezone/leapseconds: Likewise.
12183         * timezone/northamerica: Likewise.
12184         * timezone/southamerica: Likewise.
12185         * timezone/zone.tab: Likewise.
12187 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12189         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
12190         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
12192 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
12194         * elf/elf.h (PT_TLS): New definition.
12196 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
12198         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
12199         bits/errno.h
12201 2001-10-07  Roland McGrath  <roland@frob.com>
12203         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
12205 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
12207         * elf/elf.h: Add more ELFOSABI_* constants.
12209 2001-10-04  Ben Collins  <bcollins@debian.org>
12211         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
12212         decleration of __need_wchar_t.
12214 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
12216         * string/bits/string2.h (__strsep_g): Add prototype.
12217         (__strsep): Use it.
12218         * string/Versions (__strsep): Remove.
12219         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
12221 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
12223         * manua/llio.texi: Clarify file references added by mmap.
12224         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
12226 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
12228         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
12229         Add sc_loadrs and sc_rbs_bas to match current kernel.
12231 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
12233         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
12235         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
12237 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
12239         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
12240         object has been bumped because of relocation dependency, avoid
12241         duplicates in l_scope.
12242         (show_scope): Fix typos.
12243         * elf/Makefile: Add rules to build and run reldep6.
12244         * elf/reldep6.c: New file.
12245         * elf/reldep6mod0.c: New file.
12246         * elf/reldep6mod1.c: New file.
12247         * elf/reldep6mod2.c: New file.
12248         * elf/reldep6mod3.c: New file.
12249         * elf/reldep6mod4.c: New file.
12251 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
12253         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
12254         sparc64_fixup_plt.
12255         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
12256         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
12257         for non-lazy binding. Fix .plt[32768+] handling.
12258         (elf_machine_plt_value): Don't add addend.
12259         (elf_machine_rela): Call sparc64_fixup_plt instead of
12260         elf_machine_fixup_plt.
12261         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
12262         dynamic linker at 0xfffff800XXXXXXXX.
12264         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
12266 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
12268         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
12270 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
12272         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
12273         declare __cmsg_data field if its size would be bigger than 0.
12274         (CMSG_DATA): Adjust accordingly.
12275         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
12276         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
12277         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
12278         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
12279         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12280         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
12281         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12283 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
12285         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
12286         * iconvdata/testdata/IBM1160: New file.
12287         * iconvdata/testdata/IBM1160..UTF8: New file.
12288         * iconvdata/testdata/IBM1161: New file.
12289         * iconvdata/testdata/IBM1161..UTF8: New file.
12290         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
12292 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
12294         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
12295         UL_SETFSIZE computations better.
12297         * rt/Makefile: Remove use of filter for librt again.
12299         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
12300         UL_SETFSIZE computations better.
12302         * string/Versions: Export __strsep for GLIBC_2.2.5.
12303         * string/bits/string2.h: Define all __STRING_INLINE functions if
12304         _FORCE_INLINES is defined.
12305         Use int instead of char of parameter types.
12306         (__strsep): Don't use __strsep_g.  Don't define it.
12307         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
12308         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
12309         __strcpy_small.
12310         (__stpcpy_a_small): Renamed from __stpcpy_small.
12311         (__strcspn_c1): Don't define if _FORCE_INLINES.
12312         (__strspn_c1): Likewise.
12314 2001-09-22  Ben Collins  <bcollins@debian.org>
12316         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
12317         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
12318         * sysdeps/ia64/bits/sigaction.h: Likewise.
12319         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
12321 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
12323         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
12325 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
12327         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
12329 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
12331         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
12333 2001-09-20  H.J. Lu  <hjl@gnu.org>
12335         * include/dlfcn.h (__RTLD_SPROF): New definiton.
12336         * elf/dl-open.c (dl_open_worker): Return immediately after loading
12337         for __RTLD_SPROF.
12338         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
12339         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
12341 2001-09-20  H.J. Lu  <hjl@gnu.org>
12343         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
12344         don't add 1.
12346 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
12348         * nss/getent.c: Accept -s parameter to overwrite rules in
12349         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
12351         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
12352         with as many ".0" as necessary to form a complete address
12353         inet_network understands.
12355         * nss/getent.c: Various cleanups.  Use simpler and fewer function
12356         calls.
12358 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
12360         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
12361         _JMPBUF_UNWINDS.
12362         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
12364 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
12366         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
12367         IBM1161.
12368         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
12369         * iconvdata/ibm1160.c: New file.
12370         * iconvdata/ibm1160.h: New file.
12371         * iconvdata/ibm1161.c: New file.
12372         * iconvdata/ibm1161.h: New file.
12373         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
12375 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
12377         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
12378         difference between base address and first PT_LOAD's virtual address,
12379         not the base address.
12381 2001-09-11  Tom Rix  <trix@redhat.com>
12383         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
12384         ifdef for __getopt_clean_environment.
12385         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
12387 2001-09-22  Andreas Jaeger  <aj@suse.de>
12389         * elf/reldep4.c (main): Add proper prototype to fix warning.
12391         * elf/reldep5.c (main): Remove unused variable.
12393         * math/math_private.h: Add prototypes.
12395 2001-09-21  Andreas Jaeger  <aj@suse.de>
12397         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
12398         * sysdeps/x86_64/Dist: New file.
12399         * sysdeps/x86_64/soft-fp/Dist: New file.
12401         * sysdeps/gnu/Dist: Remove eval.c.
12403 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
12405         * malloc/memusage.c (realloc): Don't count already allocated
12406         memory in the sums.
12407         (me): Always use dlsym() to find the real implementations.
12409         * malloc/memusage.sh: Make -n option actually do something.
12411 2001-09-20  Andreas Jaeger  <aj@suse.de>
12413         * elf/elf.h (R_390_NUM): Correct value.
12415         * Versions.def: Add missing versions 2.2.3 for libthread_db and
12416         libpthread.
12418         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
12419         for x86-64, install x86-64 into */lib64.
12421         * shlib-versions: Add x86-64.
12423         * elf/elf.h: Add x86-64 relocations.
12425 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
12427         * po/fr.po: Update from translation team.
12429 2001-09-19  Andreas Jaeger  <aj@suse.de>
12431         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
12432         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
12433         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
12434         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
12435         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
12436         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
12437         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
12438         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
12439         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
12440         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
12441         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
12442         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
12443         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
12444         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
12445         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
12446         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
12447         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
12448         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
12449         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
12450         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
12451         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
12452         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
12453         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
12454         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
12455         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
12456         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
12457         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
12458         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
12459         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
12460         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
12461         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
12462         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
12463         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
12464         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
12465         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
12466         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
12467         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
12468         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
12469         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
12470         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
12471         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
12472         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
12473         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
12474         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
12475         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
12476         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
12477         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
12478         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
12479         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
12480         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
12481         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
12482         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
12483         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
12484         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
12485         * sysdeps/unix/x86_64/sysdep.S: New file.
12486         * sysdeps/unix/x86_64/sysdep.h: New file.
12487         * sysdeps/x86_64/Implies: New file.
12488         * sysdeps/x86_64/Makefile: New file.
12489         * sysdeps/x86_64/Versions: New file.
12490         * sysdeps/x86_64/__longjmp.S: New file.
12491         * sysdeps/x86_64/abort-instr.h: New file.
12492         * sysdeps/x86_64/atomicity.h: New file.
12493         * sysdeps/x86_64/bits/endian.h: New file.
12494         * sysdeps/x86_64/bits/setjmp.h: New file.
12495         * sysdeps/x86_64/bits/string.h: New file.
12496         * sysdeps/x86_64/bp-asm.h: New file.
12497         * sysdeps/x86_64/bsd-_setjmp.S: New file.
12498         * sysdeps/x86_64/bsd-setjmp.S: New file.
12499         * sysdeps/x86_64/dl-machine.h: New file.
12500         * sysdeps/x86_64/elf/initfini.c: New file.
12501         * sysdeps/x86_64/elf/start.S: New file.
12502         * sysdeps/x86_64/ffs.c: New file.
12503         * sysdeps/x86_64/ffsll.c: New file.
12504         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
12505         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
12506         * sysdeps/x86_64/fpu/e_acosl.c: New file.
12507         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
12508         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
12509         * sysdeps/x86_64/fpu/e_expl.c: New file.
12510         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
12511         * sysdeps/x86_64/fpu/e_log10l.S: New file.
12512         * sysdeps/x86_64/fpu/e_log2l.S: New file.
12513         * sysdeps/x86_64/fpu/e_logl.S: New file.
12514         * sysdeps/x86_64/fpu/e_powl.S: New file.
12515         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
12516         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
12517         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
12518         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
12519         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
12520         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
12521         * sysdeps/x86_64/fpu/fegetenv.c: New file.
12522         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
12523         * sysdeps/x86_64/fpu/fegetround.c: New file.
12524         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
12525         * sysdeps/x86_64/fpu/fesetenv.c: New file.
12526         * sysdeps/x86_64/fpu/fesetround.c: New file.
12527         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
12528         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
12529         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
12530         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
12531         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
12532         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
12533         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
12534         * sysdeps/x86_64/fpu/s_atanl.c: New file.
12535         * sysdeps/x86_64/fpu/s_cosl.S: New file.
12536         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
12537         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
12538         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
12539         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
12540         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
12541         * sysdeps/x86_64/fpu/s_logbl.c: New file.
12542         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
12543         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
12544         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
12545         * sysdeps/x86_64/fpu/s_rintl.c: New file.
12546         * sysdeps/x86_64/fpu/s_significandl.c: New file.
12547         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
12548         * sysdeps/x86_64/fpu/s_sinl.S: New file.
12549         * sysdeps/x86_64/fpu/s_tanl.S: New file.
12550         * sysdeps/x86_64/gmp-mparam.h: New file.
12551         * sysdeps/x86_64/hp-timing.c: New file.
12552         * sysdeps/x86_64/hp-timing.h: New file.
12553         * sysdeps/x86_64/htonl.S: New file.
12554         * sysdeps/x86_64/memusage.h: New file.
12555         * sysdeps/x86_64/setjmp.S: New file.
12556         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
12557         * sysdeps/x86_64/stackinfo.h: New file.
12558         * sysdeps/x86_64/sysdep.h: New file.
12559         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
12561         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
12562         L Moshier.
12564 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12566         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
12567         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
12569 2001-09-18  Andreas Schwab  <schwab@suse.de>
12571         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
12572         list, now that l_scope is a pointer.
12574         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
12575         scope list.
12577 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
12579         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
12580         (elf_machine_rela_relative): Add a missing declaration.
12582 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
12584         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
12585         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
12586         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
12587         ldd-rewrite scripts.
12589 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12591         * elf/ldd.bash.in: Update copyright message.
12593 2001-09-17  H.J. Lu  <hjl@gnu.org>
12595         * hurd/hurdmalloc.c (bcopy): Removed.
12596         (realloc): Replace bcopy with memcpy.
12597         * hurd/path-lookup.c (file_name_path_scan): Likewise.
12598         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
12599         * sunrpc/rpcinfo.c (pmapdump): Likewise.
12601         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
12602         (gethostbyaddr): Likewise.
12603         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
12605 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
12607         * sysdeps/gnu/eval.c: Removed.
12609 2001-09-18  Andreas Jaeger  <aj@suse.de>
12611         * sysdeps/i386/fpu/s_logbl.S: Move to ...
12612         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
12614         * sysdeps/i386/fpu/s_rintl.S: Move to ...
12615         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
12617         * sysdeps/i386/fpu/s_significandl.S: Move to ...
12618         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
12620 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
12622         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
12623         nrules value.
12625 2001-09-14  H.J. Lu  <hjl@gnu.org>
12627         * sysdeps/mips/fpu/libm-test-ulps: Updated.
12629 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
12631         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
12632         Patch by Florian La Roche <laroche@redhat.com>.
12634         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12636         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
12637         ETHER_CRC_LEN.
12639 2001-09-14  Andreas Schwab  <schwab@suse.de>
12641         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
12642         Sumner <bls@sgi.com>.
12643         * posix/execlp.c: Likewise.
12645 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
12647         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
12648         is already found earlier in the search scope.
12650 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
12652         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
12653         filter.
12655 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
12657         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
12659 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
12661         * config.h.in: Enforce optimization to be used.
12662         * Makeconfig (preprocess-versions): Define ASSEMBLER.
12663         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
12664         * posix/Makefile (annexc-CFLAGS): Define to -O.
12665         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
12667 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
12669         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12670         Patch by Stephan Kulow.
12672 2001-09-08  Ben Collins  <bcollins@debian.org>
12674         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
12675         usage of RESOLVE() (r_type, not reloc->r_type).
12677 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12679         * elf/dl-object.c: Avoid allocating extra memory block for name.
12680         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
12681         allocated separately.
12682         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
12684 2001-09-08  H.J. Lu  <hjl@gnu.org>
12686         * po/zh_TW.po: Fix a typo.
12688 2001-09-07  Tom Rix  <trix@redhat.com>
12690         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
12692 2001-08-26  Tom Rix  <trix@redhat.com>
12694         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
12695         command line options.
12696         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
12697         * sysdeps/unix/sysv/aix/start.c: Removed.
12698         * sysdeps/unix/sysv/aix/start-libc.c: New file.
12699         * sysdeps/unix/sysv/aix/init-first.c: New file.
12700         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
12702 2001-09-08  Ben Collins  <bcollins@debian.org>
12704         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
12705         * sysdeps/generic/dl-machine.h: Likewise.
12706         * sysdeps/hppa/dl-fptr.c: Likewise.
12707         * sysdeps/ia64/dl-fptr.c: Likewise.
12708         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
12709         * sysdeps/mips/dl-machine.h: Likewise.
12710         * sysdeps/mips/mips64/dl-machine.h: Likewise.
12711         * sysdeps/powerpc/dl-machine.c: Likewise.
12713 2001-09-07  Ben Collins  <bcollins@debian.org>
12715         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
12717         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
12719 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
12721         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
12722         dependencies if necessary.
12724         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
12725         loaded directly) determine length if l_initfini list by iterating
12726         over its elements.  Minor optimizations.
12727         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
12728         for dependency objects.
12729         If object was already loaded check whether any of the dependencies
12730         is already on the relocation dependency list.  If yes, remove the
12731         latter.  Minor optimizations.
12732         * elf/dl-lookup.c (add_dependency): Add check for self reference of
12733         maps here.  Search l_initfini list only if the object was loaded
12734         directly and not only as a dependency.
12735         (_dl_lookup_symbol): Add relocation dependency also if object
12736         is not in global scope.  Remove test for self-reference here.
12737         (_dl_lookup_versioned_symbol): Likewise.
12738         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
12739         element of first name record.
12740         * elf/loadtest.c: Add some more test to recognize early if an object
12741         wasn't unloaded.
12742         * elf/Makefile: Add rules to build and run reldep5.
12743         * elf/reldep5.c: New file.
12744         * elf/reldepmod5.c: New file.
12745         * elf/reldepmod6.c: New file.
12747         * elf/reldep2.c: Fix typo.
12749 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
12751         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
12752         elements.  Change l_scope to be a pointer only.
12753         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
12754         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
12755         here add searchlist of newly open file to the dependency's scope.
12756         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
12757         only searchlist from its scope.  Free own scope array if necessary.
12758         * elf/Makefile (tests): Add dblload and dblunload now.
12760 2001-09-06  Andreas Jaeger  <aj@suse.de>
12762         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
12763         Stephen L Moshier.
12765 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
12767         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
12768         they both fail.
12769         * elf/dblload.c: New file.
12770         * elf/dblloadmod1.c: New file.
12771         * elf/dblloadmod2.c: New file.
12772         * elf/dblloadmod3.c: New file.
12773         * elf/dblunload.c: New file.
12775 2001-09-04  Richard Henderson  <rth@redhat.com>
12777         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
12778         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
12780 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12782         Correct very misleading message for error in failed runtime relocation.
12783         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
12784         place of the error.
12785         (_dl_signal_cerror): Likewise.
12786         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
12787         * elf/dl-close.c: Likewise.
12788         * elf/dl-deps.c: Likewise.
12789         * elf/dl-load.c: Likewise.
12790         * elf/dl-lookup.c: Likewise.
12791         * elf/dl-open.c: Likewise.
12792         * elf/dl-reloc.c: Likewise.
12793         * elf/dl-sym.c: Likewise.
12794         * elf/dl-version.c: Likewise.
12795         * sysdeps/generic/dl-sysdep.c: Likewise.
12797 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12799         * iconv/strtab.c (strtabinit): Initialize null Strent.
12800         (newstring): Move len == 0 handling...
12801         (strtabadd): ...here.
12802         If len == 1, return null Strent.
12803         When inserting a suffix of an existing string, check if
12804         it is not equal to some suffix already recorded.
12805         Copy left and right members over if adding longer string.
12807 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
12809         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
12811         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
12812         (__syscall_gethostname): Add prototype.
12814 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
12816         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
12818 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
12820         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
12822 2001-08-27  Roland McGrath  <roland@frob.com>
12824         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
12825         short, copy that much into NAME anyway before returning error.
12827 2001-09-01  Richard Henderson  <rth@redhat.com>
12829         * sysdeps/alpha/elf/Dist: Remove file.
12830         * sysdeps/alpha/elf/Makefile: Remove file.
12831         * sysdeps/alpha/elf/crtbegin.S: Remove file.
12832         * sysdeps/alpha/elf/crtend.S: Remove file.
12833         * sysdeps/alpha/elf/initfini.c: New file.
12835 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
12837         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
12838         * iconv/tst-iconv3.c: Likewise.
12840 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
12842         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
12844 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
12846         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
12847         export it.
12848         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
12849         * iconv/iconv_prog.c (insert_cache): New function.
12850         (print_known_names): If cache is used call insert_cache to use the
12851         information from the cache [PR libc/2509].
12853 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
12855         * time/strptime.c (strptime_internal): Recognize 'l' format and
12856         handle it like 'I' for symmetry with strftime.
12858 2001-08-31  Richard Henderson  <rth@redhat.com>
12860         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
12861         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
12862         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
12863         (print_statistics): Make scalar unsigned long long.
12864         * sysdeps/alpha/hp-timing.h: New file.
12866 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12868         * stdio-common/perror.c (perror): Save errno early, pass it
12869         down to perror_internal.
12870         (perror_internal): Add errnum argument.
12872 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
12874         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
12875         Don't add old memory content for R_ALPHA_REFQUAD.
12877 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12879         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
12880         memory correctly.
12882         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
12883         instead of open, __close instead of close, __getpagesize instead
12884         of getpagesize.
12886         * string/argz-stringify.c (__argz_stringify): Use __strnlen
12887         instead of strnlen.
12888         * include/string.h (strndupa): Redefine here to use __strnlen
12889         instead of strnlen.
12890         * string/strndup.c (__strndup): Use __strnlen not strnlen.
12892         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
12893         connected).
12895 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12897         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
12898         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
12899         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
12900         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
12901         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
12902         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
12903         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
12905 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12907         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
12909 2001-08-30  Andreas Jaeger  <aj@suse.de>
12911         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
12912         contributed Stephen L Moshier.
12914 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
12916         * sunrpc/etc.rpc (sgi_fam): Add.
12918 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
12920         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
12922 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12924         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
12925         first is from a previous call.
12926         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
12928 2001-08-29  Andreas Schwab  <schwab@suse.de>
12930         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
12932 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12934         * config.make.in (INSTALL_SCRIPT): Define.
12935         * Makeconfig (INSTALL_SCRIPT): Define.
12936         * Makerules (do-install-script): New macro to install scripts using
12937         INSTALL_SCRIPT.
12938         (install-bin-script): New rule to install scripts with
12939         do-install-script.
12940         (install-bin-script-nosubdir): New rule.
12941         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
12942         (distinfo-vars): Add $(install-bin-script).
12943         * Rules (others): Likewise.
12944         * Makefile (glibcbug): Install with install-bin-script.
12945         * debug/Makefile (xtrace): Likewise.
12946         (catchsegv): Likewise.
12947         * elf/Makefile (ldd): Likewise.
12948         * malloc/Makefile (mtrace): Likewise.
12949         * timezone/Makefile (tzselect): Likewise.
12951 2001-08-29  H.J. Lu  <hjl@gnu.org>
12953         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
12954         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
12955         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
12957 2001-08-29  Andreas Schwab  <schwab@suse.de>
12959         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
12961 2001-08-28  H.J. Lu  <hjl@gnu.org>
12963         * Makeconfig (combreloc-LDFLAGS): New variable.
12964         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
12965         * config.make.in (have-z-combreloc): New variable.
12966         * configure.in: Substitute libc_cv_z_combreloc.
12968 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
12970         * po/sv.po: Update from translation team.
12971         * po/fr.po: Likewise.
12972         * po/da.po: Likewise.
12974 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12976         * Makerules: Fix a typo: MD% -> MD5.
12978 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
12980         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
12981         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
12983 2001-08-28  Andreas Jaeger  <aj@suse.de>
12985         * manual/libc-texinfo.sh: Add entry about free manuals.
12987         * manual/contrib.texi (Contributors): Fix cross reference.
12989         * manual/libc.texinfo (Copying): Include freemanuals.
12991         * manual/Makefile (appendices): Add freemanuals.
12993         * manual/freemanuals.texi: New file.
12994         Patch by Brian Youmans <3diff@gnu.org>.
12996         * manual/libm-err-tab.pl: Pretty print more platforms, print a
12997         smaller table.
12999         * manual/math.texi (Errors in Math Functions): Fix grammar, start
13000         table on separate page.
13001         Patch by Brian Youmans <3diff@gnu.org>.
13003 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
13005         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
13006         the connection went down after we first used it try to connect
13007         again and resend the message before printing to the console.
13008         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
13010 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
13012         * string/tst-strlen.c (main): Test strnlen (, -1) too.
13013         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
13014         bit set.
13016 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
13018         * iconv/strtab.c (searchstring): Use correct length for comparison.
13019         (strtabadd): Account total size correct if new string has old string as
13020         substring.
13022 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
13024         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
13026 2001-08-27  Andreas Jaeger  <aj@suse.de>
13028         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
13030         * math/libm-test.inc (j0_test): Add extra tests.
13031         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
13032         not x, in Hankel approximation.
13033         Patches by Stephen L Moshier.
13035 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
13037         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
13038         link_map.
13040         * configure.in: Fix test for .rela.dyn section.
13042         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
13044 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
13046         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
13047         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
13048         Pass type_class to _dl_lookup_*.
13049         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
13050         Pass around just type_class instead of noexec, noplt pair.
13051         (_dl_lookup_versioned_symbol): Likewise.
13052         (_dl_lookup_symbol_skip): Pass around just type_class instead of
13053         noexec, noplt pair.
13054         (_dl_lookup_versioned_symbol_skip): Likewise.
13055         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
13056         * elf/do-lookup.h (do_lookup): Likewise.
13057         * include/link.h (struct link_map): Replace noexec and noplt fields
13058         in l_lookup_cache with type_class field.
13059         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
13060         ELF_RTYPE_CLASS_COPY): Define.
13061         Adjust prototypes for _dl_lookup_symbol and
13062         _dl_lookup_versioned_symbol.
13063         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
13064         elf_machine_lookup_noexec_p): Remove.
13065         (elf_machine_type_class): Define.
13066         * sysdeps/arm/dl-machine.h: Likewise.
13067         * sysdeps/hppa/dl-machine.h: Likewise.
13068         * sysdeps/cris/dl-machine.h: Likewise.
13069         * sysdeps/i386/dl-machine.h: Likewise.
13070         * sysdeps/ia64/dl-machine.h: Likewise.
13071         * sysdeps/m68k/dl-machine.h: Likewise.
13072         * sysdeps/mips/mips64/dl-machine.h: Likewise.
13073         * sysdeps/mips/dl-machine.h: Likewise.
13074         * sysdeps/powerpc/dl-machine.h: Likewise.
13075         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13076         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13077         * sysdeps/sh/dl-machine.h: Likewise.
13078         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13079         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13081 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
13083         * manual/message.texi (Advanced gettext functions): Change
13084         description of plural forms for Slovak.
13085         Reported by Marcel Telka <marcel@telka.sk>.
13087         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
13088         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
13090 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
13092         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
13093         typo.  Patch by Florian La Roche <laroche@redhat.com>.
13095 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
13097         * include/link.h (struct link_map): Add l_lookup_cache element.
13098         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
13099         (RESOLVE_MAP): Likewise.
13100         (_dl_relocate_object): Remove cache initialization.
13101         * elf/dl-lookup.c: Rip out cache handling code.
13102         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
13103         declarations.
13105         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
13106         remove some __builtin_expect.
13107         (_dl_lookup_versioned_symbol): Likewise.
13109         * config.h.in: Add HAVE_Z_COMBRELOC.
13110         * configure.in: Add test for -z combreloc.
13112         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
13113         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
13114         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
13115         case to almost no code.
13117 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
13119         * po/tr.po: Update from translation team.
13121 2001-08-24  Andreas Jaeger  <aj@suse.de>
13123         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
13124         make clean works.
13126 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13128         * elf/rtld.c (print_statistics): Printf % after percent values.
13129         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
13131         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
13132         don't have to compute the hash value and initialize current_value.
13133         Move reference_name variable to where it is needed.
13134         (_dl_lookup_versioned_symbol): Likewise.
13136 2001-08-24  Roland McGrath  <roland@frob.com>
13138         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
13139         Just test that strerror returns non-null for a few errno codes.
13141 2001-08-23  Roland McGrath  <roland@frob.com>
13143         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
13144         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
13146         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
13148         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
13149         __mach_reply_port.
13151 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13153         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
13154         returns NULL.
13156         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
13157         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
13158         doesn't do it.
13159         * elf/rtld.c: Include <sys/param.h>.
13160         * elf/dl-reloc.c: Likewise.
13162 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
13164         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
13165         empty to prevent junk from being generated.
13166         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
13168 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
13170         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
13171         records.  Rename endrel to relative, initialize it to r, and use it
13172         in elf_machine_rel_relative calls.  Point r after relative relocs.
13174 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13176         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
13177         of R_386_NONE.
13179 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
13181         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
13182         necessary.  Undefine newly defined macros at the end.
13183         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
13184         Rename from elf_machine_rel_relative.
13185         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
13186         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
13187         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
13188         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
13189         Likewise.
13190         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
13191         Likewise.
13192         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
13193         Fix argument types.
13194         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
13195         Fix argument types.
13196         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
13197         Likewise.  Fix argument types.
13198         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
13199         Likewise.  Fix argument types.
13200         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
13201         Fix argument types.
13202         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
13203         ElfW(Rel) in argument.
13204         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
13205         function.
13207 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
13209         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
13211 2001-08-24  Andreas Jaeger  <aj@suse.de>
13213         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
13214         Stephen L Moshier <moshier@mediaone.net>.
13216 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
13218         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
13219         first if RELCOUNT is set.
13221         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
13222         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
13223         elf_machine_rel_relative.
13224         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
13225         Minor optimizations.
13226         * sysdeps/arm/dl-machine.h: Likewise.
13227         * sysdeps/cris/dl-machine.h: Likewise.
13228         * sysdeps/hppa/dl-machine.h: Likewise.
13229         * sysdeps/i386/dl-machine.h: Likewise.
13230         * sysdeps/ia64/dl-machine.h: Likewise.
13231         * sysdeps/m68k/dl-machine.h: Likewise.
13232         * sysdeps/mips/dl-machine.h: Likewise.
13233         * sysdeps/powerpc/dl-machine.h: Likewise.
13234         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13235         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13236         * sysdeps/sh/dl-machine.h: Likewise.
13237         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13238         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13240 2001-08-23  Roland McGrath  <roland@frob.com>
13242         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
13244         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
13245         sysdeps/mach version.  Implement counting ("recursive") mutexes
13246         on top of cthreads mutexes.
13247         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
13249         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
13250         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
13251         (__libc_cleanup_region_start, __libc_cleanup_region_end,
13252         __libc_clean_end): Define these to call the cleanup function after
13253         normal exit when they're supposed to.
13255         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
13256         Take new first arg DOIT, a boolean saying whether to really install
13257         any cleanup handler.
13258         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
13259         (__libc_cleanup_end): Likewise.
13260         * sysdeps/generic/bits/libc-lock.h: Same changes.
13261         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
13262         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
13263         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
13264         Likewise.
13265         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
13266         * sysdeps/generic/bits/stdio-lock.h
13267         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
13269 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13271         * elf/ldconfig.c (search_dir): Remove stale symlinks.
13273 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13275         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New
13276         functions.
13277         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
13278         lookups in cache.
13279         (_dl_lookup_versioned_symbol): Likewise.
13280         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
13281         relocation lookup.
13282         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
13283         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
13284         (lookup_cache, lookup_cache_versioned): Add declarations.
13286 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
13288         * stdlib/tst-random.c (main): Swap parameters in fail call.
13289         Patch by Pete Bevin <pete@petebevin.com>.
13291 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
13293         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
13295 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
13297         * malloc/obstack.c: Indent preprocessor directives.
13298         Patch by Jim Meyering <meyering@ascend.com>.
13300         * po/ja.po: Update from translation team.
13302 2001-08-23  Roland McGrath  <roland@frob.com>
13304         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
13306         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
13307         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
13309 2001-08-22  Roland McGrath  <roland@frob.com>
13311         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
13312         __libc_lock_define_recursive.
13313         * elf/dl-open.c: Don't declare it here any more.
13314         * elf/dl-close.c: Likewise.
13315         * elf/dl-lookup.c: Likewise.
13316         * elf/dl-iteratephdr.c: Likewise.
13317         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
13318         __libc_lock_unlock_recursive.
13319         * elf/dl-close.c (_dl_close): Likewise
13320         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
13321         * elf/dl-open.c (_dl_open): Likewise
13323         * sysdeps/generic/bits/libc-lock.h
13324         (__libc_lock_define_recursive): New macro.
13325         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
13326         (_IO_lock_lock): Use __libc_lock_lock_recursive.
13327         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
13329         * conform/conformtest.pl (checknamespace): Sort the output list.
13331         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
13332         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
13333         definitions conditional on [__USE_XOPEN].
13335         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
13336         these unconditionally, not only use [__USE_BSD], so as to match
13337         the sysdeps/unix/sysv/linux files.
13339 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13341         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
13342         avoid warnings.
13344         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
13345         DL_LOOKUP_ADDRESS.
13347 2001-08-22  Roland McGrath  <roland@frob.com>
13349         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
13350         conditionalization of sa_handler/sa_sigaction member types to
13351         match the sysdeps/unix/sysv/linux file.
13353 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13355         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
13356         symbol sizes a bit better.
13358         * sysdeps/ia64/strncpy.S: Complete rewrite.
13359         Contributed by Jakub Jelinek <jakub@redhat.com>.
13361         * string/stratcliff.c (main): Add strncpy test.
13363 2001-08-22  Roland McGrath  <roland@frob.com>
13365         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
13366         and don't declare unsetenv or _environ directly.
13367         (unsetenv): Return int, not void.  Use __environ instead of _environ.
13369 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
13371         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
13372         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
13373         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
13374         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
13375         test for cmsg struct size.
13377 2001-04-23  Paul Eggert  <eggert@twinsun.com>
13379         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
13380         Rename __argc to ___argc in prototypes to avoid compatibility
13381         problems with systems that reserve the identifier "__argc".
13382         Similarly for __argv.
13384 2001-08-21  Roland McGrath  <roland@frob.com>
13386         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
13388         * mach/Makefile (tests): Removed.
13389         * mach/hello.c: File removed.
13391 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
13393         * po/sv.po: Update from translation team.
13395         * stdio-common/vfscanf.c: Fix handling of %l[].
13396         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
13398         * libio/Makefile (tests): Add tst-sscanf.
13399         * libio/tst-sscanf.c: New file.
13401         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
13402         * malloc/mtrace.c (tr_where): dli_sname always points to a
13403         non-empty string if != NULL.
13404         Reported by Tim Janik <timj@gtk.org>.
13406 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
13408         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
13409         buf.  Free resources on failure.
13410         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
13411         (makefd_xprt): Likewise.
13412         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
13413         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
13414         * sunrpc/auth_unix.c (authunix_create): Likewise.
13416 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
13418         * string/strnlen.c: Remove.
13419         * sysdeps/generic/strnlen.c: New file.
13420         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
13422 2001-08-21  Roland McGrath  <roland@frob.com>
13424         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
13425         as a macro, not an extern inline function.
13427         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
13428         * Versions.def (libc): Add GLIBC_2.2.5 set.
13429         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
13430         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
13432 2001-08-20  Roland McGrath  <roland@frob.com>
13434         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
13435         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
13437 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
13439         * string/bits/string2.h: Remove strnlen optimization here.
13440         * sysdeps/i386/i486/bits/string.h: Add it here.
13442 2001-08-21  Wolfram Gloger  <wg@malloc.de>
13444         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
13446 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
13448         * po/gl.po: Update from translation team.
13450 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13452         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
13453         * misc/err.c (convert_and_print): Likewise.
13455         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
13456         function calls.
13458 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13460         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
13461         change of the gregset_t type.
13462         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13464 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
13466         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
13468 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13470         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
13472         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
13474 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
13476         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
13477         before calling the cthreads initialization code.
13479 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
13481         * argp/argp-help.c: Fix two problems introduced in last change.
13483         * include/dirent.h: Include <dirstream.h> first.
13485 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
13487         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
13489         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
13490         * sunrpc/xdr_rec.c: Likewise.
13491         * sunrpc/xdr_mem.c: Likewise.
13492         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
13493         * sunrpc/rpc_cmsg.c: Likewise.
13494         * sunrpc/getrpcport.c (getrpcport): Likewise.
13495         * sunrpc/clnt_simp.c (callrpc): Likewise.
13496         * sunrpc/clnt_gen.c (clnt_create): Likewise.
13497         * string/envz.c: Likewise.
13499         * po/ko.po: Update from translation team.
13501         * argp/argp-help.c: Handle wide oriented stderr stream.
13503 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
13505         * sysdeps/generic/strtol.c: Little optimizations.  Add some
13506         __builtin_expect.
13508         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
13510         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
13511         * wcsmbs/wcwidth.c (wcwdith): Likewise.
13512         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
13514         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
13516         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
13518         * time/time.h (struct timespec): Use __time_t for tv_sec element.
13520         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
13521         wchar_t for function declarations and defintions.
13523         * misc/sys/select.h: Define __need_time_t before including <time.h>.
13524         Define suseconds_t if it hasn't happened yet.
13526         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
13528         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
13530         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
13531         <stddef.h>.
13533         * conform/data/stddef.h-data: Remove wint_t.
13535         * conform/conformtest.pl: Change namespace test to take #undef
13536         lines into account.
13538         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
13540         * conform/data/sys/socket.h-data: Add sockatmark.
13542 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13544         * io/fts.c: Update from recent BSD source.
13546 2001-08-17  Roland McGrath  <roland@frob.com>
13548         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
13549         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
13550         Likewise.
13552 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13554         * locale/duplocale.c (__duplocale): Also initialize the special
13555         __ctype_* elements.
13557         * conform/data/netdb.h-data: Adjust gai_strerror return type.
13559 2001-08-17  Andreas Jaeger  <aj@suse.de>
13561         * misc/getpass.c: Include wchar.h for prototypes.
13562         * malloc/obstack.c: Likewise.
13564 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
13566         * sunrpc/svc_simple.c (universal): Use __write instead of write.
13568         * wcsmbs/wcscoll.c: Also define __wcscoll.
13569         * include/wchar.h: Declare __wcscoll.
13571         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
13572         * libio/vwprintf.c: Likewise.
13573         * libio/wprintf.c: Likewise.
13575         * iconv/gconv_cache.c: Use __munmap instead of munmap.
13577 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
13579         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
13580         instead of mbrtowc.
13581         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
13582         wcslen, and __wcscoll instead of wcscoll.
13584         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
13586         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
13587         __getuid instead of getuid.
13589         * stdio-common/perror.c (perror): Use __close instead of close.
13590         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13591         * libio/freopen.c (freopen): Likewise.
13592         * libio/freopen64.c (freopen64): Likewise.
13594         * libio/tst-ungetwc2.c (main): Define str const.
13596         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
13597         * libio/fwprintf.c: Also define __fwprintf.
13598         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
13599         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
13600         * assert/assert-perr.c: Likewise.
13601         * assert/assert.c: Likewise.
13602         * gmon/gmon.c: Likewise.
13603         * inet/rcmd.c: Likewise.
13604         * malloc/obstack.c: Likewise.
13605         * misc/err.c: Likewise.
13606         * misc/error.c: Likewise.
13607         * misc/getpass.c: Likewise.
13608         * posix/getopt.c: Likewise.
13609         * resolv/res_hconf.c: Likewise.
13610         * stdio-common/perror.c: Likewise.
13611         * stdio-common/psignal.c: Likewise.
13612         * stdlib/fmtmsg.c: Likewise.
13613         * sunrpc/auth_unix.c: Likewise.
13614         * sunrpc/clnt_perr.c: Likewise.
13615         * sunrpc/clnt_tcp.c: Likewise.
13616         * sunrpc/clnt_udp.c: Likewise.
13617         * sunrpc/clnt_unix.c: Likewise.
13618         * sunrpc/svc_simple.c: Likewise.
13619         * sunrpc/svc_tcp.c: Likewise.
13620         * sunrpc/svc_udp.c: Likewise.
13621         * sunrpc/svc_unix.c: Likewise.
13622         * sunrpc/xdr.c: Likewise.
13623         * sunrpc/xdr_array.c: Likewise.
13624         * sunrpc/xdr_rec.c: Likewise.
13625         * sunrpc/xdr_ref.c: Likewise.
13626         * sysdeps/generic/wordexp.c: Likewise.
13628         * po/it.po: Update from translation team.
13630         * misc/err.c: Handle wide oriented stderr stream.
13632 2001-08-14  Tom Rix  <trix@redhat.com>
13634         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
13635         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
13637 2001-08-13  Tom Rix  <trix@redhat.com>
13639         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
13640         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
13641         and __intptr_t.
13643 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13645         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
13646         Store the access registers to the ucontext structure.
13647         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
13648         Likewise.
13650         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
13651         Load the access registers from the ucontext structure.
13652         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
13653         Likewise.
13655         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
13656         offsets to the new ucontext layout.
13657         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
13659         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
13660         of the ucontext structure.
13661         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
13663 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
13665         * misc/error.c (error): Handle wide oriented stderr stream correctly.
13666         (error_at_line): Likewise.
13668         * stdio-common/perror.c (perror): Implement according to standard.
13669         The stream orientation must not be changed if the stream was not
13670         oriented before the call.
13671         * stdio-common/Makefile (tests): Add tst-perror.
13672         * stdio-common/tst-perror.c: New file.
13675 See ChangeLog.12 for earlier changes.