1 2001-09-20 Ulrich Drepper <drepper@redhat.com>
3 * malloc/memusage.sh: Make -n option actually do something.
5 2001-09-20 Andreas Jaeger <aj@suse.de>
7 * elf/elf.h (R_390_NUM): Correct value.
9 * Versions.def: Add missing versions 2.2.3 for libthread_db and
12 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
13 for x86-64, install x86-64 into */lib64.
15 * shlib-versions: Add x86-64.
17 * elf/elf.h: Add x86-64 relocations.
19 2001-09-19 Ulrich Drepper <drepper@redhat.com>
21 * po/fr.po: Update from translation team.
23 2001-09-19 Andreas Jaeger <aj@suse.de>
25 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
26 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
27 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
28 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
29 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
30 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
31 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
32 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
33 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
34 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
35 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
36 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
37 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
38 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
39 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
40 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
41 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
42 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
43 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
44 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
45 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
46 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
47 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
48 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
49 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
50 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
51 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
52 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
53 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
54 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
55 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
56 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
57 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
58 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
59 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
60 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
61 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
62 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
63 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
64 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
65 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
66 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
67 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
68 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
69 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
70 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
71 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
72 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
73 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
74 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
75 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
76 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
77 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
78 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
79 * sysdeps/unix/x86_64/sysdep.S: New file.
80 * sysdeps/unix/x86_64/sysdep.h: New file.
81 * sysdeps/x86_64/Implies: New file.
82 * sysdeps/x86_64/Makefile: New file.
83 * sysdeps/x86_64/Versions: New file.
84 * sysdeps/x86_64/__longjmp.S: New file.
85 * sysdeps/x86_64/abort-instr.h: New file.
86 * sysdeps/x86_64/atomicity.h: New file.
87 * sysdeps/x86_64/bits/endian.h: New file.
88 * sysdeps/x86_64/bits/setjmp.h: New file.
89 * sysdeps/x86_64/bits/string.h: New file.
90 * sysdeps/x86_64/bp-asm.h: New file.
91 * sysdeps/x86_64/bsd-_setjmp.S: New file.
92 * sysdeps/x86_64/bsd-setjmp.S: New file.
93 * sysdeps/x86_64/dl-machine.h: New file.
94 * sysdeps/x86_64/elf/initfini.c: New file.
95 * sysdeps/x86_64/elf/start.S: New file.
96 * sysdeps/x86_64/ffs.c: New file.
97 * sysdeps/x86_64/ffsll.c: New file.
98 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
99 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
100 * sysdeps/x86_64/fpu/e_acosl.c: New file.
101 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
102 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
103 * sysdeps/x86_64/fpu/e_expl.c: New file.
104 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
105 * sysdeps/x86_64/fpu/e_log10l.S: New file.
106 * sysdeps/x86_64/fpu/e_log2l.S: New file.
107 * sysdeps/x86_64/fpu/e_logl.S: New file.
108 * sysdeps/x86_64/fpu/e_powl.S: New file.
109 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
110 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
111 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
112 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
113 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
114 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
115 * sysdeps/x86_64/fpu/fegetenv.c: New file.
116 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
117 * sysdeps/x86_64/fpu/fegetround.c: New file.
118 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
119 * sysdeps/x86_64/fpu/fesetenv.c: New file.
120 * sysdeps/x86_64/fpu/fesetround.c: New file.
121 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
122 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
123 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
124 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
125 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
126 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
127 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
128 * sysdeps/x86_64/fpu/s_atanl.c: New file.
129 * sysdeps/x86_64/fpu/s_cosl.S: New file.
130 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
131 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
132 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
133 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
134 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
135 * sysdeps/x86_64/fpu/s_logbl.c: New file.
136 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
137 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
138 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
139 * sysdeps/x86_64/fpu/s_rintl.c: New file.
140 * sysdeps/x86_64/fpu/s_significandl.c: New file.
141 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
142 * sysdeps/x86_64/fpu/s_sinl.S: New file.
143 * sysdeps/x86_64/fpu/s_tanl.S: New file.
144 * sysdeps/x86_64/gmp-mparam.h: New file.
145 * sysdeps/x86_64/hp-timing.c: New file.
146 * sysdeps/x86_64/hp-timing.h: New file.
147 * sysdeps/x86_64/htonl.S: New file.
148 * sysdeps/x86_64/memusage.h: New file.
149 * sysdeps/x86_64/setjmp.S: New file.
150 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
151 * sysdeps/x86_64/stackinfo.h: New file.
152 * sysdeps/x86_64/sysdep.h: New file.
153 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
155 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
158 2001-09-18 Ulrich Drepper <drepper@redhat.com>
160 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
161 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
163 2001-09-18 Andreas Schwab <schwab@suse.de>
165 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
166 list, now that l_scope is a pointer.
168 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
171 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
173 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
174 (elf_machine_rela_relative): Add a missing declaration.
176 2001-09-18 Jakub Jelinek <jakub@redhat.com>
178 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New.
179 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New.
180 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
183 2001-09-18 Ulrich Drepper <drepper@redhat.com>
185 * elf/ldd.bash.in: Update copyright message.
187 2001-09-17 H.J. Lu <hjl@gnu.org>
189 * hurd/hurdmalloc.c (bcopy): Removed.
190 (realloc): Replace bcopy with memcpy.
191 * hurd/path-lookup.c (file_name_path_scan): Likewise.
192 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
193 * sunrpc/rpcinfo.c (pmapdump): Likewise.
195 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
196 (gethostbyaddr): Likewise.
197 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
199 2001-09-18 Ulrich Drepper <drepper@redhat.com>
201 * sysdeps/gnu/eval.c: Removed.
203 2001-09-18 Andreas Jaeger <aj@suse.de>
205 * sysdeps/i386/fpu/s_logbl.S: Move to ...
206 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
208 * sysdeps/i386/fpu/s_rintl.S: Move to ...
209 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
211 * sysdeps/i386/fpu/s_significandl.S: Move to ...
212 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
214 2001-09-16 Ulrich Drepper <drepper@redhat.com>
216 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
219 2001-09-14 H.J. Lu <hjl@gnu.org>
221 * sysdeps/mips/fpu/libm-test-ulps: Updated.
223 2001-09-14 Ulrich Drepper <drepper@redhat.com>
225 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
226 Patch by Florian La Roche <laroche@redhat.com>.
228 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
230 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
233 2001-09-14 Andreas Schwab <schwab@suse.de>
235 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
236 Sumner <bls@sgi.com>.
237 * posix/execlp.c: Likewise.
239 2001-09-13 Jakub Jelinek <jakub@redhat.com>
241 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
242 is already found earlier in the search scope.
244 2001-09-12 Jakub Jelinek <jakub@redhat.com>
246 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
249 2001-09-13 Ulrich Drepper <drepper@redhat.com>
251 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
253 2001-09-12 Ulrich Drepper <drepper@redhat.com>
255 * config.h.in: Enforce optimization to be used.
256 * Makeconfig (preprocess-versions): Define ASSEMBLER.
257 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
258 * posix/Makefile (annexc-CFLAGS): Define to -O.
259 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
261 2001-09-11 Ulrich Drepper <drepper@redhat.com>
263 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
264 Patch by Stephan Kulow.
266 2001-09-08 Ben Collins <bcollins@debian.org>
268 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
269 usage of RESOLVE() (r_type, not reloc->r_type).
271 2001-09-08 Ulrich Drepper <drepper@redhat.com>
273 * elf/dl-object.c: Avoid allocating extra memory block for name.
274 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
275 allocated separately.
276 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
278 2001-09-08 H.J. Lu <hjl@gnu.org>
280 * po/zh_TW.po: Fix a typo.
282 2001-09-07 Tom Rix <trix@redhat.com>
284 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
286 2001-08-26 Tom Rix <trix@redhat.com>
288 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
289 command line options.
290 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
291 * sysdeps/unix/sysv/aix/start.c: Removed.
292 * sysdeps/unix/sysv/aix/start-libc.c: New file.
293 * sysdeps/unix/sysv/aix/init-first.c: New file.
294 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
296 2001-09-08 Ben Collins <bcollins@debian.org>
298 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
299 * sysdeps/generic/dl-machine.h: Likewise.
300 * sysdeps/hppa/dl-fptr.c: Likewise.
301 * sysdeps/ia64/dl-fptr.c: Likewise.
302 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
303 * sysdeps/mips/dl-machine.h: Likewise.
304 * sysdeps/mips/mips64/dl-machine.h: Likewise.
305 * sysdeps/powerpc/dl-machine.c: Likewise.
307 2001-09-07 Ben Collins <bcollins@debian.org>
309 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
311 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
313 2001-09-08 Ulrich Drepper <drepper@redhat.com>
315 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
316 dependencies if necessary.
318 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
319 loaded directly) determine length if l_initfini list by iterating
320 over its elements. Minor optimizations.
321 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
322 for dependency objects.
323 If object was already loaded check whether any of the dependencies
324 is already on the relocation dependency list. If yes, remove the
325 latter. Minor optimizations.
326 * elf/dl-lookup.c (add_dependency): Add check for self reference of
327 maps here. Search l_initfini list only if the object was loaded
328 directly and not only as a dependency.
329 (_dl_lookup_symbol): Add relocation dependency also if object
330 is not in global scope. Remove test for self-reference here.
331 (_dl_lookup_versioned_symbol): Likewise.
332 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
333 element of first name record.
334 * elf/loadtest.c: Add some more test to recognize early if an object
336 * elf/Makefile: Add rules to build and run reldep5.
337 * elf/reldep5.c: New file.
338 * elf/reldepmod5.c: New file.
339 * elf/reldepmod6.c: New file.
341 * elf/reldep2.c: Fix typo.
343 2001-09-07 Ulrich Drepper <drepper@redhat.com>
345 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
346 elements. Change l_scope to be a pointer only.
347 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
348 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
349 here add searchlist of newly open file to the dependency's scope.
350 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
351 only searchlist from its scope. Free own scope array if necessary.
352 * elf/Makefile (tests): Add dblload and dblunload now.
354 2001-09-06 Andreas Jaeger <aj@suse.de>
356 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
359 2001-09-05 Ulrich Drepper <drepper@redhat.com>
361 * elf/Makefile: Add rules to build new tests. Don't run them yet since
363 * elf/dblload.c: New file.
364 * elf/dblloadmod1.c: New file.
365 * elf/dblloadmod2.c: New file.
366 * elf/dblloadmod3.c: New file.
367 * elf/dblunload.c: New file.
369 2001-09-04 Richard Henderson <rth@redhat.com>
371 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
372 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
374 2001-09-04 Ulrich Drepper <drepper@redhat.com>
376 Correct very misleading message for error in failed runtime relocation.
377 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
379 (_dl_signal_cerror): Likewise.
380 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
381 * elf/dl-close.c: Likewise.
382 * elf/dl-deps.c: Likewise.
383 * elf/dl-load.c: Likewise.
384 * elf/dl-lookup.c: Likewise.
385 * elf/dl-open.c: Likewise.
386 * elf/dl-reloc.c: Likewise.
387 * elf/dl-sym.c: Likewise.
388 * elf/dl-version.c: Likewise.
389 * sysdeps/generic/dl-sysdep.c: Likewise.
391 2001-09-04 Jakub Jelinek <jakub@redhat.com>
393 * iconv/strtab.c (strtabinit): Initialize null Strent.
394 (newstring): Move len == 0 handling...
395 (strtabadd): ...here.
396 If len == 1, return null Strent.
397 When inserting a suffix of an existing string, check if
398 it is not equal to some suffix already recorded.
399 Copy left and right members over if adding longer string.
401 2001-09-04 Jakub Jelinek <jakub@redhat.com>
403 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
405 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
406 (__syscall_gethostname): Add prototype.
408 2001-09-04 Ulrich Drepper <drepper@redhat.com>
410 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
412 2001-09-02 Ulrich Drepper <drepper@redhat.com>
414 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
416 2001-08-27 Roland McGrath <roland@frob.com>
418 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
419 short, copy that much into NAME anyway before returning error.
421 2001-09-01 Richard Henderson <rth@redhat.com>
423 * sysdeps/alpha/elf/Dist: Remove file.
424 * sysdeps/alpha/elf/Makefile: Remove file.
425 * sysdeps/alpha/elf/crtbegin.S: Remove file.
426 * sysdeps/alpha/elf/crtend.S: Remove file.
427 * sysdeps/alpha/elf/initfini.c: New file.
429 2001-09-01 Mark Kettenis <kettenis@gnu.org>
431 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
432 * iconv/tst-iconv3.c: Likewise.
434 2001-09-01 Jakub Jelinek <jakub@redhat.com>
436 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
438 2001-09-01 Ulrich Drepper <drepper@redhat.com>
440 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
442 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
443 * iconv/iconv_prog.c (insert_cache): New function.
444 (print_known_names): If cache is used call insert_cache to use the
445 information from the cache [PR libc/2509].
447 2001-08-31 Ulrich Drepper <drepper@redhat.com>
449 * time/strptime.c (strptime_internal): Recognize 'l' format and
450 handle it like 'I' for symmetry with strftime.
452 2001-08-31 Richard Henderson <rth@redhat.com>
454 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
455 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
456 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
457 (print_statistics): Make scalar unsigned long long.
458 * sysdeps/alpha/hp-timing.h: New file.
460 2001-08-31 Jakub Jelinek <jakub@redhat.com>
462 * stdio-common/perror.c (perror): Save errno early, pass it
463 down to perror_internal.
464 (perror_internal): Add errnum argument.
466 2001-08-31 Jakub Jelinek <jakub@redhat.com>
468 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
469 Don't add old memory content for R_ALPHA_REFQUAD.
471 2001-08-30 Ulrich Drepper <drepper@redhat.com>
473 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
476 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
477 instead of open, __close instead of close, __getpagesize instead
480 * string/argz-stringify.c (__argz_stringify): Use __strnlen
482 * include/string.h (strndupa): Redefine here to use __strnlen
484 * string/strndup.c (__strndup): Use __strnlen not strnlen.
486 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
489 2001-08-30 Jakub Jelinek <jakub@redhat.com>
491 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
492 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
493 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
494 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
495 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
496 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
497 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
499 2001-08-30 Ulrich Drepper <drepper@redhat.com>
501 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
503 2001-08-30 Andreas Jaeger <aj@suse.de>
505 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
506 contributed Stephen L Moshier.
508 2001-08-30 Jakub Jelinek <jakub@redhat.com>
510 * sunrpc/etc.rpc (sgi_fam): Add.
512 2001-08-30 Ulrich Drepper <drepper@redhat.com>
514 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
516 2001-08-29 Ulrich Drepper <drepper@redhat.com>
518 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
519 first is from a previous call.
520 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
522 2001-08-29 Andreas Schwab <schwab@suse.de>
524 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
526 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
528 * config.make.in (INSTALL_SCRIPT): Define.
529 * Makeconfig (INSTALL_SCRIPT): Define.
530 * Makerules (do-install-script): New macro to install scripts using
532 (install-bin-script): New rule to install scripts with
534 (install-bin-script-nosubdir): New rule.
535 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
536 (distinfo-vars): Add $(install-bin-script).
537 * Rules (others): Likewise.
538 * Makefile (glibcbug): Install with install-bin-script.
539 * debug/Makefile (xtrace): Likewise.
540 (catchsegv): Likewise.
541 * elf/Makefile (ldd): Likewise.
542 * malloc/Makefile (mtrace): Likewise.
543 * timezone/Makefile (tzselect): Likewise.
545 2001-08-29 H.J. Lu <hjl@gnu.org>
547 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
548 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
549 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
551 2001-08-29 Andreas Schwab <schwab@suse.de>
553 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
555 2001-08-28 H.J. Lu <hjl@gnu.org>
557 * Makeconfig (combreloc-LDFLAGS): New variable.
558 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
559 * config.make.in (have-z-combreloc): New variable.
560 * configure.in: Substitute libc_cv_z_combreloc.
562 2001-08-29 Ulrich Drepper <drepper@redhat.com>
564 * po/sv.po: Update from translation team.
565 * po/fr.po: Likewise.
566 * po/da.po: Likewise.
568 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
570 * Makerules: Fix a typo: MD% -> MD5.
572 2001-08-28 Ulrich Drepper <drepper@redhat.com>
574 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
575 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
577 2001-08-28 Andreas Jaeger <aj@suse.de>
579 * manual/libc-texinfo.sh: Add entry about free manuals.
581 * manual/contrib.texi (Contributors): Fix cross reference.
583 * manual/libc.texinfo (Copying): Include freemanuals.
585 * manual/Makefile (appendices): Add freemanuals.
587 * manual/freemanuals.texi: New file.
588 Patch by Brian Youmans <3diff@gnu.org>.
590 * manual/libm-err-tab.pl: Pretty print more platforms, print a
593 * manual/math.texi (Errors in Math Functions): Fix grammar, start
594 table on separate page.
595 Patch by Brian Youmans <3diff@gnu.org>.
597 2001-08-27 Ulrich Drepper <drepper@redhat.com>
599 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
600 the connection went down after we first used it try to connect
601 again and resend the message before printing to the console.
602 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
604 2001-08-27 Jakub Jelinek <jakub@redhat.com>
606 * string/tst-strlen.c (main): Test strnlen (, -1) too.
607 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
610 2001-08-27 Ulrich Drepper <drepper@redhat.com>
612 * iconv/strtab.c (searchstring): Use correct length for comparison.
613 (strtabadd): Account total size correct if new string has old string as
616 2001-08-27 Jakub Jelinek <jakub@redhat.com>
618 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
620 2001-08-27 Andreas Jaeger <aj@suse.de>
622 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
624 * math/libm-test.inc (j0_test): Add extra tests.
625 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
626 not x, in Hankel approximation.
627 Patches by Stephen L Moshier.
629 2001-08-26 Ulrich Drepper <drepper@redhat.com>
631 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
634 * configure.in: Fix test for .rela.dyn section.
636 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
638 2001-08-26 Jakub Jelinek <jakub@redhat.com>
640 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
641 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
642 Pass type_class to _dl_lookup_*.
643 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_clas parameter now.
644 Pass around just type_class instead of noexec, noplt pair.
645 (_dl_lookup_versioned_symbol): Likewise.
646 (_dl_lookup_symbol_skip): Pass around just type_class instead of
648 (_dl_lookup_versioned_symbol_skip): Likewise.
649 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
650 * elf/do-lookup.h (do_lookup): Likewise.
651 * include/link.h (struct link_map): Replace noexec and noplt fields
652 in l_lookup_cache with type_class field.
653 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
654 ELF_RTYPE_CLASS_COPY): Define.
655 Adjust prototypes for _dl_lookup_symbol and
656 _dl_lookup_versioned_symbol.
657 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
658 elf_machine_lookup_noexec_p): Remove.
659 (elf_machine_type_class): Define.
660 * sysdeps/arm/dl-machine.h: Likewise.
661 * sysdeps/hppa/dl-machine.h: Likewise.
662 * sysdeps/cris/dl-machine.h: Likewise.
663 * sysdeps/i386/dl-machine.h: Likewise.
664 * sysdeps/ia64/dl-machine.h: Likewise.
665 * sysdeps/m68k/dl-machine.h: Likewise.
666 * sysdeps/mips/mips64/dl-machine.h: Likewise.
667 * sysdeps/mips/dl-machine.h: Likewise.
668 * sysdeps/powerpc/dl-machine.h: Likewise.
669 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
670 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
671 * sysdeps/sh/dl-machine.h: Likewise.
672 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
673 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
675 2001-08-26 Ulrich Drepper <drepper@redhat.com>
677 * manual/message.texi (Advanced gettext functions): Change
678 description of plural forms for Slovak.
679 Reported by Marcel Telka <marcel@telka.sk>.
681 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
682 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
684 2001-08-26 Jakub Jelinek <jakub@redhat.com>
686 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
687 typo. Patch by Florian La Roche <laroche@redhat.com>.
689 2001-08-26 Ulrich Drepper <drepper@redhat.com>
691 * include/link.h (struct link_map): Add l_lookup_cache element.
692 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
693 (RESOLVE_MAP): Likewise.
694 (_dl_relocate_object): Remove cache initialization.
695 * elf/dl-lookup.c: Rip out cache handling code.
696 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
699 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
700 remove some __builtin_expect.
701 (_dl_lookup_versioned_symbol): Likewise.
703 * config.h.in: Add HAVE_Z_COMBRELOC.
704 * configure.in: Add test for -z combreloc.
706 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
707 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
708 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
709 case to almost no code.
711 2001-08-25 Ulrich Drepper <drepper@redhat.com>
713 * po/tr.po: Update from translation team.
715 2001-08-24 Andreas Jaeger <aj@suse.de>
717 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
720 2001-08-24 Ulrich Drepper <drepper@redhat.com>
722 * elf/rtld.c (print_statistics): Printf % after percent values.
723 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
725 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
726 don't have to compute the hash value and initialize current_value.
727 Move reference_name variable to where it is needed.
728 (_dl_lookup_versioned_symbol): Likewise.
730 2001-08-24 Roland McGrath <roland@frob.com>
732 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
733 Just test that strerror returns non-null for a few errno codes.
735 2001-08-23 Roland McGrath <roland@frob.com>
737 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
738 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
740 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
742 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
745 2001-08-24 Ulrich Drepper <drepper@redhat.com>
747 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
750 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
751 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
753 * elf/rtld.c: Include <sys/param.h>.
754 * elf/dl-reloc.c: Likewise.
756 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
758 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
759 empty to prevent junk from being generated.
760 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
762 2001-08-24 Jakub Jelinek <jakub@redhat.com>
764 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
765 records. Rename endrel to relative, initialize it to r, and use it
766 in elf_machine_rel_relative calls. Point r after relative relocs.
768 2001-08-24 Ulrich Drepper <drepper@redhat.com>
770 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
773 2001-08-24 Jakub Jelinek <jakub@redhat.com>
775 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
776 necessary. Undefine newly defined macros at the end.
777 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
778 Rename from elf_machine_rel_relative.
779 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
780 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
781 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
782 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
784 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
786 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
788 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
790 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
791 Likewise. Fix argument types.
792 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
793 Likewise. Fix argument types.
794 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
796 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
797 ElfW(Rel) in argument.
798 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
801 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
803 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
805 2001-08-24 Andreas Jaeger <aj@suse.de>
807 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
808 Stephen L Moshier <moshier@mediaone.net>.
810 2001-08-24 Ulrich Drepper <drepper@redhat.com>
812 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
813 first if RELCOUNT is set.
815 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
816 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
817 elf_machine_rel_relative.
818 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
820 * sysdeps/arm/dl-machine.h: Likewise.
821 * sysdeps/cris/dl-machine.h: Likewise.
822 * sysdeps/hppa/dl-machine.h: Likewise.
823 * sysdeps/i386/dl-machine.h: Likewise.
824 * sysdeps/ia64/dl-machine.h: Likewise.
825 * sysdeps/m68k/dl-machine.h: Likewise.
826 * sysdeps/mips/dl-machine.h: Likewise.
827 * sysdeps/powerpc/dl-machine.h: Likewise.
828 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
829 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
830 * sysdeps/sh/dl-machine.h: Likewise.
831 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
832 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
834 2001-08-23 Roland McGrath <roland@frob.com>
836 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
838 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
839 sysdeps/mach version. Implement counting ("recursive") mutexes
840 on top of cthreads mutexes.
841 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
843 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
844 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
845 (__libc_cleanup_region_start, __libc_cleanup_region_end,
846 __libc_clean_end): Define these to call the cleanup function after
847 normal exit when they're supposed to.
849 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
850 Take new first arg DOIT, a boolean saying whether to really install
852 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
853 (__libc_cleanup_end): Likewise.
854 * sysdeps/generic/bits/libc-lock.h: Same changes.
855 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
856 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
857 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
859 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
860 * sysdeps/generic/bits/stdio-lock.h
861 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
863 2001-08-23 Jakub Jelinek <jakub@redhat.com>
865 * elf/ldconfig.c (search_dir): Remove stale symlinks.
867 2001-08-23 Jakub Jelinek <jakub@redhat.com>
869 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
870 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
872 (_dl_lookup_versioned_symbol): Likewise.
873 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
875 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
876 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
877 (lookup_cache, lookup_cache_versioned): Add declarations.
879 2001-08-23 Ulrich Drepper <drepper@redhat.com>
881 * stdlib/tst-random.c (main): Swap parameters in fail call.
882 Patch by Pete Bevin <pete@petebevin.com>.
884 2001-08-23 Jakub Jelinek <jakub@redhat.com>
886 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
888 2001-08-23 Ulrich Drepper <drepper@redhat.com>
890 * malloc/obstack.c: Indent preprocessor directives.
891 Patch by Jim Meyering <meyering@ascend.com>.
893 * po/ja.po: Update from translation team.
895 2001-08-23 Roland McGrath <roland@frob.com>
897 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
899 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
900 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
902 2001-08-22 Roland McGrath <roland@frob.com>
904 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
905 __libc_lock_define_recursive.
906 * elf/dl-open.c: Don't declare it here any more.
907 * elf/dl-close.c: Likewise.
908 * elf/dl-lookup.c: Likewise.
909 * elf/dl-iteratephdr.c: Likewise.
910 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
911 __libc_lock_unlock_recursive.
912 * elf/dl-close.c (_dl_close): Likewise
913 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
914 * elf/dl-open.c (_dl_open): Likewise
916 * sysdeps/generic/bits/libc-lock.h
917 (__libc_lock_define_recursive): New macro.
918 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
919 (_IO_lock_lock): Use __libc_lock_lock_recursive.
920 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
922 * conform/conformtest.pl (checknamespace): Sort the output list.
924 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
925 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
926 definitions conditional on [__USE_XOPEN].
928 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
929 these unconditionally, not only use [__USE_BSD], so as to match
930 the sysdeps/unix/sysv/linux files.
932 2001-08-22 Ulrich Drepper <drepper@redhat.com>
934 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
937 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
940 2001-08-22 Roland McGrath <roland@frob.com>
942 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
943 conditionalization of sa_handler/sa_sigaction member types to
944 match the sysdeps/unix/sysv/linux file.
946 2001-08-22 Ulrich Drepper <drepper@redhat.com>
948 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
949 symbol sizes a bit better.
951 * sysdeps/ia64/strncpy.S: Complete rewrite.
952 Contributed by Jakub Jelinek <jakub@redhat.com>.
954 * string/stratcliff.c (main): Add strncpy test.
956 2001-08-22 Roland McGrath <roland@frob.com>
958 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
959 and don't declare unsetenv or _environ directly.
960 (unsetenv): Return int, not void. Use __environ instead of _environ.
962 2001-08-01 Mark Kettenis <kettenis@gnu.org>
964 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
965 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
966 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
967 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
968 test for cmsg struct size.
970 2001-04-23 Paul Eggert <eggert@twinsun.com>
972 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
973 Rename __argc to ___argc in prototypes to avoid compatibility
974 problems with systems that reserve the identifier "__argc".
975 Similarly for __argv.
977 2001-08-21 Roland McGrath <roland@frob.com>
979 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
981 * mach/Makefile (tests): Removed.
982 * mach/hello.c: File removed.
984 2001-08-22 Ulrich Drepper <drepper@redhat.com>
986 * po/sv.po: Update from translation team.
988 * stdio-common/vfscanf.c: Fix handling of %l[].
989 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
991 * libio/Makefile (tests): Add tst-sscanf.
992 * libio/tst-sscanf.c: New file.
994 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
995 * malloc/mtrace.c (tr_where): dli_sname always points to a
996 non-empty string if != NULL.
997 Reported by Tim Janik <timj@gtk.org>.
999 2001-08-22 Jakub Jelinek <jakub@redhat.com>
1001 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
1002 buf. Free resources on failure.
1003 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
1004 (makefd_xprt): Likewise.
1005 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
1006 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
1007 * sunrpc/auth_unix.c (authunix_create): Likewise.
1009 2001-08-21 Jakub Jelinek <jakub@redhat.com>
1011 * string/strnlen.c: Remove.
1012 * sysdeps/generic/strnlen.c: New.
1013 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
1015 2001-08-21 Roland McGrath <roland@frob.com>
1017 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
1018 as a macro, not an extern inline function.
1020 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
1021 * Versions.def (libc): Add GLIBC_2.2.5 set.
1022 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
1023 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
1025 2001-08-20 Roland McGrath <roland@frob.com>
1027 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
1028 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
1030 2001-08-21 Ulrich Drepper <drepper@redhat.com>
1032 * string/bits/string2.h: Remove strnlen optimization here.
1033 * sysdeps/i386/i486/bits/string.h: Add it here.
1035 2001-08-21 Wolfram Gloger <wg@malloc.de>
1037 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
1039 2001-08-21 Ulrich Drepper <drepper@redhat.com>
1041 * po/gl.po: Update from translation team.
1043 2001-08-20 Ulrich Drepper <drepper@redhat.com>
1045 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
1046 * misc/err.c (convert_and_print): Likewise.
1048 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
1051 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1053 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
1054 change of the gregset_t type.
1055 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
1057 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
1059 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
1061 2001-08-20 Ulrich Drepper <drepper@redhat.com>
1063 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
1065 * string/strnlen.c: Fix the implementation. We cannot use memchr.
1067 2001-08-18 Mark Kettenis <kettenis@gnu.org>
1069 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
1070 before calling the cthreads initialization code.
1072 2001-08-20 Ulrich Drepper <drepper@redhat.com>
1074 * argp/argp-help.c: Fix two problems introduced in last change.
1076 * include/dirent.h: Include <dirstream.h> first.
1078 2001-08-19 Ulrich Drepper <drepper@redhat.com>
1080 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
1082 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
1083 * sunrpc/xdr_rec.c: Likewise.
1084 * sunrpc/xdr_mem.c: Likewise.
1085 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
1086 * sunrpc/rpc_cmsg.c: Likewise.
1087 * sunrpc/getrpcport.c (getrpcport): Likewise.
1088 * sunrpc/clnt_simp.c (callrpc): Likewise.
1089 * sunrpc/clnt_gen.c (clnt_create): Likewise.
1090 * string/envz.c: Likewise.
1092 * po/ko.po: Update from translation team.
1094 * argp/argp-help.c: Handle wide oriented stderr stream.
1096 2001-08-18 Ulrich Drepper <drepper@redhat.com>
1098 * sysdeps/generic/strtol.c: Little optimizations. Add some
1101 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
1103 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
1104 * wcsmbs/wcwidth.c (wcwdith): Likewise.
1105 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
1107 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
1109 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
1111 * time/time.h (struct timespec): Use __time_t for tv_sec element.
1113 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
1114 wchar_t for function declarations and defintions.
1116 * misc/sys/select.h: Define __need_time_t before including <time.h>.
1117 Define suseconds_t if it hasn't happened yet.
1119 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
1121 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
1123 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
1126 * conform/data/stddef.h-data: Remove wint_t.
1128 * conform/conformtest.pl: Change namespace test to take #undef
1131 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
1133 * conform/data/sys/socket.h-data: Add sockatmark.
1135 2001-08-17 Ulrich Drepper <drepper@redhat.com>
1137 * io/fts.c: Update from recent BSD source.
1139 2001-08-17 Roland McGrath <roland@frob.com>
1141 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
1142 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
1145 2001-08-17 Ulrich Drepper <drepper@redhat.com>
1147 * locale/duplocale.c (__duplocale): Also initialize the special
1150 * conform/data/netdb.h-data: Adjust gai_strerror return type.
1152 2001-08-17 Andreas Jaeger <aj@suse.de>
1154 * misc/getpass.c: Include wchar.h for prototypes.
1155 * malloc/obstack.c: Likewise.
1157 2001-08-17 Ulrich Drepper <drepper@redhat.com>
1159 * sunrpc/svc_simple.c (universal): Use __write instead of write.
1161 * wcsmbs/wcscoll.c: Also define __wcscoll.
1162 * include/wchar.h: Declare __wcscoll.
1164 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
1165 * libio/vwprintf.c: Likewise.
1166 * libio/wprintf.c: Likewise.
1168 * iconv/gconv_cache.c: Use __munmap instead of munmap.
1170 2001-08-16 Ulrich Drepper <drepper@redhat.com>
1172 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
1174 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
1175 wcslen, and __wcscoll instead of wcscoll.
1177 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
1179 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
1180 __getuid instead of getuid.
1182 * stdio-common/perror.c (perror): Use __close instead of close.
1183 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
1184 * libio/freopen.c (freopen): Likewise.
1185 * libio/freopen64.c (freopen64): Likewise.
1187 * libio/tst-ungetwc2.c (main): Define str const.
1189 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
1190 * libio/fwprintf.c: Also define __fwprintf.
1191 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
1192 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
1193 * assert/assert-perr.c: Likewise.
1194 * assert/assert.c: Likewise.
1195 * gmon/gmon.c: Likewise.
1196 * inet/rcmd.c: Likewise.
1197 * malloc/obstack.c: Likewise.
1198 * misc/err.c: Likewise.
1199 * misc/error.c: Likewise.
1200 * misc/getpass.c: Likewise.
1201 * posix/getopt.c: Likewise.
1202 * resolv/res_hconf.c: Likewise.
1203 * stdio-common/perror.c: Likewise.
1204 * stdio-common/psignal.c: Likewise.
1205 * stdlib/fmtmsg.c: Likewise.
1206 * sunrpc/auth_unix.c: Likewise.
1207 * sunrpc/clnt_perr.c: Likewise.
1208 * sunrpc/clnt_tcp.c: Likewise.
1209 * sunrpc/clnt_udp.c: Likewise.
1210 * sunrpc/clnt_unix.c: Likewise.
1211 * sunrpc/svc_simple.c: Likewise.
1212 * sunrpc/svc_tcp.c: Likewise.
1213 * sunrpc/svc_udp.c: Likewise.
1214 * sunrpc/svc_unix.c: Likewise.
1215 * sunrpc/xdr.c: Likewise.
1216 * sunrpc/xdr_array.c: Likewise.
1217 * sunrpc/xdr_rec.c: Likewise.
1218 * sunrpc/xdr_ref.c: Likewise.
1219 * sysdeps/generic/wordexp.c: Likewise.
1221 * po/it.po: Update from translation team.
1223 * misc/err.c: Handle wide oriented stderr stream.
1225 2001-08-14 Tom Rix <trix@redhat.com>
1227 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
1228 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
1230 2001-08-13 Tom Rix <trix@redhat.com>
1232 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
1233 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
1236 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
1238 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
1239 Store the access registers to the ucontext structure.
1240 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
1243 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
1244 Load the access registers from the ucontext structure.
1245 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
1248 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
1249 offsets to the new ucontext layout.
1250 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
1252 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
1253 of the ucontext structure.
1254 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
1256 2001-08-15 Ulrich Drepper <drepper@redhat.com>
1258 * misc/error.c (error): Handle wide oriented stderr stream correctly.
1259 (error_at_line): Likewise.
1261 * stdio-common/perror.c (perror): Implement according to standard.
1262 The stream orientation must not be changed if the stream was not
1263 oriented before the call.
1264 * stdio-common/Makefile (tests): Add tst-perror.
1265 * stdio-common/tst-perror.c: New file.
1268 See ChangeLog.12 for earlier changes.