1 2001-09-20 Ulrich Drepper <drepper@redhat.com>
3 * malloc/memusage.c (me): Always use dlsym() to find the real
6 * malloc/memusage.sh: Make -n option actually do something.
8 2001-09-20 Andreas Jaeger <aj@suse.de>
10 * elf/elf.h (R_390_NUM): Correct value.
12 * Versions.def: Add missing versions 2.2.3 for libthread_db and
15 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
16 for x86-64, install x86-64 into */lib64.
18 * shlib-versions: Add x86-64.
20 * elf/elf.h: Add x86-64 relocations.
22 2001-09-19 Ulrich Drepper <drepper@redhat.com>
24 * po/fr.po: Update from translation team.
26 2001-09-19 Andreas Jaeger <aj@suse.de>
28 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
29 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
30 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
31 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
32 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
33 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
34 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
35 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
36 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
37 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
38 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
39 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
40 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
41 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
42 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
43 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
44 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
45 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
46 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
47 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
48 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
49 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
50 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
51 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
52 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
53 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
54 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
55 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
56 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
57 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
58 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
59 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
60 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
61 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
62 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
63 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
64 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
65 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
66 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
67 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
68 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
69 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
70 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
71 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
72 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
73 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
74 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
75 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
76 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
77 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
78 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
79 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
80 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
81 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
82 * sysdeps/unix/x86_64/sysdep.S: New file.
83 * sysdeps/unix/x86_64/sysdep.h: New file.
84 * sysdeps/x86_64/Implies: New file.
85 * sysdeps/x86_64/Makefile: New file.
86 * sysdeps/x86_64/Versions: New file.
87 * sysdeps/x86_64/__longjmp.S: New file.
88 * sysdeps/x86_64/abort-instr.h: New file.
89 * sysdeps/x86_64/atomicity.h: New file.
90 * sysdeps/x86_64/bits/endian.h: New file.
91 * sysdeps/x86_64/bits/setjmp.h: New file.
92 * sysdeps/x86_64/bits/string.h: New file.
93 * sysdeps/x86_64/bp-asm.h: New file.
94 * sysdeps/x86_64/bsd-_setjmp.S: New file.
95 * sysdeps/x86_64/bsd-setjmp.S: New file.
96 * sysdeps/x86_64/dl-machine.h: New file.
97 * sysdeps/x86_64/elf/initfini.c: New file.
98 * sysdeps/x86_64/elf/start.S: New file.
99 * sysdeps/x86_64/ffs.c: New file.
100 * sysdeps/x86_64/ffsll.c: New file.
101 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
102 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
103 * sysdeps/x86_64/fpu/e_acosl.c: New file.
104 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
105 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
106 * sysdeps/x86_64/fpu/e_expl.c: New file.
107 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
108 * sysdeps/x86_64/fpu/e_log10l.S: New file.
109 * sysdeps/x86_64/fpu/e_log2l.S: New file.
110 * sysdeps/x86_64/fpu/e_logl.S: New file.
111 * sysdeps/x86_64/fpu/e_powl.S: New file.
112 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
113 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
114 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
115 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
116 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
117 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
118 * sysdeps/x86_64/fpu/fegetenv.c: New file.
119 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
120 * sysdeps/x86_64/fpu/fegetround.c: New file.
121 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
122 * sysdeps/x86_64/fpu/fesetenv.c: New file.
123 * sysdeps/x86_64/fpu/fesetround.c: New file.
124 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
125 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
126 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
127 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
128 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
129 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
130 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
131 * sysdeps/x86_64/fpu/s_atanl.c: New file.
132 * sysdeps/x86_64/fpu/s_cosl.S: New file.
133 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
134 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
135 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
136 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
137 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
138 * sysdeps/x86_64/fpu/s_logbl.c: New file.
139 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
140 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
141 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
142 * sysdeps/x86_64/fpu/s_rintl.c: New file.
143 * sysdeps/x86_64/fpu/s_significandl.c: New file.
144 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
145 * sysdeps/x86_64/fpu/s_sinl.S: New file.
146 * sysdeps/x86_64/fpu/s_tanl.S: New file.
147 * sysdeps/x86_64/gmp-mparam.h: New file.
148 * sysdeps/x86_64/hp-timing.c: New file.
149 * sysdeps/x86_64/hp-timing.h: New file.
150 * sysdeps/x86_64/htonl.S: New file.
151 * sysdeps/x86_64/memusage.h: New file.
152 * sysdeps/x86_64/setjmp.S: New file.
153 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
154 * sysdeps/x86_64/stackinfo.h: New file.
155 * sysdeps/x86_64/sysdep.h: New file.
156 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
158 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
161 2001-09-18 Ulrich Drepper <drepper@redhat.com>
163 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
164 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
166 2001-09-18 Andreas Schwab <schwab@suse.de>
168 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
169 list, now that l_scope is a pointer.
171 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
174 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
176 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
177 (elf_machine_rela_relative): Add a missing declaration.
179 2001-09-18 Jakub Jelinek <jakub@redhat.com>
181 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New.
182 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New.
183 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
186 2001-09-18 Ulrich Drepper <drepper@redhat.com>
188 * elf/ldd.bash.in: Update copyright message.
190 2001-09-17 H.J. Lu <hjl@gnu.org>
192 * hurd/hurdmalloc.c (bcopy): Removed.
193 (realloc): Replace bcopy with memcpy.
194 * hurd/path-lookup.c (file_name_path_scan): Likewise.
195 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
196 * sunrpc/rpcinfo.c (pmapdump): Likewise.
198 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
199 (gethostbyaddr): Likewise.
200 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
202 2001-09-18 Ulrich Drepper <drepper@redhat.com>
204 * sysdeps/gnu/eval.c: Removed.
206 2001-09-18 Andreas Jaeger <aj@suse.de>
208 * sysdeps/i386/fpu/s_logbl.S: Move to ...
209 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
211 * sysdeps/i386/fpu/s_rintl.S: Move to ...
212 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
214 * sysdeps/i386/fpu/s_significandl.S: Move to ...
215 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
217 2001-09-16 Ulrich Drepper <drepper@redhat.com>
219 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
222 2001-09-14 H.J. Lu <hjl@gnu.org>
224 * sysdeps/mips/fpu/libm-test-ulps: Updated.
226 2001-09-14 Ulrich Drepper <drepper@redhat.com>
228 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
229 Patch by Florian La Roche <laroche@redhat.com>.
231 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
233 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
236 2001-09-14 Andreas Schwab <schwab@suse.de>
238 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
239 Sumner <bls@sgi.com>.
240 * posix/execlp.c: Likewise.
242 2001-09-13 Jakub Jelinek <jakub@redhat.com>
244 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
245 is already found earlier in the search scope.
247 2001-09-12 Jakub Jelinek <jakub@redhat.com>
249 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
252 2001-09-13 Ulrich Drepper <drepper@redhat.com>
254 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
256 2001-09-12 Ulrich Drepper <drepper@redhat.com>
258 * config.h.in: Enforce optimization to be used.
259 * Makeconfig (preprocess-versions): Define ASSEMBLER.
260 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
261 * posix/Makefile (annexc-CFLAGS): Define to -O.
262 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
264 2001-09-11 Ulrich Drepper <drepper@redhat.com>
266 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
267 Patch by Stephan Kulow.
269 2001-09-08 Ben Collins <bcollins@debian.org>
271 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
272 usage of RESOLVE() (r_type, not reloc->r_type).
274 2001-09-08 Ulrich Drepper <drepper@redhat.com>
276 * elf/dl-object.c: Avoid allocating extra memory block for name.
277 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
278 allocated separately.
279 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
281 2001-09-08 H.J. Lu <hjl@gnu.org>
283 * po/zh_TW.po: Fix a typo.
285 2001-09-07 Tom Rix <trix@redhat.com>
287 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
289 2001-08-26 Tom Rix <trix@redhat.com>
291 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
292 command line options.
293 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
294 * sysdeps/unix/sysv/aix/start.c: Removed.
295 * sysdeps/unix/sysv/aix/start-libc.c: New file.
296 * sysdeps/unix/sysv/aix/init-first.c: New file.
297 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
299 2001-09-08 Ben Collins <bcollins@debian.org>
301 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
302 * sysdeps/generic/dl-machine.h: Likewise.
303 * sysdeps/hppa/dl-fptr.c: Likewise.
304 * sysdeps/ia64/dl-fptr.c: Likewise.
305 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
306 * sysdeps/mips/dl-machine.h: Likewise.
307 * sysdeps/mips/mips64/dl-machine.h: Likewise.
308 * sysdeps/powerpc/dl-machine.c: Likewise.
310 2001-09-07 Ben Collins <bcollins@debian.org>
312 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
314 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
316 2001-09-08 Ulrich Drepper <drepper@redhat.com>
318 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
319 dependencies if necessary.
321 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
322 loaded directly) determine length if l_initfini list by iterating
323 over its elements. Minor optimizations.
324 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
325 for dependency objects.
326 If object was already loaded check whether any of the dependencies
327 is already on the relocation dependency list. If yes, remove the
328 latter. Minor optimizations.
329 * elf/dl-lookup.c (add_dependency): Add check for self reference of
330 maps here. Search l_initfini list only if the object was loaded
331 directly and not only as a dependency.
332 (_dl_lookup_symbol): Add relocation dependency also if object
333 is not in global scope. Remove test for self-reference here.
334 (_dl_lookup_versioned_symbol): Likewise.
335 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
336 element of first name record.
337 * elf/loadtest.c: Add some more test to recognize early if an object
339 * elf/Makefile: Add rules to build and run reldep5.
340 * elf/reldep5.c: New file.
341 * elf/reldepmod5.c: New file.
342 * elf/reldepmod6.c: New file.
344 * elf/reldep2.c: Fix typo.
346 2001-09-07 Ulrich Drepper <drepper@redhat.com>
348 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
349 elements. Change l_scope to be a pointer only.
350 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
351 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
352 here add searchlist of newly open file to the dependency's scope.
353 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
354 only searchlist from its scope. Free own scope array if necessary.
355 * elf/Makefile (tests): Add dblload and dblunload now.
357 2001-09-06 Andreas Jaeger <aj@suse.de>
359 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
362 2001-09-05 Ulrich Drepper <drepper@redhat.com>
364 * elf/Makefile: Add rules to build new tests. Don't run them yet since
366 * elf/dblload.c: New file.
367 * elf/dblloadmod1.c: New file.
368 * elf/dblloadmod2.c: New file.
369 * elf/dblloadmod3.c: New file.
370 * elf/dblunload.c: New file.
372 2001-09-04 Richard Henderson <rth@redhat.com>
374 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
375 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
377 2001-09-04 Ulrich Drepper <drepper@redhat.com>
379 Correct very misleading message for error in failed runtime relocation.
380 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
382 (_dl_signal_cerror): Likewise.
383 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
384 * elf/dl-close.c: Likewise.
385 * elf/dl-deps.c: Likewise.
386 * elf/dl-load.c: Likewise.
387 * elf/dl-lookup.c: Likewise.
388 * elf/dl-open.c: Likewise.
389 * elf/dl-reloc.c: Likewise.
390 * elf/dl-sym.c: Likewise.
391 * elf/dl-version.c: Likewise.
392 * sysdeps/generic/dl-sysdep.c: Likewise.
394 2001-09-04 Jakub Jelinek <jakub@redhat.com>
396 * iconv/strtab.c (strtabinit): Initialize null Strent.
397 (newstring): Move len == 0 handling...
398 (strtabadd): ...here.
399 If len == 1, return null Strent.
400 When inserting a suffix of an existing string, check if
401 it is not equal to some suffix already recorded.
402 Copy left and right members over if adding longer string.
404 2001-09-04 Jakub Jelinek <jakub@redhat.com>
406 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
408 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
409 (__syscall_gethostname): Add prototype.
411 2001-09-04 Ulrich Drepper <drepper@redhat.com>
413 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
415 2001-09-02 Ulrich Drepper <drepper@redhat.com>
417 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
419 2001-08-27 Roland McGrath <roland@frob.com>
421 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
422 short, copy that much into NAME anyway before returning error.
424 2001-09-01 Richard Henderson <rth@redhat.com>
426 * sysdeps/alpha/elf/Dist: Remove file.
427 * sysdeps/alpha/elf/Makefile: Remove file.
428 * sysdeps/alpha/elf/crtbegin.S: Remove file.
429 * sysdeps/alpha/elf/crtend.S: Remove file.
430 * sysdeps/alpha/elf/initfini.c: New file.
432 2001-09-01 Mark Kettenis <kettenis@gnu.org>
434 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
435 * iconv/tst-iconv3.c: Likewise.
437 2001-09-01 Jakub Jelinek <jakub@redhat.com>
439 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
441 2001-09-01 Ulrich Drepper <drepper@redhat.com>
443 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
445 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
446 * iconv/iconv_prog.c (insert_cache): New function.
447 (print_known_names): If cache is used call insert_cache to use the
448 information from the cache [PR libc/2509].
450 2001-08-31 Ulrich Drepper <drepper@redhat.com>
452 * time/strptime.c (strptime_internal): Recognize 'l' format and
453 handle it like 'I' for symmetry with strftime.
455 2001-08-31 Richard Henderson <rth@redhat.com>
457 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
458 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
459 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
460 (print_statistics): Make scalar unsigned long long.
461 * sysdeps/alpha/hp-timing.h: New file.
463 2001-08-31 Jakub Jelinek <jakub@redhat.com>
465 * stdio-common/perror.c (perror): Save errno early, pass it
466 down to perror_internal.
467 (perror_internal): Add errnum argument.
469 2001-08-31 Jakub Jelinek <jakub@redhat.com>
471 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
472 Don't add old memory content for R_ALPHA_REFQUAD.
474 2001-08-30 Ulrich Drepper <drepper@redhat.com>
476 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
479 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
480 instead of open, __close instead of close, __getpagesize instead
483 * string/argz-stringify.c (__argz_stringify): Use __strnlen
485 * include/string.h (strndupa): Redefine here to use __strnlen
487 * string/strndup.c (__strndup): Use __strnlen not strnlen.
489 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
492 2001-08-30 Jakub Jelinek <jakub@redhat.com>
494 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
495 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
496 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
497 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
498 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
499 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
500 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
502 2001-08-30 Ulrich Drepper <drepper@redhat.com>
504 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
506 2001-08-30 Andreas Jaeger <aj@suse.de>
508 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
509 contributed Stephen L Moshier.
511 2001-08-30 Jakub Jelinek <jakub@redhat.com>
513 * sunrpc/etc.rpc (sgi_fam): Add.
515 2001-08-30 Ulrich Drepper <drepper@redhat.com>
517 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
519 2001-08-29 Ulrich Drepper <drepper@redhat.com>
521 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
522 first is from a previous call.
523 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
525 2001-08-29 Andreas Schwab <schwab@suse.de>
527 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
529 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
531 * config.make.in (INSTALL_SCRIPT): Define.
532 * Makeconfig (INSTALL_SCRIPT): Define.
533 * Makerules (do-install-script): New macro to install scripts using
535 (install-bin-script): New rule to install scripts with
537 (install-bin-script-nosubdir): New rule.
538 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
539 (distinfo-vars): Add $(install-bin-script).
540 * Rules (others): Likewise.
541 * Makefile (glibcbug): Install with install-bin-script.
542 * debug/Makefile (xtrace): Likewise.
543 (catchsegv): Likewise.
544 * elf/Makefile (ldd): Likewise.
545 * malloc/Makefile (mtrace): Likewise.
546 * timezone/Makefile (tzselect): Likewise.
548 2001-08-29 H.J. Lu <hjl@gnu.org>
550 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
551 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
552 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
554 2001-08-29 Andreas Schwab <schwab@suse.de>
556 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
558 2001-08-28 H.J. Lu <hjl@gnu.org>
560 * Makeconfig (combreloc-LDFLAGS): New variable.
561 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
562 * config.make.in (have-z-combreloc): New variable.
563 * configure.in: Substitute libc_cv_z_combreloc.
565 2001-08-29 Ulrich Drepper <drepper@redhat.com>
567 * po/sv.po: Update from translation team.
568 * po/fr.po: Likewise.
569 * po/da.po: Likewise.
571 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
573 * Makerules: Fix a typo: MD% -> MD5.
575 2001-08-28 Ulrich Drepper <drepper@redhat.com>
577 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
578 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
580 2001-08-28 Andreas Jaeger <aj@suse.de>
582 * manual/libc-texinfo.sh: Add entry about free manuals.
584 * manual/contrib.texi (Contributors): Fix cross reference.
586 * manual/libc.texinfo (Copying): Include freemanuals.
588 * manual/Makefile (appendices): Add freemanuals.
590 * manual/freemanuals.texi: New file.
591 Patch by Brian Youmans <3diff@gnu.org>.
593 * manual/libm-err-tab.pl: Pretty print more platforms, print a
596 * manual/math.texi (Errors in Math Functions): Fix grammar, start
597 table on separate page.
598 Patch by Brian Youmans <3diff@gnu.org>.
600 2001-08-27 Ulrich Drepper <drepper@redhat.com>
602 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
603 the connection went down after we first used it try to connect
604 again and resend the message before printing to the console.
605 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
607 2001-08-27 Jakub Jelinek <jakub@redhat.com>
609 * string/tst-strlen.c (main): Test strnlen (, -1) too.
610 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
613 2001-08-27 Ulrich Drepper <drepper@redhat.com>
615 * iconv/strtab.c (searchstring): Use correct length for comparison.
616 (strtabadd): Account total size correct if new string has old string as
619 2001-08-27 Jakub Jelinek <jakub@redhat.com>
621 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
623 2001-08-27 Andreas Jaeger <aj@suse.de>
625 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
627 * math/libm-test.inc (j0_test): Add extra tests.
628 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
629 not x, in Hankel approximation.
630 Patches by Stephen L Moshier.
632 2001-08-26 Ulrich Drepper <drepper@redhat.com>
634 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
637 * configure.in: Fix test for .rela.dyn section.
639 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
641 2001-08-26 Jakub Jelinek <jakub@redhat.com>
643 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
644 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
645 Pass type_class to _dl_lookup_*.
646 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_clas parameter now.
647 Pass around just type_class instead of noexec, noplt pair.
648 (_dl_lookup_versioned_symbol): Likewise.
649 (_dl_lookup_symbol_skip): Pass around just type_class instead of
651 (_dl_lookup_versioned_symbol_skip): Likewise.
652 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
653 * elf/do-lookup.h (do_lookup): Likewise.
654 * include/link.h (struct link_map): Replace noexec and noplt fields
655 in l_lookup_cache with type_class field.
656 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
657 ELF_RTYPE_CLASS_COPY): Define.
658 Adjust prototypes for _dl_lookup_symbol and
659 _dl_lookup_versioned_symbol.
660 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
661 elf_machine_lookup_noexec_p): Remove.
662 (elf_machine_type_class): Define.
663 * sysdeps/arm/dl-machine.h: Likewise.
664 * sysdeps/hppa/dl-machine.h: Likewise.
665 * sysdeps/cris/dl-machine.h: Likewise.
666 * sysdeps/i386/dl-machine.h: Likewise.
667 * sysdeps/ia64/dl-machine.h: Likewise.
668 * sysdeps/m68k/dl-machine.h: Likewise.
669 * sysdeps/mips/mips64/dl-machine.h: Likewise.
670 * sysdeps/mips/dl-machine.h: Likewise.
671 * sysdeps/powerpc/dl-machine.h: Likewise.
672 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
673 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
674 * sysdeps/sh/dl-machine.h: Likewise.
675 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
676 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
678 2001-08-26 Ulrich Drepper <drepper@redhat.com>
680 * manual/message.texi (Advanced gettext functions): Change
681 description of plural forms for Slovak.
682 Reported by Marcel Telka <marcel@telka.sk>.
684 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
685 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
687 2001-08-26 Jakub Jelinek <jakub@redhat.com>
689 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
690 typo. Patch by Florian La Roche <laroche@redhat.com>.
692 2001-08-26 Ulrich Drepper <drepper@redhat.com>
694 * include/link.h (struct link_map): Add l_lookup_cache element.
695 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
696 (RESOLVE_MAP): Likewise.
697 (_dl_relocate_object): Remove cache initialization.
698 * elf/dl-lookup.c: Rip out cache handling code.
699 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
702 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
703 remove some __builtin_expect.
704 (_dl_lookup_versioned_symbol): Likewise.
706 * config.h.in: Add HAVE_Z_COMBRELOC.
707 * configure.in: Add test for -z combreloc.
709 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
710 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
711 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
712 case to almost no code.
714 2001-08-25 Ulrich Drepper <drepper@redhat.com>
716 * po/tr.po: Update from translation team.
718 2001-08-24 Andreas Jaeger <aj@suse.de>
720 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
723 2001-08-24 Ulrich Drepper <drepper@redhat.com>
725 * elf/rtld.c (print_statistics): Printf % after percent values.
726 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
728 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
729 don't have to compute the hash value and initialize current_value.
730 Move reference_name variable to where it is needed.
731 (_dl_lookup_versioned_symbol): Likewise.
733 2001-08-24 Roland McGrath <roland@frob.com>
735 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
736 Just test that strerror returns non-null for a few errno codes.
738 2001-08-23 Roland McGrath <roland@frob.com>
740 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
741 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
743 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
745 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
748 2001-08-24 Ulrich Drepper <drepper@redhat.com>
750 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
753 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
754 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
756 * elf/rtld.c: Include <sys/param.h>.
757 * elf/dl-reloc.c: Likewise.
759 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
761 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
762 empty to prevent junk from being generated.
763 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
765 2001-08-24 Jakub Jelinek <jakub@redhat.com>
767 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
768 records. Rename endrel to relative, initialize it to r, and use it
769 in elf_machine_rel_relative calls. Point r after relative relocs.
771 2001-08-24 Ulrich Drepper <drepper@redhat.com>
773 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
776 2001-08-24 Jakub Jelinek <jakub@redhat.com>
778 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
779 necessary. Undefine newly defined macros at the end.
780 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
781 Rename from elf_machine_rel_relative.
782 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
783 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
784 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
785 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
787 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
789 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
791 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
793 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
794 Likewise. Fix argument types.
795 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
796 Likewise. Fix argument types.
797 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
799 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
800 ElfW(Rel) in argument.
801 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
804 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
806 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
808 2001-08-24 Andreas Jaeger <aj@suse.de>
810 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
811 Stephen L Moshier <moshier@mediaone.net>.
813 2001-08-24 Ulrich Drepper <drepper@redhat.com>
815 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
816 first if RELCOUNT is set.
818 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
819 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
820 elf_machine_rel_relative.
821 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
823 * sysdeps/arm/dl-machine.h: Likewise.
824 * sysdeps/cris/dl-machine.h: Likewise.
825 * sysdeps/hppa/dl-machine.h: Likewise.
826 * sysdeps/i386/dl-machine.h: Likewise.
827 * sysdeps/ia64/dl-machine.h: Likewise.
828 * sysdeps/m68k/dl-machine.h: Likewise.
829 * sysdeps/mips/dl-machine.h: Likewise.
830 * sysdeps/powerpc/dl-machine.h: Likewise.
831 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
832 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
833 * sysdeps/sh/dl-machine.h: Likewise.
834 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
835 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
837 2001-08-23 Roland McGrath <roland@frob.com>
839 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
841 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
842 sysdeps/mach version. Implement counting ("recursive") mutexes
843 on top of cthreads mutexes.
844 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
846 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
847 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
848 (__libc_cleanup_region_start, __libc_cleanup_region_end,
849 __libc_clean_end): Define these to call the cleanup function after
850 normal exit when they're supposed to.
852 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
853 Take new first arg DOIT, a boolean saying whether to really install
855 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
856 (__libc_cleanup_end): Likewise.
857 * sysdeps/generic/bits/libc-lock.h: Same changes.
858 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
859 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
860 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
862 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
863 * sysdeps/generic/bits/stdio-lock.h
864 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
866 2001-08-23 Jakub Jelinek <jakub@redhat.com>
868 * elf/ldconfig.c (search_dir): Remove stale symlinks.
870 2001-08-23 Jakub Jelinek <jakub@redhat.com>
872 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
873 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
875 (_dl_lookup_versioned_symbol): Likewise.
876 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
878 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
879 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
880 (lookup_cache, lookup_cache_versioned): Add declarations.
882 2001-08-23 Ulrich Drepper <drepper@redhat.com>
884 * stdlib/tst-random.c (main): Swap parameters in fail call.
885 Patch by Pete Bevin <pete@petebevin.com>.
887 2001-08-23 Jakub Jelinek <jakub@redhat.com>
889 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
891 2001-08-23 Ulrich Drepper <drepper@redhat.com>
893 * malloc/obstack.c: Indent preprocessor directives.
894 Patch by Jim Meyering <meyering@ascend.com>.
896 * po/ja.po: Update from translation team.
898 2001-08-23 Roland McGrath <roland@frob.com>
900 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
902 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
903 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
905 2001-08-22 Roland McGrath <roland@frob.com>
907 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
908 __libc_lock_define_recursive.
909 * elf/dl-open.c: Don't declare it here any more.
910 * elf/dl-close.c: Likewise.
911 * elf/dl-lookup.c: Likewise.
912 * elf/dl-iteratephdr.c: Likewise.
913 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
914 __libc_lock_unlock_recursive.
915 * elf/dl-close.c (_dl_close): Likewise
916 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
917 * elf/dl-open.c (_dl_open): Likewise
919 * sysdeps/generic/bits/libc-lock.h
920 (__libc_lock_define_recursive): New macro.
921 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
922 (_IO_lock_lock): Use __libc_lock_lock_recursive.
923 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
925 * conform/conformtest.pl (checknamespace): Sort the output list.
927 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
928 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
929 definitions conditional on [__USE_XOPEN].
931 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
932 these unconditionally, not only use [__USE_BSD], so as to match
933 the sysdeps/unix/sysv/linux files.
935 2001-08-22 Ulrich Drepper <drepper@redhat.com>
937 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
940 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
943 2001-08-22 Roland McGrath <roland@frob.com>
945 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
946 conditionalization of sa_handler/sa_sigaction member types to
947 match the sysdeps/unix/sysv/linux file.
949 2001-08-22 Ulrich Drepper <drepper@redhat.com>
951 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
952 symbol sizes a bit better.
954 * sysdeps/ia64/strncpy.S: Complete rewrite.
955 Contributed by Jakub Jelinek <jakub@redhat.com>.
957 * string/stratcliff.c (main): Add strncpy test.
959 2001-08-22 Roland McGrath <roland@frob.com>
961 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
962 and don't declare unsetenv or _environ directly.
963 (unsetenv): Return int, not void. Use __environ instead of _environ.
965 2001-08-01 Mark Kettenis <kettenis@gnu.org>
967 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
968 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
969 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
970 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
971 test for cmsg struct size.
973 2001-04-23 Paul Eggert <eggert@twinsun.com>
975 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
976 Rename __argc to ___argc in prototypes to avoid compatibility
977 problems with systems that reserve the identifier "__argc".
978 Similarly for __argv.
980 2001-08-21 Roland McGrath <roland@frob.com>
982 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
984 * mach/Makefile (tests): Removed.
985 * mach/hello.c: File removed.
987 2001-08-22 Ulrich Drepper <drepper@redhat.com>
989 * po/sv.po: Update from translation team.
991 * stdio-common/vfscanf.c: Fix handling of %l[].
992 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
994 * libio/Makefile (tests): Add tst-sscanf.
995 * libio/tst-sscanf.c: New file.
997 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
998 * malloc/mtrace.c (tr_where): dli_sname always points to a
999 non-empty string if != NULL.
1000 Reported by Tim Janik <timj@gtk.org>.
1002 2001-08-22 Jakub Jelinek <jakub@redhat.com>
1004 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
1005 buf. Free resources on failure.
1006 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
1007 (makefd_xprt): Likewise.
1008 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
1009 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
1010 * sunrpc/auth_unix.c (authunix_create): Likewise.
1012 2001-08-21 Jakub Jelinek <jakub@redhat.com>
1014 * string/strnlen.c: Remove.
1015 * sysdeps/generic/strnlen.c: New.
1016 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
1018 2001-08-21 Roland McGrath <roland@frob.com>
1020 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
1021 as a macro, not an extern inline function.
1023 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
1024 * Versions.def (libc): Add GLIBC_2.2.5 set.
1025 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
1026 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
1028 2001-08-20 Roland McGrath <roland@frob.com>
1030 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
1031 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
1033 2001-08-21 Ulrich Drepper <drepper@redhat.com>
1035 * string/bits/string2.h: Remove strnlen optimization here.
1036 * sysdeps/i386/i486/bits/string.h: Add it here.
1038 2001-08-21 Wolfram Gloger <wg@malloc.de>
1040 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
1042 2001-08-21 Ulrich Drepper <drepper@redhat.com>
1044 * po/gl.po: Update from translation team.
1046 2001-08-20 Ulrich Drepper <drepper@redhat.com>
1048 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
1049 * misc/err.c (convert_and_print): Likewise.
1051 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
1054 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1056 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
1057 change of the gregset_t type.
1058 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
1060 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
1062 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
1064 2001-08-20 Ulrich Drepper <drepper@redhat.com>
1066 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
1068 * string/strnlen.c: Fix the implementation. We cannot use memchr.
1070 2001-08-18 Mark Kettenis <kettenis@gnu.org>
1072 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
1073 before calling the cthreads initialization code.
1075 2001-08-20 Ulrich Drepper <drepper@redhat.com>
1077 * argp/argp-help.c: Fix two problems introduced in last change.
1079 * include/dirent.h: Include <dirstream.h> first.
1081 2001-08-19 Ulrich Drepper <drepper@redhat.com>
1083 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
1085 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
1086 * sunrpc/xdr_rec.c: Likewise.
1087 * sunrpc/xdr_mem.c: Likewise.
1088 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
1089 * sunrpc/rpc_cmsg.c: Likewise.
1090 * sunrpc/getrpcport.c (getrpcport): Likewise.
1091 * sunrpc/clnt_simp.c (callrpc): Likewise.
1092 * sunrpc/clnt_gen.c (clnt_create): Likewise.
1093 * string/envz.c: Likewise.
1095 * po/ko.po: Update from translation team.
1097 * argp/argp-help.c: Handle wide oriented stderr stream.
1099 2001-08-18 Ulrich Drepper <drepper@redhat.com>
1101 * sysdeps/generic/strtol.c: Little optimizations. Add some
1104 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
1106 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
1107 * wcsmbs/wcwidth.c (wcwdith): Likewise.
1108 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
1110 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
1112 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
1114 * time/time.h (struct timespec): Use __time_t for tv_sec element.
1116 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
1117 wchar_t for function declarations and defintions.
1119 * misc/sys/select.h: Define __need_time_t before including <time.h>.
1120 Define suseconds_t if it hasn't happened yet.
1122 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
1124 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
1126 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
1129 * conform/data/stddef.h-data: Remove wint_t.
1131 * conform/conformtest.pl: Change namespace test to take #undef
1134 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
1136 * conform/data/sys/socket.h-data: Add sockatmark.
1138 2001-08-17 Ulrich Drepper <drepper@redhat.com>
1140 * io/fts.c: Update from recent BSD source.
1142 2001-08-17 Roland McGrath <roland@frob.com>
1144 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
1145 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
1148 2001-08-17 Ulrich Drepper <drepper@redhat.com>
1150 * locale/duplocale.c (__duplocale): Also initialize the special
1153 * conform/data/netdb.h-data: Adjust gai_strerror return type.
1155 2001-08-17 Andreas Jaeger <aj@suse.de>
1157 * misc/getpass.c: Include wchar.h for prototypes.
1158 * malloc/obstack.c: Likewise.
1160 2001-08-17 Ulrich Drepper <drepper@redhat.com>
1162 * sunrpc/svc_simple.c (universal): Use __write instead of write.
1164 * wcsmbs/wcscoll.c: Also define __wcscoll.
1165 * include/wchar.h: Declare __wcscoll.
1167 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
1168 * libio/vwprintf.c: Likewise.
1169 * libio/wprintf.c: Likewise.
1171 * iconv/gconv_cache.c: Use __munmap instead of munmap.
1173 2001-08-16 Ulrich Drepper <drepper@redhat.com>
1175 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
1177 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
1178 wcslen, and __wcscoll instead of wcscoll.
1180 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
1182 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
1183 __getuid instead of getuid.
1185 * stdio-common/perror.c (perror): Use __close instead of close.
1186 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
1187 * libio/freopen.c (freopen): Likewise.
1188 * libio/freopen64.c (freopen64): Likewise.
1190 * libio/tst-ungetwc2.c (main): Define str const.
1192 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
1193 * libio/fwprintf.c: Also define __fwprintf.
1194 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
1195 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
1196 * assert/assert-perr.c: Likewise.
1197 * assert/assert.c: Likewise.
1198 * gmon/gmon.c: Likewise.
1199 * inet/rcmd.c: Likewise.
1200 * malloc/obstack.c: Likewise.
1201 * misc/err.c: Likewise.
1202 * misc/error.c: Likewise.
1203 * misc/getpass.c: Likewise.
1204 * posix/getopt.c: Likewise.
1205 * resolv/res_hconf.c: Likewise.
1206 * stdio-common/perror.c: Likewise.
1207 * stdio-common/psignal.c: Likewise.
1208 * stdlib/fmtmsg.c: Likewise.
1209 * sunrpc/auth_unix.c: Likewise.
1210 * sunrpc/clnt_perr.c: Likewise.
1211 * sunrpc/clnt_tcp.c: Likewise.
1212 * sunrpc/clnt_udp.c: Likewise.
1213 * sunrpc/clnt_unix.c: Likewise.
1214 * sunrpc/svc_simple.c: Likewise.
1215 * sunrpc/svc_tcp.c: Likewise.
1216 * sunrpc/svc_udp.c: Likewise.
1217 * sunrpc/svc_unix.c: Likewise.
1218 * sunrpc/xdr.c: Likewise.
1219 * sunrpc/xdr_array.c: Likewise.
1220 * sunrpc/xdr_rec.c: Likewise.
1221 * sunrpc/xdr_ref.c: Likewise.
1222 * sysdeps/generic/wordexp.c: Likewise.
1224 * po/it.po: Update from translation team.
1226 * misc/err.c: Handle wide oriented stderr stream.
1228 2001-08-14 Tom Rix <trix@redhat.com>
1230 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
1231 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
1233 2001-08-13 Tom Rix <trix@redhat.com>
1235 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
1236 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
1239 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
1241 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
1242 Store the access registers to the ucontext structure.
1243 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
1246 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
1247 Load the access registers from the ucontext structure.
1248 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
1251 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
1252 offsets to the new ucontext layout.
1253 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
1255 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
1256 of the ucontext structure.
1257 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
1259 2001-08-15 Ulrich Drepper <drepper@redhat.com>
1261 * misc/error.c (error): Handle wide oriented stderr stream correctly.
1262 (error_at_line): Likewise.
1264 * stdio-common/perror.c (perror): Implement according to standard.
1265 The stream orientation must not be changed if the stream was not
1266 oriented before the call.
1267 * stdio-common/Makefile (tests): Add tst-perror.
1268 * stdio-common/tst-perror.c: New file.
1271 See ChangeLog.12 for earlier changes.