1 2001-09-14 H.J. Lu <hjl@gnu.org>
3 * sysdeps/mips/fpu/libm-test-ulps: Updated.
5 2001-09-14 Ulrich Drepper <drepper@redhat.com>
7 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
8 Patch by Florian La Roche <laroche@redhat.com>.
10 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
12 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
15 2001-09-14 Andreas Schwab <schwab@suse.de>
17 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
19 * posix/execlp.c: Likewise.
21 2001-09-13 Jakub Jelinek <jakub@redhat.com>
23 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
24 is already found earlier in the search scope.
26 2001-09-12 Jakub Jelinek <jakub@redhat.com>
28 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
31 2001-09-13 Ulrich Drepper <drepper@redhat.com>
33 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
35 2001-09-12 Ulrich Drepper <drepper@redhat.com>
37 * config.h.in: Enforce optimization to be used.
38 * Makeconfig (preprocess-versions): Define ASSEMBLER.
39 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
40 * posix/Makefile (annexc-CFLAGS): Define to -O.
41 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
43 2001-09-11 Ulrich Drepper <drepper@redhat.com>
45 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
46 Patch by Stephan Kulow.
48 2001-09-08 Ben Collins <bcollins@debian.org>
50 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
51 usage of RESOLVE() (r_type, not reloc->r_type).
53 2001-09-08 Ulrich Drepper <drepper@redhat.com>
55 * elf/dl-object.c: Avoid allocating extra memory block for name.
56 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
58 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
60 2001-09-08 H.J. Lu <hjl@gnu.org>
62 * po/zh_TW.po: Fix a typo.
64 2001-09-07 Tom Rix <trix@redhat.com>
66 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
68 2001-08-26 Tom Rix <trix@redhat.com>
70 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
72 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
73 * sysdeps/unix/sysv/aix/start.c: Removed.
74 * sysdeps/unix/sysv/aix/start-libc.c: New file.
75 * sysdeps/unix/sysv/aix/init-first.c: New file.
76 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
78 2001-09-08 Ben Collins <bcollins@debian.org>
80 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
81 * sysdeps/generic/dl-machine.h: Likewise.
82 * sysdeps/hppa/dl-fptr.c: Likewise.
83 * sysdeps/ia64/dl-fptr.c: Likewise.
84 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
85 * sysdeps/mips/dl-machine.h: Likewise.
86 * sysdeps/mips/mips64/dl-machine.h: Likewise.
87 * sysdeps/powerpc/dl-machine.c: Likewise.
89 2001-09-07 Ben Collins <bcollins@debian.org>
91 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
93 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
95 2001-09-08 Ulrich Drepper <drepper@redhat.com>
97 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
98 dependencies if necessary.
100 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
101 loaded directly) determine length if l_initfini list by iterating
102 over its elements. Minor optimizations.
103 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
104 for dependency objects.
105 If object was already loaded check whether any of the dependencies
106 is already on the relocation dependency list. If yes, remove the
107 latter. Minor optimizations.
108 * elf/dl-lookup.c (add_dependency): Add check for self reference of
109 maps here. Search l_initfini list only if the object was loaded
110 directly and not only as a dependency.
111 (_dl_lookup_symbol): Add relocation dependency also if object
112 is not in global scope. Remove test for self-reference here.
113 (_dl_lookup_versioned_symbol): Likewise.
114 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
115 element of first name record.
116 * elf/loadtest.c: Add some more test to recognize early if an object
118 * elf/Makefile: Add rules to build and run reldep5.
119 * elf/reldep5.c: New file.
120 * elf/reldepmod5.c: New file.
121 * elf/reldepmod6.c: New file.
123 * elf/reldep2.c: Fix typo.
125 2001-09-07 Ulrich Drepper <drepper@redhat.com>
127 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
128 elements. Change l_scope to be a pointer only.
129 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
130 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
131 here add searchlist of newly open file to the dependency's scope.
132 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
133 only searchlist from its scope. Free own scope array if necessary.
134 * elf/Makefile (tests): Add dblload and dblunload now.
136 2001-09-06 Andreas Jaeger <aj@suse.de>
138 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
141 2001-09-05 Ulrich Drepper <drepper@redhat.com>
143 * elf/Makefile: Add rules to build new tests. Don't run them yet since
145 * elf/dblload.c: New file.
146 * elf/dblloadmod1.c: New file.
147 * elf/dblloadmod2.c: New file.
148 * elf/dblloadmod3.c: New file.
149 * elf/dblunload.c: New file.
151 2001-09-04 Richard Henderson <rth@redhat.com>
153 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
154 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
156 2001-09-04 Ulrich Drepper <drepper@redhat.com>
158 Correct very misleading message for error in failed runtime relocation.
159 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
161 (_dl_signal_cerror): Likewise.
162 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
163 * elf/dl-close.c: Likewise.
164 * elf/dl-deps.c: Likewise.
165 * elf/dl-load.c: Likewise.
166 * elf/dl-lookup.c: Likewise.
167 * elf/dl-open.c: Likewise.
168 * elf/dl-reloc.c: Likewise.
169 * elf/dl-sym.c: Likewise.
170 * elf/dl-version.c: Likewise.
171 * sysdeps/generic/dl-sysdep.c: Likewise.
173 2001-09-04 Jakub Jelinek <jakub@redhat.com>
175 * iconv/strtab.c (strtabinit): Initialize null Strent.
176 (newstring): Move len == 0 handling...
177 (strtabadd): ...here.
178 If len == 1, return null Strent.
179 When inserting a suffix of an existing string, check if
180 it is not equal to some suffix already recorded.
181 Copy left and right members over if adding longer string.
183 2001-09-04 Jakub Jelinek <jakub@redhat.com>
185 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
187 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
188 (__syscall_gethostname): Add prototype.
190 2001-09-04 Ulrich Drepper <drepper@redhat.com>
192 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
194 2001-09-02 Ulrich Drepper <drepper@redhat.com>
196 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
198 2001-08-27 Roland McGrath <roland@frob.com>
200 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
201 short, copy that much into NAME anyway before returning error.
203 2001-09-01 Richard Henderson <rth@redhat.com>
205 * sysdeps/alpha/elf/Dist: Remove file.
206 * sysdeps/alpha/elf/Makefile: Remove file.
207 * sysdeps/alpha/elf/crtbegin.S: Remove file.
208 * sysdeps/alpha/elf/crtend.S: Remove file.
209 * sysdeps/alpha/elf/initfini.c: New file.
211 2001-09-01 Mark Kettenis <kettenis@gnu.org>
213 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
214 * iconv/tst-iconv3.c: Likewise.
216 2001-09-01 Jakub Jelinek <jakub@redhat.com>
218 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
220 2001-09-01 Ulrich Drepper <drepper@redhat.com>
222 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
224 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
225 * iconv/iconv_prog.c (insert_cache): New function.
226 (print_known_names): If cache is used call insert_cache to use the
227 information from the cache [PR libc/2509].
229 2001-08-31 Ulrich Drepper <drepper@redhat.com>
231 * time/strptime.c (strptime_internal): Recognize 'l' format and
232 handle it like 'I' for symmetry with strftime.
234 2001-08-31 Richard Henderson <rth@redhat.com>
236 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
237 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
238 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
239 (print_statistics): Make scalar unsigned long long.
240 * sysdeps/alpha/hp-timing.h: New file.
242 2001-08-31 Jakub Jelinek <jakub@redhat.com>
244 * stdio-common/perror.c (perror): Save errno early, pass it
245 down to perror_internal.
246 (perror_internal): Add errnum argument.
248 2001-08-31 Jakub Jelinek <jakub@redhat.com>
250 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
251 Don't add old memory content for R_ALPHA_REFQUAD.
253 2001-08-30 Ulrich Drepper <drepper@redhat.com>
255 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
258 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
259 instead of open, __close instead of close, __getpagesize instead
262 * string/argz-stringify.c (__argz_stringify): Use __strnlen
264 * include/string.h (strndupa): Redefine here to use __strnlen
266 * string/strndup.c (__strndup): Use __strnlen not strnlen.
268 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
271 2001-08-30 Jakub Jelinek <jakub@redhat.com>
273 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
274 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
275 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
276 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
277 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
278 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
279 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
281 2001-08-30 Ulrich Drepper <drepper@redhat.com>
283 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
285 2001-08-30 Andreas Jaeger <aj@suse.de>
287 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
288 contributed Stephen L Moshier.
290 2001-08-30 Jakub Jelinek <jakub@redhat.com>
292 * sunrpc/etc.rpc (sgi_fam): Add.
294 2001-08-30 Ulrich Drepper <drepper@redhat.com>
296 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
298 2001-08-29 Ulrich Drepper <drepper@redhat.com>
300 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
301 first is from a previous call.
302 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
304 2001-08-29 Andreas Schwab <schwab@suse.de>
306 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
308 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
310 * config.make.in (INSTALL_SCRIPT): Define.
311 * Makeconfig (INSTALL_SCRIPT): Define.
312 * Makerules (do-install-script): New macro to install scripts using
314 (install-bin-script): New rule to install scripts with
316 (install-bin-script-nosubdir): New rule.
317 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
318 (distinfo-vars): Add $(install-bin-script).
319 * Rules (others): Likewise.
320 * Makefile (glibcbug): Install with install-bin-script.
321 * debug/Makefile (xtrace): Likewise.
322 (catchsegv): Likewise.
323 * elf/Makefile (ldd): Likewise.
324 * malloc/Makefile (mtrace): Likewise.
325 * timezone/Makefile (tzselect): Likewise.
327 2001-08-29 H.J. Lu <hjl@gnu.org>
329 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
330 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
331 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
333 2001-08-29 Andreas Schwab <schwab@suse.de>
335 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
337 2001-08-28 H.J. Lu <hjl@gnu.org>
339 * Makeconfig (combreloc-LDFLAGS): New variable.
340 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
341 * config.make.in (have-z-combreloc): New variable.
342 * configure.in: Substitute libc_cv_z_combreloc.
344 2001-08-29 Ulrich Drepper <drepper@redhat.com>
346 * po/sv.po: Update from translation team.
347 * po/fr.po: Likewise.
348 * po/da.po: Likewise.
350 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
352 * Makerules: Fix a typo: MD% -> MD5.
354 2001-08-28 Ulrich Drepper <drepper@redhat.com>
356 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
357 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
359 2001-08-28 Andreas Jaeger <aj@suse.de>
361 * manual/libc-texinfo.sh: Add entry about free manuals.
363 * manual/contrib.texi (Contributors): Fix cross reference.
365 * manual/libc.texinfo (Copying): Include freemanuals.
367 * manual/Makefile (appendices): Add freemanuals.
369 * manual/freemanuals.texi: New file.
370 Patch by Brian Youmans <3diff@gnu.org>.
372 * manual/libm-err-tab.pl: Pretty print more platforms, print a
375 * manual/math.texi (Errors in Math Functions): Fix grammar, start
376 table on separate page.
377 Patch by Brian Youmans <3diff@gnu.org>.
379 2001-08-27 Ulrich Drepper <drepper@redhat.com>
381 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
382 the connection went down after we first used it try to connect
383 again and resend the message before printing to the console.
384 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
386 2001-08-27 Jakub Jelinek <jakub@redhat.com>
388 * string/tst-strlen.c (main): Test strnlen (, -1) too.
389 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
392 2001-08-27 Ulrich Drepper <drepper@redhat.com>
394 * iconv/strtab.c (searchstring): Use correct length for comparison.
395 (strtabadd): Account total size correct if new string has old string as
398 2001-08-27 Jakub Jelinek <jakub@redhat.com>
400 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
402 2001-08-27 Andreas Jaeger <aj@suse.de>
404 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
406 * math/libm-test.inc (j0_test): Add extra tests.
407 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
408 not x, in Hankel approximation.
409 Patches by Stephen L Moshier.
411 2001-08-26 Ulrich Drepper <drepper@redhat.com>
413 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
416 * configure.in: Fix test for .rela.dyn section.
418 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
420 2001-08-26 Jakub Jelinek <jakub@redhat.com>
422 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
423 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
424 Pass type_class to _dl_lookup_*.
425 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_clas parameter now.
426 Pass around just type_class instead of noexec, noplt pair.
427 (_dl_lookup_versioned_symbol): Likewise.
428 (_dl_lookup_symbol_skip): Pass around just type_class instead of
430 (_dl_lookup_versioned_symbol_skip): Likewise.
431 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
432 * elf/do-lookup.h (do_lookup): Likewise.
433 * include/link.h (struct link_map): Replace noexec and noplt fields
434 in l_lookup_cache with type_class field.
435 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
436 ELF_RTYPE_CLASS_COPY): Define.
437 Adjust prototypes for _dl_lookup_symbol and
438 _dl_lookup_versioned_symbol.
439 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
440 elf_machine_lookup_noexec_p): Remove.
441 (elf_machine_type_class): Define.
442 * sysdeps/arm/dl-machine.h: Likewise.
443 * sysdeps/hppa/dl-machine.h: Likewise.
444 * sysdeps/cris/dl-machine.h: Likewise.
445 * sysdeps/i386/dl-machine.h: Likewise.
446 * sysdeps/ia64/dl-machine.h: Likewise.
447 * sysdeps/m68k/dl-machine.h: Likewise.
448 * sysdeps/mips/mips64/dl-machine.h: Likewise.
449 * sysdeps/mips/dl-machine.h: Likewise.
450 * sysdeps/powerpc/dl-machine.h: Likewise.
451 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
452 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
453 * sysdeps/sh/dl-machine.h: Likewise.
454 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
455 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
457 2001-08-26 Ulrich Drepper <drepper@redhat.com>
459 * manual/message.texi (Advanced gettext functions): Change
460 description of plural forms for Slovak.
461 Reported by Marcel Telka <marcel@telka.sk>.
463 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
464 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
466 2001-08-26 Jakub Jelinek <jakub@redhat.com>
468 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
469 typo. Patch by Florian La Roche <laroche@redhat.com>.
471 2001-08-26 Ulrich Drepper <drepper@redhat.com>
473 * include/link.h (struct link_map): Add l_lookup_cache element.
474 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
475 (RESOLVE_MAP): Likewise.
476 (_dl_relocate_object): Remove cache initialization.
477 * elf/dl-lookup.c: Rip out cache handling code.
478 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
481 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
482 remove some __builtin_expect.
483 (_dl_lookup_versioned_symbol): Likewise.
485 * config.h.in: Add HAVE_Z_COMBRELOC.
486 * configure.in: Add test for -z combreloc.
488 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
489 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
490 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
491 case to almost no code.
493 2001-08-25 Ulrich Drepper <drepper@redhat.com>
495 * po/tr.po: Update from translation team.
497 2001-08-24 Andreas Jaeger <aj@suse.de>
499 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
502 2001-08-24 Ulrich Drepper <drepper@redhat.com>
504 * elf/rtld.c (print_statistics): Printf % after percent values.
505 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
507 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
508 don't have to compute the hash value and initialize current_value.
509 Move reference_name variable to where it is needed.
510 (_dl_lookup_versioned_symbol): Likewise.
512 2001-08-24 Roland McGrath <roland@frob.com>
514 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
515 Just test that strerror returns non-null for a few errno codes.
517 2001-08-23 Roland McGrath <roland@frob.com>
519 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
520 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
522 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
524 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
527 2001-08-24 Ulrich Drepper <drepper@redhat.com>
529 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
532 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
533 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
535 * elf/rtld.c: Include <sys/param.h>.
536 * elf/dl-reloc.c: Likewise.
538 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
540 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
541 empty to prevent junk from being generated.
542 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
544 2001-08-24 Jakub Jelinek <jakub@redhat.com>
546 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
547 records. Rename endrel to relative, initialize it to r, and use it
548 in elf_machine_rel_relative calls. Point r after relative relocs.
550 2001-08-24 Ulrich Drepper <drepper@redhat.com>
552 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
555 2001-08-24 Jakub Jelinek <jakub@redhat.com>
557 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
558 necessary. Undefine newly defined macros at the end.
559 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
560 Rename from elf_machine_rel_relative.
561 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
562 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
563 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
564 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
566 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
568 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
570 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
572 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
573 Likewise. Fix argument types.
574 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
575 Likewise. Fix argument types.
576 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
578 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
579 ElfW(Rel) in argument.
580 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
583 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
585 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
587 2001-08-24 Andreas Jaeger <aj@suse.de>
589 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
590 Stephen L Moshier <moshier@mediaone.net>.
592 2001-08-24 Ulrich Drepper <drepper@redhat.com>
594 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
595 first if RELCOUNT is set.
597 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
598 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
599 elf_machine_rel_relative.
600 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
602 * sysdeps/arm/dl-machine.h: Likewise.
603 * sysdeps/cris/dl-machine.h: Likewise.
604 * sysdeps/hppa/dl-machine.h: Likewise.
605 * sysdeps/i386/dl-machine.h: Likewise.
606 * sysdeps/ia64/dl-machine.h: Likewise.
607 * sysdeps/m68k/dl-machine.h: Likewise.
608 * sysdeps/mips/dl-machine.h: Likewise.
609 * sysdeps/powerpc/dl-machine.h: Likewise.
610 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
611 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
612 * sysdeps/sh/dl-machine.h: Likewise.
613 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
614 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
616 2001-08-23 Roland McGrath <roland@frob.com>
618 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
620 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
621 sysdeps/mach version. Implement counting ("recursive") mutexes
622 on top of cthreads mutexes.
623 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
625 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
626 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
627 (__libc_cleanup_region_start, __libc_cleanup_region_end,
628 __libc_clean_end): Define these to call the cleanup function after
629 normal exit when they're supposed to.
631 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
632 Take new first arg DOIT, a boolean saying whether to really install
634 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
635 (__libc_cleanup_end): Likewise.
636 * sysdeps/generic/bits/libc-lock.h: Same changes.
637 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
638 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
639 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
641 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
642 * sysdeps/generic/bits/stdio-lock.h
643 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
645 2001-08-23 Jakub Jelinek <jakub@redhat.com>
647 * elf/ldconfig.c (search_dir): Remove stale symlinks.
649 2001-08-23 Jakub Jelinek <jakub@redhat.com>
651 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
652 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
654 (_dl_lookup_versioned_symbol): Likewise.
655 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
657 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
658 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
659 (lookup_cache, lookup_cache_versioned): Add declarations.
661 2001-08-23 Ulrich Drepper <drepper@redhat.com>
663 * stdlib/tst-random.c (main): Swap parameters in fail call.
664 Patch by Pete Bevin <pete@petebevin.com>.
666 2001-08-23 Jakub Jelinek <jakub@redhat.com>
668 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
670 2001-08-23 Ulrich Drepper <drepper@redhat.com>
672 * malloc/obstack.c: Indent preprocessor directives.
673 Patch by Jim Meyering <meyering@ascend.com>.
675 * po/ja.po: Update from translation team.
677 2001-08-23 Roland McGrath <roland@frob.com>
679 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
681 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
682 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
684 2001-08-22 Roland McGrath <roland@frob.com>
686 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
687 __libc_lock_define_recursive.
688 * elf/dl-open.c: Don't declare it here any more.
689 * elf/dl-close.c: Likewise.
690 * elf/dl-lookup.c: Likewise.
691 * elf/dl-iteratephdr.c: Likewise.
692 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
693 __libc_lock_unlock_recursive.
694 * elf/dl-close.c (_dl_close): Likewise
695 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
696 * elf/dl-open.c (_dl_open): Likewise
698 * sysdeps/generic/bits/libc-lock.h
699 (__libc_lock_define_recursive): New macro.
700 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
701 (_IO_lock_lock): Use __libc_lock_lock_recursive.
702 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
704 * conform/conformtest.pl (checknamespace): Sort the output list.
706 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
707 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
708 definitions conditional on [__USE_XOPEN].
710 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
711 these unconditionally, not only use [__USE_BSD], so as to match
712 the sysdeps/unix/sysv/linux files.
714 2001-08-22 Ulrich Drepper <drepper@redhat.com>
716 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
719 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
722 2001-08-22 Roland McGrath <roland@frob.com>
724 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
725 conditionalization of sa_handler/sa_sigaction member types to
726 match the sysdeps/unix/sysv/linux file.
728 2001-08-22 Ulrich Drepper <drepper@redhat.com>
730 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
731 symbol sizes a bit better.
733 * sysdeps/ia64/strncpy.S: Complete rewrite.
734 Contributed by Jakub Jelinek <jakub@redhat.com>.
736 * string/stratcliff.c (main): Add strncpy test.
738 2001-08-22 Roland McGrath <roland@frob.com>
740 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
741 and don't declare unsetenv or _environ directly.
742 (unsetenv): Return int, not void. Use __environ instead of _environ.
744 2001-08-01 Mark Kettenis <kettenis@gnu.org>
746 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
747 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
748 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
749 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
750 test for cmsg struct size.
752 2001-04-23 Paul Eggert <eggert@twinsun.com>
754 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
755 Rename __argc to ___argc in prototypes to avoid compatibility
756 problems with systems that reserve the identifier "__argc".
757 Similarly for __argv.
759 2001-08-21 Roland McGrath <roland@frob.com>
761 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
763 * mach/Makefile (tests): Removed.
764 * mach/hello.c: File removed.
766 2001-08-22 Ulrich Drepper <drepper@redhat.com>
768 * po/sv.po: Update from translation team.
770 * stdio-common/vfscanf.c: Fix handling of %l[].
771 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
773 * libio/Makefile (tests): Add tst-sscanf.
774 * libio/tst-sscanf.c: New file.
776 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
777 * malloc/mtrace.c (tr_where): dli_sname always points to a
778 non-empty string if != NULL.
779 Reported by Tim Janik <timj@gtk.org>.
781 2001-08-22 Jakub Jelinek <jakub@redhat.com>
783 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
784 buf. Free resources on failure.
785 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
786 (makefd_xprt): Likewise.
787 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
788 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
789 * sunrpc/auth_unix.c (authunix_create): Likewise.
791 2001-08-21 Jakub Jelinek <jakub@redhat.com>
793 * string/strnlen.c: Remove.
794 * sysdeps/generic/strnlen.c: New.
795 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
797 2001-08-21 Roland McGrath <roland@frob.com>
799 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
800 as a macro, not an extern inline function.
802 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
803 * Versions.def (libc): Add GLIBC_2.2.5 set.
804 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
805 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
807 2001-08-20 Roland McGrath <roland@frob.com>
809 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
810 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
812 2001-08-21 Ulrich Drepper <drepper@redhat.com>
814 * string/bits/string2.h: Remove strnlen optimization here.
815 * sysdeps/i386/i486/bits/string.h: Add it here.
817 2001-08-21 Wolfram Gloger <wg@malloc.de>
819 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
821 2001-08-21 Ulrich Drepper <drepper@redhat.com>
823 * po/gl.po: Update from translation team.
825 2001-08-20 Ulrich Drepper <drepper@redhat.com>
827 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
828 * misc/err.c (convert_and_print): Likewise.
830 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
833 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
835 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
836 change of the gregset_t type.
837 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
839 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
841 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
843 2001-08-20 Ulrich Drepper <drepper@redhat.com>
845 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
847 * string/strnlen.c: Fix the implementation. We cannot use memchr.
849 2001-08-18 Mark Kettenis <kettenis@gnu.org>
851 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
852 before calling the cthreads initialization code.
854 2001-08-20 Ulrich Drepper <drepper@redhat.com>
856 * argp/argp-help.c: Fix two problems introduced in last change.
858 * include/dirent.h: Include <dirstream.h> first.
860 2001-08-19 Ulrich Drepper <drepper@redhat.com>
862 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
864 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
865 * sunrpc/xdr_rec.c: Likewise.
866 * sunrpc/xdr_mem.c: Likewise.
867 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
868 * sunrpc/rpc_cmsg.c: Likewise.
869 * sunrpc/getrpcport.c (getrpcport): Likewise.
870 * sunrpc/clnt_simp.c (callrpc): Likewise.
871 * sunrpc/clnt_gen.c (clnt_create): Likewise.
872 * string/envz.c: Likewise.
874 * po/ko.po: Update from translation team.
876 * argp/argp-help.c: Handle wide oriented stderr stream.
878 2001-08-18 Ulrich Drepper <drepper@redhat.com>
880 * sysdeps/generic/strtol.c: Little optimizations. Add some
883 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
885 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
886 * wcsmbs/wcwidth.c (wcwdith): Likewise.
887 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
889 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
891 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
893 * time/time.h (struct timespec): Use __time_t for tv_sec element.
895 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
896 wchar_t for function declarations and defintions.
898 * misc/sys/select.h: Define __need_time_t before including <time.h>.
899 Define suseconds_t if it hasn't happened yet.
901 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
903 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
905 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
908 * conform/data/stddef.h-data: Remove wint_t.
910 * conform/conformtest.pl: Change namespace test to take #undef
913 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
915 * conform/data/sys/socket.h-data: Add sockatmark.
917 2001-08-17 Ulrich Drepper <drepper@redhat.com>
919 * io/fts.c: Update from recent BSD source.
921 2001-08-17 Roland McGrath <roland@frob.com>
923 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
924 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
927 2001-08-17 Ulrich Drepper <drepper@redhat.com>
929 * locale/duplocale.c (__duplocale): Also initialize the special
932 * conform/data/netdb.h-data: Adjust gai_strerror return type.
934 2001-08-17 Andreas Jaeger <aj@suse.de>
936 * misc/getpass.c: Include wchar.h for prototypes.
937 * malloc/obstack.c: Likewise.
939 2001-08-17 Ulrich Drepper <drepper@redhat.com>
941 * sunrpc/svc_simple.c (universal): Use __write instead of write.
943 * wcsmbs/wcscoll.c: Also define __wcscoll.
944 * include/wchar.h: Declare __wcscoll.
946 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
947 * libio/vwprintf.c: Likewise.
948 * libio/wprintf.c: Likewise.
950 * iconv/gconv_cache.c: Use __munmap instead of munmap.
952 2001-08-16 Ulrich Drepper <drepper@redhat.com>
954 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
956 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
957 wcslen, and __wcscoll instead of wcscoll.
959 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
961 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
962 __getuid instead of getuid.
964 * stdio-common/perror.c (perror): Use __close instead of close.
965 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
966 * libio/freopen.c (freopen): Likewise.
967 * libio/freopen64.c (freopen64): Likewise.
969 * libio/tst-ungetwc2.c (main): Define str const.
971 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
972 * libio/fwprintf.c: Also define __fwprintf.
973 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
974 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
975 * assert/assert-perr.c: Likewise.
976 * assert/assert.c: Likewise.
977 * gmon/gmon.c: Likewise.
978 * inet/rcmd.c: Likewise.
979 * malloc/obstack.c: Likewise.
980 * misc/err.c: Likewise.
981 * misc/error.c: Likewise.
982 * misc/getpass.c: Likewise.
983 * posix/getopt.c: Likewise.
984 * resolv/res_hconf.c: Likewise.
985 * stdio-common/perror.c: Likewise.
986 * stdio-common/psignal.c: Likewise.
987 * stdlib/fmtmsg.c: Likewise.
988 * sunrpc/auth_unix.c: Likewise.
989 * sunrpc/clnt_perr.c: Likewise.
990 * sunrpc/clnt_tcp.c: Likewise.
991 * sunrpc/clnt_udp.c: Likewise.
992 * sunrpc/clnt_unix.c: Likewise.
993 * sunrpc/svc_simple.c: Likewise.
994 * sunrpc/svc_tcp.c: Likewise.
995 * sunrpc/svc_udp.c: Likewise.
996 * sunrpc/svc_unix.c: Likewise.
997 * sunrpc/xdr.c: Likewise.
998 * sunrpc/xdr_array.c: Likewise.
999 * sunrpc/xdr_rec.c: Likewise.
1000 * sunrpc/xdr_ref.c: Likewise.
1001 * sysdeps/generic/wordexp.c: Likewise.
1003 * po/it.po: Update from translation team.
1005 * misc/err.c: Handle wide oriented stderr stream.
1007 2001-08-14 Tom Rix <trix@redhat.com>
1009 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
1010 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
1012 2001-08-13 Tom Rix <trix@redhat.com>
1014 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
1015 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
1018 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
1020 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
1021 Store the access registers to the ucontext structure.
1022 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
1025 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
1026 Load the access registers from the ucontext structure.
1027 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
1030 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
1031 offsets to the new ucontext layout.
1032 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
1034 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
1035 of the ucontext structure.
1036 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
1038 2001-08-15 Ulrich Drepper <drepper@redhat.com>
1040 * misc/error.c (error): Handle wide oriented stderr stream correctly.
1041 (error_at_line): Likewise.
1043 * stdio-common/perror.c (perror): Implement according to standard.
1044 The stream orientation must not be changed if the stream was not
1045 oriented before the call.
1046 * stdio-common/Makefile (tests): Add tst-perror.
1047 * stdio-common/tst-perror.c: New file.
1050 See ChangeLog.12 for earlier changes.