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