Update.
[glibc.git] / ChangeLog
blobad0ff35235bcdc35a254e960cab0a68aed7587a5
1 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
3         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
4         starting ld.so itself.  Move l_addr variable initialization closer
5         to use.
7 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
9         * Versions.def (libc): Add GLIBC_PRIVATE.
10         (libdb, libnss_db, libdb1): Remove.
11         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
12         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
13         (libpthread): Add GLIBC_PRIVATE.
14         (libresolv): Likewise, remove GLIBC_2.1.
15         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
16         GLIBC_2.2.3, GLIBC_2.3.
17         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
18         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
19         _dl_sym, _dl_vsym): Likewise.
20         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
21         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
22         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
23         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
24         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
25         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
26         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
27         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
28         Likewise.
29         (_dl_object_relocation_scope): Remove.
30         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
31         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
32         __gconv_cache): Move to GLIBC_PRIVATE.
33         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
34         __internal_setnetgrent): Likewise.
35         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
36         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
37         * locale/Versions (__collate_element_hash, __collate_element_strings,
38         __collate_symbol_classes, __collate_symbol_hash,
39         __collate_symbol_strings, _nl_current_LC_COLLATE,
40         _nl_current_LC_CTYPE): Likewise.
41         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
42         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
43         (libnss_nis, libnss_nisplus): Likewise.
44         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
45         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
46         (libnss_files): Move all symbols to GLIBC_PRIVATE.
47         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
48         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
49         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
50         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
51         __ns_get16, __ns_samename): Likewise.
52         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
53         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
54         GLIBC_PRIVATE.
55         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
56         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
57         __libc_connect): Likewise.
58         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
59         Likewise.
60         * stdlib/Versions (__libc_system): Likewise.
61         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
62         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
63         * sysdeps/ia64/fpu/Versions: Likewise.
64         * sysdeps/ia64/Versions: Likewise.
65         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
66         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
67         to GLIBC_PRIVATE.
68         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
69         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
70         __libc_sigaction): Likewise.
71         * termios/Versions (__libc_tcdrain): Likewise.
73         * misc/sys/cdefs (__attribute_noinline__): Define.
74         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
75         __attribute_noinline__.
77         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
78         * elf/dl-xstat64.c: New file.
79         * elf/dl-fxstat64.c: New file.
80         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
81         don't export __fxstat64 at multiple versions.
82         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
83         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
85 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
87         * locale/program/ld-collate.c (collate_finish): Assign a wide
88         char collation sequence value to multi character collating
89         elements, and avoid over writing by non-character elements.
91 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
93         * elf/Makefile (distribute): Add dl-procinfo.c.
94         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
95         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
97 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
99         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
100         definition.
101         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
102         _rtld_global struct.
103         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
104         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
105         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
106         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
107         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
108         _dl_fpu_control_set): Remove unused externs.
109         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
110         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
111         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
112         related variables in _rtld_global struct.
113         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
114         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
115         unused extern.
117 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
119         * sysdeps/generic/dl-procinfo.c: New file.
121 2002-02-01  Andreas Schwab  <schwab@suse.de>
123         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
125 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
127         * elf/rtld.c (_dl_start): Mark as internal_function.
128         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
129         in register.
130         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
131         General pretty printing.
133 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
135         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
136         * elf/dl-reloc.c: Pretty printing.
137         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
138         procinfo-related variables in rtld_global struct.
139         * elf/dl-support.c: Likewise.
140         * elf/rtld.c: Likewise.
141         * sysdeps/i386/i686/Makefile: Likewise.
142         * sysdeps/i386/i686/hp-timing.c: Likewise.
143         * sysdeps/i386/i686/hp-timing.h: Likewise.
144         * sysdeps/ia64/Makefile: Likewise.
145         * sysdeps/ia64/hp-timing.c: Likewise.
146         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
147         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
148         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
149         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
150         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
151         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
152         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
153         * sysdeps/x86_64/Makefile: Likewise.
155         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
156         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
157         _dl_debug_fd to rtld_global.
158         * elf/Versions: Likewise.
159         * elf/dl-close.c: Likewise.
160         * elf/dl-iteratephdr.c: Likewise.
161         * elf/dl-lookup.c: Likewise.
162         * elf/dl-misc.c: Likewise.
163         * elf/dl-open.c: Likewise.
164         * elf/dl-support.c: Likewise.
165         * elf/do-lookup.h: Likewise.
166         * elf/rtld.c: Likewise.
167         * sysdeps/generic/dl-cache.c: Likewise.
168         * sysdeps/generic/dl-sysdep.c: Likewise.
169         * sysdeps/ia64/Versions: Likewise.
170         * sysdeps/unix/clock_gettime.c: Likewise.
171         * sysdeps/unix/clock_settime.c: Likewise.
172         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
173         * sysdeps/sparc/Versions: Removed.
174         * sysdeps/i386/i686/Versions : Removed.
175         * sysdeps/x86_64/Versions: Removed.
176         * configure.in: Define HAVE_PROTECTED if .protected is available.
177         * config.h.in: Add entry for HAVE_PROTECTED.
179 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
181         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
182         code in struct _rtld_global.  Export this struct, remove all
183         exports for the signal variables.
184         * sysdeps/arm/dl-machine: Likewise.
185         * sysdeps/generic/dl-origin: Likewise.
186         * sysdeps/generic/dl-sysdep: Likewise.
187         * sysdeps/generic/dl-cache: Likewise.
188         * sysdeps/hppa/dl-fptr: Likewise.
189         * sysdeps/hppa/dl-machine: Likewise.
190         * sysdeps/cris/dl-machine: Likewise.
191         * sysdeps/i386/dl-machine: Likewise.
192         * sysdeps/ia64/dl-machine: Likewise.
193         * sysdeps/m68k/dl-machine: Likewise.
194         * sysdeps/mach/hurd/dl-sysdep: Likewise.
195         * sysdeps/mips/mips64/dl-machine: Likewise.
196         * sysdeps/mips/dl-machine: Likewise.
197         * sysdeps/powerpc/elf/libc-start: Likewise.
198         * sysdeps/powerpc/dl-machine: Likewise.
199         * sysdeps/powerpc/dl-start: Likewise.
200         * sysdeps/sparc/sparc32/dl-machine: Likewise.
201         * sysdeps/sparc/sparc64/dl-machine: Likewise.
202         * sysdeps/sh/dl-machine: Likewise.
203         * sysdeps/s390/s390-32/dl-machine: Likewise.
204         * sysdeps/s390/s390-64/dl-machine: Likewise.
205         * sysdeps/unix/sysv/aix/libc-start: Likewise.
206         * sysdeps/unix/sysv/aix/start-libc: Likewise.
207         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
208         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
209         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
210         * sysdeps/x86_64/dl-machine: Likewise.
212 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
214         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
215         are too high.
217 2002-01-31  Andreas Schwab  <schwab@suse.de>
219         * sysdeps/posix/readv.c: Check for ssize_t overflow.
221 2002-01-31  Andreas Schwab  <schwab@suse.de>
223         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
224         reference to _dl_pagesize.
226 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
228         * Versions.def [ld]: Add GLIBC_2.3.
229         * elf/dl-addr.c: Move global variables for SHARED code in struct
230         _rtld_global.  Export this struct, remove all exports for the
231         signal variables.
232         * elf/dl-close.c: Likewise.
233         * elf/dl-conflict.c: Likewise.
234         * elf/dl-debug.c: Likewise.
235         * elf/dl-deps.c: Likewise.
236         * elf/dl-dst.h: Likewise.
237         * elf/dl-error.c: Likewise.
238         * elf/dl-fini.c: Likewise.
239         * elf/dl-init.c: Likewise.
240         * elf/dl-iteratephdr.c: Likewise.
241         * elf/dl-libc.c: Likewise.
242         * elf/dl-load.c: Likewise.
243         * elf/dl-lookup.c: Likewise.
244         * elf/dl-minimal.c: Likewise.
245         * elf/dl-object.c: Likewise.
246         * elf/dl-open.c: Likewise.
247         * elf/dl-profile.c: Likewise.
248         * elf/dl-profstub.c: Likewise.
249         * elf/dl-reloc.c: Likewise.
250         * elf/dl-runtime.c: Likewise.
251         * elf/dl-support.c: Likewise.
252         * elf/dl-sym.c: Likewise.
253         * elf/dl-version.c: Likewise.
254         * elf/do-lookup.h: Likewise.
255         * elf/do-rel.h: Likewise.
256         * elf/dynamic-link.h: Likewise.
257         * elf/rtld.c: Likewise.
258         * sysdeps/generic/dl-cache.c: Likewise.
259         * sysdeps/generic/dl-sysdep.c: Likewise.
260         * sysdeps/generic/ldsodefs.h: Likewise.
261         * sysdeps/generic/libc-start.c: Likewise.
262         * sysdeps/i386/dl-machine.h: Likewise.
263         * sysdeps/ia64/dl-fptr.c: Likewise.
264         * sysdeps/ia64/dl-machine.h: Likewise.
265         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
266         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
267         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
268         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
269         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
270         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
271         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
272         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
274 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
276         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
277         to avoid warning
278         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
280         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
281         SHARED version.
282         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
284         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
286 2002-01-29  Ben Collins  <bcollins@debian.org>
288         * string/bits/string2.h (__mempcpy): Protect size arg for
289         addition when using __builtin_memcpy.
291 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
293         * stdlib/Makefile (tests): Add tst-qsort.
294         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
296         * manual/signal.texi (Process Signal Mask): Document that
297         pthread_sigmask, not sigprocmask, must be used in MT programs.
298         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
300         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
301         found.
302         * misc/Makefile (tests): Add tst-hsearch.
303         * misc/tst-hsearch.c: New file.
305 2002-01-18  Wolfram Gloger  <wg@malloc.de>
307         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
308         * malloc/malloc.h: Likewise.
309         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
310         * malloc/arena.c: New file.
311         * malloc/hooks.c: New file.
312         * malloc/tst-mallocstate.c: New file.
313         * malloc/Makefile: Add new testcase tst-mallocstate.
314         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
316 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
318         * stdlib/msort.c: Remove last patch.  The optimization violates the
319         same rule which qsort.c had problems with.
321 2002-01-27  Paul Eggert  <eggert@twinsun.com>
323         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
324         to a pivot element that lies outside the array to be sorted, as
325         ISO C99 requires that the comparison function be called only with
326         addresses of array elements [PR libc/2880].
328 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
330         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
331         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
333         * timezone/asia: Update from tzdata2002b.
334         * timezone/australasia: Likewise.
335         * timezone/backward: Likewise.
336         * timezone/europe: Likewise.
337         * timezone/leapseconds: Likewise.
338         * timezone/iso3166.tab: Likewise.
339         * timezone/zone.tab: Likewise.
341 2002-01-23  Richard Henderson  <rth@redhat.com>
343         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
345 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
347         * string/strxfrm.c: Allocate one more byte for rulearr and clear
348         this element [PR libc/2855].
350         * string/strcoll.c: Handle zero-length arguments specially
351         [PR libc/2856].
353 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
355         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
356         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
357         short lengths and constant src.
358         (strcpy): Don't optimize for gcc 3.0+.
359         (__stpcpy): For gcc 3.0+, don't use
360         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
361         for short string literal src.
363 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
365         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
366         Set for arm, too.
368 2001-01-22  Paul Eggert  <eggert@twinsun.com>
370         * manual/llio.texi (Linked Channels, Cleaning Streams):
371         Make it clearer that a just-opened input stream might need cleaning.
373 2002-01-21  H.J. Lu  <hjl@gnu.org>
375         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
376         Don't use label at end of compound statement.
378 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
380         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
381         Remove test for negative integer arg; sin_pi does it correctly.
383 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
385         * nscd/Makefile (distribute): Filter out xmalloc.c.
387 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
389         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
390         Set offset if read end wasn't the buffer end.
391         (_IO_file_seekoff_mmap): New function.
392         (_IO_file_xsgetn_mmap): New function.
393         (_IO_file_jumps_mmap): Use the two new functions.
394         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
395         != end buffer.
396         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
397         _IO_file_underflow_mmap.
398         * libio/iofopen.c: Don't position file descriptor at end of file.
399         * libio/tst-widetext.c: Improve error messages.
400         * stdio-common/tst-rndseek.c: Likewise.
402 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
404         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
405         end of enum for !_GNU_SOURCE.
406         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
407         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
408         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
409         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
410         values unless _GNU_SOURCE.
412         * iconvdata/tcvn5712-1.c: Minor cleanups.
414 2002-01-18  Andreas Schwab  <schwab@suse.de>
416         * sysdeps/unix/sysv/linux/configure.in
417         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
419 2002-01-16  Roger Sayle  <roger@eyesopen.com>
421         * stdlib/msort.c (msort_with_tmp): Replace implementation with
422         more efficient "Towers of Hanoi" mergesort.
423         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
424         for generic, sizeof(int) and sizeof(long) variants respectively.
426 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
428         * manual/syslog.texi (openlog): Describe possible problems with
429         first parameter.
430         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
432         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
433         * nscd/connections.c (begin_drop_privileges): New function.
434         (finish_drop_privileges): New function.
435         (nscd_init): Call the new functions which also install all groups
436         for the server user.
437         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
438         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
440 2002-01-17  H.J. Lu  <hjl@gnu.org>
442         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
443         `const' from `got'.
445 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
447         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
448         instructions for pointer operations.
449         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
451 2002-01-17  Andreas Jaeger  <aj@suse.de>
453         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
454         __uint128_t build-in.
456         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
457         PowerPC, sync with 2.2 branch.
459 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
461         * posix/getconf.c: Update copyright year.
462         * nss/getent.c: Likewise.
463         * nscd/nscd_nischeck.c: Likewise.
464         * iconv/iconvconfig.c: Likewise.
465         * iconv/iconv_prog.c: Likewise.
466         * elf/ldconfig.c: Likewise.
467         * catgets/gencat.c: Likewise.
468         * csu/version.c: Likewise.
469         * elf/ldd.bash.in: Likewise.
470         * elf/sprof.c (print_version): Likewise.
471         * locale/programs/locale.c: Likewise.
472         * locale/programs/localedef.c: Likewise.
473         * nscd/nscd.c (print_version): Likewise.
474         * debug/xtrace.sh: Likewise.
475         * malloc/memusage.sh: Likewise.
476         * malloc/mtrace.pl: Likewise.
478 2002-01-16  Andreas Schwab  <schwab@suse.de>
480         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
481         reliably remove "-ia64" from rtld name.
483 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
485         * iconvdata/gb18030.c: Bug fixes and support for more characters.
486         Patch by Yu Shao <yshao@redhat.com>.
488 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
490         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
491         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
492         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
494 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
496         * sysdeps/s390/fpu/libm-test-ulps: Update.
498 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
500         * elf/elf.h: Update x86 relocations.
502 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
504         * locale/programs/charmap.c (new_width): Check whether byte
505         sequences for both ends of range have the same length.
507 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
509         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
511 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
513         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
514         string literals.
515         (__full_ieee754_sqrt): Add __attribute_used__.
517 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
519         * sysdeps/generic/group_member.c (__group_member): Also check
520         groups[0] [PR libc/2781].
522 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
524         * Makefile (distribute): Add scripts/cpp.
525         * elf/Makefile (distribute): Add reldep6mod[01234].c,
526         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
527         unwind-dw2-fde.h, and dwarf2.h.
528         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
529         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
530         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
531         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
533 2002-01-07  Roland McGrath  <roland@frob.com>
535         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
536         volatile on type of ARGC so the compiler doesn't get clever.
538 2002-01-07  Andreas Jaeger  <aj@suse.de>
540         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
541         * sysdeps/i386/bits/byteswap.h: Likewise.
542         * sysdeps/ia64/bits/byteswap.h: Likewise.
543         * sysdeps/m68k/bits/byteswap.h: Likewise.
544         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
545         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise.
547 2002-01-02  Bruno Haible  <bruno@clisp.org>
549         * intl/plural.y: Fix %expect count.
551 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
553         * elf/Makefile (routines, shared-only-routines): Add
554         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
555         * elf/elf.h (PT_GNU_EH_FRAME): Define.
556         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
557         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
558         Optimize if .eh_frame section contains no FDEs.
559         (__register_frame, __deregister_frame_info_bases,
560         __deregister_frame): Likewise.
561         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
562         DW_CFA_restore handling.
564 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
566         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
568         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
569         for x < 0.25 and restore original range reduction method.
570         (__ieee754_lgammal_r): Make sure signgam is set before returning.
572 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
574         * libio/fileops.c (_IO_file_underflow_mmap): New function.
575         (_IO_file_close_mmap): New function.
576         (_IO_file_jumps_mmap): New variable.
577         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
578         trying to convert rest of byte buffer.
579         (_IO_wfile_underflow_mmap): New function.
580         (_IO_wfile_jumps_mmap): New variable.
581         * libio/iofopen.c (__fopen_maybe_mmap): New function.
582         (__fopen_internal): New function.  Split out from _IO_new_fopen.
583         (_IO_new_fopen): Call __fopen_internal.
584         * libio/iofopen64.c: Just call __fopen_internal.
585         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
586         successfully.
587         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
588         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
589         _IO_file_close_mmap.
591         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
592         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
594         * stdio-common/Makefile (tests): Add tst-rndseek.
595         * stdio-common/tst-rndseek.c: New file.
597 2002-01-05  Roland McGrath  <roland@frob.com>
599         * config.h.in (HAVE_MIG_RETCODE): New #undef.
600         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
601         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
602         * sysdeps/mach/hurd/configure: Regenerated.
604 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
606         * elf/elf.h: Add more TLS definitions.
608 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
610         * include/features.h (__GLIBC_MINOR__): Bump to 3.
612 2002-01-02  Roland McGrath  <roland@frob.com>
614         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
615         __sigisemptyset.  Don't use MASK uninitialized.
617         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
618         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
619         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
620         __sigdelset, __sigaddset, __sigorset.
622         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
623         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
625         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
626         _hurd_ports is null.
628         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
629         for old CMU and new OSF Mach interface flavors.
630         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
631         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
633         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
635         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
636         Pass extra arguments to task_create for OSF variant.
637         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
639         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
640         conditional on [HAVE_AUX_VECTOR].
642         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
643         mach_msg_timeout_t as type of final argument.
645         * hurd/privports.c (__get_privileged_ports):
646         Change host_priv_t to mach_port_t in argument type.
647         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
648         Update decls.
650         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
651         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
652         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
653         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
654         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
655         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
657 2002-01-01  Roland McGrath  <roland@frob.com>
659         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
661 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
663         * include/stdlib.h: Define inlines for the _l variants of the strto*
664         functions.
666 2002-01-01  Roland McGrath  <roland@frob.com>
668         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
670         * mach/Machrules (MIG): Set CPP as well as CC.
672 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
674         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
675         locale to parse /proc/loadavg [PR libc/2760].
677 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
679         * elf/dl-conflict.c: Include sys/param.h.
680         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
681         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
682         warning.
683         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
684         literals to avoid warnings.
686 2001-12-31  Andreas Jaeger  <aj@suse.de>
688         * configure.in: Don't check for gsed since we do not use it anywhere.
690 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
692         * io/fts.c: Update from BSD to fix memory leaks.
694 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
696         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
697         * elf/chroot_canon.c: Likewise.
698         * elf/dl-object.c: Likewise.
699         * iconv/iconv_charmap.c: Likewise.
700         * iconv/iconv_prog.c: Likewise.
701         * libio/iogetdelim.c: Likewise.
702         * locale/lc-time.c: Likewise.
703         * stdlib/canonicalize.c: Likewise.
704         * sunrpc/svc.c: Likewise.
705         * sysdeps/generic/glob.c: Likewise.
707 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
709         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
710         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
711         remove high order bit from the program counter.
712         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
714 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
716         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
717         unnecessary code and add missing reloc types.
718         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
719         case for reloc type R_390_NONE.
721 2001-12-28  Andreas Jaeger  <aj@suse.de>
723         * io/bug-ftw3.c: Include string.h for prototypes.
725         * crypt/md5test.c (main): Remove unused variable.
727         * dlfcn/modstatic.c: Add prototype to avoid warning.
729 2001-12-26  Roland McGrath  <roland@frob.com>
731         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
732         check only (SS->pending & MASK) for the signal to return.
733         From Jeroen Dekkers <jeroen@dekkers.cx>.
735 2001-12-22  Roland McGrath  <roland@frob.com>
737         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
738         Use preprocessor #if conditionals instead of `if' to avoid
739         warnings about divide by zero in dead code.
741         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
742         _hurd_port_init, and __hurd_self_sigstate.
744         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
746 2001-12-21  Andreas Jaeger  <aj@suse.de>
748         * elf/dblloadmod1.c: Add prototype to avoid warning.
749         * elf/dblloadmod2.c: Likewise.
750         * elf/dblloadmod3.c: Likewise.
751         * elf/reldepmod5.c: Likewise.
752         * elf/reldepmod6.c: Likewise.
754         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
755         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
756         used on all architectures.
758         * sunrpc/svc_tcp.c: Add noreturn attribute for
759         svctcp_rendezvous_abort.
760         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
762         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
763         to avoid warning.
765 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
767         * manual/llio.texi (aio_fsync): Fix a typo.
768         Patch by Tammy Fox <tfox@redhat.com>.
770 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
772         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
773         stack bias from child stack pointer before passing it to clone syscall.
775 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
777         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
778         _SC_TZNAME_MAX.
779         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
780         Reported by Thorsten Kukuk <kukuk@suse.de>.
782         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
783         add some casts.
785         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
787 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
789         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
790         conforming: return EBADF if file descriptor is invalid and EINVAL
791         if file descriptor is no valid tty.
792         * login/tst-grantpt.c: New file.
793         * login/Makefile (tests): Add tst-grantpt.
795 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
797         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
798         different than implemented in last patch.
799         * io/bug-ftw3.c: Adjust test for changed handling of
800         inaccessibility of toplevel dir.
802 2001-12-16  Roland McGrath  <roland@frob.com>
804         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
805         * grp/initgroups.c (internal_getgrouplist): Likewise.
807         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
808         `default:' to silence new GCC warning.
809         Rewrite cast of lvalue to silence new GCC warning.
811         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
813         * sysdeps/mach/hurd/spawni.c: New file, by me with a
814         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
816 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
818         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
819         Patch by Stephen R. van den Berg.
821         * crypt/md5.h: Define md5_uintptr.
823 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
825         * libio/tst_swprintf.c (main): Add test for string argument with
826         zero precision.
827         * stdio-common/Makefile (tests): Add tst-sprintf.
828         * stdio-common/tst-sprintf.c: New file.
830 2001-12-13  Andreas Schwab  <schwab@suse.de>
832         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
833         zero precision with wide character string format.
835 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
837         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
838         but have a user supplied buffer, return the empty buffer, not NULL.
840 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
842         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
843         Patch by Eric Sharkey <sharkey@netrics.com>.
845         * crypt/md5test.c (main): Add test for multiple calls to
846         __md5_process_bytes to itererate over input string.
848 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
850         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
851         from __nis_findfastest.  Take timeout value from parameter.
852         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
853         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
854         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
856 2001-12-12  Andreas Jaeger  <aj@suse.de>
858         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
859         combreloc test so that it works in this case.
861         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
863 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
865         * sysdeps/sh/Makefile: New file.
866         * sysdeps/sh/_mcount.S: New file.
867         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
868         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
870 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
872         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
873         limitation [PR libc/2564].
875 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
877         * elf/Makefile (dl-routines): Add conflict.
878         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
879         (ld.so): Add _begin local symbol.
880         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
881         Define.
882         * elf/dl-deps.c (_dl_build_local_scope): New.
883         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
884         of all libraries.
885         * elf/do-rel.h (VALIDX): Define.
886         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
887         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
888         can be skipped.
889         * elf/dl-conflict.c: New file.
890         * elf/dl-lookup.c (_dl_debug_bindings): New.
891         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
892         non-NULL.
893         (_dl_lookup_symbol_skip): Likewise.
894         (_dl_lookup_versioned_symbol): Likewise.
895         (_dl_lookup_versioned_symbol_skip): Likewise.
896         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
897         define to ElfW(Rel).
898         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
899         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
900         ranges.
901         Don't adjust address dynamic tags if l_addr is 0.
902         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
903         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
904         (VALIDX, ADDRIDX): Define.
905         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
906         (dl_main): Print library list for LD_TRACE_PRELINKING.
907         If prelinking information can be used, skip relocating libraries and
908         call _dl_resolve_conflicts instead.
909         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
910         * elf/dl-load.c (_dl_map_object): Don't create fake libs
911         if LD_TRACE_PRELINKING.
912         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
913         + DT_ADDRNUM.
914         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
915         (DL_DEBUG_PRELINK): Define.
916         (_dl_resolve_conflicts): Add prototype.
918         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
919         .plt for prelinked libraries where prelinking info cannot be used.
920         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
921         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
922         * sysdeps/arm/bits/link.h: New file.
923         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
924         content of .got[1].
925         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
926         (ELF_MACHINE_PLT_REL): Define.
927         (elf_machine_rela, elf_machine_rela_relative): New.
928         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
929         of adjusting it if prelinked and prelinking cannot be used.
930         * sysdeps/i386/bits/link.h: New file.
931         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
932         content of .got[1].
933         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
934         (ELF_MACHINE_PLT_REL): Define.
935         (elf_machine_rela, elf_machine_rela_relative): New.
936         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
937         of adjusting it if prelinked and prelinking cannot be used.
938         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
939         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
940         to find out map for R_PPC_JMP_SLOT relocs.
941         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
942         (OPCODE_BA): Define.
943         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
944         libraries where prelinking info cannot be used.
945         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
946         (elf_machine_fixup_plt): Call sparc_fixup_plt.
947         (elf_machine_rela): Set value to 0 if relocating conflicts.
948         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
949         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
950         (sparc64_fixup_plt): Fix a typo.
951         (elf_machine_rela): Set value to 0 if relocating conflicts.
952         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
953         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
954         libraries where prelinking info cannot be used.
955         * sysdeps/sh/bits/link.h: New file.
956         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
957         content of .got[1].
958         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
959         of adjusting it if prelinked and prelinking cannot be used.
960         * sysdeps/s390/s390-32/bits/link.h: New file.
961         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
962         Save original content of .got[1].
963         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
964         of adjusting it if prelinked and prelinking cannot be used.
965         * sysdeps/s390/s390-64/bits/link.h: New file.
966         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
967         Save original content of .got[1].
968         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
969         of adjusting it if prelinked and prelinking cannot be used.
970         * sysdeps/x86_64/bits/link.h: New file.
971         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
972         Save original content of .got[1].
973         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
974         of adjusting it if prelinked and prelinking cannot be used.
976 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
978         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
979         where appropriate instead of numbers.  Little optimizations.
981 2001-12-10  Roland McGrath  <roland@frob.com>
983         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
984         set it.
986         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
987         set to GLIBC_2.2.5, not GLIBC_2.2.4.
989         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
990         Fix conditionals so this is set by default for stdio and not for libio.
991         * sysdeps/mach/hurd/configure: Regenerated.
993 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
995         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
997 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
999         * io/Makefile (tests): Add bug-ftw3.
1000         * io/bug-ftw3.c: New file.
1002         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
1003         matches and GLOB_NOCHECK is set.
1004         * posix/globtest.sh: Correct expected result for NOCHECK test.
1006         * po/ca.po: Update from translation team.
1008 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
1010         Implement transliteration of characters in strings of the locale
1011         definitions.
1012         * locale/programs/linereader.c: Adjust for additional parameter to
1013         lr_token.
1014         (get_string): If character <Uxxxx> is not found try to transliterate
1015         it.
1016         * locale/programs/ld-ctype.c: Adjust for additional parameter to
1017         lr_token.  Add const to charmap parameter of all functions.
1018         (find_translit, find_translit2): New functions.
1019         * locale/programs/charmap.c: Adjust for additional parameter to
1020         lr_token.
1021         * locale/programs/repertoire.c: Likewise.
1022         * locale/programs/linereader.h: Likewise.
1023         * locale/programs/ld-address.c: Likewise.  Add const to charmap
1024         parameter of all functions.
1025         * locale/programs/ld-collate.c: Likewise.
1026         * locale/programs/ld-identification.c: Likewise.
1027         * locale/programs/ld-measurement.c: Likewise.
1028         * locale/programs/ld-messages.c: Likewise.
1029         * locale/programs/ld-monetary.c: Likewise.
1030         * locale/programs/ld-name.c: Likewise.
1031         * locale/programs/ld-numeric.c: Likewise.
1032         * locale/programs/ld-paper.c: Likewise.
1033         * locale/programs/ld-paper.c: Likewise.
1034         * locale/programs/ld-telephone.c: Likewise.
1035         * locale/programs/ld-time.c: Likewise.
1036         * locale/programs/locfile.c: Likewise.
1037         * locale/programs/localedef.c: Likewise.
1038         * locale/programs/localedef.h: Likewise.
1039         * locale/programs/locfile.h: Likewise.  Add declaration for
1040         find_translit.
1041         * locale/programs/simple-hash.c: Add const to first parameter of
1042         find_entry, iterate_table, and lookup.
1043         * locale/programs/simple-hash.h: Likewise.
1044         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
1045         instead.
1046         * include/locale.h: Define __LC_LAST.
1047         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
1049 2001-12-07  Geoff Keating  <geoffk@redhat.com>
1051         * sysdeps/powerpc/Dist: Update for recent FP changes.
1052         * sysdeps/powerpc/fpu/Dist: Likewise.
1054 2001-12-07  Andreas Schwab  <schwab@suse.de>
1056         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
1058 2001-12-06  Geoff Keating  <geoffk@redhat.com>
1060         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
1061         save/restore functions here.
1062         (libm-support): Don't define these functions here.
1063         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
1064         functions here.
1065         * sysdeps/powerpc/fe_nomask.c: Move to...
1066         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
1067         * sysdeps/powerpc/fprrest.S: Move to...
1068         * sysdeps/powerpc/fpu/fprrest.S: ... here.
1069         * sysdeps/powerpc/fprsave.S: Move to...
1070         * sysdeps/powerpc/fpu/fprsave.S: ... here.
1072 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
1074         * sysdeps/unix/sysv/linux/opensock.c: New file.
1076 2001-12-06  Geoff Keating  <geoffk@redhat.com>
1078         * config.make.in (with-fp): Define from configure.
1079         * configure.in: Substitute with_fp.
1080         * configure: Regenerate.
1081         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
1082         specified, and don't change FPU environment.
1084 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
1086         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
1087         * assert/assert.c: Check result of __asprintf call and don't use
1088         string if it failed.
1089         * assert/assert-perr.c: Likewise.
1090         * inet/rcmd.c: Likewise.
1091         * locale/programs/localedef.c (main): Check result of
1092         construct_output_path and exit if it failed.
1093         (construct_output_path): Check result of asprintf and mkdir calls and
1094         fail if they failed.
1095         * posix/getopt.c: Check result of __asprintf calls and fail if
1096         they failed.
1097         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
1099 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1101         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
1102         patch.
1103         * sysdeps/generic/strncase.c: Likewise.
1104         * string/tester.c: Add tests for strcasecmp and strncasecmp.
1106 2001-12-05  Geoff Keating  <geoffk@redhat.com>
1108         * scripts/cpp: Test the exit status from 'type', not 'awk'.
1110         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
1111         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
1112         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
1113         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
1114         * sysdeps/powerpc/fclrexcpt.c: Move to...
1115         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
1116         * sysdeps/powerpc/fpu_control.h: Move to...
1117         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
1119 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1121         * iconvdata/ibm1129.h: Remove duplicate mappings.
1122         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
1123         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
1124         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1126         * timezone/zic.c: Fix handling of turnaround times.
1127         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
1129 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
1131         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
1132         overflow problem.
1134 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1136         * posix/regex.c: For use outside glibc defined bounded pointer
1137         macros here.  Patch by Jim Meyering <jim@meyering.net>.
1139         * iconvdata/Makefile (modules): Add TCVN5712-1.
1140         * iconvdata/TESTS: Add TCVN5712-1.
1141         * iconvdata/gconv-modules: Likewise.
1142         * iconvdata/tcvn5712-1.c: New file.
1143         * iconvdata/testdata/TCVN-5712: New file.
1144         * iconvdata/testdata/TCVN-5712..UTF8: New file.
1146 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
1148         * iconvdata/cp1258.c: Optimize conversion from UCS4.
1150 2001-12-02  Roland McGrath  <roland@frob.com>
1152         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
1154         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
1155         Reported by Jeff Bailey <jbailey@nisa.net>.
1157         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
1158         Reported by Jeff Bailey <jbailey@nisa.net>.
1160         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
1161         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
1162         Reported by Jeff Bailey <jbailey@nisa.net>.
1164 2001-12-01  Roland McGrath  <roland@frob.com>
1166         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
1167         missing backslash in test arguments.
1168         * sysdeps/mach/hurd/configure: Regenerated.
1170 2001-11-26  Roland McGrath  <roland@frob.com>
1172         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
1173         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
1175 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
1177         * iconvdata/Makefile (modules): Add ARMSCII-8.
1178         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
1179         * iconvdata/armscii-8.c: New file.
1181 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
1183         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
1184         don't match, fix {{a,b},c} globbing, clean up.
1185         Patch by Flavio Veloso <flaviovs@magnux.com>.
1186         * posix/globtest.sh: Add new tests.
1188 2001-11-29  Andreas Jaeger  <aj@suse.de>
1190         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
1191         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
1193         * sysdeps/generic/abort.c: Include libioP.h for
1194         _IO_flush_all_lockp prototype.
1196 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
1198         * posix/regex.h: Define __restrict_arr correctly.
1200 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
1202         * iconvdata/ibm1163.c: New file.
1203         * iconvdata/ibm1163.h: New file.
1204         * iconvdata/ibm1164.c: New file.
1205         * iconvdata/ibm1164.h: New file.
1206         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
1207         * iconvdata/Makefile: Likewise.
1208         * iconvdata/testdata/IBM1163: New file.
1209         * iconvdata/testdata/IBM1163..UTF8: New file.
1210         * iconvdata/testdata/IBM1164: New file.
1211         * iconvdata/testdata/IBM1164..UTF8: New file.
1212         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1214         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
1215         * iconvdata/ibm1124.h: Likewise.
1216         * iconvdata/ibm1132.h: Likewise.
1217         * iconvdata/ibm1133.h: Likewise.
1218         * iconvdata/ibm1160.h: Likewise.
1219         * iconvdata/ibm1161.h: Likewise.
1220         * iconvdata/ibm1162.h: Likewise.
1221         * iconvdata/ibm856.h: Likewise.
1222         * iconvdata/ibm922.h: Likewise.
1223         * iconvdata/ibm930.h: Likewise.
1224         * iconvdata/ibm932.h: Likewise.
1225         * iconvdata/ibm933.h: Likewise.
1226         * iconvdata/ibm935.h: Likewise.
1227         * iconvdata/ibm937.h: Likewise.
1228         * iconvdata/ibm939.h: Likewise.
1229         * iconvdata/ibm943.h: Likewise.
1230         * iconvdata/ibm930.c: Pretty printing.
1231         * iconvdata/ibm937.c: Avoid access accross array boundary.
1233         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
1234         the current locale's codeset.
1235         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
1236         empty input string.
1237         * iconv/iconv_prog.c: Pass empty strings as default value for to-
1238         and from-charset.  Don't determine locale's charset here.
1240         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
1241         as the old _IO_flush_all but lock only if parameter is nonzero.
1242         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
1243         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
1244         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
1245         if libio is used [PR libc/2575].
1247 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
1249         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
1250         __signbitl): Only define for ISO C99.
1252 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
1254         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
1255         herrnop to NETDB_INTERNAL if we run out of buffer space.
1257 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
1259         * nss/nss_files/files-XXX.c (internal_getent): Correct input
1260         overflow test for platforms with signed char.
1261         Reported by Andrew Haley <aph@cambridge.redhat.com>.
1263 2001-11-28  Bruno Haible  <bruno@clisp.org>
1265         * locale/programs/simple-hash.c (lookup_2): Remove function.
1266         (insert_entry_2): Call lookup instead of lookup_2.
1268 2001-03-04  Bruno Haible  <bruno@clisp.org>
1270         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
1272 2001-10-31  Bruno Haible  <bruno@clisp.org>
1274         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
1276 2001-03-21  Bruno Haible  <bruno@clisp.org>
1278         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
1279         chokes on empty macro arguments.
1280         * intl/plural.y: Add #pragma for alloca on AIX 3.
1282 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
1284         * intl/dcigettext.c (guess_category_value): Only implement for
1285         glibc.  Otherwise rely on function _nl_locale_name which isn't
1286         present in the glibc sources.
1288 2001-09-24  Bruno Haible  <bruno@clisp.org>
1290         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
1291         transliteration when building on a glibc system but outside glibc.
1293 2001-09-22  Bruno Haible  <bruno@clisp.org>
1295         * intl/plural-eval.c: New file, extracted from dcigettext.c.
1296         * intl/dcigettext.c (plural_eval): Remove function, moved to
1297         intl/plural-eval.c.
1298         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
1299         Include plural-eval.c.
1301 2001-09-22  Bruno Haible  <bruno@clisp.org>
1303         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
1304         don't start with a digit; nplurals must be positive.
1306 2001-09-02  Bruno Haible  <bruno@clisp.org>
1308         * intl/plural-exp.h: New file, extracted from gettextP.h.
1309         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
1310         * intl/gettextP.h (struct expression, struct parse_args,
1311         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
1312         * intl/loadmsgcat.c: Include plural-exp.h.
1313         (PLURAL_PARSE): Move macro to plural-exp.h.
1314         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
1315         plural-exp.c.
1316         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
1317         EXTRACT_PLURAL_EXPRESSION.
1318         (_nl_unload_domain): Update.
1319         * intl/dcigettext.c: Include plural-exp.h.
1320         * intl/plural.y: Include plural-exp.h, not gettextP.h.
1321         (FREE_EXPRESSION): Move macro to plural-exp.h.
1322         * intl/Makefile (routines): Add plural-exp.
1323         (distribute): Add plural-exp.h.
1325 2001-07-28  Bruno Haible  <bruno@clisp.org>
1327         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
1328         isdigit, tolower argument to 'unsigned char'.
1329         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
1330         'unsigned char'.
1331         * intl/localealias.c (read_alias_file): Cast isspace argument to
1332         'unsigned char'.
1334 2001-10-20  Bruno Haible  <bruno@clisp.org>
1336         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
1337         anyway.)
1338         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
1339         with the variable 'index' in plural_lookup.
1340         * intl/l10nflist.c (strchr): Likewise.
1341         * intl/localealias.c (strchr): Likewise.
1343         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
1344         * intl/bindtextdom.c: Likewise.
1345         * intl/dcigettext.c: Likewise.
1346         * intl/dgettext.c: Likewise.
1347         * intl/dngettext.c: Likewise.
1348         * intl/explodename.c: Likewise.
1349         * intl/finddomain.c: Likewise.
1350         * intl/gettext.c: Likewise.
1351         * intl/l10nflist.c: Likewise.
1352         * intl/loadmsgcat.c: Likewise.
1353         * intl/localealias.c: Likewise.
1354         * intl/ngettext.c: Likewise.
1355         * intl/textdomain.c: Likewise.
1356         * intl/gettext.h: Assume <limits.h> exists.
1358 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
1360         * stdio-common/Makefile (tests): Add scanf11.
1361         * stdio-common/scanf11.c: New file.
1363 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
1365         * version.h (RELEASE): Define as development.
1366         (VERSION): Set to 2.2.90.
1368 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
1370         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
1371         * nis/nss_nis/nis-grp.c: Likewise.
1372         * nis/nss_nisplus/nisplus-grp.c: Likewise.
1374         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
1375         * nis/nss_nis/nis-pwd.c: Likewise.
1376         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
1378         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
1379         * nis/nss_nisplus/nisplus-parser.c: Likewise.
1380         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
1382         * nscd/grpcache.c: Use strtoul instead of atol.
1383         * nscd/pwdcache.c: Likewise.
1384         * nss/getent.c: Likewise.
1386 2001-11-27  Paul Eggert  <eggert@twinsun.com>
1388         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
1389         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
1391 2001-11-19  Bruno Haible  <bruno@clisp.org>
1393         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
1394         90%.
1395         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
1396         improves the quality of the hash function, especially for short
1397         strings.
1399 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
1401         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
1402         are found call conv_error and not input_error [PR libc/2669].
1404         * math/bits/mathcalls.h: Mark ceil and floor as const.
1405         Reported by David Mosberger.
1407 2001-11-21  Jim Meyering  <meyering@lucent.com>
1409         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
1410         Define to be __-prefixed.
1411         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
1413 2001-11-26  Andreas Jaeger  <aj@suse.de>
1415         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
1416         avoid warning.
1418 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
1420         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
1421         initialization.
1423         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
1424         unused variables.  Fix threshold for returning 1.0.
1426         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
1427         argument.
1429         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
1430         remove unused variables.
1432         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
1434         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
1435         include local math header files.
1437 2001-11-22  Andreas Jaeger  <aj@suse.de>
1439         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
1440         avoid warning.
1442 2001-11-21  Andreas Jaeger  <aj@suse.de>
1444         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
1446         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
1447         sys/debugreg.h
1449 2001-11-15  Andreas Jaeger  <aj@suse.de>
1451         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
1452         compilers that support it.
1454         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
1455         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
1456         * stdlib/stdlib.h: Likewise.
1458 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
1460         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
1461         statement with gotos.
1462         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
1464 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
1466         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
1468 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
1470         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
1472 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
1473             H.J. Lu  <hjl@gnu.org>
1475         * Versions.def (libc): Add GCC_3.0.
1476         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
1477         if gcc supports this flag.
1478         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
1479         (gcc3): Allow glibc to be compiled with gcc 3.x.
1480         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
1481         * config.make.in (static-libgcc, unwind-find-fde): Add.
1482         * Makerules (build-shlib-helper, build-module-helper): Use it.
1483         * scripts/versions.awk: Make sure GLIBC_ versions come first.
1484         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
1485         necessary.
1486         (_fini): Call __deregister_frame_info_bases if
1487         __register_frame_info_bases was used to register.
1488         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
1489         for GLIBC_2.0.
1490         (__register_frame_info_bases, __register_frame_info_table_bases,
1491         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
1492         * elf/Makefile (routines): Add unwind-dw2-fde.
1493         (shared-only-routines): Add unwind-dw2-fde.
1494         * sysdeps/alpha/gccframe.h: New file.
1495         * sysdeps/arm/gccframe.h: New file.
1496         * sysdeps/generic/framestate.c: New file.
1497         * sysdeps/generic/dwarf2.h: New file.
1498         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
1499         * sysdeps/generic/unwind-dw2-fde.c: New file.
1500         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
1501         * sysdeps/generic/unwind-dw2-fde.h: New file.
1502         * sysdeps/generic/unwind-dw2.c: New file.
1503         * sysdeps/generic/unwind-pe.h: New file.
1504         * sysdeps/generic/unwind.h: New file.
1505         * sysdeps/hppa/gccframe.h: New file.
1506         * sysdeps/i386/gccframe.h: New file.
1507         * sysdeps/m68k/gccframe.h: New file.
1508         * sysdeps/mips/gccframe.h: New file.
1509         * sysdeps/powerpc/gccframe.h: New file.
1510         * sysdeps/s390/gccframe.h: New file.
1511         * sysdeps/sh/gccframe.h: New file.
1512         * sysdeps/sparc/gccframe.h: New file.
1513         * sysdeps/vax/gccframe.h: New file.
1514         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
1515         Set on all architectures except ia64.
1516         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
1517         for i386.
1518         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
1519         __deregister_frame_info): Move to elf/Versions.
1520         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
1521         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
1522         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1523         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
1524         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
1525         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
1526         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
1527         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1528         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
1529         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
1530         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
1531         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
1532         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
1533         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
1534         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
1535         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
1536         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
1537         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
1539 2001-11-15  Jeff Law  <law@redhat.com>
1541         * posix/regex.c (uintptr_t): Do not provide a definition if the
1542         system provided one.
1544 2001-11-13  Roland McGrath  <roland@frob.com>
1546         * stdio-common/tmpfile.c: Moved to ...
1547         * sysdeps/generic/tmpfile.c: ... here.
1548         * sysdeps/mach/hurd/tmpfile.c: New file.
1550         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
1551         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
1552         (fopenport): Define as weak alias.
1554         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
1555         * libio/libioP.h: ... to here.
1557 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
1559         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
1560         program header twice.  Construct list with the needed information.
1562 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
1564         * po/ca.po: Update from translation team.
1566         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
1567         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
1568         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
1569         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
1571 2001-11-10  Andreas Jaeger  <aj@suse.de>
1573         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
1574         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1575         Contributed by Stephen L Moshier <moshier@mediaone.net>.
1577 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
1579         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
1580         correctly.
1581         * elf/dl-load.c (is_dst): New function.
1582         (_dl_dst_count): Use is_dst to check for DST variable.
1583         (_dl_dst_substitute): Likewise.
1585 2001-11-09  Roland McGrath  <roland@frob.com>
1587         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
1588         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
1589         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
1590         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
1591         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
1592         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
1593         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
1594         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
1595         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
1596         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
1597         * sysdeps/mach/hurd/powerpc/Dist: New file.
1599         * hurd/privports.c (__get_privileged_ports):
1600         Only contact the proc server if necessary for this call.
1601         Suggested by Neal H Walfield <neal@cs.uml.edu>.
1602         Check error return for mach_port_mod_refs.
1604 2001-11-09  Andreas Schwab  <schwab@suse.de>
1606         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
1608 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
1610         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
1611         object is always the last in the list.
1612         (_dl_map_object_from_fd): Delete code to remove from object list
1613         when DF_1_NOOPEN is seen.  This is done in lose.
1615 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
1617         * elf/dl-object.c (_dl_new_object): Various small optimizations.
1619 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
1621         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
1622         HWCAP_CHECK macro code.
1624         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
1625         Now returns MAP_FAILED on error.
1626         * elf/rtld.c: Adjust caller.
1627         * sysdeps/generic/dl-cache.c: Likewise.
1628         * sysdeps/generic/ldsodefs.h: Adjust description.
1630         * elf/dl-version.c (match_symbol): Optimize error handling for size.
1631         (_dl_check_map_versions): Likewise.
1633 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
1635         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
1636         _dl_signal_error directly, always use lose.  Set fd to -1 after
1637         file is closed.
1638         (lose): Don't call close if fd == -1.
1640 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
1642         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
1643          Also fix typo @code {mbsinit} to @code{mbsinit}.
1645 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
1647         * elf/dl-profile.c: Replace state variable with simple flag named
1648         running.  Remove commented-out code.
1650         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
1651         (_dl_init_paths): Likewise.
1652         (_dl_map_object_from_fd): Likewise.
1653         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
1655 2001-11-06  Roland McGrath  <roland@frob.com>
1657         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
1658         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
1660         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
1661         sysdeps/powerpc/elf/sysdep.h.
1662         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
1664 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
1666         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
1667         speed.
1668         (process_envvars): Some more optimizations.
1669         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
1671         * elf/elf.h: Add dynamic tag definitions for prelinking.
1673         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
1674         Rewrite code to remove environment varables for SUID binaries.
1675         Small optimization in LD_PROFILE handling.
1676         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
1677         changes.
1678         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
1680         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
1682         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
1683         strings.  Change type of second parameter.
1684         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
1685         for last change.
1687         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
1689 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
1691         * manual/string.texi: Fix typos.
1692         * manual/examples/argp-ex2.c: Likewise.
1694 2001-11-05  Roland McGrath  <roland@frob.com>
1696         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
1697         the more-specific unix/sysv/linux/powerpc file and breaks everything.
1698         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
1699         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
1700         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
1701         here, put under [__ELF__].
1703 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
1705         * manual/charset.texi: Extensive editing work.
1706         * manual/nss.texi: Likewise.
1707         Changes by Dennis Grace <dgrace@us.ibm.com>.
1709 2001-11-04  Roland McGrath  <roland@frob.com>
1711         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
1712         parameter to dir_mkfile.
1714 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
1716         * string/bits/string2.h (__strndup): If n is smaller than len, set
1717         len to n + 1.
1718         * string/tester.c (test_strndup): New function.
1719         (main): Call it.
1721 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
1723         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
1725         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
1726         * scripts/cpp: New file.
1728         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
1729         for rtld_search_dirs content.  Minor optimizations.
1731 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
1733         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
1734         avoiding unnecessary duplication.
1736 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
1738         * elf/dl-load.c (_dl_map_object): If library was found using
1739         LD_LIBRARY_PATH, don't try RUNPATH list.
1741 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1743         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
1744         Correct second argument of register_dump call.
1745         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
1746         Likewise.
1748 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
1750         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
1751         modules.
1752         * iconvdata/TESTS: Likewise.
1753         * iconvdata/gconv-modules: Likewise.
1754         * iconvdata/ibm1132.c: New file.
1755         * iconvdata/ibm1132.h: New file.
1756         * iconvdata/ibm1133.c: New file.
1757         * iconvdata/ibm1133.h: New file.
1758         * iconvdata/ibm1162.c: New file.
1759         * iconvdata/ibm1162.h: New file.
1760         * iconvdata/testdata/IBM1132: New file.
1761         * iconvdata/testdata/IBM1132..UTF8: New file.
1762         * iconvdata/testdata/IBM1133: New file.
1763         * iconvdata/testdata/IBM1133..UTF8: New file.
1764         * iconvdata/testdata/IBM1162: New file.
1765         * iconvdata/testdata/IBM1162..UTF8: New file.
1766         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
1768         * string/string.h: Fix typo in comment.
1769         * wcsmbs/wchar.h: Likewise.
1771 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
1773         * manual/getopt.texi (getopt_long, getopt_long_only): Include
1774         const in type of longopts parameter.
1776 2001-10-29  Andreas Jaeger  <aj@suse.de>
1778         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
1780 2001-10-29  Kevin Ryde  <user42@zip.com.au>
1782         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
1783         output, clarify `#' behaviour on 0.
1784         (Floating-Point Conversions): Clarify that %g only uses %e when
1785         the exponent would be greater than 1.
1787 2001-10-28  Roland McGrath  <roland@frob.com>
1789         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
1790         * sysdeps/mach/powerpc/machine-sp.h: New file.
1791         * sysdeps/mach/powerpc/sysdep.h: New file.
1792         * sysdeps/mach/powerpc/thread_state.h: New file.
1794         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
1795         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
1796         expect to need the same thing on every platform.
1798         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
1799         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
1801         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
1802         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
1803         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
1804         Move all these assembly-related definitions to ...
1805         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
1807         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
1808         by Peter Bruin <pjbruin@dds.nl>.
1810         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
1811         packing results for a `poll' call.
1813 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
1815         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
1816         correctly.
1817         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
1818         bracket expression.
1820         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
1821         nrules value.
1822         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
1824 2001-10-24  H.J. Lu  <hjl@gnu.org>
1826         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
1827         Use __BEGIN_DECLS/__END_DECLS around prototypes.
1828         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
1830 2001-10-21  Jim Meyering  <meyering@lucent.com>
1832         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
1833         this code would end up calling gettext even in packages built
1834         with --disable-nls.
1835         * posix/getopt.c (_): Likewise.
1836         * posix/regex.c (_): Likewise.
1838 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
1840         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
1841         lookup not ip6.int.
1842         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
1843         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
1845 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
1847         * misc/sys/cdefs.h (__attribute_used__): Define.
1848         * elf/rtld.c (_dl_start): Add __attribute_used__.
1849         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
1851 2001-10-25  Andreas Schwab  <schwab@suse.de>
1853         * stdlib/a64l.c: Expect least significant digit first.
1854         * stdlib/l64a.c: Produce least significant digit first.
1855         * stdlib/Makefile (tests): Add test-a64l.
1856         * stdlib/test-a64l.c: New file.
1857         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
1859 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
1861         * po/sk.po: Update from translation team.
1863 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
1865         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
1867 2001-10-18  Andreas Schwab  <schwab@suse.de>
1869         * math/libm-test.inc (print_ulps): Print ulp values rounded to
1870         next whole number.
1871         (print_function_ulps): Likewise.
1872         (print_complex_function_ulps): Likewise.
1873         (print_max_error): Likewise.
1874         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
1876 2001-10-16  Andreas Schwab  <schwab@suse.de>
1878         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
1879         implementation.
1881         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
1882         BSD_SETJMP or BSD__SETJMP is defined, resp.
1883         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
1884         a tail call to __sigsetjmp that would require extending the
1885         caller's frame.
1886         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
1887         * sysdeps/m68k/bsd-setjmp.S: Deleted.
1888         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
1889         Reported by Jes Sorensen <jes@trained-monkey.org>.
1891 2001-10-16  Andreas Jaeger  <aj@suse.de>
1893         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
1894         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
1895         close PR libc/2589.
1897 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
1899         * po/ca.po: New file.  Contributed by the translation team.
1901 2001-10-15  Ralf Baechle  <ralf@gnu.org>
1903         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
1904         a varargs prototype.  Remove dependency from kernel header files.
1906         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
1907         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
1909 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
1911         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
1912         to generate hexadecimal identifier.
1913         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
1915 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
1917         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
1919 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
1921         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
1922         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
1923         Contributed by Stephen L Moshier <moshier@mediaone.net>.
1925         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
1926         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1927         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
1928         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
1929         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
1930         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
1932         * timezone/africa: Update from tzdata2001d.
1933         * timezone/asia: Likewise.
1934         * timezone/australasia: Likewise.
1935         * timezone/backward: Likewise.
1936         * timezone/europe: Likewise.
1937         * timezone/leapseconds: Likewise.
1938         * timezone/northamerica: Likewise.
1939         * timezone/southamerica: Likewise.
1940         * timezone/zone.tab: Likewise.
1942 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1944         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
1945         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
1947 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
1949         * elf/elf.h (PT_TLS): New definition.
1951 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
1953         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
1954         bits/errno.h
1956 2001-10-07  Roland McGrath  <roland@frob.com>
1958         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
1960 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
1962         * elf/elf.h: Add more ELFOSABI_* constants.
1964 2001-10-04  Ben Collins  <bcollins@debian.org>
1966         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
1967         decleration of __need_wchar_t.
1969 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
1971         * string/bits/string2.h (__strsep_g): Add prototype.
1972         (__strsep): Use it.
1973         * string/Versions (__strsep): Remove.
1974         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
1976 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
1978         * manua/llio.texi: Clarify file references added by mmap.
1979         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
1981 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
1983         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
1984         Add sc_loadrs and sc_rbs_bas to match current kernel.
1986 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
1988         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
1990         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
1992 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
1994         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
1995         object has been bumped because of relocation dependency, avoid
1996         duplicates in l_scope.
1997         (show_scope): Fix typos.
1998         * elf/Makefile: Add rules to build and run reldep6.
1999         * elf/reldep6.c: New file.
2000         * elf/reldep6mod0.c: New file.
2001         * elf/reldep6mod1.c: New file.
2002         * elf/reldep6mod2.c: New file.
2003         * elf/reldep6mod3.c: New file.
2004         * elf/reldep6mod4.c: New file.
2006 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
2008         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
2009         sparc64_fixup_plt.
2010         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
2011         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
2012         for non-lazy binding. Fix .plt[32768+] handling.
2013         (elf_machine_plt_value): Don't add addend.
2014         (elf_machine_rela): Call sparc64_fixup_plt instead of
2015         elf_machine_fixup_plt.
2016         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
2017         dynamic linker at 0xfffff800XXXXXXXX.
2019         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
2021 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
2023         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
2025 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
2027         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
2028         declare __cmsg_data field if its size would be bigger than 0.
2029         (CMSG_DATA): Adjust accordingly.
2030         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
2031         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
2032         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
2033         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
2034         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2035         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
2036         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2038 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
2040         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
2041         * iconvdata/testdata/IBM1160: New file.
2042         * iconvdata/testdata/IBM1160..UTF8: New file.
2043         * iconvdata/testdata/IBM1161: New file.
2044         * iconvdata/testdata/IBM1161..UTF8: New file.
2045         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2047 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
2049         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
2050         UL_SETFSIZE computations better.
2052         * rt/Makefile: Remove use of filter for librt again.
2054         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
2055         UL_SETFSIZE computations better.
2057         * string/Versions: Export __strsep for GLIBC_2.2.5.
2058         * string/bits/string2.h: Define all __STRING_INLINE functions if
2059         _FORCE_INLINES is defined.
2060         Use int instead of char of parameter types.
2061         (__strsep): Don't use __strsep_g.  Don't define it.
2062         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
2063         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
2064         __strcpy_small.
2065         (__stpcpy_a_small): Renamed from __stpcpy_small.
2066         (__strcspn_c1): Don't define if _FORCE_INLINES.
2067         (__strspn_c1): Likewise.
2069 2001-09-22  Ben Collins  <bcollins@debian.org>
2071         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
2072         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
2073         * sysdeps/ia64/bits/sigaction.h: Likewise.
2074         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
2076 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
2078         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
2080 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
2082         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
2084 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
2086         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
2088 2001-09-20  H.J. Lu  <hjl@gnu.org>
2090         * include/dlfcn.h (__RTLD_SPROF): New definiton.
2091         * elf/dl-open.c (dl_open_worker): Return immediately after loading
2092         for __RTLD_SPROF.
2093         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
2094         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
2096 2001-09-20  H.J. Lu  <hjl@gnu.org>
2098         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
2099         don't add 1.
2101 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
2103         * nss/getent.c: Accept -s parameter to overwrite rules in
2104         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
2106         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
2107         with as many ".0" as necessary to form a complete address
2108         inet_network understands.
2110         * nss/getent.c: Various cleanups.  Use simpler and fewer function
2111         calls.
2113 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2115         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
2116         _JMPBUF_UNWINDS.
2117         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
2119 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
2121         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
2122         IBM1161.
2123         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
2124         * iconvdata/ibm1160.c: New file.
2125         * iconvdata/ibm1160.h: New file.
2126         * iconvdata/ibm1161.c: New file.
2127         * iconvdata/ibm1161.h: New file.
2128         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2130 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
2132         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
2133         difference between base address and first PT_LOAD's virtual address,
2134         not the base address.
2136 2001-09-11  Tom Rix  <trix@redhat.com>
2138         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
2139         ifdef for __getopt_clean_environment.
2140         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
2142 2001-09-22  Andreas Jaeger  <aj@suse.de>
2144         * elf/reldep4.c (main): Add proper prototype to fix warning.
2146         * elf/reldep5.c (main): Remove unused variable.
2148         * math/math_private.h: Add prototypes.
2150 2001-09-21  Andreas Jaeger  <aj@suse.de>
2152         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
2153         * sysdeps/x86_64/Dist: New file.
2154         * sysdeps/x86_64/soft-fp/Dist: New file.
2156         * sysdeps/gnu/Dist: Remove eval.c.
2158 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
2160         * malloc/memusage.c (realloc): Don't count already allocated
2161         memory in the sums.
2162         (me): Always use dlsym() to find the real implementations.
2164         * malloc/memusage.sh: Make -n option actually do something.
2166 2001-09-20  Andreas Jaeger  <aj@suse.de>
2168         * elf/elf.h (R_390_NUM): Correct value.
2170         * Versions.def: Add missing versions 2.2.3 for libthread_db and
2171         libpthread.
2173         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
2174         for x86-64, install x86-64 into */lib64.
2176         * shlib-versions: Add x86-64.
2178         * elf/elf.h: Add x86-64 relocations.
2180 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
2182         * po/fr.po: Update from translation team.
2184 2001-09-19  Andreas Jaeger  <aj@suse.de>
2186         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
2187         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
2188         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
2189         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
2190         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
2191         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
2192         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
2193         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
2194         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
2195         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
2196         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
2197         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
2198         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
2199         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
2200         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
2201         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
2202         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
2203         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
2204         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
2205         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
2206         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
2207         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
2208         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
2209         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
2210         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
2211         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
2212         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
2213         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
2214         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
2215         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
2216         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
2217         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
2218         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
2219         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
2220         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
2221         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
2222         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
2223         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
2224         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
2225         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
2226         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
2227         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
2228         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
2229         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
2230         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
2231         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
2232         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
2233         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
2234         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
2235         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
2236         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
2237         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
2238         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
2239         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
2240         * sysdeps/unix/x86_64/sysdep.S: New file.
2241         * sysdeps/unix/x86_64/sysdep.h: New file.
2242         * sysdeps/x86_64/Implies: New file.
2243         * sysdeps/x86_64/Makefile: New file.
2244         * sysdeps/x86_64/Versions: New file.
2245         * sysdeps/x86_64/__longjmp.S: New file.
2246         * sysdeps/x86_64/abort-instr.h: New file.
2247         * sysdeps/x86_64/atomicity.h: New file.
2248         * sysdeps/x86_64/bits/endian.h: New file.
2249         * sysdeps/x86_64/bits/setjmp.h: New file.
2250         * sysdeps/x86_64/bits/string.h: New file.
2251         * sysdeps/x86_64/bp-asm.h: New file.
2252         * sysdeps/x86_64/bsd-_setjmp.S: New file.
2253         * sysdeps/x86_64/bsd-setjmp.S: New file.
2254         * sysdeps/x86_64/dl-machine.h: New file.
2255         * sysdeps/x86_64/elf/initfini.c: New file.
2256         * sysdeps/x86_64/elf/start.S: New file.
2257         * sysdeps/x86_64/ffs.c: New file.
2258         * sysdeps/x86_64/ffsll.c: New file.
2259         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
2260         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
2261         * sysdeps/x86_64/fpu/e_acosl.c: New file.
2262         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
2263         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
2264         * sysdeps/x86_64/fpu/e_expl.c: New file.
2265         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
2266         * sysdeps/x86_64/fpu/e_log10l.S: New file.
2267         * sysdeps/x86_64/fpu/e_log2l.S: New file.
2268         * sysdeps/x86_64/fpu/e_logl.S: New file.
2269         * sysdeps/x86_64/fpu/e_powl.S: New file.
2270         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
2271         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
2272         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
2273         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
2274         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
2275         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
2276         * sysdeps/x86_64/fpu/fegetenv.c: New file.
2277         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
2278         * sysdeps/x86_64/fpu/fegetround.c: New file.
2279         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
2280         * sysdeps/x86_64/fpu/fesetenv.c: New file.
2281         * sysdeps/x86_64/fpu/fesetround.c: New file.
2282         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
2283         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
2284         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
2285         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
2286         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
2287         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
2288         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
2289         * sysdeps/x86_64/fpu/s_atanl.c: New file.
2290         * sysdeps/x86_64/fpu/s_cosl.S: New file.
2291         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
2292         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
2293         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
2294         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
2295         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
2296         * sysdeps/x86_64/fpu/s_logbl.c: New file.
2297         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
2298         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
2299         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
2300         * sysdeps/x86_64/fpu/s_rintl.c: New file.
2301         * sysdeps/x86_64/fpu/s_significandl.c: New file.
2302         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
2303         * sysdeps/x86_64/fpu/s_sinl.S: New file.
2304         * sysdeps/x86_64/fpu/s_tanl.S: New file.
2305         * sysdeps/x86_64/gmp-mparam.h: New file.
2306         * sysdeps/x86_64/hp-timing.c: New file.
2307         * sysdeps/x86_64/hp-timing.h: New file.
2308         * sysdeps/x86_64/htonl.S: New file.
2309         * sysdeps/x86_64/memusage.h: New file.
2310         * sysdeps/x86_64/setjmp.S: New file.
2311         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
2312         * sysdeps/x86_64/stackinfo.h: New file.
2313         * sysdeps/x86_64/sysdep.h: New file.
2314         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
2316         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
2317         L Moshier.
2319 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2321         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
2322         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
2324 2001-09-18  Andreas Schwab  <schwab@suse.de>
2326         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
2327         list, now that l_scope is a pointer.
2329         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
2330         scope list.
2332 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2334         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
2335         (elf_machine_rela_relative): Add a missing declaration.
2337 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
2339         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
2340         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
2341         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
2342         ldd-rewrite scripts.
2344 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2346         * elf/ldd.bash.in: Update copyright message.
2348 2001-09-17  H.J. Lu  <hjl@gnu.org>
2350         * hurd/hurdmalloc.c (bcopy): Removed.
2351         (realloc): Replace bcopy with memcpy.
2352         * hurd/path-lookup.c (file_name_path_scan): Likewise.
2353         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
2354         * sunrpc/rpcinfo.c (pmapdump): Likewise.
2356         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
2357         (gethostbyaddr): Likewise.
2358         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
2360 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2362         * sysdeps/gnu/eval.c: Removed.
2364 2001-09-18  Andreas Jaeger  <aj@suse.de>
2366         * sysdeps/i386/fpu/s_logbl.S: Move to ...
2367         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
2369         * sysdeps/i386/fpu/s_rintl.S: Move to ...
2370         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
2372         * sysdeps/i386/fpu/s_significandl.S: Move to ...
2373         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
2375 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
2377         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
2378         nrules value.
2380 2001-09-14  H.J. Lu  <hjl@gnu.org>
2382         * sysdeps/mips/fpu/libm-test-ulps: Updated.
2384 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
2386         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
2387         Patch by Florian La Roche <laroche@redhat.com>.
2389         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
2391         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
2392         ETHER_CRC_LEN.
2394 2001-09-14  Andreas Schwab  <schwab@suse.de>
2396         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
2397         Sumner <bls@sgi.com>.
2398         * posix/execlp.c: Likewise.
2400 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
2402         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
2403         is already found earlier in the search scope.
2405 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
2407         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
2408         filter.
2410 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
2412         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
2414 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
2416         * config.h.in: Enforce optimization to be used.
2417         * Makeconfig (preprocess-versions): Define ASSEMBLER.
2418         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
2419         * posix/Makefile (annexc-CFLAGS): Define to -O.
2420         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
2422 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
2424         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
2425         Patch by Stephan Kulow.
2427 2001-09-08  Ben Collins  <bcollins@debian.org>
2429         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
2430         usage of RESOLVE() (r_type, not reloc->r_type).
2432 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
2434         * elf/dl-object.c: Avoid allocating extra memory block for name.
2435         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
2436         allocated separately.
2437         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2439 2001-09-08  H.J. Lu  <hjl@gnu.org>
2441         * po/zh_TW.po: Fix a typo.
2443 2001-09-07  Tom Rix  <trix@redhat.com>
2445         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
2447 2001-08-26  Tom Rix  <trix@redhat.com>
2449         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
2450         command line options.
2451         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
2452         * sysdeps/unix/sysv/aix/start.c: Removed.
2453         * sysdeps/unix/sysv/aix/start-libc.c: New file.
2454         * sysdeps/unix/sysv/aix/init-first.c: New file.
2455         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
2457 2001-09-08  Ben Collins  <bcollins@debian.org>
2459         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
2460         * sysdeps/generic/dl-machine.h: Likewise.
2461         * sysdeps/hppa/dl-fptr.c: Likewise.
2462         * sysdeps/ia64/dl-fptr.c: Likewise.
2463         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2464         * sysdeps/mips/dl-machine.h: Likewise.
2465         * sysdeps/mips/mips64/dl-machine.h: Likewise.
2466         * sysdeps/powerpc/dl-machine.c: Likewise.
2468 2001-09-07  Ben Collins  <bcollins@debian.org>
2470         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
2472         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
2474 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
2476         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
2477         dependencies if necessary.
2479         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
2480         loaded directly) determine length if l_initfini list by iterating
2481         over its elements.  Minor optimizations.
2482         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
2483         for dependency objects.
2484         If object was already loaded check whether any of the dependencies
2485         is already on the relocation dependency list.  If yes, remove the
2486         latter.  Minor optimizations.
2487         * elf/dl-lookup.c (add_dependency): Add check for self reference of
2488         maps here.  Search l_initfini list only if the object was loaded
2489         directly and not only as a dependency.
2490         (_dl_lookup_symbol): Add relocation dependency also if object
2491         is not in global scope.  Remove test for self-reference here.
2492         (_dl_lookup_versioned_symbol): Likewise.
2493         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
2494         element of first name record.
2495         * elf/loadtest.c: Add some more test to recognize early if an object
2496         wasn't unloaded.
2497         * elf/Makefile: Add rules to build and run reldep5.
2498         * elf/reldep5.c: New file.
2499         * elf/reldepmod5.c: New file.
2500         * elf/reldepmod6.c: New file.
2502         * elf/reldep2.c: Fix typo.
2504 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
2506         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
2507         elements.  Change l_scope to be a pointer only.
2508         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
2509         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
2510         here add searchlist of newly open file to the dependency's scope.
2511         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
2512         only searchlist from its scope.  Free own scope array if necessary.
2513         * elf/Makefile (tests): Add dblload and dblunload now.
2515 2001-09-06  Andreas Jaeger  <aj@suse.de>
2517         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
2518         Stephen L Moshier.
2520 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
2522         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
2523         they both fail.
2524         * elf/dblload.c: New file.
2525         * elf/dblloadmod1.c: New file.
2526         * elf/dblloadmod2.c: New file.
2527         * elf/dblloadmod3.c: New file.
2528         * elf/dblunload.c: New file.
2530 2001-09-04  Richard Henderson  <rth@redhat.com>
2532         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
2533         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
2535 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
2537         Correct very misleading message for error in failed runtime relocation.
2538         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
2539         place of the error.
2540         (_dl_signal_cerror): Likewise.
2541         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
2542         * elf/dl-close.c: Likewise.
2543         * elf/dl-deps.c: Likewise.
2544         * elf/dl-load.c: Likewise.
2545         * elf/dl-lookup.c: Likewise.
2546         * elf/dl-open.c: Likewise.
2547         * elf/dl-reloc.c: Likewise.
2548         * elf/dl-sym.c: Likewise.
2549         * elf/dl-version.c: Likewise.
2550         * sysdeps/generic/dl-sysdep.c: Likewise.
2552 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
2554         * iconv/strtab.c (strtabinit): Initialize null Strent.
2555         (newstring): Move len == 0 handling...
2556         (strtabadd): ...here.
2557         If len == 1, return null Strent.
2558         When inserting a suffix of an existing string, check if
2559         it is not equal to some suffix already recorded.
2560         Copy left and right members over if adding longer string.
2562 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
2564         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
2566         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
2567         (__syscall_gethostname): Add prototype.
2569 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
2571         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
2573 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
2575         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
2577 2001-08-27  Roland McGrath  <roland@frob.com>
2579         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
2580         short, copy that much into NAME anyway before returning error.
2582 2001-09-01  Richard Henderson  <rth@redhat.com>
2584         * sysdeps/alpha/elf/Dist: Remove file.
2585         * sysdeps/alpha/elf/Makefile: Remove file.
2586         * sysdeps/alpha/elf/crtbegin.S: Remove file.
2587         * sysdeps/alpha/elf/crtend.S: Remove file.
2588         * sysdeps/alpha/elf/initfini.c: New file.
2590 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
2592         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
2593         * iconv/tst-iconv3.c: Likewise.
2595 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
2597         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
2599 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
2601         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
2602         export it.
2603         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
2604         * iconv/iconv_prog.c (insert_cache): New function.
2605         (print_known_names): If cache is used call insert_cache to use the
2606         information from the cache [PR libc/2509].
2608 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
2610         * time/strptime.c (strptime_internal): Recognize 'l' format and
2611         handle it like 'I' for symmetry with strftime.
2613 2001-08-31  Richard Henderson  <rth@redhat.com>
2615         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
2616         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
2617         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
2618         (print_statistics): Make scalar unsigned long long.
2619         * sysdeps/alpha/hp-timing.h: New file.
2621 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
2623         * stdio-common/perror.c (perror): Save errno early, pass it
2624         down to perror_internal.
2625         (perror_internal): Add errnum argument.
2627 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
2629         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
2630         Don't add old memory content for R_ALPHA_REFQUAD.
2632 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
2634         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
2635         memory correctly.
2637         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
2638         instead of open, __close instead of close, __getpagesize instead
2639         of getpagesize.
2641         * string/argz-stringify.c (__argz_stringify): Use __strnlen
2642         instead of strnlen.
2643         * include/string.h (strndupa): Redefine here to use __strnlen
2644         instead of strnlen.
2645         * string/strndup.c (__strndup): Use __strnlen not strnlen.
2647         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
2648         connected).
2650 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
2652         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
2653         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
2654         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
2655         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
2656         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
2657         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
2658         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
2660 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
2662         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
2664 2001-08-30  Andreas Jaeger  <aj@suse.de>
2666         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
2667         contributed Stephen L Moshier.
2669 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
2671         * sunrpc/etc.rpc (sgi_fam): Add.
2673 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
2675         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
2677 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
2679         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
2680         first is from a previous call.
2681         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
2683 2001-08-29  Andreas Schwab  <schwab@suse.de>
2685         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
2687 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2689         * config.make.in (INSTALL_SCRIPT): Define.
2690         * Makeconfig (INSTALL_SCRIPT): Define.
2691         * Makerules (do-install-script): New macro to install scripts using
2692         INSTALL_SCRIPT.
2693         (install-bin-script): New rule to install scripts with
2694         do-install-script.
2695         (install-bin-script-nosubdir): New rule.
2696         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
2697         (distinfo-vars): Add $(install-bin-script).
2698         * Rules (others): Likewise.
2699         * Makefile (glibcbug): Install with install-bin-script.
2700         * debug/Makefile (xtrace): Likewise.
2701         (catchsegv): Likewise.
2702         * elf/Makefile (ldd): Likewise.
2703         * malloc/Makefile (mtrace): Likewise.
2704         * timezone/Makefile (tzselect): Likewise.
2706 2001-08-29  H.J. Lu  <hjl@gnu.org>
2708         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
2709         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
2710         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
2712 2001-08-29  Andreas Schwab  <schwab@suse.de>
2714         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
2716 2001-08-28  H.J. Lu  <hjl@gnu.org>
2718         * Makeconfig (combreloc-LDFLAGS): New variable.
2719         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
2720         * config.make.in (have-z-combreloc): New variable.
2721         * configure.in: Substitute libc_cv_z_combreloc.
2723 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
2725         * po/sv.po: Update from translation team.
2726         * po/fr.po: Likewise.
2727         * po/da.po: Likewise.
2729 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2731         * Makerules: Fix a typo: MD% -> MD5.
2733 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
2735         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
2736         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
2738 2001-08-28  Andreas Jaeger  <aj@suse.de>
2740         * manual/libc-texinfo.sh: Add entry about free manuals.
2742         * manual/contrib.texi (Contributors): Fix cross reference.
2744         * manual/libc.texinfo (Copying): Include freemanuals.
2746         * manual/Makefile (appendices): Add freemanuals.
2748         * manual/freemanuals.texi: New file.
2749         Patch by Brian Youmans <3diff@gnu.org>.
2751         * manual/libm-err-tab.pl: Pretty print more platforms, print a
2752         smaller table.
2754         * manual/math.texi (Errors in Math Functions): Fix grammar, start
2755         table on separate page.
2756         Patch by Brian Youmans <3diff@gnu.org>.
2758 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
2760         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
2761         the connection went down after we first used it try to connect
2762         again and resend the message before printing to the console.
2763         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
2765 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
2767         * string/tst-strlen.c (main): Test strnlen (, -1) too.
2768         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
2769         bit set.
2771 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
2773         * iconv/strtab.c (searchstring): Use correct length for comparison.
2774         (strtabadd): Account total size correct if new string has old string as
2775         substring.
2777 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
2779         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
2781 2001-08-27  Andreas Jaeger  <aj@suse.de>
2783         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
2785         * math/libm-test.inc (j0_test): Add extra tests.
2786         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
2787         not x, in Hankel approximation.
2788         Patches by Stephen L Moshier.
2790 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
2792         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
2793         link_map.
2795         * configure.in: Fix test for .rela.dyn section.
2797         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
2799 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
2801         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
2802         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
2803         Pass type_class to _dl_lookup_*.
2804         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
2805         Pass around just type_class instead of noexec, noplt pair.
2806         (_dl_lookup_versioned_symbol): Likewise.
2807         (_dl_lookup_symbol_skip): Pass around just type_class instead of
2808         noexec, noplt pair.
2809         (_dl_lookup_versioned_symbol_skip): Likewise.
2810         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
2811         * elf/do-lookup.h (do_lookup): Likewise.
2812         * include/link.h (struct link_map): Replace noexec and noplt fields
2813         in l_lookup_cache with type_class field.
2814         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
2815         ELF_RTYPE_CLASS_COPY): Define.
2816         Adjust prototypes for _dl_lookup_symbol and
2817         _dl_lookup_versioned_symbol.
2818         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
2819         elf_machine_lookup_noexec_p): Remove.
2820         (elf_machine_type_class): Define.
2821         * sysdeps/arm/dl-machine.h: Likewise.
2822         * sysdeps/hppa/dl-machine.h: Likewise.
2823         * sysdeps/cris/dl-machine.h: Likewise.
2824         * sysdeps/i386/dl-machine.h: Likewise.
2825         * sysdeps/ia64/dl-machine.h: Likewise.
2826         * sysdeps/m68k/dl-machine.h: Likewise.
2827         * sysdeps/mips/mips64/dl-machine.h: Likewise.
2828         * sysdeps/mips/dl-machine.h: Likewise.
2829         * sysdeps/powerpc/dl-machine.h: Likewise.
2830         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2831         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2832         * sysdeps/sh/dl-machine.h: Likewise.
2833         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2834         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2836 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
2838         * manual/message.texi (Advanced gettext functions): Change
2839         description of plural forms for Slovak.
2840         Reported by Marcel Telka <marcel@telka.sk>.
2842         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
2843         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
2845 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
2847         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
2848         typo.  Patch by Florian La Roche <laroche@redhat.com>.
2850 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
2852         * include/link.h (struct link_map): Add l_lookup_cache element.
2853         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
2854         (RESOLVE_MAP): Likewise.
2855         (_dl_relocate_object): Remove cache initialization.
2856         * elf/dl-lookup.c: Rip out cache handling code.
2857         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
2858         declarations.
2860         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
2861         remove some __builtin_expect.
2862         (_dl_lookup_versioned_symbol): Likewise.
2864         * config.h.in: Add HAVE_Z_COMBRELOC.
2865         * configure.in: Add test for -z combreloc.
2867         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
2868         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
2869         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
2870         case to almost no code.
2872 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
2874         * po/tr.po: Update from translation team.
2876 2001-08-24  Andreas Jaeger  <aj@suse.de>
2878         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
2879         make clean works.
2881 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2883         * elf/rtld.c (print_statistics): Printf % after percent values.
2884         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
2886         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
2887         don't have to compute the hash value and initialize current_value.
2888         Move reference_name variable to where it is needed.
2889         (_dl_lookup_versioned_symbol): Likewise.
2891 2001-08-24  Roland McGrath  <roland@frob.com>
2893         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
2894         Just test that strerror returns non-null for a few errno codes.
2896 2001-08-23  Roland McGrath  <roland@frob.com>
2898         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
2899         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
2901         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
2903         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
2904         __mach_reply_port.
2906 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2908         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
2909         returns NULL.
2911         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
2912         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
2913         doesn't do it.
2914         * elf/rtld.c: Include <sys/param.h>.
2915         * elf/dl-reloc.c: Likewise.
2917 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2919         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
2920         empty to prevent junk from being generated.
2921         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
2923 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
2925         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
2926         records.  Rename endrel to relative, initialize it to r, and use it
2927         in elf_machine_rel_relative calls.  Point r after relative relocs.
2929 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2931         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
2932         of R_386_NONE.
2934 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
2936         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
2937         necessary.  Undefine newly defined macros at the end.
2938         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
2939         Rename from elf_machine_rel_relative.
2940         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
2941         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
2942         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
2943         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
2944         Likewise.
2945         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
2946         Likewise.
2947         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
2948         Fix argument types.
2949         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
2950         Fix argument types.
2951         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
2952         Likewise.  Fix argument types.
2953         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
2954         Likewise.  Fix argument types.
2955         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
2956         Fix argument types.
2957         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
2958         ElfW(Rel) in argument.
2959         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
2960         function.
2962 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
2964         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
2966 2001-08-24  Andreas Jaeger  <aj@suse.de>
2968         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
2969         Stephen L Moshier <moshier@mediaone.net>.
2971 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2973         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
2974         first if RELCOUNT is set.
2976         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
2977         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
2978         elf_machine_rel_relative.
2979         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
2980         Minor optimizations.
2981         * sysdeps/arm/dl-machine.h: Likewise.
2982         * sysdeps/cris/dl-machine.h: Likewise.
2983         * sysdeps/hppa/dl-machine.h: Likewise.
2984         * sysdeps/i386/dl-machine.h: Likewise.
2985         * sysdeps/ia64/dl-machine.h: Likewise.
2986         * sysdeps/m68k/dl-machine.h: Likewise.
2987         * sysdeps/mips/dl-machine.h: Likewise.
2988         * sysdeps/powerpc/dl-machine.h: Likewise.
2989         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2990         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2991         * sysdeps/sh/dl-machine.h: Likewise.
2992         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2993         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2995 2001-08-23  Roland McGrath  <roland@frob.com>
2997         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
2999         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
3000         sysdeps/mach version.  Implement counting ("recursive") mutexes
3001         on top of cthreads mutexes.
3002         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
3004         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
3005         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
3006         (__libc_cleanup_region_start, __libc_cleanup_region_end,
3007         __libc_clean_end): Define these to call the cleanup function after
3008         normal exit when they're supposed to.
3010         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
3011         Take new first arg DOIT, a boolean saying whether to really install
3012         any cleanup handler.
3013         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
3014         (__libc_cleanup_end): Likewise.
3015         * sysdeps/generic/bits/libc-lock.h: Same changes.
3016         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
3017         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
3018         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
3019         Likewise.
3020         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
3021         * sysdeps/generic/bits/stdio-lock.h
3022         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
3024 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3026         * elf/ldconfig.c (search_dir): Remove stale symlinks.
3028 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3030         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
3031         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
3032         lookups in cache.
3033         (_dl_lookup_versioned_symbol): Likewise.
3034         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
3035         relocation lookup.
3036         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
3037         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
3038         (lookup_cache, lookup_cache_versioned): Add declarations.
3040 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
3042         * stdlib/tst-random.c (main): Swap parameters in fail call.
3043         Patch by Pete Bevin <pete@petebevin.com>.
3045 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3047         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
3049 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
3051         * malloc/obstack.c: Indent preprocessor directives.
3052         Patch by Jim Meyering <meyering@ascend.com>.
3054         * po/ja.po: Update from translation team.
3056 2001-08-23  Roland McGrath  <roland@frob.com>
3058         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
3060         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
3061         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
3063 2001-08-22  Roland McGrath  <roland@frob.com>
3065         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
3066         __libc_lock_define_recursive.
3067         * elf/dl-open.c: Don't declare it here any more.
3068         * elf/dl-close.c: Likewise.
3069         * elf/dl-lookup.c: Likewise.
3070         * elf/dl-iteratephdr.c: Likewise.
3071         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
3072         __libc_lock_unlock_recursive.
3073         * elf/dl-close.c (_dl_close): Likewise
3074         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
3075         * elf/dl-open.c (_dl_open): Likewise
3077         * sysdeps/generic/bits/libc-lock.h
3078         (__libc_lock_define_recursive): New macro.
3079         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
3080         (_IO_lock_lock): Use __libc_lock_lock_recursive.
3081         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
3083         * conform/conformtest.pl (checknamespace): Sort the output list.
3085         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
3086         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
3087         definitions conditional on [__USE_XOPEN].
3089         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
3090         these unconditionally, not only use [__USE_BSD], so as to match
3091         the sysdeps/unix/sysv/linux files.
3093 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3095         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
3096         avoid warnings.
3098         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
3099         DL_LOOKUP_ADDRESS.
3101 2001-08-22  Roland McGrath  <roland@frob.com>
3103         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
3104         conditionalization of sa_handler/sa_sigaction member types to
3105         match the sysdeps/unix/sysv/linux file.
3107 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3109         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
3110         symbol sizes a bit better.
3112         * sysdeps/ia64/strncpy.S: Complete rewrite.
3113         Contributed by Jakub Jelinek <jakub@redhat.com>.
3115         * string/stratcliff.c (main): Add strncpy test.
3117 2001-08-22  Roland McGrath  <roland@frob.com>
3119         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
3120         and don't declare unsetenv or _environ directly.
3121         (unsetenv): Return int, not void.  Use __environ instead of _environ.
3123 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
3125         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
3126         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
3127         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
3128         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
3129         test for cmsg struct size.
3131 2001-04-23  Paul Eggert  <eggert@twinsun.com>
3133         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
3134         Rename __argc to ___argc in prototypes to avoid compatibility
3135         problems with systems that reserve the identifier "__argc".
3136         Similarly for __argv.
3138 2001-08-21  Roland McGrath  <roland@frob.com>
3140         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
3142         * mach/Makefile (tests): Removed.
3143         * mach/hello.c: File removed.
3145 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3147         * po/sv.po: Update from translation team.
3149         * stdio-common/vfscanf.c: Fix handling of %l[].
3150         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
3152         * libio/Makefile (tests): Add tst-sscanf.
3153         * libio/tst-sscanf.c: New file.
3155         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
3156         * malloc/mtrace.c (tr_where): dli_sname always points to a
3157         non-empty string if != NULL.
3158         Reported by Tim Janik <timj@gtk.org>.
3160 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
3162         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
3163         buf.  Free resources on failure.
3164         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
3165         (makefd_xprt): Likewise.
3166         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
3167         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
3168         * sunrpc/auth_unix.c (authunix_create): Likewise.
3170 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
3172         * string/strnlen.c: Remove.
3173         * sysdeps/generic/strnlen.c: New file.
3174         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
3176 2001-08-21  Roland McGrath  <roland@frob.com>
3178         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
3179         as a macro, not an extern inline function.
3181         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
3182         * Versions.def (libc): Add GLIBC_2.2.5 set.
3183         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
3184         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
3186 2001-08-20  Roland McGrath  <roland@frob.com>
3188         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
3189         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
3191 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
3193         * string/bits/string2.h: Remove strnlen optimization here.
3194         * sysdeps/i386/i486/bits/string.h: Add it here.
3196 2001-08-21  Wolfram Gloger  <wg@malloc.de>
3198         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
3200 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
3202         * po/gl.po: Update from translation team.
3204 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3206         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
3207         * misc/err.c (convert_and_print): Likewise.
3209         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
3210         function calls.
3212 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3214         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
3215         change of the gregset_t type.
3216         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3218 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
3220         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
3222 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3224         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
3226         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
3228 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
3230         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
3231         before calling the cthreads initialization code.
3233 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3235         * argp/argp-help.c: Fix two problems introduced in last change.
3237         * include/dirent.h: Include <dirstream.h> first.
3239 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
3241         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
3243         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
3244         * sunrpc/xdr_rec.c: Likewise.
3245         * sunrpc/xdr_mem.c: Likewise.
3246         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
3247         * sunrpc/rpc_cmsg.c: Likewise.
3248         * sunrpc/getrpcport.c (getrpcport): Likewise.
3249         * sunrpc/clnt_simp.c (callrpc): Likewise.
3250         * sunrpc/clnt_gen.c (clnt_create): Likewise.
3251         * string/envz.c: Likewise.
3253         * po/ko.po: Update from translation team.
3255         * argp/argp-help.c: Handle wide oriented stderr stream.
3257 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
3259         * sysdeps/generic/strtol.c: Little optimizations.  Add some
3260         __builtin_expect.
3262         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
3264         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
3265         * wcsmbs/wcwidth.c (wcwdith): Likewise.
3266         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
3268         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
3270         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
3272         * time/time.h (struct timespec): Use __time_t for tv_sec element.
3274         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
3275         wchar_t for function declarations and defintions.
3277         * misc/sys/select.h: Define __need_time_t before including <time.h>.
3278         Define suseconds_t if it hasn't happened yet.
3280         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
3282         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
3284         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
3285         <stddef.h>.
3287         * conform/data/stddef.h-data: Remove wint_t.
3289         * conform/conformtest.pl: Change namespace test to take #undef
3290         lines into account.
3292         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
3294         * conform/data/sys/socket.h-data: Add sockatmark.
3296 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3298         * io/fts.c: Update from recent BSD source.
3300 2001-08-17  Roland McGrath  <roland@frob.com>
3302         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
3303         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
3304         Likewise.
3306 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3308         * locale/duplocale.c (__duplocale): Also initialize the special
3309         __ctype_* elements.
3311         * conform/data/netdb.h-data: Adjust gai_strerror return type.
3313 2001-08-17  Andreas Jaeger  <aj@suse.de>
3315         * misc/getpass.c: Include wchar.h for prototypes.
3316         * malloc/obstack.c: Likewise.
3318 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3320         * sunrpc/svc_simple.c (universal): Use __write instead of write.
3322         * wcsmbs/wcscoll.c: Also define __wcscoll.
3323         * include/wchar.h: Declare __wcscoll.
3325         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
3326         * libio/vwprintf.c: Likewise.
3327         * libio/wprintf.c: Likewise.
3329         * iconv/gconv_cache.c: Use __munmap instead of munmap.
3331 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
3333         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
3334         instead of mbrtowc.
3335         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
3336         wcslen, and __wcscoll instead of wcscoll.
3338         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
3340         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
3341         __getuid instead of getuid.
3343         * stdio-common/perror.c (perror): Use __close instead of close.
3344         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
3345         * libio/freopen.c (freopen): Likewise.
3346         * libio/freopen64.c (freopen64): Likewise.
3348         * libio/tst-ungetwc2.c (main): Define str const.
3350         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
3351         * libio/fwprintf.c: Also define __fwprintf.
3352         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
3353         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
3354         * assert/assert-perr.c: Likewise.
3355         * assert/assert.c: Likewise.
3356         * gmon/gmon.c: Likewise.
3357         * inet/rcmd.c: Likewise.
3358         * malloc/obstack.c: Likewise.
3359         * misc/err.c: Likewise.
3360         * misc/error.c: Likewise.
3361         * misc/getpass.c: Likewise.
3362         * posix/getopt.c: Likewise.
3363         * resolv/res_hconf.c: Likewise.
3364         * stdio-common/perror.c: Likewise.
3365         * stdio-common/psignal.c: Likewise.
3366         * stdlib/fmtmsg.c: Likewise.
3367         * sunrpc/auth_unix.c: Likewise.
3368         * sunrpc/clnt_perr.c: Likewise.
3369         * sunrpc/clnt_tcp.c: Likewise.
3370         * sunrpc/clnt_udp.c: Likewise.
3371         * sunrpc/clnt_unix.c: Likewise.
3372         * sunrpc/svc_simple.c: Likewise.
3373         * sunrpc/svc_tcp.c: Likewise.
3374         * sunrpc/svc_udp.c: Likewise.
3375         * sunrpc/svc_unix.c: Likewise.
3376         * sunrpc/xdr.c: Likewise.
3377         * sunrpc/xdr_array.c: Likewise.
3378         * sunrpc/xdr_rec.c: Likewise.
3379         * sunrpc/xdr_ref.c: Likewise.
3380         * sysdeps/generic/wordexp.c: Likewise.
3382         * po/it.po: Update from translation team.
3384         * misc/err.c: Handle wide oriented stderr stream.
3386 2001-08-14  Tom Rix  <trix@redhat.com>
3388         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
3389         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
3391 2001-08-13  Tom Rix  <trix@redhat.com>
3393         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
3394         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
3395         and __intptr_t.
3397 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3399         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
3400         Store the access registers to the ucontext structure.
3401         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
3402         Likewise.
3404         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
3405         Load the access registers from the ucontext structure.
3406         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
3407         Likewise.
3409         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
3410         offsets to the new ucontext layout.
3411         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
3413         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
3414         of the ucontext structure.
3415         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3417 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
3419         * misc/error.c (error): Handle wide oriented stderr stream correctly.
3420         (error_at_line): Likewise.
3422         * stdio-common/perror.c (perror): Implement according to standard.
3423         The stream orientation must not be changed if the stream was not
3424         oriented before the call.
3425         * stdio-common/Makefile (tests): Add tst-perror.
3426         * stdio-common/tst-perror.c: New file.
3429 See ChangeLog.12 for earlier changes.