Update.
[glibc.git] / ChangeLog
blob3ed5c393e1e1924df3b79b9047c4cbc7a468b280
1 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
3         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
4         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
5         _dl_debug_fd to rtld_global.
6         * elf/Versions: Likewise.
7         * elf/dl-close.c: Likewise.
8         * elf/dl-iteratephdr.c: Likewise.
9         * elf/dl-lookup.c: Likewise.
10         * elf/dl-misc.c: Likewise.
11         * elf/dl-open.c: Likewise.
12         * elf/dl-support.c: Likewise.
13         * elf/do-lookup.h: Likewise.
14         * elf/rtld.c: Likewise.
15         * sysdeps/generic/dl-cache.c: Likewise.
16         * sysdeps/generic/dl-sysdep.c: Likewise.
17         * sysdeps/ia64/Versions: Likewise.
18         * sysdeps/unix/clock_gettime.c: Likewise.
19         * sysdeps/unix/clock_settime.c: Likewise.
20         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
21         * sysdeps/sparc/Versions: Removed.
22         * sysdeps/i386/i686/Versions : Removed.
23         * sysdeps/x86_64/Versions: Removed.
24         * configure.in: Define HAVE_PROTECTED if .protected is available.
25         * config.h.in: Add entry for HAVE_PROTECTED.
27 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
29         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
30         code in struct _rtld_global.  Export this struct, remove all
31         exports for the signal variables.
32         * sysdeps/arm/dl-machine: Likewise.
33         * sysdeps/generic/dl-origin: Likewise.
34         * sysdeps/generic/dl-sysdep: Likewise.
35         * sysdeps/generic/dl-cache: Likewise.
36         * sysdeps/hppa/dl-fptr: Likewise.
37         * sysdeps/hppa/dl-machine: Likewise.
38         * sysdeps/cris/dl-machine: Likewise.
39         * sysdeps/i386/dl-machine: Likewise.
40         * sysdeps/ia64/dl-machine: Likewise.
41         * sysdeps/m68k/dl-machine: Likewise.
42         * sysdeps/mach/hurd/dl-sysdep: Likewise.
43         * sysdeps/mips/mips64/dl-machine: Likewise.
44         * sysdeps/mips/dl-machine: Likewise.
45         * sysdeps/powerpc/elf/libc-start: Likewise.
46         * sysdeps/powerpc/dl-machine: Likewise.
47         * sysdeps/powerpc/dl-start: Likewise.
48         * sysdeps/sparc/sparc32/dl-machine: Likewise.
49         * sysdeps/sparc/sparc64/dl-machine: Likewise.
50         * sysdeps/sh/dl-machine: Likewise.
51         * sysdeps/s390/s390-32/dl-machine: Likewise.
52         * sysdeps/s390/s390-64/dl-machine: Likewise.
53         * sysdeps/unix/sysv/aix/libc-start: Likewise.
54         * sysdeps/unix/sysv/aix/start-libc: Likewise.
55         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
56         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
57         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
58         * sysdeps/x86_64/dl-machine: Likewise.
60 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
62         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
63         are too high.
65 2002-01-31  Andreas Schwab  <schwab@suse.de>
67         * sysdeps/posix/readv.c: Check for ssize_t overflow.
69 2002-01-31  Andreas Schwab  <schwab@suse.de>
71         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
72         reference to _dl_pagesize.
74 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
76         * Versions.def [ld]: Add GLIBC_2.3.
77         * elf/dl-addr.c: Move global variables for SHARED code in struct
78         _rtld_global.  Export this struct, remove all exports for the
79         signal variables.
80         * elf/dl-close.c: Likewise.
81         * elf/dl-conflict.c: Likewise.
82         * elf/dl-debug.c: Likewise.
83         * elf/dl-deps.c: Likewise.
84         * elf/dl-dst.h: Likewise.
85         * elf/dl-error.c: Likewise.
86         * elf/dl-fini.c: Likewise.
87         * elf/dl-init.c: Likewise.
88         * elf/dl-iteratephdr.c: Likewise.
89         * elf/dl-libc.c: Likewise.
90         * elf/dl-load.c: Likewise.
91         * elf/dl-lookup.c: Likewise.
92         * elf/dl-minimal.c: Likewise.
93         * elf/dl-object.c: Likewise.
94         * elf/dl-open.c: Likewise.
95         * elf/dl-profile.c: Likewise.
96         * elf/dl-profstub.c: Likewise.
97         * elf/dl-reloc.c: Likewise.
98         * elf/dl-runtime.c: Likewise.
99         * elf/dl-support.c: Likewise.
100         * elf/dl-sym.c: Likewise.
101         * elf/dl-version.c: Likewise.
102         * elf/do-lookup.h: Likewise.
103         * elf/do-rel.h: Likewise.
104         * elf/dynamic-link.h: Likewise.
105         * elf/rtld.c: Likewise.
106         * sysdeps/generic/dl-cache.c: Likewise.
107         * sysdeps/generic/dl-sysdep.c: Likewise.
108         * sysdeps/generic/ldsodefs.h: Likewise.
109         * sysdeps/generic/libc-start.c: Likewise.
110         * sysdeps/i386/dl-machine.h: Likewise.
111         * sysdeps/ia64/dl-fptr.c: Likewise.
112         * sysdeps/ia64/dl-machine.h: Likewise.
113         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
114         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
115         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
116         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
117         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
118         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
119         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
120         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
122 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
124         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
125         to avoid warning
126         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
128         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
129         SHARED version.
130         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
132         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
134 2002-01-29  Ben Collins  <bcollins@debian.org>
136         * string/bits/string2.h (__mempcpy): Protect size arg for
137         addition when using __builtin_memcpy.
139 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
141         * stdlib/Makefile (tests): Add tst-qsort.
142         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
144         * manual/signal.texi (Process Signal Mask): Document that
145         pthread_sigmask, not sigprocmask, must be used in MT programs.
146         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
148         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
149         found.
150         * misc/Makefile (tests): Add tst-hsearch.
151         * misc/tst-hsearch.c: New file.
153 2002-01-18  Wolfram Gloger  <wg@malloc.de>
155         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
156         * malloc/malloc.h: Likewise.
157         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
158         * malloc/arena.c: New file.
159         * malloc/hooks.c: New file.
160         * malloc/tst-mallocstate.c: New file.
161         * malloc/Makefile: Add new testcase tst-mallocstate.
162         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
164 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
166         * stdlib/msort.c: Remove last patch.  The optimization violates the
167         same rule which qsort.c had problems with.
169 2002-01-27  Paul Eggert  <eggert@twinsun.com>
171         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
172         to a pivot element that lies outside the array to be sorted, as
173         ISO C99 requires that the comparison function be called only with
174         addresses of array elements [PR libc/2880].
176 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
178         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
179         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
181         * timezone/asia: Update from tzdata2002b.
182         * timezone/australasia: Likewise.
183         * timezone/backward: Likewise.
184         * timezone/europe: Likewise.
185         * timezone/leapseconds: Likewise.
186         * timezone/iso3166.tab: Likewise.
187         * timezone/zone.tab: Likewise.
189 2002-01-23  Richard Henderson  <rth@redhat.com>
191         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
193 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
195         * string/strxfrm.c: Allocate one more byte for rulearr and clear
196         this element [PR libc/2855].
198         * string/strcoll.c: Handle zero-length arguments specially
199         [PR libc/2856].
201 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
203         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
204         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
205         short lengths and constant src.
206         (strcpy): Don't optimize for gcc 3.0+.
207         (__stpcpy): For gcc 3.0+, don't use
208         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
209         for short string literal src.
211 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
213         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
214         Set for arm, too.
216 2001-01-22  Paul Eggert  <eggert@twinsun.com>
218         * manual/llio.texi (Linked Channels, Cleaning Streams):
219         Make it clearer that a just-opened input stream might need cleaning.
221 2002-01-21  H.J. Lu  <hjl@gnu.org>
223         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
224         Don't use label at end of compound statement.
226 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
228         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
229         Remove test for negative integer arg; sin_pi does it correctly.
231 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
233         * nscd/Makefile (distribute): Filter out xmalloc.c.
235 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
237         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
238         Set offset if read end wasn't the buffer end.
239         (_IO_file_seekoff_mmap): New function.
240         (_IO_file_xsgetn_mmap): New function.
241         (_IO_file_jumps_mmap): Use the two new functions.
242         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
243         != end buffer.
244         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
245         _IO_file_underflow_mmap.
246         * libio/iofopen.c: Don't position file descriptor at end of file.
247         * libio/tst-widetext.c: Improve error messages.
248         * stdio-common/tst-rndseek.c: Likewise.
250 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
252         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
253         end of enum for !_GNU_SOURCE.
254         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
255         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
256         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
257         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
258         values unless _GNU_SOURCE.
260         * iconvdata/tcvn5712-1.c: Minor cleanups.
262 2002-01-18  Andreas Schwab  <schwab@suse.de>
264         * sysdeps/unix/sysv/linux/configure.in
265         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
267 2002-01-16  Roger Sayle  <roger@eyesopen.com>
269         * stdlib/msort.c (msort_with_tmp): Replace implementation with
270         more efficient "Towers of Hanoi" mergesort.
271         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
272         for generic, sizeof(int) and sizeof(long) variants respectively.
274 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
276         * manual/syslog.texi (openlog): Describe possible problems with
277         first parameter.
278         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
280         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
281         * nscd/connections.c (begin_drop_privileges): New function.
282         (finish_drop_privileges): New function.
283         (nscd_init): Call the new functions which also install all groups
284         for the server user.
285         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
286         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
288 2002-01-17  H.J. Lu  <hjl@gnu.org>
290         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
291         `const' from `got'.
293 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
295         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
296         instructions for pointer operations.
297         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
299 2002-01-17  Andreas Jaeger  <aj@suse.de>
301         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
302         __uint128_t build-in.
304         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
305         PowerPC, sync with 2.2 branch.
307 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
309         * posix/getconf.c: Update copyright year.
310         * nss/getent.c: Likewise.
311         * nscd/nscd_nischeck.c: Likewise.
312         * iconv/iconvconfig.c: Likewise.
313         * iconv/iconv_prog.c: Likewise.
314         * elf/ldconfig.c: Likewise.
315         * catgets/gencat.c: Likewise.
316         * csu/version.c: Likewise.
317         * elf/ldd.bash.in: Likewise.
318         * elf/sprof.c (print_version): Likewise.
319         * locale/programs/locale.c: Likewise.
320         * locale/programs/localedef.c: Likewise.
321         * nscd/nscd.c (print_version): Likewise.
322         * debug/xtrace.sh: Likewise.
323         * malloc/memusage.sh: Likewise.
324         * malloc/mtrace.pl: Likewise.
326 2002-01-16  Andreas Schwab  <schwab@suse.de>
328         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
329         reliably remove "-ia64" from rtld name.
331 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
333         * iconvdata/gb18030.c: Bug fixes and support for more characters.
334         Patch by Yu Shao <yshao@redhat.com>.
336 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
338         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
339         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
340         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
342 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
344         * sysdeps/s390/fpu/libm-test-ulps: Update.
346 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
348         * elf/elf.h: Update x86 relocations.
350 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
352         * locale/programs/charmap.c (new_width): Check whether byte
353         sequences for both ends of range have the same length.
355 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
357         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
359 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
361         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
362         string literals.
363         (__full_ieee754_sqrt): Add __attribute_used__.
365 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
367         * sysdeps/generic/group_member.c (__group_member): Also check
368         groups[0] [PR libc/2781].
370 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
372         * Makefile (distribute): Add scripts/cpp.
373         * elf/Makefile (distribute): Add reldep6mod[01234].c,
374         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
375         unwind-dw2-fde.h, and dwarf2.h.
376         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
377         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
378         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
379         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
381 2002-01-07  Roland McGrath  <roland@frob.com>
383         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
384         volatile on type of ARGC so the compiler doesn't get clever.
386 2002-01-07  Andreas Jaeger  <aj@suse.de>
388         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
389         * sysdeps/i386/bits/byteswap.h: Likewise.
390         * sysdeps/ia64/bits/byteswap.h: Likewise.
391         * sysdeps/m68k/bits/byteswap.h: Likewise.
392         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
393         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise.
395 2002-01-02  Bruno Haible  <bruno@clisp.org>
397         * intl/plural.y: Fix %expect count.
399 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
401         * elf/Makefile (routines, shared-only-routines): Add
402         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
403         * elf/elf.h (PT_GNU_EH_FRAME): Define.
404         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
405         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
406         Optimize if .eh_frame section contains no FDEs.
407         (__register_frame, __deregister_frame_info_bases,
408         __deregister_frame): Likewise.
409         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
410         DW_CFA_restore handling.
412 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
414         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
416         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
417         for x < 0.25 and restore original range reduction method.
418         (__ieee754_lgammal_r): Make sure signgam is set before returning.
420 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
422         * libio/fileops.c (_IO_file_underflow_mmap): New function.
423         (_IO_file_close_mmap): New function.
424         (_IO_file_jumps_mmap): New variable.
425         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
426         trying to convert rest of byte buffer.
427         (_IO_wfile_underflow_mmap): New function.
428         (_IO_wfile_jumps_mmap): New variable.
429         * libio/iofopen.c (__fopen_maybe_mmap): New function.
430         (__fopen_internal): New function.  Split out from _IO_new_fopen.
431         (_IO_new_fopen): Call __fopen_internal.
432         * libio/iofopen64.c: Just call __fopen_internal.
433         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
434         successfully.
435         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
436         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
437         _IO_file_close_mmap.
439         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
440         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
442         * stdio-common/Makefile (tests): Add tst-rndseek.
443         * stdio-common/tst-rndseek.c: New file.
445 2002-01-05  Roland McGrath  <roland@frob.com>
447         * config.h.in (HAVE_MIG_RETCODE): New #undef.
448         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
449         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
450         * sysdeps/mach/hurd/configure: Regenerated.
452 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
454         * elf/elf.h: Add more TLS definitions.
456 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
458         * include/features.h (__GLIBC_MINOR__): Bump to 3.
460 2002-01-02  Roland McGrath  <roland@frob.com>
462         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
463         __sigisemptyset.  Don't use MASK uninitialized.
465         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
466         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
467         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
468         __sigdelset, __sigaddset, __sigorset.
470         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
471         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
473         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
474         _hurd_ports is null.
476         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
477         for old CMU and new OSF Mach interface flavors.
478         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
479         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
481         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
483         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
484         Pass extra arguments to task_create for OSF variant.
485         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
487         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
488         conditional on [HAVE_AUX_VECTOR].
490         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
491         mach_msg_timeout_t as type of final argument.
493         * hurd/privports.c (__get_privileged_ports):
494         Change host_priv_t to mach_port_t in argument type.
495         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
496         Update decls.
498         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
499         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
500         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
501         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
502         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
503         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
505 2002-01-01  Roland McGrath  <roland@frob.com>
507         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
509 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
511         * include/stdlib.h: Define inlines for the _l variants of the strto*
512         functions.
514 2002-01-01  Roland McGrath  <roland@frob.com>
516         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
518         * mach/Machrules (MIG): Set CPP as well as CC.
520 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
522         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
523         locale to parse /proc/loadavg [PR libc/2760].
525 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
527         * elf/dl-conflict.c: Include sys/param.h.
528         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
529         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
530         warning.
531         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
532         literals to avoid warnings.
534 2001-12-31  Andreas Jaeger  <aj@suse.de>
536         * configure.in: Don't check for gsed since we do not use it anywhere.
538 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
540         * io/fts.c: Update from BSD to fix memory leaks.
542 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
544         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
545         * elf/chroot_canon.c: Likewise.
546         * elf/dl-object.c: Likewise.
547         * iconv/iconv_charmap.c: Likewise.
548         * iconv/iconv_prog.c: Likewise.
549         * libio/iogetdelim.c: Likewise.
550         * locale/lc-time.c: Likewise.
551         * stdlib/canonicalize.c: Likewise.
552         * sunrpc/svc.c: Likewise.
553         * sysdeps/generic/glob.c: Likewise.
555 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
557         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
558         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
559         remove high order bit from the program counter.
560         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
562 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
564         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
565         unnecessary code and add missing reloc types.
566         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
567         case for reloc type R_390_NONE.
569 2001-12-28  Andreas Jaeger  <aj@suse.de>
571         * io/bug-ftw3.c: Include string.h for prototypes.
573         * crypt/md5test.c (main): Remove unused variable.
575         * dlfcn/modstatic.c: Add prototype to avoid warning.
577 2001-12-26  Roland McGrath  <roland@frob.com>
579         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
580         check only (SS->pending & MASK) for the signal to return.
581         From Jeroen Dekkers <jeroen@dekkers.cx>.
583 2001-12-22  Roland McGrath  <roland@frob.com>
585         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
586         Use preprocessor #if conditionals instead of `if' to avoid
587         warnings about divide by zero in dead code.
589         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
590         _hurd_port_init, and __hurd_self_sigstate.
592         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
594 2001-12-21  Andreas Jaeger  <aj@suse.de>
596         * elf/dblloadmod1.c: Add prototype to avoid warning.
597         * elf/dblloadmod2.c: Likewise.
598         * elf/dblloadmod3.c: Likewise.
599         * elf/reldepmod5.c: Likewise.
600         * elf/reldepmod6.c: Likewise.
602         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
603         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
604         used on all architectures.
606         * sunrpc/svc_tcp.c: Add noreturn attribute for
607         svctcp_rendezvous_abort.
608         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
610         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
611         to avoid warning.
613 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
615         * manual/llio.texi (aio_fsync): Fix a typo.
616         Patch by Tammy Fox <tfox@redhat.com>.
618 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
620         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
621         stack bias from child stack pointer before passing it to clone syscall.
623 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
625         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
626         _SC_TZNAME_MAX.
627         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
628         Reported by Thorsten Kukuk <kukuk@suse.de>.
630         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
631         add some casts.
633         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
635 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
637         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
638         conforming: return EBADF if file descriptor is invalid and EINVAL
639         if file descriptor is no valid tty.
640         * login/tst-grantpt.c: New file.
641         * login/Makefile (tests): Add tst-grantpt.
643 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
645         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
646         different than implemented in last patch.
647         * io/bug-ftw3.c: Adjust test for changed handling of
648         inaccessibility of toplevel dir.
650 2001-12-16  Roland McGrath  <roland@frob.com>
652         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
653         * grp/initgroups.c (internal_getgrouplist): Likewise.
655         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
656         `default:' to silence new GCC warning.
657         Rewrite cast of lvalue to silence new GCC warning.
659         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
661         * sysdeps/mach/hurd/spawni.c: New file, by me with a
662         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
664 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
666         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
667         Patch by Stephen R. van den Berg.
669         * crypt/md5.h: Define md5_uintptr.
671 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
673         * libio/tst_swprintf.c (main): Add test for string argument with
674         zero precision.
675         * stdio-common/Makefile (tests): Add tst-sprintf.
676         * stdio-common/tst-sprintf.c: New file.
678 2001-12-13  Andreas Schwab  <schwab@suse.de>
680         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
681         zero precision with wide character string format.
683 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
685         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
686         but have a user supplied buffer, return the empty buffer, not NULL.
688 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
690         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
691         Patch by Eric Sharkey <sharkey@netrics.com>.
693         * crypt/md5test.c (main): Add test for multiple calls to
694         __md5_process_bytes to itererate over input string.
696 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
698         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
699         from __nis_findfastest.  Take timeout value from parameter.
700         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
701         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
702         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
704 2001-12-12  Andreas Jaeger  <aj@suse.de>
706         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
707         combreloc test so that it works in this case.
709         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
711 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
713         * sysdeps/sh/Makefile: New file.
714         * sysdeps/sh/_mcount.S: New file.
715         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
716         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
718 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
720         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
721         limitation [PR libc/2564].
723 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
725         * elf/Makefile (dl-routines): Add conflict.
726         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
727         (ld.so): Add _begin local symbol.
728         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
729         Define.
730         * elf/dl-deps.c (_dl_build_local_scope): New.
731         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
732         of all libraries.
733         * elf/do-rel.h (VALIDX): Define.
734         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
735         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
736         can be skipped.
737         * elf/dl-conflict.c: New file.
738         * elf/dl-lookup.c (_dl_debug_bindings): New.
739         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
740         non-NULL.
741         (_dl_lookup_symbol_skip): Likewise.
742         (_dl_lookup_versioned_symbol): Likewise.
743         (_dl_lookup_versioned_symbol_skip): Likewise.
744         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
745         define to ElfW(Rel).
746         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
747         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
748         ranges.
749         Don't adjust address dynamic tags if l_addr is 0.
750         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
751         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
752         (VALIDX, ADDRIDX): Define.
753         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
754         (dl_main): Print library list for LD_TRACE_PRELINKING.
755         If prelinking information can be used, skip relocating libraries and
756         call _dl_resolve_conflicts instead.
757         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
758         * elf/dl-load.c (_dl_map_object): Don't create fake libs
759         if LD_TRACE_PRELINKING.
760         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
761         + DT_ADDRNUM.
762         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
763         (DL_DEBUG_PRELINK): Define.
764         (_dl_resolve_conflicts): Add prototype.
766         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
767         .plt for prelinked libraries where prelinking info cannot be used.
768         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
769         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
770         * sysdeps/arm/bits/link.h: New file.
771         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
772         content of .got[1].
773         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
774         (ELF_MACHINE_PLT_REL): Define.
775         (elf_machine_rela, elf_machine_rela_relative): New.
776         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
777         of adjusting it if prelinked and prelinking cannot be used.
778         * sysdeps/i386/bits/link.h: New file.
779         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
780         content of .got[1].
781         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
782         (ELF_MACHINE_PLT_REL): Define.
783         (elf_machine_rela, elf_machine_rela_relative): New.
784         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
785         of adjusting it if prelinked and prelinking cannot be used.
786         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
787         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
788         to find out map for R_PPC_JMP_SLOT relocs.
789         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
790         (OPCODE_BA): Define.
791         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
792         libraries where prelinking info cannot be used.
793         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
794         (elf_machine_fixup_plt): Call sparc_fixup_plt.
795         (elf_machine_rela): Set value to 0 if relocating conflicts.
796         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
797         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
798         (sparc64_fixup_plt): Fix a typo.
799         (elf_machine_rela): Set value to 0 if relocating conflicts.
800         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
801         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
802         libraries where prelinking info cannot be used.
803         * sysdeps/sh/bits/link.h: New file.
804         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
805         content of .got[1].
806         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
807         of adjusting it if prelinked and prelinking cannot be used.
808         * sysdeps/s390/s390-32/bits/link.h: New file.
809         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
810         Save original content of .got[1].
811         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
812         of adjusting it if prelinked and prelinking cannot be used.
813         * sysdeps/s390/s390-64/bits/link.h: New file.
814         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
815         Save original content of .got[1].
816         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
817         of adjusting it if prelinked and prelinking cannot be used.
818         * sysdeps/x86_64/bits/link.h: New file.
819         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
820         Save original content of .got[1].
821         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
822         of adjusting it if prelinked and prelinking cannot be used.
824 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
826         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
827         where appropriate instead of numbers.  Little optimizations.
829 2001-12-10  Roland McGrath  <roland@frob.com>
831         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
832         set it.
834         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
835         set to GLIBC_2.2.5, not GLIBC_2.2.4.
837         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
838         Fix conditionals so this is set by default for stdio and not for libio.
839         * sysdeps/mach/hurd/configure: Regenerated.
841 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
843         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
845 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
847         * io/Makefile (tests): Add bug-ftw3.
848         * io/bug-ftw3.c: New file.
850         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
851         matches and GLOB_NOCHECK is set.
852         * posix/globtest.sh: Correct expected result for NOCHECK test.
854         * po/ca.po: Update from translation team.
856 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
858         Implement transliteration of characters in strings of the locale
859         definitions.
860         * locale/programs/linereader.c: Adjust for additional parameter to
861         lr_token.
862         (get_string): If character <Uxxxx> is not found try to transliterate
863         it.
864         * locale/programs/ld-ctype.c: Adjust for additional parameter to
865         lr_token.  Add const to charmap parameter of all functions.
866         (find_translit, find_translit2): New functions.
867         * locale/programs/charmap.c: Adjust for additional parameter to
868         lr_token.
869         * locale/programs/repertoire.c: Likewise.
870         * locale/programs/linereader.h: Likewise.
871         * locale/programs/ld-address.c: Likewise.  Add const to charmap
872         parameter of all functions.
873         * locale/programs/ld-collate.c: Likewise.
874         * locale/programs/ld-identification.c: Likewise.
875         * locale/programs/ld-measurement.c: Likewise.
876         * locale/programs/ld-messages.c: Likewise.
877         * locale/programs/ld-monetary.c: Likewise.
878         * locale/programs/ld-name.c: Likewise.
879         * locale/programs/ld-numeric.c: Likewise.
880         * locale/programs/ld-paper.c: Likewise.
881         * locale/programs/ld-paper.c: Likewise.
882         * locale/programs/ld-telephone.c: Likewise.
883         * locale/programs/ld-time.c: Likewise.
884         * locale/programs/locfile.c: Likewise.
885         * locale/programs/localedef.c: Likewise.
886         * locale/programs/localedef.h: Likewise.
887         * locale/programs/locfile.h: Likewise.  Add declaration for
888         find_translit.
889         * locale/programs/simple-hash.c: Add const to first parameter of
890         find_entry, iterate_table, and lookup.
891         * locale/programs/simple-hash.h: Likewise.
892         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
893         instead.
894         * include/locale.h: Define __LC_LAST.
895         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
897 2001-12-07  Geoff Keating  <geoffk@redhat.com>
899         * sysdeps/powerpc/Dist: Update for recent FP changes.
900         * sysdeps/powerpc/fpu/Dist: Likewise.
902 2001-12-07  Andreas Schwab  <schwab@suse.de>
904         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
906 2001-12-06  Geoff Keating  <geoffk@redhat.com>
908         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
909         save/restore functions here.
910         (libm-support): Don't define these functions here.
911         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
912         functions here.
913         * sysdeps/powerpc/fe_nomask.c: Move to...
914         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
915         * sysdeps/powerpc/fprrest.S: Move to...
916         * sysdeps/powerpc/fpu/fprrest.S: ... here.
917         * sysdeps/powerpc/fprsave.S: Move to...
918         * sysdeps/powerpc/fpu/fprsave.S: ... here.
920 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
922         * sysdeps/unix/sysv/linux/opensock.c: New file.
924 2001-12-06  Geoff Keating  <geoffk@redhat.com>
926         * config.make.in (with-fp): Define from configure.
927         * configure.in: Substitute with_fp.
928         * configure: Regenerate.
929         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
930         specified, and don't change FPU environment.
932 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
934         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
935         * assert/assert.c: Check result of __asprintf call and don't use
936         string if it failed.
937         * assert/assert-perr.c: Likewise.
938         * inet/rcmd.c: Likewise.
939         * locale/programs/localedef.c (main): Check result of
940         construct_output_path and exit if it failed.
941         (construct_output_path): Check result of asprintf and mkdir calls and
942         fail if they failed.
943         * posix/getopt.c: Check result of __asprintf calls and fail if
944         they failed.
945         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
947 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
949         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
950         patch.
951         * sysdeps/generic/strncase.c: Likewise.
952         * string/tester.c: Add tests for strcasecmp and strncasecmp.
954 2001-12-05  Geoff Keating  <geoffk@redhat.com>
956         * scripts/cpp: Test the exit status from 'type', not 'awk'.
958         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
959         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
960         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
961         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
962         * sysdeps/powerpc/fclrexcpt.c: Move to...
963         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
964         * sysdeps/powerpc/fpu_control.h: Move to...
965         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
967 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
969         * iconvdata/ibm1129.h: Remove duplicate mappings.
970         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
971         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
972         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
974         * timezone/zic.c: Fix handling of turnaround times.
975         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
977 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
979         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
980         overflow problem.
982 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
984         * posix/regex.c: For use outside glibc defined bounded pointer
985         macros here.  Patch by Jim Meyering <jim@meyering.net>.
987         * iconvdata/Makefile (modules): Add TCVN5712-1.
988         * iconvdata/TESTS: Add TCVN5712-1.
989         * iconvdata/gconv-modules: Likewise.
990         * iconvdata/tcvn5712-1.c: New file.
991         * iconvdata/testdata/TCVN-5712: New file.
992         * iconvdata/testdata/TCVN-5712..UTF8: New file.
994 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
996         * iconvdata/cp1258.c: Optimize conversion from UCS4.
998 2001-12-02  Roland McGrath  <roland@frob.com>
1000         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
1002         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
1003         Reported by Jeff Bailey <jbailey@nisa.net>.
1005         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
1006         Reported by Jeff Bailey <jbailey@nisa.net>.
1008         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
1009         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
1010         Reported by Jeff Bailey <jbailey@nisa.net>.
1012 2001-12-01  Roland McGrath  <roland@frob.com>
1014         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
1015         missing backslash in test arguments.
1016         * sysdeps/mach/hurd/configure: Regenerated.
1018 2001-11-26  Roland McGrath  <roland@frob.com>
1020         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
1021         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
1023 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
1025         * iconvdata/Makefile (modules): Add ARMSCII-8.
1026         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
1027         * iconvdata/armscii-8.c: New file.
1029 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
1031         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
1032         don't match, fix {{a,b},c} globbing, clean up.
1033         Patch by Flavio Veloso <flaviovs@magnux.com>.
1034         * posix/globtest.sh: Add new tests.
1036 2001-11-29  Andreas Jaeger  <aj@suse.de>
1038         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
1039         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
1041         * sysdeps/generic/abort.c: Include libioP.h for
1042         _IO_flush_all_lockp prototype.
1044 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
1046         * posix/regex.h: Define __restrict_arr correctly.
1048 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
1050         * iconvdata/ibm1163.c: New file.
1051         * iconvdata/ibm1163.h: New file.
1052         * iconvdata/ibm1164.c: New file.
1053         * iconvdata/ibm1164.h: New file.
1054         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
1055         * iconvdata/Makefile: Likewise.
1056         * iconvdata/testdata/IBM1163: New file.
1057         * iconvdata/testdata/IBM1163..UTF8: New file.
1058         * iconvdata/testdata/IBM1164: New file.
1059         * iconvdata/testdata/IBM1164..UTF8: New file.
1060         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1062         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
1063         * iconvdata/ibm1124.h: Likewise.
1064         * iconvdata/ibm1132.h: Likewise.
1065         * iconvdata/ibm1133.h: Likewise.
1066         * iconvdata/ibm1160.h: Likewise.
1067         * iconvdata/ibm1161.h: Likewise.
1068         * iconvdata/ibm1162.h: Likewise.
1069         * iconvdata/ibm856.h: Likewise.
1070         * iconvdata/ibm922.h: Likewise.
1071         * iconvdata/ibm930.h: Likewise.
1072         * iconvdata/ibm932.h: Likewise.
1073         * iconvdata/ibm933.h: Likewise.
1074         * iconvdata/ibm935.h: Likewise.
1075         * iconvdata/ibm937.h: Likewise.
1076         * iconvdata/ibm939.h: Likewise.
1077         * iconvdata/ibm943.h: Likewise.
1078         * iconvdata/ibm930.c: Pretty printing.
1079         * iconvdata/ibm937.c: Avoid access accross array boundary.
1081         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
1082         the current locale's codeset.
1083         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
1084         empty input string.
1085         * iconv/iconv_prog.c: Pass empty strings as default value for to-
1086         and from-charset.  Don't determine locale's charset here.
1088         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
1089         as the old _IO_flush_all but lock only if parameter is nonzero.
1090         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
1091         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
1092         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
1093         if libio is used [PR libc/2575].
1095 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
1097         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
1098         __signbitl): Only define for ISO C99.
1100 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
1102         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
1103         herrnop to NETDB_INTERNAL if we run out of buffer space.
1105 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
1107         * nss/nss_files/files-XXX.c (internal_getent): Correct input
1108         overflow test for platforms with signed char.
1109         Reported by Andrew Haley <aph@cambridge.redhat.com>.
1111 2001-11-28  Bruno Haible  <bruno@clisp.org>
1113         * locale/programs/simple-hash.c (lookup_2): Remove function.
1114         (insert_entry_2): Call lookup instead of lookup_2.
1116 2001-03-04  Bruno Haible  <bruno@clisp.org>
1118         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
1120 2001-10-31  Bruno Haible  <bruno@clisp.org>
1122         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
1124 2001-03-21  Bruno Haible  <bruno@clisp.org>
1126         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
1127         chokes on empty macro arguments.
1128         * intl/plural.y: Add #pragma for alloca on AIX 3.
1130 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
1132         * intl/dcigettext.c (guess_category_value): Only implement for
1133         glibc.  Otherwise rely on function _nl_locale_name which isn't
1134         present in the glibc sources.
1136 2001-09-24  Bruno Haible  <bruno@clisp.org>
1138         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
1139         transliteration when building on a glibc system but outside glibc.
1141 2001-09-22  Bruno Haible  <bruno@clisp.org>
1143         * intl/plural-eval.c: New file, extracted from dcigettext.c.
1144         * intl/dcigettext.c (plural_eval): Remove function, moved to
1145         intl/plural-eval.c.
1146         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
1147         Include plural-eval.c.
1149 2001-09-22  Bruno Haible  <bruno@clisp.org>
1151         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
1152         don't start with a digit; nplurals must be positive.
1154 2001-09-02  Bruno Haible  <bruno@clisp.org>
1156         * intl/plural-exp.h: New file, extracted from gettextP.h.
1157         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
1158         * intl/gettextP.h (struct expression, struct parse_args,
1159         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
1160         * intl/loadmsgcat.c: Include plural-exp.h.
1161         (PLURAL_PARSE): Move macro to plural-exp.h.
1162         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
1163         plural-exp.c.
1164         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
1165         EXTRACT_PLURAL_EXPRESSION.
1166         (_nl_unload_domain): Update.
1167         * intl/dcigettext.c: Include plural-exp.h.
1168         * intl/plural.y: Include plural-exp.h, not gettextP.h.
1169         (FREE_EXPRESSION): Move macro to plural-exp.h.
1170         * intl/Makefile (routines): Add plural-exp.
1171         (distribute): Add plural-exp.h.
1173 2001-07-28  Bruno Haible  <bruno@clisp.org>
1175         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
1176         isdigit, tolower argument to 'unsigned char'.
1177         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
1178         'unsigned char'.
1179         * intl/localealias.c (read_alias_file): Cast isspace argument to
1180         'unsigned char'.
1182 2001-10-20  Bruno Haible  <bruno@clisp.org>
1184         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
1185         anyway.)
1186         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
1187         with the variable 'index' in plural_lookup.
1188         * intl/l10nflist.c (strchr): Likewise.
1189         * intl/localealias.c (strchr): Likewise.
1191         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
1192         * intl/bindtextdom.c: Likewise.
1193         * intl/dcigettext.c: Likewise.
1194         * intl/dgettext.c: Likewise.
1195         * intl/dngettext.c: Likewise.
1196         * intl/explodename.c: Likewise.
1197         * intl/finddomain.c: Likewise.
1198         * intl/gettext.c: Likewise.
1199         * intl/l10nflist.c: Likewise.
1200         * intl/loadmsgcat.c: Likewise.
1201         * intl/localealias.c: Likewise.
1202         * intl/ngettext.c: Likewise.
1203         * intl/textdomain.c: Likewise.
1204         * intl/gettext.h: Assume <limits.h> exists.
1206 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
1208         * stdio-common/Makefile (tests): Add scanf11.
1209         * stdio-common/scanf11.c: New file.
1211 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
1213         * version.h (RELEASE): Define as development.
1214         (VERSION): Set to 2.2.90.
1216 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
1218         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
1219         * nis/nss_nis/nis-grp.c: Likewise.
1220         * nis/nss_nisplus/nisplus-grp.c: Likewise.
1222         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
1223         * nis/nss_nis/nis-pwd.c: Likewise.
1224         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
1226         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
1227         * nis/nss_nisplus/nisplus-parser.c: Likewise.
1228         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
1230         * nscd/grpcache.c: Use strtoul instead of atol.
1231         * nscd/pwdcache.c: Likewise.
1232         * nss/getent.c: Likewise.
1234 2001-11-27  Paul Eggert  <eggert@twinsun.com>
1236         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
1237         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
1239 2001-11-19  Bruno Haible  <bruno@clisp.org>
1241         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
1242         90%.
1243         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
1244         improves the quality of the hash function, especially for short
1245         strings.
1247 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
1249         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
1250         are found call conv_error and not input_error [PR libc/2669].
1252         * math/bits/mathcalls.h: Mark ceil and floor as const.
1253         Reported by David Mosberger.
1255 2001-11-21  Jim Meyering  <meyering@lucent.com>
1257         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
1258         Define to be __-prefixed.
1259         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
1261 2001-11-26  Andreas Jaeger  <aj@suse.de>
1263         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
1264         avoid warning.
1266 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
1268         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
1269         initialization.
1271         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
1272         unused variables.  Fix threshold for returning 1.0.
1274         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
1275         argument.
1277         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
1278         remove unused variables.
1280         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
1282         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
1283         include local math header files.
1285 2001-11-22  Andreas Jaeger  <aj@suse.de>
1287         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
1288         avoid warning.
1290 2001-11-21  Andreas Jaeger  <aj@suse.de>
1292         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
1294         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
1295         sys/debugreg.h
1297 2001-11-15  Andreas Jaeger  <aj@suse.de>
1299         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
1300         compilers that support it.
1302         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
1303         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
1304         * stdlib/stdlib.h: Likewise.
1306 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
1308         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
1309         statement with gotos.
1310         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
1312 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
1314         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
1316 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
1318         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
1320 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
1321             H.J. Lu  <hjl@gnu.org>
1323         * Versions.def (libc): Add GCC_3.0.
1324         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
1325         if gcc supports this flag.
1326         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
1327         (gcc3): Allow glibc to be compiled with gcc 3.x.
1328         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
1329         * config.make.in (static-libgcc, unwind-find-fde): Add.
1330         * Makerules (build-shlib-helper, build-module-helper): Use it.
1331         * scripts/versions.awk: Make sure GLIBC_ versions come first.
1332         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
1333         necessary.
1334         (_fini): Call __deregister_frame_info_bases if
1335         __register_frame_info_bases was used to register.
1336         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
1337         for GLIBC_2.0.
1338         (__register_frame_info_bases, __register_frame_info_table_bases,
1339         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
1340         * elf/Makefile (routines): Add unwind-dw2-fde.
1341         (shared-only-routines): Add unwind-dw2-fde.
1342         * sysdeps/alpha/gccframe.h: New file.
1343         * sysdeps/arm/gccframe.h: New file.
1344         * sysdeps/generic/framestate.c: New file.
1345         * sysdeps/generic/dwarf2.h: New file.
1346         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
1347         * sysdeps/generic/unwind-dw2-fde.c: New file.
1348         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
1349         * sysdeps/generic/unwind-dw2-fde.h: New file.
1350         * sysdeps/generic/unwind-dw2.c: New file.
1351         * sysdeps/generic/unwind-pe.h: New file.
1352         * sysdeps/generic/unwind.h: New file.
1353         * sysdeps/hppa/gccframe.h: New file.
1354         * sysdeps/i386/gccframe.h: New file.
1355         * sysdeps/m68k/gccframe.h: New file.
1356         * sysdeps/mips/gccframe.h: New file.
1357         * sysdeps/powerpc/gccframe.h: New file.
1358         * sysdeps/s390/gccframe.h: New file.
1359         * sysdeps/sh/gccframe.h: New file.
1360         * sysdeps/sparc/gccframe.h: New file.
1361         * sysdeps/vax/gccframe.h: New file.
1362         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
1363         Set on all architectures except ia64.
1364         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
1365         for i386.
1366         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
1367         __deregister_frame_info): Move to elf/Versions.
1368         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
1369         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
1370         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1371         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
1372         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
1373         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
1374         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
1375         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1376         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
1377         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
1378         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
1379         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
1380         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
1381         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
1382         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
1383         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
1384         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
1385         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
1387 2001-11-15  Jeff Law  <law@redhat.com>
1389         * posix/regex.c (uintptr_t): Do not provide a definition if the
1390         system provided one.
1392 2001-11-13  Roland McGrath  <roland@frob.com>
1394         * stdio-common/tmpfile.c: Moved to ...
1395         * sysdeps/generic/tmpfile.c: ... here.
1396         * sysdeps/mach/hurd/tmpfile.c: New file.
1398         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
1399         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
1400         (fopenport): Define as weak alias.
1402         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
1403         * libio/libioP.h: ... to here.
1405 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
1407         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
1408         program header twice.  Construct list with the needed information.
1410 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
1412         * po/ca.po: Update from translation team.
1414         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
1415         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
1416         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
1417         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
1419 2001-11-10  Andreas Jaeger  <aj@suse.de>
1421         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
1422         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1423         Contributed by Stephen L Moshier <moshier@mediaone.net>.
1425 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
1427         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
1428         correctly.
1429         * elf/dl-load.c (is_dst): New function.
1430         (_dl_dst_count): Use is_dst to check for DST variable.
1431         (_dl_dst_substitute): Likewise.
1433 2001-11-09  Roland McGrath  <roland@frob.com>
1435         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
1436         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
1437         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
1438         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
1439         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
1440         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
1441         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
1442         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
1443         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
1444         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
1445         * sysdeps/mach/hurd/powerpc/Dist: New file.
1447         * hurd/privports.c (__get_privileged_ports):
1448         Only contact the proc server if necessary for this call.
1449         Suggested by Neal H Walfield <neal@cs.uml.edu>.
1450         Check error return for mach_port_mod_refs.
1452 2001-11-09  Andreas Schwab  <schwab@suse.de>
1454         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
1456 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
1458         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
1459         object is always the last in the list.
1460         (_dl_map_object_from_fd): Delete code to remove from object list
1461         when DF_1_NOOPEN is seen.  This is done in lose.
1463 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
1465         * elf/dl-object.c (_dl_new_object): Various small optimizations.
1467 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
1469         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
1470         HWCAP_CHECK macro code.
1472         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
1473         Now returns MAP_FAILED on error.
1474         * elf/rtld.c: Adjust caller.
1475         * sysdeps/generic/dl-cache.c: Likewise.
1476         * sysdeps/generic/ldsodefs.h: Adjust description.
1478         * elf/dl-version.c (match_symbol): Optimize error handling for size.
1479         (_dl_check_map_versions): Likewise.
1481 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
1483         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
1484         _dl_signal_error directly, always use lose.  Set fd to -1 after
1485         file is closed.
1486         (lose): Don't call close if fd == -1.
1488 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
1490         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
1491          Also fix typo @code {mbsinit} to @code{mbsinit}.
1493 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
1495         * elf/dl-profile.c: Replace state variable with simple flag named
1496         running.  Remove commented-out code.
1498         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
1499         (_dl_init_paths): Likewise.
1500         (_dl_map_object_from_fd): Likewise.
1501         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
1503 2001-11-06  Roland McGrath  <roland@frob.com>
1505         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
1506         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
1508         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
1509         sysdeps/powerpc/elf/sysdep.h.
1510         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
1512 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
1514         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
1515         speed.
1516         (process_envvars): Some more optimizations.
1517         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
1519         * elf/elf.h: Add dynamic tag definitions for prelinking.
1521         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
1522         Rewrite code to remove environment varables for SUID binaries.
1523         Small optimization in LD_PROFILE handling.
1524         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
1525         changes.
1526         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
1528         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
1530         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
1531         strings.  Change type of second parameter.
1532         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
1533         for last change.
1535         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
1537 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
1539         * manual/string.texi: Fix typos.
1540         * manual/examples/argp-ex2.c: Likewise.
1542 2001-11-05  Roland McGrath  <roland@frob.com>
1544         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
1545         the more-specific unix/sysv/linux/powerpc file and breaks everything.
1546         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
1547         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
1548         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
1549         here, put under [__ELF__].
1551 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
1553         * manual/charset.texi: Extensive editing work.
1554         * manual/nss.texi: Likewise.
1555         Changes by Dennis Grace <dgrace@us.ibm.com>.
1557 2001-11-04  Roland McGrath  <roland@frob.com>
1559         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
1560         parameter to dir_mkfile.
1562 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
1564         * string/bits/string2.h (__strndup): If n is smaller than len, set
1565         len to n + 1.
1566         * string/tester.c (test_strndup): New function.
1567         (main): Call it.
1569 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
1571         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
1573         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
1574         * scripts/cpp: New file.
1576         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
1577         for rtld_search_dirs content.  Minor optimizations.
1579 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
1581         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
1582         avoiding unnecessary duplication.
1584 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
1586         * elf/dl-load.c (_dl_map_object): If library was found using
1587         LD_LIBRARY_PATH, don't try RUNPATH list.
1589 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1591         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
1592         Correct second argument of register_dump call.
1593         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
1594         Likewise.
1596 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
1598         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
1599         modules.
1600         * iconvdata/TESTS: Likewise.
1601         * iconvdata/gconv-modules: Likewise.
1602         * iconvdata/ibm1132.c: New file.
1603         * iconvdata/ibm1132.h: New file.
1604         * iconvdata/ibm1133.c: New file.
1605         * iconvdata/ibm1133.h: New file.
1606         * iconvdata/ibm1162.c: New file.
1607         * iconvdata/ibm1162.h: New file.
1608         * iconvdata/testdata/IBM1132: New file.
1609         * iconvdata/testdata/IBM1132..UTF8: New file.
1610         * iconvdata/testdata/IBM1133: New file.
1611         * iconvdata/testdata/IBM1133..UTF8: New file.
1612         * iconvdata/testdata/IBM1162: New file.
1613         * iconvdata/testdata/IBM1162..UTF8: New file.
1614         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
1616         * string/string.h: Fix typo in comment.
1617         * wcsmbs/wchar.h: Likewise.
1619 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
1621         * manual/getopt.texi (getopt_long, getopt_long_only): Include
1622         const in type of longopts parameter.
1624 2001-10-29  Andreas Jaeger  <aj@suse.de>
1626         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
1628 2001-10-29  Kevin Ryde  <user42@zip.com.au>
1630         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
1631         output, clarify `#' behaviour on 0.
1632         (Floating-Point Conversions): Clarify that %g only uses %e when
1633         the exponent would be greater than 1.
1635 2001-10-28  Roland McGrath  <roland@frob.com>
1637         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
1638         * sysdeps/mach/powerpc/machine-sp.h: New file.
1639         * sysdeps/mach/powerpc/sysdep.h: New file.
1640         * sysdeps/mach/powerpc/thread_state.h: New file.
1642         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
1643         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
1644         expect to need the same thing on every platform.
1646         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
1647         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
1649         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
1650         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
1651         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
1652         Move all these assembly-related definitions to ...
1653         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
1655         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
1656         by Peter Bruin <pjbruin@dds.nl>.
1658         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
1659         packing results for a `poll' call.
1661 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
1663         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
1664         correctly.
1665         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
1666         bracket expression.
1668         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
1669         nrules value.
1670         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
1672 2001-10-24  H.J. Lu  <hjl@gnu.org>
1674         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
1675         Use __BEGIN_DECLS/__END_DECLS around prototypes.
1676         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
1678 2001-10-21  Jim Meyering  <meyering@lucent.com>
1680         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
1681         this code would end up calling gettext even in packages built
1682         with --disable-nls.
1683         * posix/getopt.c (_): Likewise.
1684         * posix/regex.c (_): Likewise.
1686 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
1688         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
1689         lookup not ip6.int.
1690         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
1691         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
1693 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
1695         * misc/sys/cdefs.h (__attribute_used__): Define.
1696         * elf/rtld.c (_dl_start): Add __attribute_used__.
1697         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
1699 2001-10-25  Andreas Schwab  <schwab@suse.de>
1701         * stdlib/a64l.c: Expect least significant digit first.
1702         * stdlib/l64a.c: Produce least significant digit first.
1703         * stdlib/Makefile (tests): Add test-a64l.
1704         * stdlib/test-a64l.c: New file.
1705         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
1707 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
1709         * po/sk.po: Update from translation team.
1711 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
1713         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
1715 2001-10-18  Andreas Schwab  <schwab@suse.de>
1717         * math/libm-test.inc (print_ulps): Print ulp values rounded to
1718         next whole number.
1719         (print_function_ulps): Likewise.
1720         (print_complex_function_ulps): Likewise.
1721         (print_max_error): Likewise.
1722         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
1724 2001-10-16  Andreas Schwab  <schwab@suse.de>
1726         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
1727         implementation.
1729         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
1730         BSD_SETJMP or BSD__SETJMP is defined, resp.
1731         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
1732         a tail call to __sigsetjmp that would require extending the
1733         caller's frame.
1734         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
1735         * sysdeps/m68k/bsd-setjmp.S: Deleted.
1736         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
1737         Reported by Jes Sorensen <jes@trained-monkey.org>.
1739 2001-10-16  Andreas Jaeger  <aj@suse.de>
1741         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
1742         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
1743         close PR libc/2589.
1745 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
1747         * po/ca.po: New file.  Contributed by the translation team.
1749 2001-10-15  Ralf Baechle  <ralf@gnu.org>
1751         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
1752         a varargs prototype.  Remove dependency from kernel header files.
1754         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
1755         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
1757 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
1759         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
1760         to generate hexadecimal identifier.
1761         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
1763 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
1765         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
1767 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
1769         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
1770         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
1771         Contributed by Stephen L Moshier <moshier@mediaone.net>.
1773         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
1774         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1775         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
1776         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
1777         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
1778         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
1780         * timezone/africa: Update from tzdata2001d.
1781         * timezone/asia: Likewise.
1782         * timezone/australasia: Likewise.
1783         * timezone/backward: Likewise.
1784         * timezone/europe: Likewise.
1785         * timezone/leapseconds: Likewise.
1786         * timezone/northamerica: Likewise.
1787         * timezone/southamerica: Likewise.
1788         * timezone/zone.tab: Likewise.
1790 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1792         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
1793         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
1795 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
1797         * elf/elf.h (PT_TLS): New definition.
1799 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
1801         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
1802         bits/errno.h
1804 2001-10-07  Roland McGrath  <roland@frob.com>
1806         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
1808 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
1810         * elf/elf.h: Add more ELFOSABI_* constants.
1812 2001-10-04  Ben Collins  <bcollins@debian.org>
1814         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
1815         decleration of __need_wchar_t.
1817 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
1819         * string/bits/string2.h (__strsep_g): Add prototype.
1820         (__strsep): Use it.
1821         * string/Versions (__strsep): Remove.
1822         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
1824 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
1826         * manua/llio.texi: Clarify file references added by mmap.
1827         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
1829 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
1831         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
1832         Add sc_loadrs and sc_rbs_bas to match current kernel.
1834 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
1836         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
1838         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
1840 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
1842         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
1843         object has been bumped because of relocation dependency, avoid
1844         duplicates in l_scope.
1845         (show_scope): Fix typos.
1846         * elf/Makefile: Add rules to build and run reldep6.
1847         * elf/reldep6.c: New file.
1848         * elf/reldep6mod0.c: New file.
1849         * elf/reldep6mod1.c: New file.
1850         * elf/reldep6mod2.c: New file.
1851         * elf/reldep6mod3.c: New file.
1852         * elf/reldep6mod4.c: New file.
1854 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
1856         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
1857         sparc64_fixup_plt.
1858         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
1859         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
1860         for non-lazy binding. Fix .plt[32768+] handling.
1861         (elf_machine_plt_value): Don't add addend.
1862         (elf_machine_rela): Call sparc64_fixup_plt instead of
1863         elf_machine_fixup_plt.
1864         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
1865         dynamic linker at 0xfffff800XXXXXXXX.
1867         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
1869 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
1871         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
1873 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
1875         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
1876         declare __cmsg_data field if its size would be bigger than 0.
1877         (CMSG_DATA): Adjust accordingly.
1878         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
1879         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
1880         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
1881         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
1882         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
1883         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
1884         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1886 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
1888         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
1889         * iconvdata/testdata/IBM1160: New file.
1890         * iconvdata/testdata/IBM1160..UTF8: New file.
1891         * iconvdata/testdata/IBM1161: New file.
1892         * iconvdata/testdata/IBM1161..UTF8: New file.
1893         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1895 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
1897         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
1898         UL_SETFSIZE computations better.
1900         * rt/Makefile: Remove use of filter for librt again.
1902         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
1903         UL_SETFSIZE computations better.
1905         * string/Versions: Export __strsep for GLIBC_2.2.5.
1906         * string/bits/string2.h: Define all __STRING_INLINE functions if
1907         _FORCE_INLINES is defined.
1908         Use int instead of char of parameter types.
1909         (__strsep): Don't use __strsep_g.  Don't define it.
1910         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
1911         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
1912         __strcpy_small.
1913         (__stpcpy_a_small): Renamed from __stpcpy_small.
1914         (__strcspn_c1): Don't define if _FORCE_INLINES.
1915         (__strspn_c1): Likewise.
1917 2001-09-22  Ben Collins  <bcollins@debian.org>
1919         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
1920         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
1921         * sysdeps/ia64/bits/sigaction.h: Likewise.
1922         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
1924 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
1926         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
1928 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
1930         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
1932 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
1934         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
1936 2001-09-20  H.J. Lu  <hjl@gnu.org>
1938         * include/dlfcn.h (__RTLD_SPROF): New definiton.
1939         * elf/dl-open.c (dl_open_worker): Return immediately after loading
1940         for __RTLD_SPROF.
1941         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
1942         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
1944 2001-09-20  H.J. Lu  <hjl@gnu.org>
1946         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
1947         don't add 1.
1949 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
1951         * nss/getent.c: Accept -s parameter to overwrite rules in
1952         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
1954         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
1955         with as many ".0" as necessary to form a complete address
1956         inet_network understands.
1958         * nss/getent.c: Various cleanups.  Use simpler and fewer function
1959         calls.
1961 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1963         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
1964         _JMPBUF_UNWINDS.
1965         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
1967 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
1969         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
1970         IBM1161.
1971         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
1972         * iconvdata/ibm1160.c: New file.
1973         * iconvdata/ibm1160.h: New file.
1974         * iconvdata/ibm1161.c: New file.
1975         * iconvdata/ibm1161.h: New file.
1976         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1978 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
1980         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
1981         difference between base address and first PT_LOAD's virtual address,
1982         not the base address.
1984 2001-09-11  Tom Rix  <trix@redhat.com>
1986         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
1987         ifdef for __getopt_clean_environment.
1988         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
1990 2001-09-22  Andreas Jaeger  <aj@suse.de>
1992         * elf/reldep4.c (main): Add proper prototype to fix warning.
1994         * elf/reldep5.c (main): Remove unused variable.
1996         * math/math_private.h: Add prototypes.
1998 2001-09-21  Andreas Jaeger  <aj@suse.de>
2000         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
2001         * sysdeps/x86_64/Dist: New file.
2002         * sysdeps/x86_64/soft-fp/Dist: New file.
2004         * sysdeps/gnu/Dist: Remove eval.c.
2006 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
2008         * malloc/memusage.c (realloc): Don't count already allocated
2009         memory in the sums.
2010         (me): Always use dlsym() to find the real implementations.
2012         * malloc/memusage.sh: Make -n option actually do something.
2014 2001-09-20  Andreas Jaeger  <aj@suse.de>
2016         * elf/elf.h (R_390_NUM): Correct value.
2018         * Versions.def: Add missing versions 2.2.3 for libthread_db and
2019         libpthread.
2021         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
2022         for x86-64, install x86-64 into */lib64.
2024         * shlib-versions: Add x86-64.
2026         * elf/elf.h: Add x86-64 relocations.
2028 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
2030         * po/fr.po: Update from translation team.
2032 2001-09-19  Andreas Jaeger  <aj@suse.de>
2034         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
2035         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
2036         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
2037         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
2038         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
2039         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
2040         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
2041         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
2042         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
2043         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
2044         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
2045         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
2046         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
2047         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
2048         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
2049         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
2050         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
2051         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
2052         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
2053         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
2054         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
2055         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
2056         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
2057         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
2058         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
2059         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
2060         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
2061         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
2062         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
2063         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
2064         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
2065         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
2066         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
2067         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
2068         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
2069         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
2070         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
2071         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
2072         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
2073         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
2074         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
2075         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
2076         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
2077         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
2078         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
2079         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
2080         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
2081         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
2082         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
2083         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
2084         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
2085         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
2086         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
2087         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
2088         * sysdeps/unix/x86_64/sysdep.S: New file.
2089         * sysdeps/unix/x86_64/sysdep.h: New file.
2090         * sysdeps/x86_64/Implies: New file.
2091         * sysdeps/x86_64/Makefile: New file.
2092         * sysdeps/x86_64/Versions: New file.
2093         * sysdeps/x86_64/__longjmp.S: New file.
2094         * sysdeps/x86_64/abort-instr.h: New file.
2095         * sysdeps/x86_64/atomicity.h: New file.
2096         * sysdeps/x86_64/bits/endian.h: New file.
2097         * sysdeps/x86_64/bits/setjmp.h: New file.
2098         * sysdeps/x86_64/bits/string.h: New file.
2099         * sysdeps/x86_64/bp-asm.h: New file.
2100         * sysdeps/x86_64/bsd-_setjmp.S: New file.
2101         * sysdeps/x86_64/bsd-setjmp.S: New file.
2102         * sysdeps/x86_64/dl-machine.h: New file.
2103         * sysdeps/x86_64/elf/initfini.c: New file.
2104         * sysdeps/x86_64/elf/start.S: New file.
2105         * sysdeps/x86_64/ffs.c: New file.
2106         * sysdeps/x86_64/ffsll.c: New file.
2107         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
2108         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
2109         * sysdeps/x86_64/fpu/e_acosl.c: New file.
2110         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
2111         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
2112         * sysdeps/x86_64/fpu/e_expl.c: New file.
2113         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
2114         * sysdeps/x86_64/fpu/e_log10l.S: New file.
2115         * sysdeps/x86_64/fpu/e_log2l.S: New file.
2116         * sysdeps/x86_64/fpu/e_logl.S: New file.
2117         * sysdeps/x86_64/fpu/e_powl.S: New file.
2118         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
2119         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
2120         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
2121         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
2122         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
2123         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
2124         * sysdeps/x86_64/fpu/fegetenv.c: New file.
2125         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
2126         * sysdeps/x86_64/fpu/fegetround.c: New file.
2127         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
2128         * sysdeps/x86_64/fpu/fesetenv.c: New file.
2129         * sysdeps/x86_64/fpu/fesetround.c: New file.
2130         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
2131         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
2132         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
2133         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
2134         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
2135         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
2136         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
2137         * sysdeps/x86_64/fpu/s_atanl.c: New file.
2138         * sysdeps/x86_64/fpu/s_cosl.S: New file.
2139         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
2140         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
2141         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
2142         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
2143         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
2144         * sysdeps/x86_64/fpu/s_logbl.c: New file.
2145         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
2146         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
2147         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
2148         * sysdeps/x86_64/fpu/s_rintl.c: New file.
2149         * sysdeps/x86_64/fpu/s_significandl.c: New file.
2150         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
2151         * sysdeps/x86_64/fpu/s_sinl.S: New file.
2152         * sysdeps/x86_64/fpu/s_tanl.S: New file.
2153         * sysdeps/x86_64/gmp-mparam.h: New file.
2154         * sysdeps/x86_64/hp-timing.c: New file.
2155         * sysdeps/x86_64/hp-timing.h: New file.
2156         * sysdeps/x86_64/htonl.S: New file.
2157         * sysdeps/x86_64/memusage.h: New file.
2158         * sysdeps/x86_64/setjmp.S: New file.
2159         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
2160         * sysdeps/x86_64/stackinfo.h: New file.
2161         * sysdeps/x86_64/sysdep.h: New file.
2162         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
2164         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
2165         L Moshier.
2167 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2169         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
2170         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
2172 2001-09-18  Andreas Schwab  <schwab@suse.de>
2174         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
2175         list, now that l_scope is a pointer.
2177         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
2178         scope list.
2180 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2182         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
2183         (elf_machine_rela_relative): Add a missing declaration.
2185 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
2187         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
2188         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
2189         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
2190         ldd-rewrite scripts.
2192 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2194         * elf/ldd.bash.in: Update copyright message.
2196 2001-09-17  H.J. Lu  <hjl@gnu.org>
2198         * hurd/hurdmalloc.c (bcopy): Removed.
2199         (realloc): Replace bcopy with memcpy.
2200         * hurd/path-lookup.c (file_name_path_scan): Likewise.
2201         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
2202         * sunrpc/rpcinfo.c (pmapdump): Likewise.
2204         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
2205         (gethostbyaddr): Likewise.
2206         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
2208 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2210         * sysdeps/gnu/eval.c: Removed.
2212 2001-09-18  Andreas Jaeger  <aj@suse.de>
2214         * sysdeps/i386/fpu/s_logbl.S: Move to ...
2215         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
2217         * sysdeps/i386/fpu/s_rintl.S: Move to ...
2218         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
2220         * sysdeps/i386/fpu/s_significandl.S: Move to ...
2221         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
2223 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
2225         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
2226         nrules value.
2228 2001-09-14  H.J. Lu  <hjl@gnu.org>
2230         * sysdeps/mips/fpu/libm-test-ulps: Updated.
2232 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
2234         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
2235         Patch by Florian La Roche <laroche@redhat.com>.
2237         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
2239         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
2240         ETHER_CRC_LEN.
2242 2001-09-14  Andreas Schwab  <schwab@suse.de>
2244         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
2245         Sumner <bls@sgi.com>.
2246         * posix/execlp.c: Likewise.
2248 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
2250         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
2251         is already found earlier in the search scope.
2253 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
2255         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
2256         filter.
2258 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
2260         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
2262 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
2264         * config.h.in: Enforce optimization to be used.
2265         * Makeconfig (preprocess-versions): Define ASSEMBLER.
2266         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
2267         * posix/Makefile (annexc-CFLAGS): Define to -O.
2268         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
2270 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
2272         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
2273         Patch by Stephan Kulow.
2275 2001-09-08  Ben Collins  <bcollins@debian.org>
2277         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
2278         usage of RESOLVE() (r_type, not reloc->r_type).
2280 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
2282         * elf/dl-object.c: Avoid allocating extra memory block for name.
2283         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
2284         allocated separately.
2285         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2287 2001-09-08  H.J. Lu  <hjl@gnu.org>
2289         * po/zh_TW.po: Fix a typo.
2291 2001-09-07  Tom Rix  <trix@redhat.com>
2293         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
2295 2001-08-26  Tom Rix  <trix@redhat.com>
2297         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
2298         command line options.
2299         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
2300         * sysdeps/unix/sysv/aix/start.c: Removed.
2301         * sysdeps/unix/sysv/aix/start-libc.c: New file.
2302         * sysdeps/unix/sysv/aix/init-first.c: New file.
2303         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
2305 2001-09-08  Ben Collins  <bcollins@debian.org>
2307         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
2308         * sysdeps/generic/dl-machine.h: Likewise.
2309         * sysdeps/hppa/dl-fptr.c: Likewise.
2310         * sysdeps/ia64/dl-fptr.c: Likewise.
2311         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2312         * sysdeps/mips/dl-machine.h: Likewise.
2313         * sysdeps/mips/mips64/dl-machine.h: Likewise.
2314         * sysdeps/powerpc/dl-machine.c: Likewise.
2316 2001-09-07  Ben Collins  <bcollins@debian.org>
2318         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
2320         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
2322 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
2324         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
2325         dependencies if necessary.
2327         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
2328         loaded directly) determine length if l_initfini list by iterating
2329         over its elements.  Minor optimizations.
2330         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
2331         for dependency objects.
2332         If object was already loaded check whether any of the dependencies
2333         is already on the relocation dependency list.  If yes, remove the
2334         latter.  Minor optimizations.
2335         * elf/dl-lookup.c (add_dependency): Add check for self reference of
2336         maps here.  Search l_initfini list only if the object was loaded
2337         directly and not only as a dependency.
2338         (_dl_lookup_symbol): Add relocation dependency also if object
2339         is not in global scope.  Remove test for self-reference here.
2340         (_dl_lookup_versioned_symbol): Likewise.
2341         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
2342         element of first name record.
2343         * elf/loadtest.c: Add some more test to recognize early if an object
2344         wasn't unloaded.
2345         * elf/Makefile: Add rules to build and run reldep5.
2346         * elf/reldep5.c: New file.
2347         * elf/reldepmod5.c: New file.
2348         * elf/reldepmod6.c: New file.
2350         * elf/reldep2.c: Fix typo.
2352 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
2354         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
2355         elements.  Change l_scope to be a pointer only.
2356         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
2357         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
2358         here add searchlist of newly open file to the dependency's scope.
2359         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
2360         only searchlist from its scope.  Free own scope array if necessary.
2361         * elf/Makefile (tests): Add dblload and dblunload now.
2363 2001-09-06  Andreas Jaeger  <aj@suse.de>
2365         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
2366         Stephen L Moshier.
2368 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
2370         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
2371         they both fail.
2372         * elf/dblload.c: New file.
2373         * elf/dblloadmod1.c: New file.
2374         * elf/dblloadmod2.c: New file.
2375         * elf/dblloadmod3.c: New file.
2376         * elf/dblunload.c: New file.
2378 2001-09-04  Richard Henderson  <rth@redhat.com>
2380         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
2381         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
2383 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
2385         Correct very misleading message for error in failed runtime relocation.
2386         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
2387         place of the error.
2388         (_dl_signal_cerror): Likewise.
2389         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
2390         * elf/dl-close.c: Likewise.
2391         * elf/dl-deps.c: Likewise.
2392         * elf/dl-load.c: Likewise.
2393         * elf/dl-lookup.c: Likewise.
2394         * elf/dl-open.c: Likewise.
2395         * elf/dl-reloc.c: Likewise.
2396         * elf/dl-sym.c: Likewise.
2397         * elf/dl-version.c: Likewise.
2398         * sysdeps/generic/dl-sysdep.c: Likewise.
2400 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
2402         * iconv/strtab.c (strtabinit): Initialize null Strent.
2403         (newstring): Move len == 0 handling...
2404         (strtabadd): ...here.
2405         If len == 1, return null Strent.
2406         When inserting a suffix of an existing string, check if
2407         it is not equal to some suffix already recorded.
2408         Copy left and right members over if adding longer string.
2410 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
2412         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
2414         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
2415         (__syscall_gethostname): Add prototype.
2417 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
2419         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
2421 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
2423         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
2425 2001-08-27  Roland McGrath  <roland@frob.com>
2427         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
2428         short, copy that much into NAME anyway before returning error.
2430 2001-09-01  Richard Henderson  <rth@redhat.com>
2432         * sysdeps/alpha/elf/Dist: Remove file.
2433         * sysdeps/alpha/elf/Makefile: Remove file.
2434         * sysdeps/alpha/elf/crtbegin.S: Remove file.
2435         * sysdeps/alpha/elf/crtend.S: Remove file.
2436         * sysdeps/alpha/elf/initfini.c: New file.
2438 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
2440         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
2441         * iconv/tst-iconv3.c: Likewise.
2443 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
2445         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
2447 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
2449         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
2450         export it.
2451         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
2452         * iconv/iconv_prog.c (insert_cache): New function.
2453         (print_known_names): If cache is used call insert_cache to use the
2454         information from the cache [PR libc/2509].
2456 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
2458         * time/strptime.c (strptime_internal): Recognize 'l' format and
2459         handle it like 'I' for symmetry with strftime.
2461 2001-08-31  Richard Henderson  <rth@redhat.com>
2463         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
2464         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
2465         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
2466         (print_statistics): Make scalar unsigned long long.
2467         * sysdeps/alpha/hp-timing.h: New file.
2469 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
2471         * stdio-common/perror.c (perror): Save errno early, pass it
2472         down to perror_internal.
2473         (perror_internal): Add errnum argument.
2475 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
2477         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
2478         Don't add old memory content for R_ALPHA_REFQUAD.
2480 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
2482         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
2483         memory correctly.
2485         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
2486         instead of open, __close instead of close, __getpagesize instead
2487         of getpagesize.
2489         * string/argz-stringify.c (__argz_stringify): Use __strnlen
2490         instead of strnlen.
2491         * include/string.h (strndupa): Redefine here to use __strnlen
2492         instead of strnlen.
2493         * string/strndup.c (__strndup): Use __strnlen not strnlen.
2495         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
2496         connected).
2498 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
2500         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
2501         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
2502         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
2503         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
2504         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
2505         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
2506         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
2508 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
2510         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
2512 2001-08-30  Andreas Jaeger  <aj@suse.de>
2514         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
2515         contributed Stephen L Moshier.
2517 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
2519         * sunrpc/etc.rpc (sgi_fam): Add.
2521 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
2523         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
2525 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
2527         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
2528         first is from a previous call.
2529         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
2531 2001-08-29  Andreas Schwab  <schwab@suse.de>
2533         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
2535 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2537         * config.make.in (INSTALL_SCRIPT): Define.
2538         * Makeconfig (INSTALL_SCRIPT): Define.
2539         * Makerules (do-install-script): New macro to install scripts using
2540         INSTALL_SCRIPT.
2541         (install-bin-script): New rule to install scripts with
2542         do-install-script.
2543         (install-bin-script-nosubdir): New rule.
2544         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
2545         (distinfo-vars): Add $(install-bin-script).
2546         * Rules (others): Likewise.
2547         * Makefile (glibcbug): Install with install-bin-script.
2548         * debug/Makefile (xtrace): Likewise.
2549         (catchsegv): Likewise.
2550         * elf/Makefile (ldd): Likewise.
2551         * malloc/Makefile (mtrace): Likewise.
2552         * timezone/Makefile (tzselect): Likewise.
2554 2001-08-29  H.J. Lu  <hjl@gnu.org>
2556         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
2557         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
2558         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
2560 2001-08-29  Andreas Schwab  <schwab@suse.de>
2562         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
2564 2001-08-28  H.J. Lu  <hjl@gnu.org>
2566         * Makeconfig (combreloc-LDFLAGS): New variable.
2567         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
2568         * config.make.in (have-z-combreloc): New variable.
2569         * configure.in: Substitute libc_cv_z_combreloc.
2571 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
2573         * po/sv.po: Update from translation team.
2574         * po/fr.po: Likewise.
2575         * po/da.po: Likewise.
2577 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2579         * Makerules: Fix a typo: MD% -> MD5.
2581 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
2583         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
2584         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
2586 2001-08-28  Andreas Jaeger  <aj@suse.de>
2588         * manual/libc-texinfo.sh: Add entry about free manuals.
2590         * manual/contrib.texi (Contributors): Fix cross reference.
2592         * manual/libc.texinfo (Copying): Include freemanuals.
2594         * manual/Makefile (appendices): Add freemanuals.
2596         * manual/freemanuals.texi: New file.
2597         Patch by Brian Youmans <3diff@gnu.org>.
2599         * manual/libm-err-tab.pl: Pretty print more platforms, print a
2600         smaller table.
2602         * manual/math.texi (Errors in Math Functions): Fix grammar, start
2603         table on separate page.
2604         Patch by Brian Youmans <3diff@gnu.org>.
2606 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
2608         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
2609         the connection went down after we first used it try to connect
2610         again and resend the message before printing to the console.
2611         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
2613 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
2615         * string/tst-strlen.c (main): Test strnlen (, -1) too.
2616         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
2617         bit set.
2619 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
2621         * iconv/strtab.c (searchstring): Use correct length for comparison.
2622         (strtabadd): Account total size correct if new string has old string as
2623         substring.
2625 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
2627         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
2629 2001-08-27  Andreas Jaeger  <aj@suse.de>
2631         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
2633         * math/libm-test.inc (j0_test): Add extra tests.
2634         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
2635         not x, in Hankel approximation.
2636         Patches by Stephen L Moshier.
2638 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
2640         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
2641         link_map.
2643         * configure.in: Fix test for .rela.dyn section.
2645         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
2647 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
2649         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
2650         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
2651         Pass type_class to _dl_lookup_*.
2652         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
2653         Pass around just type_class instead of noexec, noplt pair.
2654         (_dl_lookup_versioned_symbol): Likewise.
2655         (_dl_lookup_symbol_skip): Pass around just type_class instead of
2656         noexec, noplt pair.
2657         (_dl_lookup_versioned_symbol_skip): Likewise.
2658         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
2659         * elf/do-lookup.h (do_lookup): Likewise.
2660         * include/link.h (struct link_map): Replace noexec and noplt fields
2661         in l_lookup_cache with type_class field.
2662         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
2663         ELF_RTYPE_CLASS_COPY): Define.
2664         Adjust prototypes for _dl_lookup_symbol and
2665         _dl_lookup_versioned_symbol.
2666         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
2667         elf_machine_lookup_noexec_p): Remove.
2668         (elf_machine_type_class): Define.
2669         * sysdeps/arm/dl-machine.h: Likewise.
2670         * sysdeps/hppa/dl-machine.h: Likewise.
2671         * sysdeps/cris/dl-machine.h: Likewise.
2672         * sysdeps/i386/dl-machine.h: Likewise.
2673         * sysdeps/ia64/dl-machine.h: Likewise.
2674         * sysdeps/m68k/dl-machine.h: Likewise.
2675         * sysdeps/mips/mips64/dl-machine.h: Likewise.
2676         * sysdeps/mips/dl-machine.h: Likewise.
2677         * sysdeps/powerpc/dl-machine.h: Likewise.
2678         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2679         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2680         * sysdeps/sh/dl-machine.h: Likewise.
2681         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2682         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2684 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
2686         * manual/message.texi (Advanced gettext functions): Change
2687         description of plural forms for Slovak.
2688         Reported by Marcel Telka <marcel@telka.sk>.
2690         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
2691         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
2693 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
2695         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
2696         typo.  Patch by Florian La Roche <laroche@redhat.com>.
2698 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
2700         * include/link.h (struct link_map): Add l_lookup_cache element.
2701         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
2702         (RESOLVE_MAP): Likewise.
2703         (_dl_relocate_object): Remove cache initialization.
2704         * elf/dl-lookup.c: Rip out cache handling code.
2705         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
2706         declarations.
2708         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
2709         remove some __builtin_expect.
2710         (_dl_lookup_versioned_symbol): Likewise.
2712         * config.h.in: Add HAVE_Z_COMBRELOC.
2713         * configure.in: Add test for -z combreloc.
2715         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
2716         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
2717         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
2718         case to almost no code.
2720 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
2722         * po/tr.po: Update from translation team.
2724 2001-08-24  Andreas Jaeger  <aj@suse.de>
2726         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
2727         make clean works.
2729 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2731         * elf/rtld.c (print_statistics): Printf % after percent values.
2732         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
2734         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
2735         don't have to compute the hash value and initialize current_value.
2736         Move reference_name variable to where it is needed.
2737         (_dl_lookup_versioned_symbol): Likewise.
2739 2001-08-24  Roland McGrath  <roland@frob.com>
2741         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
2742         Just test that strerror returns non-null for a few errno codes.
2744 2001-08-23  Roland McGrath  <roland@frob.com>
2746         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
2747         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
2749         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
2751         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
2752         __mach_reply_port.
2754 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2756         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
2757         returns NULL.
2759         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
2760         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
2761         doesn't do it.
2762         * elf/rtld.c: Include <sys/param.h>.
2763         * elf/dl-reloc.c: Likewise.
2765 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2767         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
2768         empty to prevent junk from being generated.
2769         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
2771 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
2773         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
2774         records.  Rename endrel to relative, initialize it to r, and use it
2775         in elf_machine_rel_relative calls.  Point r after relative relocs.
2777 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2779         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
2780         of R_386_NONE.
2782 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
2784         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
2785         necessary.  Undefine newly defined macros at the end.
2786         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
2787         Rename from elf_machine_rel_relative.
2788         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
2789         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
2790         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
2791         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
2792         Likewise.
2793         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
2794         Likewise.
2795         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
2796         Fix argument types.
2797         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
2798         Fix argument types.
2799         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
2800         Likewise.  Fix argument types.
2801         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
2802         Likewise.  Fix argument types.
2803         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
2804         Fix argument types.
2805         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
2806         ElfW(Rel) in argument.
2807         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
2808         function.
2810 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
2812         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
2814 2001-08-24  Andreas Jaeger  <aj@suse.de>
2816         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
2817         Stephen L Moshier <moshier@mediaone.net>.
2819 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2821         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
2822         first if RELCOUNT is set.
2824         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
2825         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
2826         elf_machine_rel_relative.
2827         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
2828         Minor optimizations.
2829         * sysdeps/arm/dl-machine.h: Likewise.
2830         * sysdeps/cris/dl-machine.h: Likewise.
2831         * sysdeps/hppa/dl-machine.h: Likewise.
2832         * sysdeps/i386/dl-machine.h: Likewise.
2833         * sysdeps/ia64/dl-machine.h: Likewise.
2834         * sysdeps/m68k/dl-machine.h: Likewise.
2835         * sysdeps/mips/dl-machine.h: Likewise.
2836         * sysdeps/powerpc/dl-machine.h: Likewise.
2837         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2838         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2839         * sysdeps/sh/dl-machine.h: Likewise.
2840         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2841         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2843 2001-08-23  Roland McGrath  <roland@frob.com>
2845         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
2847         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
2848         sysdeps/mach version.  Implement counting ("recursive") mutexes
2849         on top of cthreads mutexes.
2850         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
2852         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
2853         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
2854         (__libc_cleanup_region_start, __libc_cleanup_region_end,
2855         __libc_clean_end): Define these to call the cleanup function after
2856         normal exit when they're supposed to.
2858         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
2859         Take new first arg DOIT, a boolean saying whether to really install
2860         any cleanup handler.
2861         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
2862         (__libc_cleanup_end): Likewise.
2863         * sysdeps/generic/bits/libc-lock.h: Same changes.
2864         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
2865         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
2866         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
2867         Likewise.
2868         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
2869         * sysdeps/generic/bits/stdio-lock.h
2870         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
2872 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2874         * elf/ldconfig.c (search_dir): Remove stale symlinks.
2876 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2878         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
2879         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
2880         lookups in cache.
2881         (_dl_lookup_versioned_symbol): Likewise.
2882         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
2883         relocation lookup.
2884         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
2885         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
2886         (lookup_cache, lookup_cache_versioned): Add declarations.
2888 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
2890         * stdlib/tst-random.c (main): Swap parameters in fail call.
2891         Patch by Pete Bevin <pete@petebevin.com>.
2893 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2895         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
2897 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
2899         * malloc/obstack.c: Indent preprocessor directives.
2900         Patch by Jim Meyering <meyering@ascend.com>.
2902         * po/ja.po: Update from translation team.
2904 2001-08-23  Roland McGrath  <roland@frob.com>
2906         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
2908         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
2909         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
2911 2001-08-22  Roland McGrath  <roland@frob.com>
2913         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
2914         __libc_lock_define_recursive.
2915         * elf/dl-open.c: Don't declare it here any more.
2916         * elf/dl-close.c: Likewise.
2917         * elf/dl-lookup.c: Likewise.
2918         * elf/dl-iteratephdr.c: Likewise.
2919         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
2920         __libc_lock_unlock_recursive.
2921         * elf/dl-close.c (_dl_close): Likewise
2922         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
2923         * elf/dl-open.c (_dl_open): Likewise
2925         * sysdeps/generic/bits/libc-lock.h
2926         (__libc_lock_define_recursive): New macro.
2927         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
2928         (_IO_lock_lock): Use __libc_lock_lock_recursive.
2929         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
2931         * conform/conformtest.pl (checknamespace): Sort the output list.
2933         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
2934         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
2935         definitions conditional on [__USE_XOPEN].
2937         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
2938         these unconditionally, not only use [__USE_BSD], so as to match
2939         the sysdeps/unix/sysv/linux files.
2941 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
2943         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
2944         avoid warnings.
2946         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
2947         DL_LOOKUP_ADDRESS.
2949 2001-08-22  Roland McGrath  <roland@frob.com>
2951         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
2952         conditionalization of sa_handler/sa_sigaction member types to
2953         match the sysdeps/unix/sysv/linux file.
2955 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
2957         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
2958         symbol sizes a bit better.
2960         * sysdeps/ia64/strncpy.S: Complete rewrite.
2961         Contributed by Jakub Jelinek <jakub@redhat.com>.
2963         * string/stratcliff.c (main): Add strncpy test.
2965 2001-08-22  Roland McGrath  <roland@frob.com>
2967         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
2968         and don't declare unsetenv or _environ directly.
2969         (unsetenv): Return int, not void.  Use __environ instead of _environ.
2971 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
2973         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
2974         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
2975         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
2976         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
2977         test for cmsg struct size.
2979 2001-04-23  Paul Eggert  <eggert@twinsun.com>
2981         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
2982         Rename __argc to ___argc in prototypes to avoid compatibility
2983         problems with systems that reserve the identifier "__argc".
2984         Similarly for __argv.
2986 2001-08-21  Roland McGrath  <roland@frob.com>
2988         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
2990         * mach/Makefile (tests): Removed.
2991         * mach/hello.c: File removed.
2993 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
2995         * po/sv.po: Update from translation team.
2997         * stdio-common/vfscanf.c: Fix handling of %l[].
2998         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
3000         * libio/Makefile (tests): Add tst-sscanf.
3001         * libio/tst-sscanf.c: New file.
3003         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
3004         * malloc/mtrace.c (tr_where): dli_sname always points to a
3005         non-empty string if != NULL.
3006         Reported by Tim Janik <timj@gtk.org>.
3008 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
3010         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
3011         buf.  Free resources on failure.
3012         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
3013         (makefd_xprt): Likewise.
3014         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
3015         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
3016         * sunrpc/auth_unix.c (authunix_create): Likewise.
3018 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
3020         * string/strnlen.c: Remove.
3021         * sysdeps/generic/strnlen.c: New file.
3022         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
3024 2001-08-21  Roland McGrath  <roland@frob.com>
3026         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
3027         as a macro, not an extern inline function.
3029         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
3030         * Versions.def (libc): Add GLIBC_2.2.5 set.
3031         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
3032         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
3034 2001-08-20  Roland McGrath  <roland@frob.com>
3036         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
3037         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
3039 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
3041         * string/bits/string2.h: Remove strnlen optimization here.
3042         * sysdeps/i386/i486/bits/string.h: Add it here.
3044 2001-08-21  Wolfram Gloger  <wg@malloc.de>
3046         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
3048 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
3050         * po/gl.po: Update from translation team.
3052 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3054         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
3055         * misc/err.c (convert_and_print): Likewise.
3057         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
3058         function calls.
3060 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3062         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
3063         change of the gregset_t type.
3064         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3066 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
3068         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
3070 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3072         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
3074         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
3076 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
3078         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
3079         before calling the cthreads initialization code.
3081 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3083         * argp/argp-help.c: Fix two problems introduced in last change.
3085         * include/dirent.h: Include <dirstream.h> first.
3087 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
3089         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
3091         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
3092         * sunrpc/xdr_rec.c: Likewise.
3093         * sunrpc/xdr_mem.c: Likewise.
3094         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
3095         * sunrpc/rpc_cmsg.c: Likewise.
3096         * sunrpc/getrpcport.c (getrpcport): Likewise.
3097         * sunrpc/clnt_simp.c (callrpc): Likewise.
3098         * sunrpc/clnt_gen.c (clnt_create): Likewise.
3099         * string/envz.c: Likewise.
3101         * po/ko.po: Update from translation team.
3103         * argp/argp-help.c: Handle wide oriented stderr stream.
3105 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
3107         * sysdeps/generic/strtol.c: Little optimizations.  Add some
3108         __builtin_expect.
3110         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
3112         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
3113         * wcsmbs/wcwidth.c (wcwdith): Likewise.
3114         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
3116         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
3118         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
3120         * time/time.h (struct timespec): Use __time_t for tv_sec element.
3122         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
3123         wchar_t for function declarations and defintions.
3125         * misc/sys/select.h: Define __need_time_t before including <time.h>.
3126         Define suseconds_t if it hasn't happened yet.
3128         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
3130         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
3132         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
3133         <stddef.h>.
3135         * conform/data/stddef.h-data: Remove wint_t.
3137         * conform/conformtest.pl: Change namespace test to take #undef
3138         lines into account.
3140         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
3142         * conform/data/sys/socket.h-data: Add sockatmark.
3144 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3146         * io/fts.c: Update from recent BSD source.
3148 2001-08-17  Roland McGrath  <roland@frob.com>
3150         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
3151         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
3152         Likewise.
3154 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3156         * locale/duplocale.c (__duplocale): Also initialize the special
3157         __ctype_* elements.
3159         * conform/data/netdb.h-data: Adjust gai_strerror return type.
3161 2001-08-17  Andreas Jaeger  <aj@suse.de>
3163         * misc/getpass.c: Include wchar.h for prototypes.
3164         * malloc/obstack.c: Likewise.
3166 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3168         * sunrpc/svc_simple.c (universal): Use __write instead of write.
3170         * wcsmbs/wcscoll.c: Also define __wcscoll.
3171         * include/wchar.h: Declare __wcscoll.
3173         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
3174         * libio/vwprintf.c: Likewise.
3175         * libio/wprintf.c: Likewise.
3177         * iconv/gconv_cache.c: Use __munmap instead of munmap.
3179 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
3181         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
3182         instead of mbrtowc.
3183         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
3184         wcslen, and __wcscoll instead of wcscoll.
3186         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
3188         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
3189         __getuid instead of getuid.
3191         * stdio-common/perror.c (perror): Use __close instead of close.
3192         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
3193         * libio/freopen.c (freopen): Likewise.
3194         * libio/freopen64.c (freopen64): Likewise.
3196         * libio/tst-ungetwc2.c (main): Define str const.
3198         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
3199         * libio/fwprintf.c: Also define __fwprintf.
3200         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
3201         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
3202         * assert/assert-perr.c: Likewise.
3203         * assert/assert.c: Likewise.
3204         * gmon/gmon.c: Likewise.
3205         * inet/rcmd.c: Likewise.
3206         * malloc/obstack.c: Likewise.
3207         * misc/err.c: Likewise.
3208         * misc/error.c: Likewise.
3209         * misc/getpass.c: Likewise.
3210         * posix/getopt.c: Likewise.
3211         * resolv/res_hconf.c: Likewise.
3212         * stdio-common/perror.c: Likewise.
3213         * stdio-common/psignal.c: Likewise.
3214         * stdlib/fmtmsg.c: Likewise.
3215         * sunrpc/auth_unix.c: Likewise.
3216         * sunrpc/clnt_perr.c: Likewise.
3217         * sunrpc/clnt_tcp.c: Likewise.
3218         * sunrpc/clnt_udp.c: Likewise.
3219         * sunrpc/clnt_unix.c: Likewise.
3220         * sunrpc/svc_simple.c: Likewise.
3221         * sunrpc/svc_tcp.c: Likewise.
3222         * sunrpc/svc_udp.c: Likewise.
3223         * sunrpc/svc_unix.c: Likewise.
3224         * sunrpc/xdr.c: Likewise.
3225         * sunrpc/xdr_array.c: Likewise.
3226         * sunrpc/xdr_rec.c: Likewise.
3227         * sunrpc/xdr_ref.c: Likewise.
3228         * sysdeps/generic/wordexp.c: Likewise.
3230         * po/it.po: Update from translation team.
3232         * misc/err.c: Handle wide oriented stderr stream.
3234 2001-08-14  Tom Rix  <trix@redhat.com>
3236         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
3237         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
3239 2001-08-13  Tom Rix  <trix@redhat.com>
3241         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
3242         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
3243         and __intptr_t.
3245 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3247         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
3248         Store the access registers to the ucontext structure.
3249         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
3250         Likewise.
3252         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
3253         Load the access registers from the ucontext structure.
3254         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
3255         Likewise.
3257         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
3258         offsets to the new ucontext layout.
3259         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
3261         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
3262         of the ucontext structure.
3263         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3265 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
3267         * misc/error.c (error): Handle wide oriented stderr stream correctly.
3268         (error_at_line): Likewise.
3270         * stdio-common/perror.c (perror): Implement according to standard.
3271         The stream orientation must not be changed if the stream was not
3272         oriented before the call.
3273         * stdio-common/Makefile (tests): Add tst-perror.
3274         * stdio-common/tst-perror.c: New file.
3277 See ChangeLog.12 for earlier changes.