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