Dummy dl-procinfo.c file for platforms which don't have one.
[glibc.git] / ChangeLog
blob1fa5c0206e7ad24ee621768829838048cfc1a0fc
1 2002-02-01  Andreas Schwab  <schwab@suse.de>
3         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
5 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
7         * elf/rtld.c (_dl_start): Mark as internal_function.
8         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
9         in register.
10         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
11         General pretty printing.
13 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
15         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
16         * elf/dl-reloc.c: Pretty printing.
17         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
18         procinfo-related variables in rtld_global struct.
19         * elf/dl-support.c: Likewise.
20         * elf/rtld.c: Likewise.
21         * sysdeps/i386/i686/Makefile: Likewise.
22         * sysdeps/i386/i686/hp-timing.c: Likewise.
23         * sysdeps/i386/i686/hp-timing.h: Likewise.
24         * sysdeps/ia64/Makefile: Likewise.
25         * sysdeps/ia64/hp-timing.c: Likewise.
26         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
27         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
28         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
29         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
30         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
31         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
32         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
33         * sysdeps/x86_64/Makefile: Likewise.
35         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
36         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
37         _dl_debug_fd to rtld_global.
38         * elf/Versions: Likewise.
39         * elf/dl-close.c: Likewise.
40         * elf/dl-iteratephdr.c: Likewise.
41         * elf/dl-lookup.c: Likewise.
42         * elf/dl-misc.c: Likewise.
43         * elf/dl-open.c: Likewise.
44         * elf/dl-support.c: Likewise.
45         * elf/do-lookup.h: Likewise.
46         * elf/rtld.c: Likewise.
47         * sysdeps/generic/dl-cache.c: Likewise.
48         * sysdeps/generic/dl-sysdep.c: Likewise.
49         * sysdeps/ia64/Versions: Likewise.
50         * sysdeps/unix/clock_gettime.c: Likewise.
51         * sysdeps/unix/clock_settime.c: Likewise.
52         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
53         * sysdeps/sparc/Versions: Removed.
54         * sysdeps/i386/i686/Versions : Removed.
55         * sysdeps/x86_64/Versions: Removed.
56         * configure.in: Define HAVE_PROTECTED if .protected is available.
57         * config.h.in: Add entry for HAVE_PROTECTED.
59 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
61         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
62         code in struct _rtld_global.  Export this struct, remove all
63         exports for the signal variables.
64         * sysdeps/arm/dl-machine: Likewise.
65         * sysdeps/generic/dl-origin: Likewise.
66         * sysdeps/generic/dl-sysdep: Likewise.
67         * sysdeps/generic/dl-cache: Likewise.
68         * sysdeps/hppa/dl-fptr: Likewise.
69         * sysdeps/hppa/dl-machine: Likewise.
70         * sysdeps/cris/dl-machine: Likewise.
71         * sysdeps/i386/dl-machine: Likewise.
72         * sysdeps/ia64/dl-machine: Likewise.
73         * sysdeps/m68k/dl-machine: Likewise.
74         * sysdeps/mach/hurd/dl-sysdep: Likewise.
75         * sysdeps/mips/mips64/dl-machine: Likewise.
76         * sysdeps/mips/dl-machine: Likewise.
77         * sysdeps/powerpc/elf/libc-start: Likewise.
78         * sysdeps/powerpc/dl-machine: Likewise.
79         * sysdeps/powerpc/dl-start: Likewise.
80         * sysdeps/sparc/sparc32/dl-machine: Likewise.
81         * sysdeps/sparc/sparc64/dl-machine: Likewise.
82         * sysdeps/sh/dl-machine: Likewise.
83         * sysdeps/s390/s390-32/dl-machine: Likewise.
84         * sysdeps/s390/s390-64/dl-machine: Likewise.
85         * sysdeps/unix/sysv/aix/libc-start: Likewise.
86         * sysdeps/unix/sysv/aix/start-libc: Likewise.
87         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
88         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
89         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
90         * sysdeps/x86_64/dl-machine: Likewise.
92 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
94         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
95         are too high.
97 2002-01-31  Andreas Schwab  <schwab@suse.de>
99         * sysdeps/posix/readv.c: Check for ssize_t overflow.
101 2002-01-31  Andreas Schwab  <schwab@suse.de>
103         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
104         reference to _dl_pagesize.
106 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
108         * Versions.def [ld]: Add GLIBC_2.3.
109         * elf/dl-addr.c: Move global variables for SHARED code in struct
110         _rtld_global.  Export this struct, remove all exports for the
111         signal variables.
112         * elf/dl-close.c: Likewise.
113         * elf/dl-conflict.c: Likewise.
114         * elf/dl-debug.c: Likewise.
115         * elf/dl-deps.c: Likewise.
116         * elf/dl-dst.h: Likewise.
117         * elf/dl-error.c: Likewise.
118         * elf/dl-fini.c: Likewise.
119         * elf/dl-init.c: Likewise.
120         * elf/dl-iteratephdr.c: Likewise.
121         * elf/dl-libc.c: Likewise.
122         * elf/dl-load.c: Likewise.
123         * elf/dl-lookup.c: Likewise.
124         * elf/dl-minimal.c: Likewise.
125         * elf/dl-object.c: Likewise.
126         * elf/dl-open.c: Likewise.
127         * elf/dl-profile.c: Likewise.
128         * elf/dl-profstub.c: Likewise.
129         * elf/dl-reloc.c: Likewise.
130         * elf/dl-runtime.c: Likewise.
131         * elf/dl-support.c: Likewise.
132         * elf/dl-sym.c: Likewise.
133         * elf/dl-version.c: Likewise.
134         * elf/do-lookup.h: Likewise.
135         * elf/do-rel.h: Likewise.
136         * elf/dynamic-link.h: Likewise.
137         * elf/rtld.c: Likewise.
138         * sysdeps/generic/dl-cache.c: Likewise.
139         * sysdeps/generic/dl-sysdep.c: Likewise.
140         * sysdeps/generic/ldsodefs.h: Likewise.
141         * sysdeps/generic/libc-start.c: Likewise.
142         * sysdeps/i386/dl-machine.h: Likewise.
143         * sysdeps/ia64/dl-fptr.c: Likewise.
144         * sysdeps/ia64/dl-machine.h: Likewise.
145         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
146         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
147         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
148         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
149         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
150         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
151         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
152         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
154 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
156         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
157         to avoid warning
158         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
160         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
161         SHARED version.
162         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
164         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
166 2002-01-29  Ben Collins  <bcollins@debian.org>
168         * string/bits/string2.h (__mempcpy): Protect size arg for
169         addition when using __builtin_memcpy.
171 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
173         * stdlib/Makefile (tests): Add tst-qsort.
174         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
176         * manual/signal.texi (Process Signal Mask): Document that
177         pthread_sigmask, not sigprocmask, must be used in MT programs.
178         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
180         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
181         found.
182         * misc/Makefile (tests): Add tst-hsearch.
183         * misc/tst-hsearch.c: New file.
185 2002-01-18  Wolfram Gloger  <wg@malloc.de>
187         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
188         * malloc/malloc.h: Likewise.
189         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
190         * malloc/arena.c: New file.
191         * malloc/hooks.c: New file.
192         * malloc/tst-mallocstate.c: New file.
193         * malloc/Makefile: Add new testcase tst-mallocstate.
194         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
196 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
198         * stdlib/msort.c: Remove last patch.  The optimization violates the
199         same rule which qsort.c had problems with.
201 2002-01-27  Paul Eggert  <eggert@twinsun.com>
203         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
204         to a pivot element that lies outside the array to be sorted, as
205         ISO C99 requires that the comparison function be called only with
206         addresses of array elements [PR libc/2880].
208 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
210         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
211         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
213         * timezone/asia: Update from tzdata2002b.
214         * timezone/australasia: Likewise.
215         * timezone/backward: Likewise.
216         * timezone/europe: Likewise.
217         * timezone/leapseconds: Likewise.
218         * timezone/iso3166.tab: Likewise.
219         * timezone/zone.tab: Likewise.
221 2002-01-23  Richard Henderson  <rth@redhat.com>
223         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
225 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
227         * string/strxfrm.c: Allocate one more byte for rulearr and clear
228         this element [PR libc/2855].
230         * string/strcoll.c: Handle zero-length arguments specially
231         [PR libc/2856].
233 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
235         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
236         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
237         short lengths and constant src.
238         (strcpy): Don't optimize for gcc 3.0+.
239         (__stpcpy): For gcc 3.0+, don't use
240         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
241         for short string literal src.
243 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
245         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
246         Set for arm, too.
248 2001-01-22  Paul Eggert  <eggert@twinsun.com>
250         * manual/llio.texi (Linked Channels, Cleaning Streams):
251         Make it clearer that a just-opened input stream might need cleaning.
253 2002-01-21  H.J. Lu  <hjl@gnu.org>
255         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
256         Don't use label at end of compound statement.
258 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
260         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
261         Remove test for negative integer arg; sin_pi does it correctly.
263 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
265         * nscd/Makefile (distribute): Filter out xmalloc.c.
267 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
269         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
270         Set offset if read end wasn't the buffer end.
271         (_IO_file_seekoff_mmap): New function.
272         (_IO_file_xsgetn_mmap): New function.
273         (_IO_file_jumps_mmap): Use the two new functions.
274         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
275         != end buffer.
276         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
277         _IO_file_underflow_mmap.
278         * libio/iofopen.c: Don't position file descriptor at end of file.
279         * libio/tst-widetext.c: Improve error messages.
280         * stdio-common/tst-rndseek.c: Likewise.
282 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
284         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
285         end of enum for !_GNU_SOURCE.
286         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
287         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
288         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
289         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
290         values unless _GNU_SOURCE.
292         * iconvdata/tcvn5712-1.c: Minor cleanups.
294 2002-01-18  Andreas Schwab  <schwab@suse.de>
296         * sysdeps/unix/sysv/linux/configure.in
297         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
299 2002-01-16  Roger Sayle  <roger@eyesopen.com>
301         * stdlib/msort.c (msort_with_tmp): Replace implementation with
302         more efficient "Towers of Hanoi" mergesort.
303         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
304         for generic, sizeof(int) and sizeof(long) variants respectively.
306 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
308         * manual/syslog.texi (openlog): Describe possible problems with
309         first parameter.
310         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
312         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
313         * nscd/connections.c (begin_drop_privileges): New function.
314         (finish_drop_privileges): New function.
315         (nscd_init): Call the new functions which also install all groups
316         for the server user.
317         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
318         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
320 2002-01-17  H.J. Lu  <hjl@gnu.org>
322         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
323         `const' from `got'.
325 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
327         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
328         instructions for pointer operations.
329         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
331 2002-01-17  Andreas Jaeger  <aj@suse.de>
333         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
334         __uint128_t build-in.
336         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
337         PowerPC, sync with 2.2 branch.
339 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
341         * posix/getconf.c: Update copyright year.
342         * nss/getent.c: Likewise.
343         * nscd/nscd_nischeck.c: Likewise.
344         * iconv/iconvconfig.c: Likewise.
345         * iconv/iconv_prog.c: Likewise.
346         * elf/ldconfig.c: Likewise.
347         * catgets/gencat.c: Likewise.
348         * csu/version.c: Likewise.
349         * elf/ldd.bash.in: Likewise.
350         * elf/sprof.c (print_version): Likewise.
351         * locale/programs/locale.c: Likewise.
352         * locale/programs/localedef.c: Likewise.
353         * nscd/nscd.c (print_version): Likewise.
354         * debug/xtrace.sh: Likewise.
355         * malloc/memusage.sh: Likewise.
356         * malloc/mtrace.pl: Likewise.
358 2002-01-16  Andreas Schwab  <schwab@suse.de>
360         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
361         reliably remove "-ia64" from rtld name.
363 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
365         * iconvdata/gb18030.c: Bug fixes and support for more characters.
366         Patch by Yu Shao <yshao@redhat.com>.
368 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
370         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
371         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
372         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
374 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
376         * sysdeps/s390/fpu/libm-test-ulps: Update.
378 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
380         * elf/elf.h: Update x86 relocations.
382 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
384         * locale/programs/charmap.c (new_width): Check whether byte
385         sequences for both ends of range have the same length.
387 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
389         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
391 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
393         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
394         string literals.
395         (__full_ieee754_sqrt): Add __attribute_used__.
397 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
399         * sysdeps/generic/group_member.c (__group_member): Also check
400         groups[0] [PR libc/2781].
402 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
404         * Makefile (distribute): Add scripts/cpp.
405         * elf/Makefile (distribute): Add reldep6mod[01234].c,
406         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
407         unwind-dw2-fde.h, and dwarf2.h.
408         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
409         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
410         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
411         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
413 2002-01-07  Roland McGrath  <roland@frob.com>
415         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
416         volatile on type of ARGC so the compiler doesn't get clever.
418 2002-01-07  Andreas Jaeger  <aj@suse.de>
420         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
421         * sysdeps/i386/bits/byteswap.h: Likewise.
422         * sysdeps/ia64/bits/byteswap.h: Likewise.
423         * sysdeps/m68k/bits/byteswap.h: Likewise.
424         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
425         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise.
427 2002-01-02  Bruno Haible  <bruno@clisp.org>
429         * intl/plural.y: Fix %expect count.
431 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
433         * elf/Makefile (routines, shared-only-routines): Add
434         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
435         * elf/elf.h (PT_GNU_EH_FRAME): Define.
436         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
437         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
438         Optimize if .eh_frame section contains no FDEs.
439         (__register_frame, __deregister_frame_info_bases,
440         __deregister_frame): Likewise.
441         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
442         DW_CFA_restore handling.
444 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
446         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
448         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
449         for x < 0.25 and restore original range reduction method.
450         (__ieee754_lgammal_r): Make sure signgam is set before returning.
452 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
454         * libio/fileops.c (_IO_file_underflow_mmap): New function.
455         (_IO_file_close_mmap): New function.
456         (_IO_file_jumps_mmap): New variable.
457         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
458         trying to convert rest of byte buffer.
459         (_IO_wfile_underflow_mmap): New function.
460         (_IO_wfile_jumps_mmap): New variable.
461         * libio/iofopen.c (__fopen_maybe_mmap): New function.
462         (__fopen_internal): New function.  Split out from _IO_new_fopen.
463         (_IO_new_fopen): Call __fopen_internal.
464         * libio/iofopen64.c: Just call __fopen_internal.
465         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
466         successfully.
467         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
468         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
469         _IO_file_close_mmap.
471         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
472         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
474         * stdio-common/Makefile (tests): Add tst-rndseek.
475         * stdio-common/tst-rndseek.c: New file.
477 2002-01-05  Roland McGrath  <roland@frob.com>
479         * config.h.in (HAVE_MIG_RETCODE): New #undef.
480         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
481         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
482         * sysdeps/mach/hurd/configure: Regenerated.
484 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
486         * elf/elf.h: Add more TLS definitions.
488 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
490         * include/features.h (__GLIBC_MINOR__): Bump to 3.
492 2002-01-02  Roland McGrath  <roland@frob.com>
494         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
495         __sigisemptyset.  Don't use MASK uninitialized.
497         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
498         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
499         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
500         __sigdelset, __sigaddset, __sigorset.
502         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
503         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
505         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
506         _hurd_ports is null.
508         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
509         for old CMU and new OSF Mach interface flavors.
510         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
511         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
513         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
515         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
516         Pass extra arguments to task_create for OSF variant.
517         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
519         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
520         conditional on [HAVE_AUX_VECTOR].
522         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
523         mach_msg_timeout_t as type of final argument.
525         * hurd/privports.c (__get_privileged_ports):
526         Change host_priv_t to mach_port_t in argument type.
527         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
528         Update decls.
530         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
531         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
532         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
533         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
534         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
535         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
537 2002-01-01  Roland McGrath  <roland@frob.com>
539         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
541 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
543         * include/stdlib.h: Define inlines for the _l variants of the strto*
544         functions.
546 2002-01-01  Roland McGrath  <roland@frob.com>
548         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
550         * mach/Machrules (MIG): Set CPP as well as CC.
552 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
554         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
555         locale to parse /proc/loadavg [PR libc/2760].
557 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
559         * elf/dl-conflict.c: Include sys/param.h.
560         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
561         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
562         warning.
563         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
564         literals to avoid warnings.
566 2001-12-31  Andreas Jaeger  <aj@suse.de>
568         * configure.in: Don't check for gsed since we do not use it anywhere.
570 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
572         * io/fts.c: Update from BSD to fix memory leaks.
574 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
576         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
577         * elf/chroot_canon.c: Likewise.
578         * elf/dl-object.c: Likewise.
579         * iconv/iconv_charmap.c: Likewise.
580         * iconv/iconv_prog.c: Likewise.
581         * libio/iogetdelim.c: Likewise.
582         * locale/lc-time.c: Likewise.
583         * stdlib/canonicalize.c: Likewise.
584         * sunrpc/svc.c: Likewise.
585         * sysdeps/generic/glob.c: Likewise.
587 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
589         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
590         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
591         remove high order bit from the program counter.
592         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
594 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
596         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
597         unnecessary code and add missing reloc types.
598         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
599         case for reloc type R_390_NONE.
601 2001-12-28  Andreas Jaeger  <aj@suse.de>
603         * io/bug-ftw3.c: Include string.h for prototypes.
605         * crypt/md5test.c (main): Remove unused variable.
607         * dlfcn/modstatic.c: Add prototype to avoid warning.
609 2001-12-26  Roland McGrath  <roland@frob.com>
611         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
612         check only (SS->pending & MASK) for the signal to return.
613         From Jeroen Dekkers <jeroen@dekkers.cx>.
615 2001-12-22  Roland McGrath  <roland@frob.com>
617         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
618         Use preprocessor #if conditionals instead of `if' to avoid
619         warnings about divide by zero in dead code.
621         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
622         _hurd_port_init, and __hurd_self_sigstate.
624         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
626 2001-12-21  Andreas Jaeger  <aj@suse.de>
628         * elf/dblloadmod1.c: Add prototype to avoid warning.
629         * elf/dblloadmod2.c: Likewise.
630         * elf/dblloadmod3.c: Likewise.
631         * elf/reldepmod5.c: Likewise.
632         * elf/reldepmod6.c: Likewise.
634         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
635         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
636         used on all architectures.
638         * sunrpc/svc_tcp.c: Add noreturn attribute for
639         svctcp_rendezvous_abort.
640         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
642         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
643         to avoid warning.
645 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
647         * manual/llio.texi (aio_fsync): Fix a typo.
648         Patch by Tammy Fox <tfox@redhat.com>.
650 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
652         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
653         stack bias from child stack pointer before passing it to clone syscall.
655 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
657         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
658         _SC_TZNAME_MAX.
659         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
660         Reported by Thorsten Kukuk <kukuk@suse.de>.
662         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
663         add some casts.
665         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
667 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
669         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
670         conforming: return EBADF if file descriptor is invalid and EINVAL
671         if file descriptor is no valid tty.
672         * login/tst-grantpt.c: New file.
673         * login/Makefile (tests): Add tst-grantpt.
675 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
677         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
678         different than implemented in last patch.
679         * io/bug-ftw3.c: Adjust test for changed handling of
680         inaccessibility of toplevel dir.
682 2001-12-16  Roland McGrath  <roland@frob.com>
684         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
685         * grp/initgroups.c (internal_getgrouplist): Likewise.
687         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
688         `default:' to silence new GCC warning.
689         Rewrite cast of lvalue to silence new GCC warning.
691         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
693         * sysdeps/mach/hurd/spawni.c: New file, by me with a
694         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
696 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
698         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
699         Patch by Stephen R. van den Berg.
701         * crypt/md5.h: Define md5_uintptr.
703 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
705         * libio/tst_swprintf.c (main): Add test for string argument with
706         zero precision.
707         * stdio-common/Makefile (tests): Add tst-sprintf.
708         * stdio-common/tst-sprintf.c: New file.
710 2001-12-13  Andreas Schwab  <schwab@suse.de>
712         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
713         zero precision with wide character string format.
715 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
717         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
718         but have a user supplied buffer, return the empty buffer, not NULL.
720 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
722         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
723         Patch by Eric Sharkey <sharkey@netrics.com>.
725         * crypt/md5test.c (main): Add test for multiple calls to
726         __md5_process_bytes to itererate over input string.
728 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
730         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
731         from __nis_findfastest.  Take timeout value from parameter.
732         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
733         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
734         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
736 2001-12-12  Andreas Jaeger  <aj@suse.de>
738         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
739         combreloc test so that it works in this case.
741         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
743 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
745         * sysdeps/sh/Makefile: New file.
746         * sysdeps/sh/_mcount.S: New file.
747         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
748         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
750 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
752         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
753         limitation [PR libc/2564].
755 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
757         * elf/Makefile (dl-routines): Add conflict.
758         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
759         (ld.so): Add _begin local symbol.
760         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
761         Define.
762         * elf/dl-deps.c (_dl_build_local_scope): New.
763         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
764         of all libraries.
765         * elf/do-rel.h (VALIDX): Define.
766         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
767         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
768         can be skipped.
769         * elf/dl-conflict.c: New file.
770         * elf/dl-lookup.c (_dl_debug_bindings): New.
771         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
772         non-NULL.
773         (_dl_lookup_symbol_skip): Likewise.
774         (_dl_lookup_versioned_symbol): Likewise.
775         (_dl_lookup_versioned_symbol_skip): Likewise.
776         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
777         define to ElfW(Rel).
778         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
779         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
780         ranges.
781         Don't adjust address dynamic tags if l_addr is 0.
782         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
783         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
784         (VALIDX, ADDRIDX): Define.
785         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
786         (dl_main): Print library list for LD_TRACE_PRELINKING.
787         If prelinking information can be used, skip relocating libraries and
788         call _dl_resolve_conflicts instead.
789         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
790         * elf/dl-load.c (_dl_map_object): Don't create fake libs
791         if LD_TRACE_PRELINKING.
792         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
793         + DT_ADDRNUM.
794         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
795         (DL_DEBUG_PRELINK): Define.
796         (_dl_resolve_conflicts): Add prototype.
798         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
799         .plt for prelinked libraries where prelinking info cannot be used.
800         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
801         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
802         * sysdeps/arm/bits/link.h: New file.
803         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
804         content of .got[1].
805         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
806         (ELF_MACHINE_PLT_REL): Define.
807         (elf_machine_rela, elf_machine_rela_relative): New.
808         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
809         of adjusting it if prelinked and prelinking cannot be used.
810         * sysdeps/i386/bits/link.h: New file.
811         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
812         content of .got[1].
813         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
814         (ELF_MACHINE_PLT_REL): Define.
815         (elf_machine_rela, elf_machine_rela_relative): New.
816         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
817         of adjusting it if prelinked and prelinking cannot be used.
818         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
819         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
820         to find out map for R_PPC_JMP_SLOT relocs.
821         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
822         (OPCODE_BA): Define.
823         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
824         libraries where prelinking info cannot be used.
825         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
826         (elf_machine_fixup_plt): Call sparc_fixup_plt.
827         (elf_machine_rela): Set value to 0 if relocating conflicts.
828         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
829         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
830         (sparc64_fixup_plt): Fix a typo.
831         (elf_machine_rela): Set value to 0 if relocating conflicts.
832         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
833         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
834         libraries where prelinking info cannot be used.
835         * sysdeps/sh/bits/link.h: New file.
836         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
837         content of .got[1].
838         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
839         of adjusting it if prelinked and prelinking cannot be used.
840         * sysdeps/s390/s390-32/bits/link.h: New file.
841         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
842         Save original content of .got[1].
843         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
844         of adjusting it if prelinked and prelinking cannot be used.
845         * sysdeps/s390/s390-64/bits/link.h: New file.
846         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
847         Save original content of .got[1].
848         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
849         of adjusting it if prelinked and prelinking cannot be used.
850         * sysdeps/x86_64/bits/link.h: New file.
851         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
852         Save original content of .got[1].
853         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
854         of adjusting it if prelinked and prelinking cannot be used.
856 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
858         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
859         where appropriate instead of numbers.  Little optimizations.
861 2001-12-10  Roland McGrath  <roland@frob.com>
863         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
864         set it.
866         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
867         set to GLIBC_2.2.5, not GLIBC_2.2.4.
869         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
870         Fix conditionals so this is set by default for stdio and not for libio.
871         * sysdeps/mach/hurd/configure: Regenerated.
873 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
875         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
877 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
879         * io/Makefile (tests): Add bug-ftw3.
880         * io/bug-ftw3.c: New file.
882         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
883         matches and GLOB_NOCHECK is set.
884         * posix/globtest.sh: Correct expected result for NOCHECK test.
886         * po/ca.po: Update from translation team.
888 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
890         Implement transliteration of characters in strings of the locale
891         definitions.
892         * locale/programs/linereader.c: Adjust for additional parameter to
893         lr_token.
894         (get_string): If character <Uxxxx> is not found try to transliterate
895         it.
896         * locale/programs/ld-ctype.c: Adjust for additional parameter to
897         lr_token.  Add const to charmap parameter of all functions.
898         (find_translit, find_translit2): New functions.
899         * locale/programs/charmap.c: Adjust for additional parameter to
900         lr_token.
901         * locale/programs/repertoire.c: Likewise.
902         * locale/programs/linereader.h: Likewise.
903         * locale/programs/ld-address.c: Likewise.  Add const to charmap
904         parameter of all functions.
905         * locale/programs/ld-collate.c: Likewise.
906         * locale/programs/ld-identification.c: Likewise.
907         * locale/programs/ld-measurement.c: Likewise.
908         * locale/programs/ld-messages.c: Likewise.
909         * locale/programs/ld-monetary.c: Likewise.
910         * locale/programs/ld-name.c: Likewise.
911         * locale/programs/ld-numeric.c: Likewise.
912         * locale/programs/ld-paper.c: Likewise.
913         * locale/programs/ld-paper.c: Likewise.
914         * locale/programs/ld-telephone.c: Likewise.
915         * locale/programs/ld-time.c: Likewise.
916         * locale/programs/locfile.c: Likewise.
917         * locale/programs/localedef.c: Likewise.
918         * locale/programs/localedef.h: Likewise.
919         * locale/programs/locfile.h: Likewise.  Add declaration for
920         find_translit.
921         * locale/programs/simple-hash.c: Add const to first parameter of
922         find_entry, iterate_table, and lookup.
923         * locale/programs/simple-hash.h: Likewise.
924         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
925         instead.
926         * include/locale.h: Define __LC_LAST.
927         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
929 2001-12-07  Geoff Keating  <geoffk@redhat.com>
931         * sysdeps/powerpc/Dist: Update for recent FP changes.
932         * sysdeps/powerpc/fpu/Dist: Likewise.
934 2001-12-07  Andreas Schwab  <schwab@suse.de>
936         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
938 2001-12-06  Geoff Keating  <geoffk@redhat.com>
940         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
941         save/restore functions here.
942         (libm-support): Don't define these functions here.
943         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
944         functions here.
945         * sysdeps/powerpc/fe_nomask.c: Move to...
946         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
947         * sysdeps/powerpc/fprrest.S: Move to...
948         * sysdeps/powerpc/fpu/fprrest.S: ... here.
949         * sysdeps/powerpc/fprsave.S: Move to...
950         * sysdeps/powerpc/fpu/fprsave.S: ... here.
952 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
954         * sysdeps/unix/sysv/linux/opensock.c: New file.
956 2001-12-06  Geoff Keating  <geoffk@redhat.com>
958         * config.make.in (with-fp): Define from configure.
959         * configure.in: Substitute with_fp.
960         * configure: Regenerate.
961         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
962         specified, and don't change FPU environment.
964 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
966         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
967         * assert/assert.c: Check result of __asprintf call and don't use
968         string if it failed.
969         * assert/assert-perr.c: Likewise.
970         * inet/rcmd.c: Likewise.
971         * locale/programs/localedef.c (main): Check result of
972         construct_output_path and exit if it failed.
973         (construct_output_path): Check result of asprintf and mkdir calls and
974         fail if they failed.
975         * posix/getopt.c: Check result of __asprintf calls and fail if
976         they failed.
977         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
979 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
981         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
982         patch.
983         * sysdeps/generic/strncase.c: Likewise.
984         * string/tester.c: Add tests for strcasecmp and strncasecmp.
986 2001-12-05  Geoff Keating  <geoffk@redhat.com>
988         * scripts/cpp: Test the exit status from 'type', not 'awk'.
990         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
991         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
992         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
993         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
994         * sysdeps/powerpc/fclrexcpt.c: Move to...
995         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
996         * sysdeps/powerpc/fpu_control.h: Move to...
997         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
999 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1001         * iconvdata/ibm1129.h: Remove duplicate mappings.
1002         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
1003         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
1004         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1006         * timezone/zic.c: Fix handling of turnaround times.
1007         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
1009 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
1011         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
1012         overflow problem.
1014 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1016         * posix/regex.c: For use outside glibc defined bounded pointer
1017         macros here.  Patch by Jim Meyering <jim@meyering.net>.
1019         * iconvdata/Makefile (modules): Add TCVN5712-1.
1020         * iconvdata/TESTS: Add TCVN5712-1.
1021         * iconvdata/gconv-modules: Likewise.
1022         * iconvdata/tcvn5712-1.c: New file.
1023         * iconvdata/testdata/TCVN-5712: New file.
1024         * iconvdata/testdata/TCVN-5712..UTF8: New file.
1026 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
1028         * iconvdata/cp1258.c: Optimize conversion from UCS4.
1030 2001-12-02  Roland McGrath  <roland@frob.com>
1032         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
1034         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
1035         Reported by Jeff Bailey <jbailey@nisa.net>.
1037         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
1038         Reported by Jeff Bailey <jbailey@nisa.net>.
1040         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
1041         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
1042         Reported by Jeff Bailey <jbailey@nisa.net>.
1044 2001-12-01  Roland McGrath  <roland@frob.com>
1046         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
1047         missing backslash in test arguments.
1048         * sysdeps/mach/hurd/configure: Regenerated.
1050 2001-11-26  Roland McGrath  <roland@frob.com>
1052         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
1053         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
1055 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
1057         * iconvdata/Makefile (modules): Add ARMSCII-8.
1058         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
1059         * iconvdata/armscii-8.c: New file.
1061 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
1063         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
1064         don't match, fix {{a,b},c} globbing, clean up.
1065         Patch by Flavio Veloso <flaviovs@magnux.com>.
1066         * posix/globtest.sh: Add new tests.
1068 2001-11-29  Andreas Jaeger  <aj@suse.de>
1070         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
1071         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
1073         * sysdeps/generic/abort.c: Include libioP.h for
1074         _IO_flush_all_lockp prototype.
1076 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
1078         * posix/regex.h: Define __restrict_arr correctly.
1080 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
1082         * iconvdata/ibm1163.c: New file.
1083         * iconvdata/ibm1163.h: New file.
1084         * iconvdata/ibm1164.c: New file.
1085         * iconvdata/ibm1164.h: New file.
1086         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
1087         * iconvdata/Makefile: Likewise.
1088         * iconvdata/testdata/IBM1163: New file.
1089         * iconvdata/testdata/IBM1163..UTF8: New file.
1090         * iconvdata/testdata/IBM1164: New file.
1091         * iconvdata/testdata/IBM1164..UTF8: New file.
1092         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1094         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
1095         * iconvdata/ibm1124.h: Likewise.
1096         * iconvdata/ibm1132.h: Likewise.
1097         * iconvdata/ibm1133.h: Likewise.
1098         * iconvdata/ibm1160.h: Likewise.
1099         * iconvdata/ibm1161.h: Likewise.
1100         * iconvdata/ibm1162.h: Likewise.
1101         * iconvdata/ibm856.h: Likewise.
1102         * iconvdata/ibm922.h: Likewise.
1103         * iconvdata/ibm930.h: Likewise.
1104         * iconvdata/ibm932.h: Likewise.
1105         * iconvdata/ibm933.h: Likewise.
1106         * iconvdata/ibm935.h: Likewise.
1107         * iconvdata/ibm937.h: Likewise.
1108         * iconvdata/ibm939.h: Likewise.
1109         * iconvdata/ibm943.h: Likewise.
1110         * iconvdata/ibm930.c: Pretty printing.
1111         * iconvdata/ibm937.c: Avoid access accross array boundary.
1113         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
1114         the current locale's codeset.
1115         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
1116         empty input string.
1117         * iconv/iconv_prog.c: Pass empty strings as default value for to-
1118         and from-charset.  Don't determine locale's charset here.
1120         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
1121         as the old _IO_flush_all but lock only if parameter is nonzero.
1122         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
1123         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
1124         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
1125         if libio is used [PR libc/2575].
1127 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
1129         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
1130         __signbitl): Only define for ISO C99.
1132 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
1134         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
1135         herrnop to NETDB_INTERNAL if we run out of buffer space.
1137 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
1139         * nss/nss_files/files-XXX.c (internal_getent): Correct input
1140         overflow test for platforms with signed char.
1141         Reported by Andrew Haley <aph@cambridge.redhat.com>.
1143 2001-11-28  Bruno Haible  <bruno@clisp.org>
1145         * locale/programs/simple-hash.c (lookup_2): Remove function.
1146         (insert_entry_2): Call lookup instead of lookup_2.
1148 2001-03-04  Bruno Haible  <bruno@clisp.org>
1150         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
1152 2001-10-31  Bruno Haible  <bruno@clisp.org>
1154         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
1156 2001-03-21  Bruno Haible  <bruno@clisp.org>
1158         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
1159         chokes on empty macro arguments.
1160         * intl/plural.y: Add #pragma for alloca on AIX 3.
1162 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
1164         * intl/dcigettext.c (guess_category_value): Only implement for
1165         glibc.  Otherwise rely on function _nl_locale_name which isn't
1166         present in the glibc sources.
1168 2001-09-24  Bruno Haible  <bruno@clisp.org>
1170         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
1171         transliteration when building on a glibc system but outside glibc.
1173 2001-09-22  Bruno Haible  <bruno@clisp.org>
1175         * intl/plural-eval.c: New file, extracted from dcigettext.c.
1176         * intl/dcigettext.c (plural_eval): Remove function, moved to
1177         intl/plural-eval.c.
1178         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
1179         Include plural-eval.c.
1181 2001-09-22  Bruno Haible  <bruno@clisp.org>
1183         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
1184         don't start with a digit; nplurals must be positive.
1186 2001-09-02  Bruno Haible  <bruno@clisp.org>
1188         * intl/plural-exp.h: New file, extracted from gettextP.h.
1189         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
1190         * intl/gettextP.h (struct expression, struct parse_args,
1191         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
1192         * intl/loadmsgcat.c: Include plural-exp.h.
1193         (PLURAL_PARSE): Move macro to plural-exp.h.
1194         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
1195         plural-exp.c.
1196         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
1197         EXTRACT_PLURAL_EXPRESSION.
1198         (_nl_unload_domain): Update.
1199         * intl/dcigettext.c: Include plural-exp.h.
1200         * intl/plural.y: Include plural-exp.h, not gettextP.h.
1201         (FREE_EXPRESSION): Move macro to plural-exp.h.
1202         * intl/Makefile (routines): Add plural-exp.
1203         (distribute): Add plural-exp.h.
1205 2001-07-28  Bruno Haible  <bruno@clisp.org>
1207         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
1208         isdigit, tolower argument to 'unsigned char'.
1209         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
1210         'unsigned char'.
1211         * intl/localealias.c (read_alias_file): Cast isspace argument to
1212         'unsigned char'.
1214 2001-10-20  Bruno Haible  <bruno@clisp.org>
1216         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
1217         anyway.)
1218         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
1219         with the variable 'index' in plural_lookup.
1220         * intl/l10nflist.c (strchr): Likewise.
1221         * intl/localealias.c (strchr): Likewise.
1223         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
1224         * intl/bindtextdom.c: Likewise.
1225         * intl/dcigettext.c: Likewise.
1226         * intl/dgettext.c: Likewise.
1227         * intl/dngettext.c: Likewise.
1228         * intl/explodename.c: Likewise.
1229         * intl/finddomain.c: Likewise.
1230         * intl/gettext.c: Likewise.
1231         * intl/l10nflist.c: Likewise.
1232         * intl/loadmsgcat.c: Likewise.
1233         * intl/localealias.c: Likewise.
1234         * intl/ngettext.c: Likewise.
1235         * intl/textdomain.c: Likewise.
1236         * intl/gettext.h: Assume <limits.h> exists.
1238 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
1240         * stdio-common/Makefile (tests): Add scanf11.
1241         * stdio-common/scanf11.c: New file.
1243 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
1245         * version.h (RELEASE): Define as development.
1246         (VERSION): Set to 2.2.90.
1248 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
1250         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
1251         * nis/nss_nis/nis-grp.c: Likewise.
1252         * nis/nss_nisplus/nisplus-grp.c: Likewise.
1254         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
1255         * nis/nss_nis/nis-pwd.c: Likewise.
1256         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
1258         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
1259         * nis/nss_nisplus/nisplus-parser.c: Likewise.
1260         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
1262         * nscd/grpcache.c: Use strtoul instead of atol.
1263         * nscd/pwdcache.c: Likewise.
1264         * nss/getent.c: Likewise.
1266 2001-11-27  Paul Eggert  <eggert@twinsun.com>
1268         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
1269         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
1271 2001-11-19  Bruno Haible  <bruno@clisp.org>
1273         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
1274         90%.
1275         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
1276         improves the quality of the hash function, especially for short
1277         strings.
1279 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
1281         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
1282         are found call conv_error and not input_error [PR libc/2669].
1284         * math/bits/mathcalls.h: Mark ceil and floor as const.
1285         Reported by David Mosberger.
1287 2001-11-21  Jim Meyering  <meyering@lucent.com>
1289         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
1290         Define to be __-prefixed.
1291         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
1293 2001-11-26  Andreas Jaeger  <aj@suse.de>
1295         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
1296         avoid warning.
1298 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
1300         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
1301         initialization.
1303         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
1304         unused variables.  Fix threshold for returning 1.0.
1306         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
1307         argument.
1309         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
1310         remove unused variables.
1312         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
1314         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
1315         include local math header files.
1317 2001-11-22  Andreas Jaeger  <aj@suse.de>
1319         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
1320         avoid warning.
1322 2001-11-21  Andreas Jaeger  <aj@suse.de>
1324         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
1326         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
1327         sys/debugreg.h
1329 2001-11-15  Andreas Jaeger  <aj@suse.de>
1331         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
1332         compilers that support it.
1334         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
1335         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
1336         * stdlib/stdlib.h: Likewise.
1338 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
1340         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
1341         statement with gotos.
1342         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
1344 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
1346         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
1348 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
1350         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
1352 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
1353             H.J. Lu  <hjl@gnu.org>
1355         * Versions.def (libc): Add GCC_3.0.
1356         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
1357         if gcc supports this flag.
1358         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
1359         (gcc3): Allow glibc to be compiled with gcc 3.x.
1360         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
1361         * config.make.in (static-libgcc, unwind-find-fde): Add.
1362         * Makerules (build-shlib-helper, build-module-helper): Use it.
1363         * scripts/versions.awk: Make sure GLIBC_ versions come first.
1364         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
1365         necessary.
1366         (_fini): Call __deregister_frame_info_bases if
1367         __register_frame_info_bases was used to register.
1368         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
1369         for GLIBC_2.0.
1370         (__register_frame_info_bases, __register_frame_info_table_bases,
1371         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
1372         * elf/Makefile (routines): Add unwind-dw2-fde.
1373         (shared-only-routines): Add unwind-dw2-fde.
1374         * sysdeps/alpha/gccframe.h: New file.
1375         * sysdeps/arm/gccframe.h: New file.
1376         * sysdeps/generic/framestate.c: New file.
1377         * sysdeps/generic/dwarf2.h: New file.
1378         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
1379         * sysdeps/generic/unwind-dw2-fde.c: New file.
1380         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
1381         * sysdeps/generic/unwind-dw2-fde.h: New file.
1382         * sysdeps/generic/unwind-dw2.c: New file.
1383         * sysdeps/generic/unwind-pe.h: New file.
1384         * sysdeps/generic/unwind.h: New file.
1385         * sysdeps/hppa/gccframe.h: New file.
1386         * sysdeps/i386/gccframe.h: New file.
1387         * sysdeps/m68k/gccframe.h: New file.
1388         * sysdeps/mips/gccframe.h: New file.
1389         * sysdeps/powerpc/gccframe.h: New file.
1390         * sysdeps/s390/gccframe.h: New file.
1391         * sysdeps/sh/gccframe.h: New file.
1392         * sysdeps/sparc/gccframe.h: New file.
1393         * sysdeps/vax/gccframe.h: New file.
1394         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
1395         Set on all architectures except ia64.
1396         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
1397         for i386.
1398         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
1399         __deregister_frame_info): Move to elf/Versions.
1400         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
1401         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
1402         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1403         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
1404         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
1405         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
1406         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
1407         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1408         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
1409         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
1410         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
1411         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
1412         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
1413         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
1414         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
1415         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
1416         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
1417         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
1419 2001-11-15  Jeff Law  <law@redhat.com>
1421         * posix/regex.c (uintptr_t): Do not provide a definition if the
1422         system provided one.
1424 2001-11-13  Roland McGrath  <roland@frob.com>
1426         * stdio-common/tmpfile.c: Moved to ...
1427         * sysdeps/generic/tmpfile.c: ... here.
1428         * sysdeps/mach/hurd/tmpfile.c: New file.
1430         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
1431         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
1432         (fopenport): Define as weak alias.
1434         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
1435         * libio/libioP.h: ... to here.
1437 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
1439         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
1440         program header twice.  Construct list with the needed information.
1442 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
1444         * po/ca.po: Update from translation team.
1446         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
1447         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
1448         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
1449         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
1451 2001-11-10  Andreas Jaeger  <aj@suse.de>
1453         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
1454         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1455         Contributed by Stephen L Moshier <moshier@mediaone.net>.
1457 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
1459         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
1460         correctly.
1461         * elf/dl-load.c (is_dst): New function.
1462         (_dl_dst_count): Use is_dst to check for DST variable.
1463         (_dl_dst_substitute): Likewise.
1465 2001-11-09  Roland McGrath  <roland@frob.com>
1467         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
1468         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
1469         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
1470         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
1471         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
1472         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
1473         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
1474         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
1475         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
1476         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
1477         * sysdeps/mach/hurd/powerpc/Dist: New file.
1479         * hurd/privports.c (__get_privileged_ports):
1480         Only contact the proc server if necessary for this call.
1481         Suggested by Neal H Walfield <neal@cs.uml.edu>.
1482         Check error return for mach_port_mod_refs.
1484 2001-11-09  Andreas Schwab  <schwab@suse.de>
1486         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
1488 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
1490         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
1491         object is always the last in the list.
1492         (_dl_map_object_from_fd): Delete code to remove from object list
1493         when DF_1_NOOPEN is seen.  This is done in lose.
1495 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
1497         * elf/dl-object.c (_dl_new_object): Various small optimizations.
1499 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
1501         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
1502         HWCAP_CHECK macro code.
1504         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
1505         Now returns MAP_FAILED on error.
1506         * elf/rtld.c: Adjust caller.
1507         * sysdeps/generic/dl-cache.c: Likewise.
1508         * sysdeps/generic/ldsodefs.h: Adjust description.
1510         * elf/dl-version.c (match_symbol): Optimize error handling for size.
1511         (_dl_check_map_versions): Likewise.
1513 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
1515         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
1516         _dl_signal_error directly, always use lose.  Set fd to -1 after
1517         file is closed.
1518         (lose): Don't call close if fd == -1.
1520 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
1522         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
1523          Also fix typo @code {mbsinit} to @code{mbsinit}.
1525 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
1527         * elf/dl-profile.c: Replace state variable with simple flag named
1528         running.  Remove commented-out code.
1530         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
1531         (_dl_init_paths): Likewise.
1532         (_dl_map_object_from_fd): Likewise.
1533         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
1535 2001-11-06  Roland McGrath  <roland@frob.com>
1537         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
1538         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
1540         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
1541         sysdeps/powerpc/elf/sysdep.h.
1542         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
1544 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
1546         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
1547         speed.
1548         (process_envvars): Some more optimizations.
1549         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
1551         * elf/elf.h: Add dynamic tag definitions for prelinking.
1553         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
1554         Rewrite code to remove environment varables for SUID binaries.
1555         Small optimization in LD_PROFILE handling.
1556         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
1557         changes.
1558         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
1560         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
1562         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
1563         strings.  Change type of second parameter.
1564         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
1565         for last change.
1567         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
1569 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
1571         * manual/string.texi: Fix typos.
1572         * manual/examples/argp-ex2.c: Likewise.
1574 2001-11-05  Roland McGrath  <roland@frob.com>
1576         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
1577         the more-specific unix/sysv/linux/powerpc file and breaks everything.
1578         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
1579         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
1580         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
1581         here, put under [__ELF__].
1583 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
1585         * manual/charset.texi: Extensive editing work.
1586         * manual/nss.texi: Likewise.
1587         Changes by Dennis Grace <dgrace@us.ibm.com>.
1589 2001-11-04  Roland McGrath  <roland@frob.com>
1591         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
1592         parameter to dir_mkfile.
1594 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
1596         * string/bits/string2.h (__strndup): If n is smaller than len, set
1597         len to n + 1.
1598         * string/tester.c (test_strndup): New function.
1599         (main): Call it.
1601 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
1603         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
1605         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
1606         * scripts/cpp: New file.
1608         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
1609         for rtld_search_dirs content.  Minor optimizations.
1611 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
1613         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
1614         avoiding unnecessary duplication.
1616 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
1618         * elf/dl-load.c (_dl_map_object): If library was found using
1619         LD_LIBRARY_PATH, don't try RUNPATH list.
1621 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1623         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
1624         Correct second argument of register_dump call.
1625         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
1626         Likewise.
1628 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
1630         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
1631         modules.
1632         * iconvdata/TESTS: Likewise.
1633         * iconvdata/gconv-modules: Likewise.
1634         * iconvdata/ibm1132.c: New file.
1635         * iconvdata/ibm1132.h: New file.
1636         * iconvdata/ibm1133.c: New file.
1637         * iconvdata/ibm1133.h: New file.
1638         * iconvdata/ibm1162.c: New file.
1639         * iconvdata/ibm1162.h: New file.
1640         * iconvdata/testdata/IBM1132: New file.
1641         * iconvdata/testdata/IBM1132..UTF8: New file.
1642         * iconvdata/testdata/IBM1133: New file.
1643         * iconvdata/testdata/IBM1133..UTF8: New file.
1644         * iconvdata/testdata/IBM1162: New file.
1645         * iconvdata/testdata/IBM1162..UTF8: New file.
1646         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
1648         * string/string.h: Fix typo in comment.
1649         * wcsmbs/wchar.h: Likewise.
1651 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
1653         * manual/getopt.texi (getopt_long, getopt_long_only): Include
1654         const in type of longopts parameter.
1656 2001-10-29  Andreas Jaeger  <aj@suse.de>
1658         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
1660 2001-10-29  Kevin Ryde  <user42@zip.com.au>
1662         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
1663         output, clarify `#' behaviour on 0.
1664         (Floating-Point Conversions): Clarify that %g only uses %e when
1665         the exponent would be greater than 1.
1667 2001-10-28  Roland McGrath  <roland@frob.com>
1669         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
1670         * sysdeps/mach/powerpc/machine-sp.h: New file.
1671         * sysdeps/mach/powerpc/sysdep.h: New file.
1672         * sysdeps/mach/powerpc/thread_state.h: New file.
1674         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
1675         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
1676         expect to need the same thing on every platform.
1678         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
1679         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
1681         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
1682         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
1683         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
1684         Move all these assembly-related definitions to ...
1685         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
1687         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
1688         by Peter Bruin <pjbruin@dds.nl>.
1690         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
1691         packing results for a `poll' call.
1693 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
1695         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
1696         correctly.
1697         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
1698         bracket expression.
1700         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
1701         nrules value.
1702         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
1704 2001-10-24  H.J. Lu  <hjl@gnu.org>
1706         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
1707         Use __BEGIN_DECLS/__END_DECLS around prototypes.
1708         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
1710 2001-10-21  Jim Meyering  <meyering@lucent.com>
1712         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
1713         this code would end up calling gettext even in packages built
1714         with --disable-nls.
1715         * posix/getopt.c (_): Likewise.
1716         * posix/regex.c (_): Likewise.
1718 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
1720         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
1721         lookup not ip6.int.
1722         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
1723         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
1725 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
1727         * misc/sys/cdefs.h (__attribute_used__): Define.
1728         * elf/rtld.c (_dl_start): Add __attribute_used__.
1729         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
1731 2001-10-25  Andreas Schwab  <schwab@suse.de>
1733         * stdlib/a64l.c: Expect least significant digit first.
1734         * stdlib/l64a.c: Produce least significant digit first.
1735         * stdlib/Makefile (tests): Add test-a64l.
1736         * stdlib/test-a64l.c: New file.
1737         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
1739 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
1741         * po/sk.po: Update from translation team.
1743 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
1745         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
1747 2001-10-18  Andreas Schwab  <schwab@suse.de>
1749         * math/libm-test.inc (print_ulps): Print ulp values rounded to
1750         next whole number.
1751         (print_function_ulps): Likewise.
1752         (print_complex_function_ulps): Likewise.
1753         (print_max_error): Likewise.
1754         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
1756 2001-10-16  Andreas Schwab  <schwab@suse.de>
1758         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
1759         implementation.
1761         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
1762         BSD_SETJMP or BSD__SETJMP is defined, resp.
1763         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
1764         a tail call to __sigsetjmp that would require extending the
1765         caller's frame.
1766         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
1767         * sysdeps/m68k/bsd-setjmp.S: Deleted.
1768         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
1769         Reported by Jes Sorensen <jes@trained-monkey.org>.
1771 2001-10-16  Andreas Jaeger  <aj@suse.de>
1773         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
1774         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
1775         close PR libc/2589.
1777 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
1779         * po/ca.po: New file.  Contributed by the translation team.
1781 2001-10-15  Ralf Baechle  <ralf@gnu.org>
1783         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
1784         a varargs prototype.  Remove dependency from kernel header files.
1786         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
1787         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
1789 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
1791         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
1792         to generate hexadecimal identifier.
1793         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
1795 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
1797         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
1799 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
1801         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
1802         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
1803         Contributed by Stephen L Moshier <moshier@mediaone.net>.
1805         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
1806         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1807         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
1808         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
1809         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
1810         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
1812         * timezone/africa: Update from tzdata2001d.
1813         * timezone/asia: Likewise.
1814         * timezone/australasia: Likewise.
1815         * timezone/backward: Likewise.
1816         * timezone/europe: Likewise.
1817         * timezone/leapseconds: Likewise.
1818         * timezone/northamerica: Likewise.
1819         * timezone/southamerica: Likewise.
1820         * timezone/zone.tab: Likewise.
1822 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1824         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
1825         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
1827 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
1829         * elf/elf.h (PT_TLS): New definition.
1831 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
1833         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
1834         bits/errno.h
1836 2001-10-07  Roland McGrath  <roland@frob.com>
1838         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
1840 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
1842         * elf/elf.h: Add more ELFOSABI_* constants.
1844 2001-10-04  Ben Collins  <bcollins@debian.org>
1846         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
1847         decleration of __need_wchar_t.
1849 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
1851         * string/bits/string2.h (__strsep_g): Add prototype.
1852         (__strsep): Use it.
1853         * string/Versions (__strsep): Remove.
1854         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
1856 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
1858         * manua/llio.texi: Clarify file references added by mmap.
1859         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
1861 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
1863         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
1864         Add sc_loadrs and sc_rbs_bas to match current kernel.
1866 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
1868         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
1870         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
1872 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
1874         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
1875         object has been bumped because of relocation dependency, avoid
1876         duplicates in l_scope.
1877         (show_scope): Fix typos.
1878         * elf/Makefile: Add rules to build and run reldep6.
1879         * elf/reldep6.c: New file.
1880         * elf/reldep6mod0.c: New file.
1881         * elf/reldep6mod1.c: New file.
1882         * elf/reldep6mod2.c: New file.
1883         * elf/reldep6mod3.c: New file.
1884         * elf/reldep6mod4.c: New file.
1886 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
1888         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
1889         sparc64_fixup_plt.
1890         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
1891         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
1892         for non-lazy binding. Fix .plt[32768+] handling.
1893         (elf_machine_plt_value): Don't add addend.
1894         (elf_machine_rela): Call sparc64_fixup_plt instead of
1895         elf_machine_fixup_plt.
1896         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
1897         dynamic linker at 0xfffff800XXXXXXXX.
1899         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
1901 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
1903         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
1905 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
1907         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
1908         declare __cmsg_data field if its size would be bigger than 0.
1909         (CMSG_DATA): Adjust accordingly.
1910         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
1911         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
1912         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
1913         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
1914         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
1915         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
1916         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1918 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
1920         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
1921         * iconvdata/testdata/IBM1160: New file.
1922         * iconvdata/testdata/IBM1160..UTF8: New file.
1923         * iconvdata/testdata/IBM1161: New file.
1924         * iconvdata/testdata/IBM1161..UTF8: New file.
1925         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1927 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
1929         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
1930         UL_SETFSIZE computations better.
1932         * rt/Makefile: Remove use of filter for librt again.
1934         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
1935         UL_SETFSIZE computations better.
1937         * string/Versions: Export __strsep for GLIBC_2.2.5.
1938         * string/bits/string2.h: Define all __STRING_INLINE functions if
1939         _FORCE_INLINES is defined.
1940         Use int instead of char of parameter types.
1941         (__strsep): Don't use __strsep_g.  Don't define it.
1942         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
1943         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
1944         __strcpy_small.
1945         (__stpcpy_a_small): Renamed from __stpcpy_small.
1946         (__strcspn_c1): Don't define if _FORCE_INLINES.
1947         (__strspn_c1): Likewise.
1949 2001-09-22  Ben Collins  <bcollins@debian.org>
1951         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
1952         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
1953         * sysdeps/ia64/bits/sigaction.h: Likewise.
1954         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
1956 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
1958         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
1960 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
1962         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
1964 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
1966         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
1968 2001-09-20  H.J. Lu  <hjl@gnu.org>
1970         * include/dlfcn.h (__RTLD_SPROF): New definiton.
1971         * elf/dl-open.c (dl_open_worker): Return immediately after loading
1972         for __RTLD_SPROF.
1973         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
1974         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
1976 2001-09-20  H.J. Lu  <hjl@gnu.org>
1978         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
1979         don't add 1.
1981 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
1983         * nss/getent.c: Accept -s parameter to overwrite rules in
1984         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
1986         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
1987         with as many ".0" as necessary to form a complete address
1988         inet_network understands.
1990         * nss/getent.c: Various cleanups.  Use simpler and fewer function
1991         calls.
1993 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1995         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
1996         _JMPBUF_UNWINDS.
1997         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
1999 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
2001         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
2002         IBM1161.
2003         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
2004         * iconvdata/ibm1160.c: New file.
2005         * iconvdata/ibm1160.h: New file.
2006         * iconvdata/ibm1161.c: New file.
2007         * iconvdata/ibm1161.h: New file.
2008         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2010 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
2012         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
2013         difference between base address and first PT_LOAD's virtual address,
2014         not the base address.
2016 2001-09-11  Tom Rix  <trix@redhat.com>
2018         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
2019         ifdef for __getopt_clean_environment.
2020         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
2022 2001-09-22  Andreas Jaeger  <aj@suse.de>
2024         * elf/reldep4.c (main): Add proper prototype to fix warning.
2026         * elf/reldep5.c (main): Remove unused variable.
2028         * math/math_private.h: Add prototypes.
2030 2001-09-21  Andreas Jaeger  <aj@suse.de>
2032         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
2033         * sysdeps/x86_64/Dist: New file.
2034         * sysdeps/x86_64/soft-fp/Dist: New file.
2036         * sysdeps/gnu/Dist: Remove eval.c.
2038 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
2040         * malloc/memusage.c (realloc): Don't count already allocated
2041         memory in the sums.
2042         (me): Always use dlsym() to find the real implementations.
2044         * malloc/memusage.sh: Make -n option actually do something.
2046 2001-09-20  Andreas Jaeger  <aj@suse.de>
2048         * elf/elf.h (R_390_NUM): Correct value.
2050         * Versions.def: Add missing versions 2.2.3 for libthread_db and
2051         libpthread.
2053         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
2054         for x86-64, install x86-64 into */lib64.
2056         * shlib-versions: Add x86-64.
2058         * elf/elf.h: Add x86-64 relocations.
2060 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
2062         * po/fr.po: Update from translation team.
2064 2001-09-19  Andreas Jaeger  <aj@suse.de>
2066         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
2067         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
2068         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
2069         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
2070         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
2071         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
2072         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
2073         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
2074         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
2075         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
2076         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
2077         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
2078         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
2079         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
2080         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
2081         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
2082         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
2083         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
2084         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
2085         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
2086         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
2087         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
2088         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
2089         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
2090         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
2091         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
2092         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
2093         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
2094         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
2095         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
2096         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
2097         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
2098         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
2099         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
2100         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
2101         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
2102         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
2103         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
2104         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
2105         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
2106         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
2107         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
2108         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
2109         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
2110         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
2111         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
2112         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
2113         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
2114         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
2115         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
2116         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
2117         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
2118         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
2119         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
2120         * sysdeps/unix/x86_64/sysdep.S: New file.
2121         * sysdeps/unix/x86_64/sysdep.h: New file.
2122         * sysdeps/x86_64/Implies: New file.
2123         * sysdeps/x86_64/Makefile: New file.
2124         * sysdeps/x86_64/Versions: New file.
2125         * sysdeps/x86_64/__longjmp.S: New file.
2126         * sysdeps/x86_64/abort-instr.h: New file.
2127         * sysdeps/x86_64/atomicity.h: New file.
2128         * sysdeps/x86_64/bits/endian.h: New file.
2129         * sysdeps/x86_64/bits/setjmp.h: New file.
2130         * sysdeps/x86_64/bits/string.h: New file.
2131         * sysdeps/x86_64/bp-asm.h: New file.
2132         * sysdeps/x86_64/bsd-_setjmp.S: New file.
2133         * sysdeps/x86_64/bsd-setjmp.S: New file.
2134         * sysdeps/x86_64/dl-machine.h: New file.
2135         * sysdeps/x86_64/elf/initfini.c: New file.
2136         * sysdeps/x86_64/elf/start.S: New file.
2137         * sysdeps/x86_64/ffs.c: New file.
2138         * sysdeps/x86_64/ffsll.c: New file.
2139         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
2140         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
2141         * sysdeps/x86_64/fpu/e_acosl.c: New file.
2142         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
2143         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
2144         * sysdeps/x86_64/fpu/e_expl.c: New file.
2145         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
2146         * sysdeps/x86_64/fpu/e_log10l.S: New file.
2147         * sysdeps/x86_64/fpu/e_log2l.S: New file.
2148         * sysdeps/x86_64/fpu/e_logl.S: New file.
2149         * sysdeps/x86_64/fpu/e_powl.S: New file.
2150         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
2151         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
2152         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
2153         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
2154         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
2155         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
2156         * sysdeps/x86_64/fpu/fegetenv.c: New file.
2157         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
2158         * sysdeps/x86_64/fpu/fegetround.c: New file.
2159         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
2160         * sysdeps/x86_64/fpu/fesetenv.c: New file.
2161         * sysdeps/x86_64/fpu/fesetround.c: New file.
2162         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
2163         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
2164         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
2165         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
2166         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
2167         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
2168         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
2169         * sysdeps/x86_64/fpu/s_atanl.c: New file.
2170         * sysdeps/x86_64/fpu/s_cosl.S: New file.
2171         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
2172         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
2173         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
2174         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
2175         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
2176         * sysdeps/x86_64/fpu/s_logbl.c: New file.
2177         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
2178         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
2179         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
2180         * sysdeps/x86_64/fpu/s_rintl.c: New file.
2181         * sysdeps/x86_64/fpu/s_significandl.c: New file.
2182         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
2183         * sysdeps/x86_64/fpu/s_sinl.S: New file.
2184         * sysdeps/x86_64/fpu/s_tanl.S: New file.
2185         * sysdeps/x86_64/gmp-mparam.h: New file.
2186         * sysdeps/x86_64/hp-timing.c: New file.
2187         * sysdeps/x86_64/hp-timing.h: New file.
2188         * sysdeps/x86_64/htonl.S: New file.
2189         * sysdeps/x86_64/memusage.h: New file.
2190         * sysdeps/x86_64/setjmp.S: New file.
2191         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
2192         * sysdeps/x86_64/stackinfo.h: New file.
2193         * sysdeps/x86_64/sysdep.h: New file.
2194         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
2196         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
2197         L Moshier.
2199 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2201         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
2202         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
2204 2001-09-18  Andreas Schwab  <schwab@suse.de>
2206         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
2207         list, now that l_scope is a pointer.
2209         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
2210         scope list.
2212 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2214         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
2215         (elf_machine_rela_relative): Add a missing declaration.
2217 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
2219         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
2220         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
2221         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
2222         ldd-rewrite scripts.
2224 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2226         * elf/ldd.bash.in: Update copyright message.
2228 2001-09-17  H.J. Lu  <hjl@gnu.org>
2230         * hurd/hurdmalloc.c (bcopy): Removed.
2231         (realloc): Replace bcopy with memcpy.
2232         * hurd/path-lookup.c (file_name_path_scan): Likewise.
2233         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
2234         * sunrpc/rpcinfo.c (pmapdump): Likewise.
2236         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
2237         (gethostbyaddr): Likewise.
2238         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
2240 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2242         * sysdeps/gnu/eval.c: Removed.
2244 2001-09-18  Andreas Jaeger  <aj@suse.de>
2246         * sysdeps/i386/fpu/s_logbl.S: Move to ...
2247         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
2249         * sysdeps/i386/fpu/s_rintl.S: Move to ...
2250         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
2252         * sysdeps/i386/fpu/s_significandl.S: Move to ...
2253         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
2255 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
2257         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
2258         nrules value.
2260 2001-09-14  H.J. Lu  <hjl@gnu.org>
2262         * sysdeps/mips/fpu/libm-test-ulps: Updated.
2264 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
2266         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
2267         Patch by Florian La Roche <laroche@redhat.com>.
2269         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
2271         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
2272         ETHER_CRC_LEN.
2274 2001-09-14  Andreas Schwab  <schwab@suse.de>
2276         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
2277         Sumner <bls@sgi.com>.
2278         * posix/execlp.c: Likewise.
2280 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
2282         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
2283         is already found earlier in the search scope.
2285 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
2287         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
2288         filter.
2290 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
2292         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
2294 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
2296         * config.h.in: Enforce optimization to be used.
2297         * Makeconfig (preprocess-versions): Define ASSEMBLER.
2298         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
2299         * posix/Makefile (annexc-CFLAGS): Define to -O.
2300         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
2302 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
2304         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
2305         Patch by Stephan Kulow.
2307 2001-09-08  Ben Collins  <bcollins@debian.org>
2309         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
2310         usage of RESOLVE() (r_type, not reloc->r_type).
2312 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
2314         * elf/dl-object.c: Avoid allocating extra memory block for name.
2315         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
2316         allocated separately.
2317         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2319 2001-09-08  H.J. Lu  <hjl@gnu.org>
2321         * po/zh_TW.po: Fix a typo.
2323 2001-09-07  Tom Rix  <trix@redhat.com>
2325         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
2327 2001-08-26  Tom Rix  <trix@redhat.com>
2329         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
2330         command line options.
2331         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
2332         * sysdeps/unix/sysv/aix/start.c: Removed.
2333         * sysdeps/unix/sysv/aix/start-libc.c: New file.
2334         * sysdeps/unix/sysv/aix/init-first.c: New file.
2335         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
2337 2001-09-08  Ben Collins  <bcollins@debian.org>
2339         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
2340         * sysdeps/generic/dl-machine.h: Likewise.
2341         * sysdeps/hppa/dl-fptr.c: Likewise.
2342         * sysdeps/ia64/dl-fptr.c: Likewise.
2343         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2344         * sysdeps/mips/dl-machine.h: Likewise.
2345         * sysdeps/mips/mips64/dl-machine.h: Likewise.
2346         * sysdeps/powerpc/dl-machine.c: Likewise.
2348 2001-09-07  Ben Collins  <bcollins@debian.org>
2350         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
2352         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
2354 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
2356         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
2357         dependencies if necessary.
2359         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
2360         loaded directly) determine length if l_initfini list by iterating
2361         over its elements.  Minor optimizations.
2362         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
2363         for dependency objects.
2364         If object was already loaded check whether any of the dependencies
2365         is already on the relocation dependency list.  If yes, remove the
2366         latter.  Minor optimizations.
2367         * elf/dl-lookup.c (add_dependency): Add check for self reference of
2368         maps here.  Search l_initfini list only if the object was loaded
2369         directly and not only as a dependency.
2370         (_dl_lookup_symbol): Add relocation dependency also if object
2371         is not in global scope.  Remove test for self-reference here.
2372         (_dl_lookup_versioned_symbol): Likewise.
2373         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
2374         element of first name record.
2375         * elf/loadtest.c: Add some more test to recognize early if an object
2376         wasn't unloaded.
2377         * elf/Makefile: Add rules to build and run reldep5.
2378         * elf/reldep5.c: New file.
2379         * elf/reldepmod5.c: New file.
2380         * elf/reldepmod6.c: New file.
2382         * elf/reldep2.c: Fix typo.
2384 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
2386         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
2387         elements.  Change l_scope to be a pointer only.
2388         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
2389         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
2390         here add searchlist of newly open file to the dependency's scope.
2391         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
2392         only searchlist from its scope.  Free own scope array if necessary.
2393         * elf/Makefile (tests): Add dblload and dblunload now.
2395 2001-09-06  Andreas Jaeger  <aj@suse.de>
2397         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
2398         Stephen L Moshier.
2400 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
2402         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
2403         they both fail.
2404         * elf/dblload.c: New file.
2405         * elf/dblloadmod1.c: New file.
2406         * elf/dblloadmod2.c: New file.
2407         * elf/dblloadmod3.c: New file.
2408         * elf/dblunload.c: New file.
2410 2001-09-04  Richard Henderson  <rth@redhat.com>
2412         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
2413         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
2415 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
2417         Correct very misleading message for error in failed runtime relocation.
2418         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
2419         place of the error.
2420         (_dl_signal_cerror): Likewise.
2421         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
2422         * elf/dl-close.c: Likewise.
2423         * elf/dl-deps.c: Likewise.
2424         * elf/dl-load.c: Likewise.
2425         * elf/dl-lookup.c: Likewise.
2426         * elf/dl-open.c: Likewise.
2427         * elf/dl-reloc.c: Likewise.
2428         * elf/dl-sym.c: Likewise.
2429         * elf/dl-version.c: Likewise.
2430         * sysdeps/generic/dl-sysdep.c: Likewise.
2432 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
2434         * iconv/strtab.c (strtabinit): Initialize null Strent.
2435         (newstring): Move len == 0 handling...
2436         (strtabadd): ...here.
2437         If len == 1, return null Strent.
2438         When inserting a suffix of an existing string, check if
2439         it is not equal to some suffix already recorded.
2440         Copy left and right members over if adding longer string.
2442 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
2444         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
2446         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
2447         (__syscall_gethostname): Add prototype.
2449 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
2451         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
2453 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
2455         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
2457 2001-08-27  Roland McGrath  <roland@frob.com>
2459         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
2460         short, copy that much into NAME anyway before returning error.
2462 2001-09-01  Richard Henderson  <rth@redhat.com>
2464         * sysdeps/alpha/elf/Dist: Remove file.
2465         * sysdeps/alpha/elf/Makefile: Remove file.
2466         * sysdeps/alpha/elf/crtbegin.S: Remove file.
2467         * sysdeps/alpha/elf/crtend.S: Remove file.
2468         * sysdeps/alpha/elf/initfini.c: New file.
2470 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
2472         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
2473         * iconv/tst-iconv3.c: Likewise.
2475 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
2477         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
2479 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
2481         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
2482         export it.
2483         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
2484         * iconv/iconv_prog.c (insert_cache): New function.
2485         (print_known_names): If cache is used call insert_cache to use the
2486         information from the cache [PR libc/2509].
2488 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
2490         * time/strptime.c (strptime_internal): Recognize 'l' format and
2491         handle it like 'I' for symmetry with strftime.
2493 2001-08-31  Richard Henderson  <rth@redhat.com>
2495         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
2496         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
2497         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
2498         (print_statistics): Make scalar unsigned long long.
2499         * sysdeps/alpha/hp-timing.h: New file.
2501 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
2503         * stdio-common/perror.c (perror): Save errno early, pass it
2504         down to perror_internal.
2505         (perror_internal): Add errnum argument.
2507 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
2509         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
2510         Don't add old memory content for R_ALPHA_REFQUAD.
2512 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
2514         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
2515         memory correctly.
2517         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
2518         instead of open, __close instead of close, __getpagesize instead
2519         of getpagesize.
2521         * string/argz-stringify.c (__argz_stringify): Use __strnlen
2522         instead of strnlen.
2523         * include/string.h (strndupa): Redefine here to use __strnlen
2524         instead of strnlen.
2525         * string/strndup.c (__strndup): Use __strnlen not strnlen.
2527         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
2528         connected).
2530 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
2532         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
2533         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
2534         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
2535         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
2536         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
2537         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
2538         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
2540 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
2542         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
2544 2001-08-30  Andreas Jaeger  <aj@suse.de>
2546         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
2547         contributed Stephen L Moshier.
2549 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
2551         * sunrpc/etc.rpc (sgi_fam): Add.
2553 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
2555         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
2557 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
2559         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
2560         first is from a previous call.
2561         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
2563 2001-08-29  Andreas Schwab  <schwab@suse.de>
2565         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
2567 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2569         * config.make.in (INSTALL_SCRIPT): Define.
2570         * Makeconfig (INSTALL_SCRIPT): Define.
2571         * Makerules (do-install-script): New macro to install scripts using
2572         INSTALL_SCRIPT.
2573         (install-bin-script): New rule to install scripts with
2574         do-install-script.
2575         (install-bin-script-nosubdir): New rule.
2576         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
2577         (distinfo-vars): Add $(install-bin-script).
2578         * Rules (others): Likewise.
2579         * Makefile (glibcbug): Install with install-bin-script.
2580         * debug/Makefile (xtrace): Likewise.
2581         (catchsegv): Likewise.
2582         * elf/Makefile (ldd): Likewise.
2583         * malloc/Makefile (mtrace): Likewise.
2584         * timezone/Makefile (tzselect): Likewise.
2586 2001-08-29  H.J. Lu  <hjl@gnu.org>
2588         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
2589         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
2590         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
2592 2001-08-29  Andreas Schwab  <schwab@suse.de>
2594         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
2596 2001-08-28  H.J. Lu  <hjl@gnu.org>
2598         * Makeconfig (combreloc-LDFLAGS): New variable.
2599         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
2600         * config.make.in (have-z-combreloc): New variable.
2601         * configure.in: Substitute libc_cv_z_combreloc.
2603 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
2605         * po/sv.po: Update from translation team.
2606         * po/fr.po: Likewise.
2607         * po/da.po: Likewise.
2609 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2611         * Makerules: Fix a typo: MD% -> MD5.
2613 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
2615         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
2616         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
2618 2001-08-28  Andreas Jaeger  <aj@suse.de>
2620         * manual/libc-texinfo.sh: Add entry about free manuals.
2622         * manual/contrib.texi (Contributors): Fix cross reference.
2624         * manual/libc.texinfo (Copying): Include freemanuals.
2626         * manual/Makefile (appendices): Add freemanuals.
2628         * manual/freemanuals.texi: New file.
2629         Patch by Brian Youmans <3diff@gnu.org>.
2631         * manual/libm-err-tab.pl: Pretty print more platforms, print a
2632         smaller table.
2634         * manual/math.texi (Errors in Math Functions): Fix grammar, start
2635         table on separate page.
2636         Patch by Brian Youmans <3diff@gnu.org>.
2638 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
2640         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
2641         the connection went down after we first used it try to connect
2642         again and resend the message before printing to the console.
2643         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
2645 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
2647         * string/tst-strlen.c (main): Test strnlen (, -1) too.
2648         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
2649         bit set.
2651 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
2653         * iconv/strtab.c (searchstring): Use correct length for comparison.
2654         (strtabadd): Account total size correct if new string has old string as
2655         substring.
2657 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
2659         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
2661 2001-08-27  Andreas Jaeger  <aj@suse.de>
2663         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
2665         * math/libm-test.inc (j0_test): Add extra tests.
2666         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
2667         not x, in Hankel approximation.
2668         Patches by Stephen L Moshier.
2670 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
2672         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
2673         link_map.
2675         * configure.in: Fix test for .rela.dyn section.
2677         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
2679 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
2681         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
2682         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
2683         Pass type_class to _dl_lookup_*.
2684         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
2685         Pass around just type_class instead of noexec, noplt pair.
2686         (_dl_lookup_versioned_symbol): Likewise.
2687         (_dl_lookup_symbol_skip): Pass around just type_class instead of
2688         noexec, noplt pair.
2689         (_dl_lookup_versioned_symbol_skip): Likewise.
2690         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
2691         * elf/do-lookup.h (do_lookup): Likewise.
2692         * include/link.h (struct link_map): Replace noexec and noplt fields
2693         in l_lookup_cache with type_class field.
2694         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
2695         ELF_RTYPE_CLASS_COPY): Define.
2696         Adjust prototypes for _dl_lookup_symbol and
2697         _dl_lookup_versioned_symbol.
2698         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
2699         elf_machine_lookup_noexec_p): Remove.
2700         (elf_machine_type_class): Define.
2701         * sysdeps/arm/dl-machine.h: Likewise.
2702         * sysdeps/hppa/dl-machine.h: Likewise.
2703         * sysdeps/cris/dl-machine.h: Likewise.
2704         * sysdeps/i386/dl-machine.h: Likewise.
2705         * sysdeps/ia64/dl-machine.h: Likewise.
2706         * sysdeps/m68k/dl-machine.h: Likewise.
2707         * sysdeps/mips/mips64/dl-machine.h: Likewise.
2708         * sysdeps/mips/dl-machine.h: Likewise.
2709         * sysdeps/powerpc/dl-machine.h: Likewise.
2710         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2711         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2712         * sysdeps/sh/dl-machine.h: Likewise.
2713         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2714         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2716 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
2718         * manual/message.texi (Advanced gettext functions): Change
2719         description of plural forms for Slovak.
2720         Reported by Marcel Telka <marcel@telka.sk>.
2722         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
2723         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
2725 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
2727         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
2728         typo.  Patch by Florian La Roche <laroche@redhat.com>.
2730 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
2732         * include/link.h (struct link_map): Add l_lookup_cache element.
2733         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
2734         (RESOLVE_MAP): Likewise.
2735         (_dl_relocate_object): Remove cache initialization.
2736         * elf/dl-lookup.c: Rip out cache handling code.
2737         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
2738         declarations.
2740         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
2741         remove some __builtin_expect.
2742         (_dl_lookup_versioned_symbol): Likewise.
2744         * config.h.in: Add HAVE_Z_COMBRELOC.
2745         * configure.in: Add test for -z combreloc.
2747         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
2748         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
2749         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
2750         case to almost no code.
2752 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
2754         * po/tr.po: Update from translation team.
2756 2001-08-24  Andreas Jaeger  <aj@suse.de>
2758         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
2759         make clean works.
2761 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2763         * elf/rtld.c (print_statistics): Printf % after percent values.
2764         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
2766         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
2767         don't have to compute the hash value and initialize current_value.
2768         Move reference_name variable to where it is needed.
2769         (_dl_lookup_versioned_symbol): Likewise.
2771 2001-08-24  Roland McGrath  <roland@frob.com>
2773         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
2774         Just test that strerror returns non-null for a few errno codes.
2776 2001-08-23  Roland McGrath  <roland@frob.com>
2778         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
2779         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
2781         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
2783         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
2784         __mach_reply_port.
2786 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2788         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
2789         returns NULL.
2791         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
2792         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
2793         doesn't do it.
2794         * elf/rtld.c: Include <sys/param.h>.
2795         * elf/dl-reloc.c: Likewise.
2797 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2799         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
2800         empty to prevent junk from being generated.
2801         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
2803 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
2805         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
2806         records.  Rename endrel to relative, initialize it to r, and use it
2807         in elf_machine_rel_relative calls.  Point r after relative relocs.
2809 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2811         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
2812         of R_386_NONE.
2814 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
2816         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
2817         necessary.  Undefine newly defined macros at the end.
2818         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
2819         Rename from elf_machine_rel_relative.
2820         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
2821         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
2822         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
2823         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
2824         Likewise.
2825         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
2826         Likewise.
2827         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
2828         Fix argument types.
2829         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
2830         Fix argument types.
2831         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
2832         Likewise.  Fix argument types.
2833         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
2834         Likewise.  Fix argument types.
2835         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
2836         Fix argument types.
2837         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
2838         ElfW(Rel) in argument.
2839         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
2840         function.
2842 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
2844         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
2846 2001-08-24  Andreas Jaeger  <aj@suse.de>
2848         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
2849         Stephen L Moshier <moshier@mediaone.net>.
2851 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2853         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
2854         first if RELCOUNT is set.
2856         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
2857         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
2858         elf_machine_rel_relative.
2859         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
2860         Minor optimizations.
2861         * sysdeps/arm/dl-machine.h: Likewise.
2862         * sysdeps/cris/dl-machine.h: Likewise.
2863         * sysdeps/hppa/dl-machine.h: Likewise.
2864         * sysdeps/i386/dl-machine.h: Likewise.
2865         * sysdeps/ia64/dl-machine.h: Likewise.
2866         * sysdeps/m68k/dl-machine.h: Likewise.
2867         * sysdeps/mips/dl-machine.h: Likewise.
2868         * sysdeps/powerpc/dl-machine.h: Likewise.
2869         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2870         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2871         * sysdeps/sh/dl-machine.h: Likewise.
2872         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2873         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2875 2001-08-23  Roland McGrath  <roland@frob.com>
2877         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
2879         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
2880         sysdeps/mach version.  Implement counting ("recursive") mutexes
2881         on top of cthreads mutexes.
2882         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
2884         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
2885         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
2886         (__libc_cleanup_region_start, __libc_cleanup_region_end,
2887         __libc_clean_end): Define these to call the cleanup function after
2888         normal exit when they're supposed to.
2890         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
2891         Take new first arg DOIT, a boolean saying whether to really install
2892         any cleanup handler.
2893         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
2894         (__libc_cleanup_end): Likewise.
2895         * sysdeps/generic/bits/libc-lock.h: Same changes.
2896         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
2897         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
2898         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
2899         Likewise.
2900         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
2901         * sysdeps/generic/bits/stdio-lock.h
2902         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
2904 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2906         * elf/ldconfig.c (search_dir): Remove stale symlinks.
2908 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2910         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
2911         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
2912         lookups in cache.
2913         (_dl_lookup_versioned_symbol): Likewise.
2914         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
2915         relocation lookup.
2916         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
2917         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
2918         (lookup_cache, lookup_cache_versioned): Add declarations.
2920 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
2922         * stdlib/tst-random.c (main): Swap parameters in fail call.
2923         Patch by Pete Bevin <pete@petebevin.com>.
2925 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2927         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
2929 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
2931         * malloc/obstack.c: Indent preprocessor directives.
2932         Patch by Jim Meyering <meyering@ascend.com>.
2934         * po/ja.po: Update from translation team.
2936 2001-08-23  Roland McGrath  <roland@frob.com>
2938         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
2940         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
2941         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
2943 2001-08-22  Roland McGrath  <roland@frob.com>
2945         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
2946         __libc_lock_define_recursive.
2947         * elf/dl-open.c: Don't declare it here any more.
2948         * elf/dl-close.c: Likewise.
2949         * elf/dl-lookup.c: Likewise.
2950         * elf/dl-iteratephdr.c: Likewise.
2951         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
2952         __libc_lock_unlock_recursive.
2953         * elf/dl-close.c (_dl_close): Likewise
2954         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
2955         * elf/dl-open.c (_dl_open): Likewise
2957         * sysdeps/generic/bits/libc-lock.h
2958         (__libc_lock_define_recursive): New macro.
2959         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
2960         (_IO_lock_lock): Use __libc_lock_lock_recursive.
2961         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
2963         * conform/conformtest.pl (checknamespace): Sort the output list.
2965         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
2966         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
2967         definitions conditional on [__USE_XOPEN].
2969         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
2970         these unconditionally, not only use [__USE_BSD], so as to match
2971         the sysdeps/unix/sysv/linux files.
2973 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
2975         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
2976         avoid warnings.
2978         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
2979         DL_LOOKUP_ADDRESS.
2981 2001-08-22  Roland McGrath  <roland@frob.com>
2983         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
2984         conditionalization of sa_handler/sa_sigaction member types to
2985         match the sysdeps/unix/sysv/linux file.
2987 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
2989         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
2990         symbol sizes a bit better.
2992         * sysdeps/ia64/strncpy.S: Complete rewrite.
2993         Contributed by Jakub Jelinek <jakub@redhat.com>.
2995         * string/stratcliff.c (main): Add strncpy test.
2997 2001-08-22  Roland McGrath  <roland@frob.com>
2999         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
3000         and don't declare unsetenv or _environ directly.
3001         (unsetenv): Return int, not void.  Use __environ instead of _environ.
3003 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
3005         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
3006         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
3007         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
3008         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
3009         test for cmsg struct size.
3011 2001-04-23  Paul Eggert  <eggert@twinsun.com>
3013         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
3014         Rename __argc to ___argc in prototypes to avoid compatibility
3015         problems with systems that reserve the identifier "__argc".
3016         Similarly for __argv.
3018 2001-08-21  Roland McGrath  <roland@frob.com>
3020         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
3022         * mach/Makefile (tests): Removed.
3023         * mach/hello.c: File removed.
3025 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3027         * po/sv.po: Update from translation team.
3029         * stdio-common/vfscanf.c: Fix handling of %l[].
3030         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
3032         * libio/Makefile (tests): Add tst-sscanf.
3033         * libio/tst-sscanf.c: New file.
3035         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
3036         * malloc/mtrace.c (tr_where): dli_sname always points to a
3037         non-empty string if != NULL.
3038         Reported by Tim Janik <timj@gtk.org>.
3040 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
3042         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
3043         buf.  Free resources on failure.
3044         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
3045         (makefd_xprt): Likewise.
3046         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
3047         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
3048         * sunrpc/auth_unix.c (authunix_create): Likewise.
3050 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
3052         * string/strnlen.c: Remove.
3053         * sysdeps/generic/strnlen.c: New file.
3054         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
3056 2001-08-21  Roland McGrath  <roland@frob.com>
3058         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
3059         as a macro, not an extern inline function.
3061         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
3062         * Versions.def (libc): Add GLIBC_2.2.5 set.
3063         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
3064         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
3066 2001-08-20  Roland McGrath  <roland@frob.com>
3068         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
3069         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
3071 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
3073         * string/bits/string2.h: Remove strnlen optimization here.
3074         * sysdeps/i386/i486/bits/string.h: Add it here.
3076 2001-08-21  Wolfram Gloger  <wg@malloc.de>
3078         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
3080 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
3082         * po/gl.po: Update from translation team.
3084 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3086         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
3087         * misc/err.c (convert_and_print): Likewise.
3089         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
3090         function calls.
3092 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3094         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
3095         change of the gregset_t type.
3096         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3098 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
3100         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
3102 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3104         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
3106         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
3108 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
3110         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
3111         before calling the cthreads initialization code.
3113 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3115         * argp/argp-help.c: Fix two problems introduced in last change.
3117         * include/dirent.h: Include <dirstream.h> first.
3119 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
3121         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
3123         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
3124         * sunrpc/xdr_rec.c: Likewise.
3125         * sunrpc/xdr_mem.c: Likewise.
3126         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
3127         * sunrpc/rpc_cmsg.c: Likewise.
3128         * sunrpc/getrpcport.c (getrpcport): Likewise.
3129         * sunrpc/clnt_simp.c (callrpc): Likewise.
3130         * sunrpc/clnt_gen.c (clnt_create): Likewise.
3131         * string/envz.c: Likewise.
3133         * po/ko.po: Update from translation team.
3135         * argp/argp-help.c: Handle wide oriented stderr stream.
3137 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
3139         * sysdeps/generic/strtol.c: Little optimizations.  Add some
3140         __builtin_expect.
3142         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
3144         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
3145         * wcsmbs/wcwidth.c (wcwdith): Likewise.
3146         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
3148         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
3150         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
3152         * time/time.h (struct timespec): Use __time_t for tv_sec element.
3154         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
3155         wchar_t for function declarations and defintions.
3157         * misc/sys/select.h: Define __need_time_t before including <time.h>.
3158         Define suseconds_t if it hasn't happened yet.
3160         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
3162         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
3164         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
3165         <stddef.h>.
3167         * conform/data/stddef.h-data: Remove wint_t.
3169         * conform/conformtest.pl: Change namespace test to take #undef
3170         lines into account.
3172         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
3174         * conform/data/sys/socket.h-data: Add sockatmark.
3176 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3178         * io/fts.c: Update from recent BSD source.
3180 2001-08-17  Roland McGrath  <roland@frob.com>
3182         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
3183         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
3184         Likewise.
3186 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3188         * locale/duplocale.c (__duplocale): Also initialize the special
3189         __ctype_* elements.
3191         * conform/data/netdb.h-data: Adjust gai_strerror return type.
3193 2001-08-17  Andreas Jaeger  <aj@suse.de>
3195         * misc/getpass.c: Include wchar.h for prototypes.
3196         * malloc/obstack.c: Likewise.
3198 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3200         * sunrpc/svc_simple.c (universal): Use __write instead of write.
3202         * wcsmbs/wcscoll.c: Also define __wcscoll.
3203         * include/wchar.h: Declare __wcscoll.
3205         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
3206         * libio/vwprintf.c: Likewise.
3207         * libio/wprintf.c: Likewise.
3209         * iconv/gconv_cache.c: Use __munmap instead of munmap.
3211 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
3213         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
3214         instead of mbrtowc.
3215         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
3216         wcslen, and __wcscoll instead of wcscoll.
3218         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
3220         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
3221         __getuid instead of getuid.
3223         * stdio-common/perror.c (perror): Use __close instead of close.
3224         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
3225         * libio/freopen.c (freopen): Likewise.
3226         * libio/freopen64.c (freopen64): Likewise.
3228         * libio/tst-ungetwc2.c (main): Define str const.
3230         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
3231         * libio/fwprintf.c: Also define __fwprintf.
3232         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
3233         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
3234         * assert/assert-perr.c: Likewise.
3235         * assert/assert.c: Likewise.
3236         * gmon/gmon.c: Likewise.
3237         * inet/rcmd.c: Likewise.
3238         * malloc/obstack.c: Likewise.
3239         * misc/err.c: Likewise.
3240         * misc/error.c: Likewise.
3241         * misc/getpass.c: Likewise.
3242         * posix/getopt.c: Likewise.
3243         * resolv/res_hconf.c: Likewise.
3244         * stdio-common/perror.c: Likewise.
3245         * stdio-common/psignal.c: Likewise.
3246         * stdlib/fmtmsg.c: Likewise.
3247         * sunrpc/auth_unix.c: Likewise.
3248         * sunrpc/clnt_perr.c: Likewise.
3249         * sunrpc/clnt_tcp.c: Likewise.
3250         * sunrpc/clnt_udp.c: Likewise.
3251         * sunrpc/clnt_unix.c: Likewise.
3252         * sunrpc/svc_simple.c: Likewise.
3253         * sunrpc/svc_tcp.c: Likewise.
3254         * sunrpc/svc_udp.c: Likewise.
3255         * sunrpc/svc_unix.c: Likewise.
3256         * sunrpc/xdr.c: Likewise.
3257         * sunrpc/xdr_array.c: Likewise.
3258         * sunrpc/xdr_rec.c: Likewise.
3259         * sunrpc/xdr_ref.c: Likewise.
3260         * sysdeps/generic/wordexp.c: Likewise.
3262         * po/it.po: Update from translation team.
3264         * misc/err.c: Handle wide oriented stderr stream.
3266 2001-08-14  Tom Rix  <trix@redhat.com>
3268         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
3269         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
3271 2001-08-13  Tom Rix  <trix@redhat.com>
3273         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
3274         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
3275         and __intptr_t.
3277 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3279         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
3280         Store the access registers to the ucontext structure.
3281         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
3282         Likewise.
3284         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
3285         Load the access registers from the ucontext structure.
3286         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
3287         Likewise.
3289         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
3290         offsets to the new ucontext layout.
3291         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
3293         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
3294         of the ucontext structure.
3295         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3297 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
3299         * misc/error.c (error): Handle wide oriented stderr stream correctly.
3300         (error_at_line): Likewise.
3302         * stdio-common/perror.c (perror): Implement according to standard.
3303         The stream orientation must not be changed if the stream was not
3304         oriented before the call.
3305         * stdio-common/Makefile (tests): Add tst-perror.
3306         * stdio-common/tst-perror.c: New file.
3309 See ChangeLog.12 for earlier changes.