Update.
[glibc.git] / ChangeLog
blob4711e15b75edf368b8edd71e176bb15010164b7f
1 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
3         * po/fr.po: Update from translation team.
5 2001-09-19  Andreas Jaeger  <aj@suse.de>
7         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
8         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
9         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
10         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
11         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
12         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
13         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
14         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
15         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
16         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
17         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
18         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
19         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
20         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
21         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
22         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
23         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
24         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
25         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
26         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
27         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
28         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
29         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
30         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
31         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
32         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
33         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
34         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
35         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
36         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
37         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
38         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
39         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
40         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
41         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
42         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
43         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
44         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
45         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
46         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
47         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
48         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
49         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
50         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
51         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
52         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
53         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
54         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
55         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
56         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
57         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
58         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
59         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
60         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
61         * sysdeps/unix/x86_64/sysdep.S: New file.
62         * sysdeps/unix/x86_64/sysdep.h: New file.
63         * sysdeps/x86_64/Implies: New file.
64         * sysdeps/x86_64/Makefile: New file.
65         * sysdeps/x86_64/Versions: New file.
66         * sysdeps/x86_64/__longjmp.S: New file.
67         * sysdeps/x86_64/abort-instr.h: New file.
68         * sysdeps/x86_64/atomicity.h: New file.
69         * sysdeps/x86_64/bits/endian.h: New file.
70         * sysdeps/x86_64/bits/setjmp.h: New file.
71         * sysdeps/x86_64/bits/string.h: New file.
72         * sysdeps/x86_64/bp-asm.h: New file.
73         * sysdeps/x86_64/bsd-_setjmp.S: New file.
74         * sysdeps/x86_64/bsd-setjmp.S: New file.
75         * sysdeps/x86_64/dl-machine.h: New file.
76         * sysdeps/x86_64/elf/initfini.c: New file.
77         * sysdeps/x86_64/elf/start.S: New file.
78         * sysdeps/x86_64/ffs.c: New file.
79         * sysdeps/x86_64/ffsll.c: New file.
80         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
81         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
82         * sysdeps/x86_64/fpu/e_acosl.c: New file.
83         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
84         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
85         * sysdeps/x86_64/fpu/e_expl.c: New file.
86         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
87         * sysdeps/x86_64/fpu/e_log10l.S: New file.
88         * sysdeps/x86_64/fpu/e_log2l.S: New file.
89         * sysdeps/x86_64/fpu/e_logl.S: New file.
90         * sysdeps/x86_64/fpu/e_powl.S: New file.
91         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
92         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
93         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
94         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
95         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
96         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
97         * sysdeps/x86_64/fpu/fegetenv.c: New file.
98         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
99         * sysdeps/x86_64/fpu/fegetround.c: New file.
100         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
101         * sysdeps/x86_64/fpu/fesetenv.c: New file.
102         * sysdeps/x86_64/fpu/fesetround.c: New file.
103         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
104         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
105         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
106         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
107         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
108         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
109         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
110         * sysdeps/x86_64/fpu/s_atanl.c: New file.
111         * sysdeps/x86_64/fpu/s_cosl.S: New file.
112         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
113         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
114         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
115         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
116         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
117         * sysdeps/x86_64/fpu/s_logbl.c: New file.
118         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
119         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
120         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
121         * sysdeps/x86_64/fpu/s_rintl.c: New file.
122         * sysdeps/x86_64/fpu/s_significandl.c: New file.
123         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
124         * sysdeps/x86_64/fpu/s_sinl.S: New file.
125         * sysdeps/x86_64/fpu/s_tanl.S: New file.
126         * sysdeps/x86_64/gmp-mparam.h: New file.
127         * sysdeps/x86_64/hp-timing.c: New file.
128         * sysdeps/x86_64/hp-timing.h: New file.
129         * sysdeps/x86_64/htonl.S: New file.
130         * sysdeps/x86_64/memusage.h: New file.
131         * sysdeps/x86_64/setjmp.S: New file.
132         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
133         * sysdeps/x86_64/stackinfo.h: New file.
134         * sysdeps/x86_64/sysdep.h: New file.
135         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
137         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
138         L Moshier.
140 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
142         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
143         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
145 2001-09-18  Andreas Schwab  <schwab@suse.de>
147         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
148         list, now that l_scope is a pointer.
150         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
151         scope list.
153 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
155         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
156         (elf_machine_rela_relative): Add a missing declaration.
158 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
160         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New.
161         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New.
162         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
163         ldd-rewrite scripts.
165 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
167         * elf/ldd.bash.in: Update copyright message.
169 2001-09-17  H.J. Lu  <hjl@gnu.org>
171         * hurd/hurdmalloc.c (bcopy): Removed.
172         (realloc): Replace bcopy with memcpy.
173         * hurd/path-lookup.c (file_name_path_scan): Likewise.
174         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
175         * sunrpc/rpcinfo.c (pmapdump): Likewise.
177         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
178         (gethostbyaddr): Likewise.
179         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
181 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
183         * sysdeps/gnu/eval.c: Removed.
185 2001-09-18  Andreas Jaeger  <aj@suse.de>
187         * sysdeps/i386/fpu/s_logbl.S: Move to ...
188         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
190         * sysdeps/i386/fpu/s_rintl.S: Move to ...
191         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
193         * sysdeps/i386/fpu/s_significandl.S: Move to ...
194         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
196 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
198         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
199         nrules value.
201 2001-09-14  H.J. Lu  <hjl@gnu.org>
203         * sysdeps/mips/fpu/libm-test-ulps: Updated.
205 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
207         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
208         Patch by Florian La Roche <laroche@redhat.com>.
210         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
212         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
213         ETHER_CRC_LEN.
215 2001-09-14  Andreas Schwab  <schwab@suse.de>
217         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
218         Sumner <bls@sgi.com>.
219         * posix/execlp.c: Likewise.
221 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
223         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
224         is already found earlier in the search scope.
226 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
228         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
229         filter.
231 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
233         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
235 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
237         * config.h.in: Enforce optimization to be used.
238         * Makeconfig (preprocess-versions): Define ASSEMBLER.
239         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
240         * posix/Makefile (annexc-CFLAGS): Define to -O.
241         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
243 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
245         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
246         Patch by Stephan Kulow.
248 2001-09-08  Ben Collins  <bcollins@debian.org>
250         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
251         usage of RESOLVE() (r_type, not reloc->r_type).
253 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
255         * elf/dl-object.c: Avoid allocating extra memory block for name.
256         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
257         allocated separately.
258         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
260 2001-09-08  H.J. Lu  <hjl@gnu.org>
262         * po/zh_TW.po: Fix a typo.
264 2001-09-07  Tom Rix  <trix@redhat.com>
266         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
268 2001-08-26  Tom Rix  <trix@redhat.com>
270         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
271         command line options.
272         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
273         * sysdeps/unix/sysv/aix/start.c: Removed.
274         * sysdeps/unix/sysv/aix/start-libc.c: New file.
275         * sysdeps/unix/sysv/aix/init-first.c: New file.
276         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
278 2001-09-08  Ben Collins  <bcollins@debian.org>
280         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
281         * sysdeps/generic/dl-machine.h: Likewise.
282         * sysdeps/hppa/dl-fptr.c: Likewise.
283         * sysdeps/ia64/dl-fptr.c: Likewise.
284         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
285         * sysdeps/mips/dl-machine.h: Likewise.
286         * sysdeps/mips/mips64/dl-machine.h: Likewise.
287         * sysdeps/powerpc/dl-machine.c: Likewise.
289 2001-09-07  Ben Collins  <bcollins@debian.org>
291         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
293         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
295 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
297         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
298         dependencies if necessary.
300         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
301         loaded directly) determine length if l_initfini list by iterating
302         over its elements.  Minor optimizations.
303         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
304         for dependency objects.
305         If object was already loaded check whether any of the dependencies
306         is already on the relocation dependency list.  If yes, remove the
307         latter.  Minor optimizations.
308         * elf/dl-lookup.c (add_dependency): Add check for self reference of
309         maps here.  Search l_initfini list only if the object was loaded
310         directly and not only as a dependency.
311         (_dl_lookup_symbol): Add relocation dependency also if object
312         is not in global scope.  Remove test for self-reference here.
313         (_dl_lookup_versioned_symbol): Likewise.
314         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
315         element of first name record.
316         * elf/loadtest.c: Add some more test to recognize early if an object
317         wasn't unloaded.
318         * elf/Makefile: Add rules to build and run reldep5.
319         * elf/reldep5.c: New file.
320         * elf/reldepmod5.c: New file.
321         * elf/reldepmod6.c: New file.
323         * elf/reldep2.c: Fix typo.
325 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
327         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
328         elements.  Change l_scope to be a pointer only.
329         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
330         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
331         here add searchlist of newly open file to the dependency's scope.
332         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
333         only searchlist from its scope.  Free own scope array if necessary.
334         * elf/Makefile (tests): Add dblload and dblunload now.
336 2001-09-06  Andreas Jaeger  <aj@suse.de>
338         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
339         Stephen L Moshier.
341 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
343         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
344         they both fail.
345         * elf/dblload.c: New file.
346         * elf/dblloadmod1.c: New file.
347         * elf/dblloadmod2.c: New file.
348         * elf/dblloadmod3.c: New file.
349         * elf/dblunload.c: New file.
351 2001-09-04  Richard Henderson  <rth@redhat.com>
353         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
354         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
356 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
358         Correct very misleading message for error in failed runtime relocation.
359         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
360         place of the error.
361         (_dl_signal_cerror): Likewise.
362         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
363         * elf/dl-close.c: Likewise.
364         * elf/dl-deps.c: Likewise.
365         * elf/dl-load.c: Likewise.
366         * elf/dl-lookup.c: Likewise.
367         * elf/dl-open.c: Likewise.
368         * elf/dl-reloc.c: Likewise.
369         * elf/dl-sym.c: Likewise.
370         * elf/dl-version.c: Likewise.
371         * sysdeps/generic/dl-sysdep.c: Likewise.
373 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
375         * iconv/strtab.c (strtabinit): Initialize null Strent.
376         (newstring): Move len == 0 handling...
377         (strtabadd): ...here.
378         If len == 1, return null Strent.
379         When inserting a suffix of an existing string, check if
380         it is not equal to some suffix already recorded.
381         Copy left and right members over if adding longer string.
383 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
385         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
387         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
388         (__syscall_gethostname): Add prototype.
390 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
392         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
394 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
396         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
398 2001-08-27  Roland McGrath  <roland@frob.com>
400         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
401         short, copy that much into NAME anyway before returning error.
403 2001-09-01  Richard Henderson  <rth@redhat.com>
405         * sysdeps/alpha/elf/Dist: Remove file.
406         * sysdeps/alpha/elf/Makefile: Remove file.
407         * sysdeps/alpha/elf/crtbegin.S: Remove file.
408         * sysdeps/alpha/elf/crtend.S: Remove file.
409         * sysdeps/alpha/elf/initfini.c: New file.
411 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
413         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
414         * iconv/tst-iconv3.c: Likewise.
416 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
418         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
420 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
422         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
423         export it.
424         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
425         * iconv/iconv_prog.c (insert_cache): New function.
426         (print_known_names): If cache is used call insert_cache to use the
427         information from the cache [PR libc/2509].
429 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
431         * time/strptime.c (strptime_internal): Recognize 'l' format and
432         handle it like 'I' for symmetry with strftime.
434 2001-08-31  Richard Henderson  <rth@redhat.com>
436         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
437         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
438         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
439         (print_statistics): Make scalar unsigned long long.
440         * sysdeps/alpha/hp-timing.h: New file.
442 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
444         * stdio-common/perror.c (perror): Save errno early, pass it
445         down to perror_internal.
446         (perror_internal): Add errnum argument.
448 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
450         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
451         Don't add old memory content for R_ALPHA_REFQUAD.
453 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
455         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
456         memory correctly.
458         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
459         instead of open, __close instead of close, __getpagesize instead
460         of getpagesize.
462         * string/argz-stringify.c (__argz_stringify): Use __strnlen
463         instead of strnlen.
464         * include/string.h (strndupa): Redefine here to use __strnlen
465         instead of strnlen.
466         * string/strndup.c (__strndup): Use __strnlen not strnlen.
468         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
469         connected).
471 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
473         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
474         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
475         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
476         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
477         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
478         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
479         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
481 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
483         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
485 2001-08-30  Andreas Jaeger  <aj@suse.de>
487         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
488         contributed Stephen L Moshier.
490 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
492         * sunrpc/etc.rpc (sgi_fam): Add.
494 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
496         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
498 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
500         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
501         first is from a previous call.
502         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
504 2001-08-29  Andreas Schwab  <schwab@suse.de>
506         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
508 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
510         * config.make.in (INSTALL_SCRIPT): Define.
511         * Makeconfig (INSTALL_SCRIPT): Define.
512         * Makerules (do-install-script): New macro to install scripts using
513         INSTALL_SCRIPT.
514         (install-bin-script): New rule to install scripts with
515         do-install-script.
516         (install-bin-script-nosubdir): New rule.
517         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
518         (distinfo-vars): Add $(install-bin-script).
519         * Rules (others): Likewise.
520         * Makefile (glibcbug): Install with install-bin-script.
521         * debug/Makefile (xtrace): Likewise.
522         (catchsegv): Likewise.
523         * elf/Makefile (ldd): Likewise.
524         * malloc/Makefile (mtrace): Likewise.
525         * timezone/Makefile (tzselect): Likewise.
527 2001-08-29  H.J. Lu  <hjl@gnu.org>
529         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
530         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
531         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
533 2001-08-29  Andreas Schwab  <schwab@suse.de>
535         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
537 2001-08-28  H.J. Lu  <hjl@gnu.org>
539         * Makeconfig (combreloc-LDFLAGS): New variable.
540         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
541         * config.make.in (have-z-combreloc): New variable.
542         * configure.in: Substitute libc_cv_z_combreloc.
544 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
546         * po/sv.po: Update from translation team.
547         * po/fr.po: Likewise.
548         * po/da.po: Likewise.
550 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
552         * Makerules: Fix a typo: MD% -> MD5.
554 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
556         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
557         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
559 2001-08-28  Andreas Jaeger  <aj@suse.de>
561         * manual/libc-texinfo.sh: Add entry about free manuals.
563         * manual/contrib.texi (Contributors): Fix cross reference.
565         * manual/libc.texinfo (Copying): Include freemanuals.
567         * manual/Makefile (appendices): Add freemanuals.
569         * manual/freemanuals.texi: New file.
570         Patch by Brian Youmans <3diff@gnu.org>.
572         * manual/libm-err-tab.pl: Pretty print more platforms, print a
573         smaller table.
575         * manual/math.texi (Errors in Math Functions): Fix grammar, start
576         table on separate page.
577         Patch by Brian Youmans <3diff@gnu.org>.
579 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
581         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
582         the connection went down after we first used it try to connect
583         again and resend the message before printing to the console.
584         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
586 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
588         * string/tst-strlen.c (main): Test strnlen (, -1) too.
589         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
590         bit set.
592 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
594         * iconv/strtab.c (searchstring): Use correct length for comparison.
595         (strtabadd): Account total size correct if new string has old string as
596         substring.
598 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
600         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
602 2001-08-27  Andreas Jaeger  <aj@suse.de>
604         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
606         * math/libm-test.inc (j0_test): Add extra tests.
607         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
608         not x, in Hankel approximation.
609         Patches by Stephen L Moshier.
611 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
613         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
614         link_map.
616         * configure.in: Fix test for .rela.dyn section.
618         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
620 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
622         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
623         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
624         Pass type_class to _dl_lookup_*.
625         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_clas parameter now.
626         Pass around just type_class instead of noexec, noplt pair.
627         (_dl_lookup_versioned_symbol): Likewise.
628         (_dl_lookup_symbol_skip): Pass around just type_class instead of
629         noexec, noplt pair.
630         (_dl_lookup_versioned_symbol_skip): Likewise.
631         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
632         * elf/do-lookup.h (do_lookup): Likewise.
633         * include/link.h (struct link_map): Replace noexec and noplt fields
634         in l_lookup_cache with type_class field.
635         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
636         ELF_RTYPE_CLASS_COPY): Define.
637         Adjust prototypes for _dl_lookup_symbol and
638         _dl_lookup_versioned_symbol.
639         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
640         elf_machine_lookup_noexec_p): Remove.
641         (elf_machine_type_class): Define.
642         * sysdeps/arm/dl-machine.h: Likewise.
643         * sysdeps/hppa/dl-machine.h: Likewise.
644         * sysdeps/cris/dl-machine.h: Likewise.
645         * sysdeps/i386/dl-machine.h: Likewise.
646         * sysdeps/ia64/dl-machine.h: Likewise.
647         * sysdeps/m68k/dl-machine.h: Likewise.
648         * sysdeps/mips/mips64/dl-machine.h: Likewise.
649         * sysdeps/mips/dl-machine.h: Likewise.
650         * sysdeps/powerpc/dl-machine.h: Likewise.
651         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
652         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
653         * sysdeps/sh/dl-machine.h: Likewise.
654         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
655         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
657 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
659         * manual/message.texi (Advanced gettext functions): Change
660         description of plural forms for Slovak.
661         Reported by Marcel Telka <marcel@telka.sk>.
663         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
664         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
666 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
668         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
669         typo.  Patch by Florian La Roche <laroche@redhat.com>.
671 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
673         * include/link.h (struct link_map): Add l_lookup_cache element.
674         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
675         (RESOLVE_MAP): Likewise.
676         (_dl_relocate_object): Remove cache initialization.
677         * elf/dl-lookup.c: Rip out cache handling code.
678         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
679         declarations.
681         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
682         remove some __builtin_expect.
683         (_dl_lookup_versioned_symbol): Likewise.
685         * config.h.in: Add HAVE_Z_COMBRELOC.
686         * configure.in: Add test for -z combreloc.
688         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
689         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
690         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
691         case to almost no code.
693 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
695         * po/tr.po: Update from translation team.
697 2001-08-24  Andreas Jaeger  <aj@suse.de>
699         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
700         make clean works.
702 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
704         * elf/rtld.c (print_statistics): Printf % after percent values.
705         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
707         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
708         don't have to compute the hash value and initialize current_value.
709         Move reference_name variable to where it is needed.
710         (_dl_lookup_versioned_symbol): Likewise.
712 2001-08-24  Roland McGrath  <roland@frob.com>
714         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
715         Just test that strerror returns non-null for a few errno codes.
717 2001-08-23  Roland McGrath  <roland@frob.com>
719         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
720         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
722         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
724         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
725         __mach_reply_port.
727 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
729         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
730         returns NULL.
732         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
733         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
734         doesn't do it.
735         * elf/rtld.c: Include <sys/param.h>.
736         * elf/dl-reloc.c: Likewise.
738 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
740         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
741         empty to prevent junk from being generated.
742         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
744 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
746         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
747         records.  Rename endrel to relative, initialize it to r, and use it
748         in elf_machine_rel_relative calls.  Point r after relative relocs.
750 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
752         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
753         of R_386_NONE.
755 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
757         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
758         necessary.  Undefine newly defined macros at the end.
759         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
760         Rename from elf_machine_rel_relative.
761         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
762         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
763         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
764         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
765         Likewise.
766         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
767         Likewise.
768         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
769         Fix argument types.
770         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
771         Fix argument types.
772         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
773         Likewise.  Fix argument types.
774         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
775         Likewise.  Fix argument types.
776         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
777         Fix argument types.
778         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
779         ElfW(Rel) in argument.
780         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
781         function.
783 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
785         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
787 2001-08-24  Andreas Jaeger  <aj@suse.de>
789         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
790         Stephen L Moshier <moshier@mediaone.net>.
792 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
794         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
795         first if RELCOUNT is set.
797         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
798         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
799         elf_machine_rel_relative.
800         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
801         Minor optimizations.
802         * sysdeps/arm/dl-machine.h: Likewise.
803         * sysdeps/cris/dl-machine.h: Likewise.
804         * sysdeps/hppa/dl-machine.h: Likewise.
805         * sysdeps/i386/dl-machine.h: Likewise.
806         * sysdeps/ia64/dl-machine.h: Likewise.
807         * sysdeps/m68k/dl-machine.h: Likewise.
808         * sysdeps/mips/dl-machine.h: Likewise.
809         * sysdeps/powerpc/dl-machine.h: Likewise.
810         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
811         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
812         * sysdeps/sh/dl-machine.h: Likewise.
813         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
814         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
816 2001-08-23  Roland McGrath  <roland@frob.com>
818         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
820         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
821         sysdeps/mach version.  Implement counting ("recursive") mutexes
822         on top of cthreads mutexes.
823         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
825         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
826         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
827         (__libc_cleanup_region_start, __libc_cleanup_region_end,
828         __libc_clean_end): Define these to call the cleanup function after
829         normal exit when they're supposed to.
831         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
832         Take new first arg DOIT, a boolean saying whether to really install
833         any cleanup handler.
834         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
835         (__libc_cleanup_end): Likewise.
836         * sysdeps/generic/bits/libc-lock.h: Same changes.
837         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
838         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
839         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
840         Likewise.
841         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
842         * sysdeps/generic/bits/stdio-lock.h
843         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
845 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
847         * elf/ldconfig.c (search_dir): Remove stale symlinks.
849 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
851         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
852         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
853         lookups in cache.
854         (_dl_lookup_versioned_symbol): Likewise.
855         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
856         relocation lookup.
857         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
858         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
859         (lookup_cache, lookup_cache_versioned): Add declarations.
861 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
863         * stdlib/tst-random.c (main): Swap parameters in fail call.
864         Patch by Pete Bevin <pete@petebevin.com>.
866 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
868         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
870 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
872         * malloc/obstack.c: Indent preprocessor directives.
873         Patch by Jim Meyering <meyering@ascend.com>.
875         * po/ja.po: Update from translation team.
877 2001-08-23  Roland McGrath  <roland@frob.com>
879         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
881         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
882         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
884 2001-08-22  Roland McGrath  <roland@frob.com>
886         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
887         __libc_lock_define_recursive.
888         * elf/dl-open.c: Don't declare it here any more.
889         * elf/dl-close.c: Likewise.
890         * elf/dl-lookup.c: Likewise.
891         * elf/dl-iteratephdr.c: Likewise.
892         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
893         __libc_lock_unlock_recursive.
894         * elf/dl-close.c (_dl_close): Likewise
895         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
896         * elf/dl-open.c (_dl_open): Likewise
898         * sysdeps/generic/bits/libc-lock.h
899         (__libc_lock_define_recursive): New macro.
900         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
901         (_IO_lock_lock): Use __libc_lock_lock_recursive.
902         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
904         * conform/conformtest.pl (checknamespace): Sort the output list.
906         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
907         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
908         definitions conditional on [__USE_XOPEN].
910         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
911         these unconditionally, not only use [__USE_BSD], so as to match
912         the sysdeps/unix/sysv/linux files.
914 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
916         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
917         avoid warnings.
919         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
920         DL_LOOKUP_ADDRESS.
922 2001-08-22  Roland McGrath  <roland@frob.com>
924         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
925         conditionalization of sa_handler/sa_sigaction member types to
926         match the sysdeps/unix/sysv/linux file.
928 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
930         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
931         symbol sizes a bit better.
933         * sysdeps/ia64/strncpy.S: Complete rewrite.
934         Contributed by Jakub Jelinek <jakub@redhat.com>.
936         * string/stratcliff.c (main): Add strncpy test.
938 2001-08-22  Roland McGrath  <roland@frob.com>
940         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
941         and don't declare unsetenv or _environ directly.
942         (unsetenv): Return int, not void.  Use __environ instead of _environ.
944 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
946         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
947         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
948         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
949         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
950         test for cmsg struct size.
952 2001-04-23  Paul Eggert  <eggert@twinsun.com>
954         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
955         Rename __argc to ___argc in prototypes to avoid compatibility
956         problems with systems that reserve the identifier "__argc".
957         Similarly for __argv.
959 2001-08-21  Roland McGrath  <roland@frob.com>
961         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
963         * mach/Makefile (tests): Removed.
964         * mach/hello.c: File removed.
966 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
968         * po/sv.po: Update from translation team.
970         * stdio-common/vfscanf.c: Fix handling of %l[].
971         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
973         * libio/Makefile (tests): Add tst-sscanf.
974         * libio/tst-sscanf.c: New file.
976         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
977         * malloc/mtrace.c (tr_where): dli_sname always points to a
978         non-empty string if != NULL.
979         Reported by Tim Janik <timj@gtk.org>.
981 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
983         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
984         buf.  Free resources on failure.
985         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
986         (makefd_xprt): Likewise.
987         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
988         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
989         * sunrpc/auth_unix.c (authunix_create): Likewise.
991 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
993         * string/strnlen.c: Remove.
994         * sysdeps/generic/strnlen.c: New.
995         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
997 2001-08-21  Roland McGrath  <roland@frob.com>
999         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
1000         as a macro, not an extern inline function.
1002         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
1003         * Versions.def (libc): Add GLIBC_2.2.5 set.
1004         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
1005         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
1007 2001-08-20  Roland McGrath  <roland@frob.com>
1009         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
1010         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
1012 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
1014         * string/bits/string2.h: Remove strnlen optimization here.
1015         * sysdeps/i386/i486/bits/string.h: Add it here.
1017 2001-08-21  Wolfram Gloger  <wg@malloc.de>
1019         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
1021 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
1023         * po/gl.po: Update from translation team.
1025 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
1027         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
1028         * misc/err.c (convert_and_print): Likewise.
1030         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
1031         function calls.
1033 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1035         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
1036         change of the gregset_t type.
1037         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
1039 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
1041         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
1043 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
1045         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
1047         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
1049 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
1051         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
1052         before calling the cthreads initialization code.
1054 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
1056         * argp/argp-help.c: Fix two problems introduced in last change.
1058         * include/dirent.h: Include <dirstream.h> first.
1060 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
1062         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
1064         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
1065         * sunrpc/xdr_rec.c: Likewise.
1066         * sunrpc/xdr_mem.c: Likewise.
1067         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
1068         * sunrpc/rpc_cmsg.c: Likewise.
1069         * sunrpc/getrpcport.c (getrpcport): Likewise.
1070         * sunrpc/clnt_simp.c (callrpc): Likewise.
1071         * sunrpc/clnt_gen.c (clnt_create): Likewise.
1072         * string/envz.c: Likewise.
1074         * po/ko.po: Update from translation team.
1076         * argp/argp-help.c: Handle wide oriented stderr stream.
1078 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
1080         * sysdeps/generic/strtol.c: Little optimizations.  Add some
1081         __builtin_expect.
1083         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
1085         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
1086         * wcsmbs/wcwidth.c (wcwdith): Likewise.
1087         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
1089         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
1091         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
1093         * time/time.h (struct timespec): Use __time_t for tv_sec element.
1095         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
1096         wchar_t for function declarations and defintions.
1098         * misc/sys/select.h: Define __need_time_t before including <time.h>.
1099         Define suseconds_t if it hasn't happened yet.
1101         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
1103         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
1105         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
1106         <stddef.h>.
1108         * conform/data/stddef.h-data: Remove wint_t.
1110         * conform/conformtest.pl: Change namespace test to take #undef
1111         lines into account.
1113         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
1115         * conform/data/sys/socket.h-data: Add sockatmark.
1117 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
1119         * io/fts.c: Update from recent BSD source.
1121 2001-08-17  Roland McGrath  <roland@frob.com>
1123         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
1124         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
1125         Likewise.
1127 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
1129         * locale/duplocale.c (__duplocale): Also initialize the special
1130         __ctype_* elements.
1132         * conform/data/netdb.h-data: Adjust gai_strerror return type.
1134 2001-08-17  Andreas Jaeger  <aj@suse.de>
1136         * misc/getpass.c: Include wchar.h for prototypes.
1137         * malloc/obstack.c: Likewise.
1139 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
1141         * sunrpc/svc_simple.c (universal): Use __write instead of write.
1143         * wcsmbs/wcscoll.c: Also define __wcscoll.
1144         * include/wchar.h: Declare __wcscoll.
1146         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
1147         * libio/vwprintf.c: Likewise.
1148         * libio/wprintf.c: Likewise.
1150         * iconv/gconv_cache.c: Use __munmap instead of munmap.
1152 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
1154         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
1155         instead of mbrtowc.
1156         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
1157         wcslen, and __wcscoll instead of wcscoll.
1159         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
1161         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
1162         __getuid instead of getuid.
1164         * stdio-common/perror.c (perror): Use __close instead of close.
1165         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
1166         * libio/freopen.c (freopen): Likewise.
1167         * libio/freopen64.c (freopen64): Likewise.
1169         * libio/tst-ungetwc2.c (main): Define str const.
1171         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
1172         * libio/fwprintf.c: Also define __fwprintf.
1173         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
1174         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
1175         * assert/assert-perr.c: Likewise.
1176         * assert/assert.c: Likewise.
1177         * gmon/gmon.c: Likewise.
1178         * inet/rcmd.c: Likewise.
1179         * malloc/obstack.c: Likewise.
1180         * misc/err.c: Likewise.
1181         * misc/error.c: Likewise.
1182         * misc/getpass.c: Likewise.
1183         * posix/getopt.c: Likewise.
1184         * resolv/res_hconf.c: Likewise.
1185         * stdio-common/perror.c: Likewise.
1186         * stdio-common/psignal.c: Likewise.
1187         * stdlib/fmtmsg.c: Likewise.
1188         * sunrpc/auth_unix.c: Likewise.
1189         * sunrpc/clnt_perr.c: Likewise.
1190         * sunrpc/clnt_tcp.c: Likewise.
1191         * sunrpc/clnt_udp.c: Likewise.
1192         * sunrpc/clnt_unix.c: Likewise.
1193         * sunrpc/svc_simple.c: Likewise.
1194         * sunrpc/svc_tcp.c: Likewise.
1195         * sunrpc/svc_udp.c: Likewise.
1196         * sunrpc/svc_unix.c: Likewise.
1197         * sunrpc/xdr.c: Likewise.
1198         * sunrpc/xdr_array.c: Likewise.
1199         * sunrpc/xdr_rec.c: Likewise.
1200         * sunrpc/xdr_ref.c: Likewise.
1201         * sysdeps/generic/wordexp.c: Likewise.
1203         * po/it.po: Update from translation team.
1205         * misc/err.c: Handle wide oriented stderr stream.
1207 2001-08-14  Tom Rix  <trix@redhat.com>
1209         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
1210         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
1212 2001-08-13  Tom Rix  <trix@redhat.com>
1214         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
1215         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
1216         and __intptr_t.
1218 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1220         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
1221         Store the access registers to the ucontext structure.
1222         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
1223         Likewise.
1225         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
1226         Load the access registers from the ucontext structure.
1227         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
1228         Likewise.
1230         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
1231         offsets to the new ucontext layout.
1232         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
1234         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
1235         of the ucontext structure.
1236         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
1238 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
1240         * misc/error.c (error): Handle wide oriented stderr stream correctly.
1241         (error_at_line): Likewise.
1243         * stdio-common/perror.c (perror): Implement according to standard.
1244         The stream orientation must not be changed if the stream was not
1245         oriented before the call.
1246         * stdio-common/Makefile (tests): Add tst-perror.
1247         * stdio-common/tst-perror.c: New file.
1250 See ChangeLog.12 for earlier changes.