Update.
[glibc.git] / ChangeLog
blob2f2500b0746868088d2ac018a3b6a420e520ae9c
1 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
3         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
4         * iconvdata/testdata/IBM1160: New file.
5         * iconvdata/testdata/IBM1160..UTF8: New file.
6         * iconvdata/testdata/IBM1161: New file.
7         * iconvdata/testdata/IBM1161..UTF8: New file.
8         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
10 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
12         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
13         UL_SETFSIZE computations better.
15         * rt/Makefile: Remove use of filter for librt again.
17         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
18         UL_SETFSIZE computations better.
20         * string/Versions: Export __strsep for GLIBC_2.2.5.
21         * string/bits/string2.h: Define all __STRING_INLINE functions if
22         _FORCE_INLINES is defined.
23         Use int instead of char of parameter types.
24         (__strsep): Don't use __strsep_g.  Don't define it.
25         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
26         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
27         __strcpy_small.
28         (__stpcpy_a_small): Renamed from __stpcpy_small.
29         (__strcspn_c1): Don't define if _FORCE_INLINES.
30         (__strspn_c1): Likewise.
32 2001-09-22  Ben Collins  <bcollins@debian.org>
34         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
35         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
36         * sysdeps/ia64/bits/sigaction.h: Likewise.
37         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
39 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
41         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
43 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
45         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
47 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
49         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
51 2001-09-20  H.J. Lu  <hjl@gnu.org>
53         * include/dlfcn.h (__RTLD_SPROF): New definiton.
54         * elf/dl-open.c (dl_open_worker): Return immediately after loading
55         for __RTLD_SPROF.
56         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
57         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
59 2001-09-20  H.J. Lu  <hjl@gnu.org>
61         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
62         don't add 1.
64 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
66         * nss/getent.c: Accept -s parameter to overwrite rules in
67         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
69         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
70         with as many ".0" as necessary to form a complete address
71         inet_network understands.
73         * nss/getent.c: Various cleanups.  Use simpler and fewer function
74         calls.
76 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
78         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
79         _JMPBUF_UNWINDS.
80         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
82 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
84         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
85         IBM1161.
86         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
87         * iconvdata/ibm1160.c: New file.
88         * iconvdata/ibm1160.h: New file.
89         * iconvdata/ibm1161.c: New file.
90         * iconvdata/ibm1161.h: New file.
91         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
93 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
95         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
96         difference between base address and first PT_LOAD's virtual address,
97         not the base address.
99 2001-09-11  Tom Rix  <trix@redhat.com>
101         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
102         ifdef for __getopt_clean_environment.
103         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
105 2001-09-22  Andreas Jaeger  <aj@suse.de>
107         * elf/reldep4.c (main): Add proper prototype to fix warning.
109         * elf/reldep5.c (main): Remove unused variable.
111         * math/math_private.h: Add prototypes.
113 2001-09-21  Andreas Jaeger  <aj@suse.de>
115         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
116         * sysdeps/x86_64/Dist: New file.
117         * sysdeps/x86_64/soft-fp/Dist: New file.
119         * sysdeps/gnu/Dist: Remove eval.c.
121 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
123         * malloc/memusage.c (realloc): Don't count already allocated
124         memory in the sums.
125         (me): Always use dlsym() to find the real implementations.
127         * malloc/memusage.sh: Make -n option actually do something.
129 2001-09-20  Andreas Jaeger  <aj@suse.de>
131         * elf/elf.h (R_390_NUM): Correct value.
133         * Versions.def: Add missing versions 2.2.3 for libthread_db and
134         libpthread.
136         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
137         for x86-64, install x86-64 into */lib64.
139         * shlib-versions: Add x86-64.
141         * elf/elf.h: Add x86-64 relocations.
143 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
145         * po/fr.po: Update from translation team.
147 2001-09-19  Andreas Jaeger  <aj@suse.de>
149         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
150         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
151         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
152         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
153         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
154         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
155         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
156         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
157         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
158         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
159         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
160         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
161         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
162         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
163         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
164         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
165         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
166         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
167         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
168         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
169         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
170         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
171         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
172         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
173         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
174         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
175         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
176         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
177         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
178         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
179         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
180         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
181         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
182         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
183         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
184         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
185         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
186         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
187         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
188         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
189         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
190         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
191         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
192         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
193         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
194         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
195         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
196         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
197         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
198         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
199         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
200         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
201         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
202         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
203         * sysdeps/unix/x86_64/sysdep.S: New file.
204         * sysdeps/unix/x86_64/sysdep.h: New file.
205         * sysdeps/x86_64/Implies: New file.
206         * sysdeps/x86_64/Makefile: New file.
207         * sysdeps/x86_64/Versions: New file.
208         * sysdeps/x86_64/__longjmp.S: New file.
209         * sysdeps/x86_64/abort-instr.h: New file.
210         * sysdeps/x86_64/atomicity.h: New file.
211         * sysdeps/x86_64/bits/endian.h: New file.
212         * sysdeps/x86_64/bits/setjmp.h: New file.
213         * sysdeps/x86_64/bits/string.h: New file.
214         * sysdeps/x86_64/bp-asm.h: New file.
215         * sysdeps/x86_64/bsd-_setjmp.S: New file.
216         * sysdeps/x86_64/bsd-setjmp.S: New file.
217         * sysdeps/x86_64/dl-machine.h: New file.
218         * sysdeps/x86_64/elf/initfini.c: New file.
219         * sysdeps/x86_64/elf/start.S: New file.
220         * sysdeps/x86_64/ffs.c: New file.
221         * sysdeps/x86_64/ffsll.c: New file.
222         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
223         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
224         * sysdeps/x86_64/fpu/e_acosl.c: New file.
225         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
226         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
227         * sysdeps/x86_64/fpu/e_expl.c: New file.
228         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
229         * sysdeps/x86_64/fpu/e_log10l.S: New file.
230         * sysdeps/x86_64/fpu/e_log2l.S: New file.
231         * sysdeps/x86_64/fpu/e_logl.S: New file.
232         * sysdeps/x86_64/fpu/e_powl.S: New file.
233         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
234         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
235         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
236         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
237         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
238         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
239         * sysdeps/x86_64/fpu/fegetenv.c: New file.
240         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
241         * sysdeps/x86_64/fpu/fegetround.c: New file.
242         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
243         * sysdeps/x86_64/fpu/fesetenv.c: New file.
244         * sysdeps/x86_64/fpu/fesetround.c: New file.
245         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
246         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
247         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
248         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
249         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
250         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
251         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
252         * sysdeps/x86_64/fpu/s_atanl.c: New file.
253         * sysdeps/x86_64/fpu/s_cosl.S: New file.
254         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
255         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
256         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
257         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
258         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
259         * sysdeps/x86_64/fpu/s_logbl.c: New file.
260         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
261         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
262         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
263         * sysdeps/x86_64/fpu/s_rintl.c: New file.
264         * sysdeps/x86_64/fpu/s_significandl.c: New file.
265         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
266         * sysdeps/x86_64/fpu/s_sinl.S: New file.
267         * sysdeps/x86_64/fpu/s_tanl.S: New file.
268         * sysdeps/x86_64/gmp-mparam.h: New file.
269         * sysdeps/x86_64/hp-timing.c: New file.
270         * sysdeps/x86_64/hp-timing.h: New file.
271         * sysdeps/x86_64/htonl.S: New file.
272         * sysdeps/x86_64/memusage.h: New file.
273         * sysdeps/x86_64/setjmp.S: New file.
274         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
275         * sysdeps/x86_64/stackinfo.h: New file.
276         * sysdeps/x86_64/sysdep.h: New file.
277         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
279         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
280         L Moshier.
282 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
284         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
285         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
287 2001-09-18  Andreas Schwab  <schwab@suse.de>
289         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
290         list, now that l_scope is a pointer.
292         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
293         scope list.
295 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
297         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
298         (elf_machine_rela_relative): Add a missing declaration.
300 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
302         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New.
303         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New.
304         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
305         ldd-rewrite scripts.
307 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
309         * elf/ldd.bash.in: Update copyright message.
311 2001-09-17  H.J. Lu  <hjl@gnu.org>
313         * hurd/hurdmalloc.c (bcopy): Removed.
314         (realloc): Replace bcopy with memcpy.
315         * hurd/path-lookup.c (file_name_path_scan): Likewise.
316         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
317         * sunrpc/rpcinfo.c (pmapdump): Likewise.
319         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
320         (gethostbyaddr): Likewise.
321         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
323 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
325         * sysdeps/gnu/eval.c: Removed.
327 2001-09-18  Andreas Jaeger  <aj@suse.de>
329         * sysdeps/i386/fpu/s_logbl.S: Move to ...
330         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
332         * sysdeps/i386/fpu/s_rintl.S: Move to ...
333         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
335         * sysdeps/i386/fpu/s_significandl.S: Move to ...
336         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
338 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
340         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
341         nrules value.
343 2001-09-14  H.J. Lu  <hjl@gnu.org>
345         * sysdeps/mips/fpu/libm-test-ulps: Updated.
347 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
349         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
350         Patch by Florian La Roche <laroche@redhat.com>.
352         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
354         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
355         ETHER_CRC_LEN.
357 2001-09-14  Andreas Schwab  <schwab@suse.de>
359         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
360         Sumner <bls@sgi.com>.
361         * posix/execlp.c: Likewise.
363 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
365         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
366         is already found earlier in the search scope.
368 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
370         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
371         filter.
373 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
375         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
377 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
379         * config.h.in: Enforce optimization to be used.
380         * Makeconfig (preprocess-versions): Define ASSEMBLER.
381         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
382         * posix/Makefile (annexc-CFLAGS): Define to -O.
383         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
385 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
387         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
388         Patch by Stephan Kulow.
390 2001-09-08  Ben Collins  <bcollins@debian.org>
392         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
393         usage of RESOLVE() (r_type, not reloc->r_type).
395 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
397         * elf/dl-object.c: Avoid allocating extra memory block for name.
398         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
399         allocated separately.
400         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
402 2001-09-08  H.J. Lu  <hjl@gnu.org>
404         * po/zh_TW.po: Fix a typo.
406 2001-09-07  Tom Rix  <trix@redhat.com>
408         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
410 2001-08-26  Tom Rix  <trix@redhat.com>
412         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
413         command line options.
414         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
415         * sysdeps/unix/sysv/aix/start.c: Removed.
416         * sysdeps/unix/sysv/aix/start-libc.c: New file.
417         * sysdeps/unix/sysv/aix/init-first.c: New file.
418         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
420 2001-09-08  Ben Collins  <bcollins@debian.org>
422         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
423         * sysdeps/generic/dl-machine.h: Likewise.
424         * sysdeps/hppa/dl-fptr.c: Likewise.
425         * sysdeps/ia64/dl-fptr.c: Likewise.
426         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
427         * sysdeps/mips/dl-machine.h: Likewise.
428         * sysdeps/mips/mips64/dl-machine.h: Likewise.
429         * sysdeps/powerpc/dl-machine.c: Likewise.
431 2001-09-07  Ben Collins  <bcollins@debian.org>
433         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
435         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
437 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
439         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
440         dependencies if necessary.
442         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
443         loaded directly) determine length if l_initfini list by iterating
444         over its elements.  Minor optimizations.
445         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
446         for dependency objects.
447         If object was already loaded check whether any of the dependencies
448         is already on the relocation dependency list.  If yes, remove the
449         latter.  Minor optimizations.
450         * elf/dl-lookup.c (add_dependency): Add check for self reference of
451         maps here.  Search l_initfini list only if the object was loaded
452         directly and not only as a dependency.
453         (_dl_lookup_symbol): Add relocation dependency also if object
454         is not in global scope.  Remove test for self-reference here.
455         (_dl_lookup_versioned_symbol): Likewise.
456         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
457         element of first name record.
458         * elf/loadtest.c: Add some more test to recognize early if an object
459         wasn't unloaded.
460         * elf/Makefile: Add rules to build and run reldep5.
461         * elf/reldep5.c: New file.
462         * elf/reldepmod5.c: New file.
463         * elf/reldepmod6.c: New file.
465         * elf/reldep2.c: Fix typo.
467 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
469         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
470         elements.  Change l_scope to be a pointer only.
471         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
472         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
473         here add searchlist of newly open file to the dependency's scope.
474         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
475         only searchlist from its scope.  Free own scope array if necessary.
476         * elf/Makefile (tests): Add dblload and dblunload now.
478 2001-09-06  Andreas Jaeger  <aj@suse.de>
480         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
481         Stephen L Moshier.
483 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
485         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
486         they both fail.
487         * elf/dblload.c: New file.
488         * elf/dblloadmod1.c: New file.
489         * elf/dblloadmod2.c: New file.
490         * elf/dblloadmod3.c: New file.
491         * elf/dblunload.c: New file.
493 2001-09-04  Richard Henderson  <rth@redhat.com>
495         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
496         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
498 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
500         Correct very misleading message for error in failed runtime relocation.
501         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
502         place of the error.
503         (_dl_signal_cerror): Likewise.
504         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
505         * elf/dl-close.c: Likewise.
506         * elf/dl-deps.c: Likewise.
507         * elf/dl-load.c: Likewise.
508         * elf/dl-lookup.c: Likewise.
509         * elf/dl-open.c: Likewise.
510         * elf/dl-reloc.c: Likewise.
511         * elf/dl-sym.c: Likewise.
512         * elf/dl-version.c: Likewise.
513         * sysdeps/generic/dl-sysdep.c: Likewise.
515 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
517         * iconv/strtab.c (strtabinit): Initialize null Strent.
518         (newstring): Move len == 0 handling...
519         (strtabadd): ...here.
520         If len == 1, return null Strent.
521         When inserting a suffix of an existing string, check if
522         it is not equal to some suffix already recorded.
523         Copy left and right members over if adding longer string.
525 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
527         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
529         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
530         (__syscall_gethostname): Add prototype.
532 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
534         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
536 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
538         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
540 2001-08-27  Roland McGrath  <roland@frob.com>
542         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
543         short, copy that much into NAME anyway before returning error.
545 2001-09-01  Richard Henderson  <rth@redhat.com>
547         * sysdeps/alpha/elf/Dist: Remove file.
548         * sysdeps/alpha/elf/Makefile: Remove file.
549         * sysdeps/alpha/elf/crtbegin.S: Remove file.
550         * sysdeps/alpha/elf/crtend.S: Remove file.
551         * sysdeps/alpha/elf/initfini.c: New file.
553 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
555         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
556         * iconv/tst-iconv3.c: Likewise.
558 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
560         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
562 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
564         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
565         export it.
566         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
567         * iconv/iconv_prog.c (insert_cache): New function.
568         (print_known_names): If cache is used call insert_cache to use the
569         information from the cache [PR libc/2509].
571 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
573         * time/strptime.c (strptime_internal): Recognize 'l' format and
574         handle it like 'I' for symmetry with strftime.
576 2001-08-31  Richard Henderson  <rth@redhat.com>
578         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
579         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
580         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
581         (print_statistics): Make scalar unsigned long long.
582         * sysdeps/alpha/hp-timing.h: New file.
584 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
586         * stdio-common/perror.c (perror): Save errno early, pass it
587         down to perror_internal.
588         (perror_internal): Add errnum argument.
590 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
592         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
593         Don't add old memory content for R_ALPHA_REFQUAD.
595 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
597         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
598         memory correctly.
600         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
601         instead of open, __close instead of close, __getpagesize instead
602         of getpagesize.
604         * string/argz-stringify.c (__argz_stringify): Use __strnlen
605         instead of strnlen.
606         * include/string.h (strndupa): Redefine here to use __strnlen
607         instead of strnlen.
608         * string/strndup.c (__strndup): Use __strnlen not strnlen.
610         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
611         connected).
613 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
615         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
616         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
617         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
618         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
619         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
620         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
621         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
623 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
625         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
627 2001-08-30  Andreas Jaeger  <aj@suse.de>
629         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
630         contributed Stephen L Moshier.
632 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
634         * sunrpc/etc.rpc (sgi_fam): Add.
636 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
638         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
640 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
642         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
643         first is from a previous call.
644         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
646 2001-08-29  Andreas Schwab  <schwab@suse.de>
648         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
650 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
652         * config.make.in (INSTALL_SCRIPT): Define.
653         * Makeconfig (INSTALL_SCRIPT): Define.
654         * Makerules (do-install-script): New macro to install scripts using
655         INSTALL_SCRIPT.
656         (install-bin-script): New rule to install scripts with
657         do-install-script.
658         (install-bin-script-nosubdir): New rule.
659         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
660         (distinfo-vars): Add $(install-bin-script).
661         * Rules (others): Likewise.
662         * Makefile (glibcbug): Install with install-bin-script.
663         * debug/Makefile (xtrace): Likewise.
664         (catchsegv): Likewise.
665         * elf/Makefile (ldd): Likewise.
666         * malloc/Makefile (mtrace): Likewise.
667         * timezone/Makefile (tzselect): Likewise.
669 2001-08-29  H.J. Lu  <hjl@gnu.org>
671         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
672         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
673         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
675 2001-08-29  Andreas Schwab  <schwab@suse.de>
677         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
679 2001-08-28  H.J. Lu  <hjl@gnu.org>
681         * Makeconfig (combreloc-LDFLAGS): New variable.
682         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
683         * config.make.in (have-z-combreloc): New variable.
684         * configure.in: Substitute libc_cv_z_combreloc.
686 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
688         * po/sv.po: Update from translation team.
689         * po/fr.po: Likewise.
690         * po/da.po: Likewise.
692 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
694         * Makerules: Fix a typo: MD% -> MD5.
696 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
698         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
699         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
701 2001-08-28  Andreas Jaeger  <aj@suse.de>
703         * manual/libc-texinfo.sh: Add entry about free manuals.
705         * manual/contrib.texi (Contributors): Fix cross reference.
707         * manual/libc.texinfo (Copying): Include freemanuals.
709         * manual/Makefile (appendices): Add freemanuals.
711         * manual/freemanuals.texi: New file.
712         Patch by Brian Youmans <3diff@gnu.org>.
714         * manual/libm-err-tab.pl: Pretty print more platforms, print a
715         smaller table.
717         * manual/math.texi (Errors in Math Functions): Fix grammar, start
718         table on separate page.
719         Patch by Brian Youmans <3diff@gnu.org>.
721 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
723         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
724         the connection went down after we first used it try to connect
725         again and resend the message before printing to the console.
726         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
728 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
730         * string/tst-strlen.c (main): Test strnlen (, -1) too.
731         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
732         bit set.
734 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
736         * iconv/strtab.c (searchstring): Use correct length for comparison.
737         (strtabadd): Account total size correct if new string has old string as
738         substring.
740 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
742         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
744 2001-08-27  Andreas Jaeger  <aj@suse.de>
746         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
748         * math/libm-test.inc (j0_test): Add extra tests.
749         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
750         not x, in Hankel approximation.
751         Patches by Stephen L Moshier.
753 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
755         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
756         link_map.
758         * configure.in: Fix test for .rela.dyn section.
760         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
762 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
764         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
765         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
766         Pass type_class to _dl_lookup_*.
767         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_clas parameter now.
768         Pass around just type_class instead of noexec, noplt pair.
769         (_dl_lookup_versioned_symbol): Likewise.
770         (_dl_lookup_symbol_skip): Pass around just type_class instead of
771         noexec, noplt pair.
772         (_dl_lookup_versioned_symbol_skip): Likewise.
773         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
774         * elf/do-lookup.h (do_lookup): Likewise.
775         * include/link.h (struct link_map): Replace noexec and noplt fields
776         in l_lookup_cache with type_class field.
777         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
778         ELF_RTYPE_CLASS_COPY): Define.
779         Adjust prototypes for _dl_lookup_symbol and
780         _dl_lookup_versioned_symbol.
781         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
782         elf_machine_lookup_noexec_p): Remove.
783         (elf_machine_type_class): Define.
784         * sysdeps/arm/dl-machine.h: Likewise.
785         * sysdeps/hppa/dl-machine.h: Likewise.
786         * sysdeps/cris/dl-machine.h: Likewise.
787         * sysdeps/i386/dl-machine.h: Likewise.
788         * sysdeps/ia64/dl-machine.h: Likewise.
789         * sysdeps/m68k/dl-machine.h: Likewise.
790         * sysdeps/mips/mips64/dl-machine.h: Likewise.
791         * sysdeps/mips/dl-machine.h: Likewise.
792         * sysdeps/powerpc/dl-machine.h: Likewise.
793         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
794         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
795         * sysdeps/sh/dl-machine.h: Likewise.
796         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
797         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
799 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
801         * manual/message.texi (Advanced gettext functions): Change
802         description of plural forms for Slovak.
803         Reported by Marcel Telka <marcel@telka.sk>.
805         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
806         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
808 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
810         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
811         typo.  Patch by Florian La Roche <laroche@redhat.com>.
813 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
815         * include/link.h (struct link_map): Add l_lookup_cache element.
816         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
817         (RESOLVE_MAP): Likewise.
818         (_dl_relocate_object): Remove cache initialization.
819         * elf/dl-lookup.c: Rip out cache handling code.
820         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
821         declarations.
823         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
824         remove some __builtin_expect.
825         (_dl_lookup_versioned_symbol): Likewise.
827         * config.h.in: Add HAVE_Z_COMBRELOC.
828         * configure.in: Add test for -z combreloc.
830         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
831         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
832         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
833         case to almost no code.
835 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
837         * po/tr.po: Update from translation team.
839 2001-08-24  Andreas Jaeger  <aj@suse.de>
841         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
842         make clean works.
844 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
846         * elf/rtld.c (print_statistics): Printf % after percent values.
847         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
849         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
850         don't have to compute the hash value and initialize current_value.
851         Move reference_name variable to where it is needed.
852         (_dl_lookup_versioned_symbol): Likewise.
854 2001-08-24  Roland McGrath  <roland@frob.com>
856         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
857         Just test that strerror returns non-null for a few errno codes.
859 2001-08-23  Roland McGrath  <roland@frob.com>
861         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
862         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
864         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
866         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
867         __mach_reply_port.
869 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
871         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
872         returns NULL.
874         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
875         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
876         doesn't do it.
877         * elf/rtld.c: Include <sys/param.h>.
878         * elf/dl-reloc.c: Likewise.
880 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
882         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
883         empty to prevent junk from being generated.
884         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
886 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
888         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
889         records.  Rename endrel to relative, initialize it to r, and use it
890         in elf_machine_rel_relative calls.  Point r after relative relocs.
892 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
894         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
895         of R_386_NONE.
897 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
899         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
900         necessary.  Undefine newly defined macros at the end.
901         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
902         Rename from elf_machine_rel_relative.
903         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
904         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
905         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
906         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
907         Likewise.
908         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
909         Likewise.
910         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
911         Fix argument types.
912         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
913         Fix argument types.
914         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
915         Likewise.  Fix argument types.
916         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
917         Likewise.  Fix argument types.
918         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
919         Fix argument types.
920         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
921         ElfW(Rel) in argument.
922         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
923         function.
925 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
927         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
929 2001-08-24  Andreas Jaeger  <aj@suse.de>
931         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
932         Stephen L Moshier <moshier@mediaone.net>.
934 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
936         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
937         first if RELCOUNT is set.
939         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
940         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
941         elf_machine_rel_relative.
942         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
943         Minor optimizations.
944         * sysdeps/arm/dl-machine.h: Likewise.
945         * sysdeps/cris/dl-machine.h: Likewise.
946         * sysdeps/hppa/dl-machine.h: Likewise.
947         * sysdeps/i386/dl-machine.h: Likewise.
948         * sysdeps/ia64/dl-machine.h: Likewise.
949         * sysdeps/m68k/dl-machine.h: Likewise.
950         * sysdeps/mips/dl-machine.h: Likewise.
951         * sysdeps/powerpc/dl-machine.h: Likewise.
952         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
953         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
954         * sysdeps/sh/dl-machine.h: Likewise.
955         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
956         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
958 2001-08-23  Roland McGrath  <roland@frob.com>
960         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
962         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
963         sysdeps/mach version.  Implement counting ("recursive") mutexes
964         on top of cthreads mutexes.
965         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
967         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
968         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
969         (__libc_cleanup_region_start, __libc_cleanup_region_end,
970         __libc_clean_end): Define these to call the cleanup function after
971         normal exit when they're supposed to.
973         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
974         Take new first arg DOIT, a boolean saying whether to really install
975         any cleanup handler.
976         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
977         (__libc_cleanup_end): Likewise.
978         * sysdeps/generic/bits/libc-lock.h: Same changes.
979         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
980         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
981         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
982         Likewise.
983         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
984         * sysdeps/generic/bits/stdio-lock.h
985         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
987 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
989         * elf/ldconfig.c (search_dir): Remove stale symlinks.
991 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
993         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
994         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
995         lookups in cache.
996         (_dl_lookup_versioned_symbol): Likewise.
997         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
998         relocation lookup.
999         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
1000         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
1001         (lookup_cache, lookup_cache_versioned): Add declarations.
1003 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
1005         * stdlib/tst-random.c (main): Swap parameters in fail call.
1006         Patch by Pete Bevin <pete@petebevin.com>.
1008 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
1010         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
1012 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
1014         * malloc/obstack.c: Indent preprocessor directives.
1015         Patch by Jim Meyering <meyering@ascend.com>.
1017         * po/ja.po: Update from translation team.
1019 2001-08-23  Roland McGrath  <roland@frob.com>
1021         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
1023         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
1024         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
1026 2001-08-22  Roland McGrath  <roland@frob.com>
1028         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
1029         __libc_lock_define_recursive.
1030         * elf/dl-open.c: Don't declare it here any more.
1031         * elf/dl-close.c: Likewise.
1032         * elf/dl-lookup.c: Likewise.
1033         * elf/dl-iteratephdr.c: Likewise.
1034         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
1035         __libc_lock_unlock_recursive.
1036         * elf/dl-close.c (_dl_close): Likewise
1037         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
1038         * elf/dl-open.c (_dl_open): Likewise
1040         * sysdeps/generic/bits/libc-lock.h
1041         (__libc_lock_define_recursive): New macro.
1042         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
1043         (_IO_lock_lock): Use __libc_lock_lock_recursive.
1044         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
1046         * conform/conformtest.pl (checknamespace): Sort the output list.
1048         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
1049         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
1050         definitions conditional on [__USE_XOPEN].
1052         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
1053         these unconditionally, not only use [__USE_BSD], so as to match
1054         the sysdeps/unix/sysv/linux files.
1056 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
1058         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
1059         avoid warnings.
1061         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
1062         DL_LOOKUP_ADDRESS.
1064 2001-08-22  Roland McGrath  <roland@frob.com>
1066         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
1067         conditionalization of sa_handler/sa_sigaction member types to
1068         match the sysdeps/unix/sysv/linux file.
1070 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
1072         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
1073         symbol sizes a bit better.
1075         * sysdeps/ia64/strncpy.S: Complete rewrite.
1076         Contributed by Jakub Jelinek <jakub@redhat.com>.
1078         * string/stratcliff.c (main): Add strncpy test.
1080 2001-08-22  Roland McGrath  <roland@frob.com>
1082         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
1083         and don't declare unsetenv or _environ directly.
1084         (unsetenv): Return int, not void.  Use __environ instead of _environ.
1086 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
1088         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
1089         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
1090         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
1091         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
1092         test for cmsg struct size.
1094 2001-04-23  Paul Eggert  <eggert@twinsun.com>
1096         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
1097         Rename __argc to ___argc in prototypes to avoid compatibility
1098         problems with systems that reserve the identifier "__argc".
1099         Similarly for __argv.
1101 2001-08-21  Roland McGrath  <roland@frob.com>
1103         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
1105         * mach/Makefile (tests): Removed.
1106         * mach/hello.c: File removed.
1108 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
1110         * po/sv.po: Update from translation team.
1112         * stdio-common/vfscanf.c: Fix handling of %l[].
1113         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
1115         * libio/Makefile (tests): Add tst-sscanf.
1116         * libio/tst-sscanf.c: New file.
1118         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
1119         * malloc/mtrace.c (tr_where): dli_sname always points to a
1120         non-empty string if != NULL.
1121         Reported by Tim Janik <timj@gtk.org>.
1123 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
1125         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
1126         buf.  Free resources on failure.
1127         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
1128         (makefd_xprt): Likewise.
1129         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
1130         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
1131         * sunrpc/auth_unix.c (authunix_create): Likewise.
1133 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
1135         * string/strnlen.c: Remove.
1136         * sysdeps/generic/strnlen.c: New.
1137         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
1139 2001-08-21  Roland McGrath  <roland@frob.com>
1141         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
1142         as a macro, not an extern inline function.
1144         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
1145         * Versions.def (libc): Add GLIBC_2.2.5 set.
1146         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
1147         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
1149 2001-08-20  Roland McGrath  <roland@frob.com>
1151         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
1152         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
1154 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
1156         * string/bits/string2.h: Remove strnlen optimization here.
1157         * sysdeps/i386/i486/bits/string.h: Add it here.
1159 2001-08-21  Wolfram Gloger  <wg@malloc.de>
1161         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
1163 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
1165         * po/gl.po: Update from translation team.
1167 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
1169         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
1170         * misc/err.c (convert_and_print): Likewise.
1172         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
1173         function calls.
1175 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1177         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
1178         change of the gregset_t type.
1179         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
1181 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
1183         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
1185 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
1187         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
1189         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
1191 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
1193         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
1194         before calling the cthreads initialization code.
1196 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
1198         * argp/argp-help.c: Fix two problems introduced in last change.
1200         * include/dirent.h: Include <dirstream.h> first.
1202 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
1204         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
1206         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
1207         * sunrpc/xdr_rec.c: Likewise.
1208         * sunrpc/xdr_mem.c: Likewise.
1209         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
1210         * sunrpc/rpc_cmsg.c: Likewise.
1211         * sunrpc/getrpcport.c (getrpcport): Likewise.
1212         * sunrpc/clnt_simp.c (callrpc): Likewise.
1213         * sunrpc/clnt_gen.c (clnt_create): Likewise.
1214         * string/envz.c: Likewise.
1216         * po/ko.po: Update from translation team.
1218         * argp/argp-help.c: Handle wide oriented stderr stream.
1220 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
1222         * sysdeps/generic/strtol.c: Little optimizations.  Add some
1223         __builtin_expect.
1225         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
1227         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
1228         * wcsmbs/wcwidth.c (wcwdith): Likewise.
1229         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
1231         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
1233         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
1235         * time/time.h (struct timespec): Use __time_t for tv_sec element.
1237         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
1238         wchar_t for function declarations and defintions.
1240         * misc/sys/select.h: Define __need_time_t before including <time.h>.
1241         Define suseconds_t if it hasn't happened yet.
1243         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
1245         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
1247         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
1248         <stddef.h>.
1250         * conform/data/stddef.h-data: Remove wint_t.
1252         * conform/conformtest.pl: Change namespace test to take #undef
1253         lines into account.
1255         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
1257         * conform/data/sys/socket.h-data: Add sockatmark.
1259 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
1261         * io/fts.c: Update from recent BSD source.
1263 2001-08-17  Roland McGrath  <roland@frob.com>
1265         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
1266         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
1267         Likewise.
1269 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
1271         * locale/duplocale.c (__duplocale): Also initialize the special
1272         __ctype_* elements.
1274         * conform/data/netdb.h-data: Adjust gai_strerror return type.
1276 2001-08-17  Andreas Jaeger  <aj@suse.de>
1278         * misc/getpass.c: Include wchar.h for prototypes.
1279         * malloc/obstack.c: Likewise.
1281 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
1283         * sunrpc/svc_simple.c (universal): Use __write instead of write.
1285         * wcsmbs/wcscoll.c: Also define __wcscoll.
1286         * include/wchar.h: Declare __wcscoll.
1288         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
1289         * libio/vwprintf.c: Likewise.
1290         * libio/wprintf.c: Likewise.
1292         * iconv/gconv_cache.c: Use __munmap instead of munmap.
1294 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
1296         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
1297         instead of mbrtowc.
1298         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
1299         wcslen, and __wcscoll instead of wcscoll.
1301         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
1303         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
1304         __getuid instead of getuid.
1306         * stdio-common/perror.c (perror): Use __close instead of close.
1307         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
1308         * libio/freopen.c (freopen): Likewise.
1309         * libio/freopen64.c (freopen64): Likewise.
1311         * libio/tst-ungetwc2.c (main): Define str const.
1313         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
1314         * libio/fwprintf.c: Also define __fwprintf.
1315         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
1316         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
1317         * assert/assert-perr.c: Likewise.
1318         * assert/assert.c: Likewise.
1319         * gmon/gmon.c: Likewise.
1320         * inet/rcmd.c: Likewise.
1321         * malloc/obstack.c: Likewise.
1322         * misc/err.c: Likewise.
1323         * misc/error.c: Likewise.
1324         * misc/getpass.c: Likewise.
1325         * posix/getopt.c: Likewise.
1326         * resolv/res_hconf.c: Likewise.
1327         * stdio-common/perror.c: Likewise.
1328         * stdio-common/psignal.c: Likewise.
1329         * stdlib/fmtmsg.c: Likewise.
1330         * sunrpc/auth_unix.c: Likewise.
1331         * sunrpc/clnt_perr.c: Likewise.
1332         * sunrpc/clnt_tcp.c: Likewise.
1333         * sunrpc/clnt_udp.c: Likewise.
1334         * sunrpc/clnt_unix.c: Likewise.
1335         * sunrpc/svc_simple.c: Likewise.
1336         * sunrpc/svc_tcp.c: Likewise.
1337         * sunrpc/svc_udp.c: Likewise.
1338         * sunrpc/svc_unix.c: Likewise.
1339         * sunrpc/xdr.c: Likewise.
1340         * sunrpc/xdr_array.c: Likewise.
1341         * sunrpc/xdr_rec.c: Likewise.
1342         * sunrpc/xdr_ref.c: Likewise.
1343         * sysdeps/generic/wordexp.c: Likewise.
1345         * po/it.po: Update from translation team.
1347         * misc/err.c: Handle wide oriented stderr stream.
1349 2001-08-14  Tom Rix  <trix@redhat.com>
1351         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
1352         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
1354 2001-08-13  Tom Rix  <trix@redhat.com>
1356         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
1357         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
1358         and __intptr_t.
1360 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1362         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
1363         Store the access registers to the ucontext structure.
1364         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
1365         Likewise.
1367         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
1368         Load the access registers from the ucontext structure.
1369         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
1370         Likewise.
1372         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
1373         offsets to the new ucontext layout.
1374         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
1376         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
1377         of the ucontext structure.
1378         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
1380 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
1382         * misc/error.c (error): Handle wide oriented stderr stream correctly.
1383         (error_at_line): Likewise.
1385         * stdio-common/perror.c (perror): Implement according to standard.
1386         The stream orientation must not be changed if the stream was not
1387         oriented before the call.
1388         * stdio-common/Makefile (tests): Add tst-perror.
1389         * stdio-common/tst-perror.c: New file.
1392 See ChangeLog.12 for earlier changes.