Update.
[glibc.git] / ChangeLog
blob9875e70e632339000261329eb4c628955559077e
1 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
3         * manual/signal.texi (Process Signal Mask): Document that
4         pthread_sigmask, not sigprocmask, must be used in MT programs.
5         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
7         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
8         found.
9         * misc/Makefile (tests): Add tst-hsearch.
10         * misc/tst-hsearch.c: New file.
12 2002-01-18  Wolfram Gloger  <wg@malloc.de>
14         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
15         * malloc/malloc.h: Likewise.
16         * malloc/arena.c: New file.
17         * malloc/hooks.c: New file.
18         * malloc/tst-mallocstate.c: New file.
19         * malloc/Makefile: Add new testcase tst-mallocstate.
20         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
22 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
24         * stdlib/msort.c: Remove last patch.  The optimization violates the
25         same rule which qsort.c had problems with.
27 2002-01-27  Paul Eggert  <eggert@twinsun.com>
29         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
30         to a pivot element that lies outside the array to be sorted, as
31         ISO C99 requires that the comparison function be called only with
32         addresses of array elements [PR libc/2880].
34 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
36         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
37         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
39         * timezone/asia: Update from tzdata2002b.
40         * timezone/australasia: Likewise.
41         * timezone/backward: Likewise.
42         * timezone/europe: Likewise.
43         * timezone/leapseconds: Likewise.
44         * timezone/iso3166.tab: Likewise.
45         * timezone/zone.tab: Likewise.
47 2002-01-23  Richard Henderson  <rth@redhat.com>
49         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
51 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
53         * string/strxfrm.c: Allocate one more byte for rulearr and clear
54         this element [PR libc/2855].
56         * string/strcoll.c: Handle zero-length arguments specially
57         [PR libc/2856].
59 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
61         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
62         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
63         short lengths and constant src.
64         (strcpy): Don't optimize for gcc 3.0+.
65         (__stpcpy): For gcc 3.0+, don't use
66         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
67         for short string literal src.
69 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
71         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
72         Set for arm, too.
74 2001-01-22  Paul Eggert  <eggert@twinsun.com>
76         * manual/llio.texi (Linked Channels, Cleaning Streams):
77         Make it clearer that a just-opened input stream might need cleaning.
79 2002-01-21  H.J. Lu  <hjl@gnu.org>
81         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
82         Don't use label at end of compound statement.
84 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
86         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
87         Remove test for negative integer arg; sin_pi does it correctly.
89 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
91         * nscd/Makefile (distribute): Filter out xmalloc.c.
93 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
95         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
96         Set offset if read end wasn't the buffer end.
97         (_IO_file_seekoff_mmap): New function.
98         (_IO_file_xsgetn_mmap): New function.
99         (_IO_file_jumps_mmap): Use the two new functions.
100         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
101         != end buffer.
102         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
103         _IO_file_underflow_mmap.
104         * libio/iofopen.c: Don't position file descriptor at end of file.
105         * libio/tst-widetext.c: Improve error messages.
106         * stdio-common/tst-rndseek.c: Likewise.
108 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
110         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
111         end of enum for !_GNU_SOURCE.
112         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
113         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
114         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
115         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
116         values unless _GNU_SOURCE.
118         * iconvdata/tcvn5712-1.c: Minor cleanups.
120 2002-01-18  Andreas Schwab  <schwab@suse.de>
122         * sysdeps/unix/sysv/linux/configure.in
123         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
125 2002-01-16  Roger Sayle  <roger@eyesopen.com>
127         * stdlib/msort.c (msort_with_tmp): Replace implementation with
128         more efficient "Towers of Hanoi" mergesort.
129         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
130         for generic, sizeof(int) and sizeof(long) variants respectively.
132 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
134         * manual/syslog.texi (openlog): Describe possible problems with
135         first parameter.
136         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
138         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
139         * nscd/connections.c (begin_drop_privileges): New function.
140         (finish_drop_privileges): New function.
141         (nscd_init): Call the new functions which also install all groups
142         for the server user.
143         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
144         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
146 2002-01-17  H.J. Lu  <hjl@gnu.org>
148         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
149         `const' from `got'.
151 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
153         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
154         instructions for pointer operations.
155         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
157 2002-01-17  Andreas Jaeger  <aj@suse.de>
159         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
160         __uint128_t build-in.
162         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
163         PowerPC, sync with 2.2 branch.
165 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
167         * posix/getconf.c: Update copyright year.
168         * nss/getent.c: Likewise.
169         * nscd/nscd_nischeck.c: Likewise.
170         * iconv/iconvconfig.c: Likewise.
171         * iconv/iconv_prog.c: Likewise.
172         * elf/ldconfig.c: Likewise.
173         * catgets/gencat.c: Likewise.
174         * csu/version.c: Likewise.
175         * elf/ldd.bash.in: Likewise.
176         * elf/sprof.c (print_version): Likewise.
177         * locale/programs/locale.c: Likewise.
178         * locale/programs/localedef.c: Likewise.
179         * nscd/nscd.c (print_version): Likewise.
180         * debug/xtrace.sh: Likewise.
181         * malloc/memusage.sh: Likewise.
182         * malloc/mtrace.pl: Likewise.
184 2002-01-16  Andreas Schwab  <schwab@suse.de>
186         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
187         reliably remove "-ia64" from rtld name.
189 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
191         * iconvdata/gb18030.c: Bug fixes and support for more characters.
192         Patch by Yu Shao <yshao@redhat.com>.
194 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
196         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
197         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
198         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
200 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
202         * sysdeps/s390/fpu/libm-test-ulps: Update.
204 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
206         * elf/elf.h: Update x86 relocations.
208 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
210         * locale/programs/charmap.c (new_width): Check whether byte
211         sequences for both ends of range have the same length.
213 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
215         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
217 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
219         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
220         string literals.
221         (__full_ieee754_sqrt): Add __attribute_used__.
223 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
225         * sysdeps/generic/group_member.c (__group_member): Also check
226         groups[0] [PR libc/2781].
228 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
230         * Makefile (distribute): Add scripts/cpp.
231         * elf/Makefile (distribute): Add reldep6mod[01234].c,
232         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
233         unwind-dw2-fde.h, and dwarf2.h.
234         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
235         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
236         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
237         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
239 2002-01-07  Roland McGrath  <roland@frob.com>
241         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
242         volatile on type of ARGC so the compiler doesn't get clever.
244 2002-01-07  Andreas Jaeger  <aj@suse.de>
246         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
247         * sysdeps/i386/bits/byteswap.h: Likewise.
248         * sysdeps/ia64/bits/byteswap.h: Likewise.
249         * sysdeps/m68k/bits/byteswap.h: Likewise.
250         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
251         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise.
253 2002-01-02  Bruno Haible  <bruno@clisp.org>
255         * intl/plural.y: Fix %expect count.
257 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
259         * elf/Makefile (routines, shared-only-routines): Add
260         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
261         * elf/elf.h (PT_GNU_EH_FRAME): Define.
262         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
263         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
264         Optimize if .eh_frame section contains no FDEs.
265         (__register_frame, __deregister_frame_info_bases,
266         __deregister_frame): Likewise.
267         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
268         DW_CFA_restore handling.
270 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
272         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
274         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
275         for x < 0.25 and restore original range reduction method.
276         (__ieee754_lgammal_r): Make sure signgam is set before returning.
278 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
280         * libio/fileops.c (_IO_file_underflow_mmap): New function.
281         (_IO_file_close_mmap): New function.
282         (_IO_file_jumps_mmap): New variable.
283         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
284         trying to convert rest of byte buffer.
285         (_IO_wfile_underflow_mmap): New function.
286         (_IO_wfile_jumps_mmap): New variable.
287         * libio/iofopen.c (__fopen_maybe_mmap): New function.
288         (__fopen_internal): New function.  Split out from _IO_new_fopen.
289         (_IO_new_fopen): Call __fopen_internal.
290         * libio/iofopen64.c: Just call __fopen_internal.
291         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
292         successfully.
293         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
294         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
295         _IO_file_close_mmap.
297         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
298         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
300         * stdio-common/Makefile (tests): Add tst-rndseek.
301         * stdio-common/tst-rndseek.c: New file.
303 2002-01-05  Roland McGrath  <roland@frob.com>
305         * config.h.in (HAVE_MIG_RETCODE): New #undef.
306         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
307         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
308         * sysdeps/mach/hurd/configure: Regenerated.
310 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
312         * elf/elf.h: Add more TLS definitions.
314 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
316         * include/features.h (__GLIBC_MINOR__): Bump to 3.
318 2002-01-02  Roland McGrath  <roland@frob.com>
320         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
321         __sigisemptyset.  Don't use MASK uninitialized.
323         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
324         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
325         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
326         __sigdelset, __sigaddset, __sigorset.
328         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
329         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
331         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
332         _hurd_ports is null.
334         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
335         for old CMU and new OSF Mach interface flavors.
336         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
337         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
339         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
341         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
342         Pass extra arguments to task_create for OSF variant.
343         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
345         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
346         conditional on [HAVE_AUX_VECTOR].
348         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
349         mach_msg_timeout_t as type of final argument.
351         * hurd/privports.c (__get_privileged_ports):
352         Change host_priv_t to mach_port_t in argument type.
353         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
354         Update decls.
356         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
357         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
358         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
359         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
360         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
361         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
363 2002-01-01  Roland McGrath  <roland@frob.com>
365         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
367 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
369         * include/stdlib.h: Define inlines for the _l variants of the strto*
370         functions.
372 2002-01-01  Roland McGrath  <roland@frob.com>
374         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
376         * mach/Machrules (MIG): Set CPP as well as CC.
378 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
380         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
381         locale to parse /proc/loadavg [PR libc/2760].
383 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
385         * elf/dl-conflict.c: Include sys/param.h.
386         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
387         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
388         warning.
389         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
390         literals to avoid warnings.
392 2001-12-31  Andreas Jaeger  <aj@suse.de>
394         * configure.in: Don't check for gsed since we do not use it anywhere.
396 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
398         * io/fts.c: Update from BSD to fix memory leaks.
400 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
402         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
403         * elf/chroot_canon.c: Likewise.
404         * elf/dl-object.c: Likewise.
405         * iconv/iconv_charmap.c: Likewise.
406         * iconv/iconv_prog.c: Likewise.
407         * libio/iogetdelim.c: Likewise.
408         * locale/lc-time.c: Likewise.
409         * stdlib/canonicalize.c: Likewise.
410         * sunrpc/svc.c: Likewise.
411         * sysdeps/generic/glob.c: Likewise.
413 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
415         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
416         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
417         remove high order bit from the program counter.
418         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
420 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
422         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
423         unnecessary code and add missing reloc types.
424         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
425         case for reloc type R_390_NONE.
427 2001-12-28  Andreas Jaeger  <aj@suse.de>
429         * io/bug-ftw3.c: Include string.h for prototypes.
431         * crypt/md5test.c (main): Remove unused variable.
433         * dlfcn/modstatic.c: Add prototype to avoid warning.
435 2001-12-26  Roland McGrath  <roland@frob.com>
437         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
438         check only (SS->pending & MASK) for the signal to return.
439         From Jeroen Dekkers <jeroen@dekkers.cx>.
441 2001-12-22  Roland McGrath  <roland@frob.com>
443         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
444         Use preprocessor #if conditionals instead of `if' to avoid
445         warnings about divide by zero in dead code.
447         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
448         _hurd_port_init, and __hurd_self_sigstate.
450         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
452 2001-12-21  Andreas Jaeger  <aj@suse.de>
454         * elf/dblloadmod1.c: Add prototype to avoid warning.
455         * elf/dblloadmod2.c: Likewise.
456         * elf/dblloadmod3.c: Likewise.
457         * elf/reldepmod5.c: Likewise.
458         * elf/reldepmod6.c: Likewise.
460         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
461         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
462         used on all architectures.
464         * sunrpc/svc_tcp.c: Add noreturn attribute for
465         svctcp_rendezvous_abort.
466         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
468         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
469         to avoid warning.
471 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
473         * manual/llio.texi (aio_fsync): Fix a typo.
474         Patch by Tammy Fox <tfox@redhat.com>.
476 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
478         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
479         stack bias from child stack pointer before passing it to clone syscall.
481 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
483         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
484         _SC_TZNAME_MAX.
485         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
486         Reported by Thorsten Kukuk <kukuk@suse.de>.
488         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
489         add some casts.
491         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
493 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
495         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
496         conforming: return EBADF if file descriptor is invalid and EINVAL
497         if file descriptor is no valid tty.
498         * login/tst-grantpt.c: New file.
499         * login/Makefile (tests): Add tst-grantpt.
501 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
503         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
504         different than implemented in last patch.
505         * io/bug-ftw3.c: Adjust test for changed handling of
506         inaccessibility of toplevel dir.
508 2001-12-16  Roland McGrath  <roland@frob.com>
510         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
511         * grp/initgroups.c (internal_getgrouplist): Likewise.
513         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
514         `default:' to silence new GCC warning.
515         Rewrite cast of lvalue to silence new GCC warning.
517         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
519         * sysdeps/mach/hurd/spawni.c: New file, by me with a
520         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
522 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
524         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
525         Patch by Stephen R. van den Berg.
527         * crypt/md5.h: Define md5_uintptr.
529 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
531         * libio/tst_swprintf.c (main): Add test for string argument with
532         zero precision.
533         * stdio-common/Makefile (tests): Add tst-sprintf.
534         * stdio-common/tst-sprintf.c: New file.
536 2001-12-13  Andreas Schwab  <schwab@suse.de>
538         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
539         zero precision with wide character string format.
541 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
543         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
544         but have a user supplied buffer, return the empty buffer, not NULL.
546 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
548         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
549         Patch by Eric Sharkey <sharkey@netrics.com>.
551         * crypt/md5test.c (main): Add test for multiple calls to
552         __md5_process_bytes to itererate over input string.
554 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
556         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
557         from __nis_findfastest.  Take timeout value from parameter.
558         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
559         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
560         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
562 2001-12-12  Andreas Jaeger  <aj@suse.de>
564         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
565         combreloc test so that it works in this case.
567         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
569 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
571         * sysdeps/sh/Makefile: New file.
572         * sysdeps/sh/_mcount.S: New file.
573         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
574         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
576 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
578         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
579         limitation [PR libc/2564].
581 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
583         * elf/Makefile (dl-routines): Add conflict.
584         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
585         (ld.so): Add _begin local symbol.
586         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
587         Define.
588         * elf/dl-deps.c (_dl_build_local_scope): New.
589         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
590         of all libraries.
591         * elf/do-rel.h (VALIDX): Define.
592         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
593         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
594         can be skipped.
595         * elf/dl-conflict.c: New file.
596         * elf/dl-lookup.c (_dl_debug_bindings): New.
597         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
598         non-NULL.
599         (_dl_lookup_symbol_skip): Likewise.
600         (_dl_lookup_versioned_symbol): Likewise.
601         (_dl_lookup_versioned_symbol_skip): Likewise.
602         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
603         define to ElfW(Rel).
604         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
605         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
606         ranges.
607         Don't adjust address dynamic tags if l_addr is 0.
608         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
609         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
610         (VALIDX, ADDRIDX): Define.
611         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
612         (dl_main): Print library list for LD_TRACE_PRELINKING.
613         If prelinking information can be used, skip relocating libraries and
614         call _dl_resolve_conflicts instead.
615         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
616         * elf/dl-load.c (_dl_map_object): Don't create fake libs
617         if LD_TRACE_PRELINKING.
618         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
619         + DT_ADDRNUM.
620         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
621         (DL_DEBUG_PRELINK): Define.
622         (_dl_resolve_conflicts): Add prototype.
624         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
625         .plt for prelinked libraries where prelinking info cannot be used.
626         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
627         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
628         * sysdeps/arm/bits/link.h: New file.
629         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
630         content of .got[1].
631         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
632         (ELF_MACHINE_PLT_REL): Define.
633         (elf_machine_rela, elf_machine_rela_relative): New.
634         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
635         of adjusting it if prelinked and prelinking cannot be used.
636         * sysdeps/i386/bits/link.h: New file.
637         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
638         content of .got[1].
639         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
640         (ELF_MACHINE_PLT_REL): Define.
641         (elf_machine_rela, elf_machine_rela_relative): New.
642         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
643         of adjusting it if prelinked and prelinking cannot be used.
644         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
645         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
646         to find out map for R_PPC_JMP_SLOT relocs.
647         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
648         (OPCODE_BA): Define.
649         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
650         libraries where prelinking info cannot be used.
651         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
652         (elf_machine_fixup_plt): Call sparc_fixup_plt.
653         (elf_machine_rela): Set value to 0 if relocating conflicts.
654         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
655         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
656         (sparc64_fixup_plt): Fix a typo.
657         (elf_machine_rela): Set value to 0 if relocating conflicts.
658         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
659         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
660         libraries where prelinking info cannot be used.
661         * sysdeps/sh/bits/link.h: New file.
662         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
663         content of .got[1].
664         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
665         of adjusting it if prelinked and prelinking cannot be used.
666         * sysdeps/s390/s390-32/bits/link.h: New file.
667         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
668         Save original content of .got[1].
669         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
670         of adjusting it if prelinked and prelinking cannot be used.
671         * sysdeps/s390/s390-64/bits/link.h: New file.
672         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
673         Save original content of .got[1].
674         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
675         of adjusting it if prelinked and prelinking cannot be used.
676         * sysdeps/x86_64/bits/link.h: New file.
677         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
678         Save original content of .got[1].
679         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
680         of adjusting it if prelinked and prelinking cannot be used.
682 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
684         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
685         where appropriate instead of numbers.  Little optimizations.
687 2001-12-10  Roland McGrath  <roland@frob.com>
689         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
690         set it.
692         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
693         set to GLIBC_2.2.5, not GLIBC_2.2.4.
695         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
696         Fix conditionals so this is set by default for stdio and not for libio.
697         * sysdeps/mach/hurd/configure: Regenerated.
699 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
701         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
703 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
705         * io/Makefile (tests): Add bug-ftw3.
706         * io/bug-ftw3.c: New file.
708         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
709         matches and GLOB_NOCHECK is set.
710         * posix/globtest.sh: Correct expected result for NOCHECK test.
712         * po/ca.po: Update from translation team.
714 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
716         Implement transliteration of characters in strings of the locale
717         definitions.
718         * locale/programs/linereader.c: Adjust for additional parameter to
719         lr_token.
720         (get_string): If character <Uxxxx> is not found try to transliterate
721         it.
722         * locale/programs/ld-ctype.c: Adjust for additional parameter to
723         lr_token.  Add const to charmap parameter of all functions.
724         (find_translit, find_translit2): New functions.
725         * locale/programs/charmap.c: Adjust for additional parameter to
726         lr_token.
727         * locale/programs/repertoire.c: Likewise.
728         * locale/programs/linereader.h: Likewise.
729         * locale/programs/ld-address.c: Likewise.  Add const to charmap
730         parameter of all functions.
731         * locale/programs/ld-collate.c: Likewise.
732         * locale/programs/ld-identification.c: Likewise.
733         * locale/programs/ld-measurement.c: Likewise.
734         * locale/programs/ld-messages.c: Likewise.
735         * locale/programs/ld-monetary.c: Likewise.
736         * locale/programs/ld-name.c: Likewise.
737         * locale/programs/ld-numeric.c: Likewise.
738         * locale/programs/ld-paper.c: Likewise.
739         * locale/programs/ld-paper.c: Likewise.
740         * locale/programs/ld-telephone.c: Likewise.
741         * locale/programs/ld-time.c: Likewise.
742         * locale/programs/locfile.c: Likewise.
743         * locale/programs/localedef.c: Likewise.
744         * locale/programs/localedef.h: Likewise.
745         * locale/programs/locfile.h: Likewise.  Add declaration for
746         find_translit.
747         * locale/programs/simple-hash.c: Add const to first parameter of
748         find_entry, iterate_table, and lookup.
749         * locale/programs/simple-hash.h: Likewise.
750         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
751         instead.
752         * include/locale.h: Define __LC_LAST.
753         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
755 2001-12-07  Geoff Keating  <geoffk@redhat.com>
757         * sysdeps/powerpc/Dist: Update for recent FP changes.
758         * sysdeps/powerpc/fpu/Dist: Likewise.
760 2001-12-07  Andreas Schwab  <schwab@suse.de>
762         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
764 2001-12-06  Geoff Keating  <geoffk@redhat.com>
766         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
767         save/restore functions here.
768         (libm-support): Don't define these functions here.
769         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
770         functions here.
771         * sysdeps/powerpc/fe_nomask.c: Move to...
772         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
773         * sysdeps/powerpc/fprrest.S: Move to...
774         * sysdeps/powerpc/fpu/fprrest.S: ... here.
775         * sysdeps/powerpc/fprsave.S: Move to...
776         * sysdeps/powerpc/fpu/fprsave.S: ... here.
778 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
780         * sysdeps/unix/sysv/linux/opensock.c: New file.
782 2001-12-06  Geoff Keating  <geoffk@redhat.com>
784         * config.make.in (with-fp): Define from configure.
785         * configure.in: Substitute with_fp.
786         * configure: Regenerate.
787         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
788         specified, and don't change FPU environment.
790 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
792         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
793         * assert/assert.c: Check result of __asprintf call and don't use
794         string if it failed.
795         * assert/assert-perr.c: Likewise.
796         * inet/rcmd.c: Likewise.
797         * locale/programs/localedef.c (main): Check result of
798         construct_output_path and exit if it failed.
799         (construct_output_path): Check result of asprintf and mkdir calls and
800         fail if they failed.
801         * posix/getopt.c: Check result of __asprintf calls and fail if
802         they failed.
803         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
805 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
807         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
808         patch.
809         * sysdeps/generic/strncase.c: Likewise.
810         * string/tester.c: Add tests for strcasecmp and strncasecmp.
812 2001-12-05  Geoff Keating  <geoffk@redhat.com>
814         * scripts/cpp: Test the exit status from 'type', not 'awk'.
816         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
817         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
818         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
819         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
820         * sysdeps/powerpc/fclrexcpt.c: Move to...
821         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
822         * sysdeps/powerpc/fpu_control.h: Move to...
823         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
825 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
827         * iconvdata/ibm1129.h: Remove duplicate mappings.
828         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
829         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
830         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
832         * timezone/zic.c: Fix handling of turnaround times.
833         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
835 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
837         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
838         overflow problem.
840 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
842         * posix/regex.c: For use outside glibc defined bounded pointer
843         macros here.  Patch by Jim Meyering <jim@meyering.net>.
845         * iconvdata/Makefile (modules): Add TCVN5712-1.
846         * iconvdata/TESTS: Add TCVN5712-1.
847         * iconvdata/gconv-modules: Likewise.
848         * iconvdata/tcvn5712-1.c: New file.
849         * iconvdata/testdata/TCVN-5712: New file.
850         * iconvdata/testdata/TCVN-5712..UTF8: New file.
852 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
854         * iconvdata/cp1258.c: Optimize conversion from UCS4.
856 2001-12-02  Roland McGrath  <roland@frob.com>
858         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
860         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
861         Reported by Jeff Bailey <jbailey@nisa.net>.
863         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
864         Reported by Jeff Bailey <jbailey@nisa.net>.
866         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
867         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
868         Reported by Jeff Bailey <jbailey@nisa.net>.
870 2001-12-01  Roland McGrath  <roland@frob.com>
872         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
873         missing backslash in test arguments.
874         * sysdeps/mach/hurd/configure: Regenerated.
876 2001-11-26  Roland McGrath  <roland@frob.com>
878         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
879         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
881 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
883         * iconvdata/Makefile (modules): Add ARMSCII-8.
884         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
885         * iconvdata/armscii-8.c: New file.
887 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
889         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
890         don't match, fix {{a,b},c} globbing, clean up.
891         Patch by Flavio Veloso <flaviovs@magnux.com>.
892         * posix/globtest.sh: Add new tests.
894 2001-11-29  Andreas Jaeger  <aj@suse.de>
896         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
897         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
899         * sysdeps/generic/abort.c: Include libioP.h for
900         _IO_flush_all_lockp prototype.
902 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
904         * posix/regex.h: Define __restrict_arr correctly.
906 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
908         * iconvdata/ibm1163.c: New file.
909         * iconvdata/ibm1163.h: New file.
910         * iconvdata/ibm1164.c: New file.
911         * iconvdata/ibm1164.h: New file.
912         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
913         * iconvdata/Makefile: Likewise.
914         * iconvdata/testdata/IBM1163: New file.
915         * iconvdata/testdata/IBM1163..UTF8: New file.
916         * iconvdata/testdata/IBM1164: New file.
917         * iconvdata/testdata/IBM1164..UTF8: New file.
918         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
920         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
921         * iconvdata/ibm1124.h: Likewise.
922         * iconvdata/ibm1132.h: Likewise.
923         * iconvdata/ibm1133.h: Likewise.
924         * iconvdata/ibm1160.h: Likewise.
925         * iconvdata/ibm1161.h: Likewise.
926         * iconvdata/ibm1162.h: Likewise.
927         * iconvdata/ibm856.h: Likewise.
928         * iconvdata/ibm922.h: Likewise.
929         * iconvdata/ibm930.h: Likewise.
930         * iconvdata/ibm932.h: Likewise.
931         * iconvdata/ibm933.h: Likewise.
932         * iconvdata/ibm935.h: Likewise.
933         * iconvdata/ibm937.h: Likewise.
934         * iconvdata/ibm939.h: Likewise.
935         * iconvdata/ibm943.h: Likewise.
936         * iconvdata/ibm930.c: Pretty printing.
937         * iconvdata/ibm937.c: Avoid access accross array boundary.
939         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
940         the current locale's codeset.
941         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
942         empty input string.
943         * iconv/iconv_prog.c: Pass empty strings as default value for to-
944         and from-charset.  Don't determine locale's charset here.
946         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
947         as the old _IO_flush_all but lock only if parameter is nonzero.
948         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
949         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
950         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
951         if libio is used [PR libc/2575].
953 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
955         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
956         __signbitl): Only define for ISO C99.
958 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
960         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
961         herrnop to NETDB_INTERNAL if we run out of buffer space.
963 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
965         * nss/nss_files/files-XXX.c (internal_getent): Correct input
966         overflow test for platforms with signed char.
967         Reported by Andrew Haley <aph@cambridge.redhat.com>.
969 2001-11-28  Bruno Haible  <bruno@clisp.org>
971         * locale/programs/simple-hash.c (lookup_2): Remove function.
972         (insert_entry_2): Call lookup instead of lookup_2.
974 2001-03-04  Bruno Haible  <bruno@clisp.org>
976         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
978 2001-10-31  Bruno Haible  <bruno@clisp.org>
980         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
982 2001-03-21  Bruno Haible  <bruno@clisp.org>
984         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
985         chokes on empty macro arguments.
986         * intl/plural.y: Add #pragma for alloca on AIX 3.
988 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
990         * intl/dcigettext.c (guess_category_value): Only implement for
991         glibc.  Otherwise rely on function _nl_locale_name which isn't
992         present in the glibc sources.
994 2001-09-24  Bruno Haible  <bruno@clisp.org>
996         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
997         transliteration when building on a glibc system but outside glibc.
999 2001-09-22  Bruno Haible  <bruno@clisp.org>
1001         * intl/plural-eval.c: New file, extracted from dcigettext.c.
1002         * intl/dcigettext.c (plural_eval): Remove function, moved to
1003         intl/plural-eval.c.
1004         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
1005         Include plural-eval.c.
1007 2001-09-22  Bruno Haible  <bruno@clisp.org>
1009         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
1010         don't start with a digit; nplurals must be positive.
1012 2001-09-02  Bruno Haible  <bruno@clisp.org>
1014         * intl/plural-exp.h: New file, extracted from gettextP.h.
1015         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
1016         * intl/gettextP.h (struct expression, struct parse_args,
1017         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
1018         * intl/loadmsgcat.c: Include plural-exp.h.
1019         (PLURAL_PARSE): Move macro to plural-exp.h.
1020         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
1021         plural-exp.c.
1022         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
1023         EXTRACT_PLURAL_EXPRESSION.
1024         (_nl_unload_domain): Update.
1025         * intl/dcigettext.c: Include plural-exp.h.
1026         * intl/plural.y: Include plural-exp.h, not gettextP.h.
1027         (FREE_EXPRESSION): Move macro to plural-exp.h.
1028         * intl/Makefile (routines): Add plural-exp.
1029         (distribute): Add plural-exp.h.
1031 2001-07-28  Bruno Haible  <bruno@clisp.org>
1033         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
1034         isdigit, tolower argument to 'unsigned char'.
1035         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
1036         'unsigned char'.
1037         * intl/localealias.c (read_alias_file): Cast isspace argument to
1038         'unsigned char'.
1040 2001-10-20  Bruno Haible  <bruno@clisp.org>
1042         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
1043         anyway.)
1044         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
1045         with the variable 'index' in plural_lookup.
1046         * intl/l10nflist.c (strchr): Likewise.
1047         * intl/localealias.c (strchr): Likewise.
1049         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
1050         * intl/bindtextdom.c: Likewise.
1051         * intl/dcigettext.c: Likewise.
1052         * intl/dgettext.c: Likewise.
1053         * intl/dngettext.c: Likewise.
1054         * intl/explodename.c: Likewise.
1055         * intl/finddomain.c: Likewise.
1056         * intl/gettext.c: Likewise.
1057         * intl/l10nflist.c: Likewise.
1058         * intl/loadmsgcat.c: Likewise.
1059         * intl/localealias.c: Likewise.
1060         * intl/ngettext.c: Likewise.
1061         * intl/textdomain.c: Likewise.
1062         * intl/gettext.h: Assume <limits.h> exists.
1064 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
1066         * stdio-common/Makefile (tests): Add scanf11.
1067         * stdio-common/scanf11.c: New file.
1069 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
1071         * version.h (RELEASE): Define as development.
1072         (VERSION): Set to 2.2.90.
1074 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
1076         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
1077         * nis/nss_nis/nis-grp.c: Likewise.
1078         * nis/nss_nisplus/nisplus-grp.c: Likewise.
1080         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
1081         * nis/nss_nis/nis-pwd.c: Likewise.
1082         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
1084         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
1085         * nis/nss_nisplus/nisplus-parser.c: Likewise.
1086         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
1088         * nscd/grpcache.c: Use strtoul instead of atol.
1089         * nscd/pwdcache.c: Likewise.
1090         * nss/getent.c: Likewise.
1092 2001-11-27  Paul Eggert  <eggert@twinsun.com>
1094         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
1095         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
1097 2001-11-19  Bruno Haible  <bruno@clisp.org>
1099         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
1100         90%.
1101         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
1102         improves the quality of the hash function, especially for short
1103         strings.
1105 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
1107         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
1108         are found call conv_error and not input_error [PR libc/2669].
1110         * math/bits/mathcalls.h: Mark ceil and floor as const.
1111         Reported by David Mosberger.
1113 2001-11-21  Jim Meyering  <meyering@lucent.com>
1115         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
1116         Define to be __-prefixed.
1117         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
1119 2001-11-26  Andreas Jaeger  <aj@suse.de>
1121         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
1122         avoid warning.
1124 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
1126         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
1127         initialization.
1129         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
1130         unused variables.  Fix threshold for returning 1.0.
1132         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
1133         argument.
1135         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
1136         remove unused variables.
1138         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
1140         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
1141         include local math header files.
1143 2001-11-22  Andreas Jaeger  <aj@suse.de>
1145         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
1146         avoid warning.
1148 2001-11-21  Andreas Jaeger  <aj@suse.de>
1150         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
1152         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
1153         sys/debugreg.h
1155 2001-11-15  Andreas Jaeger  <aj@suse.de>
1157         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
1158         compilers that support it.
1160         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
1161         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
1162         * stdlib/stdlib.h: Likewise.
1164 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
1166         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
1167         statement with gotos.
1168         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
1170 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
1172         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
1174 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
1176         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
1178 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
1179             H.J. Lu  <hjl@gnu.org>
1181         * Versions.def (libc): Add GCC_3.0.
1182         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
1183         if gcc supports this flag.
1184         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
1185         (gcc3): Allow glibc to be compiled with gcc 3.x.
1186         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
1187         * config.make.in (static-libgcc, unwind-find-fde): Add.
1188         * Makerules (build-shlib-helper, build-module-helper): Use it.
1189         * scripts/versions.awk: Make sure GLIBC_ versions come first.
1190         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
1191         necessary.
1192         (_fini): Call __deregister_frame_info_bases if
1193         __register_frame_info_bases was used to register.
1194         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
1195         for GLIBC_2.0.
1196         (__register_frame_info_bases, __register_frame_info_table_bases,
1197         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
1198         * elf/Makefile (routines): Add unwind-dw2-fde.
1199         (shared-only-routines): Add unwind-dw2-fde.
1200         * sysdeps/alpha/gccframe.h: New file.
1201         * sysdeps/arm/gccframe.h: New file.
1202         * sysdeps/generic/framestate.c: New file.
1203         * sysdeps/generic/dwarf2.h: New file.
1204         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
1205         * sysdeps/generic/unwind-dw2-fde.c: New file.
1206         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
1207         * sysdeps/generic/unwind-dw2-fde.h: New file.
1208         * sysdeps/generic/unwind-dw2.c: New file.
1209         * sysdeps/generic/unwind-pe.h: New file.
1210         * sysdeps/generic/unwind.h: New file.
1211         * sysdeps/hppa/gccframe.h: New file.
1212         * sysdeps/i386/gccframe.h: New file.
1213         * sysdeps/m68k/gccframe.h: New file.
1214         * sysdeps/mips/gccframe.h: New file.
1215         * sysdeps/powerpc/gccframe.h: New file.
1216         * sysdeps/s390/gccframe.h: New file.
1217         * sysdeps/sh/gccframe.h: New file.
1218         * sysdeps/sparc/gccframe.h: New file.
1219         * sysdeps/vax/gccframe.h: New file.
1220         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
1221         Set on all architectures except ia64.
1222         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
1223         for i386.
1224         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
1225         __deregister_frame_info): Move to elf/Versions.
1226         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
1227         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
1228         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1229         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
1230         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
1231         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
1232         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
1233         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1234         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
1235         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
1236         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
1237         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
1238         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
1239         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
1240         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
1241         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
1242         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
1243         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
1245 2001-11-15  Jeff Law  <law@redhat.com>
1247         * posix/regex.c (uintptr_t): Do not provide a definition if the
1248         system provided one.
1250 2001-11-13  Roland McGrath  <roland@frob.com>
1252         * stdio-common/tmpfile.c: Moved to ...
1253         * sysdeps/generic/tmpfile.c: ... here.
1254         * sysdeps/mach/hurd/tmpfile.c: New file.
1256         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
1257         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
1258         (fopenport): Define as weak alias.
1260         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
1261         * libio/libioP.h: ... to here.
1263 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
1265         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
1266         program header twice.  Construct list with the needed information.
1268 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
1270         * po/ca.po: Update from translation team.
1272         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
1273         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
1274         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
1275         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
1277 2001-11-10  Andreas Jaeger  <aj@suse.de>
1279         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
1280         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1281         Contributed by Stephen L Moshier <moshier@mediaone.net>.
1283 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
1285         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
1286         correctly.
1287         * elf/dl-load.c (is_dst): New function.
1288         (_dl_dst_count): Use is_dst to check for DST variable.
1289         (_dl_dst_substitute): Likewise.
1291 2001-11-09  Roland McGrath  <roland@frob.com>
1293         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
1294         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
1295         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
1296         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
1297         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
1298         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
1299         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
1300         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
1301         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
1302         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
1303         * sysdeps/mach/hurd/powerpc/Dist: New file.
1305         * hurd/privports.c (__get_privileged_ports):
1306         Only contact the proc server if necessary for this call.
1307         Suggested by Neal H Walfield <neal@cs.uml.edu>.
1308         Check error return for mach_port_mod_refs.
1310 2001-11-09  Andreas Schwab  <schwab@suse.de>
1312         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
1314 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
1316         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
1317         object is always the last in the list.
1318         (_dl_map_object_from_fd): Delete code to remove from object list
1319         when DF_1_NOOPEN is seen.  This is done in lose.
1321 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
1323         * elf/dl-object.c (_dl_new_object): Various small optimizations.
1325 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
1327         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
1328         HWCAP_CHECK macro code.
1330         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
1331         Now returns MAP_FAILED on error.
1332         * elf/rtld.c: Adjust caller.
1333         * sysdeps/generic/dl-cache.c: Likewise.
1334         * sysdeps/generic/ldsodefs.h: Adjust description.
1336         * elf/dl-version.c (match_symbol): Optimize error handling for size.
1337         (_dl_check_map_versions): Likewise.
1339 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
1341         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
1342         _dl_signal_error directly, always use lose.  Set fd to -1 after
1343         file is closed.
1344         (lose): Don't call close if fd == -1.
1346 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
1348         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
1349          Also fix typo @code {mbsinit} to @code{mbsinit}.
1351 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
1353         * elf/dl-profile.c: Replace state variable with simple flag named
1354         running.  Remove commented-out code.
1356         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
1357         (_dl_init_paths): Likewise.
1358         (_dl_map_object_from_fd): Likewise.
1359         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
1361 2001-11-06  Roland McGrath  <roland@frob.com>
1363         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
1364         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
1366         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
1367         sysdeps/powerpc/elf/sysdep.h.
1368         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
1370 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
1372         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
1373         speed.
1374         (process_envvars): Some more optimizations.
1375         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
1377         * elf/elf.h: Add dynamic tag definitions for prelinking.
1379         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
1380         Rewrite code to remove environment varables for SUID binaries.
1381         Small optimization in LD_PROFILE handling.
1382         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
1383         changes.
1384         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
1386         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
1388         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
1389         strings.  Change type of second parameter.
1390         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
1391         for last change.
1393         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
1395 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
1397         * manual/string.texi: Fix typos.
1398         * manual/examples/argp-ex2.c: Likewise.
1400 2001-11-05  Roland McGrath  <roland@frob.com>
1402         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
1403         the more-specific unix/sysv/linux/powerpc file and breaks everything.
1404         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
1405         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
1406         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
1407         here, put under [__ELF__].
1409 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
1411         * manual/charset.texi: Extensive editing work.
1412         * manual/nss.texi: Likewise.
1413         Changes by Dennis Grace <dgrace@us.ibm.com>.
1415 2001-11-04  Roland McGrath  <roland@frob.com>
1417         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
1418         parameter to dir_mkfile.
1420 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
1422         * string/bits/string2.h (__strndup): If n is smaller than len, set
1423         len to n + 1.
1424         * string/tester.c (test_strndup): New function.
1425         (main): Call it.
1427 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
1429         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
1431         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
1432         * scripts/cpp: New file.
1434         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
1435         for rtld_search_dirs content.  Minor optimizations.
1437 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
1439         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
1440         avoiding unnecessary duplication.
1442 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
1444         * elf/dl-load.c (_dl_map_object): If library was found using
1445         LD_LIBRARY_PATH, don't try RUNPATH list.
1447 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1449         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
1450         Correct second argument of register_dump call.
1451         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
1452         Likewise.
1454 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
1456         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
1457         modules.
1458         * iconvdata/TESTS: Likewise.
1459         * iconvdata/gconv-modules: Likewise.
1460         * iconvdata/ibm1132.c: New file.
1461         * iconvdata/ibm1132.h: New file.
1462         * iconvdata/ibm1133.c: New file.
1463         * iconvdata/ibm1133.h: New file.
1464         * iconvdata/ibm1162.c: New file.
1465         * iconvdata/ibm1162.h: New file.
1466         * iconvdata/testdata/IBM1132: New file.
1467         * iconvdata/testdata/IBM1132..UTF8: New file.
1468         * iconvdata/testdata/IBM1133: New file.
1469         * iconvdata/testdata/IBM1133..UTF8: New file.
1470         * iconvdata/testdata/IBM1162: New file.
1471         * iconvdata/testdata/IBM1162..UTF8: New file.
1472         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
1474         * string/string.h: Fix typo in comment.
1475         * wcsmbs/wchar.h: Likewise.
1477 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
1479         * manual/getopt.texi (getopt_long, getopt_long_only): Include
1480         const in type of longopts parameter.
1482 2001-10-29  Andreas Jaeger  <aj@suse.de>
1484         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
1486 2001-10-29  Kevin Ryde  <user42@zip.com.au>
1488         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
1489         output, clarify `#' behaviour on 0.
1490         (Floating-Point Conversions): Clarify that %g only uses %e when
1491         the exponent would be greater than 1.
1493 2001-10-28  Roland McGrath  <roland@frob.com>
1495         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
1496         * sysdeps/mach/powerpc/machine-sp.h: New file.
1497         * sysdeps/mach/powerpc/sysdep.h: New file.
1498         * sysdeps/mach/powerpc/thread_state.h: New file.
1500         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
1501         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
1502         expect to need the same thing on every platform.
1504         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
1505         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
1507         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
1508         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
1509         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
1510         Move all these assembly-related definitions to ...
1511         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
1513         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
1514         by Peter Bruin <pjbruin@dds.nl>.
1516         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
1517         packing results for a `poll' call.
1519 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
1521         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
1522         correctly.
1523         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
1524         bracket expression.
1526         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
1527         nrules value.
1528         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
1530 2001-10-24  H.J. Lu  <hjl@gnu.org>
1532         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
1533         Use __BEGIN_DECLS/__END_DECLS around prototypes.
1534         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
1536 2001-10-21  Jim Meyering  <meyering@lucent.com>
1538         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
1539         this code would end up calling gettext even in packages built
1540         with --disable-nls.
1541         * posix/getopt.c (_): Likewise.
1542         * posix/regex.c (_): Likewise.
1544 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
1546         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
1547         lookup not ip6.int.
1548         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
1549         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
1551 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
1553         * misc/sys/cdefs.h (__attribute_used__): Define.
1554         * elf/rtld.c (_dl_start): Add __attribute_used__.
1555         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
1557 2001-10-25  Andreas Schwab  <schwab@suse.de>
1559         * stdlib/a64l.c: Expect least significant digit first.
1560         * stdlib/l64a.c: Produce least significant digit first.
1561         * stdlib/Makefile (tests): Add test-a64l.
1562         * stdlib/test-a64l.c: New file.
1563         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
1565 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
1567         * po/sk.po: Update from translation team.
1569 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
1571         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
1573 2001-10-18  Andreas Schwab  <schwab@suse.de>
1575         * math/libm-test.inc (print_ulps): Print ulp values rounded to
1576         next whole number.
1577         (print_function_ulps): Likewise.
1578         (print_complex_function_ulps): Likewise.
1579         (print_max_error): Likewise.
1580         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
1582 2001-10-16  Andreas Schwab  <schwab@suse.de>
1584         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
1585         implementation.
1587         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
1588         BSD_SETJMP or BSD__SETJMP is defined, resp.
1589         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
1590         a tail call to __sigsetjmp that would require extending the
1591         caller's frame.
1592         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
1593         * sysdeps/m68k/bsd-setjmp.S: Deleted.
1594         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
1595         Reported by Jes Sorensen <jes@trained-monkey.org>.
1597 2001-10-16  Andreas Jaeger  <aj@suse.de>
1599         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
1600         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
1601         close PR libc/2589.
1603 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
1605         * po/ca.po: New file.  Contributed by the translation team.
1607 2001-10-15  Ralf Baechle  <ralf@gnu.org>
1609         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
1610         a varargs prototype.  Remove dependency from kernel header files.
1612         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
1613         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
1615 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
1617         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
1618         to generate hexadecimal identifier.
1619         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
1621 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
1623         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
1625 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
1627         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
1628         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
1629         Contributed by Stephen L Moshier <moshier@mediaone.net>.
1631         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
1632         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1633         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
1634         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
1635         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
1636         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
1638         * timezone/africa: Update from tzdata2001d.
1639         * timezone/asia: Likewise.
1640         * timezone/australasia: Likewise.
1641         * timezone/backward: Likewise.
1642         * timezone/europe: Likewise.
1643         * timezone/leapseconds: Likewise.
1644         * timezone/northamerica: Likewise.
1645         * timezone/southamerica: Likewise.
1646         * timezone/zone.tab: Likewise.
1648 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1650         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
1651         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
1653 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
1655         * elf/elf.h (PT_TLS): New definition.
1657 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
1659         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
1660         bits/errno.h
1662 2001-10-07  Roland McGrath  <roland@frob.com>
1664         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
1666 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
1668         * elf/elf.h: Add more ELFOSABI_* constants.
1670 2001-10-04  Ben Collins  <bcollins@debian.org>
1672         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
1673         decleration of __need_wchar_t.
1675 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
1677         * string/bits/string2.h (__strsep_g): Add prototype.
1678         (__strsep): Use it.
1679         * string/Versions (__strsep): Remove.
1680         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
1682 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
1684         * manua/llio.texi: Clarify file references added by mmap.
1685         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
1687 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
1689         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
1690         Add sc_loadrs and sc_rbs_bas to match current kernel.
1692 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
1694         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
1696         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
1698 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
1700         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
1701         object has been bumped because of relocation dependency, avoid
1702         duplicates in l_scope.
1703         (show_scope): Fix typos.
1704         * elf/Makefile: Add rules to build and run reldep6.
1705         * elf/reldep6.c: New file.
1706         * elf/reldep6mod0.c: New file.
1707         * elf/reldep6mod1.c: New file.
1708         * elf/reldep6mod2.c: New file.
1709         * elf/reldep6mod3.c: New file.
1710         * elf/reldep6mod4.c: New file.
1712 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
1714         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
1715         sparc64_fixup_plt.
1716         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
1717         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
1718         for non-lazy binding. Fix .plt[32768+] handling.
1719         (elf_machine_plt_value): Don't add addend.
1720         (elf_machine_rela): Call sparc64_fixup_plt instead of
1721         elf_machine_fixup_plt.
1722         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
1723         dynamic linker at 0xfffff800XXXXXXXX.
1725         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
1727 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
1729         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
1731 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
1733         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
1734         declare __cmsg_data field if its size would be bigger than 0.
1735         (CMSG_DATA): Adjust accordingly.
1736         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
1737         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
1738         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
1739         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
1740         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
1741         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
1742         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1744 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
1746         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
1747         * iconvdata/testdata/IBM1160: New file.
1748         * iconvdata/testdata/IBM1160..UTF8: New file.
1749         * iconvdata/testdata/IBM1161: New file.
1750         * iconvdata/testdata/IBM1161..UTF8: New file.
1751         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1753 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
1755         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
1756         UL_SETFSIZE computations better.
1758         * rt/Makefile: Remove use of filter for librt again.
1760         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
1761         UL_SETFSIZE computations better.
1763         * string/Versions: Export __strsep for GLIBC_2.2.5.
1764         * string/bits/string2.h: Define all __STRING_INLINE functions if
1765         _FORCE_INLINES is defined.
1766         Use int instead of char of parameter types.
1767         (__strsep): Don't use __strsep_g.  Don't define it.
1768         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
1769         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
1770         __strcpy_small.
1771         (__stpcpy_a_small): Renamed from __stpcpy_small.
1772         (__strcspn_c1): Don't define if _FORCE_INLINES.
1773         (__strspn_c1): Likewise.
1775 2001-09-22  Ben Collins  <bcollins@debian.org>
1777         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
1778         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
1779         * sysdeps/ia64/bits/sigaction.h: Likewise.
1780         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
1782 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
1784         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
1786 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
1788         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
1790 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
1792         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
1794 2001-09-20  H.J. Lu  <hjl@gnu.org>
1796         * include/dlfcn.h (__RTLD_SPROF): New definiton.
1797         * elf/dl-open.c (dl_open_worker): Return immediately after loading
1798         for __RTLD_SPROF.
1799         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
1800         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
1802 2001-09-20  H.J. Lu  <hjl@gnu.org>
1804         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
1805         don't add 1.
1807 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
1809         * nss/getent.c: Accept -s parameter to overwrite rules in
1810         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
1812         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
1813         with as many ".0" as necessary to form a complete address
1814         inet_network understands.
1816         * nss/getent.c: Various cleanups.  Use simpler and fewer function
1817         calls.
1819 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1821         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
1822         _JMPBUF_UNWINDS.
1823         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
1825 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
1827         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
1828         IBM1161.
1829         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
1830         * iconvdata/ibm1160.c: New file.
1831         * iconvdata/ibm1160.h: New file.
1832         * iconvdata/ibm1161.c: New file.
1833         * iconvdata/ibm1161.h: New file.
1834         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1836 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
1838         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
1839         difference between base address and first PT_LOAD's virtual address,
1840         not the base address.
1842 2001-09-11  Tom Rix  <trix@redhat.com>
1844         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
1845         ifdef for __getopt_clean_environment.
1846         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
1848 2001-09-22  Andreas Jaeger  <aj@suse.de>
1850         * elf/reldep4.c (main): Add proper prototype to fix warning.
1852         * elf/reldep5.c (main): Remove unused variable.
1854         * math/math_private.h: Add prototypes.
1856 2001-09-21  Andreas Jaeger  <aj@suse.de>
1858         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
1859         * sysdeps/x86_64/Dist: New file.
1860         * sysdeps/x86_64/soft-fp/Dist: New file.
1862         * sysdeps/gnu/Dist: Remove eval.c.
1864 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
1866         * malloc/memusage.c (realloc): Don't count already allocated
1867         memory in the sums.
1868         (me): Always use dlsym() to find the real implementations.
1870         * malloc/memusage.sh: Make -n option actually do something.
1872 2001-09-20  Andreas Jaeger  <aj@suse.de>
1874         * elf/elf.h (R_390_NUM): Correct value.
1876         * Versions.def: Add missing versions 2.2.3 for libthread_db and
1877         libpthread.
1879         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
1880         for x86-64, install x86-64 into */lib64.
1882         * shlib-versions: Add x86-64.
1884         * elf/elf.h: Add x86-64 relocations.
1886 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
1888         * po/fr.po: Update from translation team.
1890 2001-09-19  Andreas Jaeger  <aj@suse.de>
1892         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
1893         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
1894         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
1895         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
1896         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
1897         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
1898         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
1899         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
1900         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
1901         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
1902         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
1903         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
1904         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
1905         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
1906         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
1907         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
1908         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
1909         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
1910         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
1911         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
1912         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
1913         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
1914         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
1915         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
1916         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
1917         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
1918         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
1919         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
1920         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
1921         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
1922         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
1923         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
1924         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
1925         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
1926         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
1927         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
1928         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
1929         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
1930         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
1931         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
1932         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
1933         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
1934         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
1935         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
1936         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
1937         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
1938         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
1939         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
1940         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
1941         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
1942         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
1943         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
1944         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
1945         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
1946         * sysdeps/unix/x86_64/sysdep.S: New file.
1947         * sysdeps/unix/x86_64/sysdep.h: New file.
1948         * sysdeps/x86_64/Implies: New file.
1949         * sysdeps/x86_64/Makefile: New file.
1950         * sysdeps/x86_64/Versions: New file.
1951         * sysdeps/x86_64/__longjmp.S: New file.
1952         * sysdeps/x86_64/abort-instr.h: New file.
1953         * sysdeps/x86_64/atomicity.h: New file.
1954         * sysdeps/x86_64/bits/endian.h: New file.
1955         * sysdeps/x86_64/bits/setjmp.h: New file.
1956         * sysdeps/x86_64/bits/string.h: New file.
1957         * sysdeps/x86_64/bp-asm.h: New file.
1958         * sysdeps/x86_64/bsd-_setjmp.S: New file.
1959         * sysdeps/x86_64/bsd-setjmp.S: New file.
1960         * sysdeps/x86_64/dl-machine.h: New file.
1961         * sysdeps/x86_64/elf/initfini.c: New file.
1962         * sysdeps/x86_64/elf/start.S: New file.
1963         * sysdeps/x86_64/ffs.c: New file.
1964         * sysdeps/x86_64/ffsll.c: New file.
1965         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
1966         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
1967         * sysdeps/x86_64/fpu/e_acosl.c: New file.
1968         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
1969         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
1970         * sysdeps/x86_64/fpu/e_expl.c: New file.
1971         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
1972         * sysdeps/x86_64/fpu/e_log10l.S: New file.
1973         * sysdeps/x86_64/fpu/e_log2l.S: New file.
1974         * sysdeps/x86_64/fpu/e_logl.S: New file.
1975         * sysdeps/x86_64/fpu/e_powl.S: New file.
1976         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
1977         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
1978         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
1979         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
1980         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
1981         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
1982         * sysdeps/x86_64/fpu/fegetenv.c: New file.
1983         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
1984         * sysdeps/x86_64/fpu/fegetround.c: New file.
1985         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
1986         * sysdeps/x86_64/fpu/fesetenv.c: New file.
1987         * sysdeps/x86_64/fpu/fesetround.c: New file.
1988         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
1989         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
1990         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
1991         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
1992         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
1993         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
1994         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
1995         * sysdeps/x86_64/fpu/s_atanl.c: New file.
1996         * sysdeps/x86_64/fpu/s_cosl.S: New file.
1997         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
1998         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
1999         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
2000         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
2001         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
2002         * sysdeps/x86_64/fpu/s_logbl.c: New file.
2003         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
2004         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
2005         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
2006         * sysdeps/x86_64/fpu/s_rintl.c: New file.
2007         * sysdeps/x86_64/fpu/s_significandl.c: New file.
2008         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
2009         * sysdeps/x86_64/fpu/s_sinl.S: New file.
2010         * sysdeps/x86_64/fpu/s_tanl.S: New file.
2011         * sysdeps/x86_64/gmp-mparam.h: New file.
2012         * sysdeps/x86_64/hp-timing.c: New file.
2013         * sysdeps/x86_64/hp-timing.h: New file.
2014         * sysdeps/x86_64/htonl.S: New file.
2015         * sysdeps/x86_64/memusage.h: New file.
2016         * sysdeps/x86_64/setjmp.S: New file.
2017         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
2018         * sysdeps/x86_64/stackinfo.h: New file.
2019         * sysdeps/x86_64/sysdep.h: New file.
2020         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
2022         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
2023         L Moshier.
2025 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2027         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
2028         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
2030 2001-09-18  Andreas Schwab  <schwab@suse.de>
2032         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
2033         list, now that l_scope is a pointer.
2035         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
2036         scope list.
2038 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2040         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
2041         (elf_machine_rela_relative): Add a missing declaration.
2043 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
2045         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
2046         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
2047         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
2048         ldd-rewrite scripts.
2050 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2052         * elf/ldd.bash.in: Update copyright message.
2054 2001-09-17  H.J. Lu  <hjl@gnu.org>
2056         * hurd/hurdmalloc.c (bcopy): Removed.
2057         (realloc): Replace bcopy with memcpy.
2058         * hurd/path-lookup.c (file_name_path_scan): Likewise.
2059         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
2060         * sunrpc/rpcinfo.c (pmapdump): Likewise.
2062         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
2063         (gethostbyaddr): Likewise.
2064         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
2066 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2068         * sysdeps/gnu/eval.c: Removed.
2070 2001-09-18  Andreas Jaeger  <aj@suse.de>
2072         * sysdeps/i386/fpu/s_logbl.S: Move to ...
2073         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
2075         * sysdeps/i386/fpu/s_rintl.S: Move to ...
2076         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
2078         * sysdeps/i386/fpu/s_significandl.S: Move to ...
2079         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
2081 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
2083         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
2084         nrules value.
2086 2001-09-14  H.J. Lu  <hjl@gnu.org>
2088         * sysdeps/mips/fpu/libm-test-ulps: Updated.
2090 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
2092         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
2093         Patch by Florian La Roche <laroche@redhat.com>.
2095         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
2097         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
2098         ETHER_CRC_LEN.
2100 2001-09-14  Andreas Schwab  <schwab@suse.de>
2102         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
2103         Sumner <bls@sgi.com>.
2104         * posix/execlp.c: Likewise.
2106 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
2108         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
2109         is already found earlier in the search scope.
2111 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
2113         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
2114         filter.
2116 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
2118         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
2120 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
2122         * config.h.in: Enforce optimization to be used.
2123         * Makeconfig (preprocess-versions): Define ASSEMBLER.
2124         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
2125         * posix/Makefile (annexc-CFLAGS): Define to -O.
2126         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
2128 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
2130         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
2131         Patch by Stephan Kulow.
2133 2001-09-08  Ben Collins  <bcollins@debian.org>
2135         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
2136         usage of RESOLVE() (r_type, not reloc->r_type).
2138 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
2140         * elf/dl-object.c: Avoid allocating extra memory block for name.
2141         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
2142         allocated separately.
2143         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2145 2001-09-08  H.J. Lu  <hjl@gnu.org>
2147         * po/zh_TW.po: Fix a typo.
2149 2001-09-07  Tom Rix  <trix@redhat.com>
2151         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
2153 2001-08-26  Tom Rix  <trix@redhat.com>
2155         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
2156         command line options.
2157         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
2158         * sysdeps/unix/sysv/aix/start.c: Removed.
2159         * sysdeps/unix/sysv/aix/start-libc.c: New file.
2160         * sysdeps/unix/sysv/aix/init-first.c: New file.
2161         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
2163 2001-09-08  Ben Collins  <bcollins@debian.org>
2165         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
2166         * sysdeps/generic/dl-machine.h: Likewise.
2167         * sysdeps/hppa/dl-fptr.c: Likewise.
2168         * sysdeps/ia64/dl-fptr.c: Likewise.
2169         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2170         * sysdeps/mips/dl-machine.h: Likewise.
2171         * sysdeps/mips/mips64/dl-machine.h: Likewise.
2172         * sysdeps/powerpc/dl-machine.c: Likewise.
2174 2001-09-07  Ben Collins  <bcollins@debian.org>
2176         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
2178         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
2180 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
2182         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
2183         dependencies if necessary.
2185         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
2186         loaded directly) determine length if l_initfini list by iterating
2187         over its elements.  Minor optimizations.
2188         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
2189         for dependency objects.
2190         If object was already loaded check whether any of the dependencies
2191         is already on the relocation dependency list.  If yes, remove the
2192         latter.  Minor optimizations.
2193         * elf/dl-lookup.c (add_dependency): Add check for self reference of
2194         maps here.  Search l_initfini list only if the object was loaded
2195         directly and not only as a dependency.
2196         (_dl_lookup_symbol): Add relocation dependency also if object
2197         is not in global scope.  Remove test for self-reference here.
2198         (_dl_lookup_versioned_symbol): Likewise.
2199         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
2200         element of first name record.
2201         * elf/loadtest.c: Add some more test to recognize early if an object
2202         wasn't unloaded.
2203         * elf/Makefile: Add rules to build and run reldep5.
2204         * elf/reldep5.c: New file.
2205         * elf/reldepmod5.c: New file.
2206         * elf/reldepmod6.c: New file.
2208         * elf/reldep2.c: Fix typo.
2210 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
2212         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
2213         elements.  Change l_scope to be a pointer only.
2214         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
2215         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
2216         here add searchlist of newly open file to the dependency's scope.
2217         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
2218         only searchlist from its scope.  Free own scope array if necessary.
2219         * elf/Makefile (tests): Add dblload and dblunload now.
2221 2001-09-06  Andreas Jaeger  <aj@suse.de>
2223         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
2224         Stephen L Moshier.
2226 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
2228         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
2229         they both fail.
2230         * elf/dblload.c: New file.
2231         * elf/dblloadmod1.c: New file.
2232         * elf/dblloadmod2.c: New file.
2233         * elf/dblloadmod3.c: New file.
2234         * elf/dblunload.c: New file.
2236 2001-09-04  Richard Henderson  <rth@redhat.com>
2238         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
2239         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
2241 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
2243         Correct very misleading message for error in failed runtime relocation.
2244         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
2245         place of the error.
2246         (_dl_signal_cerror): Likewise.
2247         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
2248         * elf/dl-close.c: Likewise.
2249         * elf/dl-deps.c: Likewise.
2250         * elf/dl-load.c: Likewise.
2251         * elf/dl-lookup.c: Likewise.
2252         * elf/dl-open.c: Likewise.
2253         * elf/dl-reloc.c: Likewise.
2254         * elf/dl-sym.c: Likewise.
2255         * elf/dl-version.c: Likewise.
2256         * sysdeps/generic/dl-sysdep.c: Likewise.
2258 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
2260         * iconv/strtab.c (strtabinit): Initialize null Strent.
2261         (newstring): Move len == 0 handling...
2262         (strtabadd): ...here.
2263         If len == 1, return null Strent.
2264         When inserting a suffix of an existing string, check if
2265         it is not equal to some suffix already recorded.
2266         Copy left and right members over if adding longer string.
2268 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
2270         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
2272         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
2273         (__syscall_gethostname): Add prototype.
2275 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
2277         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
2279 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
2281         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
2283 2001-08-27  Roland McGrath  <roland@frob.com>
2285         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
2286         short, copy that much into NAME anyway before returning error.
2288 2001-09-01  Richard Henderson  <rth@redhat.com>
2290         * sysdeps/alpha/elf/Dist: Remove file.
2291         * sysdeps/alpha/elf/Makefile: Remove file.
2292         * sysdeps/alpha/elf/crtbegin.S: Remove file.
2293         * sysdeps/alpha/elf/crtend.S: Remove file.
2294         * sysdeps/alpha/elf/initfini.c: New file.
2296 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
2298         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
2299         * iconv/tst-iconv3.c: Likewise.
2301 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
2303         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
2305 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
2307         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
2308         export it.
2309         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
2310         * iconv/iconv_prog.c (insert_cache): New function.
2311         (print_known_names): If cache is used call insert_cache to use the
2312         information from the cache [PR libc/2509].
2314 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
2316         * time/strptime.c (strptime_internal): Recognize 'l' format and
2317         handle it like 'I' for symmetry with strftime.
2319 2001-08-31  Richard Henderson  <rth@redhat.com>
2321         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
2322         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
2323         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
2324         (print_statistics): Make scalar unsigned long long.
2325         * sysdeps/alpha/hp-timing.h: New file.
2327 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
2329         * stdio-common/perror.c (perror): Save errno early, pass it
2330         down to perror_internal.
2331         (perror_internal): Add errnum argument.
2333 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
2335         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
2336         Don't add old memory content for R_ALPHA_REFQUAD.
2338 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
2340         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
2341         memory correctly.
2343         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
2344         instead of open, __close instead of close, __getpagesize instead
2345         of getpagesize.
2347         * string/argz-stringify.c (__argz_stringify): Use __strnlen
2348         instead of strnlen.
2349         * include/string.h (strndupa): Redefine here to use __strnlen
2350         instead of strnlen.
2351         * string/strndup.c (__strndup): Use __strnlen not strnlen.
2353         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
2354         connected).
2356 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
2358         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
2359         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
2360         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
2361         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
2362         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
2363         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
2364         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
2366 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
2368         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
2370 2001-08-30  Andreas Jaeger  <aj@suse.de>
2372         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
2373         contributed Stephen L Moshier.
2375 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
2377         * sunrpc/etc.rpc (sgi_fam): Add.
2379 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
2381         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
2383 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
2385         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
2386         first is from a previous call.
2387         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
2389 2001-08-29  Andreas Schwab  <schwab@suse.de>
2391         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
2393 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2395         * config.make.in (INSTALL_SCRIPT): Define.
2396         * Makeconfig (INSTALL_SCRIPT): Define.
2397         * Makerules (do-install-script): New macro to install scripts using
2398         INSTALL_SCRIPT.
2399         (install-bin-script): New rule to install scripts with
2400         do-install-script.
2401         (install-bin-script-nosubdir): New rule.
2402         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
2403         (distinfo-vars): Add $(install-bin-script).
2404         * Rules (others): Likewise.
2405         * Makefile (glibcbug): Install with install-bin-script.
2406         * debug/Makefile (xtrace): Likewise.
2407         (catchsegv): Likewise.
2408         * elf/Makefile (ldd): Likewise.
2409         * malloc/Makefile (mtrace): Likewise.
2410         * timezone/Makefile (tzselect): Likewise.
2412 2001-08-29  H.J. Lu  <hjl@gnu.org>
2414         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
2415         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
2416         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
2418 2001-08-29  Andreas Schwab  <schwab@suse.de>
2420         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
2422 2001-08-28  H.J. Lu  <hjl@gnu.org>
2424         * Makeconfig (combreloc-LDFLAGS): New variable.
2425         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
2426         * config.make.in (have-z-combreloc): New variable.
2427         * configure.in: Substitute libc_cv_z_combreloc.
2429 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
2431         * po/sv.po: Update from translation team.
2432         * po/fr.po: Likewise.
2433         * po/da.po: Likewise.
2435 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2437         * Makerules: Fix a typo: MD% -> MD5.
2439 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
2441         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
2442         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
2444 2001-08-28  Andreas Jaeger  <aj@suse.de>
2446         * manual/libc-texinfo.sh: Add entry about free manuals.
2448         * manual/contrib.texi (Contributors): Fix cross reference.
2450         * manual/libc.texinfo (Copying): Include freemanuals.
2452         * manual/Makefile (appendices): Add freemanuals.
2454         * manual/freemanuals.texi: New file.
2455         Patch by Brian Youmans <3diff@gnu.org>.
2457         * manual/libm-err-tab.pl: Pretty print more platforms, print a
2458         smaller table.
2460         * manual/math.texi (Errors in Math Functions): Fix grammar, start
2461         table on separate page.
2462         Patch by Brian Youmans <3diff@gnu.org>.
2464 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
2466         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
2467         the connection went down after we first used it try to connect
2468         again and resend the message before printing to the console.
2469         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
2471 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
2473         * string/tst-strlen.c (main): Test strnlen (, -1) too.
2474         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
2475         bit set.
2477 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
2479         * iconv/strtab.c (searchstring): Use correct length for comparison.
2480         (strtabadd): Account total size correct if new string has old string as
2481         substring.
2483 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
2485         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
2487 2001-08-27  Andreas Jaeger  <aj@suse.de>
2489         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
2491         * math/libm-test.inc (j0_test): Add extra tests.
2492         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
2493         not x, in Hankel approximation.
2494         Patches by Stephen L Moshier.
2496 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
2498         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
2499         link_map.
2501         * configure.in: Fix test for .rela.dyn section.
2503         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
2505 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
2507         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
2508         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
2509         Pass type_class to _dl_lookup_*.
2510         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
2511         Pass around just type_class instead of noexec, noplt pair.
2512         (_dl_lookup_versioned_symbol): Likewise.
2513         (_dl_lookup_symbol_skip): Pass around just type_class instead of
2514         noexec, noplt pair.
2515         (_dl_lookup_versioned_symbol_skip): Likewise.
2516         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
2517         * elf/do-lookup.h (do_lookup): Likewise.
2518         * include/link.h (struct link_map): Replace noexec and noplt fields
2519         in l_lookup_cache with type_class field.
2520         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
2521         ELF_RTYPE_CLASS_COPY): Define.
2522         Adjust prototypes for _dl_lookup_symbol and
2523         _dl_lookup_versioned_symbol.
2524         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
2525         elf_machine_lookup_noexec_p): Remove.
2526         (elf_machine_type_class): Define.
2527         * sysdeps/arm/dl-machine.h: Likewise.
2528         * sysdeps/hppa/dl-machine.h: Likewise.
2529         * sysdeps/cris/dl-machine.h: Likewise.
2530         * sysdeps/i386/dl-machine.h: Likewise.
2531         * sysdeps/ia64/dl-machine.h: Likewise.
2532         * sysdeps/m68k/dl-machine.h: Likewise.
2533         * sysdeps/mips/mips64/dl-machine.h: Likewise.
2534         * sysdeps/mips/dl-machine.h: Likewise.
2535         * sysdeps/powerpc/dl-machine.h: Likewise.
2536         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2537         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2538         * sysdeps/sh/dl-machine.h: Likewise.
2539         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2540         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2542 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
2544         * manual/message.texi (Advanced gettext functions): Change
2545         description of plural forms for Slovak.
2546         Reported by Marcel Telka <marcel@telka.sk>.
2548         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
2549         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
2551 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
2553         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
2554         typo.  Patch by Florian La Roche <laroche@redhat.com>.
2556 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
2558         * include/link.h (struct link_map): Add l_lookup_cache element.
2559         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
2560         (RESOLVE_MAP): Likewise.
2561         (_dl_relocate_object): Remove cache initialization.
2562         * elf/dl-lookup.c: Rip out cache handling code.
2563         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
2564         declarations.
2566         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
2567         remove some __builtin_expect.
2568         (_dl_lookup_versioned_symbol): Likewise.
2570         * config.h.in: Add HAVE_Z_COMBRELOC.
2571         * configure.in: Add test for -z combreloc.
2573         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
2574         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
2575         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
2576         case to almost no code.
2578 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
2580         * po/tr.po: Update from translation team.
2582 2001-08-24  Andreas Jaeger  <aj@suse.de>
2584         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
2585         make clean works.
2587 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2589         * elf/rtld.c (print_statistics): Printf % after percent values.
2590         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
2592         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
2593         don't have to compute the hash value and initialize current_value.
2594         Move reference_name variable to where it is needed.
2595         (_dl_lookup_versioned_symbol): Likewise.
2597 2001-08-24  Roland McGrath  <roland@frob.com>
2599         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
2600         Just test that strerror returns non-null for a few errno codes.
2602 2001-08-23  Roland McGrath  <roland@frob.com>
2604         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
2605         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
2607         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
2609         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
2610         __mach_reply_port.
2612 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2614         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
2615         returns NULL.
2617         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
2618         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
2619         doesn't do it.
2620         * elf/rtld.c: Include <sys/param.h>.
2621         * elf/dl-reloc.c: Likewise.
2623 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2625         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
2626         empty to prevent junk from being generated.
2627         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
2629 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
2631         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
2632         records.  Rename endrel to relative, initialize it to r, and use it
2633         in elf_machine_rel_relative calls.  Point r after relative relocs.
2635 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2637         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
2638         of R_386_NONE.
2640 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
2642         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
2643         necessary.  Undefine newly defined macros at the end.
2644         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
2645         Rename from elf_machine_rel_relative.
2646         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
2647         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
2648         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
2649         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
2650         Likewise.
2651         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
2652         Likewise.
2653         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
2654         Fix argument types.
2655         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
2656         Fix argument types.
2657         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
2658         Likewise.  Fix argument types.
2659         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
2660         Likewise.  Fix argument types.
2661         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
2662         Fix argument types.
2663         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
2664         ElfW(Rel) in argument.
2665         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
2666         function.
2668 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
2670         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
2672 2001-08-24  Andreas Jaeger  <aj@suse.de>
2674         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
2675         Stephen L Moshier <moshier@mediaone.net>.
2677 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2679         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
2680         first if RELCOUNT is set.
2682         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
2683         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
2684         elf_machine_rel_relative.
2685         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
2686         Minor optimizations.
2687         * sysdeps/arm/dl-machine.h: Likewise.
2688         * sysdeps/cris/dl-machine.h: Likewise.
2689         * sysdeps/hppa/dl-machine.h: Likewise.
2690         * sysdeps/i386/dl-machine.h: Likewise.
2691         * sysdeps/ia64/dl-machine.h: Likewise.
2692         * sysdeps/m68k/dl-machine.h: Likewise.
2693         * sysdeps/mips/dl-machine.h: Likewise.
2694         * sysdeps/powerpc/dl-machine.h: Likewise.
2695         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2696         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2697         * sysdeps/sh/dl-machine.h: Likewise.
2698         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2699         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2701 2001-08-23  Roland McGrath  <roland@frob.com>
2703         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
2705         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
2706         sysdeps/mach version.  Implement counting ("recursive") mutexes
2707         on top of cthreads mutexes.
2708         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
2710         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
2711         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
2712         (__libc_cleanup_region_start, __libc_cleanup_region_end,
2713         __libc_clean_end): Define these to call the cleanup function after
2714         normal exit when they're supposed to.
2716         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
2717         Take new first arg DOIT, a boolean saying whether to really install
2718         any cleanup handler.
2719         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
2720         (__libc_cleanup_end): Likewise.
2721         * sysdeps/generic/bits/libc-lock.h: Same changes.
2722         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
2723         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
2724         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
2725         Likewise.
2726         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
2727         * sysdeps/generic/bits/stdio-lock.h
2728         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
2730 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2732         * elf/ldconfig.c (search_dir): Remove stale symlinks.
2734 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2736         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
2737         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
2738         lookups in cache.
2739         (_dl_lookup_versioned_symbol): Likewise.
2740         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
2741         relocation lookup.
2742         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
2743         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
2744         (lookup_cache, lookup_cache_versioned): Add declarations.
2746 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
2748         * stdlib/tst-random.c (main): Swap parameters in fail call.
2749         Patch by Pete Bevin <pete@petebevin.com>.
2751 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2753         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
2755 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
2757         * malloc/obstack.c: Indent preprocessor directives.
2758         Patch by Jim Meyering <meyering@ascend.com>.
2760         * po/ja.po: Update from translation team.
2762 2001-08-23  Roland McGrath  <roland@frob.com>
2764         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
2766         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
2767         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
2769 2001-08-22  Roland McGrath  <roland@frob.com>
2771         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
2772         __libc_lock_define_recursive.
2773         * elf/dl-open.c: Don't declare it here any more.
2774         * elf/dl-close.c: Likewise.
2775         * elf/dl-lookup.c: Likewise.
2776         * elf/dl-iteratephdr.c: Likewise.
2777         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
2778         __libc_lock_unlock_recursive.
2779         * elf/dl-close.c (_dl_close): Likewise
2780         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
2781         * elf/dl-open.c (_dl_open): Likewise
2783         * sysdeps/generic/bits/libc-lock.h
2784         (__libc_lock_define_recursive): New macro.
2785         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
2786         (_IO_lock_lock): Use __libc_lock_lock_recursive.
2787         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
2789         * conform/conformtest.pl (checknamespace): Sort the output list.
2791         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
2792         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
2793         definitions conditional on [__USE_XOPEN].
2795         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
2796         these unconditionally, not only use [__USE_BSD], so as to match
2797         the sysdeps/unix/sysv/linux files.
2799 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
2801         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
2802         avoid warnings.
2804         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
2805         DL_LOOKUP_ADDRESS.
2807 2001-08-22  Roland McGrath  <roland@frob.com>
2809         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
2810         conditionalization of sa_handler/sa_sigaction member types to
2811         match the sysdeps/unix/sysv/linux file.
2813 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
2815         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
2816         symbol sizes a bit better.
2818         * sysdeps/ia64/strncpy.S: Complete rewrite.
2819         Contributed by Jakub Jelinek <jakub@redhat.com>.
2821         * string/stratcliff.c (main): Add strncpy test.
2823 2001-08-22  Roland McGrath  <roland@frob.com>
2825         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
2826         and don't declare unsetenv or _environ directly.
2827         (unsetenv): Return int, not void.  Use __environ instead of _environ.
2829 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
2831         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
2832         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
2833         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
2834         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
2835         test for cmsg struct size.
2837 2001-04-23  Paul Eggert  <eggert@twinsun.com>
2839         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
2840         Rename __argc to ___argc in prototypes to avoid compatibility
2841         problems with systems that reserve the identifier "__argc".
2842         Similarly for __argv.
2844 2001-08-21  Roland McGrath  <roland@frob.com>
2846         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
2848         * mach/Makefile (tests): Removed.
2849         * mach/hello.c: File removed.
2851 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
2853         * po/sv.po: Update from translation team.
2855         * stdio-common/vfscanf.c: Fix handling of %l[].
2856         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
2858         * libio/Makefile (tests): Add tst-sscanf.
2859         * libio/tst-sscanf.c: New file.
2861         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
2862         * malloc/mtrace.c (tr_where): dli_sname always points to a
2863         non-empty string if != NULL.
2864         Reported by Tim Janik <timj@gtk.org>.
2866 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
2868         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
2869         buf.  Free resources on failure.
2870         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
2871         (makefd_xprt): Likewise.
2872         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
2873         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
2874         * sunrpc/auth_unix.c (authunix_create): Likewise.
2876 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
2878         * string/strnlen.c: Remove.
2879         * sysdeps/generic/strnlen.c: New file.
2880         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
2882 2001-08-21  Roland McGrath  <roland@frob.com>
2884         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
2885         as a macro, not an extern inline function.
2887         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
2888         * Versions.def (libc): Add GLIBC_2.2.5 set.
2889         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
2890         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
2892 2001-08-20  Roland McGrath  <roland@frob.com>
2894         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
2895         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
2897 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
2899         * string/bits/string2.h: Remove strnlen optimization here.
2900         * sysdeps/i386/i486/bits/string.h: Add it here.
2902 2001-08-21  Wolfram Gloger  <wg@malloc.de>
2904         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
2906 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
2908         * po/gl.po: Update from translation team.
2910 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
2912         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
2913         * misc/err.c (convert_and_print): Likewise.
2915         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
2916         function calls.
2918 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2920         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
2921         change of the gregset_t type.
2922         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
2924 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2926         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
2928 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
2930         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
2932         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
2934 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
2936         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
2937         before calling the cthreads initialization code.
2939 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
2941         * argp/argp-help.c: Fix two problems introduced in last change.
2943         * include/dirent.h: Include <dirstream.h> first.
2945 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
2947         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
2949         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
2950         * sunrpc/xdr_rec.c: Likewise.
2951         * sunrpc/xdr_mem.c: Likewise.
2952         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
2953         * sunrpc/rpc_cmsg.c: Likewise.
2954         * sunrpc/getrpcport.c (getrpcport): Likewise.
2955         * sunrpc/clnt_simp.c (callrpc): Likewise.
2956         * sunrpc/clnt_gen.c (clnt_create): Likewise.
2957         * string/envz.c: Likewise.
2959         * po/ko.po: Update from translation team.
2961         * argp/argp-help.c: Handle wide oriented stderr stream.
2963 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
2965         * sysdeps/generic/strtol.c: Little optimizations.  Add some
2966         __builtin_expect.
2968         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
2970         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
2971         * wcsmbs/wcwidth.c (wcwdith): Likewise.
2972         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
2974         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
2976         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
2978         * time/time.h (struct timespec): Use __time_t for tv_sec element.
2980         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
2981         wchar_t for function declarations and defintions.
2983         * misc/sys/select.h: Define __need_time_t before including <time.h>.
2984         Define suseconds_t if it hasn't happened yet.
2986         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
2988         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
2990         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
2991         <stddef.h>.
2993         * conform/data/stddef.h-data: Remove wint_t.
2995         * conform/conformtest.pl: Change namespace test to take #undef
2996         lines into account.
2998         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
3000         * conform/data/sys/socket.h-data: Add sockatmark.
3002 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3004         * io/fts.c: Update from recent BSD source.
3006 2001-08-17  Roland McGrath  <roland@frob.com>
3008         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
3009         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
3010         Likewise.
3012 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3014         * locale/duplocale.c (__duplocale): Also initialize the special
3015         __ctype_* elements.
3017         * conform/data/netdb.h-data: Adjust gai_strerror return type.
3019 2001-08-17  Andreas Jaeger  <aj@suse.de>
3021         * misc/getpass.c: Include wchar.h for prototypes.
3022         * malloc/obstack.c: Likewise.
3024 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3026         * sunrpc/svc_simple.c (universal): Use __write instead of write.
3028         * wcsmbs/wcscoll.c: Also define __wcscoll.
3029         * include/wchar.h: Declare __wcscoll.
3031         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
3032         * libio/vwprintf.c: Likewise.
3033         * libio/wprintf.c: Likewise.
3035         * iconv/gconv_cache.c: Use __munmap instead of munmap.
3037 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
3039         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
3040         instead of mbrtowc.
3041         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
3042         wcslen, and __wcscoll instead of wcscoll.
3044         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
3046         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
3047         __getuid instead of getuid.
3049         * stdio-common/perror.c (perror): Use __close instead of close.
3050         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
3051         * libio/freopen.c (freopen): Likewise.
3052         * libio/freopen64.c (freopen64): Likewise.
3054         * libio/tst-ungetwc2.c (main): Define str const.
3056         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
3057         * libio/fwprintf.c: Also define __fwprintf.
3058         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
3059         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
3060         * assert/assert-perr.c: Likewise.
3061         * assert/assert.c: Likewise.
3062         * gmon/gmon.c: Likewise.
3063         * inet/rcmd.c: Likewise.
3064         * malloc/obstack.c: Likewise.
3065         * misc/err.c: Likewise.
3066         * misc/error.c: Likewise.
3067         * misc/getpass.c: Likewise.
3068         * posix/getopt.c: Likewise.
3069         * resolv/res_hconf.c: Likewise.
3070         * stdio-common/perror.c: Likewise.
3071         * stdio-common/psignal.c: Likewise.
3072         * stdlib/fmtmsg.c: Likewise.
3073         * sunrpc/auth_unix.c: Likewise.
3074         * sunrpc/clnt_perr.c: Likewise.
3075         * sunrpc/clnt_tcp.c: Likewise.
3076         * sunrpc/clnt_udp.c: Likewise.
3077         * sunrpc/clnt_unix.c: Likewise.
3078         * sunrpc/svc_simple.c: Likewise.
3079         * sunrpc/svc_tcp.c: Likewise.
3080         * sunrpc/svc_udp.c: Likewise.
3081         * sunrpc/svc_unix.c: Likewise.
3082         * sunrpc/xdr.c: Likewise.
3083         * sunrpc/xdr_array.c: Likewise.
3084         * sunrpc/xdr_rec.c: Likewise.
3085         * sunrpc/xdr_ref.c: Likewise.
3086         * sysdeps/generic/wordexp.c: Likewise.
3088         * po/it.po: Update from translation team.
3090         * misc/err.c: Handle wide oriented stderr stream.
3092 2001-08-14  Tom Rix  <trix@redhat.com>
3094         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
3095         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
3097 2001-08-13  Tom Rix  <trix@redhat.com>
3099         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
3100         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
3101         and __intptr_t.
3103 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3105         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
3106         Store the access registers to the ucontext structure.
3107         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
3108         Likewise.
3110         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
3111         Load the access registers from the ucontext structure.
3112         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
3113         Likewise.
3115         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
3116         offsets to the new ucontext layout.
3117         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
3119         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
3120         of the ucontext structure.
3121         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3123 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
3125         * misc/error.c (error): Handle wide oriented stderr stream correctly.
3126         (error_at_line): Likewise.
3128         * stdio-common/perror.c (perror): Implement according to standard.
3129         The stream orientation must not be changed if the stream was not
3130         oriented before the call.
3131         * stdio-common/Makefile (tests): Add tst-perror.
3132         * stdio-common/tst-perror.c: New file.
3135 See ChangeLog.12 for earlier changes.