1 2001-09-12 Ulrich Drepper <drepper@redhat.com>
3 * config.h.in: Enforce optimization to be used.
4 * Makeconfig (preprocess-versions): Define ASSEMBLER.
5 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
6 * posix/Makefile (annexc-CFLAGS): Define to -O.
7 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
9 2001-09-11 Ulrich Drepper <drepper@redhat.com>
11 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
12 Patch by Stephan Kulow.
14 2001-09-08 Ben Collins <bcollins@debian.org>
16 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
17 usage of RESOLVE() (r_type, not reloc->r_type).
19 2001-09-08 Ulrich Drepper <drepper@redhat.com>
21 * elf/dl-object.c: Avoid allocating extra memory block for name.
22 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
24 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
26 2001-09-08 H.J. Lu <hjl@gnu.org>
28 * po/zh_TW.po: Fix a typo.
30 2001-09-07 Tom Rix <trix@redhat.com>
32 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
34 2001-08-26 Tom Rix <trix@redhat.com>
36 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
38 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
39 * sysdeps/unix/sysv/aix/start.c: Removed.
40 * sysdeps/unix/sysv/aix/start-libc.c: New file.
41 * sysdeps/unix/sysv/aix/init-first.c: New file.
42 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
44 2001-09-08 Ben Collins <bcollins@debian.org>
46 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
47 * sysdeps/generic/dl-machine.h: Likewise.
48 * sysdeps/hppa/dl-fptr.c: Likewise.
49 * sysdeps/ia64/dl-fptr.c: Likewise.
50 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
51 * sysdeps/mips/dl-machine.h: Likewise.
52 * sysdeps/mips/mips64/dl-machine.h: Likewise.
53 * sysdeps/powerpc/dl-machine.c: Likewise.
55 2001-09-07 Ben Collins <bcollins@debian.org>
57 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
59 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
61 2001-09-08 Ulrich Drepper <drepper@redhat.com>
63 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
64 dependencies if necessary.
66 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
67 loaded directly) determine length if l_initfini list by iterating
68 over its elements. Minor optimizations.
69 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
70 for dependency objects.
71 If object was already loaded check whether any of the dependencies
72 is already on the relocation dependency list. If yes, remove the
73 latter. Minor optimizations.
74 * elf/dl-lookup.c (add_dependency): Add check for self reference of
75 maps here. Search l_initfini list only if the object was loaded
76 directly and not only as a dependency.
77 (_dl_lookup_symbol): Add relocation dependency also if object
78 is not in global scope. Remove test for self-reference here.
79 (_dl_lookup_versioned_symbol): Likewise.
80 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
81 element of first name record.
82 * elf/loadtest.c: Add some more test to recognize early if an object
84 * elf/Makefile: Add rules to build and run reldep5.
85 * elf/reldep5.c: New file.
86 * elf/reldepmod5.c: New file.
87 * elf/reldepmod6.c: New file.
89 * elf/reldep2.c: Fix typo.
91 2001-09-07 Ulrich Drepper <drepper@redhat.com>
93 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
94 elements. Change l_scope to be a pointer only.
95 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
96 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
97 here add searchlist of newly open file to the dependency's scope.
98 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
99 only searchlist from its scope. Free own scope array if necessary.
100 * elf/Makefile (tests): Add dblload and dblunload now.
102 2001-09-06 Andreas Jaeger <aj@suse.de>
104 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
107 2001-09-05 Ulrich Drepper <drepper@redhat.com>
109 * elf/Makefile: Add rules to build new tests. Don't run them yet since
111 * elf/dblload.c: New file.
112 * elf/dblloadmod1.c: New file.
113 * elf/dblloadmod2.c: New file.
114 * elf/dblloadmod3.c: New file.
115 * elf/dblunload.c: New file.
117 2001-09-04 Richard Henderson <rth@redhat.com>
119 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
120 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
122 2001-09-04 Ulrich Drepper <drepper@redhat.com>
124 Correct very misleading message for error in failed runtime relocation.
125 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
127 (_dl_signal_cerror): Likewise.
128 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
129 * elf/dl-close.c: Likewise.
130 * elf/dl-deps.c: Likewise.
131 * elf/dl-load.c: Likewise.
132 * elf/dl-lookup.c: Likewise.
133 * elf/dl-open.c: Likewise.
134 * elf/dl-reloc.c: Likewise.
135 * elf/dl-sym.c: Likewise.
136 * elf/dl-version.c: Likewise.
137 * sysdeps/generic/dl-sysdep.c: Likewise.
139 2001-09-04 Jakub Jelinek <jakub@redhat.com>
141 * iconv/strtab.c (strtabinit): Initialize null Strent.
142 (newstring): Move len == 0 handling...
143 (strtabadd): ...here.
144 If len == 1, return null Strent.
145 When inserting a suffix of an existing string, check if
146 it is not equal to some suffix already recorded.
147 Copy left and right members over if adding longer string.
149 2001-09-04 Jakub Jelinek <jakub@redhat.com>
151 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
153 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
154 (__syscall_gethostname): Add prototype.
156 2001-09-04 Ulrich Drepper <drepper@redhat.com>
158 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
160 2001-09-02 Ulrich Drepper <drepper@redhat.com>
162 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
164 2001-08-27 Roland McGrath <roland@frob.com>
166 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
167 short, copy that much into NAME anyway before returning error.
169 2001-09-01 Richard Henderson <rth@redhat.com>
171 * sysdeps/alpha/elf/Dist: Remove file.
172 * sysdeps/alpha/elf/Makefile: Remove file.
173 * sysdeps/alpha/elf/crtbegin.S: Remove file.
174 * sysdeps/alpha/elf/crtend.S: Remove file.
175 * sysdeps/alpha/elf/initfini.c: New file.
177 2001-09-01 Mark Kettenis <kettenis@gnu.org>
179 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
180 * iconv/tst-iconv3.c: Likewise.
182 2001-09-01 Jakub Jelinek <jakub@redhat.com>
184 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
186 2001-09-01 Ulrich Drepper <drepper@redhat.com>
188 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
190 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
191 * iconv/iconv_prog.c (insert_cache): New function.
192 (print_known_names): If cache is used call insert_cache to use the
193 information from the cache [PR libc/2509].
195 2001-08-31 Ulrich Drepper <drepper@redhat.com>
197 * time/strptime.c (strptime_internal): Recognize 'l' format and
198 handle it like 'I' for symmetry with strftime.
200 2001-08-31 Richard Henderson <rth@redhat.com>
202 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
203 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
204 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
205 (print_statistics): Make scalar unsigned long long.
206 * sysdeps/alpha/hp-timing.h: New file.
208 2001-08-31 Jakub Jelinek <jakub@redhat.com>
210 * stdio-common/perror.c (perror): Save errno early, pass it
211 down to perror_internal.
212 (perror_internal): Add errnum argument.
214 2001-08-31 Jakub Jelinek <jakub@redhat.com>
216 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
217 Don't add old memory content for R_ALPHA_REFQUAD.
219 2001-08-30 Ulrich Drepper <drepper@redhat.com>
221 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
224 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
225 instead of open, __close instead of close, __getpagesize instead
228 * string/argz-stringify.c (__argz_stringify): Use __strnlen
230 * include/string.h (strndupa): Redefine here to use __strnlen
232 * string/strndup.c (__strndup): Use __strnlen not strnlen.
234 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
237 2001-08-30 Jakub Jelinek <jakub@redhat.com>
239 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
240 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
241 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
242 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
243 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
244 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
245 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
247 2001-08-30 Ulrich Drepper <drepper@redhat.com>
249 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
251 2001-08-30 Andreas Jaeger <aj@suse.de>
253 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
254 contributed Stephen L Moshier.
256 2001-08-30 Jakub Jelinek <jakub@redhat.com>
258 * sunrpc/etc.rpc (sgi_fam): Add.
260 2001-08-30 Ulrich Drepper <drepper@redhat.com>
262 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
264 2001-08-29 Ulrich Drepper <drepper@redhat.com>
266 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
267 first is from a previous call.
268 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
270 2001-08-29 Andreas Schwab <schwab@suse.de>
272 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
274 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
276 * config.make.in (INSTALL_SCRIPT): Define.
277 * Makeconfig (INSTALL_SCRIPT): Define.
278 * Makerules (do-install-script): New macro to install scripts using
280 (install-bin-script): New rule to install scripts with
282 (install-bin-script-nosubdir): New rule.
283 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
284 (distinfo-vars): Add $(install-bin-script).
285 * Rules (others): Likewise.
286 * Makefile (glibcbug): Install with install-bin-script.
287 * debug/Makefile (xtrace): Likewise.
288 (catchsegv): Likewise.
289 * elf/Makefile (ldd): Likewise.
290 * malloc/Makefile (mtrace): Likewise.
291 * timezone/Makefile (tzselect): Likewise.
293 2001-08-29 H.J. Lu <hjl@gnu.org>
295 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
296 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
297 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
299 2001-08-29 Andreas Schwab <schwab@suse.de>
301 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
303 2001-08-28 H.J. Lu <hjl@gnu.org>
305 * Makeconfig (combreloc-LDFLAGS): New variable.
306 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
307 * config.make.in (have-z-combreloc): New variable.
308 * configure.in: Substitute libc_cv_z_combreloc.
310 2001-08-29 Ulrich Drepper <drepper@redhat.com>
312 * po/sv.po: Update from translation team.
313 * po/fr.po: Likewise.
314 * po/da.po: Likewise.
316 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
318 * Makerules: Fix a typo: MD% -> MD5.
320 2001-08-28 Ulrich Drepper <drepper@redhat.com>
322 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
323 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
325 2001-08-28 Andreas Jaeger <aj@suse.de>
327 * manual/libc-texinfo.sh: Add entry about free manuals.
329 * manual/contrib.texi (Contributors): Fix cross reference.
331 * manual/libc.texinfo (Copying): Include freemanuals.
333 * manual/Makefile (appendices): Add freemanuals.
335 * manual/freemanuals.texi: New file.
336 Patch by Brian Youmans <3diff@gnu.org>.
338 * manual/libm-err-tab.pl: Pretty print more platforms, print a
341 * manual/math.texi (Errors in Math Functions): Fix grammar, start
342 table on separate page.
343 Patch by Brian Youmans <3diff@gnu.org>.
345 2001-08-27 Ulrich Drepper <drepper@redhat.com>
347 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
348 the connection went down after we first used it try to connect
349 again and resend the message before printing to the console.
350 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
352 2001-08-27 Jakub Jelinek <jakub@redhat.com>
354 * string/tst-strlen.c (main): Test strnlen (, -1) too.
355 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
358 2001-08-27 Ulrich Drepper <drepper@redhat.com>
360 * iconv/strtab.c (searchstring): Use correct length for comparison.
361 (strtabadd): Account total size correct if new string has old string as
364 2001-08-27 Jakub Jelinek <jakub@redhat.com>
366 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
368 2001-08-27 Andreas Jaeger <aj@suse.de>
370 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
372 * math/libm-test.inc (j0_test): Add extra tests.
373 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
374 not x, in Hankel approximation.
375 Patches by Stephen L Moshier.
377 2001-08-26 Ulrich Drepper <drepper@redhat.com>
379 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
382 * configure.in: Fix test for .rela.dyn section.
384 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
386 2001-08-26 Jakub Jelinek <jakub@redhat.com>
388 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
389 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
390 Pass type_class to _dl_lookup_*.
391 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_clas parameter now.
392 Pass around just type_class instead of noexec, noplt pair.
393 (_dl_lookup_versioned_symbol): Likewise.
394 (_dl_lookup_symbol_skip): Pass around just type_class instead of
396 (_dl_lookup_versioned_symbol_skip): Likewise.
397 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
398 * elf/do-lookup.h (do_lookup): Likewise.
399 * include/link.h (struct link_map): Replace noexec and noplt fields
400 in l_lookup_cache with type_class field.
401 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
402 ELF_RTYPE_CLASS_COPY): Define.
403 Adjust prototypes for _dl_lookup_symbol and
404 _dl_lookup_versioned_symbol.
405 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
406 elf_machine_lookup_noexec_p): Remove.
407 (elf_machine_type_class): Define.
408 * sysdeps/arm/dl-machine.h: Likewise.
409 * sysdeps/hppa/dl-machine.h: Likewise.
410 * sysdeps/cris/dl-machine.h: Likewise.
411 * sysdeps/i386/dl-machine.h: Likewise.
412 * sysdeps/ia64/dl-machine.h: Likewise.
413 * sysdeps/m68k/dl-machine.h: Likewise.
414 * sysdeps/mips/mips64/dl-machine.h: Likewise.
415 * sysdeps/mips/dl-machine.h: Likewise.
416 * sysdeps/powerpc/dl-machine.h: Likewise.
417 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
418 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
419 * sysdeps/sh/dl-machine.h: Likewise.
420 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
421 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
423 2001-08-26 Ulrich Drepper <drepper@redhat.com>
425 * manual/message.texi (Advanced gettext functions): Change
426 description of plural forms for Slovak.
427 Reported by Marcel Telka <marcel@telka.sk>.
429 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
430 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
432 2001-08-26 Jakub Jelinek <jakub@redhat.com>
434 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
435 typo. Patch by Florian La Roche <laroche@redhat.com>.
437 2001-08-26 Ulrich Drepper <drepper@redhat.com>
439 * include/link.h (struct link_map): Add l_lookup_cache element.
440 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
441 (RESOLVE_MAP): Likewise.
442 (_dl_relocate_object): Remove cache initialization.
443 * elf/dl-lookup.c: Rip out cache handling code.
444 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
447 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
448 remove some __builtin_expect.
449 (_dl_lookup_versioned_symbol): Likewise.
451 * config.h.in: Add HAVE_Z_COMBRELOC.
452 * configure.in: Add test for -z combreloc.
454 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
455 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
456 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
457 case to almost no code.
459 2001-08-25 Ulrich Drepper <drepper@redhat.com>
461 * po/tr.po: Update from translation team.
463 2001-08-24 Andreas Jaeger <aj@suse.de>
465 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
468 2001-08-24 Ulrich Drepper <drepper@redhat.com>
470 * elf/rtld.c (print_statistics): Printf % after percent values.
471 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
473 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
474 don't have to compute the hash value and initialize current_value.
475 Move reference_name variable to where it is needed.
476 (_dl_lookup_versioned_symbol): Likewise.
478 2001-08-24 Roland McGrath <roland@frob.com>
480 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
481 Just test that strerror returns non-null for a few errno codes.
483 2001-08-23 Roland McGrath <roland@frob.com>
485 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
486 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
488 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
490 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
493 2001-08-24 Ulrich Drepper <drepper@redhat.com>
495 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
498 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
499 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
501 * elf/rtld.c: Include <sys/param.h>.
502 * elf/dl-reloc.c: Likewise.
504 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
506 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
507 empty to prevent junk from being generated.
508 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
510 2001-08-24 Jakub Jelinek <jakub@redhat.com>
512 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
513 records. Rename endrel to relative, initialize it to r, and use it
514 in elf_machine_rel_relative calls. Point r after relative relocs.
516 2001-08-24 Ulrich Drepper <drepper@redhat.com>
518 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
521 2001-08-24 Jakub Jelinek <jakub@redhat.com>
523 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
524 necessary. Undefine newly defined macros at the end.
525 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
526 Rename from elf_machine_rel_relative.
527 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
528 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
529 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
530 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
532 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
534 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
536 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
538 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
539 Likewise. Fix argument types.
540 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
541 Likewise. Fix argument types.
542 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
544 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
545 ElfW(Rel) in argument.
546 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
549 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
551 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
553 2001-08-24 Andreas Jaeger <aj@suse.de>
555 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
556 Stephen L Moshier <moshier@mediaone.net>.
558 2001-08-24 Ulrich Drepper <drepper@redhat.com>
560 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
561 first if RELCOUNT is set.
563 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
564 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
565 elf_machine_rel_relative.
566 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
568 * sysdeps/arm/dl-machine.h: Likewise.
569 * sysdeps/cris/dl-machine.h: Likewise.
570 * sysdeps/hppa/dl-machine.h: Likewise.
571 * sysdeps/i386/dl-machine.h: Likewise.
572 * sysdeps/ia64/dl-machine.h: Likewise.
573 * sysdeps/m68k/dl-machine.h: Likewise.
574 * sysdeps/mips/dl-machine.h: Likewise.
575 * sysdeps/powerpc/dl-machine.h: Likewise.
576 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
577 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
578 * sysdeps/sh/dl-machine.h: Likewise.
579 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
580 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
582 2001-08-23 Roland McGrath <roland@frob.com>
584 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
586 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
587 sysdeps/mach version. Implement counting ("recursive") mutexes
588 on top of cthreads mutexes.
589 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
591 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
592 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
593 (__libc_cleanup_region_start, __libc_cleanup_region_end,
594 __libc_clean_end): Define these to call the cleanup function after
595 normal exit when they're supposed to.
597 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
598 Take new first arg DOIT, a boolean saying whether to really install
600 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
601 (__libc_cleanup_end): Likewise.
602 * sysdeps/generic/bits/libc-lock.h: Same changes.
603 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
604 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
605 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
607 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
608 * sysdeps/generic/bits/stdio-lock.h
609 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
611 2001-08-23 Jakub Jelinek <jakub@redhat.com>
613 * elf/ldconfig.c (search_dir): Remove stale symlinks.
615 2001-08-23 Jakub Jelinek <jakub@redhat.com>
617 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
618 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
620 (_dl_lookup_versioned_symbol): Likewise.
621 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
623 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
624 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
625 (lookup_cache, lookup_cache_versioned): Add declarations.
627 2001-08-23 Ulrich Drepper <drepper@redhat.com>
629 * stdlib/tst-random.c (main): Swap parameters in fail call.
630 Patch by Pete Bevin <pete@petebevin.com>.
632 2001-08-23 Jakub Jelinek <jakub@redhat.com>
634 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
636 2001-08-23 Ulrich Drepper <drepper@redhat.com>
638 * malloc/obstack.c: Indent preprocessor directives.
639 Patch by Jim Meyering <meyering@ascend.com>.
641 * po/ja.po: Update from translation team.
643 2001-08-23 Roland McGrath <roland@frob.com>
645 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
647 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
648 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
650 2001-08-22 Roland McGrath <roland@frob.com>
652 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
653 __libc_lock_define_recursive.
654 * elf/dl-open.c: Don't declare it here any more.
655 * elf/dl-close.c: Likewise.
656 * elf/dl-lookup.c: Likewise.
657 * elf/dl-iteratephdr.c: Likewise.
658 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
659 __libc_lock_unlock_recursive.
660 * elf/dl-close.c (_dl_close): Likewise
661 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
662 * elf/dl-open.c (_dl_open): Likewise
664 * sysdeps/generic/bits/libc-lock.h
665 (__libc_lock_define_recursive): New macro.
666 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
667 (_IO_lock_lock): Use __libc_lock_lock_recursive.
668 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
670 * conform/conformtest.pl (checknamespace): Sort the output list.
672 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
673 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
674 definitions conditional on [__USE_XOPEN].
676 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
677 these unconditionally, not only use [__USE_BSD], so as to match
678 the sysdeps/unix/sysv/linux files.
680 2001-08-22 Ulrich Drepper <drepper@redhat.com>
682 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
685 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
688 2001-08-22 Roland McGrath <roland@frob.com>
690 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
691 conditionalization of sa_handler/sa_sigaction member types to
692 match the sysdeps/unix/sysv/linux file.
694 2001-08-22 Ulrich Drepper <drepper@redhat.com>
696 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
697 symbol sizes a bit better.
699 * sysdeps/ia64/strncpy.S: Complete rewrite.
700 Contributed by Jakub Jelinek <jakub@redhat.com>.
702 * string/stratcliff.c (main): Add strncpy test.
704 2001-08-22 Roland McGrath <roland@frob.com>
706 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
707 and don't declare unsetenv or _environ directly.
708 (unsetenv): Return int, not void. Use __environ instead of _environ.
710 2001-08-01 Mark Kettenis <kettenis@gnu.org>
712 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
713 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
714 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
715 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
716 test for cmsg struct size.
718 2001-04-23 Paul Eggert <eggert@twinsun.com>
720 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
721 Rename __argc to ___argc in prototypes to avoid compatibility
722 problems with systems that reserve the identifier "__argc".
723 Similarly for __argv.
725 2001-08-21 Roland McGrath <roland@frob.com>
727 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
729 * mach/Makefile (tests): Removed.
730 * mach/hello.c: File removed.
732 2001-08-22 Ulrich Drepper <drepper@redhat.com>
734 * po/sv.po: Update from translation team.
736 * stdio-common/vfscanf.c: Fix handling of %l[].
737 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
739 * libio/Makefile (tests): Add tst-sscanf.
740 * libio/tst-sscanf.c: New file.
742 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
743 * malloc/mtrace.c (tr_where): dli_sname always points to a
744 non-empty string if != NULL.
745 Reported by Tim Janik <timj@gtk.org>.
747 2001-08-22 Jakub Jelinek <jakub@redhat.com>
749 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
750 buf. Free resources on failure.
751 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
752 (makefd_xprt): Likewise.
753 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
754 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
755 * sunrpc/auth_unix.c (authunix_create): Likewise.
757 2001-08-21 Jakub Jelinek <jakub@redhat.com>
759 * string/strnlen.c: Remove.
760 * sysdeps/generic/strnlen.c: New.
761 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
763 2001-08-21 Roland McGrath <roland@frob.com>
765 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
766 as a macro, not an extern inline function.
768 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
769 * Versions.def (libc): Add GLIBC_2.2.5 set.
770 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
771 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
773 2001-08-20 Roland McGrath <roland@frob.com>
775 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
776 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
778 2001-08-21 Ulrich Drepper <drepper@redhat.com>
780 * string/bits/string2.h: Remove strnlen optimization here.
781 * sysdeps/i386/i486/bits/string.h: Add it here.
783 2001-08-21 Wolfram Gloger <wg@malloc.de>
785 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
787 2001-08-21 Ulrich Drepper <drepper@redhat.com>
789 * po/gl.po: Update from translation team.
791 2001-08-20 Ulrich Drepper <drepper@redhat.com>
793 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
794 * misc/err.c (convert_and_print): Likewise.
796 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
799 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
801 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
802 change of the gregset_t type.
803 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
805 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
807 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
809 2001-08-20 Ulrich Drepper <drepper@redhat.com>
811 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
813 * string/strnlen.c: Fix the implementation. We cannot use memchr.
815 2001-08-18 Mark Kettenis <kettenis@gnu.org>
817 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
818 before calling the cthreads initialization code.
820 2001-08-20 Ulrich Drepper <drepper@redhat.com>
822 * argp/argp-help.c: Fix two problems introduced in last change.
824 * include/dirent.h: Include <dirstream.h> first.
826 2001-08-19 Ulrich Drepper <drepper@redhat.com>
828 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
830 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
831 * sunrpc/xdr_rec.c: Likewise.
832 * sunrpc/xdr_mem.c: Likewise.
833 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
834 * sunrpc/rpc_cmsg.c: Likewise.
835 * sunrpc/getrpcport.c (getrpcport): Likewise.
836 * sunrpc/clnt_simp.c (callrpc): Likewise.
837 * sunrpc/clnt_gen.c (clnt_create): Likewise.
838 * string/envz.c: Likewise.
840 * po/ko.po: Update from translation team.
842 * argp/argp-help.c: Handle wide oriented stderr stream.
844 2001-08-18 Ulrich Drepper <drepper@redhat.com>
846 * sysdeps/generic/strtol.c: Little optimizations. Add some
849 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
851 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
852 * wcsmbs/wcwidth.c (wcwdith): Likewise.
853 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
855 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
857 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
859 * time/time.h (struct timespec): Use __time_t for tv_sec element.
861 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
862 wchar_t for function declarations and defintions.
864 * misc/sys/select.h: Define __need_time_t before including <time.h>.
865 Define suseconds_t if it hasn't happened yet.
867 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
869 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
871 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
874 * conform/data/stddef.h-data: Remove wint_t.
876 * conform/conformtest.pl: Change namespace test to take #undef
879 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
881 * conform/data/sys/socket.h-data: Add sockatmark.
883 2001-08-17 Ulrich Drepper <drepper@redhat.com>
885 * io/fts.c: Update from recent BSD source.
887 2001-08-17 Roland McGrath <roland@frob.com>
889 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
890 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
893 2001-08-17 Ulrich Drepper <drepper@redhat.com>
895 * locale/duplocale.c (__duplocale): Also initialize the special
898 * conform/data/netdb.h-data: Adjust gai_strerror return type.
900 2001-08-17 Andreas Jaeger <aj@suse.de>
902 * misc/getpass.c: Include wchar.h for prototypes.
903 * malloc/obstack.c: Likewise.
905 2001-08-17 Ulrich Drepper <drepper@redhat.com>
907 * sunrpc/svc_simple.c (universal): Use __write instead of write.
909 * wcsmbs/wcscoll.c: Also define __wcscoll.
910 * include/wchar.h: Declare __wcscoll.
912 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
913 * libio/vwprintf.c: Likewise.
914 * libio/wprintf.c: Likewise.
916 * iconv/gconv_cache.c: Use __munmap instead of munmap.
918 2001-08-16 Ulrich Drepper <drepper@redhat.com>
920 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
922 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
923 wcslen, and __wcscoll instead of wcscoll.
925 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
927 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
928 __getuid instead of getuid.
930 * stdio-common/perror.c (perror): Use __close instead of close.
931 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
932 * libio/freopen.c (freopen): Likewise.
933 * libio/freopen64.c (freopen64): Likewise.
935 * libio/tst-ungetwc2.c (main): Define str const.
937 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
938 * libio/fwprintf.c: Also define __fwprintf.
939 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
940 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
941 * assert/assert-perr.c: Likewise.
942 * assert/assert.c: Likewise.
943 * gmon/gmon.c: Likewise.
944 * inet/rcmd.c: Likewise.
945 * malloc/obstack.c: Likewise.
946 * misc/err.c: Likewise.
947 * misc/error.c: Likewise.
948 * misc/getpass.c: Likewise.
949 * posix/getopt.c: Likewise.
950 * resolv/res_hconf.c: Likewise.
951 * stdio-common/perror.c: Likewise.
952 * stdio-common/psignal.c: Likewise.
953 * stdlib/fmtmsg.c: Likewise.
954 * sunrpc/auth_unix.c: Likewise.
955 * sunrpc/clnt_perr.c: Likewise.
956 * sunrpc/clnt_tcp.c: Likewise.
957 * sunrpc/clnt_udp.c: Likewise.
958 * sunrpc/clnt_unix.c: Likewise.
959 * sunrpc/svc_simple.c: Likewise.
960 * sunrpc/svc_tcp.c: Likewise.
961 * sunrpc/svc_udp.c: Likewise.
962 * sunrpc/svc_unix.c: Likewise.
963 * sunrpc/xdr.c: Likewise.
964 * sunrpc/xdr_array.c: Likewise.
965 * sunrpc/xdr_rec.c: Likewise.
966 * sunrpc/xdr_ref.c: Likewise.
967 * sysdeps/generic/wordexp.c: Likewise.
969 * po/it.po: Update from translation team.
971 * misc/err.c: Handle wide oriented stderr stream.
973 2001-08-14 Tom Rix <trix@redhat.com>
975 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
976 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
978 2001-08-13 Tom Rix <trix@redhat.com>
980 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
981 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
984 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
986 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
987 Store the access registers to the ucontext structure.
988 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
991 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
992 Load the access registers from the ucontext structure.
993 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
996 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
997 offsets to the new ucontext layout.
998 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
1000 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
1001 of the ucontext structure.
1002 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
1004 2001-08-15 Ulrich Drepper <drepper@redhat.com>
1006 * misc/error.c (error): Handle wide oriented stderr stream correctly.
1007 (error_at_line): Likewise.
1009 * stdio-common/perror.c (perror): Implement according to standard.
1010 The stream orientation must not be changed if the stream was not
1011 oriented before the call.
1012 * stdio-common/Makefile (tests): Add tst-perror.
1013 * stdio-common/tst-perror.c: New file.
1016 See ChangeLog.12 for earlier changes.