Update.
[glibc.git] / ChangeLog
blob625d39f308bf037e48ea80884eb187ba6b38aac1
1 2001-04-25  Ulrich Drepper  <drepper@redhat.com>
3         * malloc/malloc.c: Allow MALLOC_ALIGNMENT to be defined on the
4         compiler command line.
5         * sysdeps/hppa/Makefile: Add -DMALLOC_ALIGNMENT=16 to compiler
6         command line for malloc.c.
8 2001-04-25  Jakub Jelinek  <jakub@redhat.com>
10         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/time.h: Move to...
11         * sysdeps/unix/sysv/linux/sparc/bits/time.h: ...here.
12         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/bits/time.h: Remove.
13         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/socket.h: Move to...
14         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: ...here.  Adjust
15         struct msghdr for __WORDSIZE == 32.
16         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/statvfs.h: Move to...
17         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: ...here. Adjust
18         for __WORDSIZE == 32.
19         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/siginfo.h: Remove.
20         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c: New
21         file.
22         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_siglongjmp):
23         Rename from longjmp, make longjmp weak alias to it.
25 2001-04-24  David S. Miller  <davem@redhat.com>
27         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: New file.
29 2001-04-25  Matthew Wilcox  <willy@ldl.fc.hp.com>
31         * sysdeps/hppa/stackinfo.h: New file.
32         * sysdeps/unix/sysv/linux/hppa/getdents64.c: New file.
33         * sysdeps/unix/sysv/linux/hppa/mmap64.c: New file.
34         * sysdeps/unix/sysv/linux/hppa/bits/resource.h: New file.
35         * sysdeps/unix/sysv/linux/kernel-features.h: Add descriptions
36         of PA kernel features.
38 2001-04-25  Ulrich Drepper  <drepper@redhat.com>
40         * locale/programs/localedef.c (main): Always set a file name for
41         the initial locale.
42         * locale/programs/locfile.c (locfile_read): filename is allowed to
43         be NULL.
45 2001-04-12  Paul Bame  <paul_bame@hp.com>
47         * sysdeps/hppa/fpu/fclrexcpt.c: Clear the exception flags, not the
48         enable flags.
50 2001-04-24  Ulrich Drepper  <drepper@redhat.com>
52         * sysdeps/generic/bits/environments.h (_POSIX_V6_LPBIG_OFFBIG,
53         _XBS5_LPBIG_OFFBIG): Define to -1.
54         Fix typos.
56         * sysdeps/generic/bits/confname.h: Add _CS_V6_WIDTH_RESTRICTED_ENVS.
57         * posix/confstr.c: Handle _CS_V6_WIDTH_RESTRICTED_ENVS.
58         * posix/getconf.c: Handle _POSIX_V6_WIDTH_RESTRICTED_ENVS.
59         * posix/tst-getconf.sh: Add _POSIX_V6_WIDTH_RESTRICTED_ENVS.
61         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9b/Implies: New file.
62         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9b/bits/time.h: Removed.
64 2001-03-21  Alan Modra  <alan@one.net.au>
66         * sysdeps/hppa/dl-machine.h (RTLD_START): Set up dp with DT_PLTGOT
67         value from application so that constructors in non-PIC libs work.
69 2000-12-13  Jes Sorensen  <jes@linuxcare.com>
71         * sysdeps/hppa/dl-machine.h (RTLD_START): _dl_init now returns a
72         function pointer, hence load the jump address and gp from the
73         function pointer before jumping.
75 2001-04-24  Andreas Jaeger  <aj@suse.de>
77         * sysdeps/generic/send.c (__send): Return ssize_t.
78         * sysdeps/mach/hurd/send.c (__send): Likewise.
79         * sysdeps/mach/hurd/recv.c (recv): Likewise.
80         * sysdeps/mach/hurd/sendto.c (sendto): Likewise.
81         * sysdeps/generic/sendto.c (sendto): Likewise.
82         * sysdeps/generic/recvmsg.c (recvmsg): Likewise.
83         * sysdeps/mach/hurd/recvfrom.c (recvfrom): Likewise.
84         * sysdeps/generic/recvfrom.c (recvfrom): Likewise.
85         * sysdeps/generic/sendmsg.c (sendmsg): Likewise.
87         * socket/sys/socket.h: send* and recv* return ssize_t.
89         * include/sys/socket.h: send returns ssize_t.
91         * sysdeps/i386/fpu_control.h: Fix comments.
93 2001-04-24  Ulrich Drepper  <drepper@redhat.com>
95         * sysdeps/ia64/Dist: Add hp-timing.c.
96         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Add ucontext_i.h.
97         * posix/Makefile (distribute): Add tst-getconf.sh.
98         * po/Makefile (distribute): Add $(BROKEN_LINGUAS:=.po).
100 2001-04-23  Ulrich Drepper  <drepper@redhat.com>
102         * sysdeps/ia64/Makefile [subdir=csu] (sysdep_routines): Add hp-timing.
103         * sysdeps/ia64/Versions: Add _dl_cpuclock_offset for ld in 2.2.3.
104         * sysdeps/ia64/hp-timing.c: New file.
105         * sysdeps/ia64/hp-timing.h: New file.
106         * sysdeps/unix/sysv/linux/ia64/bits/time.h: Add definitions for
107         CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID.
109         * sysdeps/generic/clock_getcpuclockid.c: Make function generic, test
110         using #ifdef whether the clock is available.
111         * sysdeps/unix/i386/clock_getcpuclockid.c: Not needed anymore.
113         * sysdeps/generic/dl-sysdep.c: Initialize _dl_cpuclock_offset to move
114         it into data section.
116         * sysdeps/unix/i386/i586/clock_getres.c: Removed.
117         * sysdeps/unix/i386/i586/clock_gettime.c: Removed.
118         * sysdeps/unix/i386/i586/clock_nanosleep.c: Removed.
119         * sysdeps/unix/i386/i586/clock_settime.c: Removed.
120         * sysdeps/unix/i386/i586/cpuclock-init.h: Removed.
121         * sysdeps/generic/cpuclock-init.h: Removed.
122         * sysdeps/unix/i386/i686/Implies: Removed.
123         * sysdeps/unix/i386/i686/tempname.c: Removed.
124         * sysdeps/i386/i686/Versions: New file.
125         * sysdeps/unix/i386/i586/Versions: Removed.
127         * sysdeps/posix/clock_getres.c: If HP_TIMING_AVAIL is nonzero handle
128         CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID.
129         * sysdeps/unix/clock_gettime.c: Likewise.
130         * sysdeps/unix/clock_nanosleep.c: Likewise.
131         * sysdeps/unix/clock_settime.c: Likewise.
132         * sysdeps/posix/tempname.c: Is HP_TIMING_AVAIL is nonzero define
133         RANDOM_BITS use CPU clock.
135         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/bits/time.h: New file.
136         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9b/bits/time.h: New file.
137         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/time.h: New file.
138         * sysdeps/sparc/Versions: New file.
140         * elf/dl-support.c: Don't use cpuclock-init.h definitions, use
141         hp-timing.h definitions.
142         * sysdeps/generic/dl-sysdep.c: Likewise.
144         * include/libc-internal.h: Include hp-timing.h.  Use hp_timing_t in
145         __get_clockfreq prototype.
147         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
148         Use hp_timing_t type.
149         * sysdeps/generic/get_clockfreq.c (__get_clockfreq): Likewise.
151         * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: New file.
153         * sysdeps/posix/pathconf.c (__pathconf): For _PC_ASYNC_IO test
154         whether named file is a regular file or a block device.
155         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
157 2001-04-23  Andreas Jaeger  <aj@suse.de>
159         * nscd/nscd.h: Add noreturn attribute for start_threads.
161 2001-04-22  Ulrich Drepper  <drepper@redhat.com>
163         * posix/getconf.c: Fix names of XBS5 LFS test variables.
164         Add missing configuration variables from XPG6.
165         * posix/tst-getconf.c: New file.
166         * posix/Makefile (generated): Add tst-getconf.out.
167         (tests): Add ($objpfx)tst-getconf.out.
168         Add rule to run tst-getconf.sh.
169         * sysdeps/generic/bits/confname.h: Add missing _PC_ and _SC_ values
170         from XPG6.
171         * sysdeps/posix/fpathconf.c: Add handling of _PC_ALLOC_SIZE_MIN and
172         _PC_SYMLINK_MAX.
173         * sysdeps/posix/pathconf.c: Likewise.
174         * sysdeps/posix/sysconf.c: Correct spelling of _SC_MULTI_PROCESS
175         and _SC_SYMLOOP_MAX.
177 2001-04-22  Philip Blundell  <philb@gnu.org>
179         * sysdeps/arm/fpu/feenablxcpt.c: New file.
180         * sysdeps/arm/fpu/fedisablxcpt.c: New file.
181         * sysdeps/arm/fpu/fegetexcpt.c: New file.
183 2001-04-22  Philip Blundell  <philb@gnu.org>
185         * sysdeps/unix/sysv/linux/arm/sys/user.h (struct user_fpregs):
186         Renamed from struct user_fp.
187         (struct user_regs): New.
188         (struct user): Use struct user_regs rather than struct pt_regs to
189         avoid dependency on asm/ptrace.h.  Use struct user_fpregs in place
190         of struct user_fp and struct user_fp_struct.
191         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Include sys/procfs.h
192         not sys/elf.h.
194 2001-04-22  Philip Blundell  <philb@gnu.org>
196         * sysdeps/unix/sysv/linux/arm/sys/elf.h: Move contents to
197         sys/procfs.h, and tell the user to include that file instead.
198         * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove old cruft
199         surrounded with #if 0.
200         (elf_greg_t, ELF_NGREG, elf_gregset_t, elf_fpregset_t): Moved here
201         from sys/elf.h.
202         (prgregset_t, prfpregset_t): Define in terms of elf_gregset_t and
203         elf_fpregset_t respectively.
205 2001-04-22  Philip Blundell  <philb@gnu.org>
207         * sysdeps/unix/sysv/linux/arm/register-dump.h: Also print the
208         address that faulted.
210 2001-04-21  Ulrich Drepper  <drepper@redhat.com>
212         * sysdeps/generic/bits/confname.h: Add _SC_V6_* and _CS_POSIX_V6_*
213         values.
214         * sysdeps/generic/bits/environments.h: Define _POSIX_V6_* values.
215         * posix/confstr.c: Handle _CS_POSIX_V6_* values.
216         * posix/getconf.c: Handle _CS_POSIX_V6_* and _SC_V6_* values.
217         * sysdeps/posix/sysconf.c: Handle _SC_V6_* values.
219         * sysdeps/powerpc/fpu/libm-test-ulps: Add deltas for atan2f.
220         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
221         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
222         * sysdeps/mips/fpu/libm-test-ulps: Likewise.
224 2001-04-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
226         * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Correct check for invalid
227         offset.
229 2001-04-21  Ulrich Drepper  <drepper@redhat.com>
231         * posix/getopt.h: Treat __cplusplus like __STDC__.
233 2001-04-20  John S. Marvin  <jsm@fc.hp.com>
235         * sysdeps/unix/sysv/linux/hppa/clone.S: Fix clone system call
236         entry point stub.
238 2001-04-20  Richard Hirst  <rhirst@linuxcare.com>
240         * elf/elf.h: Corrected R_PARISC_DIR14R (should be 6, not 5),
241         and added R_PARISC_DPREL21L and R_PARISC_DPREL14R for modutils.
243         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Removed ptrace
244         entry so the ptrace.c wrapper is used.
246 2001-04-20  Alan Modra  <amodra@one.net.au>
248         * sysdeps/hppa/dl-lookupcfg.h (_dl_function_address): Prototype.
249         (DL_FUNCTION_ADDRESS): Define.
250         (DL_DT_INIT_ADDRESS): Define.
251         (DL_DT_FINI_ADDRESS): Define.
252         * sysdeps/hppa/Versions: Add _dl_function_address.
253         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_START_ADDRESS): Define.
254         * sysdeps/hppa/dl-symaddr.c (_dl_start_address): Rename to
255         _dl_function_address.
257 2001-04-21  Andreas Jaeger  <aj@suse.de>
259         * rt/aio_misc.c (handle_fildes_io): Add noreturn attribute.
260         * resolv/gai_misc.c (handle_requests): Likewise.
261         * malloc/obstack.c (print_and_abort): Likewise.
262         * malloc/mcheck.c (mabort): Likewise.
264         * sysdeps/unix/i386/i586/clock_settime.c: Include
265         "libc-internal.h" for __get_clockfreq declaration.
267 2001-04-21  Ulrich Drepper  <drepper@redhat.com>
269         * elf/dl-support.c: Include cpuclock-init.h.  Use CPUCLOCK_VARDEF and
270         CPUCLOCK_INIT if defined.
271         * sysdeps/generic/dl-sysdep.c: Likewise.
272         * sysdeps/generic/cpuclock-init.h: New file.
273         * sysdeps/unix/i386/i586/cpuclock-init.h: New file.
274         * sysdeps/unix/i386/i586/Versions: New file.
275         * sysdeps/unix/i386/i586/clock_settime.c: New file.
276         * sysdeps/unix/i386/i586/clock_gettime.c: Handle thread CPU clock
277         separately by calling __pthread_clock_gettime if this function is
278         available.  Subtract offset from tsc value before computing time value.
280 2001-04-20  Ulrich Drepper  <drepper@redhat.com>
282         * iconv/iconv_prog.c (print_known_names): If printing goes not to
283         a tty print in a more machine-friendly way.
285         * sysdeps/ieee754/ldbl-128/e_asinl.c: New file.
286         Contributed by Stephen L Moshier <moshier@mediaone.net>.
288 2001-04-20  Andreas Jaeger  <aj@suse.de>
290         * intl/Makefile (tests): Reorder conditions, tst-gettext needs msgfmt.
292 2001-04-20  Andreas Schwab  <schwab@suse.de>
294         * sysdeps/m68k/fpu/libm-test-ulps: Update.
296 2001-04-19  Alan Modra  <amodra@one.net.au>
298         * Makerules (libc_pic.os): Add $(LDFLAGS-c_pic.os).
299         * sysdeps/hppa/Makefile (LDFLAGS-c_pic.os): Define.
300         (CFLAGS-.os): Remove.
302         * sysdeps/unix/sysv/linux/hppa/sysdep.h (CALL_MCOUNT): Update comment.
304         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (NGREG, NFPREG,
305         gregset): Correct for new kernel definitions.
307 2001-04-19  Alan Modra  <alan@linuxcare.com.au>
309         * sysdeps/hppa/elf/initfini.c: Change dlt reg save to r3 and
310         generate unwind info by hand.
312 2001-04-19  Ulrich Drepper  <drepper@redhat.com>
314         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Optimize a bit.
316         * configure.in: Correct regular expression for msgfmt.
317         Patch by Bruno Haible <haible@ilog.fr>.
319 2001-04-19  Andreas Jaeger  <aj@suse.de>
321         * po/el.po: Add comment explaining what's broken.
323         * po/Makefile (BROKEN_LINGUAS): New.
324         (ALL_LINGUAS): Don't add broken languages.
326 2001-04-19  Roland McGrath  <roland@frob.com>
328         * sysdeps/mach/hurd/mlock.c: New file.
329         * sysdeps/mach/hurd/munlock.c: New file.
330         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK_RANGE): Define it.
332         * misc/Makefile (routines): Add mlock munlock mlockall munlockall.
333         * sysdeps/generic/mlock.c: New file.
334         * sysdeps/generic/munlock.c: New file.
335         * sysdeps/generic/mlockall.c: New file.
336         * sysdeps/generic/munlockall.c: New file.
337         * sysdeps/generic/bits/mman.h (MCL_CURRENT, MCL_FUTURE): New macros.
338         * sysdeps/unix/sysv/linux/syscalls.list (mlock, munlock,
339         mlockall, munlockall): Change caller field to - from EXTRA.
340         Don't use __ names; not used (and not declared in include/sys/mman.h).
342         * hurd/privports.c (__get_privileged_ports): Renamed with __.
343         Use __ names for calls we make.
344         (get_privileged_ports): Add alias.
345         * hurd/hurd.h: Declare it with the __ name.
346         * sysdeps/mach/hurd/reboot.c (reboot): Use __get_privileged_ports.
347         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
348         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
350         * hurd/hurdsig.c (write_corefile): Check RLIMIT_CORE limit and do
351         nothing if it's zero.
353 2001-04-19  Matthew Wilcox  <willy@ldl.fc.hp.com>
355         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL):
356         Change to return a signed result for compatibility with other
357         architectures, and correctness.
359 2001-04-19  Ulrich Drepper  <drepper@redhat.com>
361         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_32BITUIDS):
362         HPPA always had them.  Patch by Matthew Wilcox <matthew@wil.cx>.
364 2001-04-19  Andreas Jaeger  <aj@suse.de>
366         * configure.in: Require gettext 0.10.36 or newer.
368         * manual/install.texi (Tools for Compilation): Mention gettext 0.10.36.
370         * po/zh_TW.po: Remove extraneous backslashes.
372         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Remove unused
373         variables b and n.
375 2001-04-18  Jakub Jelinek  <jakub@redhat.com>
377         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
378         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c: New file.
379         * sysdeps/unix/sysv/linux/sparc/sparc64/swapcontext.c: New file.
380         * sysdeps/unix/sysv/linux/sparc/sparc64/setcontext.S (__setcontext):
381         Copy first word of uc_sigmask into __uc_sigmask.
382         * sysdeps/unix/sysv/linux/sparc/sparc64/getcontext.S (__getcontext):
383         Save uc_link around trap. Copy __uc_sigmask into first word of
384         uc_sigmask, clear the rest. Make sure setcontext to the created
385         context doesn't do this though.
386         * sysdeps/unix/sysv/linux/sparc/sparc64/ucontext_i.h: New file.
387         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Add
388         uc_stack and uc_sigmask, rename old uc_sigmask to __uc_sigmask in the
389         64bit version, make uc_sigmask __sigset_t in the 32bit version.
391 2001-04-19  Andreas Jaeger  <aj@suse.de>
393         * sysdeps/unix/sysv/linux/hppa/umount.c: Fix typos in last patch.
395         * rt/Makefile (otherlibs): Added for static NSS.
397         * glibcbug.in (BUGGLIBC): Send to new alias.
399 2001-04-02  Andreas Schwab  <schwab@suse.de>
401         * Makerules (build-module): Make sure exit codes get checked
402         properly and remove unnecessary slashes.
404 2001-04-17  Ulrich Drepper  <drepper@redhat.com>
406         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
407         Handle kernels which report only three digits after the decimal point.
408         Reported by Van Okamura <van.okamura@oracle.com>.
410         * sysdeps/alpha/fpu/libm-test-ulps: Adjust error values for atan2f.
412 2001-04-17  David S. Miller  <davem@redhat.com>
414         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update for new atan2 tests.
415         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
417 2001-04-17  Jakub Jelinek  <jakub@redhat.com>
419         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Make sure
420         desired exceptions are raised for exceptional values.
421         * math/libm-test.inc (acosh_test, atan_test, atan2_test, cacos_test,
422         cacosh_test, casin_test, casinh_test, catan_test, catanh_test,
423         clog_test, log_test, log1p_test, tan_test): Increase precision of
424         expected values to satisfy ldbl-128.
425         * sysdeps/alpha/fpu/libm-test-ulps: Adjust accordingly.
426         * sysdeps/arm/libm-test-ulps: Likewise.
427         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
428         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
429         * sysdeps/m68k/fpu/libm-test-ulps: Likewise.
430         * sysdeps/mips/fpu/libm-test-ulps: Likewise.
431         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
432         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
433         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
434         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
435         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
437 2001-04-17  Andreas Jaeger  <aj@suse.de>
439         * configure.in: Move test for critical programs up.
441 2001-04-16  Stephen L Moshier  <moshier@mediaone.net>
443         * sysdeps/ieee754/flt-32/e_asinf.c (pio2_hi, pio2_lo, pio4_hi):
444         Correct the values. (pSx, qSx): Replace by shorter approximation.
445         Use f suffix on float constants.
447 2001-04-16  Ulrich Drepper  <drepper@redhat.com>
449         * sysdeps/ieee754/ldbl-128/k_tanl.c: New file.
450         Contributed by Stephen L Moshier <moshier@mediaone.net>.
452         * string/string.h: Replace const in attribute list with __const__.
454 2001-04-16  Roland McGrath  <roland@frob.com>
456         * grp/initgroups.c (initgroups) [NGROUPS_MAX != 0]: Always use sysconf
457         instead of the constant NGROUPS_MAX.  That way, the limit can be
458         raised in the kernel configuration without having to recompile libc.
460         * sysdeps/posix/euidaccess.c: Don't #include <limits.h> or try to
461         define NGROUPS_MAX; we don't use it here.
463 2001-04-16  Andreas Jaeger  <aj@suse.de>
465         * math/libm-test.inc (atan2_test): Add more testcases.
467         * iconv/gconv_db.c: Include gconv_charset.h for
468         __gconv_lookup_alias prototype.
470 2001-04-13  Ulrich Drepper  <drepper@redhat.com>
472         * sysdeps/ieee754/ldbl-128/s_atanl.c: New file.
473         Contributed by Stephen L Moshier <moshier@mediaone.net>.
475 2001-04-13  Jes Sorensen  <jes@linuxcare.com>
477         * intl/tst-codeset.c: Include string.h to get prototype for strcmp().
479 2001-04-13  Jes Sorensen  <jes@linuxcare.com>
481         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add __pad0 to
482         explicitly pad struct siginfo instead of relying on compiler padding.
484 2001-04-12  Ulrich Drepper  <drepper@redhat.com>
486         * sysdeps/ia64/Dist: Add elf/entry.h.
488         * iconvdata/Makefile (distribute): Add TESTS2.
490 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
492         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address):
493         Calculate load address differently.
495 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
497         * iconvdata/TESTS2: New file.
498         * iconvdata/run-iconv-test.sh: Also run tests from TESTS2.
499         * iconvdata/testdata/alfabeta..UTF-8: New file.
500         * iconvdata/testdata/alfabeta..UTF-16.BE: New file.
501         * iconvdata/testdata/alfabeta..UTF-16.LE: New file.
502         * iconvdata/testdata/alfabeta..UTF-32.BE: New file.
503         * iconvdata/testdata/alfabeta..UTF-32.LE: New file.
505 2001-04-11  Bruno Haible  <haible@clisp.cons.org>
507         * iconvdata/utf-32.c: New file.
508         * iconvdata/gconv-modules: Add entries for UTF-32, UTF-32LE, UTF-32BE.
509         * iconvdata/Makefile (modules): Add UTF-32.
510         (distribute): Add utf-32.c.
512 2001-04-11  Bruno Haible  <haible@clisp.cons.org>
514         * iconvdata/utf-16.c (PREPARE_LOOP): Initialize 'swap' after possibly
515         changing it in the state. After incrementing 'inptr', store it back.
516         * iconvdata/unicode.c (PREPARE_LOOP): After incrementing 'inptr',
517         store it back.
519 2001-04-11  Bruno Haible  <haible@clisp.cons.org>
521         * iconvdata/utf-16.c (gconv_init): Use MAX_NEEDED_FROM, not
522         MIN_NEEDED_FROM.
524 2001-04-11  David Mosberger  <davidm@hpl.hp.com>
526         * sysdeps/ia64/htonl.S: Drop superfluous "alloc".
527         * sysdeps/ia64/htons.S: Likewise.
529         * sysdeps/ia64/memset.S: Add unwind directives.
530         * sysdeps/ia64/strncpy.S: Likewise.
531         * sysdeps/ia64/strcat.S: Likewise.
533         * sysdeps/ia64/memccpy.S: Add unwind directives.  Drop superfluous
534         restore of ar.pfs.
535         * sysdeps/ia64/strchr.S: Likewise.
536         * sysdeps/ia64/memmove.S: Likewise.
537         * sysdeps/ia64/memcpy.S: Likewise.
538         * sysdeps/ia64/memcmp.S: Likewise.
539         * sysdeps/ia64/memchr.S: Likewise.
540         * sysdeps/ia64/strcmp.S: Likewise.
541         * sysdeps/ia64/strlen.S: Likewise.
542         * sysdeps/ia64/strcpy.S: Likewise.
543         * sysdeps/ia64/strncmp.S: Likewise.
545 2001-04-11  Jakub Jelinek  <jakub@redhat.com>
547         * wcsmbs/wchar.h (fgetwc, getwc, getwchar, fputwc, putwc, putwchar,
548         fgetws, fputws, ungetwc, getwc_unlocked, getwchar_unlocked,
549         fgetwc_unlocked, fputwc_unlocked, putwc_unlocked, putwchar_unlocked,
550         fgetws_unlocked, fputws_unlocked, wcsftime): Add __THROW.
552 2001-04-11  Andreas Jaeger  <aj@suse.de>
554         * sysdeps/mips/elf/start.S [__ASSEMBLY__]: Define it.
556 2001-04-11  Andreas Schwab  <schwab@suse.de>
558         * sysdeps/m68k/fpu/libm-test-ulps: Adjusted.
560 2001-04-11  Ulrich Drepper  <drepper@redhat.com>
562         * sysdeps/arm/stackinfo.h: New file.
564 2001-04-08  Thorsten Kukuk  <kukuk@suse.de>
566         * sunrpc/rpc_main.c: If we compile RPC thread safe, allow
567         rpcgen to generate thread safe code.
569 2001-04-10  Andreas Jaeger  <aj@suse.de>
571         * math/test-fenv.c (initial_tests): Protect FE_TONEAREST declaration.
573 2001-04-10  Ulrich Drepper  <drepper@redhat.com>
575         * elf/dl-minimal.c (__assert_fail): Change error string.  It's
576         most of the time no bug in ld.so.
577         (__assert_perror_fail): Likewise.
579 2001-04-11  Hans-Peter Nilsson  <hp@axis.com>
581         * sysdeps/generic/bits/fenv.h (fexcept_t): Change default type
582         from struct to unsigned int.
584 2001-04-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
586         * elf/elf.h (AT_DCACHEBSIZE, AT_ICACHEBSIZE, AT_UCACHEBSIZE,
587         AT_IGNOREPPC): New defines.
588         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Print them.
589         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_STD_AUXV):
590         Define for newer powerpc kernels.
591         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Use the standard
592         DL_FIND_ARG_COMPONENTS if __ASSUME_STD_AUXV is defined.
594 2000-4-10  kaz Kojima  <kkojima@rr.iij4u.or.jp>
596         * sysdeps/sh/stackinfo.h: New file.
598 2001-04-10  Ulrich Drepper  <drepper@redhat.com>
600         * locale/tst-C-locale.c (run_test): Add tests for locale objects.
601         * locale/newlocale.c (__newlocale): Correct setting __ctype_b,
602         __ctype_tolower, and __ctype_toupper elements.
604         * ctype/ctype_l.c: Fix definitions of __tolower_l and __toupper_l.
605         Reported by Konstantin Osipov <rabid@spylog.ru>.
607         * sysdeps/i386/fpu/libm-test-ulps: Add deltas for tgamma to help
608         the lousy AMD FPU.
610 2001-04-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
612         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: New file.
613         * sysdeps/unix/sysv/linux/powerpc/Dist: Add sys/ptrace.h.
614         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Delete wrong stuff.
615         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Correct typedefs.
617 2001-04-10  Ulrich Drepper  <drepper@redhat.com>
619         * elf/dl-deps.c (_dl_map_object_deps): Provide complete error
620         message.  Based on a patch by HJ Lu.
622 2001-04-10  Andreas Schwab  <schwab@suse.de>
624         * math/libm-test.inc (csinh_test): Don't require the invalid
625         exception for csinh (x + iNaN), but make it optional.
627 2001-04-09  David Mosberger  <davidm@hpl.hp.com>
629         * sysdeps/ia64/elf/start.S (_start): Add unwind directives.
631         * sysdeps/generic/entry.h [!__ASSEMBLY__]: Declare _start.
632         * sysdeps/ia64/elf/entry.h: New file.
633         * sysdeps/unix/sysv/linux/mips/entry.h [!__ASSEMBLY__]: Declare
634         __start.
635         * elf/rtld.c: Don't declare ENTRY_POINT.  Use ENTRY_POINT instead
636         of &ENTRY_POINT.
637         * sysdeps/generic/dl-sysdep.c: Likewise.
638         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
639         * sysdeps/ia64/elf/start.S: Save base address of register backing
640         store in __libc_ia64_register_backing_store_base.
642 2001-04-10  Martin Schwidefsky  <schwidefsky@de.ibm.com>
644         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Fix return
645         value of getcontext.
646         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
647         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Fix return
648         value of setcontext.
649         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
650         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Skip setcontext
651         call by changing the saved context.
653 2001-04-10  Ulrich Drepper  <drepper@redhat.com>
655         * sysdeps/alpha/stackinfo.h: New file.
656         * sysdeps/ia64/stackinfo.h: New file.
658 2001-04-10  Andreas Schwab  <schwab@suse.de>
660         * sysdeps/m68k/fpu/e_pow.c: Correct handling of some exceptional
661         values.
662         * sysdeps/m68k/fpu/e_scalb.c: Likewise.
664 2001-04-09  Ulrich Drepper  <drepper@redhat.com>
666         * sysdeps/sparc/sparc32/sparcv9/Dist: Add hp-timing.c.
667         * sysdeps/sparc/sparc64/Dist: Add hp-timing.c.
669         * libio/Makefile (distribute): Add fd_to_filename.h.
671 2001-04-05  David S. Miller  <davem@redhat.com>
673         Add hp-timing support for sparcv9/sparc64 targets.
674         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: New file
675         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: New file
676         * sysdeps/sparc/sparc64/hp-timing.c: New file
677         * sysdeps/sparc/sparc64/hp-timing.h: New file
678         * sysdeps/sparc/sparc32/sparcv9/Makefile: Build hp-timing.
679         * sysdeps/sparc/sparc64/Makefile: Likewise.
681 2001-04-09  Jakub Jelinek  <jakub@redhat.com>
683         * sysdeps/generic/fd_to_filename.h: New file.
684         * sysdeps/unix/sysv/linux/fd_to_filename.h: New file.
685         * libio/freopen.c (freopen): If FILENAME is NULL, try to get
686         filename from the open file descriptor.
687         * libio/freopen64.c (freopen64): Likewise.
689 2001-04-09  Bruno Haible  <haible@clisp.cons.org>
691         * misc/error.c (error): fflush stdout also if
692         error_print_progname != NULL.
693         (error_at_line): Likewise.
695 2001-04-07  Bruno Haible  <haible@clisp.cons.org>
697         * intl/gettextP.h (struct loaded_domain): Add codeset_cntr field.
698         (struct binding): Add codeset_cntr field.
699         (_nl_load_domain): Add domainbinding argument.
700         (_nl_init_domain_conv, _nl_free_domain_conv): New declarations.
701         (_nl_find_msg): New declaration, moved here from loadinfo.h.
702         * intl/loadinfo.h (struct loaded_l10nfile): Remove domainbinding field.
703         (_nl_make_l10nflist): Remove domainbinding argument.
704         (_nl_find_msg): Move declaration to gettextP.h.
705         * intl/bindtextdom.c (set_binding_values): Initialize ->codeset_cntr
706         to 0.  Increment it when ->codeset is changed.
707         * intl/dcigettext.c (DCIGETTEXT): Pass binding to _nl_find_msg.
708         (_nl_find_msg): Add domainbinding argument.  Reinitialize the converter
709         if domainbinding->codeset_cntr has been incremented.
710         * intl/finddomain.c (_nl_find_domain): Don't pass domainbinding to
711         _nl_make_l10nflist().  Pass it to _nl_load_domain() instead.
712         * intl/l10nflist.c (_nl_make_l10nflist): Remove domainbinding argument.
713         * intl/loadmsgcat.c (_nl_init_domain_conv): New function, extracted
714          from _nl_load_domain.  Append //TRANSLIT also when using libiconv.
715         (_nl_free_domain_conv): New function, extracted from _nl_unload_domain.
716         (_nl_load_domain): Add domainbinding argument.  Call
717         _nl_init_domain_conv.
718         (_nl_unload_domain): Call _nl_free_domain_conv.
719         * intl/Makefile (distribute): Add tst-codeset.sh, tstcodeset.po.
720         (test-srcs): Add tst-codeset.
721         (tests): Depend on tst-codeset.out.
722         (tst-codeset.out): New rule.
723         (CFLAGS-tst-codeset.c): New variable.
724         * intl/tst-codeset.sh: New file.
725         * intl/tstcodeset.po: New file.
726         * intl/tst-codeset.c: New file.
727         * locale/findlocale.c (_nl_find_locale): Update _nl_make_l10nflist
728         calls.
730 2001-04-07  Roland McGrath  <roland@frob.com>
732         * mach/msgserver.c (__mach_msg_server_timeout): Add an assert.
734 2001-03-31  Roland McGrath  <roland@frob.com>
736         * sysdeps/mach/hurd/fork.c: Skip NEWPROC just like NEWTASK when
737         copying send rights into child.  When we hit our name for our proc
738         port, just copy NEWPROC directly instead of repeating proc_task2proc
739         to install the child's port.
741 2001-04-08  Roland McGrath  <roland@frob.com>
743         * Makeconfig ($(common-objpfx)soversions.i): Grok entries with DEFAULT
744         in second column, to provide default values for third column.
745         * shlib-versions: Add comments about using DEFAULT in second column.
746         (s390x-.*-linux.*): Replace individual entries with a DEFAULT entry.
747         (cris-.*-linux.*): Likewise.
749 2001-04-09  Ulrich Drepper  <drepper@redhat.com>
751         * Makefile (distribute): Add scripts/documented.sh.
752         * scripts/documented.sh: New file.
754 2001-04-08  Hans-Peter Nilsson  <hp@axis.com>
756         * sysdeps/unix/sysv/linux/cris/Dist: New file.
757         * sysdeps/unix/sysv/linux/cris/Makefile: New file.
758         * sysdeps/unix/sysv/linux/cris/_G_config.h: New file.
759         * sysdeps/unix/sysv/linux/cris/bits/fcntl.h: New file.
760         * sysdeps/unix/sysv/linux/cris/bits/mman.h: New file.
761         * sysdeps/unix/sysv/linux/cris/bits/resource.h: New file.
762         * sysdeps/unix/sysv/linux/cris/brk.c: New file.
763         * sysdeps/unix/sysv/linux/cris/chown.c: New file.
764         * sysdeps/unix/sysv/linux/cris/clone.S: New file.
765         * sysdeps/unix/sysv/linux/cris/fchown.c: New file.
766         * sysdeps/unix/sysv/linux/cris/fcntl.c: New file.
767         * sysdeps/unix/sysv/linux/cris/fxstat.c: New file.
768         * sysdeps/unix/sysv/linux/cris/getegid.c: New file.
769         * sysdeps/unix/sysv/linux/cris/geteuid.c: New file.
770         * sysdeps/unix/sysv/linux/cris/getgid.c: New file.
771         * sysdeps/unix/sysv/linux/cris/getgroups.c: New file.
772         * sysdeps/unix/sysv/linux/cris/getresgid.c: New file.
773         * sysdeps/unix/sysv/linux/cris/getresuid.c: New file.
774         * sysdeps/unix/sysv/linux/cris/getrlimit.c: New file.
775         * sysdeps/unix/sysv/linux/cris/getrlimit64.c: New file.
776         * sysdeps/unix/sysv/linux/cris/getuid.c: New file.
777         * sysdeps/unix/sysv/linux/cris/lchown.c: New file.
778         * sysdeps/unix/sysv/linux/cris/lockf64.c: New file.
779         * sysdeps/unix/sysv/linux/cris/lxstat.c: New file.
780         * sysdeps/unix/sysv/linux/cris/mmap.S: New file.
781         * sysdeps/unix/sysv/linux/cris/mmap64.S: New file.
782         * sysdeps/unix/sysv/linux/cris/msgctl.c: New file.
783         * sysdeps/unix/sysv/linux/cris/profil-counter.h: New file.
784         * sysdeps/unix/sysv/linux/cris/register-dump.h: New file.
785         * sysdeps/unix/sysv/linux/cris/semctl.c: New file.
786         * sysdeps/unix/sysv/linux/cris/setegid.c: New file.
787         * sysdeps/unix/sysv/linux/cris/seteuid.c: New file.
788         * sysdeps/unix/sysv/linux/cris/setfsgid.c: New file.
789         * sysdeps/unix/sysv/linux/cris/setfsuid.c: New file.
790         * sysdeps/unix/sysv/linux/cris/setgid.c: New file.
791         * sysdeps/unix/sysv/linux/cris/setgroups.c: New file.
792         * sysdeps/unix/sysv/linux/cris/setregid.c: New file.
793         * sysdeps/unix/sysv/linux/cris/setresgid.c: New file.
794         * sysdeps/unix/sysv/linux/cris/setresuid.c: New file.
795         * sysdeps/unix/sysv/linux/cris/setreuid.c: New file.
796         * sysdeps/unix/sysv/linux/cris/setrlimit.c: New file.
797         * sysdeps/unix/sysv/linux/cris/setuid.c: New file.
798         * sysdeps/unix/sysv/linux/cris/shmctl.c: New file.
799         * sysdeps/unix/sysv/linux/cris/socket.S: New file.
800         * sysdeps/unix/sysv/linux/cris/sys/ucontext.h: New file.
801         * sysdeps/unix/sysv/linux/cris/syscall.S: New file.
802         * sysdeps/unix/sysv/linux/cris/sysdep.S: New file.
803         * sysdeps/unix/sysv/linux/cris/sysdep.h: New file.
804         * sysdeps/unix/sysv/linux/cris/vfork.S: New file.
805         * sysdeps/unix/sysv/linux/cris/xstat.c: New file.
807 2001-04-08  Hans-Peter Nilsson  <hp@axis.com>
809         * sysdeps/cris/Dist: New file.
810         * sysdeps/cris/Implies: New file.
811         * sysdeps/cris/Makefile: New file.
812         * sysdeps/cris/__longjmp.S: New file.
813         * sysdeps/cris/_mcount.S: New file.
814         * sysdeps/cris/bits/endian.h: New file.
815         * sysdeps/cris/bits/setjmp.h: New file.
816         * sysdeps/cris/bits/string.h: New file.
817         * sysdeps/cris/dl-machine.h: New file.
818         * sysdeps/cris/elf/start.S: New file.
819         * sysdeps/cris/machine-gmon.h: New file.
820         * sysdeps/cris/memcopy.h: New file.
821         * sysdeps/cris/memusage.h: New file.
822         * sysdeps/cris/setjmp.S: New file.
823         * sysdeps/cris/sysdep.h: New file.
824         * sysdeps/cris/wordcopy.c: New file.
826 2001-04-08  Hans-Peter Nilsson  <hp@axis.com>
828         * elf/elf.h: Add new relocations for CRIS.
830 2001-04-08  Hans-Peter Nilsson  <hp@axis.com>
832         * shlib-versions: Add cases for Linux on CRIS.
834 2001-04-08  Hans-Peter Nilsson  <hp@axis.com>
836         * configure.in (ASM_LINE_SEP tests): Handle CRIS assembly, with
837         ';' for comments and '@' for line separator.
839 2001-04-08  Hans-Peter Nilsson  <hp@axis.com>
841         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Fix
842         typo; s/==/=/ for assignment.
844 2001-04-08  Hans-Peter Nilsson  <hp@axis.com>
846         * malloc/Makefile: Correct comment; mtrace is Perl, not AWK.
848 2001-04-08  Hans-Peter Nilsson  <hp@axis.com>
850         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): Check for
851         empty input before checking full output.
853 2001-04-08  Hans-Peter Nilsson  <hp@axis.com>
855         * iconv/gconv.c (__gconv): Don't derefer parameter cd before
856         checking if == -1L.
858 2001-04-08  Ulrich Drepper  <drepper@redhat.com>
860         * inet/rexec.c (rexec_af): Avoid calling perror with errno being set.
862 2001-04-07  Stephen L Moshier  <moshier@mediaone.net>
864         * sysdeps/ieee754/ldbl-128/e_logl.c: Correct infinity and NaN
865         return values.
867 2001-04-07  Ulrich Drepper  <drepper@redhat.com>
869         * stdlib/tst-setcontext.c (main): Add a test for setcontext.
871         * sysdeps/unix/sysv/linux/i386/getcontext.S: New file.
872         * sysdeps/unix/sysv/linux/i386/setcontext.S: New file.
873         * sysdeps/unix/sysv/linux/i386/makecontext.S: New file.
874         * sysdeps/unix/sysv/linux/i386/swapcontext.S: New file.
875         * sysdeps/unix/sysv/linux/i386/ucontext_i.h: New file.
876         * sysdeps/unix/sysv/linux/i386/Dist: Add ucontext_i.h.
878 2001-04-07  Andreas Jaeger  <aj@suse.de>
880         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Use sincos
881         instead of separate sin and cos.
882         (__ieee754_j1l): Likewise.
884 2001-04-06  Ulrich Drepper  <drepper@redhat.com>
886         * sysdeps/ia64/abort-instr.h: New file.  Code by David Mosberger.
888         * sysdeps/ia64/atomicity.h: New file.  Copied from libstdc++.
890         * sysdeps/i386/i486/atomicity.h: Clean up the asms.
892         * sysdeps/generic/e_scalb.c: Don't use FE_INVALID unless it's
893         available.
894         * sysdeps/generic/e_scalbf.c: Likewise.
895         * sysdeps/generic/e_scalbl.c: Likewise.
896         Patch by Mark Hatle <fray@mvista.com>.
898 2001-04-05  David S. Miller  <davem@redhat.com>
900         * sysdeps/sparc/abort-instr.h: New file.
902 2001-04-05  Matt Wilson  <msw@redhat.com>
904         * sysdeps/unix/sysv/linux/alpha/getsysstats.c (GET_NPROCS_PARSER):
905         added code to parse new 2.4 format.
906         (GET_NPROCS_CONF_PARSER): Likewise.
908 2001-04-05  David S. Miller  <davem@redhat.com>
910         * scripts/config.sub: Recognize sparcv9b like sparcv9.
911         * configure.in: Add sparcv9b.
912         * sysdeps/sparc/sparc32/sparcv9b/Implies: New file
913         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: New file
914         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: New file
916 2001-04-06  David Mosberger  <davidm@hpl.hp.com>
918         * stdlib/tst-setcontext.c: Move st2[] to global scope.
919         (f2): Verify that stack pointer is inside st2[].
921         * sysdeps/unix/sysv/linux/ia64/getcontext.S: It helps to save r12.
922         * sysdeps/unix/sysv/linux/ia64/setcontext.S: It helps to restore r12.
924 2001-04-06  Ulrich Drepper  <drepper@redhat.com>
926         * timezone/antarctica: Update from tzdata2001b.
927         * timezone/asia: Likewise.
928         * timezone/australasia: Likewise.
929         * timezone/europe: Likewise.
930         * timezone/northamerica: Likewise.
932         * iconv/iconv_open.c: Move strip and upstr definitions...
933         * iconv/gconv_charset.h: ...here.  New file.
934         * iconv/gconv_db.c (once): Move to file level.
935         (do_lookup_alias): Split out from __gconv_find_transform.
936         (__gconv_find_transform): Call do_lookup_alias.
937         (__gconv_loopup_alias): New function.
938         * locale/langinfo.h: Define _NL_*_CODESET values for all categories
939         but LC_CTYPE.
940         * locale/categories.def: Add entries for new _NL_*_CODESET values.
941         * locale/C-ctype.c: Use _nl_C_codeset to initialize CODESET entry.
942         * locale/C-address.c: Initialize _NL_*_CODESET element.
943         * locale/C-collate.c: Likewise.
944         * locale/C-identification.c: Likewise.
945         * locale/C-measurement.c: Likewise.
946         * locale/C-messages.c: Likewise.
947         * locale/C-monetary.c: Likewise.
948         * locale/C-name.c: Likewise.
949         * locale/C-numeric.c: Likewise.
950         * locale/C-paper.c: Likewise.
951         * locale/C-telephone.c: Likewise.
952         * locale/C-time.c: Likewise.
953         * locale/localeinfo.h: Declare _nl_C_codeset.
954         * locale/C_name.c: Define _nl_C_codeset.
955         * locale/findlocale.c: Before accepting locale check that the used
956         charset does not conflict with what the locale name said.
957         * locale/programs/ld-address.c: Emit codeset information.
958         * locale/programs/ld-collate.c: Likewise.
959         * locale/programs/ld-identification.c: Likewise.
960         * locale/programs/ld-measurement.c: Likewise.
961         * locale/programs/ld-messages.c: Likewise.
962         * locale/programs/ld-monetary.c: Likewise.
963         * locale/programs/ld-name.c: Likewise.
964         * locale/programs/ld-numeric.c: Likewise.
965         * locale/programs/ld-paper.c: Likewise.
966         * locale/programs/ld-telephone.c: Likewise.
967         * locale/programs/ld-time.c: Likewise.
969         * localedata/tests-mbwc/tst_funcs.h (TST_HEAD_LOCALE): It is an error
970         if the locale data couldn't be found.
972         * string/Makefile: Define tst-strxfrm-ENV.
974         * ysdeps/unix/sysv/linux/ia64/getcontext.S: Fix comment.
976 2001-04-06  Andreas Jaeger  <aj@suse.de>
978         * include/sys/profil.h: New file.
980         * dlfcn/modatexit.c: Add prototypes to silence GCC.
981         * dlfcn/modcxaatexit.c: Likewise.
982         * elf/globalmod1.c: Likewise.
984 2001-04-05  David S. Miller  <davem@redhat.com>
986         * elf/elf.h (HWCAP_SPARC_ULTRA3): Define it.
987         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Add it to
988         capability flags table and HWCAP_IMPORTANT, increase
989         _DL_HWCAP_COUNT to 6.
990         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
992 2001-04-04  David Mosberger  <davidm@hpl.hp.com>
994         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Fix
995         initialization of stack_end (bug reported by Zheng Gengbin
996         <gzheng@students.uiuc.edu>).
998 2001-04-05  Ulrich Drepper  <drepper@redhat.com>
1000         * sysdeps/i386/fpu/libm-test-ulps: Relax errors for asinl.
1002 2001-04-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1004         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: New file.
1006 2001-04-05  Ulrich Drepper  <drepper@redhat.com>
1008         * sysdeps/ieee754/ldbl-96/e_asinl.c: Correct handling of +-Inf.
1009         * sysdeps/i386/fpu/e_asinl.S: Removed.  Too inaccurate.
1011         * login/tst-utmp.c: Make file usable again in tst-utmpx.c.
1013 2001-04-04  Ulrich Drepper  <drepper@redhat.com>
1015         * sysdeps/unix/sysv/aix/dl-libc.c: Don't use the ELF version,
1016         define simple replacements here.  Patch by Michael Keezer.
1018         * sysdeps/ieee754/ldbl-128/e_logl.c: New file.
1019         * sysdeps/ieee754/ldbl-96/e_asinl.c: New file.
1020         Contributed by Stephen L Moshier <moshier@mediaone.net>.
1022         * posix/fnmatch_loop.c: Undefine NEW_PATTERN when it is not used
1023         anymore.
1025 2001-04-01  Andreas Jaeger  <aj@suse.de>
1027         * sysdeps/generic/s_nextafter.c (NO_LONG_DOUBLE): Add nexttowardl
1028         alias.
1030         * sysdeps/generic/s_fma.c (NO_LONG_DOUBLE): Add fmal alias.
1032 2001-04-04  Ulrich Drepper  <drepper@redhat.com>
1034         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Add ucontext_i.h.
1035         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
1037 2001-04-04  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1039         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: New file.
1040         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: New file.
1041         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: New file.
1042         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: New file.
1043         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: New file.
1044         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: New file.
1045         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: New file.
1046         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: New file.
1047         * sysdeps/unix/sysv/linux/s390/swapcontext.c: New file.
1049 2001-04-04  Andreas Jaeger  <aj@suse.de>
1051         * sysdeps/powerpc/dl-machine.h (ELF_MACHINE_NO_REL): Move to right
1052         place.
1054 2001-04-04  Ulrich Drepper  <drepper@redhat.com>
1056         * sunrpc/rpc_scan.c (symbols): Add entry for HYPER.
1057         * sunrpc/rpc_scan.h (enum tok_kind): Add TOK_HYPER.
1058         * sunrpc/rpc_parse.c (get_type): Handle TOK_HYPER.
1059         (unsigned_dec): Likewise.
1060         Patch by atai@jezebel.dreamhost.com.
1062         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Pass
1063         pointer to int as last parameter of yp_match.
1064         Patch by kanazawa@flab.fujitsu.co.jp.
1066 2001-04-03  Ulrich Drepper  <drepper@redhat.com>
1068         * resolv/netdb.h (gai_strerror): Make return value const.
1069         * sysdeps/generic/gai_strerror.c (gai_strerror): Likewise.
1070         * sysdeps/posix/gai_strerror.c (gai_strerror): Likewise.
1071         Add strings for new error values.
1073 2001-03-29  Michael Keezer  <mkeezer@redhat.com>
1075         * posix/tst-gnuglob.c: Added ifdef _DIRENT_HAVE_D_TYPE.
1076         * login/tst-utmp.c: Handle case where ut_tv is not available but
1077         ut_time is.
1078         * sysdeps/unix/sysv/aix/utmpx.h: New file.
1079         * sysdeps/unix/sysv/aix/bits/utmpx.h: Added
1080         _HAVE_UT_TYPE/PID/ID/TV/HOST defines.
1081         * sysdeps/unix/sysv/aix/libc-start.c: Removed temp code and made stub.
1082         * sysdeps/unix/sysv/aix/gettimeofday.c: New file added routines
1083         to access RTCU timer reg.
1084         * sysdeps/unix/sysv/aix/Makefile: Remove /usr/lib/crt0.o
1085         added dl-libc, dl-open,dl-sym, dl-close to misc.
1086         * sysdeps/unix/sysv/aix/start.c: New file.  Start code.
1087         * sysdeps/unix/sysv/aix/dlldr.h: New file.  AIX __loadx defines.
1088         * sysdeps/unix/sysv/aix/dl-close.c: New file.  AIX dl-close.
1089         * sysdeps/unix/sysv/aix/dl-open.c: New file.  AIX dl-open.
1090         * sysdeps/unix/sysv/aix/dl-sym.c: New file.  AIX dl-sym.
1091         * sysdeps/unix/sysv/aix/dl-libc.c: New file.  libc_dl-xxx support.
1092         * sysdeps/generic/strtoll.c: Added SHLIB_COMPAT(libc,GLIBC_2_0,
1093         GLIBC_2_2).
1094         * sysdeps/generic/strtoull.c: Likewise.
1095         * sysdeps/powerpc/ppc-mcount.S: Added nop after bl instruction.
1096         * sysdeps/unix/sysv/aix/powerpc/memset.c: New file to include
1097         sysdeps/generic/memset.c.
1098         * sysdeps/unix/sysv/aix/getpeername.c: Define __getpeername.
1100 2001-04-03  Ulrich Drepper  <drepper@redhat.com>
1102         * iconv/Makefile (CFLAGS-charmap.c): Add -DNEED_NULL_POINTER.
1103         * locale/programs/charmap.c: Define null_pointer if
1104         NEED_NULL_POINTER is defined.
1106         * misc/dirname.c (dirname): Handle multiple slashes correctly.
1108 2001-04-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1110         * sysdeps/s390/s390-64/initfini.c: Fix __gmon_start__ GOT access.
1112 2001-04-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1114         * sysdeps/s390/s390-32/bcopy.S: Optimize for speed.
1115         * sysdeps/s390/s390-64/bcopy.S: Likewise.
1116         * sysdeps/s390/s390-32/mempcy.S: Likewise.
1117         * sysdeps/s390/s390-64/memcpy.S: Likewise.
1119 2001-04-02  Bruno Haible  <haible@clisp.cons.org>
1121         * manual/message.texi (Advanced gettext functions): More specific
1122         syntax in the plural formula examples.
1124 2001-04-02  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1126         * sysdeps/powerpc/atomicity.h: Silence warnings.
1127         * sysdeps/powerpc/dl-machine.h: Likewise.
1128         * sysdeps/powerpc/register-dump.h: Likewise.
1129         * sysdeps/powerpc/fpu/s_lrint.c: Likewise.
1131 2001-04-02  Andreas Jaeger  <aj@suse.de>
1133         * misc/tst-dirname.c (main): Add more tests, derived from a bug
1134         report by Michael Kerrisk <mtk16@ext.canterbury.ac.nz>.
1136 2001-04-01  Andreas Jaeger  <aj@suse.de>
1138         * debug/xtrace.sh (pcprofileso): Use SLIBDIR since libpcprofile.so
1139         is installed there.
1140         * malloc/memusage.sh (memusageso): Likewise for libmemusage.so.
1142 2001-04-01  H.J. Lu  <hjl@gnu.org>
1144         * posix/annexc.c (macrofile): Renamed from TMPFILE and set to
1145         tmpnam (NULL).
1146         * stdlib/isomac.c (macrofile): Likewise.
1148 2001-03-30  Thorsten Kukuk  <kukuk@suse.de>
1150         * inet/rcmd.c: Allow AF_UNSPEC as parameter.
1151         * nis/ypclnt.c (yp_all): Print error message only at last try,
1152         check for protocoll error only if we don't have a network error.
1154 2001-04-02  Andreas Schwab  <schwab@suse.de>
1156         * resolv/res_data.c (res_isourserver): Fix cast.
1158 2001-04-02  Andreas Jaeger  <aj@suse.de>
1160         * sysdeps/unix/sysv/linux/hppa/umount.c: Add prototype for
1161         __umount2.
1163         * sysdeps/i386/dl-machine.h (RTLD_START): Don't use multi-line
1164         strings.
1165         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Likewise.
1167         * sysdeps/ieee754/dbl-64/uroot.h: Add missing braces arount
1168         initializers.
1169         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Likewise.
1171         * elf/rtld.c (print_statistics)[!HP_TIMING_NONAVAIL]: Avoid
1172         warning about unused variable.
1174         * string/string.h (strndupa): Add cast for C++ conformance.
1175         (strdupa): Likewise.
1176         Fixes PR libc/2173, reported by tbrowder@home.com.
1178 2001-03-30  Roland McGrath  <roland@frob.com>
1180         * sysdeps/mach/hurd/Makefile ($(link-rpcuserlibs)): Don't append
1181         options after $(build-module), which is no longer a single command.
1182         (LDFLAGS-link-rpcuserlibs): New variable to hold those options.
1183         (LDFLAGS-libmachuser-link.so, LDFLAGS-libhurduser-link.so): New
1184         variables using it.  Reported by Mark Kettenis <kettenis@gnu.org>.
1186 2001-03-11  Roland McGrath  <roland@frob.com>
1188         * elf/rtld.c (dl_main): Add cast to quiet warning.
1189         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1190         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
1191         (__gconv_read_conf): Likewise.
1192         * iconv/gconv_db.c (gen_steps): Likewise.
1193         (__gconv_find_transform): Likewise.
1194         * locale/programs/charmap-dir.c (fopen_uncompressed): Likewise.
1195         (fopen_uncompressed): Use const in second argument's type.
1197 2001-03-11  Roland McGrath  <roland@frob.com>
1199         * sysdeps/mach/hurd/dl-sysdep.c (__writev): New function.
1201         * mach/mach_error.h: Fix ancient #endif syntax.
1202         * hurd/hurdmalloc.c: Likewise.
1204         * sysdeps/generic/atomicity.h (exchange_and_add, atomic_add,
1205         compare_and_swap): Add volatile qualifier to first arg, to bring
1206         these prototypes in line with all the other implementations.
1207         Add a #warning to remind the builder that these are not atomic.
1209 2001-03-04  Roland McGrath  <roland@frob.com>
1211         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Use innermore first
1212         member of TEMP_F so its type is _IO_FILE * as expected.
1214         * hurd/fopenport.c (seekio): Conditionalize type of POS argument
1215         on [USE_IN_LIBIO].  Check the value for overflow, since for libio
1216         it might exceed off_t's range.
1218 2001-02-25  Roland McGrath  <roland@frob.com>
1220         * sysdeps/mach/hurd/sysd-stdio.c (__stdio_reopen): Use prototype.
1221         * sysdeps/unix/bsd/getpt.c (__posix_openpt): Likewise.
1223         * sysdeps/mach/hurd/i386/intr-msg.h (SYSCALL_EXAMINE): Make this a
1224         macro instead of an inline function,
1225         (MSG_EXAMINE): Likewise.
1227         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): Remove extraneous ##.
1229         * hurd/get-host.c: Include <string.h> for decls of built-ins.
1230         * hurd/hurdchdir.c: Likewise.
1231         * sysdeps/mach/hurd/i386/sigreturn.c: Likweise.
1232         * sysdeps/mach/hurd/opendir.c: Likewise.
1234         * mach/mach_init.c: Include <unistd.h> for _exit decl.
1236         * mach/errsystems.awk: Give output file a trailing newline.
1238         * mach/Machrules (MIG): Prepend CC='${CC}' to the mig command, so that
1239         the script will use our compiler for the cpp stage.
1241         With --enable-all-warnings we get a whole bunch of warnings,
1242         and these are just a few fixes; there are more needed to silence it.
1243         * mach/mach/mig_support.h (__mig_strncpy, mig_strncpy): Add extern
1244         decls before extern inline defns to quiet gcc warning.
1245         * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp): Likewise.
1246         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Likewise.
1248 2001-03-31  Andreas Jaeger  <aj@suse.de>
1250         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWHDLC): Added.
1251         (ARPHRD_HDLC): Define as alias for ARPHRD_CISCO.
1252         (ARPHRD_CISCO): New.
1253         Changes from Linux 2.4.3.
1255 2001-03-30  Isamu Hasegawa  <isamu@yamato.ibm.com>
1257         * posix/regex.c: Avoid an access violation if malloc failes.
1259 2001-03-30  Andreas Jaeger  <aj@suse.de>
1261         * sysdeps/alpha/ldiv.S (ldiv): Add alias for imaxdiv.
1263 2001-03-29  Ulrich Drepper  <drepper@redhat.com>
1265         * posix/regex.c: Remove unnecessary ifs.
1267         * math/bits/mathcalls.h: Remove infnan declaration.
1269 2001-03-29  H.J. Lu  <hjl@gnu.org>
1271         * include/endian.h: Define BIG_ENDI, LITTLE_ENDI, HIGH_HALF,
1272         and LOW_HALF only if _LIBC is defined and _ISOMAC is not defined.
1273         * stdlib/isomac.c (fmt): Define _LIBC and _ISOMAC.
1274         .
1275 2001-03-29  Isamu Hasegawa  <isamu@yamato.ibm.com>
1277         * posix/regex.c: Fix typo and add a sentinel.
1279 2001-03-29  Ulrich Drepper  <drepper@redhat.com>
1281         * sysdeps/unix/sysv/linux/shm_open.c: Open new file always with
1282         O_NOFOLLOW.  Suggested by Christoph Roland.
1284 2001-03-27  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1286         * sysdeps/s390/bits/string.h: New unified 31/64 bit string.h.
1287         * sysdeps/s390/s390-32/bits/string.h: Remove.
1288         * sysdeps/s390/s390-64/bits/string.h: Remove.
1289         * sysdeps/s390/s390-32/strcmp.S: New file.
1290         * sysdeps/s390/s390-64/strcmp.S: New file.
1292 2001-03-27  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1294         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix typo.
1295         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
1297 2001-03-27  Ulrich Drepper  <drepper@redhat.com>
1299         * version.h (VERSION): Bump to 2.2.3.
1301         * stdlib/isomac.c (fmt): Don't define _LIBC.
1302         * include/endian.h: Define BIG_ENDI, LITTLE_ENDI, HIGH_HALF, and
1303         LOW_HALF only if _LIBC is defined.
1305         * sysdeps/i386/fpu/libm-test-ulps: Slight adjustment of yn() error.
1307         * posix/fnmatch_loop.c (FCT): Handle !() after * special like @()
1308         and +().
1309         * posix/tst-fnmatch.input: Add test cases for matching empty strings.
1311         * sysdeps/ieee754/dbl-64/endian.h: Removed.  Move definitions...
1312         * include/endian.h: ...to here.
1314 2001-03-27  kaz Kojima  <kkojima@rr.iij4u.or.jp>
1316         * sysdeps/sh/sys/ucontext.h (NFREG): Rename to NFPREG.
1317         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (NFREG): Likewise.
1319 2001-03-27  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1321         * sysdeps/unix/sysv/linux/s390/ldconfig.h: Fix typo.
1323 2001-03-26  Ulrich Drepper  <drepper@redhat.com>
1325         * sysdeps/ia64/fpu/Dist: Add new files to distribute.
1326         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Likewise.
1327         * sysdeps/unix/sysv/linux/ia64/Dist: Likewise.
1329         * gmon/Makefile (headers): Add sys/profil.h.
1331 2001-03-18  Andreas Jaeger  <aj@suse.de>
1333         * manual/install.texi (Tools for Compilation): Advise to use GCC
1334         2.95.3.
1335         (Supported Configurations): Mention s390x.
1337 2001-03-26  Ben Collins  <bcollins@debian.org>
1339         * sysdeps/unix/sysv/linux/mips/bits/mman.h: Add MAP_* and MADV_*
1340         defines to match other architectures.
1342 2001-03-26  Ulrich Drepper  <drepper@redhat.com>
1344         * libio/Makefile (tests): Add tst-ext.
1345         * libio/tst-ext.c: New file.
1347         * libio/iosetvbuf.c (_IO_setvbuf): Clear line buffer flag for _IONBF.
1349 2001-03-25  Ulrich Drepper  <drepper@redhat.com>
1351         Add changes which were in this form in the original patch by
1352         Eric Norum <eric.norum@usask.ca>.
1353         * include/rpc/rpc.h: Remove svc_fdset, rpc_createerr, svc_pollfd, and
1354         svc_max_pollfd.
1355         * sunrpc/rpc/rpc.h: Declare __rpc_thread_svc_fdset,
1356         __rpc_thread_createerr, __rpc_thread_svc_pollfd, and
1357         __rpc_thread_svc_max_pollfd.
1358         Define svc_fdset, get_rpc_createerr, svc_pollfd, and
1359         svc_max_pollfd.
1360         * sunrpc/rpc_thread.c: Handle first thread special, it uses the
1361         global variables.
1362         Define __rpc_thread_svc_fdset, __rpc_thread_createerr,
1363         __rpc_thread_svc_pollfd, and __rpc_thread_svc_max_pollfd.
1364         * sunrpc/Versions [libc] (GLIBC_2.2.3): Export  __rpc_thread_svc_fdset,
1365         __rpc_thread_createerr, __rpc_thread_svc_pollfd, and
1366         __rpc_thread_svc_max_pollfd.
1367         * sunrpc/clnt_gen.c: Replace use of rpc_createerr by call to
1368         get_rpc_createerr.
1369         * sunrpc/clnt_perr.c: Likewise.
1370         * sunrpc/clnt_simp.c: Likewise.
1371         * sunrpc/clnt_tcp.c: Likewise.
1372         * sunrpc/clnt_udp.c: Likewise.
1373         * sunrpc/clnt_unix.c: Likewise.
1374         * sunrpc/pm_getport.c: Likewise.
1376         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): getgroups32
1377         syscall checks for negative n so don't test here as well.
1379 2001-03-23  Jes Sorensen  <jes@linuxcare.com>
1381         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Moved to ...
1382         * sysdeps/ia64/sysdep.h: ...here.
1384         * sysdeps/ia64/sysdep.h (LOCAL_ENTRY): Define.
1385         * sysdeps/ia64/sysdep.h (LOCAL_LEAF): Define.
1387         * sysdeps/ia64/_mcount.S (_mcount_ret_helper): Use LOCAL_LEAF() to
1388         declare instead of LEAF().  Suggestion from David Mosberger.
1390 2001-03-21  David Mosberger  <davidm@hpl.hp.com>
1392         * sysdeps/unix/sysv/linux/ia64/sysdep.h (CALL_MCOUNT): Add unwind
1393         directives.
1394         (PSEUDO): Drop .psr and .lsb directives.
1396         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Ditto.  Add unwind
1397         directives.
1398         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Ditto.
1400         * sysdeps/ia64/elf/start.S: Misc cleanup: remove .psr and .lsb
1401         directives etc.
1402         * sysdeps/unix/sysv/linux/ia64/brk.S: Ditto.
1403         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: Ditto.
1404         * sysdeps/ia64/_mcount.S: Remove .psr and .lsb directives (no
1405         longer needed).  Add unwind directives.
1407         * sysdeps/ia64/sysdep.h: Define ASM_UNW_PRLG_RP, ASM_UNW_PRLG_PFS,
1408         ASM_UNW_PRLG_PSP, ASM_UNW_PRLG_PR, and ASM_UNW_PRLG_GRSAVE.
1410 2001-03-21  Paul Eggert  <eggert@twinsun.com>
1412         * posix/regex.h (RE_INVALID_INTERVAL_ORD): New macro.
1413         (RE_SYNTAX_POSIX_EGREP): Use it.
1414         * posix/regex.c (regex_compile): Implement it.
1416 2001-03-21  Paul Eggert  <eggert@twinsun.com>
1418         * posix/regex.c (GET_UNSIGNED_NUMBER): Check for overflow.
1419         Rewrite to avoid duplicate code.
1421 2001-03-21  H.J. Lu  <hjl@gnu.org>
1423         * elf/Makefile (tests): Don't depend on $(objpfx)tst-pathopt.out
1424         for cross-compiling.
1425         ($(objpfx)tst-pathopt.out): Undo the last change.
1427 2001-03-24  Mark Kettenis  <kettenis@gnu.org>
1429         * sysdeps/mach/hurd/i386/bits/sigcontext.h (sc_sp, sc_fp, sc_pc,
1430         sc_ps): Define as aliases for sc_uesp, sc_ebl, sc_eip and sc_efl.
1432         * sysdeps/mach/hurd/i386/init-first.c: Include <assert.h>.
1433         (_dl_argv): Declare.
1434         (init) [SHARED]: Readjust _dl_argv if we switched to a new stack.
1436 2001-03-22  Andreas Jaeger  <aj@suse.de>
1438         * iconvdata/Makefile (generated): Add iconv-test.xxx.
1440         * posix/Makefile (generated): Add bug-regex2.mtrace and
1441         bug-regex2-mem.
1443 2001-03-21  Ulrich Drepper  <drepper@redhat.com>
1445         * csu/version.c (__gnu_get_libc_release): Add prototype.
1446         (__gnu_get_libc_version): Likewise.
1447         * include/gnu/libc-version.h: Remove prototypes for not exported
1448         functions.
1450 2001-03-21  Jes Sorensen  <jes@linuxcare.com>
1452         * sysdeps/unix/sysv/linux/ia64/makecontext.c: Include libintl.h
1453         for internationalized printfs to work.
1455 2001-03-09  Bruno Haible  <haible@clisp.cons.org>
1457         * intl/dcigettext.c (transmem_block_t): Change to unsigned char, to
1458         avoid compiler warning.
1459         (_nl_find_msg): Add casts to avoid compiler warnings.
1461 2001-03-21  Ulrich Drepper  <drepper@redhat.com>
1463         * gmon/Makefile (routines): Add sprofil.
1464         (tests): Add tst-sprofil.
1465         (noprof): Add sprofil.
1466         * gmon/Versions [libc] (GLIBC_2.2.3): Add sprofil.
1468 2001-03-20  David Mosberger  <davidm@hpl.hp.com>
1470         * sysdeps/generic/sprofil.c: New file.
1471         * sysdeps/posix/sprofil.c: New file.
1472         * gmon/tst-sprofil.c: New file.
1473         * gmon/sys/profil.h: New file.
1475 2001-03-20  Andreas Schwab  <schwab@suse.de>
1477         * include/unistd.h: Adjust prototype of __gethostname.
1479 2001-03-20  Jakub Jelinek  <jakub@redhat.com>
1481         * sysdeps/sparc/stackinfo.h: New file.
1483 2001-03-21  Andreas Jaeger  <aj@suse.de>
1485         * elf/global.c (main): Use proper prototype.
1487 2001-03-20  Ulrich Drepper  <drepper@redhat.com>
1489         * sunrpc/Makefile (routines): Add rpc_thread.
1490         (CPPFLAGS): Add -D_RPC_THREAD_SAFE.
1491         * sunrpc/rpc_thread.c: New file.
1492         * sunrpc/Versions [libc] (GLIBC_2.2.3): Export __rpc_thread_destroy.
1493         * sunrpc/auth_none.c: Don't use global variables.  Access state in
1494         thread-local storage.
1495         * sunrpc/clnt_perr.c: Likewise.
1496         * sunrpc/clnt_raw.c: Likewise.
1497         * sunrpc/clnt_simp.c: Likewise.
1498         * sunrpc/key_call.c: Likewise.
1499         * sunrpc/rpc_common.c: Likewise.
1500         * sunrpc/svc.c: Likewise.
1501         * sunrpc/svc_raw.c: Likewise.
1502         * sunrpc/svc_simple.c: Likewise.
1503         * sunrpc/svcauth_des.c: Likewise.
1504         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
1505         _HURD_THREADVAR_RPC_VARS.
1506         * sysdeps/generic/bits/libc-tsd.h: Mention _LIBC_TSD_KEY_RPC_VARS.
1507         * include/rpc/rpc.h: Define data structures for internal thread-local
1508         "global" variables.
1509         Based on patches by Eric Norum <eric.norum@usask.ca>.
1511         * elf/dl-load.c: Various little optimizations.
1513         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Return
1514         LINUX_LINK_MAX only if the statfs function is not implemented for
1515         the filesystem.
1517         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Return
1518         LINUX_LINK_MAX only if the fstatfs function is not implemented for
1519         the filesystem.
1521 2001-03-19  Ulrich Drepper  <drepper@redhat.com>
1523         * elf/dl-dst.h (DL_DST_COUNT): Add __builtin_expect.
1525         * elf/dl-load.c (_dl_dst_count): Make DST recognition more robust.
1526         (_dl_dst_substitute): Likewise.
1528 2001-03-17  Bruno Haible  <haible@clisp.cons.org>
1530         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC]: Use fstat, not fstat64.
1532 2001-03-17  Bruno Haible  <haible@clisp.cons.org>
1534         * intl/gettextP.h (struct expression): Add operators lnot, less_than,
1535         greater_than, less_or_equal, greater_or_equal. Replace args2/args3
1536         union by a 'nargs' counter and an 'args[]' array.
1537         * intl/plural.y: Don't include stdarg.h.
1538         (new_exp): Take an array of arguments instead of varargs.
1539         (new_exp_0, new_exp_1, new_exp_2, new_exp_3): New functions.
1540         ('?' ':'): Make right-associative.
1541         (EQUOP2): New token, replaces '=' and '!'.
1542         (CMPOP2): New token.
1543         (ADDOP2): New token, replaces '+' and '-'.
1544         (MULOP2): New token, replaces '*', '/' and '%'.
1545         ('!'): New token.
1546         (exp): Add rules for CMPOP2 and '!'. Don't call YYABORT.
1547         (start): Call YYABORT here.
1548         (FREE_EXPRESSION): Update.
1549         (yylex): Don't skip "\\n". Recognize comparison and '!' operators.
1550         Update for new token symbols.
1551         * intl/loadmsgcat.c (plvar, plone, germanic_plural,
1552         init_germanic_plural): Update.
1553         * intl/dcigettext.c (_nl_find_msg): Optimize for space.
1554         (plural_eval): Recognize comparison and '!' operators. Optimize for
1555         space.
1557 2001-03-10  Bruno Haible  <haible@clisp.cons.org>
1559         * intl/loadmsgcat.c (_nl_load_domain): locale_charset() doesn't return
1560         NULL any more.
1562 2001-01-05  Bruno Haible  <haible@clisp.cons.org>
1564         * intl/loadmsgcat.c: Include headers needed for alloca().
1565         (freea): New macro.
1566         (_nl_load_domain): Add fallback code for platforms lacking alloca.
1567         * intl/localealias.c: (ADD_BLOCK, FREE_BLOCK): Remove macros.
1568         (freea): New macro.
1569         (read_alias_file): Simplify fallback code for platforms lacking
1570         alloca.
1572 2001-01-07  Bruno Haible  <haible@clisp.cons.org>
1574         * intl/gettextP.h (__gettextdebug): Remove declaration.
1575         (__gettext_free_exp, __gettextparse): Convert prototype to K&R C
1576         syntax.
1577         (gettext_free_exp__, gettextparse__): New non-libc declarations.
1578         * intl/plural.y [!_LIBC]: Define gettextparse__, gettext_free_exp__,
1579         not __gettextparse, __gettext_free_exp.
1580         * intl/loadmsgcat.c [!_LIBC]: Use gettextparse__, not __gettextparse.
1582 2001-02-24  Bruno Haible  <haible@clisp.cons.org>
1584         * intl/dcigettext.c: Update comment about HAVE_LOCALE_NULL.
1586 2001-01-05  Bruno Haible  <haible@clisp.cons.org>
1588         * intl/loadmsgcat.c (_nl_load_domain): Add fallback code for platforms
1589         lacking strtoul, like SunOS4.
1591 2001-01-05  Bruno Haible  <haible@clisp.cons.org>
1593         * intl/l10nflist.c (_nl_normalize_codeset): Use tolower, not _tolower.
1595 2001-01-05  Bruno Haible  <haible@clisp.cons.org>
1597         * intl/bindtextdom.c (set_binding_values): Convert prototype to K&R C
1598         syntax.
1599         * intl/dcigettext.c (transcmp): Convert to K&R C syntax.
1600         * intl/explodename.c (_nl_find_language): Convert to K&R C syntax.
1601         * intl/plural.y (__gettext_free_exp, yylex, yyerror): Convert to K&R C
1602         syntax.
1604 2001-01-07  Bruno Haible  <haible@clisp.cons.org>
1606         * intl/gettextP.h (gettext__, dgettext__, dcgettext__, textdomain__,
1607         bindtextdomain__, bind_textdomain_codeset__): New declarations, from
1608         old libgettext.h.
1609         * intl/bindtextdom.c: Include libgnuintl.h instead of libgettext.h.
1610         * intl/dcgettext.c: Likewise.
1611         * intl/dcigettext.c: Likewise.
1612         * intl/dcngettext.c: Likewise.
1613         * intl/dngettext.c: Likewise.
1614         * intl/finddomain.c: Likewise.
1615         * intl/ngettext.c: Likewise.
1616         * intl/textdomain.c: Likewise.
1617         * intl/dgettext.c: Include libgnuintl.h instead of libgettext.h.
1618         Include gettextP.h.
1619         * intl/gettext.c: Likewise.  Don't include locale.h.
1621 2001-03-17  Bruno Haible  <haible@clisp.cons.org>
1623         * intl/gettextP.h (ZERO): New macro.
1624         (struct binding): Always use ZERO.
1625         * intl/bindtextdom.c (offsetof): Provide fallback for platforms that
1626         lack it, like SunOS4.
1627         (set_binding_values): Use offsetof, not sizeof.
1628         * intl/dcigettext.c (offsetof): Provide fallback for platforms that
1629         lack it, like SunOS4.
1630         (ZERO): Remove macro.
1631         (struct transmem_list): Use ZERO.
1632         (DCIGETTEXT): Use offsetof, not sizeof.
1634 2001-03-17  Bruno Haible  <haible@clisp.cons.org>
1636         * intl/gettextP.h: Include <stddef.h>. Include gettext.h, for
1637         nls_uint32.
1638         * intl/bindtextdom.c: Don't include gettext.h.
1639         * intl/dcgettext.c: Likewise.
1640         * intl/dcigettext.c: Likewise.
1641         * intl/dcngettext.c: Likewise.
1642         * intl/dngettext.c: Likewise.
1643         * intl/finddomain.c: Likewise.
1644         * intl/localealias.c: Likewise.
1645         * intl/ngettext.c: Likewise.
1646         * intl/plural.y: Likewise.
1647         * intl/textdomain.c: Likewise.
1649 2001-03-17  Bruno Haible  <haible@clisp.cons.org>
1651         * intl/gettext.h: Don't include <stdio.h>.
1653 2001-03-17  Bruno Haible  <haible@clisp.cons.org>
1655         * intl/Makefile (CPPFLAGS): Set LOCALEDIR instead of GNULOCALEDIR.
1656         * intl/dcigettext.c (_nl_default_dirname): Initialize with LOCALEDIR.
1658 2001-03-19  Ulrich Drepper  <drepper@redhat.com>
1660         * sysdeps/unix/i386/i686/tempname.c: New file.
1662         * sysdeps/posix/tempname.c (__gen_tempname): If RANDOM_BITS is
1663         defined use this macro to get some bits of randomness instead of
1664         the usual gettimeofday or time calls.
1666 2001-03-16  Paul Eggert  <eggert@twinsun.com>
1668         * sysdeps/posix/tempname.c (uint64_t): Define to uintmax_t if
1669         not defined, and if UINT64_MAX is not defined.
1671 2001-03-19  Ulrich Drepper  <drepper@redhat.com>
1673         * elf/cache.c: Mark and have translated a few more messages.
1675 2001-03-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1677         * elf/cache.c: Add case for FLAG_S390_LIB64.
1678         * sysdeps/generic/ldconfig.h: Add define for FLAG_S390_LIB64.
1679         * sysdeps/unix/sysv/linux/s390/ldconfig.h: New file.
1680         * sysdeps/unix/sysv/linux/s390/readelflib.c: New file.
1682 2001-03-19  Ulrich Drepper  <drepper@redhat.com>
1684         * string/Makefile (tests): Add tst-strxfrm.
1685         * string/tst-strxfrm.c: New file.  Based on a test case by Paul Eggert.
1686         * string/Depend: New file.
1688 2001-03-19  Paul Eggert  <eggert@twinsun.com>
1690         * string/strxfrm.c (strxfrm): strxfrm should return 0, not 1,
1691         when given the empty string in nontrivial locales.
1693 2001-03-17  H.J. Lu  <hjl@gnu.org>
1695         * manual/Makefile (install): Use $(INSTALL_DATA) instead of
1696         cp to install `dir'.
1698 2001-03-19  Andreas Schwab  <schwab@suse.de>
1700         * Makerules (build-shlib): Make sure exit codes get checked
1701         properly.
1703 2001-03-18  Ulrich Drepper  <drepper@redhat.com>
1705         * Makerules (build-shlib): Remove unnecessary slashes introduced in
1706         last change.
1708         * configure.in: Test for -Bgroup option of linker.
1709         * config.make.in: Define have-Bgroup.
1711         * conform/data/unistd.h-data: Require gethostname.
1712         * posix/unistd.h: Make gethostname prototype available for
1713         __USE_XOPEN2K.
1715         * crypt/Makefile: When generating DSO link with libc_nonshared.a.
1716         * debug/Makefile: Likewise.
1717         * dlfcn/Makefile: Likewise.
1718         * hesiod/Makefile: Likewise.
1719         * iconvdata/extra-module.mk: Likewise.
1720         * locale/Makefile: Likewise.
1721         * login/Makefile: Likewise.
1722         * math/Makefile: Likewise.
1723         * nis/Makefile: Likewise.
1724         * nss/Makefile: Likewise.
1725         * resolv/Makefile: Likewise.
1726         * rt/Makefile: Likewise.
1728 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
1730         * inet/Makefile (tests): Remove left-over comment.
1732         * posix/unistd.h (gethostname): Change type of second parameter
1733         back to size_t as per upcoming XPG6.
1734         * sysdeps/unix/sysv/aix/gethostname.c: Change type of second
1735         parameter back to size_t as per upcoming XPG6.
1736         * sysdeps/unix/sysv/sysv4/gethostname.c: Likewise.
1737         * sysdeps/unix/sysv/gethostname.c: Likewise.
1738         * sysdeps/mach/hurd/gethostname.c: Likewise.
1739         * sysdeps/generic/gethostname.c: Likewise.
1741 2001-03-16  Ulrich Drepper  <drepper@redhat.com>
1743         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
1744         Handle NaN here.
1746         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext):
1747         Internationalize.
1749 2001-02-06  Jakub Jelinek  <jakub@redhat.com>
1751         * elf/dl-load.c (_dl_map_object): Don't test l_opencount when
1752         looking for name matches.
1754 2001-02-26  Jakub Jelinek  <jakub@redhat.com>
1756         * sysdeps/generic/sigcontextinfo.h (CALL_SIGHANDLER): Define.
1757         * sysdeps/mach/hurd/i386/sigcontextinfo.h: Likewise.
1758         * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h: Likewise.
1759         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
1760         * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h: Likewise.
1761         * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h: Likewise.
1762         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
1763         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: Likewise.
1764         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: Likewise.
1765         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: Likewise.
1766         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
1767         * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h: Likewise.
1769 2001-03-16  Ulrich Drepper  <drepper@redhat.com>
1771         * sysdeps/ieee754/ldbl-96/s_erfl.c: New file.
1772         Contributed by Stephen L. Moshier <moshier@na-net.ornl.gov>.
1774         * sysdeps/i386/fpu/libm-test-ulps: Adjust for addition of erfl and
1775         erfcl.
1776         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
1778 2001-03-16  David Mosberger  <davidm@hpl.hp.com>
1780         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
1781         Drop hack that was needed for 2.1.1 kernel headers.
1783         * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: New file.
1785         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Rewrite to make it
1786         overlay with kernel's "struct sigcontext".
1788         * sysdeps/unix/sysv/linux/ia64/Makefile (sysdep_headers): Add
1789         sys/rse.h for "misc" subdir.
1790         (sysdep_routines): Add __start_context for "stdlib" subdir.
1792         * sysdeps/unix/sysv/linux/ia64/sys/rse.h: New file (based on
1793         kernel file of the same name).
1795         * stdlib/Makefile (tests): Add tst-setcontext.
1796         * stdlib/tst-setcontext.c: New file (based on a sample program by
1797         Uli Drepper).
1799         * sysdeps/unix/sysv/linux/ia64/setcontext.S: New file.
1800         * sysdeps/unix/sysv/linux/ia64/getcontext.S: New file.
1801         * sysdeps/unix/sysv/linux/ia64/__start_context.S: New file.
1802         * sysdeps/unix/sysv/linux/ia64/makecontext.c: New file.
1803         * sysdeps/unix/sysv/linux/ia64/swapcontext.c: New file.
1805         * sysdeps/unix/sysv/linux/ia64/__longjmp.S (__longjmp): Use extr.u
1806         instead of shift & and.
1808 2001-03-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1810         * sysdeps/s390/s390-64/bits/huge_val.h: Move to...
1811         * sysdeps/s390/bits/huge_val.h: ...here.
1812         * sysdeps/s390/s390-32/bit/huge_val.h: Remove.
1813         * sysdeps/s390/s390-64/ffs.c: Move to...
1814         * sysdeps/s390/ffs.c: ...here.
1815         * sysdeps/s390/s390-32/ffs.c: Remove.
1817 2001-03-16  Jakub Jelinek  <jakub@redhat.com>
1819         * elf/ldconfig.c (search_dir): Remove bogus diagnostic, instead
1820         update osversion from more recent library.
1822 2001-03-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1824         * sysdeps/unix/sysv/linux/s390/Dist: Move to...
1825         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: ...here.
1826         * sysdeps/unix/sysv/linux/s390/Makefile: Move to...
1827         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: ...here.
1828         * sysdeps/unix/sysv/linux/s390/Versions: Move to...
1829         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: ...here.
1830         * sysdeps/unix/sysv/linux/s390/alphasort64.c: Move to...
1831         * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: ...here.
1832         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Move to...
1833         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: ...here.
1834         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Move to...
1835         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: ...here.
1836         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Move to...
1837         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: ...here.
1838         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Move to...
1839         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: ...here.
1840         * sysdeps/unix/sysv/linux/s390/chown.c: Move to...
1841         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: ...here.
1842         * sysdeps/unix/sysv/linux/s390/clone.S: Move to...
1843         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: ...here.
1844         * sysdeps/unix/sysv/linux/s390/fchown.c: Move to...
1845         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: ...here.
1846         * sysdeps/unix/sysv/linux/s390/fcntl.c: Move to...
1847         * sysdeps/unix/sysv/linux/s390/s390-32/fcntl.c: ...here.
1848         * sysdeps/unix/sysv/linux/s390/fxstat.c: Move to...
1849         * sysdeps/unix/sysv/linux/s390/s390-32/fxstat.c: ...here.
1850         * sysdeps/unix/sysv/linux/s390/getdents64.c: Move to...
1851         * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: ...here.
1852         * sysdeps/unix/sysv/linux/s390/getegid.c: Move to...
1853         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: ...here.
1854         * sysdeps/unix/sysv/linux/s390/geteuid.c: Move to...
1855         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: ...here.
1856         * sysdeps/unix/sysv/linux/s390/getgid.c: Move to...
1857         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: ...here.
1858         * sysdeps/unix/sysv/linux/s390/getgroups.c: Move to...
1859         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: ...here.
1860         * sysdeps/unix/sysv/linux/s390/getresgid.c: Move to...
1861         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: ...here.
1862         * sysdeps/unix/sysv/linux/s390/getresuid.c: Move to...
1863         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: ...here.
1864         * sysdeps/unix/sysv/linux/s390/getrlimit.c: Move to...
1865         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: ...here.
1866         * sysdeps/unix/sysv/linux/s390/getrlimit64.c: Move to...
1867         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit64.c: ...here.
1868         * sysdeps/unix/sysv/linux/s390/getuid.c: Move to...
1869         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: ...here.
1870         * sysdeps/unix/sysv/linux/s390/lchown.c: Move to...
1871         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: ...here.
1872         * sysdeps/unix/sysv/linux/s390/lockf64.c: Move to...
1873         * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: ...here.
1874         * sysdeps/unix/sysv/linux/s390/lxstat.c: Move to...
1875         * sysdeps/unix/sysv/linux/s390/s390-32/lxstat.c: ...here.
1876         * sysdeps/unix/sysv/linux/s390/mmap.S: Move to...
1877         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: ...here.
1878         * sysdeps/unix/sysv/linux/s390/mmap64.S: Move to...
1879         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: ...here.
1880         * sysdeps/unix/sysv/linux/s390/msgctl.c: Move to...
1881         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: ...here.
1882         * sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: Move to...
1883         * sysdeps/unix/sysv/linux/s390/s390-32/oldgetrlimit64.c: ...here.
1884         * sysdeps/unix/sysv/linux/s390/readdir64.c: Move to...
1885         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: ...here.
1886         * sysdeps/unix/sysv/linux/s390/readdir64_r.c: Move to...
1887         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: ...here.
1888         * sysdeps/unix/sysv/linux/s390/register-dump.h: Move to...
1889         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: ...here.
1890         * sysdeps/unix/sysv/linux/s390/scandir64.c: Move to...
1891         * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: ...here.
1892         * sysdeps/unix/sysv/linux/s390/semctl.c: Move to...
1893         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: ...here.
1894         * sysdeps/unix/sysv/linux/s390/setegid.c: Move to...
1895         * sysdeps/unix/sysv/linux/s390/s390-32/setegid.c: ...here.
1896         * sysdeps/unix/sysv/linux/s390/seteuid.c: Move to...
1897         * sysdeps/unix/sysv/linux/s390/s390-32/seteuid.c: ...here.
1898         * sysdeps/unix/sysv/linux/s390/setfsgid.c: Move to...
1899         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: ...here.
1900         * sysdeps/unix/sysv/linux/s390/setfsuid.c: Move to...
1901         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: ...here.
1902         * sysdeps/unix/sysv/linux/s390/setgid.c: Move to...
1903         * sysdeps/unix/sysv/linux/s390/s390-32/setgid.c: ...here.
1904         * sysdeps/unix/sysv/linux/s390/setgroups.c: Move to...
1905         * sysdeps/unix/sysv/linux/s390/s390-32/setgroups.c: ...here.
1906         * sysdeps/unix/sysv/linux/s390/setregid.c: Move to...
1907         * sysdeps/unix/sysv/linux/s390/s390-32/setregid.c: ...here.
1908         * sysdeps/unix/sysv/linux/s390/setresgid.c: Move to...
1909         * sysdeps/unix/sysv/linux/s390/s390-32/setresgid.c: ...here.
1910         * sysdeps/unix/sysv/linux/s390/setresuid.c: Move to...
1911         * sysdeps/unix/sysv/linux/s390/s390-32/setresuid.c: ...here.
1912         * sysdeps/unix/sysv/linux/s390/setreuid.c: Move to...
1913         * sysdeps/unix/sysv/linux/s390/s390-32/setreuid.c: ...here.
1914         * sysdeps/unix/sysv/linux/s390/setrlimit.c: Move to...
1915         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: ...here.
1916         * sysdeps/unix/sysv/linux/s390/setuid.c: Move to...
1917         * sysdeps/unix/sysv/linux/s390/s390-32/setuid.c: ...here.
1918         * sysdeps/unix/sysv/linux/s390/shmctl.c: Move to...
1919         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: ...here.
1920         * sysdeps/unix/sysv/linux/s390/socket.S: Move to...
1921         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: ...here.
1922         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Move to...
1923         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: ...here.
1924         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Move to...
1925         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: ...here.
1926         * sysdeps/unix/sysv/linux/s390/syscall.S: Move to...
1927         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: ...here.
1928         * sysdeps/unix/sysv/linux/s390/syscalls.list: Move to...
1929         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: ...here.
1930         * sysdeps/unix/sysv/linux/s390/sysdep.S: Move to...
1931         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: ...here.
1932         * sysdeps/unix/sysv/linux/s390/sysdep.h: Move to...
1933         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: ...here.
1934         * sysdeps/unix/sysv/linux/s390/versionsort64.c: Move to...
1935         * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: ...here.
1936         * sysdeps/unix/sysv/linux/s390/xstat.c: Move to...
1937         * sysdeps/unix/sysv/linux/s390/s390-32/xstat.c: ...here.
1939 2001-03-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1941         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: New file.
1942         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: New file.
1943         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: New file.
1944         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: New file.
1945         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: New file.
1946         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: New file.
1947         * sysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: New file.
1948         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: New file.
1949         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: New file.
1950         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: New file.
1951         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: New file.
1952         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: New file.
1953         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: New file.
1954         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: New file.
1955         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: New file.
1956         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: New file.
1957         * sysdeps/unix/sysv/linux/s390/s390-64/fstatfs64.c: New file.
1958         * sysdeps/unix/sysv/linux/s390/s390-64/ftruncate64.c: New file.
1959         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: New file.
1960         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat64.c: New file.
1961         * sysdeps/unix/sysv/linux/s390/s390-64/getdents.c: New file.
1962         * sysdeps/unix/sysv/linux/s390/s390-64/getdents64.c: New file.
1963         * sysdeps/unix/sysv/linux/s390/s390-64/getrlimit64.c: New file.
1964         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: New file.
1965         * sysdeps/unix/sysv/linux/s390/s390-64/glob64.c: New file.
1966         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
1967         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: New file.
1968         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat64.c: New file.
1969         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: New file.
1970         * sysdeps/unix/sysv/linux/s390/s390-64/mmap64.c: New file.
1971         * sysdeps/unix/sysv/linux/s390/s390-64/pread64.c: New file.
1972         * sysdeps/unix/sysv/linux/s390/s390-64/pwrite64.c: New file.
1973         * sysdeps/unix/sysv/linux/s390/s390-64/readdir.c: New file.
1974         * sysdeps/unix/sysv/linux/s390/s390-64/readdir64.c: New file.
1975         * sysdeps/unix/sysv/linux/s390/s390-64/readdir64_r.c: New file.
1976         * sysdeps/unix/sysv/linux/s390/s390-64/readdir_r.c : New file.
1977         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: New file.
1978         * sysdeps/unix/sysv/linux/s390/s390-64/setrlimit64.c: New file.
1979         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: New file.
1980         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: New file.
1981         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: New file.
1982         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: New file.
1983         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: New file.
1984         * sysdeps/unix/sysv/linux/s390/s390-64/statfs64.c: New file.
1985         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: New file.
1986         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: New file.
1987         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: New file.
1988         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: New file.
1989         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: New file.
1990         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: New file.
1991         * sysdeps/unix/sysv/linux/s390/s390-64/truncate64.c: New file.
1992         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: New file.
1993         * sysdeps/unix/sysv/linux/s390/s390-64/xstat64.c: New file.
1995 2001-03-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1997         * sysdeps/s390/Dist: Move to...
1998         * sysdeps/s390/390-32/Dist: ...here.
1999         * sysdeps/s390/Implies: Move to...
2000         * sysdeps/s390/s390-32/Implies: ...here.
2001         * sysdeps/s390/Makefile: Move to...
2002         * sysdeps/s390/s390-32/Makefile: ...here.
2003         * sysdeps/s390/Versions: Move to...
2004         * sysdeps/s390-32/s390/Versions: ...here.
2005         * sysdeps/s390/add_n.S: Move to...
2006         * sysdeps/s390/s390-32/add_n.S: ...here.
2007         * sysdeps/s390/addmul_1.S: Move to...
2008         * sysdeps/s390/s390-32/addmul_1.S: ...here.
2009         * sysdeps/s390/atomicity.h: Move to...
2010         * sysdeps/s390/s390-32/atomicity.h: ...here.
2011         * sysdeps/s390/backtrace.c: Move to...
2012         * sysdeps/s390/s390-32/backtrace.c: ...here.
2013         * sysdeps/s390/bcopy.S: Move to...
2014         * sysdeps/s390/s390-32/bcopy.S: ...here.
2015         * sysdeps/s390/bits/byteswap.h: Move to...
2016         * sysdeps/s390/s390-32/bits/byteswap.h: ...here.
2017         * sysdeps/s390/bits/huge_val.h: Move to...
2018         * sysdeps/s390/s390-32/bits/huge_val.h: ...here.
2019         * sysdeps/s390/bsd-_setjmp.S: Move to...
2020         * sysdeps/s390/s390-32/bsd-_setjmp.S: ...here.
2021         * sysdeps/s390/bsd-setjmp.S: Move to...
2022         * sysdeps/s390/s390-32/bsd-setjmp.S: ...here.
2023         * sysdeps/s390/bzero.S: Move to...
2024         * sysdeps/s390/s390-32/bzero.S: ...here.
2025         * sysdeps/s390/elf/bsd-_setjmp.S: Move to...
2026         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: ...here.
2027         * sysdeps/s390/elf/bsd-setjmp.S: Move to...
2028         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: ...here.
2029         * sysdeps/s390/elf/start.S: Move to...
2030         * sysdeps/s390/s390-32/elf/start.S: ...here.
2031         * sysdeps/s390/ffs.c: Move to...
2032         * sysdeps/s390/s390-32/ffs.c: ...here.
2033         * sysdeps/s390/memchr.S: Move to...
2034         * sysdeps/s390/s390-32/memchr.S: ...here.
2035         * sysdeps/s390/memcpy.S: Move to...
2036         * sysdeps/s390/s390-32/memcpy.S: ...here.
2037         * sysdeps/s390/memset.S: Move to...
2038         * sysdeps/s390/s390-32/memset.S: ...here.
2039         * sysdeps/s390/mul_1.S: Move to...
2040         * sysdeps/s390/s390-32/mul_1.S: ...here.
2041         * sysdeps/s390/s390-mcount.S: Move to...
2042         * sysdeps/s390/s390-32/s390-mcount.S: ...here.
2043         * sysdeps/s390/strcpy.S: Move to...
2044         * sysdeps/s390/s390-32/strcpy.S: ...here.
2045         * sysdeps/s390/strncpy.S: Move to...
2046         * sysdeps/s390/s390-32/strncpy.S: ...here.
2047         * sysdeps/s390/sub_n.S: Move to...
2048         * sysdeps/s390/s390-32/sub_n.S: ...here.
2050 2001-03-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2052         * sysdeps/s390/s390-64/Dist: New file.
2053         * sysdeps/s390/s390-64/Implies: New file.
2054         * sysdeps/s390/s390-64/Makefile: New file.
2055         * sysdeps/s390/s390-64/__longjmp.c: New file.
2056         * sysdeps/s390/s390-64/add_n.S: New file.
2057         * sysdeps/s390/s390-64/atomicity.h: New file.
2058         * sysdeps/s390/s390-64/backtrace.c: New file.
2059         * sysdeps/s390/s390-64/bcopy.S: New file.
2060         * sysdeps/s390/s390-64/bits/byteswap.h: New file.
2061         * sysdeps/s390/s390-64/bits/huge_val.h: New file.
2062         * sysdeps/s390/s390-64/bits/setjmp.h: New file.
2063         * sysdeps/s390/s390-64/bits/string.h: New file.
2064         * sysdeps/s390/s390-64/bsd-_setjmp.S: New file.
2065         * sysdeps/s390/s390-64/bsd-setjmp.S: New file.
2066         * sysdeps/s390/s390-64/bzero.S: New file.
2067         * sysdeps/s390/s390-64/dl-machine.h: New file.
2068         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: New file.
2069         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: New file.
2070         * sysdeps/s390/s390-64/elf/setjmp.S: New file.
2071         * sysdeps/s390/s390-64/elf/start.S: New file.
2072         * sysdeps/s390/s390-64/ffs.c: New file.
2073         * sysdeps/s390/s390-64/initfini.c: New file.
2074         * sysdeps/s390/s390-64/memchr.S: New file.
2075         * sysdeps/s390/s390-64/memcpy.S: New file.
2076         * sysdeps/s390/s390-64/memset.S: New file.
2077         * sysdeps/s390/s390-64/s390x-mcount.S: New file.
2078         * sysdeps/s390/s390-64/setjmp.S: New file.
2079         * sysdeps/s390/s390-64/strcpy.S: New file.
2080         * sysdeps/s390/s390-64/strncpy.S: New file.
2081         * sysdeps/s390/s390-64/sub_n.S: New file.
2082         * sysdeps/s390/s390-64/sysdep.h: New file.
2084 2001-03-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2086         * scripts/config.guess: Add support for Linux on 64 bit S/390.
2087         * scripts/config.sub: Likewise.
2089 2001-03-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2091         * configure.in: Add support for 64 bit S/390.
2093         * elf/elf.h: Add new relocations for 64 bit S/390.
2095         * shlib-versions: Add rules for Linux on 64 bit S/390.
2097 2001-03-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2099         * sysdeps/s390/__longjmp.c: Move to...
2100         * sysdeps/s390/s390-32/__longjmp.c: ...here.  Add code
2101         to load the floating point registers that should be saved
2102         according to the ABI.
2104         * sysdeps/s390/bits/setjmp.h: Move to...
2105         * sysdeps/s390/s390-32/bits/setjmp.h: ...here.  Avoid
2106         the use of long long in the __jmp_buf type definition.
2108         * sysdeps/s390/bits/string.h: Move to...
2109         * sysdeps/s390/s390-32/bits/string.h: ...here.  Add several missing
2110         #ifndef _FORCE_INLINES.
2112         * sysdeps/s390/dl-machine.h: Move to...
2113         * sysdeps/s390/s390-32/dl-machine.h: ...here.  Add a check for the
2114         executables EI_CLASS in elf_machine_matches_host.
2116         * sysdeps/s390/elf/setjmp.S: Move to...
2117         * sysdeps/s390/s390-32/elf/setjmp.S: ...here.  Replace
2118         branches to globally defined symbol __sigsetjmp by branches to
2119         a local label (this avoids the generation of a R_390_PC16DBL
2120         relocation in -fpic code).
2122         * sysdeps/s390/gmp-mparam.h: Use defines from <bits/wordsize.h> to
2123         calculate BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB and BITS_PER_LONGINT.
2125         * sysdeps/s390/initfini.c: Move to...
2126         * sysdeps/s390/s390-32/initfini.c: ...here.  Replace ALIGN with
2127         ".align 4,0x07".
2129         * sysdeps/s390/setjmp.S: Move to...
2130         * sysdeps/s390/s390-32/setjmp.S: ...here.  Add code to store the
2131         floating point registers that should be saved according to the ABI.
2133         * sysdeps/s390/sys/ucontext.h: Remove since it is unused.
2135         * sysdeps/unix/sysv/linux/s390/sysdep.h: Move to...
2136         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: ...here. Include
2137         sysdeps/s390/s390-32/sysdep.h instead of sysdeps/s390/sysdep.h.
2139 2001-03-13  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2141         * configure.in: Change machine=s390 to machine=s390/s390-32.
2143         * elf/elf.h: Correct comment for R_390_PLT16DBL.
2145 2001-03-12  Jakub Jelinek  <jakub@redhat.com>
2147         * csu/Makefile (abi-tag.h): Define OS and version separately, allow
2148         version to be overriden from config.h.
2149         * csu/abi-note.S: Use OS and version separately, include config.h.
2150         * elf/dl-load.c (_dl_osversion): New.
2151         (_dl_map_object_from_fd): Kill some warnings.
2152         (open_verify): Check .note.ABI-tag of the library if present.
2153         * elf/Makefile (CPPFLAGS-dl-load.c): Add -I$(csu-objpfx).
2154         * elf/cache.c (struct cache_entry): Add osversion.
2155         (print_entry): Print osversion.
2156         (print_cache): Pass osversion to it.
2157         (compare): Sort according to osversion.
2158         (save_cache): Set osversion.
2159         (add_to_cache): Add osversion argument.
2160         * sysdeps/generic/ldconfig.h (add_to_cache, process_file,
2161         process_elf_file): Add osversion argument.
2162         * elf/readlib.c (process_file): Likewise.
2163         * sysdeps/generic/readelflib.c (process_elf_file): Likewise.
2164         * sysdeps/unix/sysv/linux/ia64/readelflib.c (process_elf_file,
2165         process_elf32_file, process_elf64_file): Likewise.
2166         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file,
2167         process_elf32_file, process_elf64_file): Likewise.
2168         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file,
2169         process_elf32_file, process_elf64_file): Likewise.
2170         * elf/ldconfig.c (manual_link): Pass it.
2171         (search_dir): Issue diagnostic if two libs with the same soname in
2172         the same directory have different .note.ABI-tag.  Record osversion in
2173         dlib_entry and use it from there.
2174         (struct lib_entry): Remove.
2175         (struct dlib_entry): Add osversion.
2176         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Check
2177         osversion.
2178         * sysdeps/generic/dl-cache.h (struct file_entry_new): Replace __unused
2179         field with osversion.
2180         * sysdeps/generic/ldsodefs.h (_dl_osversion): Declare.
2181         * sysdeps/unix/sysv/linux/init-first.c: Include ldsodefs.h.
2182         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Save kernel
2183         version in _dl_osversion.
2184         * sysdeps/unix/sysv/linux/configure.in: Define __ABI_TAG_VERSION.
2185         * Makerules (build-shlib-helper, build-module-helper): New.
2186         (build-shlib, build-module-helper): Make sure .note.ABI-tag comes
2187         early.
2188         * config.h.in (__ABI_TAG_VERSION): Add.
2189         * elf/dl-minimal.c (__strtoul_internal): Set endptr on return.
2190         * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS):
2191         Handle LD_ASSUME_KERNEL.
2192         * sysdeps/unix/sysv/linux/dl-librecon.h: New.
2194 2001-03-15  Ulrich Drepper  <drepper@redhat.com>
2196         * timezone/antarctica: Update from tzdata2001a.
2197         * timezone/asia: Likewise.
2198         * timezone/australasia: Likewise.
2199         * timezone/backward: Likewise.
2200         * timezone/etcetera: Likewise.
2201         * timezone/europe: Likewise.
2202         * timezone/leapseconds: Likewise.
2203         * timezone/northamerica: Likewise.
2204         * timezone/southamerica: Likewise.
2205         * timezone/systemv: Likewise.
2206         * timezone/yearistype: Likewise.
2207         * timezone/zone.tab: Likewise.
2208         * timezone/tzdump.c: Update from tzcode2001a.
2210 2001-03-15  H.J. Lu  <hjl@gnu.org>
2212         * intl/Makefile: Fix a typo.
2214 2001-03-14  David Mosberger  <davidm@hpl.hp.com>
2216         * gmon/gmon.c (write_call_graph): Avoid unaligned accesses when
2217         writing arc structures.
2219 2001-03-15  H.J. Lu  <hjl@gnu.org>
2221         * elf/Makefile ($(objpfx)tst-pathopt.out): Protected against
2222         cross-compiling.
2224 2001-03-13  Andreas Schwab  <schwab@suse.de>
2226         * posix/PTESTS2C.sed: Replace literal CRs by `\r'.
2228 2001-03-15  Ulrich Drepper  <drepper@redhat.com>
2230         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Fix test
2231         for control message fitting into message data.
2232         Patch by James Antill <james@and.org>.
2234         * posix/tst-fnmatch.input: Add test case for FNM_PERIOD handling with
2235         FNM_EXTMATCH.
2237         * posix/fnmatch_loop.c: Optimize handling of ?() and @().
2238         * posix/fnmatch.c: Define STRLEN and STRCAT appropriately.
2240         * posix/Versions [libc] (GLIBC_2.2.3): Add fnmatch.
2241         * posix/fnmatch.c: Define with new default version GLIBC_2.2.3 to
2242         avoid running binaries with libc versions without FNM_EXTMATCH support.
2244         * include/wchar.h: Add prototype for __wcscat.
2245         * wcsmbs/wcscat.c: Define __wcscat and make wcscat weak alias.
2247         * posix/fnmatch.h (FNM_EXTMATCH): Define.
2248         * posix/fnmatch.c (NO_LEADING_PERIOD): Define.
2249         (posixly_correct): Move global variable here.
2250         (INT, EXT, END): Name new functions defined in fnmatch_loop.c.
2251         (fnmatch): Pretty printing.
2252         * posix/fnmatch_loop.c: Add code to handle FNM_EXTMATCH.
2253         * posix/tst-fnmatch.c: Recognize EXTMATCH flag.
2254         * posix/tst-fnmatch.input: Add tests for extended matching.
2256         * posix/testfnm.c: Add test for patterns with multiple ** before /.
2257         * posix/fnmatch_loop.c: Fix problem with the test above.
2259 2001-03-14  Ulrich Drepper  <drepper@redhat.com>
2261         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Remove
2262         reference to usqrt.
2264         * resolv/res_data.c (fp_nquery): Call __res_ninit not __res_init.
2266 2001-03-12  Andreas Jaeger  <aj@suse.de>
2268         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
2269         Use EM_X86_64 instead of EM_X8664.
2271 2001-03-12  Ulrich Drepper  <drepper@redhat.com>
2273         * sysdeps/ieee754/dbl-64/upow.h: Define nZERO and nINF.
2275         * sysdeps/ieee754/dbl-64/e_remainder.c: Fix handling of boundary
2276         conditions.
2278         * sysdeps/ieee754/dbl-64/e_pow.c: Fix handling of boundary
2279         conditions.
2281         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Handle Inf and NaN
2282         correctly.
2283         (__cos): Likewise.
2285         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Handle NaN
2286         correctly.
2287         (__ieee754_acos): Likewise.
2289 2001-03-12  Andreas Jaeger  <aj@suse.de>
2291         * sysdeps/unix/sysv/linux/s390/sysdep.h (_LINUX_S390_SYSDEP_H):
2292         Fix typo.  Patch by Martin Schwidefsky  <schwidefsky@de.ibm.com>.
2294         * sysdeps/s390/bits/string.h: Protect __STRING_INLINE against
2295         redefinition.
2297 2001-03-11  Roland McGrath  <roland@frob.com>
2299         * sysdeps/mach/hurd/configure.in: Add a sanity check on $prefix.
2301 2001-03-11  Ulrich Drepper  <drepper@redhat.com>
2303         * sysdeps/ieee754/dbl-64/endian.h: Define also one of BIG_ENDI and
2304         LITTLE_ENDI.
2306         * sysdeps/ieee754/dbl-64/MathLib.h (Init_Lib): Use void as
2307         parameter list.
2309         Last-bit accurate math library implementation by IBM Haifa.
2310         Contributed by Abraham Ziv <ziv@il.ibm.com>, Moshe Olshansky
2311         <olshansk@il.ibm.com>, Ealan Henis <ealan@il.ibm.com>, and
2312         Anna Reitman <reitman@il.ibm.com>.
2313         * math/Makefile (dbl-only-routines): New variable.
2314         (libm-routines): Add $(dbl-only-routines).
2315         * sysdeps/ieee754/dbl-64/e_acos.c: Empty, definition is in e_asin.c.
2316         * sysdeps/ieee754/dbl-64/e_asin.c: Replaced with accurate asin
2317         implementation.
2318         * sysdeps/ieee754/dbl-64/e_atan2.c: Replaced with accurate atan2
2319         implementation.
2320         * sysdeps/ieee754/dbl-64/e_exp.c: Replaced with accurate exp
2321         implementation.
2322         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Don't use __kernel_sin and
2323         __kernel_cos.
2324         * sysdeps/ieee754/dbl-64/e_log.c: Replaced with accurate log
2325         implementation.
2326         * sysdeps/ieee754/dbl-64/e_remainder.c: Replaced with accurate
2327         remainder implementation.
2328         * sysdeps/ieee754/dbl-64/e_pow.c: Replaced with accurate pow
2329         implementation.
2330         * sysdeps/ieee754/dbl-64/e_sqrt.c: Replaced with accurate sqrt
2331         implementation.
2332         * sysdeps/ieee754/dbl-64/k_cos.c: Empty, definition is in s_sin.c.
2333         * sysdeps/ieee754/dbl-64/k_sin.c: Empty, definition is in s_sin.c.
2334         * sysdeps/ieee754/dbl-64/s_atan.c: Replaced with accurate atan
2335         implementation.
2336         * sysdeps/ieee754/dbl-64/s_cos.c: Empty, definition is in s_sin.c.
2337         * sysdeps/ieee754/dbl-64/s_sin.c: Replaced with accurate sin/cos
2338         implementation.
2339         * sysdeps/ieee754/dbl-64/s_sincos.c: Rewritten to not use __kernel_sin
2340         and __kernel_cos.
2341         * sysdeps/ieee754/dbl-64/s_tan.c: Replaced with accurate tan
2342         implementation.
2343         * sysdeps/ieee754/dbl-64/Dist: Add new non-code files.
2344         * sysdeps/ieee754/dbl-64/MathLib.h: New file.
2345         * sysdeps/ieee754/dbl-64/asincos.tbl: New file.
2346         * sysdeps/ieee754/dbl-64/atnat.h: New file.
2347         * sysdeps/ieee754/dbl-64/atnat2.h: New file.
2348         * sysdeps/ieee754/dbl-64/branred.c: New file.
2349         * sysdeps/ieee754/dbl-64/branred.h: New file.
2350         * sysdeps/ieee754/dbl-64/dla.h: New file.
2351         * sysdeps/ieee754/dbl-64/doasin.c: New file.
2352         * sysdeps/ieee754/dbl-64/doasin.h: New file.
2353         * sysdeps/ieee754/dbl-64/dosincos.c: New file.
2354         * sysdeps/ieee754/dbl-64/dosincos.h: New file.
2355         * sysdeps/ieee754/dbl-64/endian.h: New file.
2356         * sysdeps/ieee754/dbl-64/halfulp.c: New file.
2357         * sysdeps/ieee754/dbl-64/mpa.c: New file.
2358         * sysdeps/ieee754/dbl-64/mpa.h: New file.
2359         * sysdeps/ieee754/dbl-64/mpa2.h: New file.
2360         * sysdeps/ieee754/dbl-64/mpatan.c: New file.
2361         * sysdeps/ieee754/dbl-64/mpatan.h: New file.
2362         * sysdeps/ieee754/dbl-64/mpatan2.c: New file.
2363         * sysdeps/ieee754/dbl-64/mpexp.c: New file.
2364         * sysdeps/ieee754/dbl-64/mpexp.h: New file.
2365         * sysdeps/ieee754/dbl-64/mplog.c: New file.
2366         * sysdeps/ieee754/dbl-64/mplog.h: New file.
2367         * sysdeps/ieee754/dbl-64/mpsqrt.c: New file.
2368         * sysdeps/ieee754/dbl-64/mpsqrt.h: New file.
2369         * sysdeps/ieee754/dbl-64/mptan.c: New file.
2370         * sysdeps/ieee754/dbl-64/mydefs.h: New file.
2371         * sysdeps/ieee754/dbl-64/powtwo.tbl: New file.
2372         * sysdeps/ieee754/dbl-64/root.tbl: New file.
2373         * sysdeps/ieee754/dbl-64/sincos.tbl: New file.
2374         * sysdeps/ieee754/dbl-64/sincos32.c: New file.
2375         * sysdeps/ieee754/dbl-64/sincos32.h: New file.
2376         * sysdeps/ieee754/dbl-64/slowexp.c: New file.
2377         * sysdeps/ieee754/dbl-64/slowpow.c: New file.
2378         * sysdeps/ieee754/dbl-64/uasncs.h: New file.
2379         * sysdeps/ieee754/dbl-64/uatan.tbl: New file.
2380         * sysdeps/ieee754/dbl-64/uexp.h: New file.
2381         * sysdeps/ieee754/dbl-64/uexp.tbl: New file.
2382         * sysdeps/ieee754/dbl-64/ulog.h: New file.
2383         * sysdeps/ieee754/dbl-64/ulog.tbl: New file.
2384         * sysdeps/ieee754/dbl-64/upow.h: New file.
2385         * sysdeps/ieee754/dbl-64/upow.tbl: New file.
2386         * sysdeps/ieee754/dbl-64/urem.h: New file.
2387         * sysdeps/ieee754/dbl-64/uroot.h: New file.
2388         * sysdeps/ieee754/dbl-64/usncs.h: New file.
2389         * sysdeps/ieee754/dbl-64/utan.h: New file.
2390         * sysdeps/ieee754/dbl-64/utan.tbl: New file.
2391         * sysdeps/i386/fpu/branred.c: New file.
2392         * sysdeps/i386/fpu/doasin.c: New file.
2393         * sysdeps/i386/fpu/dosincos.c: New file.
2394         * sysdeps/i386/fpu/halfulp.c: New file.
2395         * sysdeps/i386/fpu/mpa.c: New file.
2396         * sysdeps/i386/fpu/mpatan.c: New file.
2397         * sysdeps/i386/fpu/mpatan2.c: New file.
2398         * sysdeps/i386/fpu/mpexp.c: New file.
2399         * sysdeps/i386/fpu/mplog.c: New file.
2400         * sysdeps/i386/fpu/mpsqrt.c: New file.
2401         * sysdeps/i386/fpu/mptan.c: New file.
2402         * sysdeps/i386/fpu/sincos32.c: New file.
2403         * sysdeps/i386/fpu/slowexp.c: New file.
2404         * sysdeps/i386/fpu/slowpow.c: New file.
2405         * sysdeps/ia64/fpu/branred.c: New file.
2406         * sysdeps/ia64/fpu/doasin.c: New file.
2407         * sysdeps/ia64/fpu/dosincos.c: New file.
2408         * sysdeps/ia64/fpu/halfulp.c: New file.
2409         * sysdeps/ia64/fpu/mpa.c: New file.
2410         * sysdeps/ia64/fpu/mpatan.c: New file.
2411         * sysdeps/ia64/fpu/mpatan2.c: New file.
2412         * sysdeps/ia64/fpu/mpexp.c: New file.
2413         * sysdeps/ia64/fpu/mplog.c: New file.
2414         * sysdeps/ia64/fpu/mpsqrt.c: New file.
2415         * sysdeps/ia64/fpu/mptan.c: New file.
2416         * sysdeps/ia64/fpu/sincos32.c: New file.
2417         * sysdeps/ia64/fpu/slowexp.c: New file.
2418         * sysdeps/ia64/fpu/slowpow.c: New file.
2419         * sysdeps/m68k/fpu/branred.c: New file.
2420         * sysdeps/m68k/fpu/doasin.c: New file.
2421         * sysdeps/m68k/fpu/dosincos.c: New file.
2422         * sysdeps/m68k/fpu/halfulp.c: New file.
2423         * sysdeps/m68k/fpu/mpa.c: New file.
2424         * sysdeps/m68k/fpu/mpatan.c: New file.
2425         * sysdeps/m68k/fpu/mpatan2.c: New file.
2426         * sysdeps/m68k/fpu/mpexp.c: New file.
2427         * sysdeps/m68k/fpu/mplog.c: New file.
2428         * sysdeps/m68k/fpu/mpsqrt.c: New file.
2429         * sysdeps/m68k/fpu/mptan.c: New file.
2430         * sysdeps/m68k/fpu/sincos32.c: New file.
2431         * sysdeps/m68k/fpu/slowexp.c: New file.
2432         * sysdeps/m68k/fpu/slowpow.c: New file.
2434         * iconvdata/gconv-modules: Add a number of alias, mostly for IBM
2435         codepages.
2437 2001-03-11  Andreas Jaeger  <aj@suse.de>
2439         * elf/elf.h (EM_*): Synch with official list.
2441 2001-03-07  David Mosberger  <davidm@hpl.hp.com>
2443         * sysdeps/ia64/bits/fenv.h (FE_NONIEEE_ENV): New macro.
2445 2001-03-07  Jes Sorensen  <jes@linuxcare.com>
2447         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Remove unused
2448         variables addr & len.
2450 2001-02-22  Jes Sorensen  <jes@linuxcare.com>
2452         * sysdeps/ia64/fpu/feenablxcpt.c (feenableexcept): Remove
2453         punctuation in asm constraint.
2455 2001-03-07  Mark Kettenis  <kettenis@gnu.org>
2457         * resolv/netdb.h [__USE_GNU]: Define __need_timespec and include
2458         <time.h> to get definition of `struct timespec'.
2460 2001-03-08  Jakub Jelinek  <jakub@redhat.com>
2462         * elf/rtld.c (dl_main): If tracing, warn about undefined symbols if
2463         LD_WARN=1, not if LD_WARN is unset.
2465 2001-03-07  Andreas Schwab  <schwab@suse.de>
2467         * elf/ldconfig.h: Moved to ...
2468         * sysdeps/generic/ldconfig.h: ... here.
2469         * sysdeps/unix/sysv/linux/i386/ldconfig.h: New file.
2470         * sysdeps/unix/sysv/linux/m68k/ldconfig.h: New file.
2471         * sysdeps/unix/sysv/linux/ia64/ldconfig.h: New file.
2472         * elf/readlib.c (interpreters, known_libs): Use
2473         SYSDEP_KNOWN_INTERPRETER_NAMES and SYSDEP_KNOWN_LIBRARY_NAMES
2474         instead of hard coding old names.
2476 2001-03-09  Ulrich Drepper  <drepper@redhat.com>
2478         * catgets/Makefile (generated): Add test-gencat.h.
2479         (sample.SJIS.cat): Also generate header.
2480         * catgets/sample.SJIS: Add new set and message, both with symbolic
2481         names.
2482         * catgets/test-gencat.sh: Also compare generated header with what
2483         we expect.
2485 2001-03-07  Jakub Jelinek  <jakub@redhat.com>
2487         * catgets/gencat.c (read_input_file): Preserve properly symbolic
2488         names.
2490 2001-03-06  Andreas Jaeger  <aj@suse.de>
2492         * sysdeps/s390/dl-machine.h (elf_machine_relplt): Removed, it's not
2493         needed.
2494         (elf_machine_pltrel_p): Likewise.
2495         * sysdeps/powerpc/dl-machine.h: Likewise.
2496         * sysdeps/generic/dl-machine.h (elf_machine_pltrel_p): Likewise.
2498 2001-03-09  Ulrich Drepper  <drepper@redhat.com>
2500         * sysdeps/unix/sysv/linux/arm/Dist: Add dl-procinfo.c and
2501         dl-procinfo.h.
2503 2001-03-05  Philip Blundell  <philb@gnu.org>
2505         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: New file.
2506         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: New file.
2507         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
2508         (sysdep-dl-routines, sysdep_routines, sysdep-rtld-routines): Add
2509         dl-procinfo.
2511 2001-03-09  Ulrich Drepper  <drepper@redhat.com>
2513         * dlfcn/tstatexit.c (main): Don't perform the test if __dso_handle
2514         is not available.
2515         * dlfcn/tstcxaatexit.c (main): Likewise.
2517 2001-03-10  Andreas Jaeger  <aj@suse.de>
2519         * sysdeps/i386/fpu/libm-test-ulps: Revert last patch.
2521 2001-03-09  Andreas Jaeger  <aj@suse.de>
2523         * sysdeps/s390/dl-machine.h (elf_machine_matches_host): Handle
2524         both new and old EM_S390 values.
2525         (EM_S390_OLD): New constant.
2527         * elf/elf.h (EM_S390): Use official value.
2529 2001-03-09  Ulrich Drepper  <drepper@redhat.com>
2531         * conform/data/sys/socket.h-data: Allow SO* symbols.
2533 2001-03-07  Andreas Schwab  <schwab@suse.de>
2535         * sysdeps/ia64/fpu/Makefile: Modify sysdep_routines instead of
2536         routines, and sysdep-CPPFLAGS instead of CPPFLAGS.
2538 2001-03-07  Andreas Jaeger  <aj@suse.de>
2540         * resolv/Makefile (routines): Only build gai_sigqueue when threads
2541         are available.
2543 2001-03-07  Jakub Jelinek  <jakub@redhat.com>
2545         * elf/ldconfig.c (_dl_sysdep_message): Remove.
2546         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Include
2547         ldsodefs.h.
2548         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
2550         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Use
2551         _dl_error_printf instead of _dl_sysdep_error.
2552         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2553         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h (_dl_procinfo):
2554         Use _dl_printf instead of _dl_sysdep_message.
2555         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h (_dl_procinfo):
2556         Likewise.
2558 2001-03-06  Ben Collins  <bcollins@debian.org>
2560         * manual/arith.texi (Integers): Fix documentation of fast and
2561         least integer typedefs.
2563 2001-03-06  Jakub Jelinek  <jakub@redhat.com>
2565         * resolv/Depend: New file.
2566         * resolv/Makefile (extra-libs, tests): Build libanl and ga_test only
2567         when libpthread is built.
2569 2001-03-06  Andreas Jaeger  <aj@suse.de>
2571         * sysdeps/i386/fpu/libm-test-ulps: Add some deltas.
2573         * sysdeps/sh/dl-machine.h (elf_machine_rela): Add missing comma.
2574         Patch by kaz Kojima <kkojima@rr.iij4u.or.jp>.
2576 2001-03-05  Ulrich Drepper  <drepper@redhat.com>
2578         * stdlib/Versions: Remove __new_exitfn again.  Not needed.
2580 2001-03-05  Andreas Jaeger  <aj@suse.de>
2582         * stdlib/msort.c (qsort): Don't use alloca in a function call.
2584 2001-03-05  Ulrich Drepper  <drepper@redhat.com>
2586         * sysdeps/unix/sysv/linux/bits/stat.h (__S_TYPEISMQ, __S_TYPEISSEM,
2587         __S_TYPEISSHM): Rewrite to enforce correct use the macros.  They still
2588         always return zero.
2589         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
2590         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2591         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2592         * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
2593         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
2594         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2595         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2597 2001-03-04  Andreas Jaeger  <aj@suse.de>
2599         * stdlib/longlong.h: Don't use multi-line strings.
2600         * iconvdata/tst-loading.c: Likewise.
2602         * csu/Makefile ($(objpfx)version-info.h): Don't use multi-line
2603         string.
2605 2001-03-04  Ulrich Drepper  <drepper@redhat.com>
2607         * sysdeps/ia64/fpu/libm-test-ulps: Adjust for addition of lgammal.
2609         * rt/lio_listio.c: Add a few asserts.
2611         * elf/global.c: New file.
2612         * elf/globalmod1.c: New file.
2613         * elf/Makefile: Add rules to build and run global.
2615         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_ASYNCNL.
2616         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
2617         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
2618         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
2619         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/siginfo.h: Likewise.
2621         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: New file.
2622         Contributed by Stephen L. Moshier <moshier@na-net.ornl.gov>.
2624         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Fix handling of boundary cases.
2626         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Always initialize sign variable.
2627         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
2629         * sysdeps/i386/fpu/libm-test-ulps: Adjust after addition of lgammal.
2631         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Fix typo in last change.
2633 2001-03-04  Andreas Jaeger  <aj@suse.de>
2635         * resolv/tst-aton.c: Add testcase for IP with four periods.
2637         * resolv/inet_addr.c: Don't recognize an IP with four periods.
2638         Patch by Andre' Breiler <A.Breiler@gmx.net>.
2640 2001-02-27  Philip Blundell  <pb@futuretv.com>
2642         * elf/elf.h: Add new ARM definitions from latest (B-01)
2643         specification.  Correct naming of EF_ARM_ALIGN8 et al.
2645 2001-03-04  Ulrich Drepper  <drepper@redhat.com>
2647         * stdio-common/tst-printf.sh: Remove bashisms.
2648         Patch by Matthew Clarke <Matthew_Clarke@mindlink.bc.ca>.
2650 2001-03-03  Ulrich Drepper  <drepper@redhat.com>
2652         * Versions.def: Add libanl definition.
2653         * shlib-versions: Add entry for libanl.
2654         * resolv/Makefile (distribute): Add gai_misc.h and ga_test.c.
2655         (routines): Add gai_sigqueue.
2656         (extra-libs): Add libanl.
2657         (libanl-routines): New variable.
2658         Add rules to build libanl and ga_test.
2659         * resolv/Versions [libc] (GLIBC_2.2.3): Add __gai_sigqueue.
2660         [libanl]: New library.
2661         * resolv/netdb.h: Add definitions for libanl.
2662         * resolv/getaddrinfo_a.c: New file.
2663         * resolv/gai_cancel.c: New file.
2664         * resolv/gai_error.c: New file.
2665         * resolv/gai_misc.c: New file.
2666         * resolv/gai_misc.h: New file.
2667         * resolv/gai_notify.c: New file.
2668         * resolv/gai_suspend.c: New file.
2669         * resolv/ga_test.c: New file.
2670         * sysdeps/generic/gai_sigqueue.c: New file.
2671         * sysdeps/unix/sysv/linux/gai_sigqueue.c: New file.
2672         * sysdeps/generic/bits/siginfo.h: Allow __need_sigevent_t being defined
2673         and provide only that definition.
2674         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
2675         * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
2676         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
2677         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
2678         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
2679         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/siginfo.h: Likewise.
2681         * rt/aio_misc.c: Fix typos in comments.
2682         * rt/lio_listio.c: Pretty printing.  Little optimization in request
2683         list handling.
2685         * elf/rtld.c: Remove commented out code.
2687         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC):
2688         Update for real 2.4 kernels.
2690 2001-03-01  Ulrich Drepper  <drepper@redhat.com>
2692         * elf/dl-load.c: Pretty printing.
2694         * elf/dl-object.c (_dl_new_object): Don't add the loader's scope
2695         twice.
2697 2001-02-28  Ulrich Drepper  <drepper@redhat.com>
2699         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
2700         relocations which are not in ld.so if RTLD_BOOTSTRAP is defined.
2702         * sysdeps/powerpc/dl-machine.c (__process_machine_rela): Fix typo.
2704         * elf/dl-misc.c (_dl_debug_vdprintf): Fix typo visible on 64-bit
2705         machines.
2707         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (C_TEXT): Define.
2709 2001-02-27  Ulrich Drepper  <drepper@redhat.com>
2711         * sysdeps/powerpc/elf/libc-start.c: Use new output functions and
2712         _dl_debug_mask.
2714         * elf/Versions [ld]: Don't export _dl_debug_message anymore.  Export
2715         _dl_debug_printf.
2716         * elf/dl-misc.c: Remove definition of _dl_sysdep_output and
2717         _dl_debug_message.  Define _dl_debug_vdprintf, _dl_debug_printf,
2718         _dl_debug_printf_c, and _dl_printf.
2719         * sysdeps/generic/ldsodefs.h: Don't declare _dl_sysdep_output,
2720         _dl_debug_message, _dl_sysdep_message, _dl_sysdep_error, and
2721         _dl_sysdep_fatal.  Declare _dl_debug_printf, _dl_debug_printf_c,
2722         _dl_printf, _dl_error_printf, and _dl_fatal_printf.
2723         * elf/dl-close.c: Replace use of old output functions with the new
2724         ones.
2725         * elf/dl-deps.c: Likewise.
2726         * elf/dl-error.c: Likewise.
2727         * elf/dl-fini.c: Likewise.
2728         * elf/dl-init.c: Likewise.
2729         * elf/dl-load.c: Likewise.
2730         * elf/dl-lookup.c: Likewise.
2731         * elf/dl-minimal.c: Likewise.
2732         * elf/dl-open.c: Likewise.
2733         * elf/dl-profile.c: Likewise.
2734         * elf/dl-reloc.c: Likewise.
2735         * elf/dl-version.c: Likewise.
2736         * elf/do-lookup.h: Likewise.
2737         * elf/rtld.c: Likewise.
2738         * sysdeps/generic/dl-cache.c: Likewise.
2739         * sysdeps/generic/dl-sysdep.c: Likewise.
2740         * sysdeps/generic/libc-start.c: Likewise.
2741         * sysdeps/i386/dl-machine.h: Likewise.
2742         * sysdeps/arm/dl-machine.h: Likewise.
2743         * sysdeps/hppa/dl-machine.h: Likewise.
2744         * sysdeps/m68k/dl-machine.h: Likewise.
2745         * sysdeps/powerpc/dl-machine.h: Likewise.
2746         * sysdeps/s390/dl-machine.h: Likewise.
2747         * sysdeps/sh/dl-machine.h: Likewise.
2748         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
2749         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
2750         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
2752         * sysdeps/generic/ldsodefs.h: Remove _dl_secure declaration.
2754         * dlfcn/Makefile: Don't run tstatexit test unless .hidden is
2755         supported by assembler.
2757         * sysdeps/generic/ldsodefs.h: Remove commented-out variable
2758         declaractions.
2760         * elf/rtld.c: Little optimizations in handling _dl_lazy.
2762         * elf/cache.c (save_cache): Portability changes.
2763         * elf/dl-profile.c (_dl_start_profile): Likewise.
2765         * elf/sln.c: Cleanups.  Remove arbitrary limits.
2767         * elf/dl-close.c: Replace _dl_debug_* variables with _dl_debug_mask.
2768         * elf/dl-deps.c: Likewise.
2769         * elf/dl-fini.c: Likewise.
2770         * elf/dl-init.c: Likewise.
2771         * elf/dl-load.c: Likewise.
2772         * elf/dl-lookup.c: Likewise.
2773         * elf/dl-open.c: Likewise.
2774         * elf/dl-reloc.c: Likewise.
2775         * elf/dl-support.c: Likewise.
2776         * elf/dl-version.c: Likewise.
2777         * elf/do-lookup.h: Likewise.
2778         * elf/rtld.c: Likewise.
2779         * sysdeps/generic/dl-cache.c: Likewise.
2780         * sysdeps/generic/ldsodefs.h: Likewise.
2781         * sysdeps/generic/libc-start.c: Likewise.
2782         * elf/Versions: Don't export _dl_debug_impcalls and _dl_debug_files.
2783         Export _dl_debug_mask.
2784         * Versions.def: Define GLIBC_2.2.3 for ld.
2786 2001-02-26  Greg McGary  <greg@mcgary.org>
2788         * sysdeps/unix/make-syscalls.sh (ptr): Handle `V' keyletter.
2790 2001-02-26  Paul Eggert  <eggert@twinsun.com>
2792         Modify mkstemp.c and tempname.c so that they can be used by
2793         GNU applications on non-glibc platforms.
2795         * misc/mkstemp.c (__GT_FILE): Define to zero if not defined.
2797         * sysdeps/posix/tempname.c: Include <config.h> if HAVE_CONFIG_H.
2798         Include <stddef.h>, <stdint.h>, <string.h> only if
2799         STDC_HEADERS || _LIBC.
2800         Include <fcntl.h> only if HAVE_FCNTL_H || _LIBC.
2801         Include <unistd.h> only if HAVE_UNISTD_H || _LIBC.
2802         Include <sys/time.h> only if HAVE_SYS_TIME_H || _LIBC.
2803         (__set_errno): Define this macro if <errno.h> doesn't.
2804         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
2805         Define these macros if <stdio.h> doesn't.
2806         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
2807         Define these macros if <sys/stat.h> doesn't.
2808         Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
2809         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64,
2810         lxstat64, __xstat64): Define if not _LIBC.
2811         (struct_stat64): New macro.
2812         (direxists, __gen_tempname): Use it, to avoid a
2813         portability problem with Solaris 8.
2814         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
2815         (__gen_tempname): Invoke gettimeofday only if
2816         HAVE_GETTIMEOFDAY || _LIBC; otherwise, fall back on plain "time".
2817         Use portable macros like S_IRUSR | S_IWUSR rather than nonportable
2818         octal values like 0600.
2820 2001-02-26  Ulrich Drepper  <drepper@redhat.com>
2822         * sysdeps/ieee754/ldbl-96/e_jnl.c: New file.
2823         Contributed by Stephen L. Moshier <moshier@na-net.ornl.gov>.
2825         * sysdeps/i386/fpu/libm-test-ulps: Update for jnl and ynl introduction.
2826         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
2828         * posix/wordexp-test.c (testit): Remove warnings.
2830         * dlfcn/Makefile (distribute): Add modatexit.c and modcxaatexit.c.
2831         (tests): Add tstatexit and tstcxaatexit.
2832         (module-names): Add modatexit and modcxaatexit.
2833         Add rules to build and run tstatexit and tstcxaatexit.
2834         * dlfcn/modatexit.c: New file.
2835         * dlfcn/modcxaatexit.c: New file.
2836         * dlfcn/tstatexit.c: New file.
2837         * dlfcn/tstcxaatexit.c: New file.
2839         * io/Makefile: Pass -DHAVE_DOT_HIDDEN to stat and mknod functions if
2840         .hidden is available.
2841         * io/stat.c: If .hidden is available use it to avoid exporting
2842         functions.
2843         * io/fstat.c: Likewise.
2844         * io/lstat.c: Likewise.
2845         * io/stat64.c: Likewise.
2846         * io/fstat64.c: Likewise.
2847         * io/lstat64.c: Likewise.
2848         * sysdeps/generic/mknod.c: Likewise.
2850         * malloc/mtrace.c: Use __cxa_atexit and not atexit.
2851         * sysdeps/generic/bb_init_func.c: Likewise.
2852         * sysdeps/generic/libc-start.c: Likewise.
2854         * stdlib/atexit.c (__new_exitfn): Move to cxa_atexit.c.
2855         (atexit): Implement using __cxa_atexit.
2856         Use .hidden if availble to avoid exporting atexit.
2857         * stdlib/cxa_atexit.c (__new_exitfn): Moved to here from atexit.c.
2858         * stdlib/Versions: Export __new_exitfn for GLIBC_2.2.3.
2859         * stdlib/Makefile (routines): Add old_atexit.
2860         (static-only-routines): Add atexit.
2861         Pass -DHAVE_DOT_HIDDEN for atexit.c if .hidden is available.
2862         * stdlib/old_atexit.c: New file.
2864         * intl/Makefile: Remove bogus endif.
2866 2001-02-26  Andreas Jaeger  <aj@suse.de>
2868         * iconvdata/Makefile (tests): Fix typo in last patch.
2870         * intl/Makefile (tests): Run mtrace-tst-gettext only when perl is
2871         available.
2872         Reported by Achim Gottinger <achim@gentoo.org>.
2874 2001-02-25  Andreas Jaeger  <aj@suse.de>
2876         * intl/Makefile (plural.c): Reorder rules so that they work if
2877         BISON doesn't exist.
2879 2001-02-25  Ulrich Drepper  <drepper@redhat.com>
2881         * intl/locale.alias: Don't use nb_NO but define aliases for it.
2883 2001-02-23  Ulrich Drepper  <drepper@redhat.com>
2885         * sysdeps/i386/strtok.S: Continue to return NULL after the first
2886         time this happened.
2888 2001-02-23  Andreas Jaeger  <aj@suse.de>
2890         * string/tester.c (test_strtok_r): Add testcase.
2891         (test_strtok_r): Always initialize cp for proper checking.
2893         * sysdeps/generic/strtok.c (strtok): Handle case of first strtok
2894         returning NULL correctly.
2895         Patch by Fumitoshi UKAI <ukai@debian.or.jp>.
2896         * sysdeps/generic/strtok_r.c (__strtok_r): Likewise.
2898 2001-02-23  Ulrich Drepper  <drepper@redhat.com>
2900         * sysdeps/unix/sysv/aix/bits/types.h: Define __need_NULL before
2901         including <stddef.h>.
2902         * sysdeps/unix/sysv/aix/write.c: Define alias __libc_write.
2903         * include/libc-symbols.h (weak_alias): Don't use .weak if
2904         HAVE_ASM_GLOBAL_DOT_NAME is defined.
2905         Patches by Michael Keezer <mkeezer@redhat.com>.
2907         * sysdeps/generic/ftime.c: Don't include <sys/time.h> at all.
2908         Patch by Michael Keezer <mkeezer@redhat.com>.
2910         * sysdeps/unix/sysv/aix/Dist: Remove restf.S and savef.S.
2911         * sysdeps/unix/sysv/aix/Makefile [$(subdir) == misc]
2912         (sysdep_routines): Remove restf.S and savef.S.
2913         * sysdeps/unix/sysv/aix/restf.S. Removed.
2914         * sysdeps/unix/sysv/aix/savef.S. Removed.
2915         * sysdeps/powerpc/fprrest.S: Use C_TEXT to define label.  Also define
2916         alternative names used on some platforms.
2917         * sysdeps/powerpc/fprsave.S: Likewise.
2918         * sysdeps/powerpc/gprrest0.S: Likewise.
2919         * sysdeps/powerpc/gprrest1.S: Likewise.
2920         * sysdeps/powerpc/gprsave0.S: Likewise.
2921         * sysdeps/powerpc/gprsave1.S: Likewise.
2922         Patch by Michael Keezer <mkeezer@redhat.com>.
2924 2001-02-22  Ulrich Drepper  <drepper@redhat.com>
2926         * sysdeps/i386/elf/start.S (_fp_hw): Actually define label.
2928 2001-02-22  Andreas Jaeger  <aj@suse.de>
2930         * string/tst-strtok.c (main): Fix error messages.
2932 2001-02-22  Andreas Jaeger  <aj@suse.de>
2934         * math/Makefile: Remove omit-long-double-fcts.
2936 2001-02-18  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2938         * sysdeps/mips/bsd-_setjmp.S (_setjmp): Reorder instructions to
2939         avoid problems on MIPS I.
2940         * sysdeps/mips/bsd-setjmp.S (setjmp): Likewise.
2942         * sysdeps/mips/dl-machine.h (RTLD_START): Remove duplicate ".set
2943         noreorder".
2945 2001-02-21  Ulrich Drepper  <drepper@redhat.com>
2947         * posix/fnmatch_loop.c: Handle ranges outside glibc correctly.
2949         * sysdeps/generic/ftime.c: Include <time.h>.
2951         * configure.in: Don't check for libgd if user passed --without-gd.
2952         Patch by Achim Gottinger <achim@gentoo.org>.
2954         * sysdeps/i386/i686/strtok.S: Continue to return NULL after the
2955         first time this happened.
2956         * string/Makefile (tests): Add tst-strtok.
2958 2001-02-21  Andreas Jaeger  <aj@suse.de>
2960         * string/tst-strtok.c: New testcase, reported by
2961         Andrew Church <achurch@achurch.org>.
2963 2001-02-20  Ulrich Drepper  <drepper@redhat.com>
2965         * libio/iofwide.c: Remove fwide alias.
2967 2001-02-20  Andreas Jaeger  <aj@suse.de>
2969         * iconvdata/Makefile (tests): Only run mtrace-tst-loading if perl
2970         is available.
2971         Reported by Achim Gottinger <achim@gentoo.org>.
2973 2001-02-19  Ulrich Drepper  <drepper@redhat.com>
2975         * iconv/tst-iconv1.c (main): Remove debugging code.
2977         * sysdeps/ieee754/flt-32/e_powf.c: Handle x == +-1 correctly.
2978         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2980         * sysdeps/generic/e_scalb.c: Set invalid exception for invalid
2981         parameters.
2982         * sysdeps/generic/e_scalbf.c: Likewise.
2983         * sysdeps/generic/e_scalbl.c: Likewise.
2985         * sysdeps/ia64/fpu/Makefile (libm-sysdep-routines): Add libm_error,
2986         libm_frexp4, libm_frexp4f, libm_frexp4l, and all the functions also
2987         in libc.
2988         (routines): Replace libm_error with libc_libm_error.
2989         * sysdeps/ia64/fpu/Dist: Add libc_libm_error.c.
2990         * sysdeps/ia64/fpu/libc_libm_error.c: New file.
2992 2001-02-18  Mark Kettenis  <kettenis@gnu.org>
2994         * malloc/mtrace.c [USE_IN_LIBIO]: Define fopen as _IO_fopen64.
2995         (mtrace): Revert 2001-02-13 patch: use fopen instead of fopen64.
2997 2001-02-17  H.J. Lu  <hjl@gnu.org>
2999         * sysdeps/unix/sysv/linux/ia64/clone2.S: Use clone2 and don't use
3000         scratch registers across the system call.
3002 2001-02-19  Andreas Jaeger  <aj@suse.de>
3004         * malloc/Makefile (tests): Run mtrace only when perl is available.
3005         Reported by Achim Gottinger <achim@gentoo.org>.
3007 2001-02-19  Ulrich Drepper  <drepper@redhat.com>
3009         * sysdeps/ieee754/ldbl-96/e_j1l.c: New file.
3010         Contributed by Stephen L. Moshier <moshier@na-net.ornl.gov>.
3012         * sysdeps/i386/fpu/libm-test-ulps: Adjust error values for j1 and y1.
3013         * sysdeps/ia64/fpu/libm-test-ulps: Adjust error values for y1.
3014         * math/libm-test.inc (j1_test): Mark constants as long double.
3015         (jn_test): Likewise.
3016         (y1_test): Likewise.
3017         (yn_test): Likewise.
3019         * libio/iogetline.c: Move return until after last statement.
3021         * localedata/show-ucs-data.c: Don't show < > for better readability.
3023         * sysdeps/ia64/fpu/Dist: New file.
3024         * sysdeps/ia64/fpu/Makefile: New file.
3025         * sysdeps/ia64/fpu/Versions: New file.
3026         * sysdeps/ia64/fpu/e_acos.S: New file.
3027         * sysdeps/ia64/fpu/e_acosf.S: New file.
3028         * sysdeps/ia64/fpu/e_acosl.S: New file.
3029         * sysdeps/ia64/fpu/e_asin.S: New file.
3030         * sysdeps/ia64/fpu/e_asinf.S: New file.
3031         * sysdeps/ia64/fpu/e_asinl.S: New file.
3032         * sysdeps/ia64/fpu/e_atan2.S: New file.
3033         * sysdeps/ia64/fpu/e_atan2f.S: New file.
3034         * sysdeps/ia64/fpu/e_atan2l.c: New file.
3035         * sysdeps/ia64/fpu/e_cosh.S: New file.
3036         * sysdeps/ia64/fpu/e_coshf.S: New file.
3037         * sysdeps/ia64/fpu/e_coshl.S: New file.
3038         * sysdeps/ia64/fpu/e_exp.S: New file.
3039         * sysdeps/ia64/fpu/e_expf.S: New file.
3040         * sysdeps/ia64/fpu/e_expl.c: New file.
3041         * sysdeps/ia64/fpu/e_fmod.S: New file.
3042         * sysdeps/ia64/fpu/e_fmodf.S: New file.
3043         * sysdeps/ia64/fpu/e_fmodl.S: New file.
3044         * sysdeps/ia64/fpu/e_hypot.S: New file.
3045         * sysdeps/ia64/fpu/e_hypotf.S: New file.
3046         * sysdeps/ia64/fpu/e_hypotl.S: New file.
3047         * sysdeps/ia64/fpu/e_log.S: New file.
3048         * sysdeps/ia64/fpu/e_log10.c: New file.
3049         * sysdeps/ia64/fpu/e_log10f.c: New file.
3050         * sysdeps/ia64/fpu/e_log10l.c: New file.
3051         * sysdeps/ia64/fpu/e_logf.S: New file.
3052         * sysdeps/ia64/fpu/e_logl.c: New file.
3053         * sysdeps/ia64/fpu/e_pow.S: New file.
3054         * sysdeps/ia64/fpu/e_powf.S: New file.
3055         * sysdeps/ia64/fpu/e_powl.S: New file.
3056         * sysdeps/ia64/fpu/e_rem_pio2.c: New file.
3057         * sysdeps/ia64/fpu/e_rem_pio2f.c: New file.
3058         * sysdeps/ia64/fpu/e_remainder.S: New file.
3059         * sysdeps/ia64/fpu/e_remainderf.S: New file.
3060         * sysdeps/ia64/fpu/e_remainderl.S: New file.
3061         * sysdeps/ia64/fpu/e_scalb.S: New file.
3062         * sysdeps/ia64/fpu/e_scalbf.S: New file.
3063         * sysdeps/ia64/fpu/e_scalbl.S: New file.
3064         * sysdeps/ia64/fpu/e_sinh.S: New file.
3065         * sysdeps/ia64/fpu/e_sinhf.S: New file.
3066         * sysdeps/ia64/fpu/e_sinhl.S: New file.
3067         * sysdeps/ia64/fpu/e_sqrt.S: New file.
3068         * sysdeps/ia64/fpu/e_sqrtf.S: New file.
3069         * sysdeps/ia64/fpu/e_sqrtl.S: New file.
3070         * sysdeps/ia64/fpu/k_rem_pio2.c: New file.
3071         * sysdeps/ia64/fpu/k_rem_pio2f.c: New file.
3072         * sysdeps/ia64/fpu/k_rem_pio2l.c: New file.
3073         * sysdeps/ia64/fpu/libm_atan2_reg.S: New file.
3074         * sysdeps/ia64/fpu/libm_error.c: New file.
3075         * sysdeps/ia64/fpu/libm_frexp4.S: New file.
3076         * sysdeps/ia64/fpu/libm_frexp4f.S: New file.
3077         * sysdeps/ia64/fpu/libm_frexp4l.S: New file.
3078         * sysdeps/ia64/fpu/libm_reduce.S: New file.
3079         * sysdeps/ia64/fpu/libm_support.h: New file.
3080         * sysdeps/ia64/fpu/libm_tan.S: New file.
3081         * sysdeps/ia64/fpu/s_atan.S: New file.
3082         * sysdeps/ia64/fpu/s_atanf.S: New file.
3083         * sysdeps/ia64/fpu/s_atanl.S: New file.
3084         * sysdeps/ia64/fpu/s_cbrt.S: New file.
3085         * sysdeps/ia64/fpu/s_cbrtf.S: New file.
3086         * sysdeps/ia64/fpu/s_cbrtl.S: New file.
3087         * sysdeps/ia64/fpu/s_ceil.S: New file.
3088         * sysdeps/ia64/fpu/s_ceilf.S: New file.
3089         * sysdeps/ia64/fpu/s_ceill.S: New file.
3090         * sysdeps/ia64/fpu/s_cos.S: New file.
3091         * sysdeps/ia64/fpu/s_cosf.S: New file.
3092         * sysdeps/ia64/fpu/s_cosl.S: New file.
3093         * sysdeps/ia64/fpu/s_expm1.S: New file.
3094         * sysdeps/ia64/fpu/s_expm1f.S: New file.
3095         * sysdeps/ia64/fpu/s_expm1l.S: New file.
3096         * sysdeps/ia64/fpu/s_floor.S: New file.
3097         * sysdeps/ia64/fpu/s_floorf.S: New file.
3098         * sysdeps/ia64/fpu/s_floorl.S: New file.
3099         * sysdeps/ia64/fpu/s_frexp.c: New file.
3100         * sysdeps/ia64/fpu/s_frexpf.c: New file.
3101         * sysdeps/ia64/fpu/s_frexpl.c: New file.
3102         * sysdeps/ia64/fpu/s_ilogb.S: New file.
3103         * sysdeps/ia64/fpu/s_ilogbf.S: New file.
3104         * sysdeps/ia64/fpu/s_ilogbl.S: New file.
3105         * sysdeps/ia64/fpu/s_ldexp.S: New file.
3106         * sysdeps/ia64/fpu/s_ldexpf.S: New file.
3107         * sysdeps/ia64/fpu/s_ldexpl.S: New file.
3108         * sysdeps/ia64/fpu/s_log1p.S: New file.
3109         * sysdeps/ia64/fpu/s_log1pf.S: New file.
3110         * sysdeps/ia64/fpu/s_log1pl.S: New file.
3111         * sysdeps/ia64/fpu/s_logb.S: New file.
3112         * sysdeps/ia64/fpu/s_logbf.S: New file.
3113         * sysdeps/ia64/fpu/s_logbl.S: New file.
3114         * sysdeps/ia64/fpu/s_matherrf.c: New file.
3115         * sysdeps/ia64/fpu/s_matherrl.c: New file.
3116         * sysdeps/ia64/fpu/s_modf.S: New file.
3117         * sysdeps/ia64/fpu/s_modff.S: New file.
3118         * sysdeps/ia64/fpu/s_modfl.S: New file.
3119         * sysdeps/ia64/fpu/s_nearbyint.S: New file.
3120         * sysdeps/ia64/fpu/s_nearbyintf.S: New file.
3121         * sysdeps/ia64/fpu/s_nearbyintl.S: New file.
3122         * sysdeps/ia64/fpu/s_rint.S: New file.
3123         * sysdeps/ia64/fpu/s_rintf.S: New file.
3124         * sysdeps/ia64/fpu/s_rintl.S: New file.
3125         * sysdeps/ia64/fpu/s_round.S: New file.
3126         * sysdeps/ia64/fpu/s_roundf.S: New file.
3127         * sysdeps/ia64/fpu/s_roundl.S: New file.
3128         * sysdeps/ia64/fpu/s_scalbn.S: New file.
3129         * sysdeps/ia64/fpu/s_scalbnf.S: New file.
3130         * sysdeps/ia64/fpu/s_scalbnl.S: New file.
3131         * sysdeps/ia64/fpu/s_significand.S: New file.
3132         * sysdeps/ia64/fpu/s_significandf.S: New file.
3133         * sysdeps/ia64/fpu/s_significandl.S: New file.
3134         * sysdeps/ia64/fpu/s_sin.c: New file.
3135         * sysdeps/ia64/fpu/s_sincos.c: New file.
3136         * sysdeps/ia64/fpu/s_sincosf.c: New file.
3137         * sysdeps/ia64/fpu/s_sincosl.c: New file.
3138         * sysdeps/ia64/fpu/s_sinf.c: New file.
3139         * sysdeps/ia64/fpu/s_sinl.c: New file.
3140         * sysdeps/ia64/fpu/s_tan.S: New file.
3141         * sysdeps/ia64/fpu/s_tanf.S: New file.
3142         * sysdeps/ia64/fpu/s_tanl.S: New file.
3143         * sysdeps/ia64/fpu/s_trunc.S: New file.
3144         * sysdeps/ia64/fpu/s_truncf.S: New file.
3145         * sysdeps/ia64/fpu/s_truncl.S: New file.
3146         * sysdeps/ia64/fpu/w_acos.c: New file.
3147         * sysdeps/ia64/fpu/w_acosf.c: New file.
3148         * sysdeps/ia64/fpu/w_acosl.c: New file.
3149         * sysdeps/ia64/fpu/w_asin.c: New file.
3150         * sysdeps/ia64/fpu/w_asinf.c: New file.
3151         * sysdeps/ia64/fpu/w_asinl.c: New file.
3152         * sysdeps/ia64/fpu/w_atan2.c: New file.
3153         * sysdeps/ia64/fpu/w_atan2f.c: New file.
3154         * sysdeps/ia64/fpu/w_atan2l.c: New file.
3155         * sysdeps/ia64/fpu/w_cosh.c: New file.
3156         * sysdeps/ia64/fpu/w_coshf.c: New file.
3157         * sysdeps/ia64/fpu/w_coshl.c: New file.
3158         * sysdeps/ia64/fpu/w_exp.c: New file.
3159         * sysdeps/ia64/fpu/w_expf.c: New file.
3160         * sysdeps/ia64/fpu/w_fmod.c: New file.
3161         * sysdeps/ia64/fpu/w_fmodf.c: New file.
3162         * sysdeps/ia64/fpu/w_fmodl.c: New file.
3163         * sysdeps/ia64/fpu/w_hypot.c: New file.
3164         * sysdeps/ia64/fpu/w_hypotf.c: New file.
3165         * sysdeps/ia64/fpu/w_hypotl.c: New file.
3166         * sysdeps/ia64/fpu/w_log.c: New file.
3167         * sysdeps/ia64/fpu/w_log10.c: New file.
3168         * sysdeps/ia64/fpu/w_log10f.c: New file.
3169         * sysdeps/ia64/fpu/w_log10l.c: New file.
3170         * sysdeps/ia64/fpu/w_logf.c: New file.
3171         * sysdeps/ia64/fpu/w_logl.c: New file.
3172         * sysdeps/ia64/fpu/w_pow.c: New file.
3173         * sysdeps/ia64/fpu/w_powf.c: New file.
3174         * sysdeps/ia64/fpu/w_powl.c: New file.
3175         * sysdeps/ia64/fpu/w_remainder.c: New file.
3176         * sysdeps/ia64/fpu/w_remainderf.c: New file.
3177         * sysdeps/ia64/fpu/w_remainderl.c: New file.
3178         * sysdeps/ia64/fpu/w_scalb.c: New file.
3179         * sysdeps/ia64/fpu/w_scalbf.c: New file.
3180         * sysdeps/ia64/fpu/w_scalbl.c: New file.
3181         * sysdeps/ia64/fpu/w_sqrt.c: New file.
3182         * sysdeps/ia64/fpu/w_sqrtf.c: New file.
3183         * sysdeps/ia64/fpu/w_sqrtl.c: New file.
3184         * sysdeps/ia64/fpu/libm-test-ulps: Adjust for long double
3185         implementation.
3186         * sysdeps/ia64/fpu/bits/mathdef.h: Correct float_t and double_t types.
3187         Change FP_ILOGBNAN for new implementation.
3188         * Verions.def: Add 2.2.3 versions.
3190 2001-02-18  Ulrich Drepper  <drepper@redhat.com>
3192         * math/libm-test.inc (scalb_test): Require invalid exception being
3193         raised for invalid parameters.
3194         * sysdeps/i386/fpu/e_scalb.S: Raise invalid exception if necessary.
3195         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3196         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3198 2001-02-18  Mark Kettenis  <kettenis@gnu.org>
3200         * sysdeps/mach/getsysstats.c (__get_phys_pages): Change return
3201         value to long int.
3202         (__get_avphys_pages): Likewise.
3204 2001-02-18  Ulrich Drepper  <drepper@redhat.com>
3206         * math/libm-test.inc (pow_test): Correct expected results for x == +-1.
3207         * sysdeps/i386/fpu/e_pow.S: Handle x == +-1 correctly.
3208         * sysdeps/i386/fpu/e_powf.S: Likewise.
3209         * sysdeps/i386/fpu/e_powl.S: Likewise.
3211         * sysdeps/i386/fpu/bits/mathinline.h: Remove pow inline code.
3213 2001-02-17  Ulrich Drepper  <drepper@redhat.com>
3215         * math/Makefile (libm-calls): It's e_exp2 not s_exp2.
3217         * sysdeps/generic/s_exp2l.c: Renamed to...
3218         * sysdeps/generic/e_exp2l.c: ...this.   New file.
3219         * sysdeps/i386/fpu/s_exp2.S: Renamed to...
3220         * sysdeps/i386/fpu/e_exp2.S: ...this.   New file.
3221         * sysdeps/i386/fpu/s_exp2f.S: Renamed to...
3222         * sysdeps/i386/fpu/e_exp2f.S: ...this.   New file.
3223         * sysdeps/i386/fpu/s_exp2l.S: Renamed to...
3224         * sysdeps/i386/fpu/e_exp2l.S: ...this.   New file.
3225         * sysdeps/ieee754/flt-32/s_exp2f.c: Renamed to...
3226         * sysdeps/ieee754/flt-32/e_exp2f.c: ...this.   New file.
3227         * sysdeps/ieee754/dbl-64/s_exp2.c: Renamed to...
3228         * sysdeps/ieee754/dbl-64/e_exp2.c: ...this.   New file.
3229         * sysdeps/m68k/fpu/s_exp2.c: Renamed to...
3230         * sysdeps/m68k/fpu/e_exp2.c: ...this.   New file.
3231         * sysdeps/m68k/fpu/s_exp2f.c: Renamed to...
3232         * sysdeps/m68k/fpu/e_exp2f.c: ...this.   New file.
3233         * sysdeps/m68k/fpu/s_exp2l.c: Renamed to...
3234         * sysdeps/m68k/fpu/e_exp2l.c: ...this.   New file.
3236 2001-02-17  Andreas Jaeger  <aj@suse.de>
3238         * configure.in: Allow gcc 3.
3240 2001-02-16  Ulrich Drepper  <drepper@redhat.com>
3242         * math/w_acos.c: Move to ...
3243         * sysdeps/generic/w_acos.c: ...here.  New file.
3244         * math/w_acosf.c: Move to ...
3245         * sysdeps/generic/w_acosf.c: ...here.  New file.
3246         * math/w_acosh.c: Move to ...
3247         * sysdeps/generic/w_acosh.c: ...here.  New file.
3248         * math/w_acoshf.c: Move to ...
3249         * sysdeps/generic/w_acoshf.c: ...here.  New file.
3250         * math/w_acoshl.c: Move to ...
3251         * sysdeps/generic/w_acoshl.c: ...here.  New file.
3252         * math/w_acosl.c: Move to ...
3253         * sysdeps/generic/w_acosl.c: ...here.  New file.
3254         * math/w_asin.c: Move to ...
3255         * sysdeps/generic/w_asin.c: ...here.  New file.
3256         * math/w_asinf.c: Move to ...
3257         * sysdeps/generic/w_asinf.c: ...here.  New file.
3258         * math/w_asinl.c: Move to ...
3259         * sysdeps/generic/w_asinl.c: ...here.  New file.
3260         * math/w_atan2.c: Move to ...
3261         * sysdeps/generic/w_atan2.c: ...here.  New file.
3262         * math/w_atan2f.c: Move to ...
3263         * sysdeps/generic/w_atan2f.c: ...here.  New file.
3264         * math/w_atan2l.c: Move to ...
3265         * sysdeps/generic/w_atan2l.c: ...here.  New file.
3266         * math/w_atanh.c: Move to ...
3267         * sysdeps/generic/w_atanh.c: ...here.  New file.
3268         * math/w_atanhf.c: Move to ...
3269         * sysdeps/generic/w_atanhf.c: ...here.  New file.
3270         * math/w_atanhl.c: Move to ...
3271         * sysdeps/generic/w_atanhl.c: ...here.  New file.
3272         * math/w_cosh.c: Move to ...
3273         * sysdeps/generic/w_cosh.c: ...here.  New file.
3274         * math/w_coshf.c: Move to ...
3275         * sysdeps/generic/w_coshf.c: ...here.  New file.
3276         * math/w_coshl.c: Move to ...
3277         * sysdeps/generic/w_coshl.c: ...here.  New file.
3278         * math/w_drem.c: Move to ...
3279         * sysdeps/generic/w_drem.c: ...here.  New file.
3280         * math/w_dremf.c: Move to ...
3281         * sysdeps/generic/w_dremf.c: ...here.  New file.
3282         * math/w_dreml.c: Move to ...
3283         * sysdeps/generic/w_dreml.c: ...here.  New file.
3284         * math/w_exp10.c: Move to ...
3285         * sysdeps/generic/w_exp10.c: ...here.  New file.
3286         * math/w_exp10f.c: Move to ...
3287         * sysdeps/generic/w_exp10f.c: ...here.  New file.
3288         * math/w_exp10l.c: Move to ...
3289         * sysdeps/generic/w_exp10l.c: ...here.  New file.
3290         * math/w_exp2.c: Move to ...
3291         * sysdeps/generic/w_exp2.c: ...here.  New file.
3292         * math/w_exp2f.c: Move to ...
3293         * sysdeps/generic/w_exp2f.c: ...here.  New file.
3294         * math/w_exp2l.c: Move to ...
3295         * sysdeps/generic/w_exp2l.c: ...here.  New file.
3296         * math/w_fmod.c: Move to ...
3297         * sysdeps/generic/w_fmod.c: ...here.  New file.
3298         * math/w_fmodf.c: Move to ...
3299         * sysdeps/generic/w_fmodf.c: ...here.  New file.
3300         * math/w_fmodl.c: Move to ...
3301         * sysdeps/generic/w_fmodl.c: ...here.  New file.
3302         * math/w_hypot.c: Move to ...
3303         * sysdeps/generic/w_hypot.c: ...here.  New file.
3304         * math/w_hypotf.c: Move to ...
3305         * sysdeps/generic/w_hypotf.c: ...here.  New file.
3306         * math/w_hypotl.c: Move to ...
3307         * sysdeps/generic/w_hypotl.c: ...here.  New file.
3308         * math/w_j0.c: Move to ...
3309         * sysdeps/generic/w_j0.c: ...here.  New file.
3310         * math/w_j0f.c: Move to ...
3311         * sysdeps/generic/w_j0f.c: ...here.  New file.
3312         * math/w_j0l.c: Move to ...
3313         * sysdeps/generic/w_j0l.c: ...here.  New file.
3314         * math/w_j1.c: Move to ...
3315         * sysdeps/generic/w_j1.c: ...here.  New file.
3316         * math/w_j1f.c: Move to ...
3317         * sysdeps/generic/w_j1f.c: ...here.  New file.
3318         * math/w_j1l.c: Move to ...
3319         * sysdeps/generic/w_j1l.c: ...here.  New file.
3320         * math/w_jn.c: Move to ...
3321         * sysdeps/generic/w_jn.c: ...here.  New file.
3322         * math/w_jnf.c: Move to ...
3323         * sysdeps/generic/w_jnf.c: ...here.  New file.
3324         * math/w_jnl.c: Move to ...
3325         * sysdeps/generic/w_jnl.c: ...here.  New file.
3326         * math/w_lgamma.c: Move to ...
3327         * sysdeps/generic/w_lgamma.c: ...here.  New file.
3328         * math/w_lgammaf.c: Move to ...
3329         * sysdeps/generic/w_lgammaf.c: ...here.  New file.
3330         * math/w_lgammaf_r.c: Move to ...
3331         * sysdeps/generic/w_lgammaf_r.c: ...here.  New file.
3332         * math/w_lgammal.c: Move to ...
3333         * sysdeps/generic/w_lgammal.c: ...here.  New file.
3334         * math/w_lgammal_r.c: Move to ...
3335         * sysdeps/generic/w_lgammal_r.c: ...here.  New file.
3336         * math/w_lgamma_r.c: Move to ...
3337         * sysdeps/generic/w_lgamma_r.c: ...here.  New file.
3338         * math/w_log10.c: Move to ...
3339         * sysdeps/generic/w_log10.c: ...here.  New file.
3340         * math/w_log10f.c: Move to ...
3341         * sysdeps/generic/w_log10f.c: ...here.  New file.
3342         * math/w_log10l.c: Move to ...
3343         * sysdeps/generic/w_log10l.c: ...here.  New file.
3344         * math/w_log.c: Move to ...
3345         * sysdeps/generic/w_log.c: ...here.  New file.
3346         * math/w_logf.c: Move to ...
3347         * sysdeps/generic/w_logf.c: ...here.  New file.
3348         * math/w_logl.c: Move to ...
3349         * sysdeps/generic/w_logl.c: ...here.  New file.
3350         * math/w_pow.c: Move to ...
3351         * sysdeps/generic/w_pow.c: ...here.  New file.
3352         * math/w_powf.c: Move to ...
3353         * sysdeps/generic/w_powf.c: ...here.  New file.
3354         * math/w_powl.c: Move to ...
3355         * sysdeps/generic/w_powl.c: ...here.  New file.
3356         * math/w_remainder.c: Move to ...
3357         * sysdeps/generic/w_remainder.c: ...here.  New file.
3358         * math/w_remainderf.c: Move to ...
3359         * sysdeps/generic/w_remainderf.c: ...here.  New file.
3360         * math/w_remainderl.c: Move to ...
3361         * sysdeps/generic/w_remainderl.c: ...here.  New file.
3362         * math/w_scalb.c: Move to ...
3363         * sysdeps/generic/w_scalb.c: ...here.  New file.
3364         * math/w_scalbf.c: Move to ...
3365         * sysdeps/generic/w_scalbf.c: ...here.  New file.
3366         * math/w_scalbl.c: Move to ...
3367         * sysdeps/generic/w_scalbl.c: ...here.  New file.
3368         * math/w_sinh.c: Move to ...
3369         * sysdeps/generic/w_sinh.c: ...here.  New file.
3370         * math/w_sinhf.c: Move to ...
3371         * sysdeps/generic/w_sinhf.c: ...here.  New file.
3372         * math/w_sinhl.c: Move to ...
3373         * sysdeps/generic/w_sinhl.c: ...here.  New file.
3374         * math/w_sqrtl.c: Move to ...
3375         * sysdeps/generic/w_sqrtl.c: ...here.  New file.
3376         * math/w_tgamma.c: Move to ...
3377         * sysdeps/generic/w_tgamma.c: ...here.  New file.
3378         * math/w_tgammaf.c: Move to ...
3379         * sysdeps/generic/w_tgammaf.c: ...here.  New file.
3380         * math/w_tgammal.c: Move to ...
3381         * sysdeps/generic/w_tgammal.c: ...here.  New file.
3383         * locale/programs/ld-address.c (address_finish): Add 'S' to allow
3384         formats for postal_fmt.
3386 2001-02-16  Jakub Jelinek  <jakub@redhat.com>
3388         * sysdeps/unix/sysv/linux/alpha/syscalls.list (ftruncate): Add
3389         __ftruncate64 alias.
3390         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (ftruncate):
3391         Likewise.
3393 2001-02-15  David Mosberger  <davidm@hpl.hp.com>
3395         * sysdeps/unix/sysv/linux/ia64/__longjmp.S (__longjmp): No need to
3396         do "loadrs".  Writing to bspstore already takes care of
3397         invalidating the "clean" partition.
3399 2001-02-16  Andreas Schwab  <schwab@suse.de>
3401         * sysdeps/m68k/fpu/s_nextafterl.c: New file.
3402         * sysdeps/m68k/fpu/s_fpclassifyl.c: New file.
3404 2001-02-15  Jakub Jelinek  <jakub@redhat.com>
3406         * posix/regex.c (init_syntax_once): Add prototype.
3407         (TRANSLATE): If MBS_SUPPORT, translate all characters up to '\xff'.
3408         (re_search_2): Avoid warning.
3409         (count_mbs_length): Add prototype.
3410         * posix/tst-regex3.c: New file.
3411         * posix/Makefile (tests): Add bug-regex3.
3413 2001-02-15  Ulrich Drepper  <drepper@redhat.com>
3415         * stdio-common/Makefile (tests): Add tst-gets.
3416         * stdio-common/tst-gets.c: New file.
3417         * stdio-common/tst-gets.input: New file.
3419         * elf/elf.h (DT_CHECKSUM): Define.
3421         * sysdeps/generic/strtoll.c: Don't export __strto*_internal as
3422         default symbol.
3423         * sysdeps/generic/strtoull.c: Likewise.
3425 2001-02-14  Wolfram Gloger  <wg@malloc.de>
3427         * malloc/malloc.c (new_heap): When allocating large chunk aligned
3428         to HEAP_MAX_SIZE, prefer one with lower address, to avoid `holes'
3429         between the heaps.
3431 2001-02-14  Ulrich Drepper  <drepper@redhat.com>
3433         * math/libm-test.inc (j0_test): Check whether sincos is available.
3434         (j1_test): Likewise.
3435         (jn_test): Likewise.
3436         (y0_test): Likewise.
3437         (y1_test): Likewise.
3438         (yn_test): Likewise.
3440         * posix/tst-gnuglob.c: Make a few entries DT_UNKNOWN and teach
3441         fake filesystem routines to handle this.
3443         * time/sys/time.h: Make settimeofday and adjtime available if
3444         _BSD_SOURCE.
3446         * time/sys/time.h: Make timer* macros available for BSD.
3448         * iconvdata/gb18030.c: Update for Dec 2000 re-release of GB18030.
3449         Patch by Yong Li <rigel863@yahoo.com>.
3451         * sysdeps/generic/glob.c (CONVERT_DIRENT_DIRENT64): Fix copying of
3452         name.
3454         * posix/Makefile (tests): Add tst-gnuglob.
3455         * posix/tst-gnuglob.c: New file.
3457 2001-02-13  H.J. Lu  <hjl@gnu.org>
3459         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __ftruncate64.
3461 2001-02-13  Ulrich Drepper  <drepper@redhat.com>
3463         * locale/programs/ld-paper.c (paper_output): Pretty printing.
3465         * iconvdata/Makefile (modules): Add GBBIG5.
3466         (distribute): Add gbbig5.c.
3467         * iconvdata/gconv-modules: Add entries for GBBIG5 module.
3469         * iconvdata/gbbig5.c: New file.
3470         Contributed by Yong Li <rigel863@yahoo.com>.
3472 2001-02-13  Philip Blundell  <pb@futuretv.com>
3474         * manual/crypt.texi: Remove outdated references to crypt add-on.
3476         * manual/creature.texi: Improve wording slightly.
3478 2001-02-13  Ulrich Drepper  <drepper@redhat.com>
3480         * io/ftw.c: Always use readdir64.
3481         * io/ftw64.c: Likewise.
3482         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
3483         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
3484         * sysdeps/generic/glob.c: Likewise.  Convert results of gl_readdir
3485         callback to dirent.  Still allow compiling outside glibc.
3486         * sysdeps/gnu/glob64.c: Define COMPILE_GLOB64.
3487         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
3489         * malloc/mtrace.c: Use fopen64.
3490         * posix/spawni.c: Use __open64.
3491         * sysdeps/unix/opendir.c: Likewise.
3492         * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
3494         * sysdeps/generic/ftruncate64.c: Define __ftruncate64 and make old
3495         name a weak alias.
3496         * sysdeps/unix/sysv/aix/ftruncate64.c: Likewise.
3497         * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
3498         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
3499         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
3501         * resolv/res_data.c: Add cast to avoid warning.
3503         * include/unistd.h: Declare __ftruncate64.
3505         * sysdeps/generic/utmp_file.c: Use LFS functions and types.
3507         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use __lseek64
3508         instead of __lseek.
3510 2001-02-13  Andreas Jaeger  <aj@suse.de>
3512         * login/getutent_r.c: Include <stdlib.h> for NULL.
3513         * login/getutid_r.c: Likewise.
3515 2001-02-12  Ulrich Drepper  <drepper@redhat.com>
3517         * sysdeps/dbl-64/e_j0.c: Little optimization, use sincos.
3518         * sysdeps/dbl-64/e_j1.c: Likewise.
3519         * sysdeps/dbl-64/e_jn.c: Likewise.
3520         * sysdeps/flt-32/e_j0f.c: Likewise.
3521         * sysdeps/flt-32/e_j1f.c: Likewise.
3522         * sysdeps/ldbl-96/e_j0l.c: Likewise.
3524 2000-12-02  H.J. Lu  <hjl@gnu.org>
3526         * resolv/res_libc.c (res_init): Don't make it default.
3528 2001-02-12  Ulrich Drepper  <drepper@redhat.com>
3530         * manual/debug.texi: Improved the wording.
3531         Patch by Philip Blundell <pb@futuretv.com>.
3533 2001-02-12  Andreas Jaeger  <aj@suse.de>
3535         * posix/Makefile (tests): Don't run bug-regex2 when
3536         cross-compiling.
3538         * libio/Makefile (tests): Don't run test-freopen when
3539         cross-compiling.
3541         * manual/stdio.texi (Streams and I18N): Fix typos.
3543 2001-02-12  Ulrich Drepper  <drepper@redhat.com>
3545         * sysdeps/i386/fpu/libm-test-ulps: Adjust for errors in y0l.
3547         * math/libm-test.inc (j0_test): Make expected results long double
3548         constants.
3549         (y0_test): Likewise.
3551         * sysdeps/ieee754/ldbl-96/e_j0l.c: New file.
3552         Contributed by Stephen L. Moshier <moshier@na-net.ornl.gov>.
3554 2001-02-11  Jakub Jelinek  <jakub@redhat.com>
3556         * sysdeps/generic/strtoll.c (__strtoq_internal): Ressurect alias
3557         which was exported from libc.
3558         * sysdeps/generic/strtoull.c (__strtouq_internal): Likewise.
3560 2001-02-12  Andreas Jaeger  <aj@suse.de>
3562         * manual/arith.texi (Parsing of Integers): Fix some wordings.
3564 2001-02-11  Ulrich Drepper  <drepper@redhat.com>
3566         * sysdeps/generic/getsysstat.c: Change return value of get_phys_pages
3567         and get_avphys_page to long int.
3568         * sysdeps/unix/sysv/linux/getsysstat.c: Likewise.
3569         * include/sys/sysinfo.h: Likewise.
3570         * sysdeps/generic/sys/sysinfo.h: Likewise.
3571         * sysdeps/unix/sysv/linux/sys/sysinfo.h: Likewise.
3573         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Fail if we
3574         cannot return as many values as the user asked for.
3576 2001-02-11  Andreas Jaeger  <aj@suse.de>
3578         * manual/resource.texi (Memory Resources): Fix typo.
3580         * libio/Makefile ($(objpfx)test-freopen.out): Pass
3581         run-program-prefix.
3583         * libio/test-freopen.sh: Use run_program_prefix.
3585 2001-02-10  Andreas Jaeger  <aj@suse.de>
3587         * stdlib/Makefile (tests): Don't run tst-fmtmsg when
3588         cross-compiling.
3589         ($(objpfx)tst-fmtmsg.out): Pass run-program-prefix.
3591         * stdlib/tst-fmtmsg.sh (test): Use run_program_prefix for static
3592         only builds.
3594         * elf/Makefile (tests): Only run tst-pathopt with shared libs.
3596         * posix/Makefile: Fix typo, it's build-static-nss.
3598         * iconv/Makefile (extra-objs): New.
3600 2001-02-10  Mark Kettenis  <kettenis@gnu.org>
3602         * sysdeps/unix/stime.c: Include <time.h>.
3604         * sysdeps/mach/hurd/setitimer.c: Include <time.h>.
3606 2001-02-10  Andreas Jaeger  <aj@suse.de>
3608         * manual/string.texi (Search Functions): Fix typo.
3610 2001-02-10  Mark Kettenis  <kettenis@gnu.org>
3612         * sysdeps/unix/bsd/times.c: Reorder includes and add <time.h>.
3613         (timeval_to_clock_t): Add clk_tck argument and use that instead of
3614         CLK_TCK.
3615         (__times): Use __getclktck to get the number of clock ticks per
3616         second and use its return value instead of CLK_TCK.
3618 2001-02-10  Mark Kettenis  <kettenis@gnu.org>
3620         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h (_HAVE_SA_LEN): Define.
3622 2001-02-10  Mark Kettenis  <kettenis@gnu.org>
3624         * sysdeps/mach/gettimeofday.c: Include <stddef.h>.
3626 2001-02-10  Andreas Jaeger  <aj@suse.de>
3628         * wctype/wcfuncs.c (func): Add prototype declarations to avoid
3629         warning.
3631 2001-02-09  Ulrich Drepper  <drepper@redhat.com>
3633         * posix/Makefile: Add rules to build and run bug-regex2.
3634         * posix/bug-regex2.c: New file.
3636 2001-02-10  Jakub Jelinek  <jakub@redhat.com>
3638         * posix/regex.c (convert_mbs_to_wcs): Change is_binary to char *.
3639         (regex_compile): Likewise.
3640         (FREE_VARIABLES): Don't free is_binary1 and is_binary2.
3641         (re_match_2_internal): Use just is_binary instead of two variables.
3642         Use REGEX_TALLOC to allocate it and FREE_VAR to free on failure.
3644 2001-02-09  Ulrich Drepper  <drepper@redhat.com>
3646         * version.h (VERSION): Bump to 2.2.2.
3648         * iconv/Makefile (distribute): Add iconv_charmap.c and
3649         dummy-repertoire.c.
3650         * elf/Makefile (distribute): Add firstobj.c.
3651         * Makefile (distribute): Add include/pthread.h.
3653         * configure.in: Require makeinfo version 4.
3655         * libio/tst_wscanf.c (main): Add cast to avoid warning.
3656         * libio/tst_swscanf.c (main): Likewise..
3658 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
3660         * sysdeps/generic/setenv.c (unsetenv): Remove const from len.
3661         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt, fdim): Don't define if
3662         __NO_MATH_INLINES.
3663         * sysdeps/i386/dl-machine.h (elf_machine_rel): Only declare refsym
3664         if not RTLD_BOOTSTRAP.
3665         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
3666         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
3668 2001-02-09  Ulrich Drepper  <drepper@redhat.com>
3670         * locale/programs/linereader.c (get_ident): Stop loop if EOF.  Use
3671         lr_ungetc to push back last read character.
3672         * locale/programs/linereader.h (lr_ungetc): Don't push back is
3673         character is EOF.
3674         (lr_ignore_rest): Don't warn about garbage if it is really the end
3675         of the file.
3677         * manual/Makefile: Use ifnottext and not ifinfo to protect Top node
3678         definition.
3680 2001-02-08  Ulrich Drepper  <drepper@redhat.com>
3682         * Makerules (build-shlib): Work around different order of
3683         processing of -B option in different gcc versions.
3685         * posix/regex.c: Fix alignment problem.
3686         Patch by Isamu Hasegawa <isamu@yamato.ibm.com>.
3688         * sysdeps/alpha/strrchr.S: Little optimization.
3689         Patch by Richard Henderson <rth@redhat.com>.
3691         * sysdeps/alpha/alphaev67/strrchr.S: New file.
3692         Contributed by Rick Gorton <rick.gorton@alpha-processor.com>.
3694 2001-02-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
3696         * sysdeps/sh/sh3/setjmp.S (__sigsetjmp): Correct function name
3697         in the assembler end directive.
3699 2001-02-08  Andreas Jaeger  <aj@suse.de>
3701         * manual/stdio.texi (Closing Streams): Fix typos.
3703 2001-02-07  Ulrich Drepper  <drepper@redhat.com>
3705         * sysdeps/alpha/alphaev67/strncat.S: Align last write address.
3706         Patch by Richard Henderson <rth@redhat.com>.
3707         Reported by Claus-Justus Heine <heine@instmath.rwth-aachen.de>.
3709         * stdlib/strfmon.c [USE_IN_LIBIO]: Define lock variable and store
3710         pointer in FILE structure before calling _IO_init.
3711         * stdlib/Makefile: Add -D_IO_MTSAFE_IO to CFLAGS for strfmon and
3712         strfmon_l if necessary.
3713         Reported by Jury Gerold <gjury@grips.com>.
3715         * sysdeps/gnu/netinet/tcp.h: Correct values of TCP_ macros.
3716         Patch by Pekka.Pietikainen@cern.ch.
3718         * posix/regex.c: Correct several problems with 64-bit architectures
3719         introduced in the MBS changes.
3720         Patch by Isamu Hasegawa <isamu@yamato.ibm.com>.
3722 2001-02-07  Jakub Jelinek  <jakub@redhat.com>
3724         * math/tgmath.h: Only add l suffixes if __NO_LONG_DOUBLE_MATH is
3725         not defined.
3726         * sysdeps/alpha/fpu/bits/mathinline.h: Honour __NO_MATH_INLINES.
3728 2001-02-07  Andreas Jaeger  <aj@suse.de>
3730         * manual/install.texi (Tools for Compilation): Fix typo.
3731         Reported by Pavel Machek <pavel@bug.ucw.cz>.
3733 2001-02-07  Ulrich Drepper  <drepper@redhat.com>
3735         * stdlib/strtod.c: Never stop prematurely reading digits before the
3736         decimal point is found.  Compute exponent limit for negative exponents
3737         correctly.  For numbers ending in all zeros eat the zeros even before
3738         the decimal point if the exponent is negative [PR libc/2072].
3739         * stdlib/Makefile (tests): Add bug-strtod.
3740         * stdlib/bug-strtod.c: New file.
3742 2001-02-07  Andreas Jaeger  <aj@suse.de>
3744         * posix/bug-regex1.c: Include <wchar.h> for fwide.
3746 2001-02-06  Ulrich Drepper  <drepper@redhat.com>
3748         * posix/regex.c (regex_compile): Don't store pointer in wchar_t array.
3749         Store index.
3750         (compile_range): Handle index being passed, not pointer.
3751         Patch by Isamu Hasegawa <isamu@yamato.ibm.com>.
3753         * posix/regex.c: Fix a cast in the code for bracket handling which
3754         caused 8-bit uncleanliness.
3755         Patch by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>.
3757         * posix/Makefile (tests): Add bug-regex1.
3758         * posix/bug-regex1.c: New file.
3759         Contributed by Jim Meyering <jim@meyering.net>.
3761         * posix/regex.c: Many cleanups for incorrect format strings.
3763 2001-02-06  Andreas Jaeger  <aj@suse.de>
3765         * time/time.h (CLK_TCK): Check for !__STRICT_ANSI.
3767 2001-02-06  Ulrich Drepper  <drepper@redhat.com>
3769         * locale/programs/locale.c (write_locales): Use scandir to read
3770         directory so that the entries are sorted.
3772 2001-02-06  Andreas Jaeger  <aj@suse.de>
3774         * include/pthread.h: New file.
3776         * wctype/wctype.h: Move internal interfaces from here to...
3777         * include/wctype.h: ...here.
3779         * wcsmbs/wchar.h: Move __wcslen from here to...
3780         * include/wchar.h: ...here.
3782         * posix/sys/wait.h: Move __wait from here to...
3783         * include/sys/wait.h: ...here.
3785         * string/string.h: Move __ffs and __strerror_r from here to...
3786         * include/string.h: ...here.
3788         * stdlib/stdlib.h: Move __on_exit from here to...
3789         * include/stdlib.h: ...here.
3791         * libio/stdio.h: Move __vsnprintf from here to...
3792         * include/stdio.h: ...here.
3794 2001-02-06  Andreas Schwab  <schwab@suse.de>
3796         * sysdeps/unix/sysv/linux/ia64/ioperm.c: Don't include kernel
3797         headers.
3799         * timezone/Makefile: Don't assume that $(inst_zonedir) is a subdir
3800         of $(inst_datadir).
3802 2001-02-06  Ulrich Drepper  <drepper@redhat.com>
3804         * iconvdata/Makefile: Add dependency for bug-iconv2.out.
3806 2001-02-06  Andreas Jaeger  <aj@suse.de>
3808         * elf/firstobj.c: Add prototype.
3810         * posix/regex.c (convert_mbs_to_wcs): Make static, add prototype
3811         (truncate_wchar): Likewise.
3813 2001-02-06  Ulrich Drepper  <drepper@redhat.com>
3815         * locale/programs/locale.c: Implement --verbose option for -a
3816         which prints detailed information about the locales.
3818 2001-02-05  Ulrich Drepper  <drepper@redhat.com>
3820         * sunrpc/xdr_rec.c (set_input_fragment): Change type of header
3821         variable to uint32_t.
3822         Reported by Ulrich Weigand <weigand@immd1.informatik.uni-erlangen.de>.
3824 2001-02-04  Bruno Haible  <haible@clisp.cons.org>
3826         * locale/C-translit.h.in: Add transliterations for CJK units of
3827         measurement.
3829 2001-02-05  Ulrich Drepper  <drepper@redhat.com>
3831         * elf/cache.c (print_entry): Use PRIx64 instead of Lx in printf
3832         string.  Include <inttypes.h> instead of <stdint.h>.
3834         * localedata/Makefile (tests): Add bug-iconv-trans.
3835         Define bug-iconv-trans-ENV.
3836         * localedata/bug-iconv-trans.c: New file.
3838 2001-02-04  Bruno Haible  <haible@clisp.cons.org>
3840         * iconv/gconv_trans.c (__gconv_transliterate): Use a temporary output
3841         pointer, to avoid accumulating output from incomplete (unsuccessful)
3842         transliteration attempts.
3844 2001-02-05  Ulrich Drepper  <drepper@redhat.com>
3846         * elf/ldconfig.c (search_dir): Use PRIx64 instead of Lx in printf
3847         string.  Include <inttypes.h> instead of <stdint.h>.
3849         * configure.in: Add check for bison.
3850         * config.make.in: Define BISON variable.
3851         * intl/Makefile: Use BISON instead of YACC when generating plural.c.
3852         Rename YFLAGS to BISONFLAGS.
3854 2001-02-05  Andreas Jaeger  <aj@suse.de>
3856         * io/test-lfs.c (do_test): Test lseek64 return value, call
3857         test_ftello.
3858         (test_ftello): New function to test ftello64 and fseeko64.
3860         * signal/signal.h: Move __sigaction from here to...
3861         * include/signal.h: ...here.
3863         * io/fcntl.h: Move __fcntl and __open to...
3864         * include/fcntl.h: ...here.
3866 2001-02-04  Philip Blundell  <philb@gnu.org>
3868         * configure.in: Distinguish ARM from Thumb.
3870 2001-02-04  Philip Blundell  <philb@gnu.org>
3872         * sysdeps/arm/dl-machine.h (elf_machine_rel): Correct handling of
3873         PC24 relocs with negative value.
3875 2001-02-04  Ulrich Drepper  <drepper@redhat.com>
3877         * iconv/Makefile (iconv_prog-modules): Define.  Add vpath to find
3878         files in locale/programs.  Add CFLAGS definition to allow compiling
3879         localedef files.
3880         * iconv/dummy-repertoire.c: New file.
3881         * iconv/iconv_charmap.c: New file.
3882         * iconv/iconv_prog.h: New file.
3883         * iconv/iconv_prog.c: Make verbose and omit_invalid global.
3884         (main): If parameter for -f and -t contain slashes try first to resolve
3885         the strings as filenames of charmap files.  Use them for conversion
3886         in this case.
3887         * iconvdata/run-iconv-test.sh: If charmaps exist also run tests with
3888         iconv getting charmap names as parameters.
3889         * locale/programs/linereader.c (lr_token): Take extra parameters
3890         verbose and pass it to get_string.
3891         (get_string): Take extra parameters verbose.
3892         * locale/programs/charmap.c (parse_charmap): Take extra parameters
3893         verbose and be_quiet.  Change all callers of lr_token and
3894         parse_charmap.
3895         * locale/programs/charmap.h: Likewise.
3896         * locale/programs/ld-address.c: Likewise.
3897         * locale/programs/ld-collate.c: Likewise.
3898         * locale/programs/ld-ctype.c: Likewise.
3899         * locale/programs/ld-identification.c: Likewise.
3900         * locale/programs/ld-measurement.c: Likewise.
3901         * locale/programs/ld-messages.c: Likewise.
3902         * locale/programs/ld-monetary.c: Likewise.
3903         * locale/programs/ld-name.c: Likewise.
3904         * locale/programs/ld-numeric.c: Likewise.
3905         * locale/programs/ld-paper.c: Likewise.
3906         * locale/programs/ld-telephone.c: Likewise.
3907         * locale/programs/ld-time.c: Likewise.
3908         * locale/programs/linereader.c: Likewise.
3909         * locale/programs/linereader.h: Likewise.
3910         * locale/programs/localedef.c: Likewise.
3911         * locale/programs/locfile.c: Likewise.
3912         * locale/programs/locfile.h: Likewise.
3913         * locale/programs/repertoire.c: Likewise.
3915 2001-02-03  Ulrich Drepper  <drepper@redhat.com>
3917         * iconv/iconv_prog.c (main): If output file name is "-" write to
3918         stdout.
3919         (main): If -f or -t argument is missing use charset of the current
3920         locale.
3922 2001-02-03  Andreas Jaeger  <aj@suse.de>
3924         * sysdeps/i386/elf/start.S (_start): Align stack to 16-byte
3925         boundary for SSE/SSE-2 alignment.
3927         * posix/Makefile ($(objpfx)annexc.out): Also pass sysincludes to
3928         annexc.
3930 2001-02-03  Ulrich Drepper  <drepper@redhat.com>
3932         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: File was using crlf.
3933         Remove comma at end of enum.
3935         * elf/dl-init.c: Add a few __builtin_expect.
3937         * hesiod/hesiod.c: Remove unnecessary code.  Remove all uses of strcat.
3939 2001-02-02  Ulrich Drepper  <drepper@redhat.com>
3941         * hesiod/hesiod.c (hesiod_resolve): Also search HS records if
3942         errno is ECONNREFUSED.
3944         * posix/Makefile: Define MBS_SUPPORT for regex.c.
3945         * posix/regex.c: Implement multibyte character handling.
3946         Patch by Isamu Hasegawa <isamu@yamato.ibm.co.jp>.
3948         * string/tst-svc.input: Add two more test cases.
3949         * string/tst-svc.expect: Modify to reflect new test cases.
3951 2001-02-01  Jakub Jelinek  <jakub@redhat.com>
3953         * sysdeps/posix/getaddrinfo.c (gaih_local, gaih_inet): Replace all
3954         tp->name tests with tp->name[0] tests.
3956 2001-01-29  Ben Collins  <bcollins@debian.org>
3958         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r):
3959         Fix check for name == NULL.
3961 2001-02-01  Ulrich Drepper  <drepper@redhat.com>
3963         * elf/Makefile: Add rules to build and run initfirst test.
3964         * elf/initfirst.c: New file.
3965         * elf/firstobj.c: New file.
3967         * Makerules (build-shlib): Add $(extra-B-$(@F:lib%.so=%).so).
3968         * configure.in: Test for -z initfirst linker option.
3969         * config.make.in: Add have-z-initfirst.
3970         * elf/dl-init.c (_dl_init): Split out actual initialization code in
3971         new function call_init.  If _dl_initfirst is non-NULL initialize first.
3972         * elf/dl-load.c (_dl_map_from_fd): If DF_1_INITFIRST flag is set
3973         remember object in _dl_initfirst.
3974         * elf/soinit.c: Remove special support for calling
3975         __pthread_initialize_minimal.
3977         * conform/conformtest.pl: Add missing $prepend in type test.
3979 2001-01-31  Ulrich Drepper  <drepper@redhat.com>
3981         * elf/elf.h (SHT_CHECKSUM): New definition.
3983         * posix/fnmatch_loop.c: Remove incorrect reverse condition in
3984         [. .] matching.  Patch by Isamu Hasegawa <isamu@yamato.ibm.com>.
3985         * posix/tst-fnmatch.input: Add tests for [. .] in locales.
3987 2001-01-31  Mark Kettenis  <kettenis@gnu.org>
3989         * misc/sys/select.h: Include <bits/time.h> instead of <sys/time.h>
3990         to get definition of `struct timeval'.
3992 2001-01-31  Ulrich Drepper  <drepper@redhat.com>
3994         * posix/tst-fnmatch.input: Add test cases for de_DE.UTF-8 locale.
3995         * posix/fnmatch_loop.c: Fix handling of [= =] for multibyte charsets.
3997 2001-01-30  Ulrich Drepper  <drepper@redhat.com>
3999         * iconv/gconv_open.c (__gconv_open): Set conv_flags if IGNORE is
4000         seen, not flags.
4002         * nis/nis_findserv.c: Include <time.h>.
4004 2001-01-30  Yong Li  <yong.li@asu.edu>
4006         * iconv/iconv_prog.c (main): Correct error handling method name.
4008 2001-01-29  Ben Collins  <bcollins@debian.org>
4010         * sysdeps/sparc/fpu/fraiseexcpt.c: Include <float.h>.
4011         * sysdeps/hppa/fpu/fraiseexcpt.c: Likewise.
4012         * sysdeps/m68k/fpu/fraiseexcpt.c: Likewise.
4013         * sysdeps/s390/fpu/fraiseexcpt.c: Likewise.
4015 2001-01-30  Ulrich Drepper  <drepper@redhat.com>
4017         * locale/programs/ld-measurement.c (measurement_finish): Fix a typo.
4018         Patch by Marko Myllynen <myllynen@lut.fi>.
4020         * string/bits/string2.h (__strpbrk_c2): Correct parameter types
4021         (int instead of char).
4022         (__strpbrk_c3): Likewise.
4023         Reported by GOTO Masanori <gotom@debian.or.jp>.
4025         * sysdeps/generic/bits/sockaddr.h: Remove SA_LEN macro.
4026         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Likewise.
4027         * include/sys/socket.h: Add SA_LEN here for internal use.
4028         Reported by Arkadiusz Miskiewicz <misiek@pld.ORG.PL>.
4030 2001-01-29  Ulrich Drepper  <drepper@redhat.com>
4032         * malloc/Makefile: Don't build memusagestat if cross-compiling.
4034         * sysdeps/generic/dl-sysdep.c (set_seen): Fix typo.
4036         * math/libm-test.inc (rint_test): Add a few more tests for round
4037         to even rounding.
4039 2001-01-28  Ulrich Drepper  <drepper@redhat.com>
4041         * conform/data/pthread.h-data: Correct return type of pthread_exit.
4043         * conform/conformtest.pl: Add -fno-builtin to CFLAGS.
4045         * conform/data/stdlib.h-data: Add _Exit.
4047         * inet/arpa/inet.h: Don't include <sys/types.h>.  Define socklen_t
4048         if not already happened.
4049         * inet/netinet/in.h: Don't include <sys/types.h>, use <bits/types.h>.
4050         Don't include <limits.h> and <bits/sockaddr.h>.
4052         * conform/data/netinet/in.h-data: Allow all of <inttypes.h>.
4054         * conform/data/spawn.h-data: Allow all of <sched.h>.
4056         * sysdeps/ia64/fpu/fraiseexcpt.c: Include <float.h>.  Removed
4057         unused variable.
4059         * sunrpc/xdr_rec.c (xdrrec_getpos): Add cast to long to avoid warning.
4060         * sunrpc/xdr_sizeof.c (x_inline): Likewise.
4062         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include <float.h>.
4064         * conform/conformtest.pl: Define $mustprepend{"stdio.h"}.
4065         * libio/stdio.h: Define va_list correctly.
4067         * conform/data/pthread.h-data: Make priority protocol related
4068         functions optional.  Fix typos.
4070         * posix/sched.h: Define sched_priority as __sched_priority.
4071         * sysdeps/generic/bits/sched.h (struct sched_param): Rename element
4072         to __sched_priority.
4073         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
4075 2001-01-27  Ulrich Drepper  <drepper@redhat.com>
4077         * sysdeps/generic/clock_getcpuclockid.c: Include <time.h> instead
4078         of <sys/time.h>.
4080         * sysdeps/unix/stime.c: Include <stddef.h> for NULL.
4081         * sysdeps/unix/time.c: Likewise.
4083         * conform/data/time.h-data: CLK_TCK is not in XPG6.  Fix tzname entry.
4084         * sysdeps/mach/hurd/bits/time.h: Don't define CLK_TCK for XPG6.
4085         * sysdeps/mach/hurd/i386/bits/time.h: Likewise.
4086         * sysdeps/unix/sysv/linux/bits/time.h: Likewise.
4087         * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
4088         * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
4089         * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
4090         * time/time.h: Likewise.
4092         * conform/conformtest.pl (@headers): Add complex.h and tgmath.h.
4093         * conform/data/complex.h-data: New file.
4094         * conform/data/tgmath.h-data: New file.
4096         * conform/data/wchar.h-data: Add missing functions.
4098         * sysdeps/gnu/bits/utmpx.h: Define RUN_LVL only if __USE_GNU.
4100         * conform/data/termios.h-data: Add missing const in tcsetattr()
4101         prototype.
4103         * posix/sys/wait.h: Include <signal.h> and <sys/resource.h>.
4104         Don't define pid_t here.
4106         * conform/data/sys/utsname.h-data: Don't provide fixed array sizes.
4108         * conform/data/sys/time.h-data: Allow sys/select.h.
4109         * conform/data/sys/un.h-data: Fix typo.
4110         * time/sys/time.h: Don't include all of <time.h>, just struct timeval.
4111         * sysdeps/posix/clock_getres.c: Include <time.h> instead of
4112         <sys/time.h>.
4113         * sysdeps/unix/clock_nanosleep.c: Likewise.
4114         * sysdeps/unix/i386/clock_getcpuclockid.c: Likewise.
4115         * sysdeps/unix/i386/i586/clock_getres.c: Likewise.
4116         * sysdeps/unix/clock_gettime.c: Also include <time.h>.
4117         * sysdeps/unix/clock_settime.c: Likewise.
4119         * sysdeps/generic/pselect.c: Include <stddef.h> for NULL.
4120         * login/getutent.c: Likewise.
4121         * login/getutid.c: Likewise.
4122         * login/getutline.c: Likewise.
4124         * socket/sys/un.h: Define SUN_LEN only if __USE_MISC.
4126         * sysdeps/unix/sysv/linux/bits/statvfs.h: Change type of f_fsid field
4127         to unsigned long.  Add __f_unused.  Define _STATVFSBUF_F_UNUSED.
4128         * sysdeps/unix/sysv/linux/internal_statvfs.c: Adjust initialization of
4129         f_fsid field after change in struct statvfs.
4130         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: New file.
4131         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: New file.
4132         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/statvfs.h: New file.
4134         * conform/data/sys/stat.h-data: Remove isfdtype.  Use
4135         optional-macro.
4137         * conform/data/sys/socket.h-data: Fix typos.  Correct getsockopt,
4138         recvfrom, send, and socketpair prototypes.  Add allow lines.
4139         * socket/sys/socket.h: Include <sys/uio.h>.
4140         Don't use fancy __SOCKADDR_ARG definition unless __USE_GNU.
4141         Fix type of second parameter of listen.
4142         Don't declare isfdtype unless __USE_MISC.
4143         * sysdeps/generic/listen.c: Fix type of second parameter of listen.
4144         * sysdeps/mach/hurd/listen.c: Likewise.
4145         * sysdeps/generic/bits/socket.h (struct sockaddr_storage): Define
4146         ss_family and __ss_family.
4147         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
4148         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4149         (struct msghdr): Change type of msg_iovlen to int and type of
4150         msg_controllen to socklen_t.
4151         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: New file.
4152         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: New file.
4153         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/socket.h: New file.
4154         * inet/rcmd.c (rcmd_af): __ss_family is now ss_family.
4155         (rresvport_af): Likewise.
4157         * conform/data/sys/shm.h-data: SHMLBA is not required to by a constant.
4158         * conform/conformtest.pl: Implement handling of symbol.
4160         * signal/signal.h: Fix handling of __need_* symbols.
4161         * misc/sys/select.c: Define fd_set here.  Remove __fd_set.  Define
4162         fd_mask only if __USE_MISC.  Declare pselect for __USE_XOPEN2K.
4163         * include/sys/select.h: Use fd_set not __fd_set.
4164         * sysdeps/generic/bits/select.h: Likewise.
4165         * sysdeps/i386/bits/select.h: Likewise.
4166         * sysdeps/generic/bits/types.h: Don't define __fd_mask, __NFDBITS,
4167         __FDELT, __FDMASK, and __fd_set here.
4168         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
4169         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
4170         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
4171         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
4172         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
4173         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
4174         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
4175         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
4176         * time/sys/time.h: Define struct timeval before including <time.h>
4177         and <sys/select.h>.
4179         * conform/data/sys/time.h-data: fd_set is a typedef.
4180         * conform/data/sys/select.h-data: New file.
4181         * conform/data/sys/mman.h-data: Make typed mem stuff optional.
4182         * conform/conformtest.pl (@headers): Add sys/select.h.
4183         (type, optional-type): Unless testing a typedef instantiate object.
4184         Implement optional-function.
4186         * math/test-misc.c: Include <float.h>.
4188 2001-01-27  Andreas Jaeger  <aj@suse.de>
4190         * misc/efgcvt_r.c: Include <float.h>.
4192 2001-01-26  Ulrich Drepper  <drepper@redhat.com>
4194         * conform/data/stdlib.h-data: Account for XPG6 changes.
4195         * stdlib/stdlib.h (__random): Change return value type to long.
4196         (posix_memalign): Cleanup parameter names.
4197         (setenv, unsetenv): Make available for __USE_XOPEN2K.
4198         Change return type of unsetenv to int.
4199         (qecvt, qgcvt, qfcvt): Declare only if __USE_MISC.
4200         * include/stdlib.h: Change return type of unsetenv to int.
4201         Change return type of random to long int.
4202         * sysdeps/generic/setenv.c (unsetenv): Change return type to int.
4203         Return -1 and set errno if parameter is invalid.
4204         * stdlib/random.c (__random): Change return value type to long.
4206         * conform/data/stdio.h-data: Account for changes in XPG6.
4208         * conform/data/spawn.h-data: Correct posix_spawnattr_setflags
4209         prototype.
4211         * conform/conformtest.pl: Define $mustprepend{"signal.h"}.
4212         * conform/data/signal.h-data: Fix sigev_notify_function entry.
4213         Fix typo (SIGVALRM -> SIGVTALRM).
4214         * sysdeps/unix/sysv/linux/bits/siginfo.h: Define sigev_notify_attr
4215         with real type.
4216         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
4217         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
4218         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
4219         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4220         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/siginfo.h: Likewise.
4222         * conform/conformtest.pl: Implement optional-element.  Define
4223         $mustprepend{"sched.h"}.
4224         * conform/data/sched.h-data: Make sporadic scheduler definitions
4225         optional.
4227         * pwd/pwd.h: Don't define getpwent_r for XPG.
4229         * io/sys/poll.h: Define nfds_t and use it in poll prototype.
4230         * sysdeps/generic/poll.c: Use nfds_t type in function definition.
4231         * sysdeps/mach/hurd/poll.c: Likewise.
4232         * sysdeps/unix/bsd/poll.c: Likewise.
4233         * sysdeps/unix/sysv/linux/poll.c: Likewise.
4234         * sysdeps/unix/sysv/aix/poll.c: Likewise.
4235         * sysdeps/generic/bits/poll.h: Define NPOLLFILE only if __USE_MISC.
4236         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
4237         * sysdeps/unix/sysv/linux/m68k/bits/poll.h: Likewise.
4238         * sysdeps/unix/sysv/linux/mips/bits/poll.h: Likewise.
4239         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
4240         * conform/data/poll.h-data: Fix typo in poll prototype.
4242         * sysdeps/gnu/netinet/tcp.h: Define everything but TCP_ macros
4243         only if __USE_MISC.
4244         * conform/data/netinet/tcp.h-data: Reserved prefix TCP_.
4246         * sysdeps/gnu/net/if.h: Cleanup namespace.  Define IF_NAMESIZE.
4248         * inet/netinet/in.h: Make IPPROTO_ constants also macros.
4250         * conform/conformtest.pl: Implement optional-type.
4252         * resolv/netdb.h: Include <netinet/in.h> not <sys/socket.h>.  Include
4253         <rpc/netdb.h> only if __USE_MISC.  Include <stdint.h> instead of
4254         defining uint32_t here.  Define IPPORT_RESERVED.
4255         (struct hostent): Type of h_length element is int.
4256         (getnameinfo): Type of flags parameter is unsigned int.
4257         * inet/getnameinfo.c (getnameinfo): flags argument is unsigned.
4258         * conform/data/netdb.h-data: Add many missing definitions.
4260         * conform/conformtest.pl: Implement optional-macro.
4261         * conform/data/math.h-data: Update for XPG6.
4263         * math/math.h (HUGE): Define as FLT_MAX value but don't use
4264         FLT_MAX.  Don't include <float.h>.
4265         (MAXFLOAT): Likewise.
4267         * math/math.h: Define MATH_ERRNO and MATH_ERREXCEPT.
4269         * include/bits/xopen_lim.h: Don't define FOPEN_MAX here.
4271         * conform/data/limits.h-data: Mark constants as optional wherever
4272         appropriate.
4274         * posix/bits/posix2_lim.h: Set correct values for
4275         _POSIX2_COLL_WEIGHTS_MAX and _POSIX2_CHARCLASS_NAME_MAX.  Remove
4276         EQUIV_CLASS_MAX.
4278         * posix/bits/posix1_lim.h: Define _POSIX_TZNAME_MAX as 6.
4279         Required by POSIX.
4281         * intl/loadmsgcat.c: Include <locale.h.> for _LIBC.
4283         * conform/data/netinet/in.h-data: Add reserved prefixes.
4285         * conform/data/arpa/inet.h-data: Fix a few typos.
4287 2001-01-26  Andreas Jaeger  <aj@suse.de>
4289         * sysdeps/generic/strtol.c: Include <locale.h>
4290         * stdlib/strtod.c: Likewise
4291         * stdlib/strfmon.c: Likewise.
4292         * string/strcoll.c: Likewise.
4293         * string/strxfrm.c: Likewise.
4294         * wctype/wcfuncs_l.c: Likewise.
4295         * wctype/wctype_l.c: Likewise.
4296         * wctype/wctrans_l.c: Likewise.
4298         * include/bits/locale.h: New file.
4300 2001-01-26  Ulrich Drepper  <drepper@redhat.com>
4302         * locale/langinfo.h: Correct logic in #ifs when defining YESSTR
4303         and NOSTR.
4305         * locale/Makefile (headers): Add bits/locale.h.
4306         * locale/langinfo.h: Don't include <locale.h>.  Include <bits/locale.h>
4307         and use __LC_ constants instead of LC_.
4308         * locale/locale.h: Include <bits/locale.h> and define LC_ constants
4309         using __LC_ constants.
4310         * locale/bits/locale.h: New file.
4311         * locale/loadlocale.c: Include <locale.h>.
4312         * locale/nl_langinfo.h: Likewise.
4314         * posix/glob.h: Cleanup namespace for non-_GNU_SOURCE case.
4316         * io/sys/stat.h: Define S_IFSOCK for XPG6.
4318         * conform/data/fcntl.h-data: posix_madvise is not expected here.
4320         * conform/conformtest.pl: Fix handling of macro-str.
4322         * conform/data/inttypes.h-data: Add missing definition and all of
4323         stdint.h-data.
4325         * sysdeps/unix/sysv/linux/sys/param.h (MAXSYMLINKS): Bump to 20.
4327 2001-01-25  Ulrich Drepper  <drepper@redhat.com>
4329         * conform/conformtest.pl (@headers): Add stdint.h.
4330         * conform/data/stdint.h-data: New file.
4332         * conform/conformtest.pl: Recognize options --headers and
4333         --dialect.  Add dialect-specific CFLAGS.
4335         * conform/conformtest.pl: Implement handling of recursive
4336         allow-header.
4338         * conform/data/locale.h-data: Add new struct lconv members.
4340         * posix/wordexp.h: Correct definition of wordexp_t.
4341         * posix/wordexp.c: Moved to ...
4342         * sysdeps/generic/wordexp.c: ...here.  New file.
4343         * sysdeps/unix/sysv/linux/alpha/wordexp.c: New file.
4344         * sysdeps/unix/sysv/linux/ia64/wordexp.c: New file.
4345         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: New file.
4346         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.2.2): Add
4347         wordexp.
4348         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
4349         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
4351         * math/tgmath.h: Pretty printing.
4353         * math/Makefile (tests): Add test-tgmath.
4354         (CFLAGS-test-tgmath.c): New variable.
4355         * math/test-tgmath.c: New file.  Contributed by Jakub Jelinek.
4357         * conform/conformtest.pl: Handle allow-header in secondary headers
4358         correctly.
4360         * conform/data/fcntl.h-data: Mark symbols introduced in XPG6 with
4361         #ifdef.
4363         * conform/data/netinet/in.h-data: Use correct comment character.
4364         * conform/data/sys/stat.h-data: Likewise.
4366 2001-01-25  Jakub Jelinek  <jakub@redhat.com>
4368         * math/tgmath.h (__TGMATH_BINARY_FIRST_REAL_ONLY,
4369         __TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
4370         __TGMATH_TERNARY_REAL_ONLY): Use proper arguments to
4371         __builtin_classify_type, add ##f suffixes where appropriate.
4372         (__TGMATH_UNARY_REAL_IMAG): Remove extraneous left parenthesis.
4373         (__TGMATH_BINARY_REAL_IMAG): Likewise, use proper arguments to
4374         __builtin_classify_type.
4375         (fma): Fix spelling of first argument.
4377 2001-01-25  Ulrich Drepper  <drepper@redhat.com>
4379         * conform/data/unistd.h-data: Mark functions removed in XPG6
4380         correctly.
4382         * posix/unistd.h: Don't make functions removed in XPG6 available if
4383         __USE_XOPEN2K.
4385         * conform/conformtest.pl: Implement optional-constant.
4386         * conform/data/unistd.h-data: Use optional-constant wherever
4387         appropriate.
4389         * sysdeps/generic/bits/confname.h: Correct names of _SC_PBS
4390         constants and add _SC_STREAMS.
4391         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
4393         * sysdeps/unix/sysv/linux/statvfs64.c: Rename to __statvfs64 and
4394         make old name weak alias.
4395         * sysdeps/generic/statvfs64.c: Likewise.
4396         * sysdeps/unix/sysv/linux/fstatvfs64.c: Rename to __fstatvfs64 and
4397         make old name weak alias.
4398         * sysdeps/generic/fstatvfs64.c: Likewise.
4399         * include/sys/statvfs.h: New file.
4401         * sysdeps/generic/bits/confname.h: Define _PC_REC_INCR_XFER_SIZE,
4402         _PC_REC_MAX_XFER_SIZE, _PC_REC_MIN_XFER_SIZE, and
4403         _PC_REC_XFER_ALIGN.
4404         * sysdeps/posix/pathconf.c (__pathconf): Implement handling of
4405         _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
4406         _PC_REC_MIN_XFER_SIZE, and _PC_REC_XFER_ALIGN.
4407         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
4409         * conform/conformtest.pl: Run Unix tests for XPG6.
4410         Implement handling of known namespace violations.
4411         Improve printing of results.
4413         * posix/unistd.h (usleep): Correct return type.
4414         * sysdeps/unix/sysv/linux/usleep.c: Correct return type.
4415         * sysdeps/unix/bsd/usleep.c: Correct return type.
4416         * sysdeps/mach/usleep.c: Correct return type.
4417         * sysdeps/generic/usleep.c: Correct return type.
4419         * posix/unistd.h (sync): Correct return type.
4420         * sysdeps/generic/sync.c: Likewise.
4421         * sysdeps/mach/hurd/sync.c: Likewise.
4423         * sysdeps/generic/bits/confname.h (_SC_IOV_MAX): New definition.
4425         * posix/unistd.h: Make seteuid and setegid available for XPG6.
4427         * wcsmbs/wchar.h: Get FILE definition for XPG5.
4429         * conform/data/ctype.h-data: Use correct comment form.
4430         * conform/data/errno.h-data: Likewise.
4431         * conform/data/math.h-data: Likewise.
4432         * conform/data/mqueue.h-data: Likewise.
4433         * conform/data/netdb.h-data: Likewise.
4434         * conform/data/pthread.h-data: Likewise.
4436 2001-01-24  Ulrich Drepper  <drepper@redhat.com>
4438         * conform/data/wordexp.h-data: Fix typo.
4440         * conform/conformtest.pl: Handle allow-header correctly.
4442         * conform/data/time.h-data: Use correct comment form.
4444         * conform/conformtest.pl (checknamespace): Ignore #undef lines.
4446         * configure.in: Comment out binutils version test.
4448         * stdlib/strtod.c (str_to_mpn): Correct parsing of thousands
4449         separators.
4450         Reported by Lagardere Jean-Francois <LAGARDEREJ@thmulti.com>.
4452         * stdlib/tst-strtod.c (locale_test): New function.
4453         (main): Call locale_test.
4454         * stdlib/Makefile (tst-strtod-ENV): New variable.
4456 2001-01-24  Mark Kettenis  <kettenis@gnu.org>
4458         * hurd/hurdsig.c (_hurdsig_getenv): Remove spurious innermost
4459         declaration of value such that we actually return the value of the
4460         environment variable.
4462 2001-01-24  Andreas Jaeger  <aj@suse.de>
4464         * sysdeps/unix/sysv/linux/init-first.c: Remove extra __sysctl
4465         prototype.
4466         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4468         * include/sys/sysctl.h: New file.
4470 2001-01-23  Andreas Jaeger  <aj@suse.de>
4472         * stdlib/Makefile ($(objpfx)isomac.out): Also pass sysincludes to
4473         isomac.
4475         * elf/dl-load.c (_dl_init_paths): Don't use strdupa in function
4476         arguments.  Reported by Jiri Kubicek <kubicek@bitsmart.com>,
4477         closes PR libc/2039.
4479         * manual/install.texi (Tools for Compilation): Change required
4480         binutils version.
4482 2001-01-22  Andreas Jaeger  <aj@suse.de>
4484         * configure.in: Add test for new enough binutils version, move
4485         compiler/binutils test up.
4487         * Versions.def: Add version GLIBC_2.2.2.
4489 2001-01-21  Ulrich Drepper  <drepper@redhat.com>
4491         * iconvdata/TESTS: UTF-8 test data for IBM932 and IBM943 are now
4492         available.
4493         * iconvdata/testdata/IBM932: New file.
4494         * iconvdata/testdata/IBM932..UTF8: New file.
4495         * iconvdata/testdata/IBM943: New file.
4496         * iconvdata/testdata/IBM943..UTF8: New file.
4497         Contributed by Masahide Washizawa <washi@jp.ibm.com>.
4499 2001-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4501         * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Correctly mask offset.
4503 2001-01-21  Ulrich Drepper  <drepper@redhat.com>
4505         * malloc/malloc.c: Remove a few unnecessary initializers of global
4506         variables.
4508 2000-12-09  H.J. Lu  <hjl@gnu.org>
4510         * nss/Makefile (routines): Add digits_dots.
4511         * nss/Versions (libc): Add __nss_hostname_digits_dots to GLIBC_2.2.2.
4512         * nss/digits_dots.c (__nss_hostname_digits_dots): Turn template
4513         into a function.
4514         * nss/nsswitch.h (__nss_hostname_digits_dots): New internal NSS
4515         function.
4516         * nss/getXXbyYY.c (H_ERRNO_VAR_P): New definition.
4517         (TYPE_VAR_P): Likewise.
4518         (FLAGS_VAR): Likewise.
4519         (AF_VAR_P): Likewise.
4520         (INTERNAL (REENTRANT_NAME)): Call __nss_hostname_digits_dots ()
4521         instead of including digits_dots.c.
4522         * nss/getXXbyYY_r.c (H_ERRNO_VAR_P): New definition.
4523         (TYPE_VAR_P): Likewise.
4524         (FLAGS_VAR): Likewise.
4525         (AF_VAR_P): Likewise.
4526         (INTERNAL (REENTRANT_NAME)): Call __nss_hostname_digits_dots ()
4527         instead of including digits_dots.c.
4529 2001-01-21  Ulrich Drepper  <drepper@redhat.com>
4531         * sysdeps/posix/getaddrinfo.c: Reduce .data size.
4533 2001-01-21  Andreas Jaeger  <aj@suse.de>
4535         * elf/constload2.c: Add prototype for init.
4537 2001-01-21  Ulrich Drepper  <drepper@redhat.com>
4539         * stdlib/stdlib.h (drand48_data): Make available only for
4540         __USE_MISC.  Rename elements to protect namespace.  Change type
4541         and position of a and init element.
4542         * stdlib/drand48-iter.c: Don't handle unsigned short > 16 bit
4543         differently.  Adjust for drand48_data change.  Don't compute a here,
4544         it comes from drand48_data.
4545         * stdlib/lcong48_r.c: Don't handle unsigned short > 16 bit
4546         differently.  Adjust for drand48_data change.  Compute a here.
4547         * stdlib/srand48_r.c: Likewise.
4548         * stdlib/drand48.c: Adjust for drand48_data change.
4549         * stdlib/lrand48.c: Likewise.
4550         * stdlib/mrand48.c: Likewise.
4551         * stdlib/seek48.c: Likewise.
4552         * stdlib/drand48_r.c: Likewise.
4553         * stdlib/lrand48_r.c: Likewise.
4554         * stdlib/mrand48_r.c: Likewise.
4555         * stdlib/seed48_r.c: Likewise.  Don't handle unsigned short > 16 bit
4556         differently.
4557         * stdlib/erand48_r.c: Don't handle unsigned short > 16 bit differently.
4558         * stdlib/jrand48_r.c: Likewise.
4560         * po/sv.po: Update from translation team.
4562 2001-01-21  Andreas Jaeger  <aj@suse.de>
4564         * stdio-common/vfprintf.c (vfprintf): Add casts.
4566 2001-01-20  Ulrich Drepper  <drepper@redhat.com>
4568         * iconvdata/run-iconv-test.sh: Reorgnize a bit to allow running only
4569         the ASCII test.
4570         * iconvdata/TESTS: Add entries for IBM932 and IBM943.
4572         * iconvdata/Makefile (modules): Add IBM932 and IBM943.
4573         * iconvdata/gconv-modules: Add entries for IBM932 and IBM943.
4574         * iconvdata/ibm932.c: New file.
4575         * iconvdata/ibm932.h: New file.
4576         * iconvdata/ibm943.c: New file.
4577         * iconvdata/ibm943.h: New file.
4578         Patches by Masahide Washizawa <washi@jp.ibm.com>.
4580         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix typo
4581         preventing optimization from being done.  Set the correct type bit
4582         in seen.  Don't define and use _dl_base_addr unless
4583         NEED_DL_BASE_ADDR is defined.
4585         * io/ftw.c (ftw_dir): Add slash after directory name if there
4586         wasn't any.  Reported by loris <loris@iol.it>.
4587         * io/Makefile (tests): Add bug-ftw2.
4588         * io/bug-ftw2.c: New file.
4590 2001-01-19  Ulrich Drepper  <drepper@redhat.com>
4592         * stdlib/jrand48_r.c (__jrand48_r): Correct constructing of
4593         results.  Reported by Jeff Higham <jhigham@algorithmics.com>.
4594         * stdlib/tst-rand48.c: New file.
4595         * stdlib/Makefile (tests): Add tst-rand48.
4597         * locale/newlocale.c (__newlocale): Fix test for setting all
4598         categories.
4600 2001-01-19  Mark Kettenis  <kettenis@gnu.org>
4602         * sysdeps/mach/hurd/chroot.c (chroot): Revert 1999-02-27 changes,
4603         but change looking up the initial directory port in a similar way
4604         as done by _hurd_change_directory_port_from_name.
4605         * hurd/fchroot.c (fchroot): Likewise.
4607 2001-01-18  Ulrich Drepper  <drepper@redhat.com>
4609         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): If HAVE_AUX_XID is
4610         defined don't look whether the AT_*ID values were set.
4611         If HAVE_AUX_PAGESIZE is defined don't look whether the pagesize is set.
4612         (_dl_show_auxv): Rewrite to avoid switch statement.
4613         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4614         __ASSUME_AT_PAGESIZE for kernel >= 2.4.1.
4615         * sysdeps/unix/sysv/linux/ldsodefs.h: Define HAVE_AUX_XID.
4616         Define HAVE_AUX_PAGESIZE if __ASSUME_AT_PAGESIZE is defined.
4618         * sysdeps/unix/sysv/linux/fxstat64.c: Add one __builtin_expect.
4619         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4620         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
4622         * elf/rtld.c (process_envvars): Call __strtoul_internal instead of
4623         strtoul.
4624         * elf/dl-minimal.c (strtol, __strtol_internal, strtoul): Removed.
4625         (__sigjmp_save): Set __mask_was_saved to zero since we don't save
4626         anything.
4627         * dlfcn/eval.c (__strtol_internal): Define here.
4628         (eval): Use __strtol_internal instead of strtol.
4630         * elf/elf.h: Add a few more EF_MIPS_* constants.
4632 2001-01-17  Ulrich Drepper  <drepper@redhat.com>
4634         * manual/Makefile (chapters): Add debug.
4635         * manual/debug.texi: New file.
4636         * manual/examples/execinfo.c: New file.
4637         Patch by suckfish@ihug.co.nz.
4639 2001-01-17  Andreas Schwab  <schwab@suse.de>
4641         * sysdeps/m68k/bits/byteswap.h (__bswap_32): Add cast to avoid
4642         invalid asm.
4644 2001-01-17  Andreas Jaeger  <aj@suse.de>
4646         * nscd/connections.c (nscd_run): Use proper format specifier.
4648 2001-01-16  Ulrich Drepper  <drepper@redhat.com>
4650         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Move x86_cap_flags and
4651         x86_platforms data into new file after prepending _dl_.  Change
4652         users.
4653         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: New file.
4654         * sysdeps/unix/sysv/linux/i386/Dist: Add dl-procinfo.c.
4655         * sysdeps/unix/sysv/linux/i386/Makefile: Add rules to build
4656         dl-procinfo.c.
4658         * setjmp/setjmp.h: Cleanup definition of setjmp macro.
4660         * sysdeps/i386/elf/bsd-setjmp.S: Real implementation.
4661         * sysdeps/i386/elf/bsd-_setjmp.S: Removed.
4662         * sysdeps/i386/elf/setjmp.S (setjmp): Removed here.
4663         (_setjmp): Likewise.
4664         * sysdeps/i386/bsd-_setjmp.S: Real implementation.
4665         * sysdeps/i386/bsd-setjmp.S: Real implementation.
4666         * sysdeps/i386/bits/setjmp.h: Remove PUSH_SIGNAL_MASK definition.
4667         * sysdeps/i386/setjmp.S: Remove PIC support.  This is the non-ELF
4668         version.
4670 2001-01-16  Andreas Jaeger  <aj@suse.de>
4672         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h (SIGCONTEXT): Fix
4673         misapplied last patch.
4675 2001-01-15  Ulrich Drepper  <drepper@redhat.com>
4677         * stdlib/random.c (__initstate): Clean up a cast.
4678         (__setstate): Likewise.
4680         * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove select
4681         syscall handling.  The generic Linux version should work.
4683 2001-01-15  Andreas Jaeger  <aj@suse.de>
4685         * sysdeps/unix/sysv/linux/sys/sendfile.h: Fix typo.
4687         * stdio-common/tstscanf.c (main): Add two testcases for '*' modifier.
4689 2001-01-14  Jakub Jelinek  <jakub@redhat.com>
4691         * nss/getent.c (print_aliases, aliases_keys, ethers_keys,
4692         netgroup_keys, print_rpc, rpc_keys, print_shadow, shadow_keys):
4693         New functions.
4694         (group_keys, hosts_keys, network_keys, passwd_keys, protocols_keys):
4695         If number is 0, list all.
4696         (services_keys): Likewise.  Lookup aliases as well.
4697         (databases): New table.
4698         (build_doc): Prepare argp doc text with list of supported databases.
4699         (main): Change to table driven processing.
4701 2001-01-14  Thorsten Kukuk <kukuk@suse.de>
4703         * sunrpc/xdr.c (xdr_long, xdr_u_long): Fix comments about these
4704         functions.
4706 2001-01-03  Jakub Jelinek  <jakub@redhat.com>
4708         * sunrpc/xdr.c (xdr_long, xdr_u_long): Return FALSE if trying to
4709         encode value which does not fit in the 32bit type.
4711 2001-01-15  Hiroyuki Machida <machida@sm.sony.co.jp>
4713         * sysdeps/unix/sysv/linux/mips/register-dump.h (REGISTER_DUMP):
4714         Change type of CTX to (struct sigcontext *).
4715         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h (GET_PC): Likewise.
4716         (GET_FRAME): Likewise.
4717         (GET_STACK): Likewise.
4718         (SIGCONTEXT): Likewise. Add 2nd arg _code.
4719         (SIGCONTEXT_EXTRA_ARGS): Add 2nd arg _code.
4721 2001-01-13  Ulrich Drepper  <drepper@redhat.com>
4723         * manual/texinfo.tex: Update from upstream version.
4725 2001-01-13  Jakub Jelinek  <jakub@redhat.com>
4727         * inet/ether_ntoh.c (lookup_function): Change arguments to match
4728         _nss_*_getntohost_r prototype.
4729         (ether_ntohost): Pass errno pointer to NSS function.
4731 2001-01-12  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4733         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MS_SYNC): Fix value.
4734         (MAP_LOCKED): New definition.
4735         (MAP_NORESERVE): New definition.
4737 2001-01-12  Ulrich Drepper  <drepper@redhat.com>
4739         * assert/assert.h: Use static_cast instead of C-style cast for C++.
4740         Patch by Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>.
4742 2001-01-12  Ben Collins  <bcollins@debian.org>
4744         * sysdeps/generic/segfault.c (install_handler): Use access, not
4745         __access.
4747 2001-01-12  Andreas Jaeger  <aj@suse.de>
4749         * posix/fnmatch_loop.c (FCT): Remove signed warnings.
4750         * posix/wordexp.c (do_parse_glob): Likewise.
4751         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
4752         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
4753         * elf/dl-open.c (_dl_open): Likewise.
4754         * elf/dl-close.c (_dl_close): Likewise.
4755         * elf/dl-load.c (_dl_map_object): Likewise.
4756         * iconv/iconv_prog.c (process_fd): Likewise.
4757         * stdio-common/vfscanf.c (_IO_vfscanf): Likewise.
4759         * locale/localeinfo.h (struct locale_data): Use __flexarr instead
4760         of a zero-length array.
4762 2001-01-11  Jakub Jelinek  <jakub@redhat.com>
4764         * stdlib/cxa_atexit.c (__cxa_atexit): Cast to (void *, int) func.
4765         * stdlib/cxa_finalize.c (__cxa_finalize): Add hidden second argument.
4766         * stdlib/cxa_on_exit.c: Remove.
4767         * stdlib/Makefile: Revert last patch.
4768         * stdlib/Versions: Likewise.
4769         * include/stdlib.h: Likewise.
4770         * stdlib/exit.h: Revert last patch.
4771         (struct exit_function): Add second argument to cxa fn.
4772         * stdlib/exit.c: Revert last patch.
4773         (exit): Add hidden second argument.
4775 2001-01-11  H.J. Lu  <hjl@gnu.org>
4777         * elf/dl-libc.c (do_dlopen): Move DL_STATIC_INIT to ...
4778         * elf/dl-open.c (_dl_open): Here.
4779         * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_lock):
4780         Make it static.
4781         (_dl_static_init): Initialize the variables every time when possible.
4782         * sysdeps/unix/sysv/linux/ia64/ldsodefs.h (DL_STATIC_INIT):
4783         Undefine it first.
4785 2001-01-11  Ulrich Drepper  <drepper@redhat.com>
4787         * stdlib/Makefile (routines): Add cxa_on_exit.
4788         * stdlib/Versions [libc] (GLIBC_2.2.1): Add __cxa_on_exit.
4789         * stdlib/cxa_on_exit.c: New file.
4790         * include/stdlib.h: Add prototype for __cxa_on_exit.
4791         * stdlib/exit.c: Handle ef_cxa2.
4792         * stdlib/exit.h (enum): Add ef_cxa2.
4793         (struct exit_function): Add cxa2.
4795         * Versions.def [ld]: Add GLIBC_2.2.1.
4797 2001-01-10  H.J. Lu  <hjl@gnu.org>
4799         * elf/dl-libc.c (do_dlopen): Call DL_STATIC_INIT for static binaries.
4800         * sysdeps/unix/sysv/linux/ia64/Makefile (sysdep-dl-routines): Add
4801         dl-static.
4802         * sysdeps/unix/sysv/linux/ia64/Versions (ld): Add _dl_var_init.
4803         * sysdeps/generic/ldsodefs.h (DL_STATIC_INIT): Defined if not defined.
4804         * sysdeps/unix/sysv/linux/ia64/ldsodefs.h: New file.
4805         * sysdeps/unix/sysv/linux/ia64/dl-static.c: New file.
4806         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-static.c.
4808 2001-01-11  Ulrich Drepper  <drepper@redhat.com>
4810         * libio/stdio.h: Remove definition of off_t.
4812 2001-01-11  Andreas Jaeger  <aj@suse.de>
4814         * wcsmbs/tst-mbrtowc.c (utf8_test): New function by Markus Kuhn
4815         <mkuhn@acm.org>.
4817 2001-01-10  Ulrich Drepper  <drepper@redhat.com>
4819         * sunrpc/Makefile (distribute): Add errqueue.h.
4821 2001-01-10  H.J. Lu  <hjl@gnu.org>
4823         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Also preserve
4824         r9, r10 and r11 for language specific registers.
4826 2001-01-10  Jakub Jelinek  <jakub@redhat.com>
4828         * sunrpc/clnt_udp.c (clntudp_bufcreate): Set IP_RECVERR on the
4829         UDP socket.
4830         (clntudp_call): Handle MSG_ERRQUEUE.
4831         * sysdeps/generic/errqueue.h: New file.
4832         * sysdeps/unix/sysv/linux/errqueue.h: New file.
4834 2001-01-10  H.J. Lu  <hjl@gnu.org>
4836         * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_getpagesize): Removed.
4838 2001-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
4840         * CONFORMANCE: Update.
4842 2001-01-09  Ulrich Drepper  <drepper@redhat.com>
4844         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
4845         Minimal cleanups.  Add assert to ensure memory handling is correct.
4847         * manual/conf.texi (File Minimums): Fix _POSIX_PATH_MAX value.
4848         Reported by Ben Collins <bcollins@debian.org>.
4850         * time/strftime.c (my_strftime): Mark previous GNU extensions
4851         which are now in C99 as such.
4853 2001-01-08  Ulrich Drepper  <drepper@redhat.com>
4855         * elf/rtld.c (process_envvars): Place output files for profiling
4856         in SUID binaries in /var/profile.
4858         * elf/dl-load.c (_dl_map_object): Don't look in cache for
4859         preloading in SUID binaries.
4861         * elf/dl-profile.c (_dl_start_profile): Open the output file with
4862         O_NOFOLLOW if possible.
4864         * include/stdlib.h: Add __posix_openpt declaration.
4865         * stdlib/stdlib.h: Add posix_openpt declaration.
4866         * login/Versions: Add posix_openpt for GLIBC_2.2.1.
4867         * sysdeps/generic/getpt.c: Define posix_openpt.
4868         * sysdeps/unix/bsd/getpt.c: Likewise.
4869         * sysdeps/unix/sysv/linux/getpt.c: Likewise.
4871         * time/Makefile (tests): Add tst-mktime.
4872         * time/tst-mktime.c: New file.
4874         * posix/tst-dir.c (main): One more mkdir() test.
4876         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
4877         Remove getpagesize syscall.  We assume that the pagesize is always
4878         determined from the auxiliary vector.
4880         * intl/dcigettext.c: Fix a few warnings.
4881         Patch by Bruno Haible <haible@ilog.fr>.
4883 2001-01-08  Andreas Jaeger  <aj@suse.de>
4885         * io/test-lfs.c (do_test): Check lseek64 return for EINVAL.
4886         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
4888 2001-01-08  Ulrich Drepper  <drepper@redhat.com>
4890         * sysdeps/generic/segfault.c (install_handler): Check output file
4891         name with access().
4893         * resolv/res_query.c: Use simply getenv() for HOSTALIASES.
4894         * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add HOSTALIASES.
4896         * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add missing comma.
4898         * malloc/memusage.c (me): Use access() to determine whether we
4899         should write the output file or not.
4901         * libio/bits/stdio.h (printf): Define macro to map printf call to
4902         fprintf which gcc can optimize.
4903         * stdio-common/printf.c: Undefine printf.
4905 2001-01-07  Ulrich Drepper  <drepper@redhat.com>
4907         * sysdeps/generic/bits/byteswap.h (__bswap_64): Partly revert last
4908         patch.  We must use unsigned int for l member of union.
4910         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main): Don't call
4911         _dl_aux_init for shared libraries.
4913         * sysdeps/unix/sysv/linux/glob64.c: Moved to ...
4914         * sysdeps/gnu/glob64.c: ...here.  New file.
4916 2001-01-07  Ben Collins  <bcollins@debian.org>
4918         * manual/examples/longopt.c: Make the "struct option" a little
4919         more like it should be, adding usage of required_argument,
4920         noargument and such, and also setting the options string right.
4922         * manual/sysinfo.texi (Load Average): New section, documents
4923         getloadavg().
4925 2001-01-06  Ulrich Drepper  <drepper@redhat.com>
4927         * version.h (VERSION): Bump to 2.2.1.
4929         * sysdeps/unix/sysv/linux/mips/Dist: Remove sys/acct.h.
4930         * sysdeps/alpha/Dist: Add alphaev6/stxncpy.S and alphaev6/stxcpy.S.
4931         * sysdeps/unix/sysv/aix/Dist: Add uitrunc.c, savef.S, and restf.S.
4932         * dlfcn/Makefile (distribute): Add errmsg1mod.c.
4933         * Makefile (distribute): Add include/libc-internal.h.
4934         * libio/Makefile (distribute): Avoid overwriting.
4936         * iconvdata/ibm937.c (BODY to IBM937): Correct several mistakes in
4937         buffer and table handling.
4939 2001-01-05  H.J. Lu  <hjl@gnu.org>
4941         * elf/dl-support.c (non_dynamic_init): Move the auxiliary
4942         vector checking to ...
4943         (_dl_aux_init): Here. New function. Defined only if
4944         HAVE_AUX_VECTOR is defined.
4946         * sysdeps/generic/libc-start.c (__libc_start_main): Call
4947         _dl_aux_init for static binaries if HAVE_AUX_VECTOR is defined.
4949         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main): Call
4950         _dl_aux_init.
4952         * sysdeps/unix/sysv/linux/ldsodefs.h (DL_FIND_AUXV): Removed.
4953         (HAVE_AUX_VECTOR): Defined.
4954         (_dl_aux_init): Declared.
4956 2001-01-05  Ben Collins  <bcollins@debian.org>
4958         * manual/string.texi (Finding Tokens in a String): Document XPG
4959         basename() and dirname(), as well as GNU basename().
4961 2001-01-05  Jakub Jelinek  <jakub@redhat.com>
4963         * Makeconfig (preprocess-version): Replace -traditional with
4964         -x assembler-with-cpp.
4966 2001-01-05  Joseph S. Myers  <jsm28@cam.ac.uk>
4968         * math/bits/cmathcalls.h: Don't define inline cimag, creal or conj
4969         for GCC 2.97 or later.
4971 2001-01-05  Ben Collins  <bcollins@debian.org>
4973         * manual/stdio.texi (getline): Clarify the return value in the
4974         case of EOF being reached before a newline.
4976 2001-01-04  Jakub Jelinek  <jakub@redhat.com>
4978         * sunrpc/pmap_clnt.c (__get_myaddress): Return TRUE if successful,
4979         FALSE otherwise.
4980         (pmap_set, pmap_unset): Check __get_myaddress return value.
4982 2001-01-05  Mark Kettenis  <kettenis@gnu.org>
4984         * sysdeps/generic/netinet/if_ether.h: Include <sys/types.h>.
4985         (struct ether_addr): Declare ether_addr_octet member as
4986         `u_int8_t'.  Add __attribute__ ((__packed__)).
4988 2001-01-06  Mark Kettenis  <kettenis@gnu.org>
4990         * sysdeps/mach/hurd/readdir64.c: New file.
4991         * sysdeps/mach/hurd/readdir64_r.c: New file.
4993 2001-01-07  Mark Kettenis  <kettenis@gnu.org>
4995         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Add comment about
4996         `struct statfs' and `struct statvfs' being identical.
4997         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
4999 2001-01-06  Mark Kettenis  <kettenis@gnu.org>
5001         * sysdeps/mach/hurd/fstatfs64.c: New file.
5002         * sysdeps/mach/hurd/fstatvfs64.c: New file.
5003         * sysdeps/mach/hurd/statfs64.c: New file.
5004         * sysdeps/mach/hurd/statvfs64.c: New file.
5005         * sysdeps/mach/hurd/statfsconv.c: New file.
5006         * sysdeps/mach/hurd/Dist: Add statfsconv.c.
5008 2001-01-06  Ulrich Drepper  <drepper@redhat.com>
5010         * iconv/skeleton.c: Reset outbuf for next round of the loop.
5011         Reported by Owen Taylor <otaylor@redhat.com>.
5012         * iconv/Makefile (tests): Add tst-iconv3.
5013         * iconv/tst-iconv3.c: New file.
5015         * iconvdata/ibm930.c: Fix handling of state.  Optimize a bit.
5016         * iconvdata/ibm933.c: Likewise.
5017         * iconvdata/ibm935.c: Likewise.
5018         * iconvdata/ibm937.c: Likewise.
5019         * iconvdata/ibm939.c: Likewise.
5020         * iconvdata/ibm930.h: Adjust single byte table for optimization.
5021         * iconvdata/ibm933.h: Likewise.
5022         * iconvdata/ibm935.h: Likewise.
5023         * iconvdata/ibm939.h: Likewise.
5025         * iconvdata/testdata/IBM930: Add misssing SI.
5026         * iconvdata/testdata/IBM933: Likewise.
5027         * iconvdata/testdata/IBM935: Likewise.
5028         * iconvdata/testdata/IBM937: Likewise.
5029         * iconvdata/testdata/IBM939: Likewise.
5031 2001-01-06  Andreas Jaeger  <aj@suse.de>
5033         * configure.in: Check for old add-ons that shouldn't be used with
5034         current glibc anymore.
5036 2001-01-06  Mark Kettenis  <kettenis@gnu.org>
5038         * sysdeps/mach/hurd/readdir_r.c (__readdir_r): Return error number
5039         instead of -1 on failure.  Don't forget to copy file name into
5040         *ENTRY if successful.  Set *RESULT to NULL upon reaching the end
5041         of the directory.
5043 2001-01-06  Mark Kettenis  <kettenis@gnu.org>
5045         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Don't forget to
5046         copy st_atime member.
5048 2001-01-05  Ulrich Drepper  <drepper@redhat.com>
5050         * io/ftw.c (ftw_dir): Don't add a second slash at the beginning
5051         for searches from the root directory.
5052         Reported by loris <loris@iol.it> [PR libc/1991].
5053         * io/Makefile (tests): Add bug-ftw1.
5054         * io/bug-ftw1.c: New file.
5056         * elf/dl-support.c (non_dynamic_init): Don't define DL_FIND_AUXV
5057         if it is not available.  Instead use it only if it is available.
5058         * sysdeps/unix/sysv/linux/ldsodefs.h: New file.
5060         * iconv/gconv_simple.c (internal_ics4_loop): Correct test for
5061         overflowing output buffer.
5062         (internal_ucs4_loop_unaligned): Likewise.
5063         (ucs4_internal_loop): Likewise.
5064         (ucs4_internal_loop_unaligned): Likewise.
5065         (internal_ucs4le_loop): Likewise.
5066         (internal_ucs4le_loop_unaligned): Likewise.
5067         (ucs4le_internal_loop): Likewise.
5068         (ucs4le_internal_loop_unaligned): Likewise.
5069         Reported by Owen Taylor <otaylor@redhat.com>.
5070         * iconv/Makefile (tests): Add tst-iconv2.
5071         * iconv/tst-iconv2.c: New file.
5073 2001-01-04  H.J. Lu  <hjl@gnu.org>
5075         * elf/dl-support.c (DL_FIND_AUXV): New.  Defined if not defined.
5076         (_dl_clktck): Declared.
5077         (non_dynamic_init): Take 3 arguments.
5078         Set _dl_pagesize, _dl_platform and _dl_clktck from AUX.
5080 2001-01-01  Bruno Haible  <haible@clisp.cons.org>
5082         Finish implementation of plural form handling.
5083         * intl/dcigettext.c (known_translation_t): Rename 'domain' field to
5084         'domainname'.  Remove 'plindex' field. Add 'domain' and
5085         'translation_length' fields.
5086         (transcmp): Don't compare 'plindex' fields.
5087         (plural_lookup): New function.
5088         (DCIGETTEXT): Change cache handing in the plural case.  Don't call
5089         plural_eval before the translation and its catalog file have been
5090         found. Remove plindex from cache key.  Add 'translation_length' and
5091         'domain' to cache result.
5092         (_nl_find_msg): Remove index argument, return length of translation
5093         to the caller instead.  Weaken comparison of string lengths, to account
5094         for plural entries.  Call iconv() on the entire result string, not
5095         only on the portion needed so far.
5096         * intl/loadinfo.h (_nl_find_msg): Remove index argument, add lengthp
5097         argument.
5098         * intl/loadmsgcat.c (_nl_load_domain): Adapt to _nl_find_msg change.
5100 2001-01-04  Ulrich Drepper  <drepper@redhat.com>
5102         * intl/plural.y (yylex): Minimal improvement in number scanner.
5104 2000-07-31  Bruno Haible  <haible@clisp.cons.org>
5106         * intl/plural.y: Include config.h. Needed to define 'inline' away for
5107         C compilers that don't support it.
5108         (yylex): Don't use gcc specific case range syntax.
5109         * intl/loadmsgcat.c (INIT_GERMANIC_PLURAL): New macro, for old
5110         compilers.
5112 2000-10-12  Bruno Haible  <haible@clisp.cons.org>
5114         * intl/finddomain.c: Remove unneeded includes.
5116 2000-10-12  Bruno Haible  <haible@clisp.cons.org>
5118         * intl/localealias.c (memcpy): Return first argument, just like the
5119         real memcpy function does.
5120         * intl/bindtextdom.c (memcpy): Likewise.
5121         * intl/finddomain.c (memcpy): Likewise.
5122         * intl/l10nflist.c (memcpy): Likewise.
5123         * intl/textdomain.c (memcpy): Likewise.
5124         From Paul Eggert <eggert@twinsun.com>.
5126 2001-01-03  Jakub Jelinek  <jakub@redhat.com>
5128         * resolv/resolv.h (struct __res_state): Add nsinit field.
5129         * resolv/res_send.c (res_nsend): Use it instead of nscount.
5130         * resolv/res_init.c (__res_vinit): Initialize it.
5131         (res_nclose): Clear it instead of nscount.
5133 2001-01-04  Ulrich Drepper  <drepper@redhat.com>
5135         * malloc/mtrace.pl: Fix matching of addresses.
5136         Patch by Aharon Robbins <arnold@skeeve.com>.
5138         * Versions.def (ld): Add GLIBC_2.2.
5140         * catgets/gencat.c: Copyright 2001.
5141         * csu/version.c: Likewise.
5142         * debug/catchsegv.sh: Likewise.
5143         * debug/xtrace.sh: Likewise.
5144         * elf/ldconfig.c: Likewise.
5145         * elf/sprof.c: Likewise.
5146         * iconv/iconv_prog.c: Likewise.
5147         * locale/locale.c: Likewise.
5148         * locale/localedef.c: Likewise.
5149         * malloc/memusage.sh: Likewise.
5150         * malloc/mtrace.pl: Likewise.
5151         * nscd/nscd.c: Likewise.
5152         * posix/getconf.c: Likewise.
5154 2001-01-04  Mark Kettenis  <kettenis@gnu.org>
5156         * include/stdio.h: Only provide __getwc_unlocked prototype if
5157         USE_IN_LIBIO is defined.
5159 2001-01-04  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5161         * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Fix error code
5162         handling.
5164 2001-01-03  Andreas Schwab  <schwab@suse.de>
5166         * sysdeps/generic/strtoll.c: Remove unused __strtoq_internal alias.
5167         * sysdeps/generic/strtoull.c: Remove unused __strtouq_internal alias.
5169         * sysdeps/wordsize-64/strtol.c: Add strtoq alias and fix strtoll alias.
5170         * sysdeps/wordsize-64/strtoul.c: Add strtouq alias and fix
5171         strtoull alias.
5172         * sysdeps/wordsize-64/wcstol.c: Add wcstoq alias and fix wcstoll alias.
5173         * sysdeps/wordsize-64/wcstoul.c: Add wcstouq alias and fix
5174         wcstoull alias.
5176         * sysdeps/generic/strtoul.c: Make sure we find strtol.c in this
5177         directory.
5178         * sysdeps/generic/strtol_l.c: Likewise.
5179         * sysdeps/generic/strtoul_l.c: Likewise.
5180         * sysdeps/generic/wcstoul.c: Likewise, for wcstol.c.
5182         * sysdeps/wordsize-64/strtol_l.c: Fix alias.
5183         * sysdeps/wordsize-64/strtoul_l.c: Likewise.
5184         * sysdeps/wordsize-64/wcstol_l.c: Fix alias.
5185         * sysdeps/wordsize-64/wcstoul_l.c: Likewise.
5187 2001-01-04  Andreas Jaeger  <aj@suse.de>
5189         * nss/nsswitch.c: Include files for missing prototypes, remove
5190         buggy declaration of prototypes.
5192 2001-01-03  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5194         * resolv/Versions: Fix bracing.
5195         * sysdeps/powerpc/soft-fp/Versions: Likewise.
5196         * sysdeps/sparc/sparc64/soft-fp/Versions: Likewise.
5198 2001-01-02  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5200         * sysdeps/powerpc/dl-machine.c (__process_machine_rela): Fix typo.
5202 2001-01-02  Ulrich Drepper  <drepper@redhat.com>
5204         * manual/Makefile (TEXI2PDF): Change to texi2dvi --pdf.
5205         Suggested by Minko Markov <mmarkov@home.com>.
5207 2001-01-02  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5209         * sysdeps/powerpc/elf/start.S (__data_start): Make it global.
5210         * sysdeps/powerpc/dl-machine.c (dl_reloc_overflow): Print the name of
5211         the failing symbol.
5212         (__process_machine_rela): Pass symbol to dl_reloc_overflow().
5214 2001-01-02  Ben Collins  <bcollins@debian.org>
5216         * time/tzset.c (tzset_internal): Make sure we fall back to UTC
5217         if TZ is not set and TZDEFAULT is not present.
5219 2001-01-01  Ben Collins  <bcollins@debian.org>
5221         * string/strings.h: Make sure we declare our functions even if
5222         string.h is already included, based on whether or not __USE_BSD is
5223         defined.
5225 2001-01-02  Ulrich Drepper  <drepper@redhat.com>
5227         * dlfcn/dlerror.c (dlerror): Handle call of dlerror() before any
5228         other dlopen() and dlsym().
5229         Based on a patch by Ben Collins <bcollins@debian.org>.
5231 2001-01-02  Andreas Jaeger  <aj@suse.de>
5233         * dlfcn/errmsg1.c (main): Call dlerror initially.
5234         Reported by Ben Collins <bcollins@debian.org>.
5236 2001-01-02  Ulrich Drepper  <drepper@redhat.com>
5238         * intl/dcigettext.c (guess_category_value): Rewrite so that LANGUAGE
5239         value is ignored if the selected locale is the C locale.
5240         * intl/tst-gettext.c: Set locale for above change.
5241         * intl/tst-translit.c: Likewise.
5243 2001-01-02  Andreas Jaeger  <aj@suse.de>
5245         * libio/wgenops.c (_IO_wdoallocbuf): Use correct wide access macro.
5246         (_IO_switch_to_wget_mode): Likewise.
5247         (_IO_sputbackwc): Likewise.
5248         (_IO_sungetwc): Use wint_t for result.
5250         * stdio-common/vfscanf.c (__vfscanf): Use WINT_T for done.
5252         * sysdeps/generic/strtol.c (strtol): Make cnt size_t for correct
5253         signedness.
5255         * sysdeps/generic/printf_fphex.c (putc): Cast _IO_putwc_unlocked
5256         to (int) to avoid warnings.
5257         * stdio-common/printf_fp.c (putc): Likewise.
5258         * stdio-common/printf_size.c (putc): Likewise.
5260         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Make
5261         constant unsigned.
5263 2001-01-01  Andreas Jaeger  <aj@suse.de>
5265         * inet/rcmd.c (rcmd_af): Use socklen_t for len.
5267 2000-12-31  Andreas Jaeger  <aj@suse.de>
5269         * include/libc-internal.h: Add prototype for __libc_freeres.
5271         * sysdeps/unix/sysv/linux/init-first.c: Include <libc-internals.h>
5272         for prototypes, remove redundant prototypes.
5273         * gmon/gmon.c: Likewise.
5274         * sysdeps/unix/i386/i586/clock_getres.c: Likewise.
5275         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
5276         * malloc/mtrace.c: Likewise.
5278         * sysdeps/generic/enbl-secure.c: Include <libc-internals.h> for
5279         prototypes.
5280         * elf/soinit.c: Likewise.
5281         * sysdeps/generic/prof-freq.c: Likewise.
5282         * sysdeps/mach/hurd/profil.c: Likewise.
5283         * debug/noophooks.c: Likewise.
5284         * debug/pcprofile.c: Likewise.
5285         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
5286         * sysdeps/generic/get_clockfreq.c: Likewise.
5287         * malloc/set-freeres.c: Likewise.
5289         * locale/localeinfo.h: Add internal prototypes.
5291         * elf/rtld.c (dl_main): Fix prototype.
5293         * iconvdata/tst-table-to.c (main): Use return instead of exit to
5294         avoid warning.
5296         * nis/rpcsvc/yp_prot.h: Remove __P.
5297         * nis/rpcsvc/ypupd.h: Likewise.
5298         * nis/rpcsvc/yp.h: Likewise.
5300         * sunrpc/rpc_main.c: Add noreturn attributes.
5301         * sunrpc/rpc_scan.h: Likewise.
5303         * sunrpc/rpc_hout.c (storexdrfuncdecl): Make static.
5305         * sunrpc/rpcinfo.c: Add noreturn attribute to brdcst.
5307         * sunrpc/proto.h: Add noreturn attributes to error and crash.
5309         * posix/bsd-getpgrp.c: Add prototype to avoid warning.
5311         * sunrpc/svc_unix.c: Include <rpc/svc.h> for prototypes.
5313         * sunrpc/create_xid.c: Include <rpc/svc.h> for prototypes.
5315         * include/rpc/rpc_msg.h: Add prototypes for some functions.
5316         * include/rpc/auth.h: Likewise.
5317         * include/rpc/auth_des.h: Likewise.
5318         * include/rpc/clnt.h: Likewise.
5319         * include/rpc/rpc.h: Likewise.
5320         * include/rpc/svc.h: Likewise.
5321         * include/rpc/svc_auth.h: Likewise.
5323         * include/rpc/des_crypt.h: New file.
5325         * malloc/memusagestat.c (main): Use return instead of exit to
5326         avoid warning.
5327         * io/pwd.c (main): Likewise.
5328         * iconvdata/tst-table-from.c (main): Likewise.
5329         * ctype/test_ctype.c (main): Likewise.
5330         * setjmp/tst-setjmp.c (main): Likewise.
5331         * signal/tst-signal.c (main): Likewise.
5332         * stdlib/tst-strtol.c (main): Likewise.
5333         * stdlib/tst-strtod.c (main): Likewise.
5334         * stdlib/tst-strtoll.c (main): Likewise.
5335         * stdlib/tst-xpg-basename.c (main): Likewise.
5336         * dirent/tst-seekdir.c (main): Likewise.
5337         * grp/testgrp.c (main): Likewise.
5338         * inet/test_ifindex.c (main): Likewise.
5339         * io/test-utime.c (main): Likewise.
5340         * posix/test-vfork.c (main): Likewise.
5341         * posix/testfnm.c (main): Likewise.
5342         * stdio-common/temptest.c (main): Likewise.
5343         * stdio-common/test_rdwr.c (main): Likewise.
5344         * stdio-common/tst-fileno.c (main): Likewise.
5345         * stdio-common/tst-sscanf.c (main): Likewise.
5346         * stdio-common/tstscanf.c (main): Likewise.
5347         * string/bug-strncat1.c (main): Likewise.
5348         * string/bug-strpbrk1.c (main): Likewise.
5349         * string/bug-strspn1.c (main): Likewise.
5350         * string/test-ffs.c (main): Likewise.
5351         * string/tst-inlcall.c (main): Likewise.
5352         * string/tst-svc.c (main): Likewise.
5353         * timezone/test-tz.c (main): Likewise.
5354         * wctype/test_wcfuncs.c (main): Likewise.
5355         * wctype/test_wctype.c (main): Likewise.
5357         * stdlib/tst-random.c: Add attribute noreturn to fail.
5359 2000-12-28  Wolfram Gloger  <wg@malloc.de>
5361         * malloc/malloc.c (MALLOC_COPY): Handle case if source and
5362         destination overlap.  Assume dest is always below source if
5363         overlapping.
5365 2000-12-30  Ulrich Drepper  <drepper@redhat.com>
5367         * elf/dl-close.c (_dl_close): We can ignore the NODELETE flag if the
5368         object was not yet initialized.
5370 2000-12-28  H.J. Lu  <hjl@gnu.org>
5372         * elf/dl-deps.c (_dl_map_object_deps): Make sure the DSO state
5373         is always consistent even if its dependency is failed.
5375         * elf/dl-open.c (_dl_open): Increment the open count before
5376         calling _dl_close () in case of failure.
5378         * elf/neededtest4.c: New file.
5379         * elf/neededobj5.c: New file.
5380         * elf/neededobj6.c: New file.
5382         * elf/Makefile (distribute): Add neededobj5.c and neededobj6.c.
5383         (tests): Add neededtest4.
5384         (modules-names): Add neededobj5 and neededobj6.
5385         ($(objpfx)neededobj6.so): New target.
5386         ($(objpfx)neededtest4): New target.
5387         ($(objpfx)neededtest4.out): New target.
5389 2000-12-28  Joseph S. Myers  <jsm28@cam.ac.uk>
5391         * misc/sys/cdefs.h (__attribute_format_strfmon__): Define.
5392         * stdlib/monetary.h: Add strfmon format attributes.
5394 2000-12-28  Roland McGrath  <roland@frob.com>
5396         * sysdeps/mach/hurd/ioctl.c (do_ioctl): Avoid double-increment after
5397         __mempcpy does it for us.
5399 2000-12-28  Andreas Jaeger  <aj@suse.de>
5401         * sysdeps/generic/dl-environ.c: Add prototype for unsetenv.
5403         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Add prototype for
5404         __new_setrlimit.
5406         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Add prototype for
5407         __old_getrlimit64.
5409         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Add prototype for
5410         __new_getrlimit.
5412         * sysdeps/unix/sysv/linux/i386/chown.c: Add prototypes for
5413         __chown_is_lchown and __real_chown.
5415         * sysdeps/generic/ldsodefs.h: Add noreturn attribute to
5416         _dl_reloc_bad_type.
5418         * sunrpc/rpc_hout.c (print_funcdef): Add break statement to shut
5419         up GCC's warning about "deprecated use of label at end of compound
5420         statement."
5421         * sunrpc/rpc_cout.c (emit_inline): Likewise.
5423         * gmon/bb_exit_func.c: Include <sys/gmon.h> for internal
5424         prototypes.
5425         Remove struct bb and __bb_head since those are declared by
5426         sys/gmon.h.
5428 2000-12-22  Ben Collins  <bcollins@debian.org>
5430         * manual/charset.texi: Fix typo in description of WCHAR_MAX.
5432         * manual/argp.texi: Document argp_domain as part of struct argp.
5434 2000-12-28  Andreas Jaeger  <aj@suse.de>
5436         * catgets/Makefile (generated): Add sample.SJIS.cat.
5438         * sunrpc/rpc_dtable.c: Include rpc/clnt.h for prototypes.
5440         * elf/dl-minimal.c: Add prototypes.
5442         * include/locale.h: Add internal prototypes.
5443         * include/sys/gmon.h: Likewise.
5445         * dlfcn/errmsg1mod.c: Add prototype for foo to shut up GCC.
5447 2000-12-27  Ben Collins  <bcollins@debian.org>
5449         * elf/dl-open.c (_dl_open): Correctly set the new objname pointer
5450         when reallocating the error strings.
5451         Reported by Kalle Olavi Niemitalo <kon@iki.fi>
5453 2000-12-27  Ulrich Drepper  <drepper@redhat.com>
5455         * dlfcn/Makefile (tests): Add errmsg1.
5456         (modules-names): Add errmsg1mod.
5457         Add rules to run errmsg1.
5458         * dlfcn/errmsg1.c: New file.
5459         * dlfcn/errmsg1mod.c: New file.
5461         * dlfcn/dlerror.c (dlerror): Always create output string which
5462         includes object file name.
5464         * sysdeps/alpha/alphaev6/memcpy.S: Don't go through unrolled loop
5465         if we would go through it only once.
5466         Patch by Rick Gorton <rick.gorton@api-networks.com>.
5468         * sysdeps/alpha/alphaev67/strncat.S: Fix handling of numeric parameter.
5469         Patch by Richard Henderson <rth@redhat.com>.
5471 2000-12-27  Jakub Jelinek  <jakub@redhat.com>
5473         * malloc/malloc.c (memmove): Add prototypes.
5474         (MALLOC_MEMMOVE): Define.
5475         (chunk_realloc): Use it instead of MALLOC_COPY if source and
5476         destination might overlap.
5478 2000-12-27  Andreas Jaeger  <aj@suse.de>
5480         * stdio-common/printf_fp.c (__printf_fp): Add prototype for nested
5481         function.
5482         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
5483         * locale/programs/locale.c (show_locale_vars): Likewise.
5484         (show_info): Likewise.
5485         * locale/programs/ld-collate.c (collate_output): Likewise.
5486         * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
5487         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
5488         * stdlib/rpmatch.c (rpmatch): Likewise.
5490         * setjmp/tst-setjmp.c: Make local functions static.
5491         * setjmp/jmpbug.c: Likewise.
5492         * signal/tst-signal.c: Likewise.
5493         * stdio-common/tfformat.c: Likewise.
5494         * string/tst-svc.c: Likewise.
5495         * time/clocktest.c: Likewise.
5496         * time/tst-getdate.c: Likewise.
5497         * dirent/list.c: Likewise.
5498         * dirent/opendir-tst1.c: Likewise.
5499         * posix/runtests.c: Likewise.
5500         * posix/tst-getaddrinfo.c: Likewise.
5501         * posix/tst-chmod.c: Likewise.
5502         * posix/wordexp-test.c: Likewise.
5503         * misc/tst-efgcvt.c: Likewise.
5504         * timezone/tst-timezone.c: Likewise.
5505         * rt/tst-clock.c: Likewise.
5506         * rt/tst-shm.c: Likewise.
5507         * rt/tst-aio2.c: Likewise.
5508         * rt/tst-aio3.c: Likewise.
5509         * rt/tst-aio4.c: Likewise.
5510         * rt/tst-aio5.c: Likewise.
5512         * dlfcn/failtest.c: Add prototype for foo.
5514         * dlfcn/glrefmain.c: Add prototype for do_test.
5516         * dlfcn/tst-dladdr.c: Add prototype for do_test.
5518         * string/test-ffs.c (main): Add prototype for nested function.
5520         * sunrpc/des_soft.c: Include rpc/des_crypt.h for prototype.
5522         * nss/XXX-lookup.c: Add prototype to shut up GCC.
5524         * include/netinet/ether.h (DECLARE_NSS_PROTOTYPES): Fix
5525         setetherent prototype.
5526         Add internal interfaces.
5528         * nis/nss_nis/nis-ethers.c (_nss_nis_setetherent): Likewise.
5529         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent): Likewise.
5531         * resolv/res_data.c: Don't add (conflicting) prototypes for _LIBC.
5533         * nis/nis_intern.h: Add prototype for __pmap_getnisport.
5535         * nss/nss_files/files-ethers.c: Include netinet/ether.h to get
5536         prototypes, remove struct etherent since it's declared in ether.h.
5537         Fix ntohost declaration.
5539         * elf/dl-profile.c (_dl_mcount): Add empty statement to shut up GCC.
5541         * include/getopt.h: Add internal interfaces.
5542         * include/termios.h: Likewise.
5543         * include/resolv.h: Likewise.
5544         * include/netdb.h: Likewise.
5545         * include/grp.h: Likewise.
5546         * include/pwd.h: Likewise.
5547         * include/shadow.h: Likewise.
5548         * include/rpc/netdb.h: Likewise.
5549         * include/setjmp.h: Likewise.
5551         * include/stdio.h: Add prototypes for compatibility functions.
5552         * include/grp.h: Likewise.
5553         * include/pwd.h: Likewise.
5554         * include/shadow.h: Likewise.
5556         * include/fenv.h: Define internal interfaces.
5558 2000-12-27  Ulrich Drepper  <drepper@redhat.com>
5560         * sysdeps/generic/bits/byteswap.h (__bswap_64): Handle constant
5561         argument case separately.
5562         * sysdeps/i386/bits/byteswap.h (__bswap_64): Likewise.
5564 2000-12-27  Andreas Jaeger  <aj@suse.de>
5566         * include/sys/wait.h: Add some prototypes.
5567         * Rules (dummy.c): Create also prototype to shut up GCC.
5569 2000-12-27  Andreas Jaeger  <aj@suse.de>
5571         * sysdeps/mach/hurd/if_index.c (__protocol_available): Uncomment,
5572         it's not needed at the moment.
5573         * sysdeps/generic/if_index.c (__protocol_available): Likewise.
5574         * sysdeps/unix/sysv/linux/if_index.c (__protocol_available): Likewise.
5576 2000-12-26  Andreas Jaeger  <aj@suse.de>
5578         * libio/getc_u.c: Include stdio.h via system path to get internal
5579         prototypes.
5580         * libio/getwc_u.c: Likewise.
5582         * stdlib/strfmon.c: Fix prototype of __printf_fp.
5584         * stdio-common/vfprintf.c (process_arg): Move __printf_fphex and
5585         __printf_fp prototypes to ...
5586         * include/printf.h: ...here.
5588         * include/stdio.h: Add some internal prototypes to shut up GCC.
5589         * include/stdlib.h: Likewise.
5591         * sysdeps/posix/sigpause.c (__sigpause): Use ISO C prototype
5592         declaration.
5594         * include/signal.h: Add prototypes for internal sigpause
5595         interfaces.
5597 2000-12-26  Ulrich Drepper  <drepper@redhat.com>
5599         * sysdeps/generic/bits/byteswap.h (__bswap_64): Make it usable for
5600         64bit platforms.  Reported by Dave Gilbert <gilbertd@treblig.org>.
5602         * string/Makefile (tests): Add tst-bswap.
5603         * string/tst-bswap.c: New file.
5605 2000-12-11  Bruno Haible  <haible@clisp.cons.org>
5607         * Makefile ($(inst_includedir)/gnu/stubs.h): Sort in the C locale.
5609 2000-12-26  Ulrich Drepper  <drepper@redhat.com>
5611         * sunrpc/Makefile (rpcgen-cmd): Use single quotes in sed call.
5612         Patch by Ed Connell <Ed.Connell@sas.com>.
5614 2000-12-24  Ulrich Drepper  <drepper@redhat.com>
5616         * locale/iso-639.def: Correct one entry.  Add two missing entries.
5618         * locale/iso-4217.def: Change entry for Eritrea.
5619         Reported by Daniel Yacob <yacob@geez.org>.
5621 2000-12-23  Ben Collins  <bcollins@debian.org>
5623         * manual/charset.texi (Extended Char Intro): Fix typo in ISO 6937
5624         description.
5626         * manual/stdio.texi (Dynamic Output): Document the return value of
5627         asprintf.  Also make the asprintf/snprintf examples a little
5628         better (check for some error returns).
5630 2000-12-22  Andreas Jaeger  <aj@suse.de>
5632         * include/stdio.h: Add __ftrylockfile prototype.
5634 2000-12-21  H.J. Lu  <hjl@gnu.org>
5636         * sysdeps/ia64/fpu/math_ldbl.h (ieee_long_double_shape_type):
5637         Make sign_exponent element signed.
5639         * sysdeps/ieee754/ldbl-96/math_ldbl.h (ieee_long_double_shape_type):
5640         Fix a typo.
5642         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Remove dead branch.
5644 2000-12-21  Andreas Jaeger  <aj@suse.de>
5646         * nis/nss_nisplus/nisplus-ethers.c (struct etherent): Removed.
5647         * inet/ether_hton.c: Likewise
5648         * inet/ether_ntoh.c: Likewise.
5650         * nis/nss_nis/nis-ethers.c (_nss_nis_getntohost_r): Fix
5651         declaration to match prototype.
5653         * include/netinet/ether.h (struct etherent): Declare here so that
5654         all implementations use the same struct.
5656         * nis/nss_nis/nis-ethers.c: Include netinet/ether.h to get
5657         prototypes.
5658         (struct ether): Removed.
5659         Use struct etherent instead of ether everywhere.
5661         * include/rpc/auth.h (DECLARE_NSS_PROTOTYPES): New.
5663         * include/rpc/auth_des.h (DECLARE_NSS_PROTOTYPES): New.
5665         * sunrpc/publickey.c: Include auth_des.h for prototypes.
5667 2000-12-20  Ulrich Drepper  <drepper@redhat.com>
5669         * math/test-misc.c: Add more tests for nextafter functions.
5671         * sysdeps/i386/fpu/s_nextafterl.c: Handle change from denormal to
5672         normal correctly.  Correct test for sign.
5673         Based on a patch by HJ Lu.
5675 2000-12-19  Ulrich Drepper  <drepper@redhat.com>
5677         * Makeconfig (preprocess-version): Add -traditional to gcc call.
5678         Cleanup sed calls.
5680 2000-12-19  Andreas Jaeger  <aj@suse.de>
5682         * include/netinet/ether.h (DECLARE_NSS_PROTOTYPES): New.
5684         * nis/nis_intern.h: Add prototype for __do_niscall3.
5686         * nis/nss_nis/nis-rpc.c (_nss_nis_setrpcent): Fix declaration to
5687         match prototype.
5689         * include/netdb.h (DECLARE_NSS_PROTOTYPES): Reformat.
5691         * include/rpc/netdb.h (DECLARE_NSS_PROTOTYPES): New.
5693         * include/aliases.h (DECLARE_NSS_PROTOTYPES): New.
5695 2000-12-18  Ulrich Drepper  <drepper@redhat.com>
5697         * math/test-misc.c: Add more tests for nextafter.
5698         * sysdeps/i386/fpu/s_nextafterl.c: Handle decrement for x<0 correctly.
5699         * sysdeps/ieee754/ldbl-96/math_ldbl.h
5700         (ieee_long_double_shape_type): Make sign_exponent element signed.
5702         * manual/message.texi: Add Estonian to plural overview list.
5703         Correct rule for Slavic languages.
5704         Patch by Stanislav Brabec <utx@penguin.cz>.
5706         * nis/nss_nis/nis-netgrp.c: Remove unnecessary initializations.
5708 2000-12-18  Andreas Jaeger  <aj@suse.de>
5710         * test-skeleton.c: Use temp_name_list instead of name_list to
5711         avoid collision with name_list from inet/netgroup.h.
5713         * nss/nss_files/files-network.c (NEED_H_ERRNO): Define.
5715         * include/grp.h (DECLARE_NSS_PROTOTYPES): New.
5716         * include/pwd.h (DECLARE_NSS_PROTOTYPES): New.
5717         * include/netdb.h (DECLARE_NSS_PROTOTYPES): New.
5718         * include/shadow.h (DECLARE_NSS_PROTOTYPES): New.
5720         * hesiod/nss_hesiod/hesiod-proto.c (_nss_hesiod_setprotoent): Fix
5721         declaration to match prototype.
5722         * hesiod/nss_hesiod/hesiod-pwd.c (_nss_hesiod_setpwent): Likewise.
5723         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_setgrent): Likewise.
5724         * hesiod/nss_hesiod/hesiod-service.c (_nss_hesiod_setservent):
5725         Likewise.
5726         * nis/nss_nis/nis-grp.c (_nss_nis_setgrent): Likewise.
5727         * nis/nss_nis/nis-pwd.c (_nss_nis_setpwent): Likewise.
5728         * nis/nss_nis/nis-proto.c (_nss_nis_setprotoent): Likewise.
5729         * nis/nss_nis/nis-service.c (_nss_nis_setservent): Likewise.
5730         (_nss_nis_getservbyport_r): Likewise.
5731         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent): Likewise.
5732         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent): Likewise.
5733         * nis/nss_nis/nis-network.c (_nss_nis_getnetent_r): Likewise.
5734         (_nss_nis_setnetent): Likewise
5735         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
5736         (_nss_nis_endnetgrent): Likewise.
5737         * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_endnetgrent):
5738         Likewise.
5739         (_nss_nisplus_setnetgrent): Likewise.
5740         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Likewise.
5741         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_setpwent): Likewise.
5742         * nis/nss_nisplus/nisplus-grp.c (_nss_nisplus_setgrent): Likewise.
5743         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_setnetent):
5744         Likewise.
5745         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_sethostent):
5746         Likewise.
5747         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_setservent):
5748         Likewise.
5749         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_setprotoent):
5750         Likewise.
5751         * nis/nss_compat/compat-spwd.c (_nss_compat_setspent): Likewise.
5752         * nis/nss_compat/compat-pwd.c (_nss_compat_setpwent): Likewise.
5753         * nis/nss_compat/compat-grp.c (_nss_compat_setgrent): Likewise.
5754         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
5755         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Likewise.
5756         (_nss_dns_getnetbyaddr_r): Likewise.
5758 2000-12-17  Andreas Jaeger  <aj@suse.de>
5760         * sysdeps/generic/k_sinl.c (__kernel_sinl): Fix functions
5761         parameter.
5763         * sysdeps/unix/sysv/linux/shm_open.c (freeit): Make static and add
5764         unused attribute to shut up gcc warnings.
5766         * sysdeps/generic/k_sinl.c: Include math_private for prototypes.
5767         * sysdeps/generic/k_tanl.c: Likewise.
5768         * sysdeps/generic/k_cosl.c: Likewise.
5769         * sysdeps/generic/e_j0l.c: Likewise.
5770         * sysdeps/generic/e_j1l.c: Likewise.
5771         * sysdeps/generic/e_jnl.c: Likewise.
5772         * sysdeps/generic/e_lgammal_r.c: Likewise.
5774         * elf/vismain.c: Move prototypes for functions in vismod*.c to
5775         vismod.h.
5776         * elf/vismod.h: New file.
5777         * elf/Makefile (distribute): Add vismod.h.
5778         * elf/vismod1.c: Include vismod.h.
5779         * elf/vismod2.c: Likewise.
5780         * elf/vismod3.c: Likewise.
5782         * elf/constload3.c: Add prototype declarations to shut up gcc.
5783         * elf/failobj.c: Likewise.
5784         * elf/nodelmod3.c: Likewise.
5785         * elf/filtmod1.c: Likewise.
5786         * elf/filtmod2.c: Likewise.
5787         * elf/reldepmod1.c: Likewise.
5788         * elf/reldepmod2.c: Likewise.
5789         * elf/reldepmod3.c: Likewise.
5790         * elf/reldepmod4.c: Likewise.
5791         * elf/unload2dep.c: Likewise.
5792         * elf/unload2mod.c: Likewise.
5793         * elf/ltglobmod1.c: Likewise.
5794         * elf/pathoptobj.c: Likewise.
5795         * elf/neededobj1.c: Likewise.
5796         * elf/neededobj2.c: Likewise.
5797         * elf/neededobj3.c: Likewise.
5798         * elf/neededobj4.c: Likewise.
5799         * elf/nextmod1.c: Likewise.
5800         * elf/nextmod2.c: Likewise.
5802         * locale/programs/ld-collate.c (collate_finish): Don't use labels
5803         at end of compound statement.
5804         * locale/programs/locale.c (show_info): Likewise.
5805         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
5807 2000-12-16  Jakub Jelinek  <jakub@redhat.com>
5809         * catgets/gencat.c (read_input_file): Avoid calling obstack_free
5810         with a pointer not returned by obstack_ functions.
5812 2000-12-16  Ulrich Drepper  <drepper@redhat.com>
5814         * sysdeps/unix/sysv/aix/bits/stat.h (struct stat): Align with AIX
5815         version.
5816         (struct stat64): Likewise.
5817         Reported by Michael Keezer <mkeezer@redhat.com>.
5819         * timezone/asia: Update from tzdata2000h.
5820         * timezone/australasia: Likewise.
5821         * timezone/backward: Likewise.
5822         * timezone/europe: Likewise.
5823         * timezone/northamerica: Likewise.
5824         * timezone/southamerica: Likewise.
5825         * timezone/zone.tab: Likewise.
5827 2000-12-14  Jakub Jelinek  <jakub@redhat.com>
5829         * io/ftw.c (ftw_dir): If process_entry returned non-zero result
5830         and dir.stream is NULL, only free dir.content.
5831         * io/ftwtest.c (cb, main): Add --early-exit option to test it.
5832         * io/ftwtest-sh: Test with --early-exit.
5834 2000-12-13  Jakub Jelinek  <jakub@redhat.com>
5836         * misc/efgcvt.c (FCVT_MAXDIG): Define.
5837         (FCVT_BUFPTR): New variable.
5838         (fcvt): If fcvt_r returns -1 on the static short buffer,
5839         try to malloc a sufficiently large one and retry.
5840         (free_mem): New function.
5841         * misc/qefgcvt.c (FCVT_MAXDIG): Define.
5842         * misc/tst-efgcvt.c (fcvt_tests): Add new test.
5844 2000-12-15  Ulrich Drepper  <drepper@redhat.com>
5846         * misc/dirname.c (dirname): Fix search for second to last slash.
5848 2000-12-13  Andreas Jaeger  <aj@suse.de>
5850         * misc/tst-dirname.c (main): Fix typo in test to really use
5851         the examples from Unix98.
5852         Reported by Michael Kerrisk <mtk16@ext.canterbury.ac.nz>.
5854 2000-12-09  H.J. Lu  <hjl@gnu.org>
5856         * sysdeps/ia64/fpu/s_fabs.S: New file.
5857         * sysdeps/ia64/fpu/s_fabsf.S: New file.
5858         * sysdeps/ia64/fpu/s_fabsl.S: New file.
5860 2000-12-15  Andreas Jaeger  <aj@suse.de>
5862         * stdio-common/scanf9.c (main): Reformat and change to avoid
5863         warnings.
5865         * stdio-common/tstdiomisc.c: Make local functions static.
5866         * stdio-common/tst-printf.c: Likewise.
5868         * elf/constload2.c: Add prototype declarations to shut up gcc.
5869         * elf/dep1.c: Likewise.
5870         * elf/dep2.c: Likewise.
5871         * elf/dep3.c: Likewise.
5872         * elf/dep4.c: Likewise.
5873         * elf/ltglobmod2.c: Likewise.
5875         * libio/fmemopen.c: Make local functions static.
5877         * elf/Makefile (distribute): Added testobj.h.
5879         * elf/testobj.h: New file.
5881         * elf/testobj1.c: Include testobj.h and move prototype
5882         declarations to testobj.h.
5883         * elf/testobj2.c: Likewise.
5884         * elf/testobj3.c: Likewise.
5885         * elf/testobj4.c: Likewise.
5886         * elf/testobj5.c: Likewise.
5887         * elf/testobj6.c: Likewise.
5888         * elf/testobj1_1.c: Likewise.
5889         * elf/preloadtest.c: Likewise.
5891 2000-12-15  Ben Collins  <bcollins@debian.org>
5893         * misc/sys/cdefs.h: Fix thinko in checks for flexarr macros.
5894         Patch by Akim Demaille <akim@epita.fr> in Debian bug report.
5896 2000-12-14  H.J. Lu  <hjl@gnu.org>
5898         * sysdeps/ieee754/flt-32/s_sincosf.c (__sincosf): The exponent
5899         field in a float is 8 bits, not 11 bits.
5901 2000-12-13  Jakub Jelinek  <jakub@redhat.com>
5903         * math/test-misc.c (main): Adjust m for IEEE quad long double.
5905 2000-12-13  Andreas Jaeger  <aj@suse.de>
5907         * manual/message.texi (Using gettextized software): Fix typo.
5909         * manual/charset.texi (Converting a Character): Fix mbstouwcs
5910         program to compile.
5911         Patch by Martin Buchholz <martin@xemacs.org>.
5913         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Fix typo.
5914         Reported by Michael Kerrisk <mtk16@ext.canterbury.ac.nz>.
5916 2000-12-11  Andreas Jaeger  <aj@suse.de>
5918         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Declare
5919         kernel_sigset_t and use it.
5920         Patch by Hiroyuki Machida <machida@sm.sony.co.jp>.
5922 2000-12-10  Richard Henderson  <rth@redhat.com>
5924         * sysdeps/alpha/alphaev67/fpu/Implies: New file.
5925         * sysdeps/alpha/alphaev6/fpu/e_sqrtf.S: New file.
5926         * sysdeps/alpha/alphaev6/fpu/e_sqrt.S: New file.
5928 2000-12-10  Jakub Jelinek  <jakub@redhat.com>
5930         * sysdeps/alpha/htonl.S: Fix a typo.
5932 2000-12-10  Jakub Jelinek  <jakub@redhat.com>
5934         * sysdeps/alpha/alphaev6/stxcpy.S: Exchange t8 with t10.
5936 2000-12-10  Andreas Jaeger  <aj@suse.de>
5938         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Fixed
5939         cast as suggested by Jakub Jelinek <jakub@redhat.com> and Ulrich
5940         Drepper <drepper@redhat.com>.
5942 2000-12-09  Andreas Jaeger  <aj@suse.de>
5944         * sysdeps/unix/sysv/linux/mips/sigaction.c: New file.
5946         * sysdeps/unix/sysv/linux/mips/sys/acct.h: Removed, we can use the
5947         generic version.
5948         Patches by Hiroyuki Machida <machida@sm.sony.co.jp>.
5950         * locale/programs/ld-collate.c (handle_ellipsis): Fix format
5951         string.
5953         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Fix
5954         format string.
5956         * nscd/hstcache.c (addhstbyname): Add cast to avoid warning.
5957         * nscd/connections.c (handle_request): Likewise.
5958         * nscd/pwdcache.c (addpwbyname): Likewise.
5959         * nscd/grpcache.c (addgrbyname): Likewise.
5961         * nscd/nscd_conf.c (nscd_parse_file): Remove extra argument.
5963 2000-12-09  Ulrich Drepper  <drepper@redhat.com>
5965         * string/stratcliff.c: Add tests for stpncpy, memcpy, and mempcpy.
5967         * Makeconfig (default_cflags): Make -O2 the default for stable
5968         releases.
5970 2000-12-08  H.J. Lu  <hjl@gnu.org>
5972         * sysdeps/ia64/fpu/s_isinfl.S: Renamed to ...
5973         * sysdeps/ia64/fpu/s_isinf.S: This.
5974         Add a .pred.rel.mutex note to avoid false report.
5976         * sysdeps/ia64/fpu/s_isnanl.S: Renamed to ...
5977         * sysdeps/ia64/fpu/s_isnan.S: This.
5979         * sysdeps/ia64/fpu/s_fpclassify.S: New file.
5980         * sysdeps/ia64/fpu/s_fpclassifyf.S: New file.
5981         * sysdeps/ia64/fpu/s_fpclassifyl.S: New file.
5982         * sysdeps/ia64/fpu/s_isinff.S: New file.
5983         * sysdeps/ia64/fpu/s_isinfl.S: New file.
5984         * sysdeps/ia64/fpu/s_isnanf.S: New file.
5985         * sysdeps/ia64/fpu/s_isnanl.S: New file.
5986         * sysdeps/ia64/fpu/s_finite.S: New file.
5987         * sysdeps/ia64/fpu/s_finitef.S: New file.
5988         * sysdeps/ia64/fpu/s_finitel.S: New file.
5989         * sysdeps/ia64/fpu/s_signbit.S: New file.
5990         * sysdeps/ia64/fpu/s_signbitf.S: New file.
5991         * sysdeps/ia64/fpu/s_signbitl.S: New file.
5992         * sysdeps/ia64/fpu/s_copysign.S: New file.
5993         * sysdeps/ia64/fpu/s_copysignf.S: New file.
5994         * sysdeps/ia64/fpu/s_copysignl.S: New file.
5996 2000-12-08  Ulrich Drepper  <drepper@redhat.com>
5998         * math/libm-test.inc (main): Fix typos in messages.
6000         * string/stratcliff.c: Add test for rawmemchr.
6002 2000-12-08  Jakub Jelinek  <jakub@redhat.com>
6004         * elf/dl-open.c (_dl_open): If objname points right after errstring,
6005         allocate it together with errstring using alloca.
6006         * elf/dl-error.c (_dl_signal_error): If malloc failed, set objname
6007         to "", because it might point to local stack.
6009 2000-12-05  H.J. Lu  <hjl@gnu.org>
6011         * nss/Makefile (routines): Add getnssent and getnssent_r.
6012         * nss/nsswitch.h (__nss_setent): New internal NSS function.
6013         (__nss_endent): Likewise.
6014         (__nss_getent_r): Likewise.
6015         (__nss_getent): Likewise.
6016         * nss/getnssent_r.c: New file.
6017         * nss/getnssent.c: New file.
6018         * nss/getXXent.c (H_ERRNO_VAR): Updated.
6019         (GETFUNC_NAME): Updated to call __nss_getent ().
6020         * nss/getXXent_r.c (H_ERRNO_VAR_P): New.
6021         (STAYOPEN_TMPVAR): Updated.
6022         (STAYOPEN_VAR): Updated.
6023         (SETFUNC_NAME): Updated to call __nss_setent ().
6024         (ENDFUNC_NAME): Updated to call __nss_endent ().
6025         (INTERNAL (REENTRANT_GETNAME)): Updated to call __nss_getent_r ().
6027 2000-12-08  Andreas Jaeger  <aj@suse.de>
6029         * nscd/dbg_log.h (dbg_log): Correct attribute.
6031 2000-12-08  Jakub Jelinek  <jakub@redhat.com>
6033         * elf/dl-load.c (fillin_rpath): Don't assume there is '\0' at
6034         cp + len.  Compute where from dirname.
6035         Reported by <jreiser@BitWagon.com>.
6037 2000-12-08  Richard Henderson  <rth@twiddle.net>
6039         * sysdeps/alpha/_mcount.S: Fix typo.
6040         * sysdeps/alpha/strncpy.S: Likewise.
6042         * sysdeps/alpha/alphaev6/Implies: New file.
6043         * sysdeps/alpha/alphaev67/Implies: New file.
6044         * sysdeps/alpha/alphaev67/ffs.S: New file.
6045         * sysdeps/alpha/alphaev67/ffsll.S: New file.
6046         * sysdeps/alpha/alphaev67/rawmemchr.S: New file.
6047         * sysdeps/alpha/alphaev67/stpcpy.S: New file.
6048         * sysdeps/alpha/alphaev67/stpncpy.S: New file.
6049         * sysdeps/alpha/rawmemchr.S: New file.
6050         * sysdeps/alpha/strcat.S: Tail call to __stxcpy.
6051         * sysdeps/alpha/strcpy.S: Likewise.
6053         From GMP 3.1.1:
6054         * sysdeps/alpha/alphaev6/addmul_1.s: New file.
6056         From rick.gorton@alpha-processor.com:
6057         * sysdeps/alpha/alphaev6/memchr.S: New file.
6058         * sysdeps/alpha/alphaev6/memcpy.S: New file.
6059         * sysdeps/alpha/alphaev6/memset.S: New file.
6060         * sysdeps/alpha/alphaev6/stxcpy.S: New file.
6061         * sysdeps/alpha/alphaev6/stxncpy.S: New file.
6062         * sysdeps/alpha/alphaev67/strcat.S: New file.
6063         * sysdeps/alpha/alphaev67/strchr.S: New file.
6064         * sysdeps/alpha/alphaev67/strlen.S: New file.
6065         * sysdeps/alpha/alphaev67/strncat.S: New file.
6066         * sysdeps/alpha/htonl.S: Use a shorter sequence.
6068 2000-12-08  Jakub Jelinek  <jakub@redhat.com>
6070         * inet/getnameinfo.c (getnameinfo): Fix NI_NOFQDN support.
6071         Reported by <pspencer@fields.utoronto.ca>.
6073 2000-12-07  Jes Sorensen  <jes@linuxcare.com>
6075         * sysdeps/ia64/elf/start.S (__data_start): Add __data_start variable.
6076         Pointed out by Hans Boehm.
6078 2000-12-07  H.J. Lu  <hjl@gnu.org>
6080         * elf/dl-version.c (match_symbol): Check map->l_name[0] for printing.
6082 2000-12-07  Andreas Jaeger  <aj@suse.de>
6084         * misc/error.c: Add format attributes for __error and __error_at_line.
6086         * nscd/dbg_log.h: Add format attribute.
6088 2000-12-08  Ulrich Drepper  <drepper@redhat.com>
6090         * misc/sys/syslog.h: Add format attributes to syslog and vsyslog.
6091         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
6093 2000-12-07  Dan Pop  <Dan.Pop@cern.ch>
6095         * sysdeps/ia64/strcpy.S: Fix a bug in a recovery code sequence.
6097 2000-12-06  Ulrich Drepper  <drepper@redhat.com>
6099         * sysdeps/unix/sysv/aix/Makefile [$(subdir)==misc]
6100         (sysdep_routines): Add uitrunc.
6101         * sysdeps/unix/sysv/aix/uitrunc.c: New file.
6102         Patches by Michael Keezer <mkeezer@redhat.com>.
6104 2000-12-06  Roland McGrath  <roland@frob.com>
6106         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't clobber ARG as we copy in
6107         argument data, since it will be used to copy out too (for INOUT).
6108         Reported by Marcus Brinkmann <marcus@gnu.org>.
6110         * sysdeps/mach/hurd/ioctl.c: Include <stdint.h>.
6111         (__ioctl): Use uintptr_t instead of unsigned long int.
6113 2000-12-06  Jim Wilson  <wilson@redhat.com>
6115         * stdlib/l64a.c (l64a): Truncate M to 32-bit value.
6117 2000-12-06  Ulrich Drepper  <drepper@redhat.com>
6119         * stdio-common/printf_fp.c (__printf_fp): Handle decimal point in
6120         x.5 rounding correctly.
6122 2000-12-06  Mark Kettenis  <kettenis@gnu.org>
6124         * stdio-common/perror.c (perror): Conditionalize code dealing with
6125         wide-oriented streams on USE_IN_LIBIO.
6127 2000-12-06  Mark Kettenis  <kettenis@gnu.org>
6129         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup): Mark
6130         as internal_function.
6132 2000-12-05  Ulrich Drepper  <drepper@redhat.com>
6134         * sysdeps/alpha/elf/start.S (__data_start): Define.
6136 2000-12-05  H.J. Lu  <hjl@gnu.org>
6138         * nss/getXXent_r.c (setup): Change the return type to int.
6140 2000-12-05  Ulrich Drepper  <drepper@redhat.com>
6142         * sysdeps/unix/sysv/aix/Makefile [$(subdir)==misc]
6143         (sysdep_routines): Add restf and savef.
6144         * sysdeps/unix/sysv/aix/restf.c: New file.
6145         * sysdeps/unix/sysv/aix/savef.c: New file.
6146         Patches by Michael Keezer <mkeezer@redhat.com>.
6148         * sysdeps/unix/opendir.c (__opendir): Don't use o_directory_works
6149         if O_DIRECTORY is not defined.
6150         Patch by Michael Keezer <mkeezer@redhat.com>.
6152         * include/libc-symbols.h (C_SYMBOL_DOT_NAME): Define.
6153         Patch by Michael Keezer <mkeezer@redhat.com>.
6155         * locale/programs/linereader.c (get_toplvl_escape): Recognize more
6156         than 4 bytes in escape sequence.
6157         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
6159 2000-12-05  Andreas Jaeger  <aj@suse.de>
6161         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
6162         set mips2.
6164         * sysdeps/unix/sysv/linux/mips/sysdep.h: New file.
6166         * sysdeps/unix/sysv/linux/mips/sys/syscall.h: Removed.
6168         * sysdeps/unix/mips/sysdep.h: Use SYS_ify.
6169         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
6171         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Mark as
6172         internal_function.
6173         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
6174         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start_cleanup): Likewise.
6176         * sysdeps/generic/dl-cache.c: Remove declaration of
6177         _dl_sysdep_read_whole_file.
6179         * elf/dl-load.c (_dl_map_object): Remove declaration of
6180         _dl_load_cache_lookup.
6182         * sysdeps/generic/ldsodefs.h: Add declarations of
6183         _dl_load_cache_lookup, _dl_unload_cache,
6184         _dl_sysdep_read_whole_file, _dl_sysdep_start and
6185         _dl_sysdep_start_cleanup.
6187         * elf/rtld.c: Remove prototypes that are defined in ldsodefs.h
6188         now.
6190         * elf/dl-misc.c: Include <ldsodefs.h> to get prototypes.
6191         * sysdeps/generic/dl-environ.c: Likewise.
6193         * stdio-common/printf_fp.c: Include <gmp.h> instead of
6194         <stdlib/gmp.h>.
6195         * math/atest-exp.c: Likewise.
6196         * math/atest-exp2.c: Likewise.
6197         * math/atest-sincos.c: Likewise.
6198         * stdio-common/_itoa.c: Likewise.
6199         * stdio-common/_itowa.c: Likewise.
6201         * include/gmp.h: New file with internal prototypes.
6203         * sysdeps/generic/longjmp.c: Move _longjmp_unwind declaration from
6204         here to...
6205         * include/setjmp.h: ...here.
6207         * locale/Makefile (routines): Remove codeset_name since it's not
6208         needed anywhere.
6210         * locale/codeset_name.c: Removed.
6212 2000-12-05  Ulrich Drepper  <drepper@redhat.com>
6214         * sysdeps/unix/sysv/aix/sys/param.h: Define MAXHOSTNAMELEN here.
6216 2000-12-05  Andreas Jaeger  <aj@suse.de>
6218         * sysdeps/unix/sysv/linux/sys/param.h: Revert last patch.
6220 2000-12-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6222         * sysdeps/unix/sysv/linux/s390/mmap64.S: Use mmap if mmap2 isn't
6223         available.
6225 2000-12-05  Andreas Jaeger  <aj@suse.de>
6227         * nss/test-netdb.c: Mark local functions as static to avoid
6228         warnings.
6229         (main): Use return to silence warning.
6231         * stdlib/test-canon.c (check_path): Mark as static to avoid warning.
6233         * stdio-common/test-popen.c: Mark local functions as static to
6234         avoid warnings.
6235         (main): Use return to silence warning.
6237         * stdlib/testsort.c (compare): Mark as static to avoid warning.
6239         * assert/test-assert.c: Mark local functions as static to avoid
6240         warnings.
6241         * assert/test-assert-perr.c: Likewise.
6243         * math/libm-test.inc (main): Use return to silence warnings.
6245 2000-12-04  Ulrich Drepper  <drepper@redhat.com>
6247         * math/fenv.h: Fix typo in comment.
6249         * math/test-misc.c (main): Add a few more over and underflow tests
6250         for scalb.
6252         * sysdeps/i386/fpu/e_scalb.S: Handle NaN as first parameter correctly.
6253         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
6254         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
6255         * math/w_scalb.c: Don't use matherr except in SVID mode.
6256         * math/w_scalbf.c: Likewise.
6257         * math/w_scalbl.c: Likewise.
6258         * math/test-misc.c: Add test for NaN and scalbl.
6259         Reported by Fred J. Tydeman <tydeman@tybor.com>.
6261 2000-12-04  Ulrich Drepper  <drepper@redhat.com>
6263         * configure.in: Define HAVE_ASM_GLOBAL_DOT_NAME for AIX.
6264         * config.h.in: Add HAVE_ASM_GLOBAL_DOT_NAME.
6265         * include/libc-symbols.h (strong_alias): Define special version
6266         for HAVE_ASM_GLOBAL_DOT_NAME.
6267         (weak_alias): Likewise.
6268         * sysdeps/powerpc/bsd-setjmp.S: Use strong_alias not .set.
6269         * sysdeps/unix/sysv/aix/Makefile [$(subdir)==login]
6270         (sysdep_routines): Add setutxent, getutxent, endutxent, getutxid,
6271         getutxline, pututxline, and utmpxname.
6272         * sysdeps/unix/sysv/aix/fchdir.c: Define __fchdir.
6273         * sysdeps/unix/sysv/aix/lseek.c: Define __libc_lseek alias.
6274         * sysdeps/unix/sysv/aix/open.c: Define __libc_open alias.
6275         * sysdeps/unix/sysv/aix/pread.c: Define pread alias.
6276         * sysdeps/unix/sysv/aix/pread64.c: Define pread64 alias.
6277         * sysdeps/unix/sysv/aix/sysdep.h (JUMPTARGET): Use C_TEXT.
6278         * sysdeps/unix/sysv/aix/bits/types.h: Define __clockid_t and __timer_t.
6279         * sysdeps/unix/sysv/aix/bits/utmp.h: Cleanup.  Add comments.
6280         * sysdeps/unix/sysv/linux/sys/param.h (MAXHOSTNAMELEN): Define.
6281         Patches by Michael Keezer <mkeezer@redhat.com>.
6283 2000-12-04  H.J. Lu  <hjl@gnu.org>
6285         * configure.in: Change --with-oldest-abi=ABI to
6286         --enable-oldest-abi=ABI.
6288 2000-12-02  Bruno Haible  <haible@clisp.cons.org>
6290         * stdio-common/perror.c (perror): If stderr is wide-oriented, use
6291         fwprintf instead of fprintf.
6293 2000-12-04  Ulrich Drepper  <drepper@redhat.com>
6295         * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD and
6296         DECIMAL_DIG definitions.
6297         * sysdeps/arm/fpu/bits/mathdef.h: Likewise
6298         * sysdeps/generic/bits/mathdef.h: Likewise
6299         * sysdeps/i386/fpu/bits/mathdef.h: Likewise
6300         * sysdeps/ia64/fpu/bits/mathdef.h: Likewise
6301         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise
6302         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise
6303         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise
6304         * sysdeps/sh/sh4/fpu/bits/mathdef.h: Likewise
6306 2000-12-03  Ulrich Drepper  <drepper@redhat.com>
6308         * math/test-fenv.c (main): Use return instead of exit to avoid warning.
6310         * math/atest-exp.c: Mark local functions as static to avoid warnings.
6311         * math/atest-exp2.c: Likewise.
6312         * math/atest-sincos.c: Likewise.
6314         * sysdeps/i386/fpu/bits/mathdef.h (DECIMAL_DIG): Correct value.
6315         Reported by Fred J. Tydeman <tydeman@tybor.com>.
6317         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Hopefully fix
6318         the handling of denormalized numbers.
6320         * math/test-misc.c (main): Test for fpclassify and pseudo denormal
6321         numbers on x86.
6322         * sysdeps/i386/fpu/fpclassifyl.c: New file.
6324         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Handle the
6325         pseudo denormal representation of LDBL_MIN.
6327         * iconvdata/SJIS.irreversible: Remove unnecessary entries.
6328         * iconvdata/EUC-JP.irreversible: Remove unnecessary entries.
6330         * iconvdata/sjis.c: Enable round-trip mapping of backslash and tilde.
6331         * iconvdata/jis0208.c: Likewise.
6332         * iconvdata/jis0212.c: Likewise.
6333         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
6335         * math/test-misc.c (main): More tests for frexp and some for
6336         fpclassify and isnormal.
6338         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Correct
6339         test for subnormal.
6340         Reported by Fred J. Tydeman <tydeman@tybor.com>.
6342         * math/test-misc.c (main): Add tests for frexp.
6343         Reported by Fred J. Tydeman <tydeman@tybor.com>.
6344         * sysdeps/i386/fpu/s_frexpl.S: Don't overflow during the computation.
6346 2000-12-02  H.J. Lu  <hjl@gnu.org>
6348         * locale/lc-time.c (_nl_init_era_entries): Pass L'\0' instead of
6349         '\0' to wcschr.
6351 2000-12-02  Ulrich Drepper  <drepper@redhat.com>
6353         * sysdeps/i386/fpu/s_frexp.S: Add missing fwait.
6354         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
6355         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
6357         * sysdeps/generic/glob.c: Adjust types of several variables to
6358         avoid warnings.
6360 2000-12-01  Ulrich Drepper  <drepper@redhat.com>
6362         * sysdeps/unix/sysv/linux/shm_open.c: Remove incorrect comment.
6364 2000-11-30  Roland McGrath  <roland@frob.com>
6366         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): New macro.
6367         (_HURD_HANDLE_IOCTLS, _HURD_HANDLE_IOCTL): Redefine using it, so as to
6368         allow multiple instances using the same function name in one file.
6370 2000-12-01  Ulrich Drepper  <drepper@redhat.com>
6372         * configure.in: Correct test for pserver CVS access.
6374 2000-11-28  H.J. Lu  <hjl@gnu.org>
6376         * libio/libio.h: Remove extra "#if ... #endif".
6378 2000-11-29  H.J. Lu  <hjl@gnu.org>
6380         * stdio-common/vfscanf.c (ORIENT): Swap the COMPILE_WSCANF case.
6382 2000-12-01  H.J. Lu  <hjl@gnu.org>
6384         * nss/getXXbyYY_r.c: Fix verioned symbol handling.
6385         * nss/getXXent_r.c: Likewise.
6386         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
6388 2000-11-30  H.J. Lu  <hjl@gnu.org>
6390         * scripts/abi-versions.awk (oldest_abi): New variable.
6391         Handle the oldest ABI supported.
6393         * Makerules ($(common-objpfx)abi-versions.h): Set oldest_abi
6394         for scripts/abi-versions.awk.
6396         * configure.in: Add --with-oldest-abi=ABI.
6397         * configure: Rebuild.
6399         * config.make.in (oldest-abi): New.
6401         * config.h.in (GLIBC_OLDEST_ABI): New.
6403         * csu/version.c (banner): Support GLIBC_OLDEST_ABI.
6405 2000-11-30  Jakub Jelinek  <jakub@redhat.com>
6407         * locale/setlocale.c (setname): Free for all categories, not just
6408         LC_ALL.
6409         (setlocale): Store a copy of string passed by user, not the string
6410         itself.
6412 2000-11-30  Roland McGrath  <roland@frob.com>
6414         * sysdeps/mach/hurd/defs.c (init_stdio): Put this on __libc_subinit
6415         rather than _hurd_fd_subinit, so it happens after it's safe to use
6416         libc facilities like malloc.
6418 2000-11-28  Andreas Jaeger  <aj@suse.de>
6420         * sysdeps/unix/sysv/linux/getdents.c: Add _syscall_getdents64
6421         declaration, adjust declaration of __syscall_getdents to match
6422         kernel.
6424 2000-11-29  H.J. Lu  <hjl@gnu.org>
6426         * sysdeps/generic/readelflib.c (check_ptr): Undefine it first.
6428 2000-11-29  Andreas Jaeger  <aj@suse.de>
6430         * sysdeps/unix/sysv/linux/hppa/brk.c (__brk): Remove unused variable.
6432 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
6434         * dlfcn/defaultmod1.c: Add prototypes to avoid warnings.
6435         * dlfcn/defaultmod2.c: Likewise.
6436         * dlfcn/dlopen.c: Likewise.
6437         * dlfcn/dlopenold.c: Likewise.
6438         * dlfcn/failtestmod.c: Likewise.
6439         * dlfcn/glreflib1.c: Likewise.
6440         * dlfcn/glreflib2.c: Likewise.
6441         * dlfcn/eval.c: Likewise.  Add attributes.
6443         * ctype/ctype-extn.c: Define isblank and not __isblank.
6445         * time/strftime.c: Add const where necessary to avoid warnings.
6446         * time/strptime.c (strptime_internal): Add casts to avoid warnings.
6448 2000-11-22  Paul Eggert  <eggert@twinsun.com>
6450         * time/strftime.c (my_strftime): Do not invoke mbrlen with a
6451         size of (size_t) -1; it's not portable.
6453 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
6455         * sysdeps/i386/fpu/libm-test-ulps: Adjust some values for the
6456         crappy i486 FPU.
6457         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
6459 2000-11-14  Jes Sorensen  <jes@linuxcare.com>
6461         * sysdeps/ia64/_mcount.S: Call __mcount instead of __mcount_internal.
6463         * sysdeps/ia64/Makefile: Compile _mcount.S in subdir gmon as
6464         _mcount is required by profiled binaries.
6466         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: Moved to...
6467         * sysdeps/ia64/machine-gmon.h: ...here.
6469 2000-11-28  Masahide Washizawa  <washi@jp.ibm.com>
6471         * iconvdata/Makefile (modules): Add IBM922, IBM1124, and IBM1129.
6472         (distribute): Add ibm922.c, ibm1124.c, ibm1129.c, ibm922.h, ibm1124.h,
6473         and ibm1129.h.
6474         * iconvdata/gconv-modules: Add entries for IBM922, IBM1124, and
6475         IBM1129.
6476         * iconvdata/ibm922.c: New file.
6477         * iconvdata/ibm922.h: New file.
6478         * iconvdata/ibm1124.c: New file.
6479         * iconvdata/ibm1124.h: New file.
6480         * iconvdata/ibm1129.c: New file.
6481         * iconvdata/ibm1129.h: New file.
6482         * iconvdata/testdata/IBM922: New file.
6483         * iconvdata/testdata/IBM922..UTF8: New file.
6484         * iconvdata/testdata/IBM1124: New file.
6485         * iconvdata/testdata/IBM1124..UTF8: New file.
6486         * iconvdata/testdata/IBM1129: New file.
6487         * iconvdata/testdata/IBM1129..UTF8: New file.
6489 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
6491         * catgets/gencat.c (normalize_line): Take extra parameter with escape
6492         character.  Change callers.
6493         (open_conversion): Determine mapping of 0x5c as wchar_t value.
6494         * catgets/Makefile: Add rules to build and run test-gencat.
6495         * catgets/sample.SJIS: New file.
6496         * catgets/test-gencat.c: New file.
6497         * catgets/test-gencat.sh: New file.
6498         Report and test case by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
6500 2000-11-28  Andreas Jaeger  <aj@suse.de>
6502         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Synch with generic
6503         Linux version.
6505 2000-11-28  Ulrich Drepper  <drepper@redhat.com>
6507         * sysdeps/unix/sysv/linux/bits/socket.h: Fix last patch.
6509 2000-11-28  Andreas Jaeger  <aj@suse.de>
6511         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Use
6512         __flexarr.
6513         * sysdeps/unix/sysv/linux/mips/bits/socket.h (struct cmsghdr):
6514         Likewise.
6516 2000-11-27  Ulrich Drepper  <drepper@redhat.com>
6518         * misc/getusershell.c: Make strings in okshells array const.
6519         * misc/regexp.c: Add const to cast to avoid warnings.
6520         * sysdeps/unix/sysv/linux/llseek.c: Add prototype for __llseek.
6521         * sysdeps/unix/sysv/linux/i386/setresuid.c: Add prototype for
6522         __setresuid.
6523         * sysdeps/unix/sysv/linux/i386/setresgid.c: Add prototype for
6524         setresgid.
6525         * misc/error.c: Add prototypes for __error and __error_at_line.
6526         * misc/mntent_r.c (__getmntent_r): Add break at end of switch
6527         statement to avoid warning.
6528         * test-skeleton.c: Mark timeout_handler with noreturn.
6529         * iconv/skeleton.c (get16u): Add const to cast.
6530         (get32u): Likewise.
6531         * iconvdata/gb18030.c: Likewise.
6532         * iconvdata/iso-2022-cn-ext.c: Likewise.
6533         * iconvdata/ansi_x3.110.c: Add cast to avoid warning.
6534         * iconvdata/big5.c: Likewise.
6535         * iconvdata/big5hkscs.c: Likewise.
6536         * iconvdata/iso_6937.c: Likewise.
6537         * iconvdata/iso_6937-2.c: Likewise.
6538         * iconvdata/t.61.c: Likewise.
6539         * iconvdata/iso646.c: Add prototypes for gconv_init and gconv_env.
6540         * iconvdata/unicode.c: Likewise.
6541         * iconvdata/utf-16.c: Likewise.
6542         * iconvdata/cns11643.h (ucs4_to_cns11643): Define needed as size_t.
6543         * iconv/gconv_trans.c (__gconv_translit_find): Avoid one warning
6544         with little code shuffling.
6546         * sysdeps/powerpc/Makefile (CFLAGS-initfini.s): Add -O1 to avoid
6547         the problems introduced when the user selects -O3.
6549         * iconv/gconv.h (__gconv_info): Define __data element using __flexarr.
6550         * misc/sys/cdefs.h: Define __flexarr.
6551         Proposed by Joseph S. Myers <jsm28@cam.ac.uk>.
6553         * iconvdata/iso-2022-jp.c: Add prototypes to avoid warnings.
6554         * iconv/skeleton.c: Likewise.
6555         * iconvdata/iso8859-1.c (BODY to 8859-1): Add const to cast.
6556         * iconv/loop.c (get16): Add const to cast.
6557         (get32): Likewise.
6559 2000-11-27  Andreas Jaeger  <aj@suse.de>
6561         * login/programs/pt_chown.c (do_pt_chown): Mark function as static
6562         to avoid warning.
6563         * login/programs/utmpdump.c (print_entry): Likewise.
6565 2000-11-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
6567         * sysdeps/mips/__longjmp.c (__longjmp): Restore SP and FP last and
6568         in a single asm as they may be used to access other stored
6569         registers.
6570         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
6572 2000-11-27  Andreas Jaeger  <aj@suse.de>
6574         * rt/tst-aio.c: Mark test functions as static to avoid warnings.
6575         * rt/tst-aio64.c: Likewise.
6577 2000-11-27  Ulrich Drepper  <drepper@redhat.com>
6579         * catgets/Makefile (test1.cat): Set LC_ALL, LOCPATH, and GCONV_PATH
6580         for gencat run.
6581         (libc.cat): Likewise.
6582         * catgets/gencat.c: Implement handling of message catalogs encoded
6583         with stateful character sets.
6584         Based on a patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
6586 2000-11-26  Ulrich Drepper  <drepper@redhat.com>
6588         * sysdeps/unix/opendir.c (__opendir): Add cast to avoid warning.
6590         * inet/getnameinfo.c: Adjust casts to avoid warnings.
6591         * inet/rcmd.c: Likewise.
6592         * inet/ruserpass.c: Likewise.
6593         * inet/netinet/in.h (IN6_IS_ADDR_UNSPECIFIED, IN6_IS_ADDR_LOOPBACK,
6594         IN6_IS_ADDR_MULTICAST, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
6595         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, IN6_ARE_ADDR_EQUAL,
6596         IN6_IS_ADDR_MC_NODELOCAL, IN6_IS_ADDR_MC_LINKLOCAL,
6597         IN6_IS_ADDR_MC_SITELOCAL, IN6_IS_ADDR_MC_ORGLOCAL,
6598         IN6_IS_ADDR_MC_GLOBAL): Preserve const in cast.
6599         * include/aliases.h: Add prototypes for internal __getalias* functions.
6600         * include/netdb.h: Add prototypes for __old_gethostent_r,
6601         __old_gethostbyaddr_r, __old_gethostbyname_r, __old_gethostbyname2_r,
6602         __old_getnetent_r, __old_getnetbyaddr_r, __old_getnetbyname_r,
6603         __old_getservent_r, __old_getservbyname_r, __old_getservbyport_r,
6604         __old_getprotoent_r, __old_getprotobyname_r, __old_getprotobynumber_r.
6605         * include/rpc/netdb.h: Add prototypes for __old_getrpcbyname_r,
6606         __old_getrpcbynumber_r, __old_getrpcent_r.
6608         * include/rpc/netdb.h: Add __getrpcbyname_r, __getrpcbynumber_r,
6609         __getrpcent_r prototypes.
6611 2000-11-25  Ulrich Drepper  <drepper@redhat.com>
6613         * string/strcoll.c: Add casts to avoid warnings.
6614         * string/strnlen.c: Likewise.
6615         * string/strxfrm.c: Likewise.
6616         * sysdeps/generic/_strerror.c: Likewise.
6617         * sysdeps/generic/memrchr.c: Likewise.
6618         * sysdeps/generic/strcasestr.c: Likewise.
6619         * sysdeps/generic/strstr.c: Likewise.
6621         * locale/weight.h (findidx): Add const to cast to avoid warning.
6623         * elf/loadfail.c: Little cosmetic changes to avoid warnings.
6624         * elf/loadtest.c: Likewise.
6625         * elf/multiload.c: Likewise.
6626         * elf/next.c: Likewise.
6627         * elf/nodelete.c: Likewise.
6628         * elf/noload.c: Likewise.
6629         * elf/order.c: Likewise.
6630         * elf/origtest.c: Likewise.
6631         * elf/preloadtest.c: Likewise.
6632         * elf/restest1.c: Likewise.
6634         * sysdeps/i386/i486/bits/string.h (__strncat_g) [i686]: Fourth
6635         parameter of asm must be in %ecx.
6637         * string/tester.c: Mark test functions as static to avoid warnings.
6639         * iconv/gconv_conf.c (read_conf_file): Make mod_counter static to
6640         preserve value over different gconv-modules files.
6642 2000-11-24  Ulrich Drepper  <drepper@redhat.com>
6644         * locale/findlocale.c: Add casts to avoid warnings.
6645         * locale/localeinfo.h (LIMAGIC): Add cast to avoid warnings.
6646         * misc/efgcvt_r.c (fcvt_r): Use ssize_t instead of int and add cast
6647         to avoid warnings.
6648         * misc/tsearch.c (const_node): New type.
6649         (trecurse): Correct casts to avoid warnings.
6650         (__twalk): Likewise.
6651         * stdlib/tst-limits.c: Add z modifier to formats for WORD_BIT and
6652         LONG_BIT.
6654         * debug/backtrace-tst.c (compare): Add casts to avoid warnings.
6656         * test-skeleton.c: Mark local functions as static to avoid warnings.
6658 2000-11-23  H.J. Lu  <hjl@gnu.org>
6660         * rt/tst-aio6.c (do_test): Use pipe instead of STDIN_FILENO to
6661         support the background job.
6662         Fix a typo.
6664 2000-11-24  Ulrich Drepper  <drepper@redhat.com>
6666         * iconv/gconv_conf.c (insert_module): Replace old entry if new one
6667         has same names but lower cost.
6669 2000-11-23  Jakub Jelinek  <jakub@redhat.com>
6671         * sysdeps/sparc/sparc32/dl-machine.h: Ifdef out handling for relocs
6672         which never occur during bootstrap.
6673         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6675 2000-11-23  Andreas Jaeger  <aj@suse.de>
6677         * nss/nss_files/files-hosts.c: Remove getipnodebyname.
6679         * nss/Versions: Remove _nss_files_getipnodebyname_r.
6681         * sysdeps/unix/sysv/linux/Versions: Fix typo in last patch.
6683 2000-11-18  Martin Buchholz  <martin@xemacs.org>
6685         * csu/gmon-start.c (__gmon_start__): Avoid over-clever trick `if
6686         (called++) return;'
6688 2000-11-21  Alan Modra  <alan@linuxcare.com.au>
6690         * sysdeps/generic/bsd-_setjmp.c (setjmp): Rename to _setjmp.
6692         * csu/abi-note.S: Correct comment for operating system number.
6694 2000-11-22  Ulrich Drepper  <drepper@redhat.com>
6696         * Versions.def: Add GLIBC_2.2.1 for glibc.
6698 2000-11-22  Andreas Schwab  <schwab@suse.de>
6700         * sysdeps/unix/sysv/linux/syscalls.list: Add pivot_root.
6701         * sysdeps/unix/sysv/linux/Versions: Add pivot_root at GLIBC_2.2.1.
6703 2000-11-22  Ulrich Drepper  <drepper@redhat.com>
6705         * rt/aio_suspend.c (aio_suspend): Convert timeout value to
6706         absolute time for pthread_cond_timedwait call.
6707         Reported by Lawrence Chen <lchen@opentext.com> [libc/1930].
6709         * rt/Makefile (tests): Add tst-aio6.
6710         * rt/tst-aio6.c: New file.
6712 2000-11-23  Andreas Jaeger  <aj@suse.de>
6714         * sysdeps/s390/bits/string.h (strncat): Fix one more typo.
6716 2000-11-22  Andreas Jaeger  <aj@suse.de>
6718         * sysdeps/s390/bits/string.h (strncat): Add missing quotation marks.
6720 2000-11-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6722         * sysdeps/s390/bits/string.h: Make strncat always add a \0.
6724 2000-11-21  Andreas Schwab  <schwab@suse.de>
6726         * sysdeps/alpha/setjmp.S: Remove __setjmp entry point.
6727         * sysdeps/arm/setjmp.S: Likewise.
6728         * sysdeps/arm/fpu/setjmp.S: Likewise.
6729         * sysdeps/i386/setjmp.S: Likewise.
6730         * sysdeps/i386/elf/setjmp.S: Likewise.
6731         * sysdeps/s390/setjmp.S: Likewise.
6732         * sysdeps/s390/elf/setjmp.S: Likewise.
6733         * sysdeps/sh/sh3/setjmp.S: Likewise.
6734         * sysdeps/sh/sh4/setjmp.S: Likewise.
6735         * sysdeps/sparc/sparc32/setjmp.S: Likewise.
6736         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
6737         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
6738         * sysdeps/unix/sysv/linux/m68k/setjmp.c: Removed.
6740 2000-11-21  Andreas Jaeger  <aj@suse.de>
6742         * sysdeps/generic/__longjmp.c (__longjmp): Remove obsolete
6743         NORETURN, fix parameter list.
6745         * string/bug-strncat1.c (main): Fix typo.
6746         Patch by Bernhard Kaindl <bernhard.kaindl@suse.de>.
6748 2000-11-20  Ulrich Drepper  <drepper@redhat.com>
6750         * configure.in: Add --enable-all-warnings.
6751         * config.make.in (all-warnings): New variable.
6752         * Makeconfig (+gccwarn): Define with many more warnings if
6753         all-warnings is yes.
6755 2000-11-20  Jakub Jelinek  <jakub@redhat.com>
6757         * iconvdata/bug-iconv2.c (main): Use %zd in format string.
6758         * io/test-lfs.c (do_test): Cast statbuf.st_size to long long.
6759         * malloc/tst-valloc.c (main): Cast valloc return value to long.
6760         * malloc/tst-obstack.c (verbose_malloc): Use %zd in format string.
6761         * math/test-fpucw.c (main): Use %lx in format string, cast
6762         control words to long.
6763         * stdio-common/tst-fmemopen.c (main): Use %td in format strings.
6764         * stdlib/tst-strtol.c (tests): Avoid (bogus?) decimal constant is so
6765         large that it is unsigned warning.
6767         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ssize_t): Changing
6768         it to long on sparc64.
6770 2000-11-20  Andreas Jaeger  <aj@suse.de>
6772         * nscd/nscd.h (termination_handler): Add noreturn attribute.
6773         (receiv_print_stats): Likewise.
6775         * elf/ldconfig.c (path_hwcap): Cast -1 for proper comparison.
6777 2000-11-20  Ulrich Drepper  <drepper@redhat.com>
6779         * malloc/thread-m.h: gcc doesn't tolerate zero-sized types anymore.
6781         * csu/gmon-start.c: Always have prototype for __gmon_start.
6782         * csu/version.c: Add prototypes for __libc_print_version and
6783         __libc_main.
6784         * iconv/gconv.c: Include gconv_int.h and gconv.h.
6785         * iconv/gconv.h (struct __gconv_step): Remove const from __from_name
6786         and __to_name.
6787         * iconv/gconv_builtin.h: Add ASCII module definitions.
6788         * iconv/gconv_conf.c (__gconv_path_elem): Remove const.
6789         (add_module): Add cast to avoid warning.  Rework construction of
6790         strings for new module.
6791         * iconv/gconv_db.c (__gconv_alias_compare): Make s1 and s2 const.
6792         (derivation_compare): Likewise.
6793         * iconv/gconv_dl.c (do_release_shlib): Remove const from nodep.
6794         (__gconv_release_shlib): Cast do_release_shlib as parameter for twalk.
6795         * iconv/gconv_int.h (__gconv_path_elem): Remove const.
6796         (struct gconv_alias): Remove const from fromname and toname.
6797         * iconv/gconv_simple.c: Include gconv_builtin.h to get prototypes
6798         for loop functions.
6799         (internal_ucs4_loop): Use correct const-ness.
6800         (ucs4_internal_loop): Likewise.
6801         (internal_ucs4le_loop): Likewise.
6802         (ucs4le_internal_loop_single): Likewise.
6803         * iconv/gconv_trans.c (__gconv_transliterate): Make from_idx, from_tbl,
6804         to_idx, to_tbl, winbuf, winbufend const.  Change casts in
6805         assignments appropriately.
6806         (struct known_trans): Remove const from fname.
6807         (trans_compare): Make s1 and s2 const.
6808         * iconv/loop.c (LOOPFC): Make outend parameter const.  Add cast to
6809         avoid warning.
6810         * iconv/skeleton.c: Remove cast in calls of loop functions.
6811         * iconvdata/gconv-modules: Remove US-ASCII definitions.
6812         * iconvdata/iso646.c: Remove US_ASCII support.
6813         * include/set-hooks.h (DEFINE_HOOK): Also generate prototype.
6814         * include/unistd.h: Add __libc_check_standard_fds prototype.
6815         * string/bits/string2.h (__mempcpy_args): Add const to casts.
6816         * sysdeps/generic/initfini.c: Add prototypes for dummy, _init, and
6817         _fini.
6818         * sysdeps/generic/libc-start.c: Add prototype for __libc_start_main.
6819         * sysdeps/i386/i486/bits/string.h (strcmp): Add const to casts.
6820         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Add cast to avoid
6821         warning.
6822         * sysdeps/unix/sysv/linux/init-first.c: Add prototypes for
6823         __libc_init_first and _dl_start.
6824         * intl/dcigettext.c (transcmp): Make s1 and s2 const.
6825         (DCIGETTEXT): Make domaindata variable const.
6826         * intl/loadmsgcat.c (_nl_load_domain): Rearrange domain initialization
6827         to avoid warning.
6829 2000-11-20  Hiroyuki Machida  <machida@sm.sony.co.jp>
6831         * sysdeps/unix/sysv/linux/mips/clone.S: Fix comments.
6833         * sysdeps/unix/sysv/linux/mips/kernel_stat.h (kernel_stat): Expand
6834         time_t to 'long int' not, 'unsigned int'.  Use 'long int' for
6835         __unused? members.
6837         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_NOFOLLOW): Use same
6838         value defined in /usr/include/asm-mips/fcntl.h.
6840 2000-11-18  Ulrich Drepper  <drepper@redhat.com>
6842         * stdio-common/Makefile (tests): Add test-vfprintf.
6843         (test-vfprintf-ENV): New variable.
6844         * stdio-common/test-vfprintf.c: New file.
6846         * wcsmbs/mbrtowc.c (__mbrtowc): Do not only flush if input is '\0'.
6848         * wcsmbs/Makefile (tests): Add tst-mbrtowc and tst-wcrtomb.
6849         (tst-mbrtowc-ENV): New variable.
6850         (tst-wcrtomb-ENV): New variable.
6851         * wcsmbs/tst-mbrtowc.c: New file.
6852         * wcsmbs/tst-wcrtomb.c: New file.
6854 2000-11-16  Andreas Jaeger  <aj@suse.de>
6856         * manual/install.texi (Tools for Compilation): Update
6857         documentation for GCC 2.95.2.
6859 2000-11-18  Ulrich Drepper  <drepper@redhat.com>
6861         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only return -EAI_AGAIN
6862         if IPv4 and IPv6 requests timed out.
6864 2000-11-18  Akim Demaille  <akim@epita.fr>
6866         * malloc/obstack.h: Formatting changes.
6867         (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
6868         prevents type checking.
6869         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
6870         cast the value to (void *): assigning a `foo *' to a `void *'
6871         variable is valid.
6872         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
6874 2000-11-17  Ulrich Drepper  <drepper@redhat.com>
6876         * scripts/config.guess: Update from upstream maintainer.
6877         * scripts/config.sub: Likewise.
6879 2000-11-16  Ulrich Drepper  <drepper@redhat.com>
6881         * libio/freopen.c (freopen): Reset _mode after succesful reopening.
6882         * libio/freopen64.c (freopen64): Likewise.
6883         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
6885         * libio/Makefile: Add rules to build and run test-freopen.
6886         * libio/test-freopen.c: New file.
6887         * libio/test-freopen.sh: New file.
6889 2000-11-15  H.J. Lu  <hjl@gnu.org>
6891         * sysdeps/generic/ldsodefs.h (DL_DT_INIT_ADDRESS): Defined if
6892         ELF_FUNCTION_PTR_IS_SPECIAL is not defined.
6893         (DL_DT_FINI_ADDRESS): Likewise.
6895         * sysdeps/ia64/dl-lookupcfg.h (_dl_lookup_address): Set the
6896         return type to ElfW(Addr).
6897         (_dl_function_address): New prototype.
6898         (DL_FUNCTION_ADDRESS): Defined.
6899         (DL_DT_INIT_ADDRESS): Defined as DL_FUNCTION_ADDRESS.
6900         (DL_DT_FINI_ADDRESS): Likewise.
6902         * sysdeps/ia64/Versions (GLIBC_2.2): Add _dl_function_address.
6904         * sysdeps/ia64/dl-machine.h (_dl_start_address): Removed.
6905         (ELF_MACHINE_START_ADDRESS): Changed to DL_FUNCTION_ADDRESS.
6907         * sysdeps/ia64/dl-symaddr.c (_dl_start_address): Renamed to ...
6908         (_dl_function_address): This.
6910         * elf/dl-fini.c (_dl_fini): Use DL_DT_FINI_ADDRESS to get the
6911         function pointer for DT_FINI.
6912         * elf/dl-close.c (_dl_close): Likewise.
6914         * elf/dl-init.c (_dl_init): Use DL_DT_INIT_ADDRESS to get the
6915         function pointer for DT_INIT.
6917 2000-11-16  Jakub Jelinek  <jakub@redhat.com>
6919         * sysdeps/generic/printf_fphex.c (__printf_fphex): Compute correctly
6920         end of wexpbuf buffer.
6922 2000-11-16  Andreas Jaeger  <aj@suse.de>
6924         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove duplicate
6925         definition of F_GETLK, F_SETLK, F_SETLKW.
6927 2000-11-16  Andreas Jaeger  <aj@suse.de>
6929         * sysdeps/generic/dl-cache.c (_DL_PLATFORMS_COUNT): Define to 0 if
6930         it's not defined.
6932 2000-11-15  Jakub Jelinek  <jakub@redhat.com>
6934         * dlfcn/default.c (main): Add test for dladdr of main returning
6935         argv[0] in dli_fname field.
6937 2000-11-15  Jakub Jelinek  <jakub@redhat.com>
6939         * Makeconfig (run-program-prefix): Move test-static test into the
6940         variable.
6942         * sysdeps/alpha/dl-machine.h (RTLD_START): Update _dl_argv.
6943         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise,
6944         schedule instructions.
6945         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise,
6946         schedule instructions, fix a bug in copying auxiliary data.
6948 2000-11-15  Ulrich Drepper  <drepper@redhat.com>
6950         * manual/startup.texi (Program Arguments): Fix type of main's envp
6951         parameter.
6952         Reported by Raúl Núñez de Arenas Coronado <dervishd@linuxfreak.com>.
6954         * iconvdata/gconv-modules: Add CP950 alias.
6956 2000-11-13  Jakub Jelinek  <jakub@redhat.com>
6958         * sysdeps/unix/sysv/linux/Makefile: Allow ports to override
6959         syscall-list.h goal.
6960         * sysdeps/unix/sysv/linux/sparc/Makefile: New file.
6962 2000-11-15  Ulrich Drepper  <drepper@redhat.com>
6964         * intl/Makefile: tst-gettext2.sh does not need a third parameter.
6966         * intl/tst-gettext2.sh: Copy locale data.  Adjust LOCPATH.  Verify
6967         output of program.
6969         * intl/tst-gettext2.c: Set C locale if setting other locale
6970         failed.  Use gettext() not _().
6972         * locale/setlocale.c: Increment _nl_msg_cat_cntr whenever we
6973         successfully loaded a new locale.
6975 2000-11-13  Andreas Jaeger  <aj@suse.de>
6977         * configure.in: Require gcc 2.95 or newer.
6979 2000-11-15  Ulrich Drepper  <drepper@redhat.com>
6981         * sysdeps/unix/sysv/linux/paths.h: Adjust for FHS.
6982         Patch by Arkadiusz Miskiewicz <misiek@pld.ORG.PL>.
6984 2000-11-11  Jim Meyering  <meyering@lucent.com>
6986         * string/strndup.c (strndup): Cast return value to `char *'.
6988 2000-11-15  Jim Meyering  <meyering@ascend.com>
6990         * sysdeps/generic/memchr.c: Remove some useless parentheses.
6991         [HAVE_STDLIB_H || defined _LIBC]: Include <stdlib.h>.
6992         [HAVE_BP_SYM_H || defined _LIBC]: Guard inclusion of bp-sym.h.
6993         [! (HAVE_BP_SYM_H || defined _LIBC)] (BP_SYM): Define as no-op.
6994         Also #undef __memchr.
6995         Use `weak_alias' only if it's defined.
6997 2000-11-10  H.J. Lu  <hjl@gnu.org>
6999         * Makefile.in (install): Set LANGUAGE=C LC_ALL=C.
7001 2000-11-15  Andreas Jaeger  <aj@suse.de>
7003         * elf/chroot_canon.c: Include <stdint.h>.
7005         * elf/cache.c (struct cache_entry): Use uint64_t for hwcap.
7006         (print_entry): Likewise.
7007         (add_to_cache): Likewise.
7009         * elf/ldconfig.h (add_to_cache): Change prototype for hwcap change.
7011         * elf/ldconfig.c (struct lib_entry): Use uint64_t for hwcap.
7012         (path_hwcap): Likewise.
7013         (search_dir): Likewise.
7015         * sysdeps/generic/dl-cache.c (HWCAP_CHECK): Handle platform.
7017         * elf/cache.c (add_to_cache): Handle 64 bit hwcap entry.
7019         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
7020         (_dl_platform_string): New.
7021         (_DL_HWCAP_PLATFORM): New.
7022         (_dl_string_platform): New.
7023         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
7025         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7026         (_dl_string_platform): New.
7027         (_DL_HWCAP_PLATFORM): New.
7028         (_dl_platform_string): New.
7030         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Added x86 platform
7031         recognition.
7032         (_DL_HWCAP_COUNT): New.
7033         (_dl_string_platform): New.
7034         (_DL_HWCAP_PLATFORM): New.
7035         (_dl_platform_string): New.
7037 2000-11-14  Ulrich Drepper  <drepper@redhat.com>
7039         * iconvdata/gconv-modules: Add CP936 as alias for GBK.
7041 2000-11-14  Andreas Jaeger  <aj@suse.de>
7043         * sysdeps/generic/dl-cache.c (HWCAP_CHECK): Fix access to _dl_hwcap.
7045 2000-11-13  Roland McGrath  <roland@frob.com>
7047         * hurd/get-host.c (_hurd_get_host_config): Fix last change.
7049 2000-11-13  Marcus Brinkmann <marcus@gnu.org>
7051         * hurd/get-host.c (_hurd_get_host_config): Fix possible buffer
7052         underrun and make sure the result is null terminated even if there
7053         is no trailing newline.
7055 2000-11-13  Jakub Jelinek  <jakub@redhat.com>
7057         * sysdeps/alpha/fpu/libm-test-ulps: Update.
7059 2000-11-10  H.J. Lu  <hjl@gnu.org>
7061         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
7063 2000-11-10  Andreas Jaeger  <aj@suse.de>
7065         * elf/ldconfig.c (create_links): Fix alloca calculation.
7066         Patch by Ben Collins <bcollins@debian.org>.
7068 2000-11-09  Ulrich Drepper  <drepper@redhat.com>
7070         * inet/getnameinfo.c (getnameinfo): Use correct destination
7071         parameter for if_indextoname.
7072         Patch by Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>.
7074 2000-11-09  H.J. Lu  <hjl@gnu.org>
7076         * sunrpc/Versions (GLIBC_2.1): Remove xdr_cryptkeyarg,
7077         xdr_cryptkeyarg2, xdr_cryptkeyres, xdr_des_block,
7078         xdr_key_netstarg, xdr_key_netstres, xdr_keybuf and
7079         xdr_keystatus.
7081         * time/Versions (GLIBC_2.1): Move getitimer to...
7082         * sysdeps/unix/sysv/linux/alpha/Versions (GLIBC_2.1): ...here.
7084 2000-11-03  Bruno Haible  <haible@clisp.cons.org>
7086         * manual/install.texi: Recommend to set LANGUAGE=C LC_ALL=C during
7087         "make install", to work around a binary incompatibility between
7088         glibc 2.1 and glibc 2.2 gconv modules.
7090 2000-11-09  Ulrich Drepper  <drepper@redhat.com>
7092         * intl/locale.alias: Add thai.
7093         Patch by Chanop Silpa-Anan <chanop@syseng.anu.edu.au>.
7095 2000-11-07  Akim Demaille  <akim@epita.fr>
7097         * malloc/obstack.c (obstack_grow, obstack_grow0): Rename the second
7098         argument `data' for consistency with the prototypes.
7099         Qualify it `const'.
7100         (obstack_copy, obstack_copy0): Rename the second argument as
7101         `address' for consistency.  Qualify it `const'.
7102         * malloc/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
7103         (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
7104         `const' their input argument (`data' or `address').
7105         Adjust the corresponding macros to include `const' in casts.
7107 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
7109         * sysdeps/posix/getaddrinfo.c: Clean-up: define family to hold
7110         target family.
7112 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
7114         * sysdeps/posix/getaddrinfo.c: Loosen protocol check to ease raw
7115         socket creation.
7117 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
7119         * sysdeps/posix/getaddrinfo.c: Ensure to fill ai_socktype and
7120         ai_protocol by internal table if service was not given.
7122 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
7124         * sysdeps/posix/getaddrinfo.c: Don't raise an error even if
7125         numerical port was specified with protocol without socktype.
7127 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
7129         * sysdeps/posix/getaddrinfo.c: Ensure to check if protocol is ok.
7131 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
7133         * inet/getnameinfo.c: getnameinfo() NI_xxx flag validation.
7135 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
7137         * sysdeps/posix/getaddrinfo.c: Ensure not to fill garbage value in
7138         sin6_scope_id field.
7140 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
7142         * inet/getnameinfo.c: Repair getnameinfo() sin6_socpe_id support.
7144 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
7146         * inet/getnameinfo.c: Repair NI_NOFQDN flag support.
7148 2000-11-06  Hideaki YOSHIFUJI  <yoshfuji@linux-ipv6.org>
7150         * inet/getnameinfo.c: Wake-up sin6_scope_id support in
7151         getnameinfo(): check for whether sin6_socpe_id exist was wrong.
7153 2000-11-09  Martin Schwidefsky  <mschwide@nc.boeblingen.de.ibm.com>
7155         * sysdeps/unix/sysv/linux/s390/mmap.S: Use mmap2 if it is present.
7156         * sysdeps/unix/sysv/linux/s390/mmap64.S: New file.
7158 2000-11-09  H.J. Lu  <hjl@gnu.org>
7160         * io/Versions (GLIBC_2.1.1): Remove lockf64.
7163 See ChangeLog.11 for earlier changes.