Update.
[glibc.git] / ChangeLog
blob53d321496f1c7e2351d6d4ba3a3ace334daedff6
1 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
3         * Versions.def (libc): Add GLIBC_PRIVATE.
4         (libdb, libnss_db, libdb1): Remove.
5         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
6         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
7         (libpthread): Add GLIBC_PRIVATE.
8         (libresolv): Likewise, remove GLIBC_2.1.
9         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
10         GLIBC_2.2.3, GLIBC_2.3.
11         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
12         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
13         _dl_sym, _dl_vsym): Likewise.
14         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
15         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
16         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
17         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
18         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
19         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
20         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
21         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
22         Likewise.
23         (_dl_object_relocation_scope): Remove.
24         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
25         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
26         __gconv_cache): Move to GLIBC_PRIVATE.
27         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
28         __internal_setnetgrent): Likewise.
29         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
30         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
31         * locale/Versions (__collate_element_hash, __collate_element_strings,
32         __collate_symbol_classes, __collate_symbol_hash,
33         __collate_symbol_strings, _nl_current_LC_COLLATE,
34         _nl_current_LC_CTYPE): Likewise.
35         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
36         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
37         (libnss_nis, libnss_nisplus): Likewise.
38         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
39         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
40         (libnss_files): Move all symbols to GLIBC_PRIVATE.
41         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
42         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
43         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
44         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
45         __ns_get16, __ns_samename): Likewise.
46         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
47         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
48         GLIBC_PRIVATE.
49         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
50         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
51         __libc_connect): Likewise.
52         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
53         Likewise.
54         * stdlib/Versions (__libc_system): Likewise.
55         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
56         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
57         * sysdeps/ia64/fpu/Versions: Likewise.
58         * sysdeps/ia64/Versions: Likewise.
59         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
60         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
61         to GLIBC_PRIVATE.
62         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
63         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
64         __libc_sigaction): Likewise.
65         * termios/Versions (__libc_tcdrain): Likewise.
67         * misc/sys/cdefs (__attribute_noinline__): Define.
68         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
69         __attribute_noinline__.
71         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
72         * elf/dl-xstat64.c: New file.
73         * elf/dl-fxstat64.c: New file.
74         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
75         don't export __fxstat64 at multiple versions.
76         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
77         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
79 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
81         * locale/program/ld-collate.c (collate_finish): Assign a wide
82         char collation sequence value to multi character collating
83         elements, and avoid over writing by non-character elements.
85 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
87         * elf/Makefile (distribute): Add dl-procinfo.c.
88         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
89         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
91 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
93         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
94         definition.
95         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
96         _rtld_global struct.
97         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
98         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
99         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
100         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
101         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
102         _dl_fpu_control_set): Remove unused externs.
103         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
104         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
105         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
106         related variables in _rtld_global struct.
107         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
108         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
109         unused extern.
111 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
113         * sysdeps/generic/dl-procinfo.c: New file.
115 2002-02-01  Andreas Schwab  <schwab@suse.de>
117         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
119 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
121         * elf/rtld.c (_dl_start): Mark as internal_function.
122         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
123         in register.
124         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
125         General pretty printing.
127 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
129         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
130         * elf/dl-reloc.c: Pretty printing.
131         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
132         procinfo-related variables in rtld_global struct.
133         * elf/dl-support.c: Likewise.
134         * elf/rtld.c: Likewise.
135         * sysdeps/i386/i686/Makefile: Likewise.
136         * sysdeps/i386/i686/hp-timing.c: Likewise.
137         * sysdeps/i386/i686/hp-timing.h: Likewise.
138         * sysdeps/ia64/Makefile: Likewise.
139         * sysdeps/ia64/hp-timing.c: Likewise.
140         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
141         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
142         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
143         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
144         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
145         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
146         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
147         * sysdeps/x86_64/Makefile: Likewise.
149         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
150         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
151         _dl_debug_fd to rtld_global.
152         * elf/Versions: Likewise.
153         * elf/dl-close.c: Likewise.
154         * elf/dl-iteratephdr.c: Likewise.
155         * elf/dl-lookup.c: Likewise.
156         * elf/dl-misc.c: Likewise.
157         * elf/dl-open.c: Likewise.
158         * elf/dl-support.c: Likewise.
159         * elf/do-lookup.h: Likewise.
160         * elf/rtld.c: Likewise.
161         * sysdeps/generic/dl-cache.c: Likewise.
162         * sysdeps/generic/dl-sysdep.c: Likewise.
163         * sysdeps/ia64/Versions: Likewise.
164         * sysdeps/unix/clock_gettime.c: Likewise.
165         * sysdeps/unix/clock_settime.c: Likewise.
166         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
167         * sysdeps/sparc/Versions: Removed.
168         * sysdeps/i386/i686/Versions : Removed.
169         * sysdeps/x86_64/Versions: Removed.
170         * configure.in: Define HAVE_PROTECTED if .protected is available.
171         * config.h.in: Add entry for HAVE_PROTECTED.
173 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
175         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
176         code in struct _rtld_global.  Export this struct, remove all
177         exports for the signal variables.
178         * sysdeps/arm/dl-machine: Likewise.
179         * sysdeps/generic/dl-origin: Likewise.
180         * sysdeps/generic/dl-sysdep: Likewise.
181         * sysdeps/generic/dl-cache: Likewise.
182         * sysdeps/hppa/dl-fptr: Likewise.
183         * sysdeps/hppa/dl-machine: Likewise.
184         * sysdeps/cris/dl-machine: Likewise.
185         * sysdeps/i386/dl-machine: Likewise.
186         * sysdeps/ia64/dl-machine: Likewise.
187         * sysdeps/m68k/dl-machine: Likewise.
188         * sysdeps/mach/hurd/dl-sysdep: Likewise.
189         * sysdeps/mips/mips64/dl-machine: Likewise.
190         * sysdeps/mips/dl-machine: Likewise.
191         * sysdeps/powerpc/elf/libc-start: Likewise.
192         * sysdeps/powerpc/dl-machine: Likewise.
193         * sysdeps/powerpc/dl-start: Likewise.
194         * sysdeps/sparc/sparc32/dl-machine: Likewise.
195         * sysdeps/sparc/sparc64/dl-machine: Likewise.
196         * sysdeps/sh/dl-machine: Likewise.
197         * sysdeps/s390/s390-32/dl-machine: Likewise.
198         * sysdeps/s390/s390-64/dl-machine: Likewise.
199         * sysdeps/unix/sysv/aix/libc-start: Likewise.
200         * sysdeps/unix/sysv/aix/start-libc: Likewise.
201         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
202         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
203         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
204         * sysdeps/x86_64/dl-machine: Likewise.
206 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
208         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
209         are too high.
211 2002-01-31  Andreas Schwab  <schwab@suse.de>
213         * sysdeps/posix/readv.c: Check for ssize_t overflow.
215 2002-01-31  Andreas Schwab  <schwab@suse.de>
217         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
218         reference to _dl_pagesize.
220 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
222         * Versions.def [ld]: Add GLIBC_2.3.
223         * elf/dl-addr.c: Move global variables for SHARED code in struct
224         _rtld_global.  Export this struct, remove all exports for the
225         signal variables.
226         * elf/dl-close.c: Likewise.
227         * elf/dl-conflict.c: Likewise.
228         * elf/dl-debug.c: Likewise.
229         * elf/dl-deps.c: Likewise.
230         * elf/dl-dst.h: Likewise.
231         * elf/dl-error.c: Likewise.
232         * elf/dl-fini.c: Likewise.
233         * elf/dl-init.c: Likewise.
234         * elf/dl-iteratephdr.c: Likewise.
235         * elf/dl-libc.c: Likewise.
236         * elf/dl-load.c: Likewise.
237         * elf/dl-lookup.c: Likewise.
238         * elf/dl-minimal.c: Likewise.
239         * elf/dl-object.c: Likewise.
240         * elf/dl-open.c: Likewise.
241         * elf/dl-profile.c: Likewise.
242         * elf/dl-profstub.c: Likewise.
243         * elf/dl-reloc.c: Likewise.
244         * elf/dl-runtime.c: Likewise.
245         * elf/dl-support.c: Likewise.
246         * elf/dl-sym.c: Likewise.
247         * elf/dl-version.c: Likewise.
248         * elf/do-lookup.h: Likewise.
249         * elf/do-rel.h: Likewise.
250         * elf/dynamic-link.h: Likewise.
251         * elf/rtld.c: Likewise.
252         * sysdeps/generic/dl-cache.c: Likewise.
253         * sysdeps/generic/dl-sysdep.c: Likewise.
254         * sysdeps/generic/ldsodefs.h: Likewise.
255         * sysdeps/generic/libc-start.c: Likewise.
256         * sysdeps/i386/dl-machine.h: Likewise.
257         * sysdeps/ia64/dl-fptr.c: Likewise.
258         * sysdeps/ia64/dl-machine.h: Likewise.
259         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
260         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
261         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
262         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
263         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
264         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
265         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
266         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
268 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
270         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
271         to avoid warning
272         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
274         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
275         SHARED version.
276         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
278         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
280 2002-01-29  Ben Collins  <bcollins@debian.org>
282         * string/bits/string2.h (__mempcpy): Protect size arg for
283         addition when using __builtin_memcpy.
285 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
287         * stdlib/Makefile (tests): Add tst-qsort.
288         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
290         * manual/signal.texi (Process Signal Mask): Document that
291         pthread_sigmask, not sigprocmask, must be used in MT programs.
292         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
294         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
295         found.
296         * misc/Makefile (tests): Add tst-hsearch.
297         * misc/tst-hsearch.c: New file.
299 2002-01-18  Wolfram Gloger  <wg@malloc.de>
301         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
302         * malloc/malloc.h: Likewise.
303         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
304         * malloc/arena.c: New file.
305         * malloc/hooks.c: New file.
306         * malloc/tst-mallocstate.c: New file.
307         * malloc/Makefile: Add new testcase tst-mallocstate.
308         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
310 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
312         * stdlib/msort.c: Remove last patch.  The optimization violates the
313         same rule which qsort.c had problems with.
315 2002-01-27  Paul Eggert  <eggert@twinsun.com>
317         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
318         to a pivot element that lies outside the array to be sorted, as
319         ISO C99 requires that the comparison function be called only with
320         addresses of array elements [PR libc/2880].
322 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
324         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
325         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
327         * timezone/asia: Update from tzdata2002b.
328         * timezone/australasia: Likewise.
329         * timezone/backward: Likewise.
330         * timezone/europe: Likewise.
331         * timezone/leapseconds: Likewise.
332         * timezone/iso3166.tab: Likewise.
333         * timezone/zone.tab: Likewise.
335 2002-01-23  Richard Henderson  <rth@redhat.com>
337         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
339 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
341         * string/strxfrm.c: Allocate one more byte for rulearr and clear
342         this element [PR libc/2855].
344         * string/strcoll.c: Handle zero-length arguments specially
345         [PR libc/2856].
347 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
349         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
350         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
351         short lengths and constant src.
352         (strcpy): Don't optimize for gcc 3.0+.
353         (__stpcpy): For gcc 3.0+, don't use
354         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
355         for short string literal src.
357 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
359         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
360         Set for arm, too.
362 2001-01-22  Paul Eggert  <eggert@twinsun.com>
364         * manual/llio.texi (Linked Channels, Cleaning Streams):
365         Make it clearer that a just-opened input stream might need cleaning.
367 2002-01-21  H.J. Lu  <hjl@gnu.org>
369         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
370         Don't use label at end of compound statement.
372 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
374         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
375         Remove test for negative integer arg; sin_pi does it correctly.
377 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
379         * nscd/Makefile (distribute): Filter out xmalloc.c.
381 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
383         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
384         Set offset if read end wasn't the buffer end.
385         (_IO_file_seekoff_mmap): New function.
386         (_IO_file_xsgetn_mmap): New function.
387         (_IO_file_jumps_mmap): Use the two new functions.
388         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
389         != end buffer.
390         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
391         _IO_file_underflow_mmap.
392         * libio/iofopen.c: Don't position file descriptor at end of file.
393         * libio/tst-widetext.c: Improve error messages.
394         * stdio-common/tst-rndseek.c: Likewise.
396 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
398         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
399         end of enum for !_GNU_SOURCE.
400         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
401         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
402         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
403         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
404         values unless _GNU_SOURCE.
406         * iconvdata/tcvn5712-1.c: Minor cleanups.
408 2002-01-18  Andreas Schwab  <schwab@suse.de>
410         * sysdeps/unix/sysv/linux/configure.in
411         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
413 2002-01-16  Roger Sayle  <roger@eyesopen.com>
415         * stdlib/msort.c (msort_with_tmp): Replace implementation with
416         more efficient "Towers of Hanoi" mergesort.
417         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
418         for generic, sizeof(int) and sizeof(long) variants respectively.
420 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
422         * manual/syslog.texi (openlog): Describe possible problems with
423         first parameter.
424         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
426         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
427         * nscd/connections.c (begin_drop_privileges): New function.
428         (finish_drop_privileges): New function.
429         (nscd_init): Call the new functions which also install all groups
430         for the server user.
431         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
432         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
434 2002-01-17  H.J. Lu  <hjl@gnu.org>
436         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
437         `const' from `got'.
439 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
441         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
442         instructions for pointer operations.
443         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
445 2002-01-17  Andreas Jaeger  <aj@suse.de>
447         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
448         __uint128_t build-in.
450         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
451         PowerPC, sync with 2.2 branch.
453 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
455         * posix/getconf.c: Update copyright year.
456         * nss/getent.c: Likewise.
457         * nscd/nscd_nischeck.c: Likewise.
458         * iconv/iconvconfig.c: Likewise.
459         * iconv/iconv_prog.c: Likewise.
460         * elf/ldconfig.c: Likewise.
461         * catgets/gencat.c: Likewise.
462         * csu/version.c: Likewise.
463         * elf/ldd.bash.in: Likewise.
464         * elf/sprof.c (print_version): Likewise.
465         * locale/programs/locale.c: Likewise.
466         * locale/programs/localedef.c: Likewise.
467         * nscd/nscd.c (print_version): Likewise.
468         * debug/xtrace.sh: Likewise.
469         * malloc/memusage.sh: Likewise.
470         * malloc/mtrace.pl: Likewise.
472 2002-01-16  Andreas Schwab  <schwab@suse.de>
474         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
475         reliably remove "-ia64" from rtld name.
477 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
479         * iconvdata/gb18030.c: Bug fixes and support for more characters.
480         Patch by Yu Shao <yshao@redhat.com>.
482 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
484         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
485         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
486         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
488 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
490         * sysdeps/s390/fpu/libm-test-ulps: Update.
492 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
494         * elf/elf.h: Update x86 relocations.
496 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
498         * locale/programs/charmap.c (new_width): Check whether byte
499         sequences for both ends of range have the same length.
501 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
503         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
505 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
507         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
508         string literals.
509         (__full_ieee754_sqrt): Add __attribute_used__.
511 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
513         * sysdeps/generic/group_member.c (__group_member): Also check
514         groups[0] [PR libc/2781].
516 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
518         * Makefile (distribute): Add scripts/cpp.
519         * elf/Makefile (distribute): Add reldep6mod[01234].c,
520         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
521         unwind-dw2-fde.h, and dwarf2.h.
522         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
523         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
524         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
525         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
527 2002-01-07  Roland McGrath  <roland@frob.com>
529         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
530         volatile on type of ARGC so the compiler doesn't get clever.
532 2002-01-07  Andreas Jaeger  <aj@suse.de>
534         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
535         * sysdeps/i386/bits/byteswap.h: Likewise.
536         * sysdeps/ia64/bits/byteswap.h: Likewise.
537         * sysdeps/m68k/bits/byteswap.h: Likewise.
538         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
539         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise.
541 2002-01-02  Bruno Haible  <bruno@clisp.org>
543         * intl/plural.y: Fix %expect count.
545 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
547         * elf/Makefile (routines, shared-only-routines): Add
548         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
549         * elf/elf.h (PT_GNU_EH_FRAME): Define.
550         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
551         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
552         Optimize if .eh_frame section contains no FDEs.
553         (__register_frame, __deregister_frame_info_bases,
554         __deregister_frame): Likewise.
555         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
556         DW_CFA_restore handling.
558 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
560         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
562         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
563         for x < 0.25 and restore original range reduction method.
564         (__ieee754_lgammal_r): Make sure signgam is set before returning.
566 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
568         * libio/fileops.c (_IO_file_underflow_mmap): New function.
569         (_IO_file_close_mmap): New function.
570         (_IO_file_jumps_mmap): New variable.
571         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
572         trying to convert rest of byte buffer.
573         (_IO_wfile_underflow_mmap): New function.
574         (_IO_wfile_jumps_mmap): New variable.
575         * libio/iofopen.c (__fopen_maybe_mmap): New function.
576         (__fopen_internal): New function.  Split out from _IO_new_fopen.
577         (_IO_new_fopen): Call __fopen_internal.
578         * libio/iofopen64.c: Just call __fopen_internal.
579         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
580         successfully.
581         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
582         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
583         _IO_file_close_mmap.
585         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
586         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
588         * stdio-common/Makefile (tests): Add tst-rndseek.
589         * stdio-common/tst-rndseek.c: New file.
591 2002-01-05  Roland McGrath  <roland@frob.com>
593         * config.h.in (HAVE_MIG_RETCODE): New #undef.
594         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
595         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
596         * sysdeps/mach/hurd/configure: Regenerated.
598 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
600         * elf/elf.h: Add more TLS definitions.
602 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
604         * include/features.h (__GLIBC_MINOR__): Bump to 3.
606 2002-01-02  Roland McGrath  <roland@frob.com>
608         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
609         __sigisemptyset.  Don't use MASK uninitialized.
611         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
612         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
613         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
614         __sigdelset, __sigaddset, __sigorset.
616         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
617         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
619         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
620         _hurd_ports is null.
622         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
623         for old CMU and new OSF Mach interface flavors.
624         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
625         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
627         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
629         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
630         Pass extra arguments to task_create for OSF variant.
631         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
633         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
634         conditional on [HAVE_AUX_VECTOR].
636         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
637         mach_msg_timeout_t as type of final argument.
639         * hurd/privports.c (__get_privileged_ports):
640         Change host_priv_t to mach_port_t in argument type.
641         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
642         Update decls.
644         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
645         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
646         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
647         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
648         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
649         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
651 2002-01-01  Roland McGrath  <roland@frob.com>
653         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
655 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
657         * include/stdlib.h: Define inlines for the _l variants of the strto*
658         functions.
660 2002-01-01  Roland McGrath  <roland@frob.com>
662         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
664         * mach/Machrules (MIG): Set CPP as well as CC.
666 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
668         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
669         locale to parse /proc/loadavg [PR libc/2760].
671 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
673         * elf/dl-conflict.c: Include sys/param.h.
674         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
675         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
676         warning.
677         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
678         literals to avoid warnings.
680 2001-12-31  Andreas Jaeger  <aj@suse.de>
682         * configure.in: Don't check for gsed since we do not use it anywhere.
684 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
686         * io/fts.c: Update from BSD to fix memory leaks.
688 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
690         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
691         * elf/chroot_canon.c: Likewise.
692         * elf/dl-object.c: Likewise.
693         * iconv/iconv_charmap.c: Likewise.
694         * iconv/iconv_prog.c: Likewise.
695         * libio/iogetdelim.c: Likewise.
696         * locale/lc-time.c: Likewise.
697         * stdlib/canonicalize.c: Likewise.
698         * sunrpc/svc.c: Likewise.
699         * sysdeps/generic/glob.c: Likewise.
701 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
703         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
704         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
705         remove high order bit from the program counter.
706         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
708 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
710         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
711         unnecessary code and add missing reloc types.
712         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
713         case for reloc type R_390_NONE.
715 2001-12-28  Andreas Jaeger  <aj@suse.de>
717         * io/bug-ftw3.c: Include string.h for prototypes.
719         * crypt/md5test.c (main): Remove unused variable.
721         * dlfcn/modstatic.c: Add prototype to avoid warning.
723 2001-12-26  Roland McGrath  <roland@frob.com>
725         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
726         check only (SS->pending & MASK) for the signal to return.
727         From Jeroen Dekkers <jeroen@dekkers.cx>.
729 2001-12-22  Roland McGrath  <roland@frob.com>
731         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
732         Use preprocessor #if conditionals instead of `if' to avoid
733         warnings about divide by zero in dead code.
735         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
736         _hurd_port_init, and __hurd_self_sigstate.
738         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
740 2001-12-21  Andreas Jaeger  <aj@suse.de>
742         * elf/dblloadmod1.c: Add prototype to avoid warning.
743         * elf/dblloadmod2.c: Likewise.
744         * elf/dblloadmod3.c: Likewise.
745         * elf/reldepmod5.c: Likewise.
746         * elf/reldepmod6.c: Likewise.
748         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
749         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
750         used on all architectures.
752         * sunrpc/svc_tcp.c: Add noreturn attribute for
753         svctcp_rendezvous_abort.
754         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
756         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
757         to avoid warning.
759 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
761         * manual/llio.texi (aio_fsync): Fix a typo.
762         Patch by Tammy Fox <tfox@redhat.com>.
764 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
766         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
767         stack bias from child stack pointer before passing it to clone syscall.
769 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
771         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
772         _SC_TZNAME_MAX.
773         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
774         Reported by Thorsten Kukuk <kukuk@suse.de>.
776         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
777         add some casts.
779         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
781 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
783         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
784         conforming: return EBADF if file descriptor is invalid and EINVAL
785         if file descriptor is no valid tty.
786         * login/tst-grantpt.c: New file.
787         * login/Makefile (tests): Add tst-grantpt.
789 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
791         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
792         different than implemented in last patch.
793         * io/bug-ftw3.c: Adjust test for changed handling of
794         inaccessibility of toplevel dir.
796 2001-12-16  Roland McGrath  <roland@frob.com>
798         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
799         * grp/initgroups.c (internal_getgrouplist): Likewise.
801         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
802         `default:' to silence new GCC warning.
803         Rewrite cast of lvalue to silence new GCC warning.
805         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
807         * sysdeps/mach/hurd/spawni.c: New file, by me with a
808         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
810 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
812         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
813         Patch by Stephen R. van den Berg.
815         * crypt/md5.h: Define md5_uintptr.
817 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
819         * libio/tst_swprintf.c (main): Add test for string argument with
820         zero precision.
821         * stdio-common/Makefile (tests): Add tst-sprintf.
822         * stdio-common/tst-sprintf.c: New file.
824 2001-12-13  Andreas Schwab  <schwab@suse.de>
826         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
827         zero precision with wide character string format.
829 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
831         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
832         but have a user supplied buffer, return the empty buffer, not NULL.
834 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
836         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
837         Patch by Eric Sharkey <sharkey@netrics.com>.
839         * crypt/md5test.c (main): Add test for multiple calls to
840         __md5_process_bytes to itererate over input string.
842 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
844         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
845         from __nis_findfastest.  Take timeout value from parameter.
846         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
847         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
848         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
850 2001-12-12  Andreas Jaeger  <aj@suse.de>
852         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
853         combreloc test so that it works in this case.
855         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
857 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
859         * sysdeps/sh/Makefile: New file.
860         * sysdeps/sh/_mcount.S: New file.
861         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
862         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
864 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
866         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
867         limitation [PR libc/2564].
869 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
871         * elf/Makefile (dl-routines): Add conflict.
872         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
873         (ld.so): Add _begin local symbol.
874         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
875         Define.
876         * elf/dl-deps.c (_dl_build_local_scope): New.
877         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
878         of all libraries.
879         * elf/do-rel.h (VALIDX): Define.
880         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
881         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
882         can be skipped.
883         * elf/dl-conflict.c: New file.
884         * elf/dl-lookup.c (_dl_debug_bindings): New.
885         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
886         non-NULL.
887         (_dl_lookup_symbol_skip): Likewise.
888         (_dl_lookup_versioned_symbol): Likewise.
889         (_dl_lookup_versioned_symbol_skip): Likewise.
890         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
891         define to ElfW(Rel).
892         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
893         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
894         ranges.
895         Don't adjust address dynamic tags if l_addr is 0.
896         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
897         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
898         (VALIDX, ADDRIDX): Define.
899         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
900         (dl_main): Print library list for LD_TRACE_PRELINKING.
901         If prelinking information can be used, skip relocating libraries and
902         call _dl_resolve_conflicts instead.
903         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
904         * elf/dl-load.c (_dl_map_object): Don't create fake libs
905         if LD_TRACE_PRELINKING.
906         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
907         + DT_ADDRNUM.
908         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
909         (DL_DEBUG_PRELINK): Define.
910         (_dl_resolve_conflicts): Add prototype.
912         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
913         .plt for prelinked libraries where prelinking info cannot be used.
914         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
915         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
916         * sysdeps/arm/bits/link.h: New file.
917         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
918         content of .got[1].
919         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
920         (ELF_MACHINE_PLT_REL): Define.
921         (elf_machine_rela, elf_machine_rela_relative): New.
922         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
923         of adjusting it if prelinked and prelinking cannot be used.
924         * sysdeps/i386/bits/link.h: New file.
925         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
926         content of .got[1].
927         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
928         (ELF_MACHINE_PLT_REL): Define.
929         (elf_machine_rela, elf_machine_rela_relative): New.
930         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
931         of adjusting it if prelinked and prelinking cannot be used.
932         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
933         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
934         to find out map for R_PPC_JMP_SLOT relocs.
935         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
936         (OPCODE_BA): Define.
937         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
938         libraries where prelinking info cannot be used.
939         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
940         (elf_machine_fixup_plt): Call sparc_fixup_plt.
941         (elf_machine_rela): Set value to 0 if relocating conflicts.
942         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
943         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
944         (sparc64_fixup_plt): Fix a typo.
945         (elf_machine_rela): Set value to 0 if relocating conflicts.
946         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
947         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
948         libraries where prelinking info cannot be used.
949         * sysdeps/sh/bits/link.h: New file.
950         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
951         content of .got[1].
952         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
953         of adjusting it if prelinked and prelinking cannot be used.
954         * sysdeps/s390/s390-32/bits/link.h: New file.
955         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
956         Save original content of .got[1].
957         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
958         of adjusting it if prelinked and prelinking cannot be used.
959         * sysdeps/s390/s390-64/bits/link.h: New file.
960         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
961         Save original content of .got[1].
962         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
963         of adjusting it if prelinked and prelinking cannot be used.
964         * sysdeps/x86_64/bits/link.h: New file.
965         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
966         Save original content of .got[1].
967         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
968         of adjusting it if prelinked and prelinking cannot be used.
970 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
972         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
973         where appropriate instead of numbers.  Little optimizations.
975 2001-12-10  Roland McGrath  <roland@frob.com>
977         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
978         set it.
980         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
981         set to GLIBC_2.2.5, not GLIBC_2.2.4.
983         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
984         Fix conditionals so this is set by default for stdio and not for libio.
985         * sysdeps/mach/hurd/configure: Regenerated.
987 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
989         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
991 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
993         * io/Makefile (tests): Add bug-ftw3.
994         * io/bug-ftw3.c: New file.
996         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
997         matches and GLOB_NOCHECK is set.
998         * posix/globtest.sh: Correct expected result for NOCHECK test.
1000         * po/ca.po: Update from translation team.
1002 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
1004         Implement transliteration of characters in strings of the locale
1005         definitions.
1006         * locale/programs/linereader.c: Adjust for additional parameter to
1007         lr_token.
1008         (get_string): If character <Uxxxx> is not found try to transliterate
1009         it.
1010         * locale/programs/ld-ctype.c: Adjust for additional parameter to
1011         lr_token.  Add const to charmap parameter of all functions.
1012         (find_translit, find_translit2): New functions.
1013         * locale/programs/charmap.c: Adjust for additional parameter to
1014         lr_token.
1015         * locale/programs/repertoire.c: Likewise.
1016         * locale/programs/linereader.h: Likewise.
1017         * locale/programs/ld-address.c: Likewise.  Add const to charmap
1018         parameter of all functions.
1019         * locale/programs/ld-collate.c: Likewise.
1020         * locale/programs/ld-identification.c: Likewise.
1021         * locale/programs/ld-measurement.c: Likewise.
1022         * locale/programs/ld-messages.c: Likewise.
1023         * locale/programs/ld-monetary.c: Likewise.
1024         * locale/programs/ld-name.c: Likewise.
1025         * locale/programs/ld-numeric.c: Likewise.
1026         * locale/programs/ld-paper.c: Likewise.
1027         * locale/programs/ld-paper.c: Likewise.
1028         * locale/programs/ld-telephone.c: Likewise.
1029         * locale/programs/ld-time.c: Likewise.
1030         * locale/programs/locfile.c: Likewise.
1031         * locale/programs/localedef.c: Likewise.
1032         * locale/programs/localedef.h: Likewise.
1033         * locale/programs/locfile.h: Likewise.  Add declaration for
1034         find_translit.
1035         * locale/programs/simple-hash.c: Add const to first parameter of
1036         find_entry, iterate_table, and lookup.
1037         * locale/programs/simple-hash.h: Likewise.
1038         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
1039         instead.
1040         * include/locale.h: Define __LC_LAST.
1041         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
1043 2001-12-07  Geoff Keating  <geoffk@redhat.com>
1045         * sysdeps/powerpc/Dist: Update for recent FP changes.
1046         * sysdeps/powerpc/fpu/Dist: Likewise.
1048 2001-12-07  Andreas Schwab  <schwab@suse.de>
1050         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
1052 2001-12-06  Geoff Keating  <geoffk@redhat.com>
1054         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
1055         save/restore functions here.
1056         (libm-support): Don't define these functions here.
1057         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
1058         functions here.
1059         * sysdeps/powerpc/fe_nomask.c: Move to...
1060         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
1061         * sysdeps/powerpc/fprrest.S: Move to...
1062         * sysdeps/powerpc/fpu/fprrest.S: ... here.
1063         * sysdeps/powerpc/fprsave.S: Move to...
1064         * sysdeps/powerpc/fpu/fprsave.S: ... here.
1066 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
1068         * sysdeps/unix/sysv/linux/opensock.c: New file.
1070 2001-12-06  Geoff Keating  <geoffk@redhat.com>
1072         * config.make.in (with-fp): Define from configure.
1073         * configure.in: Substitute with_fp.
1074         * configure: Regenerate.
1075         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
1076         specified, and don't change FPU environment.
1078 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
1080         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
1081         * assert/assert.c: Check result of __asprintf call and don't use
1082         string if it failed.
1083         * assert/assert-perr.c: Likewise.
1084         * inet/rcmd.c: Likewise.
1085         * locale/programs/localedef.c (main): Check result of
1086         construct_output_path and exit if it failed.
1087         (construct_output_path): Check result of asprintf and mkdir calls and
1088         fail if they failed.
1089         * posix/getopt.c: Check result of __asprintf calls and fail if
1090         they failed.
1091         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
1093 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1095         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
1096         patch.
1097         * sysdeps/generic/strncase.c: Likewise.
1098         * string/tester.c: Add tests for strcasecmp and strncasecmp.
1100 2001-12-05  Geoff Keating  <geoffk@redhat.com>
1102         * scripts/cpp: Test the exit status from 'type', not 'awk'.
1104         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
1105         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
1106         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
1107         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
1108         * sysdeps/powerpc/fclrexcpt.c: Move to...
1109         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
1110         * sysdeps/powerpc/fpu_control.h: Move to...
1111         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
1113 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1115         * iconvdata/ibm1129.h: Remove duplicate mappings.
1116         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
1117         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
1118         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1120         * timezone/zic.c: Fix handling of turnaround times.
1121         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
1123 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
1125         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
1126         overflow problem.
1128 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1130         * posix/regex.c: For use outside glibc defined bounded pointer
1131         macros here.  Patch by Jim Meyering <jim@meyering.net>.
1133         * iconvdata/Makefile (modules): Add TCVN5712-1.
1134         * iconvdata/TESTS: Add TCVN5712-1.
1135         * iconvdata/gconv-modules: Likewise.
1136         * iconvdata/tcvn5712-1.c: New file.
1137         * iconvdata/testdata/TCVN-5712: New file.
1138         * iconvdata/testdata/TCVN-5712..UTF8: New file.
1140 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
1142         * iconvdata/cp1258.c: Optimize conversion from UCS4.
1144 2001-12-02  Roland McGrath  <roland@frob.com>
1146         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
1148         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
1149         Reported by Jeff Bailey <jbailey@nisa.net>.
1151         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
1152         Reported by Jeff Bailey <jbailey@nisa.net>.
1154         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
1155         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
1156         Reported by Jeff Bailey <jbailey@nisa.net>.
1158 2001-12-01  Roland McGrath  <roland@frob.com>
1160         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
1161         missing backslash in test arguments.
1162         * sysdeps/mach/hurd/configure: Regenerated.
1164 2001-11-26  Roland McGrath  <roland@frob.com>
1166         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
1167         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
1169 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
1171         * iconvdata/Makefile (modules): Add ARMSCII-8.
1172         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
1173         * iconvdata/armscii-8.c: New file.
1175 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
1177         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
1178         don't match, fix {{a,b},c} globbing, clean up.
1179         Patch by Flavio Veloso <flaviovs@magnux.com>.
1180         * posix/globtest.sh: Add new tests.
1182 2001-11-29  Andreas Jaeger  <aj@suse.de>
1184         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
1185         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
1187         * sysdeps/generic/abort.c: Include libioP.h for
1188         _IO_flush_all_lockp prototype.
1190 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
1192         * posix/regex.h: Define __restrict_arr correctly.
1194 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
1196         * iconvdata/ibm1163.c: New file.
1197         * iconvdata/ibm1163.h: New file.
1198         * iconvdata/ibm1164.c: New file.
1199         * iconvdata/ibm1164.h: New file.
1200         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
1201         * iconvdata/Makefile: Likewise.
1202         * iconvdata/testdata/IBM1163: New file.
1203         * iconvdata/testdata/IBM1163..UTF8: New file.
1204         * iconvdata/testdata/IBM1164: New file.
1205         * iconvdata/testdata/IBM1164..UTF8: New file.
1206         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1208         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
1209         * iconvdata/ibm1124.h: Likewise.
1210         * iconvdata/ibm1132.h: Likewise.
1211         * iconvdata/ibm1133.h: Likewise.
1212         * iconvdata/ibm1160.h: Likewise.
1213         * iconvdata/ibm1161.h: Likewise.
1214         * iconvdata/ibm1162.h: Likewise.
1215         * iconvdata/ibm856.h: Likewise.
1216         * iconvdata/ibm922.h: Likewise.
1217         * iconvdata/ibm930.h: Likewise.
1218         * iconvdata/ibm932.h: Likewise.
1219         * iconvdata/ibm933.h: Likewise.
1220         * iconvdata/ibm935.h: Likewise.
1221         * iconvdata/ibm937.h: Likewise.
1222         * iconvdata/ibm939.h: Likewise.
1223         * iconvdata/ibm943.h: Likewise.
1224         * iconvdata/ibm930.c: Pretty printing.
1225         * iconvdata/ibm937.c: Avoid access accross array boundary.
1227         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
1228         the current locale's codeset.
1229         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
1230         empty input string.
1231         * iconv/iconv_prog.c: Pass empty strings as default value for to-
1232         and from-charset.  Don't determine locale's charset here.
1234         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
1235         as the old _IO_flush_all but lock only if parameter is nonzero.
1236         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
1237         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
1238         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
1239         if libio is used [PR libc/2575].
1241 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
1243         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
1244         __signbitl): Only define for ISO C99.
1246 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
1248         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
1249         herrnop to NETDB_INTERNAL if we run out of buffer space.
1251 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
1253         * nss/nss_files/files-XXX.c (internal_getent): Correct input
1254         overflow test for platforms with signed char.
1255         Reported by Andrew Haley <aph@cambridge.redhat.com>.
1257 2001-11-28  Bruno Haible  <bruno@clisp.org>
1259         * locale/programs/simple-hash.c (lookup_2): Remove function.
1260         (insert_entry_2): Call lookup instead of lookup_2.
1262 2001-03-04  Bruno Haible  <bruno@clisp.org>
1264         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
1266 2001-10-31  Bruno Haible  <bruno@clisp.org>
1268         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
1270 2001-03-21  Bruno Haible  <bruno@clisp.org>
1272         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
1273         chokes on empty macro arguments.
1274         * intl/plural.y: Add #pragma for alloca on AIX 3.
1276 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
1278         * intl/dcigettext.c (guess_category_value): Only implement for
1279         glibc.  Otherwise rely on function _nl_locale_name which isn't
1280         present in the glibc sources.
1282 2001-09-24  Bruno Haible  <bruno@clisp.org>
1284         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
1285         transliteration when building on a glibc system but outside glibc.
1287 2001-09-22  Bruno Haible  <bruno@clisp.org>
1289         * intl/plural-eval.c: New file, extracted from dcigettext.c.
1290         * intl/dcigettext.c (plural_eval): Remove function, moved to
1291         intl/plural-eval.c.
1292         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
1293         Include plural-eval.c.
1295 2001-09-22  Bruno Haible  <bruno@clisp.org>
1297         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
1298         don't start with a digit; nplurals must be positive.
1300 2001-09-02  Bruno Haible  <bruno@clisp.org>
1302         * intl/plural-exp.h: New file, extracted from gettextP.h.
1303         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
1304         * intl/gettextP.h (struct expression, struct parse_args,
1305         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
1306         * intl/loadmsgcat.c: Include plural-exp.h.
1307         (PLURAL_PARSE): Move macro to plural-exp.h.
1308         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
1309         plural-exp.c.
1310         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
1311         EXTRACT_PLURAL_EXPRESSION.
1312         (_nl_unload_domain): Update.
1313         * intl/dcigettext.c: Include plural-exp.h.
1314         * intl/plural.y: Include plural-exp.h, not gettextP.h.
1315         (FREE_EXPRESSION): Move macro to plural-exp.h.
1316         * intl/Makefile (routines): Add plural-exp.
1317         (distribute): Add plural-exp.h.
1319 2001-07-28  Bruno Haible  <bruno@clisp.org>
1321         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
1322         isdigit, tolower argument to 'unsigned char'.
1323         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
1324         'unsigned char'.
1325         * intl/localealias.c (read_alias_file): Cast isspace argument to
1326         'unsigned char'.
1328 2001-10-20  Bruno Haible  <bruno@clisp.org>
1330         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
1331         anyway.)
1332         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
1333         with the variable 'index' in plural_lookup.
1334         * intl/l10nflist.c (strchr): Likewise.
1335         * intl/localealias.c (strchr): Likewise.
1337         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
1338         * intl/bindtextdom.c: Likewise.
1339         * intl/dcigettext.c: Likewise.
1340         * intl/dgettext.c: Likewise.
1341         * intl/dngettext.c: Likewise.
1342         * intl/explodename.c: Likewise.
1343         * intl/finddomain.c: Likewise.
1344         * intl/gettext.c: Likewise.
1345         * intl/l10nflist.c: Likewise.
1346         * intl/loadmsgcat.c: Likewise.
1347         * intl/localealias.c: Likewise.
1348         * intl/ngettext.c: Likewise.
1349         * intl/textdomain.c: Likewise.
1350         * intl/gettext.h: Assume <limits.h> exists.
1352 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
1354         * stdio-common/Makefile (tests): Add scanf11.
1355         * stdio-common/scanf11.c: New file.
1357 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
1359         * version.h (RELEASE): Define as development.
1360         (VERSION): Set to 2.2.90.
1362 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
1364         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
1365         * nis/nss_nis/nis-grp.c: Likewise.
1366         * nis/nss_nisplus/nisplus-grp.c: Likewise.
1368         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
1369         * nis/nss_nis/nis-pwd.c: Likewise.
1370         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
1372         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
1373         * nis/nss_nisplus/nisplus-parser.c: Likewise.
1374         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
1376         * nscd/grpcache.c: Use strtoul instead of atol.
1377         * nscd/pwdcache.c: Likewise.
1378         * nss/getent.c: Likewise.
1380 2001-11-27  Paul Eggert  <eggert@twinsun.com>
1382         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
1383         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
1385 2001-11-19  Bruno Haible  <bruno@clisp.org>
1387         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
1388         90%.
1389         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
1390         improves the quality of the hash function, especially for short
1391         strings.
1393 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
1395         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
1396         are found call conv_error and not input_error [PR libc/2669].
1398         * math/bits/mathcalls.h: Mark ceil and floor as const.
1399         Reported by David Mosberger.
1401 2001-11-21  Jim Meyering  <meyering@lucent.com>
1403         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
1404         Define to be __-prefixed.
1405         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
1407 2001-11-26  Andreas Jaeger  <aj@suse.de>
1409         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
1410         avoid warning.
1412 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
1414         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
1415         initialization.
1417         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
1418         unused variables.  Fix threshold for returning 1.0.
1420         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
1421         argument.
1423         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
1424         remove unused variables.
1426         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
1428         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
1429         include local math header files.
1431 2001-11-22  Andreas Jaeger  <aj@suse.de>
1433         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
1434         avoid warning.
1436 2001-11-21  Andreas Jaeger  <aj@suse.de>
1438         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
1440         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
1441         sys/debugreg.h
1443 2001-11-15  Andreas Jaeger  <aj@suse.de>
1445         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
1446         compilers that support it.
1448         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
1449         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
1450         * stdlib/stdlib.h: Likewise.
1452 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
1454         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
1455         statement with gotos.
1456         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
1458 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
1460         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
1462 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
1464         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
1466 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
1467             H.J. Lu  <hjl@gnu.org>
1469         * Versions.def (libc): Add GCC_3.0.
1470         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
1471         if gcc supports this flag.
1472         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
1473         (gcc3): Allow glibc to be compiled with gcc 3.x.
1474         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
1475         * config.make.in (static-libgcc, unwind-find-fde): Add.
1476         * Makerules (build-shlib-helper, build-module-helper): Use it.
1477         * scripts/versions.awk: Make sure GLIBC_ versions come first.
1478         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
1479         necessary.
1480         (_fini): Call __deregister_frame_info_bases if
1481         __register_frame_info_bases was used to register.
1482         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
1483         for GLIBC_2.0.
1484         (__register_frame_info_bases, __register_frame_info_table_bases,
1485         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
1486         * elf/Makefile (routines): Add unwind-dw2-fde.
1487         (shared-only-routines): Add unwind-dw2-fde.
1488         * sysdeps/alpha/gccframe.h: New file.
1489         * sysdeps/arm/gccframe.h: New file.
1490         * sysdeps/generic/framestate.c: New file.
1491         * sysdeps/generic/dwarf2.h: New file.
1492         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
1493         * sysdeps/generic/unwind-dw2-fde.c: New file.
1494         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
1495         * sysdeps/generic/unwind-dw2-fde.h: New file.
1496         * sysdeps/generic/unwind-dw2.c: New file.
1497         * sysdeps/generic/unwind-pe.h: New file.
1498         * sysdeps/generic/unwind.h: New file.
1499         * sysdeps/hppa/gccframe.h: New file.
1500         * sysdeps/i386/gccframe.h: New file.
1501         * sysdeps/m68k/gccframe.h: New file.
1502         * sysdeps/mips/gccframe.h: New file.
1503         * sysdeps/powerpc/gccframe.h: New file.
1504         * sysdeps/s390/gccframe.h: New file.
1505         * sysdeps/sh/gccframe.h: New file.
1506         * sysdeps/sparc/gccframe.h: New file.
1507         * sysdeps/vax/gccframe.h: New file.
1508         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
1509         Set on all architectures except ia64.
1510         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
1511         for i386.
1512         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
1513         __deregister_frame_info): Move to elf/Versions.
1514         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
1515         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
1516         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1517         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
1518         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
1519         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
1520         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
1521         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1522         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
1523         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
1524         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
1525         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
1526         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
1527         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
1528         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
1529         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
1530         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
1531         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
1533 2001-11-15  Jeff Law  <law@redhat.com>
1535         * posix/regex.c (uintptr_t): Do not provide a definition if the
1536         system provided one.
1538 2001-11-13  Roland McGrath  <roland@frob.com>
1540         * stdio-common/tmpfile.c: Moved to ...
1541         * sysdeps/generic/tmpfile.c: ... here.
1542         * sysdeps/mach/hurd/tmpfile.c: New file.
1544         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
1545         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
1546         (fopenport): Define as weak alias.
1548         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
1549         * libio/libioP.h: ... to here.
1551 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
1553         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
1554         program header twice.  Construct list with the needed information.
1556 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
1558         * po/ca.po: Update from translation team.
1560         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
1561         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
1562         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
1563         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
1565 2001-11-10  Andreas Jaeger  <aj@suse.de>
1567         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
1568         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1569         Contributed by Stephen L Moshier <moshier@mediaone.net>.
1571 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
1573         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
1574         correctly.
1575         * elf/dl-load.c (is_dst): New function.
1576         (_dl_dst_count): Use is_dst to check for DST variable.
1577         (_dl_dst_substitute): Likewise.
1579 2001-11-09  Roland McGrath  <roland@frob.com>
1581         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
1582         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
1583         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
1584         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
1585         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
1586         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
1587         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
1588         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
1589         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
1590         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
1591         * sysdeps/mach/hurd/powerpc/Dist: New file.
1593         * hurd/privports.c (__get_privileged_ports):
1594         Only contact the proc server if necessary for this call.
1595         Suggested by Neal H Walfield <neal@cs.uml.edu>.
1596         Check error return for mach_port_mod_refs.
1598 2001-11-09  Andreas Schwab  <schwab@suse.de>
1600         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
1602 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
1604         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
1605         object is always the last in the list.
1606         (_dl_map_object_from_fd): Delete code to remove from object list
1607         when DF_1_NOOPEN is seen.  This is done in lose.
1609 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
1611         * elf/dl-object.c (_dl_new_object): Various small optimizations.
1613 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
1615         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
1616         HWCAP_CHECK macro code.
1618         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
1619         Now returns MAP_FAILED on error.
1620         * elf/rtld.c: Adjust caller.
1621         * sysdeps/generic/dl-cache.c: Likewise.
1622         * sysdeps/generic/ldsodefs.h: Adjust description.
1624         * elf/dl-version.c (match_symbol): Optimize error handling for size.
1625         (_dl_check_map_versions): Likewise.
1627 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
1629         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
1630         _dl_signal_error directly, always use lose.  Set fd to -1 after
1631         file is closed.
1632         (lose): Don't call close if fd == -1.
1634 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
1636         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
1637          Also fix typo @code {mbsinit} to @code{mbsinit}.
1639 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
1641         * elf/dl-profile.c: Replace state variable with simple flag named
1642         running.  Remove commented-out code.
1644         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
1645         (_dl_init_paths): Likewise.
1646         (_dl_map_object_from_fd): Likewise.
1647         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
1649 2001-11-06  Roland McGrath  <roland@frob.com>
1651         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
1652         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
1654         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
1655         sysdeps/powerpc/elf/sysdep.h.
1656         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
1658 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
1660         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
1661         speed.
1662         (process_envvars): Some more optimizations.
1663         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
1665         * elf/elf.h: Add dynamic tag definitions for prelinking.
1667         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
1668         Rewrite code to remove environment varables for SUID binaries.
1669         Small optimization in LD_PROFILE handling.
1670         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
1671         changes.
1672         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
1674         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
1676         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
1677         strings.  Change type of second parameter.
1678         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
1679         for last change.
1681         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
1683 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
1685         * manual/string.texi: Fix typos.
1686         * manual/examples/argp-ex2.c: Likewise.
1688 2001-11-05  Roland McGrath  <roland@frob.com>
1690         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
1691         the more-specific unix/sysv/linux/powerpc file and breaks everything.
1692         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
1693         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
1694         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
1695         here, put under [__ELF__].
1697 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
1699         * manual/charset.texi: Extensive editing work.
1700         * manual/nss.texi: Likewise.
1701         Changes by Dennis Grace <dgrace@us.ibm.com>.
1703 2001-11-04  Roland McGrath  <roland@frob.com>
1705         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
1706         parameter to dir_mkfile.
1708 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
1710         * string/bits/string2.h (__strndup): If n is smaller than len, set
1711         len to n + 1.
1712         * string/tester.c (test_strndup): New function.
1713         (main): Call it.
1715 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
1717         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
1719         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
1720         * scripts/cpp: New file.
1722         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
1723         for rtld_search_dirs content.  Minor optimizations.
1725 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
1727         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
1728         avoiding unnecessary duplication.
1730 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
1732         * elf/dl-load.c (_dl_map_object): If library was found using
1733         LD_LIBRARY_PATH, don't try RUNPATH list.
1735 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1737         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
1738         Correct second argument of register_dump call.
1739         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
1740         Likewise.
1742 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
1744         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
1745         modules.
1746         * iconvdata/TESTS: Likewise.
1747         * iconvdata/gconv-modules: Likewise.
1748         * iconvdata/ibm1132.c: New file.
1749         * iconvdata/ibm1132.h: New file.
1750         * iconvdata/ibm1133.c: New file.
1751         * iconvdata/ibm1133.h: New file.
1752         * iconvdata/ibm1162.c: New file.
1753         * iconvdata/ibm1162.h: New file.
1754         * iconvdata/testdata/IBM1132: New file.
1755         * iconvdata/testdata/IBM1132..UTF8: New file.
1756         * iconvdata/testdata/IBM1133: New file.
1757         * iconvdata/testdata/IBM1133..UTF8: New file.
1758         * iconvdata/testdata/IBM1162: New file.
1759         * iconvdata/testdata/IBM1162..UTF8: New file.
1760         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
1762         * string/string.h: Fix typo in comment.
1763         * wcsmbs/wchar.h: Likewise.
1765 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
1767         * manual/getopt.texi (getopt_long, getopt_long_only): Include
1768         const in type of longopts parameter.
1770 2001-10-29  Andreas Jaeger  <aj@suse.de>
1772         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
1774 2001-10-29  Kevin Ryde  <user42@zip.com.au>
1776         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
1777         output, clarify `#' behaviour on 0.
1778         (Floating-Point Conversions): Clarify that %g only uses %e when
1779         the exponent would be greater than 1.
1781 2001-10-28  Roland McGrath  <roland@frob.com>
1783         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
1784         * sysdeps/mach/powerpc/machine-sp.h: New file.
1785         * sysdeps/mach/powerpc/sysdep.h: New file.
1786         * sysdeps/mach/powerpc/thread_state.h: New file.
1788         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
1789         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
1790         expect to need the same thing on every platform.
1792         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
1793         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
1795         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
1796         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
1797         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
1798         Move all these assembly-related definitions to ...
1799         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
1801         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
1802         by Peter Bruin <pjbruin@dds.nl>.
1804         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
1805         packing results for a `poll' call.
1807 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
1809         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
1810         correctly.
1811         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
1812         bracket expression.
1814         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
1815         nrules value.
1816         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
1818 2001-10-24  H.J. Lu  <hjl@gnu.org>
1820         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
1821         Use __BEGIN_DECLS/__END_DECLS around prototypes.
1822         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
1824 2001-10-21  Jim Meyering  <meyering@lucent.com>
1826         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
1827         this code would end up calling gettext even in packages built
1828         with --disable-nls.
1829         * posix/getopt.c (_): Likewise.
1830         * posix/regex.c (_): Likewise.
1832 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
1834         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
1835         lookup not ip6.int.
1836         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
1837         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
1839 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
1841         * misc/sys/cdefs.h (__attribute_used__): Define.
1842         * elf/rtld.c (_dl_start): Add __attribute_used__.
1843         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
1845 2001-10-25  Andreas Schwab  <schwab@suse.de>
1847         * stdlib/a64l.c: Expect least significant digit first.
1848         * stdlib/l64a.c: Produce least significant digit first.
1849         * stdlib/Makefile (tests): Add test-a64l.
1850         * stdlib/test-a64l.c: New file.
1851         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
1853 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
1855         * po/sk.po: Update from translation team.
1857 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
1859         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
1861 2001-10-18  Andreas Schwab  <schwab@suse.de>
1863         * math/libm-test.inc (print_ulps): Print ulp values rounded to
1864         next whole number.
1865         (print_function_ulps): Likewise.
1866         (print_complex_function_ulps): Likewise.
1867         (print_max_error): Likewise.
1868         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
1870 2001-10-16  Andreas Schwab  <schwab@suse.de>
1872         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
1873         implementation.
1875         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
1876         BSD_SETJMP or BSD__SETJMP is defined, resp.
1877         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
1878         a tail call to __sigsetjmp that would require extending the
1879         caller's frame.
1880         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
1881         * sysdeps/m68k/bsd-setjmp.S: Deleted.
1882         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
1883         Reported by Jes Sorensen <jes@trained-monkey.org>.
1885 2001-10-16  Andreas Jaeger  <aj@suse.de>
1887         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
1888         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
1889         close PR libc/2589.
1891 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
1893         * po/ca.po: New file.  Contributed by the translation team.
1895 2001-10-15  Ralf Baechle  <ralf@gnu.org>
1897         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
1898         a varargs prototype.  Remove dependency from kernel header files.
1900         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
1901         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
1903 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
1905         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
1906         to generate hexadecimal identifier.
1907         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
1909 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
1911         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
1913 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
1915         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
1916         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
1917         Contributed by Stephen L Moshier <moshier@mediaone.net>.
1919         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
1920         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1921         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
1922         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
1923         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
1924         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
1926         * timezone/africa: Update from tzdata2001d.
1927         * timezone/asia: Likewise.
1928         * timezone/australasia: Likewise.
1929         * timezone/backward: Likewise.
1930         * timezone/europe: Likewise.
1931         * timezone/leapseconds: Likewise.
1932         * timezone/northamerica: Likewise.
1933         * timezone/southamerica: Likewise.
1934         * timezone/zone.tab: Likewise.
1936 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1938         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
1939         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
1941 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
1943         * elf/elf.h (PT_TLS): New definition.
1945 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
1947         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
1948         bits/errno.h
1950 2001-10-07  Roland McGrath  <roland@frob.com>
1952         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
1954 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
1956         * elf/elf.h: Add more ELFOSABI_* constants.
1958 2001-10-04  Ben Collins  <bcollins@debian.org>
1960         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
1961         decleration of __need_wchar_t.
1963 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
1965         * string/bits/string2.h (__strsep_g): Add prototype.
1966         (__strsep): Use it.
1967         * string/Versions (__strsep): Remove.
1968         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
1970 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
1972         * manua/llio.texi: Clarify file references added by mmap.
1973         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
1975 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
1977         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
1978         Add sc_loadrs and sc_rbs_bas to match current kernel.
1980 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
1982         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
1984         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
1986 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
1988         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
1989         object has been bumped because of relocation dependency, avoid
1990         duplicates in l_scope.
1991         (show_scope): Fix typos.
1992         * elf/Makefile: Add rules to build and run reldep6.
1993         * elf/reldep6.c: New file.
1994         * elf/reldep6mod0.c: New file.
1995         * elf/reldep6mod1.c: New file.
1996         * elf/reldep6mod2.c: New file.
1997         * elf/reldep6mod3.c: New file.
1998         * elf/reldep6mod4.c: New file.
2000 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
2002         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
2003         sparc64_fixup_plt.
2004         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
2005         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
2006         for non-lazy binding. Fix .plt[32768+] handling.
2007         (elf_machine_plt_value): Don't add addend.
2008         (elf_machine_rela): Call sparc64_fixup_plt instead of
2009         elf_machine_fixup_plt.
2010         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
2011         dynamic linker at 0xfffff800XXXXXXXX.
2013         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
2015 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
2017         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
2019 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
2021         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
2022         declare __cmsg_data field if its size would be bigger than 0.
2023         (CMSG_DATA): Adjust accordingly.
2024         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
2025         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
2026         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
2027         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
2028         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2029         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
2030         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2032 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
2034         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
2035         * iconvdata/testdata/IBM1160: New file.
2036         * iconvdata/testdata/IBM1160..UTF8: New file.
2037         * iconvdata/testdata/IBM1161: New file.
2038         * iconvdata/testdata/IBM1161..UTF8: New file.
2039         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2041 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
2043         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
2044         UL_SETFSIZE computations better.
2046         * rt/Makefile: Remove use of filter for librt again.
2048         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
2049         UL_SETFSIZE computations better.
2051         * string/Versions: Export __strsep for GLIBC_2.2.5.
2052         * string/bits/string2.h: Define all __STRING_INLINE functions if
2053         _FORCE_INLINES is defined.
2054         Use int instead of char of parameter types.
2055         (__strsep): Don't use __strsep_g.  Don't define it.
2056         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
2057         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
2058         __strcpy_small.
2059         (__stpcpy_a_small): Renamed from __stpcpy_small.
2060         (__strcspn_c1): Don't define if _FORCE_INLINES.
2061         (__strspn_c1): Likewise.
2063 2001-09-22  Ben Collins  <bcollins@debian.org>
2065         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
2066         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
2067         * sysdeps/ia64/bits/sigaction.h: Likewise.
2068         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
2070 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
2072         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
2074 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
2076         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
2078 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
2080         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
2082 2001-09-20  H.J. Lu  <hjl@gnu.org>
2084         * include/dlfcn.h (__RTLD_SPROF): New definiton.
2085         * elf/dl-open.c (dl_open_worker): Return immediately after loading
2086         for __RTLD_SPROF.
2087         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
2088         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
2090 2001-09-20  H.J. Lu  <hjl@gnu.org>
2092         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
2093         don't add 1.
2095 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
2097         * nss/getent.c: Accept -s parameter to overwrite rules in
2098         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
2100         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
2101         with as many ".0" as necessary to form a complete address
2102         inet_network understands.
2104         * nss/getent.c: Various cleanups.  Use simpler and fewer function
2105         calls.
2107 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2109         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
2110         _JMPBUF_UNWINDS.
2111         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
2113 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
2115         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
2116         IBM1161.
2117         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
2118         * iconvdata/ibm1160.c: New file.
2119         * iconvdata/ibm1160.h: New file.
2120         * iconvdata/ibm1161.c: New file.
2121         * iconvdata/ibm1161.h: New file.
2122         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2124 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
2126         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
2127         difference between base address and first PT_LOAD's virtual address,
2128         not the base address.
2130 2001-09-11  Tom Rix  <trix@redhat.com>
2132         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
2133         ifdef for __getopt_clean_environment.
2134         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
2136 2001-09-22  Andreas Jaeger  <aj@suse.de>
2138         * elf/reldep4.c (main): Add proper prototype to fix warning.
2140         * elf/reldep5.c (main): Remove unused variable.
2142         * math/math_private.h: Add prototypes.
2144 2001-09-21  Andreas Jaeger  <aj@suse.de>
2146         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
2147         * sysdeps/x86_64/Dist: New file.
2148         * sysdeps/x86_64/soft-fp/Dist: New file.
2150         * sysdeps/gnu/Dist: Remove eval.c.
2152 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
2154         * malloc/memusage.c (realloc): Don't count already allocated
2155         memory in the sums.
2156         (me): Always use dlsym() to find the real implementations.
2158         * malloc/memusage.sh: Make -n option actually do something.
2160 2001-09-20  Andreas Jaeger  <aj@suse.de>
2162         * elf/elf.h (R_390_NUM): Correct value.
2164         * Versions.def: Add missing versions 2.2.3 for libthread_db and
2165         libpthread.
2167         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
2168         for x86-64, install x86-64 into */lib64.
2170         * shlib-versions: Add x86-64.
2172         * elf/elf.h: Add x86-64 relocations.
2174 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
2176         * po/fr.po: Update from translation team.
2178 2001-09-19  Andreas Jaeger  <aj@suse.de>
2180         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
2181         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
2182         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
2183         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
2184         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
2185         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
2186         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
2187         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
2188         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
2189         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
2190         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
2191         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
2192         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
2193         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
2194         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
2195         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
2196         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
2197         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
2198         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
2199         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
2200         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
2201         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
2202         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
2203         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
2204         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
2205         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
2206         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
2207         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
2208         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
2209         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
2210         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
2211         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
2212         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
2213         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
2214         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
2215         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
2216         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
2217         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
2218         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
2219         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
2220         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
2221         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
2222         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
2223         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
2224         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
2225         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
2226         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
2227         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
2228         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
2229         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
2230         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
2231         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
2232         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
2233         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
2234         * sysdeps/unix/x86_64/sysdep.S: New file.
2235         * sysdeps/unix/x86_64/sysdep.h: New file.
2236         * sysdeps/x86_64/Implies: New file.
2237         * sysdeps/x86_64/Makefile: New file.
2238         * sysdeps/x86_64/Versions: New file.
2239         * sysdeps/x86_64/__longjmp.S: New file.
2240         * sysdeps/x86_64/abort-instr.h: New file.
2241         * sysdeps/x86_64/atomicity.h: New file.
2242         * sysdeps/x86_64/bits/endian.h: New file.
2243         * sysdeps/x86_64/bits/setjmp.h: New file.
2244         * sysdeps/x86_64/bits/string.h: New file.
2245         * sysdeps/x86_64/bp-asm.h: New file.
2246         * sysdeps/x86_64/bsd-_setjmp.S: New file.
2247         * sysdeps/x86_64/bsd-setjmp.S: New file.
2248         * sysdeps/x86_64/dl-machine.h: New file.
2249         * sysdeps/x86_64/elf/initfini.c: New file.
2250         * sysdeps/x86_64/elf/start.S: New file.
2251         * sysdeps/x86_64/ffs.c: New file.
2252         * sysdeps/x86_64/ffsll.c: New file.
2253         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
2254         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
2255         * sysdeps/x86_64/fpu/e_acosl.c: New file.
2256         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
2257         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
2258         * sysdeps/x86_64/fpu/e_expl.c: New file.
2259         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
2260         * sysdeps/x86_64/fpu/e_log10l.S: New file.
2261         * sysdeps/x86_64/fpu/e_log2l.S: New file.
2262         * sysdeps/x86_64/fpu/e_logl.S: New file.
2263         * sysdeps/x86_64/fpu/e_powl.S: New file.
2264         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
2265         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
2266         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
2267         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
2268         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
2269         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
2270         * sysdeps/x86_64/fpu/fegetenv.c: New file.
2271         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
2272         * sysdeps/x86_64/fpu/fegetround.c: New file.
2273         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
2274         * sysdeps/x86_64/fpu/fesetenv.c: New file.
2275         * sysdeps/x86_64/fpu/fesetround.c: New file.
2276         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
2277         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
2278         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
2279         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
2280         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
2281         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
2282         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
2283         * sysdeps/x86_64/fpu/s_atanl.c: New file.
2284         * sysdeps/x86_64/fpu/s_cosl.S: New file.
2285         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
2286         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
2287         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
2288         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
2289         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
2290         * sysdeps/x86_64/fpu/s_logbl.c: New file.
2291         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
2292         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
2293         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
2294         * sysdeps/x86_64/fpu/s_rintl.c: New file.
2295         * sysdeps/x86_64/fpu/s_significandl.c: New file.
2296         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
2297         * sysdeps/x86_64/fpu/s_sinl.S: New file.
2298         * sysdeps/x86_64/fpu/s_tanl.S: New file.
2299         * sysdeps/x86_64/gmp-mparam.h: New file.
2300         * sysdeps/x86_64/hp-timing.c: New file.
2301         * sysdeps/x86_64/hp-timing.h: New file.
2302         * sysdeps/x86_64/htonl.S: New file.
2303         * sysdeps/x86_64/memusage.h: New file.
2304         * sysdeps/x86_64/setjmp.S: New file.
2305         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
2306         * sysdeps/x86_64/stackinfo.h: New file.
2307         * sysdeps/x86_64/sysdep.h: New file.
2308         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
2310         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
2311         L Moshier.
2313 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2315         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
2316         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
2318 2001-09-18  Andreas Schwab  <schwab@suse.de>
2320         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
2321         list, now that l_scope is a pointer.
2323         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
2324         scope list.
2326 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2328         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
2329         (elf_machine_rela_relative): Add a missing declaration.
2331 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
2333         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
2334         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
2335         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
2336         ldd-rewrite scripts.
2338 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2340         * elf/ldd.bash.in: Update copyright message.
2342 2001-09-17  H.J. Lu  <hjl@gnu.org>
2344         * hurd/hurdmalloc.c (bcopy): Removed.
2345         (realloc): Replace bcopy with memcpy.
2346         * hurd/path-lookup.c (file_name_path_scan): Likewise.
2347         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
2348         * sunrpc/rpcinfo.c (pmapdump): Likewise.
2350         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
2351         (gethostbyaddr): Likewise.
2352         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
2354 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2356         * sysdeps/gnu/eval.c: Removed.
2358 2001-09-18  Andreas Jaeger  <aj@suse.de>
2360         * sysdeps/i386/fpu/s_logbl.S: Move to ...
2361         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
2363         * sysdeps/i386/fpu/s_rintl.S: Move to ...
2364         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
2366         * sysdeps/i386/fpu/s_significandl.S: Move to ...
2367         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
2369 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
2371         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
2372         nrules value.
2374 2001-09-14  H.J. Lu  <hjl@gnu.org>
2376         * sysdeps/mips/fpu/libm-test-ulps: Updated.
2378 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
2380         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
2381         Patch by Florian La Roche <laroche@redhat.com>.
2383         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
2385         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
2386         ETHER_CRC_LEN.
2388 2001-09-14  Andreas Schwab  <schwab@suse.de>
2390         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
2391         Sumner <bls@sgi.com>.
2392         * posix/execlp.c: Likewise.
2394 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
2396         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
2397         is already found earlier in the search scope.
2399 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
2401         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
2402         filter.
2404 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
2406         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
2408 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
2410         * config.h.in: Enforce optimization to be used.
2411         * Makeconfig (preprocess-versions): Define ASSEMBLER.
2412         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
2413         * posix/Makefile (annexc-CFLAGS): Define to -O.
2414         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
2416 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
2418         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
2419         Patch by Stephan Kulow.
2421 2001-09-08  Ben Collins  <bcollins@debian.org>
2423         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
2424         usage of RESOLVE() (r_type, not reloc->r_type).
2426 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
2428         * elf/dl-object.c: Avoid allocating extra memory block for name.
2429         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
2430         allocated separately.
2431         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2433 2001-09-08  H.J. Lu  <hjl@gnu.org>
2435         * po/zh_TW.po: Fix a typo.
2437 2001-09-07  Tom Rix  <trix@redhat.com>
2439         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
2441 2001-08-26  Tom Rix  <trix@redhat.com>
2443         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
2444         command line options.
2445         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
2446         * sysdeps/unix/sysv/aix/start.c: Removed.
2447         * sysdeps/unix/sysv/aix/start-libc.c: New file.
2448         * sysdeps/unix/sysv/aix/init-first.c: New file.
2449         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
2451 2001-09-08  Ben Collins  <bcollins@debian.org>
2453         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
2454         * sysdeps/generic/dl-machine.h: Likewise.
2455         * sysdeps/hppa/dl-fptr.c: Likewise.
2456         * sysdeps/ia64/dl-fptr.c: Likewise.
2457         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2458         * sysdeps/mips/dl-machine.h: Likewise.
2459         * sysdeps/mips/mips64/dl-machine.h: Likewise.
2460         * sysdeps/powerpc/dl-machine.c: Likewise.
2462 2001-09-07  Ben Collins  <bcollins@debian.org>
2464         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
2466         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
2468 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
2470         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
2471         dependencies if necessary.
2473         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
2474         loaded directly) determine length if l_initfini list by iterating
2475         over its elements.  Minor optimizations.
2476         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
2477         for dependency objects.
2478         If object was already loaded check whether any of the dependencies
2479         is already on the relocation dependency list.  If yes, remove the
2480         latter.  Minor optimizations.
2481         * elf/dl-lookup.c (add_dependency): Add check for self reference of
2482         maps here.  Search l_initfini list only if the object was loaded
2483         directly and not only as a dependency.
2484         (_dl_lookup_symbol): Add relocation dependency also if object
2485         is not in global scope.  Remove test for self-reference here.
2486         (_dl_lookup_versioned_symbol): Likewise.
2487         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
2488         element of first name record.
2489         * elf/loadtest.c: Add some more test to recognize early if an object
2490         wasn't unloaded.
2491         * elf/Makefile: Add rules to build and run reldep5.
2492         * elf/reldep5.c: New file.
2493         * elf/reldepmod5.c: New file.
2494         * elf/reldepmod6.c: New file.
2496         * elf/reldep2.c: Fix typo.
2498 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
2500         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
2501         elements.  Change l_scope to be a pointer only.
2502         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
2503         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
2504         here add searchlist of newly open file to the dependency's scope.
2505         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
2506         only searchlist from its scope.  Free own scope array if necessary.
2507         * elf/Makefile (tests): Add dblload and dblunload now.
2509 2001-09-06  Andreas Jaeger  <aj@suse.de>
2511         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
2512         Stephen L Moshier.
2514 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
2516         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
2517         they both fail.
2518         * elf/dblload.c: New file.
2519         * elf/dblloadmod1.c: New file.
2520         * elf/dblloadmod2.c: New file.
2521         * elf/dblloadmod3.c: New file.
2522         * elf/dblunload.c: New file.
2524 2001-09-04  Richard Henderson  <rth@redhat.com>
2526         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
2527         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
2529 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
2531         Correct very misleading message for error in failed runtime relocation.
2532         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
2533         place of the error.
2534         (_dl_signal_cerror): Likewise.
2535         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
2536         * elf/dl-close.c: Likewise.
2537         * elf/dl-deps.c: Likewise.
2538         * elf/dl-load.c: Likewise.
2539         * elf/dl-lookup.c: Likewise.
2540         * elf/dl-open.c: Likewise.
2541         * elf/dl-reloc.c: Likewise.
2542         * elf/dl-sym.c: Likewise.
2543         * elf/dl-version.c: Likewise.
2544         * sysdeps/generic/dl-sysdep.c: Likewise.
2546 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
2548         * iconv/strtab.c (strtabinit): Initialize null Strent.
2549         (newstring): Move len == 0 handling...
2550         (strtabadd): ...here.
2551         If len == 1, return null Strent.
2552         When inserting a suffix of an existing string, check if
2553         it is not equal to some suffix already recorded.
2554         Copy left and right members over if adding longer string.
2556 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
2558         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
2560         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
2561         (__syscall_gethostname): Add prototype.
2563 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
2565         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
2567 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
2569         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
2571 2001-08-27  Roland McGrath  <roland@frob.com>
2573         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
2574         short, copy that much into NAME anyway before returning error.
2576 2001-09-01  Richard Henderson  <rth@redhat.com>
2578         * sysdeps/alpha/elf/Dist: Remove file.
2579         * sysdeps/alpha/elf/Makefile: Remove file.
2580         * sysdeps/alpha/elf/crtbegin.S: Remove file.
2581         * sysdeps/alpha/elf/crtend.S: Remove file.
2582         * sysdeps/alpha/elf/initfini.c: New file.
2584 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
2586         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
2587         * iconv/tst-iconv3.c: Likewise.
2589 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
2591         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
2593 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
2595         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
2596         export it.
2597         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
2598         * iconv/iconv_prog.c (insert_cache): New function.
2599         (print_known_names): If cache is used call insert_cache to use the
2600         information from the cache [PR libc/2509].
2602 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
2604         * time/strptime.c (strptime_internal): Recognize 'l' format and
2605         handle it like 'I' for symmetry with strftime.
2607 2001-08-31  Richard Henderson  <rth@redhat.com>
2609         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
2610         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
2611         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
2612         (print_statistics): Make scalar unsigned long long.
2613         * sysdeps/alpha/hp-timing.h: New file.
2615 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
2617         * stdio-common/perror.c (perror): Save errno early, pass it
2618         down to perror_internal.
2619         (perror_internal): Add errnum argument.
2621 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
2623         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
2624         Don't add old memory content for R_ALPHA_REFQUAD.
2626 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
2628         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
2629         memory correctly.
2631         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
2632         instead of open, __close instead of close, __getpagesize instead
2633         of getpagesize.
2635         * string/argz-stringify.c (__argz_stringify): Use __strnlen
2636         instead of strnlen.
2637         * include/string.h (strndupa): Redefine here to use __strnlen
2638         instead of strnlen.
2639         * string/strndup.c (__strndup): Use __strnlen not strnlen.
2641         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
2642         connected).
2644 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
2646         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
2647         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
2648         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
2649         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
2650         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
2651         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
2652         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
2654 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
2656         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
2658 2001-08-30  Andreas Jaeger  <aj@suse.de>
2660         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
2661         contributed Stephen L Moshier.
2663 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
2665         * sunrpc/etc.rpc (sgi_fam): Add.
2667 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
2669         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
2671 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
2673         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
2674         first is from a previous call.
2675         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
2677 2001-08-29  Andreas Schwab  <schwab@suse.de>
2679         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
2681 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2683         * config.make.in (INSTALL_SCRIPT): Define.
2684         * Makeconfig (INSTALL_SCRIPT): Define.
2685         * Makerules (do-install-script): New macro to install scripts using
2686         INSTALL_SCRIPT.
2687         (install-bin-script): New rule to install scripts with
2688         do-install-script.
2689         (install-bin-script-nosubdir): New rule.
2690         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
2691         (distinfo-vars): Add $(install-bin-script).
2692         * Rules (others): Likewise.
2693         * Makefile (glibcbug): Install with install-bin-script.
2694         * debug/Makefile (xtrace): Likewise.
2695         (catchsegv): Likewise.
2696         * elf/Makefile (ldd): Likewise.
2697         * malloc/Makefile (mtrace): Likewise.
2698         * timezone/Makefile (tzselect): Likewise.
2700 2001-08-29  H.J. Lu  <hjl@gnu.org>
2702         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
2703         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
2704         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
2706 2001-08-29  Andreas Schwab  <schwab@suse.de>
2708         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
2710 2001-08-28  H.J. Lu  <hjl@gnu.org>
2712         * Makeconfig (combreloc-LDFLAGS): New variable.
2713         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
2714         * config.make.in (have-z-combreloc): New variable.
2715         * configure.in: Substitute libc_cv_z_combreloc.
2717 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
2719         * po/sv.po: Update from translation team.
2720         * po/fr.po: Likewise.
2721         * po/da.po: Likewise.
2723 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2725         * Makerules: Fix a typo: MD% -> MD5.
2727 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
2729         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
2730         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
2732 2001-08-28  Andreas Jaeger  <aj@suse.de>
2734         * manual/libc-texinfo.sh: Add entry about free manuals.
2736         * manual/contrib.texi (Contributors): Fix cross reference.
2738         * manual/libc.texinfo (Copying): Include freemanuals.
2740         * manual/Makefile (appendices): Add freemanuals.
2742         * manual/freemanuals.texi: New file.
2743         Patch by Brian Youmans <3diff@gnu.org>.
2745         * manual/libm-err-tab.pl: Pretty print more platforms, print a
2746         smaller table.
2748         * manual/math.texi (Errors in Math Functions): Fix grammar, start
2749         table on separate page.
2750         Patch by Brian Youmans <3diff@gnu.org>.
2752 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
2754         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
2755         the connection went down after we first used it try to connect
2756         again and resend the message before printing to the console.
2757         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
2759 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
2761         * string/tst-strlen.c (main): Test strnlen (, -1) too.
2762         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
2763         bit set.
2765 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
2767         * iconv/strtab.c (searchstring): Use correct length for comparison.
2768         (strtabadd): Account total size correct if new string has old string as
2769         substring.
2771 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
2773         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
2775 2001-08-27  Andreas Jaeger  <aj@suse.de>
2777         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
2779         * math/libm-test.inc (j0_test): Add extra tests.
2780         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
2781         not x, in Hankel approximation.
2782         Patches by Stephen L Moshier.
2784 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
2786         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
2787         link_map.
2789         * configure.in: Fix test for .rela.dyn section.
2791         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
2793 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
2795         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
2796         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
2797         Pass type_class to _dl_lookup_*.
2798         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
2799         Pass around just type_class instead of noexec, noplt pair.
2800         (_dl_lookup_versioned_symbol): Likewise.
2801         (_dl_lookup_symbol_skip): Pass around just type_class instead of
2802         noexec, noplt pair.
2803         (_dl_lookup_versioned_symbol_skip): Likewise.
2804         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
2805         * elf/do-lookup.h (do_lookup): Likewise.
2806         * include/link.h (struct link_map): Replace noexec and noplt fields
2807         in l_lookup_cache with type_class field.
2808         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
2809         ELF_RTYPE_CLASS_COPY): Define.
2810         Adjust prototypes for _dl_lookup_symbol and
2811         _dl_lookup_versioned_symbol.
2812         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
2813         elf_machine_lookup_noexec_p): Remove.
2814         (elf_machine_type_class): Define.
2815         * sysdeps/arm/dl-machine.h: Likewise.
2816         * sysdeps/hppa/dl-machine.h: Likewise.
2817         * sysdeps/cris/dl-machine.h: Likewise.
2818         * sysdeps/i386/dl-machine.h: Likewise.
2819         * sysdeps/ia64/dl-machine.h: Likewise.
2820         * sysdeps/m68k/dl-machine.h: Likewise.
2821         * sysdeps/mips/mips64/dl-machine.h: Likewise.
2822         * sysdeps/mips/dl-machine.h: Likewise.
2823         * sysdeps/powerpc/dl-machine.h: Likewise.
2824         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2825         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2826         * sysdeps/sh/dl-machine.h: Likewise.
2827         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2828         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2830 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
2832         * manual/message.texi (Advanced gettext functions): Change
2833         description of plural forms for Slovak.
2834         Reported by Marcel Telka <marcel@telka.sk>.
2836         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
2837         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
2839 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
2841         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
2842         typo.  Patch by Florian La Roche <laroche@redhat.com>.
2844 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
2846         * include/link.h (struct link_map): Add l_lookup_cache element.
2847         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
2848         (RESOLVE_MAP): Likewise.
2849         (_dl_relocate_object): Remove cache initialization.
2850         * elf/dl-lookup.c: Rip out cache handling code.
2851         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
2852         declarations.
2854         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
2855         remove some __builtin_expect.
2856         (_dl_lookup_versioned_symbol): Likewise.
2858         * config.h.in: Add HAVE_Z_COMBRELOC.
2859         * configure.in: Add test for -z combreloc.
2861         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
2862         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
2863         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
2864         case to almost no code.
2866 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
2868         * po/tr.po: Update from translation team.
2870 2001-08-24  Andreas Jaeger  <aj@suse.de>
2872         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
2873         make clean works.
2875 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2877         * elf/rtld.c (print_statistics): Printf % after percent values.
2878         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
2880         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
2881         don't have to compute the hash value and initialize current_value.
2882         Move reference_name variable to where it is needed.
2883         (_dl_lookup_versioned_symbol): Likewise.
2885 2001-08-24  Roland McGrath  <roland@frob.com>
2887         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
2888         Just test that strerror returns non-null for a few errno codes.
2890 2001-08-23  Roland McGrath  <roland@frob.com>
2892         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
2893         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
2895         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
2897         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
2898         __mach_reply_port.
2900 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2902         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
2903         returns NULL.
2905         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
2906         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
2907         doesn't do it.
2908         * elf/rtld.c: Include <sys/param.h>.
2909         * elf/dl-reloc.c: Likewise.
2911 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2913         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
2914         empty to prevent junk from being generated.
2915         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
2917 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
2919         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
2920         records.  Rename endrel to relative, initialize it to r, and use it
2921         in elf_machine_rel_relative calls.  Point r after relative relocs.
2923 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2925         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
2926         of R_386_NONE.
2928 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
2930         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
2931         necessary.  Undefine newly defined macros at the end.
2932         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
2933         Rename from elf_machine_rel_relative.
2934         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
2935         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
2936         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
2937         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
2938         Likewise.
2939         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
2940         Likewise.
2941         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
2942         Fix argument types.
2943         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
2944         Fix argument types.
2945         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
2946         Likewise.  Fix argument types.
2947         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
2948         Likewise.  Fix argument types.
2949         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
2950         Fix argument types.
2951         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
2952         ElfW(Rel) in argument.
2953         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
2954         function.
2956 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
2958         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
2960 2001-08-24  Andreas Jaeger  <aj@suse.de>
2962         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
2963         Stephen L Moshier <moshier@mediaone.net>.
2965 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2967         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
2968         first if RELCOUNT is set.
2970         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
2971         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
2972         elf_machine_rel_relative.
2973         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
2974         Minor optimizations.
2975         * sysdeps/arm/dl-machine.h: Likewise.
2976         * sysdeps/cris/dl-machine.h: Likewise.
2977         * sysdeps/hppa/dl-machine.h: Likewise.
2978         * sysdeps/i386/dl-machine.h: Likewise.
2979         * sysdeps/ia64/dl-machine.h: Likewise.
2980         * sysdeps/m68k/dl-machine.h: Likewise.
2981         * sysdeps/mips/dl-machine.h: Likewise.
2982         * sysdeps/powerpc/dl-machine.h: Likewise.
2983         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2984         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2985         * sysdeps/sh/dl-machine.h: Likewise.
2986         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2987         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2989 2001-08-23  Roland McGrath  <roland@frob.com>
2991         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
2993         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
2994         sysdeps/mach version.  Implement counting ("recursive") mutexes
2995         on top of cthreads mutexes.
2996         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
2998         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
2999         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
3000         (__libc_cleanup_region_start, __libc_cleanup_region_end,
3001         __libc_clean_end): Define these to call the cleanup function after
3002         normal exit when they're supposed to.
3004         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
3005         Take new first arg DOIT, a boolean saying whether to really install
3006         any cleanup handler.
3007         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
3008         (__libc_cleanup_end): Likewise.
3009         * sysdeps/generic/bits/libc-lock.h: Same changes.
3010         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
3011         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
3012         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
3013         Likewise.
3014         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
3015         * sysdeps/generic/bits/stdio-lock.h
3016         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
3018 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3020         * elf/ldconfig.c (search_dir): Remove stale symlinks.
3022 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3024         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
3025         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
3026         lookups in cache.
3027         (_dl_lookup_versioned_symbol): Likewise.
3028         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
3029         relocation lookup.
3030         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
3031         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
3032         (lookup_cache, lookup_cache_versioned): Add declarations.
3034 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
3036         * stdlib/tst-random.c (main): Swap parameters in fail call.
3037         Patch by Pete Bevin <pete@petebevin.com>.
3039 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3041         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
3043 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
3045         * malloc/obstack.c: Indent preprocessor directives.
3046         Patch by Jim Meyering <meyering@ascend.com>.
3048         * po/ja.po: Update from translation team.
3050 2001-08-23  Roland McGrath  <roland@frob.com>
3052         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
3054         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
3055         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
3057 2001-08-22  Roland McGrath  <roland@frob.com>
3059         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
3060         __libc_lock_define_recursive.
3061         * elf/dl-open.c: Don't declare it here any more.
3062         * elf/dl-close.c: Likewise.
3063         * elf/dl-lookup.c: Likewise.
3064         * elf/dl-iteratephdr.c: Likewise.
3065         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
3066         __libc_lock_unlock_recursive.
3067         * elf/dl-close.c (_dl_close): Likewise
3068         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
3069         * elf/dl-open.c (_dl_open): Likewise
3071         * sysdeps/generic/bits/libc-lock.h
3072         (__libc_lock_define_recursive): New macro.
3073         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
3074         (_IO_lock_lock): Use __libc_lock_lock_recursive.
3075         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
3077         * conform/conformtest.pl (checknamespace): Sort the output list.
3079         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
3080         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
3081         definitions conditional on [__USE_XOPEN].
3083         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
3084         these unconditionally, not only use [__USE_BSD], so as to match
3085         the sysdeps/unix/sysv/linux files.
3087 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3089         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
3090         avoid warnings.
3092         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
3093         DL_LOOKUP_ADDRESS.
3095 2001-08-22  Roland McGrath  <roland@frob.com>
3097         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
3098         conditionalization of sa_handler/sa_sigaction member types to
3099         match the sysdeps/unix/sysv/linux file.
3101 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3103         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
3104         symbol sizes a bit better.
3106         * sysdeps/ia64/strncpy.S: Complete rewrite.
3107         Contributed by Jakub Jelinek <jakub@redhat.com>.
3109         * string/stratcliff.c (main): Add strncpy test.
3111 2001-08-22  Roland McGrath  <roland@frob.com>
3113         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
3114         and don't declare unsetenv or _environ directly.
3115         (unsetenv): Return int, not void.  Use __environ instead of _environ.
3117 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
3119         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
3120         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
3121         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
3122         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
3123         test for cmsg struct size.
3125 2001-04-23  Paul Eggert  <eggert@twinsun.com>
3127         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
3128         Rename __argc to ___argc in prototypes to avoid compatibility
3129         problems with systems that reserve the identifier "__argc".
3130         Similarly for __argv.
3132 2001-08-21  Roland McGrath  <roland@frob.com>
3134         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
3136         * mach/Makefile (tests): Removed.
3137         * mach/hello.c: File removed.
3139 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3141         * po/sv.po: Update from translation team.
3143         * stdio-common/vfscanf.c: Fix handling of %l[].
3144         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
3146         * libio/Makefile (tests): Add tst-sscanf.
3147         * libio/tst-sscanf.c: New file.
3149         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
3150         * malloc/mtrace.c (tr_where): dli_sname always points to a
3151         non-empty string if != NULL.
3152         Reported by Tim Janik <timj@gtk.org>.
3154 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
3156         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
3157         buf.  Free resources on failure.
3158         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
3159         (makefd_xprt): Likewise.
3160         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
3161         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
3162         * sunrpc/auth_unix.c (authunix_create): Likewise.
3164 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
3166         * string/strnlen.c: Remove.
3167         * sysdeps/generic/strnlen.c: New file.
3168         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
3170 2001-08-21  Roland McGrath  <roland@frob.com>
3172         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
3173         as a macro, not an extern inline function.
3175         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
3176         * Versions.def (libc): Add GLIBC_2.2.5 set.
3177         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
3178         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
3180 2001-08-20  Roland McGrath  <roland@frob.com>
3182         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
3183         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
3185 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
3187         * string/bits/string2.h: Remove strnlen optimization here.
3188         * sysdeps/i386/i486/bits/string.h: Add it here.
3190 2001-08-21  Wolfram Gloger  <wg@malloc.de>
3192         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
3194 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
3196         * po/gl.po: Update from translation team.
3198 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3200         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
3201         * misc/err.c (convert_and_print): Likewise.
3203         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
3204         function calls.
3206 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3208         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
3209         change of the gregset_t type.
3210         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3212 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
3214         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
3216 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3218         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
3220         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
3222 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
3224         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
3225         before calling the cthreads initialization code.
3227 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3229         * argp/argp-help.c: Fix two problems introduced in last change.
3231         * include/dirent.h: Include <dirstream.h> first.
3233 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
3235         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
3237         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
3238         * sunrpc/xdr_rec.c: Likewise.
3239         * sunrpc/xdr_mem.c: Likewise.
3240         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
3241         * sunrpc/rpc_cmsg.c: Likewise.
3242         * sunrpc/getrpcport.c (getrpcport): Likewise.
3243         * sunrpc/clnt_simp.c (callrpc): Likewise.
3244         * sunrpc/clnt_gen.c (clnt_create): Likewise.
3245         * string/envz.c: Likewise.
3247         * po/ko.po: Update from translation team.
3249         * argp/argp-help.c: Handle wide oriented stderr stream.
3251 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
3253         * sysdeps/generic/strtol.c: Little optimizations.  Add some
3254         __builtin_expect.
3256         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
3258         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
3259         * wcsmbs/wcwidth.c (wcwdith): Likewise.
3260         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
3262         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
3264         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
3266         * time/time.h (struct timespec): Use __time_t for tv_sec element.
3268         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
3269         wchar_t for function declarations and defintions.
3271         * misc/sys/select.h: Define __need_time_t before including <time.h>.
3272         Define suseconds_t if it hasn't happened yet.
3274         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
3276         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
3278         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
3279         <stddef.h>.
3281         * conform/data/stddef.h-data: Remove wint_t.
3283         * conform/conformtest.pl: Change namespace test to take #undef
3284         lines into account.
3286         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
3288         * conform/data/sys/socket.h-data: Add sockatmark.
3290 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3292         * io/fts.c: Update from recent BSD source.
3294 2001-08-17  Roland McGrath  <roland@frob.com>
3296         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
3297         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
3298         Likewise.
3300 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3302         * locale/duplocale.c (__duplocale): Also initialize the special
3303         __ctype_* elements.
3305         * conform/data/netdb.h-data: Adjust gai_strerror return type.
3307 2001-08-17  Andreas Jaeger  <aj@suse.de>
3309         * misc/getpass.c: Include wchar.h for prototypes.
3310         * malloc/obstack.c: Likewise.
3312 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3314         * sunrpc/svc_simple.c (universal): Use __write instead of write.
3316         * wcsmbs/wcscoll.c: Also define __wcscoll.
3317         * include/wchar.h: Declare __wcscoll.
3319         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
3320         * libio/vwprintf.c: Likewise.
3321         * libio/wprintf.c: Likewise.
3323         * iconv/gconv_cache.c: Use __munmap instead of munmap.
3325 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
3327         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
3328         instead of mbrtowc.
3329         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
3330         wcslen, and __wcscoll instead of wcscoll.
3332         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
3334         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
3335         __getuid instead of getuid.
3337         * stdio-common/perror.c (perror): Use __close instead of close.
3338         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
3339         * libio/freopen.c (freopen): Likewise.
3340         * libio/freopen64.c (freopen64): Likewise.
3342         * libio/tst-ungetwc2.c (main): Define str const.
3344         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
3345         * libio/fwprintf.c: Also define __fwprintf.
3346         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
3347         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
3348         * assert/assert-perr.c: Likewise.
3349         * assert/assert.c: Likewise.
3350         * gmon/gmon.c: Likewise.
3351         * inet/rcmd.c: Likewise.
3352         * malloc/obstack.c: Likewise.
3353         * misc/err.c: Likewise.
3354         * misc/error.c: Likewise.
3355         * misc/getpass.c: Likewise.
3356         * posix/getopt.c: Likewise.
3357         * resolv/res_hconf.c: Likewise.
3358         * stdio-common/perror.c: Likewise.
3359         * stdio-common/psignal.c: Likewise.
3360         * stdlib/fmtmsg.c: Likewise.
3361         * sunrpc/auth_unix.c: Likewise.
3362         * sunrpc/clnt_perr.c: Likewise.
3363         * sunrpc/clnt_tcp.c: Likewise.
3364         * sunrpc/clnt_udp.c: Likewise.
3365         * sunrpc/clnt_unix.c: Likewise.
3366         * sunrpc/svc_simple.c: Likewise.
3367         * sunrpc/svc_tcp.c: Likewise.
3368         * sunrpc/svc_udp.c: Likewise.
3369         * sunrpc/svc_unix.c: Likewise.
3370         * sunrpc/xdr.c: Likewise.
3371         * sunrpc/xdr_array.c: Likewise.
3372         * sunrpc/xdr_rec.c: Likewise.
3373         * sunrpc/xdr_ref.c: Likewise.
3374         * sysdeps/generic/wordexp.c: Likewise.
3376         * po/it.po: Update from translation team.
3378         * misc/err.c: Handle wide oriented stderr stream.
3380 2001-08-14  Tom Rix  <trix@redhat.com>
3382         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
3383         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
3385 2001-08-13  Tom Rix  <trix@redhat.com>
3387         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
3388         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
3389         and __intptr_t.
3391 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3393         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
3394         Store the access registers to the ucontext structure.
3395         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
3396         Likewise.
3398         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
3399         Load the access registers from the ucontext structure.
3400         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
3401         Likewise.
3403         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
3404         offsets to the new ucontext layout.
3405         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
3407         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
3408         of the ucontext structure.
3409         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3411 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
3413         * misc/error.c (error): Handle wide oriented stderr stream correctly.
3414         (error_at_line): Likewise.
3416         * stdio-common/perror.c (perror): Implement according to standard.
3417         The stream orientation must not be changed if the stream was not
3418         oriented before the call.
3419         * stdio-common/Makefile (tests): Add tst-perror.
3420         * stdio-common/tst-perror.c: New file.
3423 See ChangeLog.12 for earlier changes.