1 2001-09-08 H.J. Lu <hjl@gnu.org>
3 * po/zh_TW.po: Fix a typo.
5 2001-09-07 Tom Rix <trix@redhat.com>
7 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
9 2001-08-26 Tom Rix <trix@redhat.com>
11 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
13 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
14 * sysdeps/unix/sysv/aix/start.c: Removed.
15 * sysdeps/unix/sysv/aix/start-libc.c: New file.
16 * sysdeps/unix/sysv/aix/init-first.c: New file.
17 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
19 2001-09-08 Ben Collins <bcollins@debian.org>
21 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
22 * sysdeps/generic/dl-machine.h: Likewise.
23 * sysdeps/hppa/dl-fptr.c: Likewise.
24 * sysdeps/ia64/dl-fptr.c: Likewise.
25 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
26 * sysdeps/mips/dl-machine.h: Likewise.
27 * sysdeps/mips/mips64/dl-machine.h: Likewise.
28 * sysdeps/powerpc/dl-machine.c: Likewise.
30 2001-09-07 Ben Collins <bcollins@debian.org>
32 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
34 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
36 2001-09-08 Ulrich Drepper <drepper@redhat.com>
38 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
39 dependencies if necessary.
41 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
42 loaded directly) determine length if l_initfini list by iterating
43 over its elements. Minor optimizations.
44 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
45 for dependency objects.
46 If object was already loaded check whether any of the dependencies
47 is already on the relocation dependency list. If yes, remove the
48 latter. Minor optimizations.
49 * elf/dl-lookup.c (add_dependency): Add check for self reference of
50 maps here. Search l_initfini list only if the object was loaded
51 directly and not only as a dependency.
52 (_dl_lookup_symbol): Add relocation dependency also if object
53 is not in global scope. Remove test for self-reference here.
54 (_dl_lookup_versioned_symbol): Likewise.
55 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
56 element of first name record.
57 * elf/loadtest.c: Add some more test to recognize early if an object
59 * elf/Makefile: Add rules to build and run reldep5.
60 * elf/reldep5.c: New file.
61 * elf/reldepmod5.c: New file.
62 * elf/reldepmod6.c: New file.
64 * elf/reldep2.c: Fix typo.
66 2001-09-07 Ulrich Drepper <drepper@redhat.com>
68 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
69 elements. Change l_scope to be a pointer only.
70 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
71 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
72 here add searchlist of newly open file to the dependency's scope.
73 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
74 only searchlist from its scope. Free own scope array if necessary.
75 * elf/Makefile (tests): Add dblload and dblunload now.
77 2001-09-06 Andreas Jaeger <aj@suse.de>
79 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
82 2001-09-05 Ulrich Drepper <drepper@redhat.com>
84 * elf/Makefile: Add rules to build new tests. Don't run them yet since
86 * elf/dblload.c: New file.
87 * elf/dblloadmod1.c: New file.
88 * elf/dblloadmod2.c: New file.
89 * elf/dblloadmod3.c: New file.
90 * elf/dblunload.c: New file.
92 2001-09-04 Richard Henderson <rth@redhat.com>
94 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
95 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
97 2001-09-04 Ulrich Drepper <drepper@redhat.com>
99 Correct very misleading message for error in failed runtime relocation.
100 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
102 (_dl_signal_cerror): Likewise.
103 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
104 * elf/dl-close.c: Likewise.
105 * elf/dl-deps.c: Likewise.
106 * elf/dl-load.c: Likewise.
107 * elf/dl-lookup.c: Likewise.
108 * elf/dl-open.c: Likewise.
109 * elf/dl-reloc.c: Likewise.
110 * elf/dl-sym.c: Likewise.
111 * elf/dl-version.c: Likewise.
112 * sysdeps/generic/dl-sysdep.c: Likewise.
114 2001-09-04 Jakub Jelinek <jakub@redhat.com>
116 * iconv/strtab.c (strtabinit): Initialize null Strent.
117 (newstring): Move len == 0 handling...
118 (strtabadd): ...here.
119 If len == 1, return null Strent.
120 When inserting a suffix of an existing string, check if
121 it is not equal to some suffix already recorded.
122 Copy left and right members over if adding longer string.
124 2001-09-04 Jakub Jelinek <jakub@redhat.com>
126 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
128 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
129 (__syscall_gethostname): Add prototype.
131 2001-09-04 Ulrich Drepper <drepper@redhat.com>
133 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
135 2001-09-02 Ulrich Drepper <drepper@redhat.com>
137 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
139 2001-08-27 Roland McGrath <roland@frob.com>
141 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
142 short, copy that much into NAME anyway before returning error.
144 2001-09-01 Richard Henderson <rth@redhat.com>
146 * sysdeps/alpha/elf/Dist: Remove file.
147 * sysdeps/alpha/elf/Makefile: Remove file.
148 * sysdeps/alpha/elf/crtbegin.S: Remove file.
149 * sysdeps/alpha/elf/crtend.S: Remove file.
150 * sysdeps/alpha/elf/initfini.c: New file.
152 2001-09-01 Mark Kettenis <kettenis@gnu.org>
154 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
155 * iconv/tst-iconv3.c: Likewise.
157 2001-09-01 Jakub Jelinek <jakub@redhat.com>
159 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
161 2001-09-01 Ulrich Drepper <drepper@redhat.com>
163 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
165 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
166 * iconv/iconv_prog.c (insert_cache): New function.
167 (print_known_names): If cache is used call insert_cache to use the
168 information from the cache [PR libc/2509].
170 2001-08-31 Ulrich Drepper <drepper@redhat.com>
172 * time/strptime.c (strptime_internal): Recognize 'l' format and
173 handle it like 'I' for symmetry with strftime.
175 2001-08-31 Richard Henderson <rth@redhat.com>
177 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
178 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
179 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
180 (print_statistics): Make scalar unsigned long long.
181 * sysdeps/alpha/hp-timing.h: New file.
183 2001-08-31 Jakub Jelinek <jakub@redhat.com>
185 * stdio-common/perror.c (perror): Save errno early, pass it
186 down to perror_internal.
187 (perror_internal): Add errnum argument.
189 2001-08-31 Jakub Jelinek <jakub@redhat.com>
191 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
192 Don't add old memory content for R_ALPHA_REFQUAD.
194 2001-08-30 Ulrich Drepper <drepper@redhat.com>
196 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
199 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
200 instead of open, __close instead of close, __getpagesize instead
203 * string/argz-stringify.c (__argz_stringify): Use __strnlen
205 * include/string.h (strndupa): Redefine here to use __strnlen
207 * string/strndup.c (__strndup): Use __strnlen not strnlen.
209 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
212 2001-08-30 Jakub Jelinek <jakub@redhat.com>
214 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
215 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
216 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
217 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
218 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
219 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
220 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
222 2001-08-30 Ulrich Drepper <drepper@redhat.com>
224 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
226 2001-08-30 Andreas Jaeger <aj@suse.de>
228 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
229 contributed Stephen L Moshier.
231 2001-08-30 Jakub Jelinek <jakub@redhat.com>
233 * sunrpc/etc.rpc (sgi_fam): Add.
235 2001-08-30 Ulrich Drepper <drepper@redhat.com>
237 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
239 2001-08-29 Ulrich Drepper <drepper@redhat.com>
241 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
242 first is from a previous call.
243 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
245 2001-08-29 Andreas Schwab <schwab@suse.de>
247 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
249 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
251 * config.make.in (INSTALL_SCRIPT): Define.
252 * Makeconfig (INSTALL_SCRIPT): Define.
253 * Makerules (do-install-script): New macro to install scripts using
255 (install-bin-script): New rule to install scripts with
257 (install-bin-script-nosubdir): New rule.
258 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
259 (distinfo-vars): Add $(install-bin-script).
260 * Rules (others): Likewise.
261 * Makefile (glibcbug): Install with install-bin-script.
262 * debug/Makefile (xtrace): Likewise.
263 (catchsegv): Likewise.
264 * elf/Makefile (ldd): Likewise.
265 * malloc/Makefile (mtrace): Likewise.
266 * timezone/Makefile (tzselect): Likewise.
268 2001-08-29 H.J. Lu <hjl@gnu.org>
270 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
271 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
272 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
274 2001-08-29 Andreas Schwab <schwab@suse.de>
276 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
278 2001-08-28 H.J. Lu <hjl@gnu.org>
280 * Makeconfig (combreloc-LDFLAGS): New variable.
281 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
282 * config.make.in (have-z-combreloc): New variable.
283 * configure.in: Substitute libc_cv_z_combreloc.
285 2001-08-29 Ulrich Drepper <drepper@redhat.com>
287 * po/sv.po: Update from translation team.
288 * po/fr.po: Likewise.
289 * po/da.po: Likewise.
291 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
293 * Makerules: Fix a typo: MD% -> MD5.
295 2001-08-28 Ulrich Drepper <drepper@redhat.com>
297 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
298 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
300 2001-08-28 Andreas Jaeger <aj@suse.de>
302 * manual/libc-texinfo.sh: Add entry about free manuals.
304 * manual/contrib.texi (Contributors): Fix cross reference.
306 * manual/libc.texinfo (Copying): Include freemanuals.
308 * manual/Makefile (appendices): Add freemanuals.
310 * manual/freemanuals.texi: New file.
311 Patch by Brian Youmans <3diff@gnu.org>.
313 * manual/libm-err-tab.pl: Pretty print more platforms, print a
316 * manual/math.texi (Errors in Math Functions): Fix grammar, start
317 table on separate page.
318 Patch by Brian Youmans <3diff@gnu.org>.
320 2001-08-27 Ulrich Drepper <drepper@redhat.com>
322 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
323 the connection went down after we first used it try to connect
324 again and resend the message before printing to the console.
325 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
327 2001-08-27 Jakub Jelinek <jakub@redhat.com>
329 * string/tst-strlen.c (main): Test strnlen (, -1) too.
330 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
333 2001-08-27 Ulrich Drepper <drepper@redhat.com>
335 * iconv/strtab.c (searchstring): Use correct length for comparison.
336 (strtabadd): Account total size correct if new string has old string as
339 2001-08-27 Jakub Jelinek <jakub@redhat.com>
341 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
343 2001-08-27 Andreas Jaeger <aj@suse.de>
345 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
347 * math/libm-test.inc (j0_test): Add extra tests.
348 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
349 not x, in Hankel approximation.
350 Patches by Stephen L Moshier.
352 2001-08-26 Ulrich Drepper <drepper@redhat.com>
354 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
357 * configure.in: Fix test for .rela.dyn section.
359 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
361 2001-08-26 Jakub Jelinek <jakub@redhat.com>
363 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
364 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
365 Pass type_class to _dl_lookup_*.
366 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_clas parameter now.
367 Pass around just type_class instead of noexec, noplt pair.
368 (_dl_lookup_versioned_symbol): Likewise.
369 (_dl_lookup_symbol_skip): Pass around just type_class instead of
371 (_dl_lookup_versioned_symbol_skip): Likewise.
372 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
373 * elf/do-lookup.h (do_lookup): Likewise.
374 * include/link.h (struct link_map): Replace noexec and noplt fields
375 in l_lookup_cache with type_class field.
376 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
377 ELF_RTYPE_CLASS_COPY): Define.
378 Adjust prototypes for _dl_lookup_symbol and
379 _dl_lookup_versioned_symbol.
380 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
381 elf_machine_lookup_noexec_p): Remove.
382 (elf_machine_type_class): Define.
383 * sysdeps/arm/dl-machine.h: Likewise.
384 * sysdeps/hppa/dl-machine.h: Likewise.
385 * sysdeps/cris/dl-machine.h: Likewise.
386 * sysdeps/i386/dl-machine.h: Likewise.
387 * sysdeps/ia64/dl-machine.h: Likewise.
388 * sysdeps/m68k/dl-machine.h: Likewise.
389 * sysdeps/mips/mips64/dl-machine.h: Likewise.
390 * sysdeps/mips/dl-machine.h: Likewise.
391 * sysdeps/powerpc/dl-machine.h: Likewise.
392 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
393 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
394 * sysdeps/sh/dl-machine.h: Likewise.
395 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
396 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
398 2001-08-26 Ulrich Drepper <drepper@redhat.com>
400 * manual/message.texi (Advanced gettext functions): Change
401 description of plural forms for Slovak.
402 Reported by Marcel Telka <marcel@telka.sk>.
404 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
405 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
407 2001-08-26 Jakub Jelinek <jakub@redhat.com>
409 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
410 typo. Patch by Florian La Roche <laroche@redhat.com>.
412 2001-08-26 Ulrich Drepper <drepper@redhat.com>
414 * include/link.h (struct link_map): Add l_lookup_cache element.
415 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
416 (RESOLVE_MAP): Likewise.
417 (_dl_relocate_object): Remove cache initialization.
418 * elf/dl-lookup.c: Rip out cache handling code.
419 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
422 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
423 remove some __builtin_expect.
424 (_dl_lookup_versioned_symbol): Likewise.
426 * config.h.in: Add HAVE_Z_COMBRELOC.
427 * configure.in: Add test for -z combreloc.
429 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
430 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
431 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
432 case to almost no code.
434 2001-08-25 Ulrich Drepper <drepper@redhat.com>
436 * po/tr.po: Update from translation team.
438 2001-08-24 Andreas Jaeger <aj@suse.de>
440 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
443 2001-08-24 Ulrich Drepper <drepper@redhat.com>
445 * elf/rtld.c (print_statistics): Printf % after percent values.
446 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
448 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
449 don't have to compute the hash value and initialize current_value.
450 Move reference_name variable to where it is needed.
451 (_dl_lookup_versioned_symbol): Likewise.
453 2001-08-24 Roland McGrath <roland@frob.com>
455 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
456 Just test that strerror returns non-null for a few errno codes.
458 2001-08-23 Roland McGrath <roland@frob.com>
460 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
461 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
463 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
465 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
468 2001-08-24 Ulrich Drepper <drepper@redhat.com>
470 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
473 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
474 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
476 * elf/rtld.c: Include <sys/param.h>.
477 * elf/dl-reloc.c: Likewise.
479 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
481 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
482 empty to prevent junk from being generated.
483 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
485 2001-08-24 Jakub Jelinek <jakub@redhat.com>
487 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
488 records. Rename endrel to relative, initialize it to r, and use it
489 in elf_machine_rel_relative calls. Point r after relative relocs.
491 2001-08-24 Ulrich Drepper <drepper@redhat.com>
493 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
496 2001-08-24 Jakub Jelinek <jakub@redhat.com>
498 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
499 necessary. Undefine newly defined macros at the end.
500 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
501 Rename from elf_machine_rel_relative.
502 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
503 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
504 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
505 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
507 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
509 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
511 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
513 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
514 Likewise. Fix argument types.
515 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
516 Likewise. Fix argument types.
517 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
519 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
520 ElfW(Rel) in argument.
521 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
524 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
526 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
528 2001-08-24 Andreas Jaeger <aj@suse.de>
530 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
531 Stephen L Moshier <moshier@mediaone.net>.
533 2001-08-24 Ulrich Drepper <drepper@redhat.com>
535 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
536 first if RELCOUNT is set.
538 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
539 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
540 elf_machine_rel_relative.
541 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
543 * sysdeps/arm/dl-machine.h: Likewise.
544 * sysdeps/cris/dl-machine.h: Likewise.
545 * sysdeps/hppa/dl-machine.h: Likewise.
546 * sysdeps/i386/dl-machine.h: Likewise.
547 * sysdeps/ia64/dl-machine.h: Likewise.
548 * sysdeps/m68k/dl-machine.h: Likewise.
549 * sysdeps/mips/dl-machine.h: Likewise.
550 * sysdeps/powerpc/dl-machine.h: Likewise.
551 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
552 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
553 * sysdeps/sh/dl-machine.h: Likewise.
554 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
555 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
557 2001-08-23 Roland McGrath <roland@frob.com>
559 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
561 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
562 sysdeps/mach version. Implement counting ("recursive") mutexes
563 on top of cthreads mutexes.
564 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
566 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
567 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
568 (__libc_cleanup_region_start, __libc_cleanup_region_end,
569 __libc_clean_end): Define these to call the cleanup function after
570 normal exit when they're supposed to.
572 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
573 Take new first arg DOIT, a boolean saying whether to really install
575 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
576 (__libc_cleanup_end): Likewise.
577 * sysdeps/generic/bits/libc-lock.h: Same changes.
578 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
579 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
580 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
582 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
583 * sysdeps/generic/bits/stdio-lock.h
584 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
586 2001-08-23 Jakub Jelinek <jakub@redhat.com>
588 * elf/ldconfig.c (search_dir): Remove stale symlinks.
590 2001-08-23 Jakub Jelinek <jakub@redhat.com>
592 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
593 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
595 (_dl_lookup_versioned_symbol): Likewise.
596 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
598 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
599 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
600 (lookup_cache, lookup_cache_versioned): Add declarations.
602 2001-08-23 Ulrich Drepper <drepper@redhat.com>
604 * stdlib/tst-random.c (main): Swap parameters in fail call.
605 Patch by Pete Bevin <pete@petebevin.com>.
607 2001-08-23 Jakub Jelinek <jakub@redhat.com>
609 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
611 2001-08-23 Ulrich Drepper <drepper@redhat.com>
613 * malloc/obstack.c: Indent preprocessor directives.
614 Patch by Jim Meyering <meyering@ascend.com>.
616 * po/ja.po: Update from translation team.
618 2001-08-23 Roland McGrath <roland@frob.com>
620 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
622 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
623 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
625 2001-08-22 Roland McGrath <roland@frob.com>
627 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
628 __libc_lock_define_recursive.
629 * elf/dl-open.c: Don't declare it here any more.
630 * elf/dl-close.c: Likewise.
631 * elf/dl-lookup.c: Likewise.
632 * elf/dl-iteratephdr.c: Likewise.
633 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
634 __libc_lock_unlock_recursive.
635 * elf/dl-close.c (_dl_close): Likewise
636 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
637 * elf/dl-open.c (_dl_open): Likewise
639 * sysdeps/generic/bits/libc-lock.h
640 (__libc_lock_define_recursive): New macro.
641 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
642 (_IO_lock_lock): Use __libc_lock_lock_recursive.
643 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
645 * conform/conformtest.pl (checknamespace): Sort the output list.
647 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
648 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
649 definitions conditional on [__USE_XOPEN].
651 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
652 these unconditionally, not only use [__USE_BSD], so as to match
653 the sysdeps/unix/sysv/linux files.
655 2001-08-22 Ulrich Drepper <drepper@redhat.com>
657 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
660 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
663 2001-08-22 Roland McGrath <roland@frob.com>
665 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
666 conditionalization of sa_handler/sa_sigaction member types to
667 match the sysdeps/unix/sysv/linux file.
669 2001-08-22 Ulrich Drepper <drepper@redhat.com>
671 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
672 symbol sizes a bit better.
674 * sysdeps/ia64/strncpy.S: Complete rewrite.
675 Contributed by Jakub Jelinek <jakub@redhat.com>.
677 * string/stratcliff.c (main): Add strncpy test.
679 2001-08-22 Roland McGrath <roland@frob.com>
681 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
682 and don't declare unsetenv or _environ directly.
683 (unsetenv): Return int, not void. Use __environ instead of _environ.
685 2001-08-01 Mark Kettenis <kettenis@gnu.org>
687 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
688 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
689 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
690 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
691 test for cmsg struct size.
693 2001-04-23 Paul Eggert <eggert@twinsun.com>
695 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
696 Rename __argc to ___argc in prototypes to avoid compatibility
697 problems with systems that reserve the identifier "__argc".
698 Similarly for __argv.
700 2001-08-21 Roland McGrath <roland@frob.com>
702 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
704 * mach/Makefile (tests): Removed.
705 * mach/hello.c: File removed.
707 2001-08-22 Ulrich Drepper <drepper@redhat.com>
709 * po/sv.po: Update from translation team.
711 * stdio-common/vfscanf.c: Fix handling of %l[].
712 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
714 * libio/Makefile (tests): Add tst-sscanf.
715 * libio/tst-sscanf.c: New file.
717 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
718 * malloc/mtrace.c (tr_where): dli_sname always points to a
719 non-empty string if != NULL.
720 Reported by Tim Janik <timj@gtk.org>.
722 2001-08-22 Jakub Jelinek <jakub@redhat.com>
724 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
725 buf. Free resources on failure.
726 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
727 (makefd_xprt): Likewise.
728 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
729 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
730 * sunrpc/auth_unix.c (authunix_create): Likewise.
732 2001-08-21 Jakub Jelinek <jakub@redhat.com>
734 * string/strnlen.c: Remove.
735 * sysdeps/generic/strnlen.c: New.
736 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
738 2001-08-21 Roland McGrath <roland@frob.com>
740 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
741 as a macro, not an extern inline function.
743 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
744 * Versions.def (libc): Add GLIBC_2.2.5 set.
745 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
746 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
748 2001-08-20 Roland McGrath <roland@frob.com>
750 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
751 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
753 2001-08-21 Ulrich Drepper <drepper@redhat.com>
755 * string/bits/string2.h: Remove strnlen optimization here.
756 * sysdeps/i386/i486/bits/string.h: Add it here.
758 2001-08-21 Wolfram Gloger <wg@malloc.de>
760 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
762 2001-08-21 Ulrich Drepper <drepper@redhat.com>
764 * po/gl.po: Update from translation team.
766 2001-08-20 Ulrich Drepper <drepper@redhat.com>
768 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
769 * misc/err.c (convert_and_print): Likewise.
771 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
774 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
776 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
777 change of the gregset_t type.
778 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
780 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
782 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
784 2001-08-20 Ulrich Drepper <drepper@redhat.com>
786 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
788 * string/strnlen.c: Fix the implementation. We cannot use memchr.
790 2001-08-18 Mark Kettenis <kettenis@gnu.org>
792 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
793 before calling the cthreads initialization code.
795 2001-08-20 Ulrich Drepper <drepper@redhat.com>
797 * argp/argp-help.c: Fix two problems introduced in last change.
799 * include/dirent.h: Include <dirstream.h> first.
801 2001-08-19 Ulrich Drepper <drepper@redhat.com>
803 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
805 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
806 * sunrpc/xdr_rec.c: Likewise.
807 * sunrpc/xdr_mem.c: Likewise.
808 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
809 * sunrpc/rpc_cmsg.c: Likewise.
810 * sunrpc/getrpcport.c (getrpcport): Likewise.
811 * sunrpc/clnt_simp.c (callrpc): Likewise.
812 * sunrpc/clnt_gen.c (clnt_create): Likewise.
813 * string/envz.c: Likewise.
815 * po/ko.po: Update from translation team.
817 * argp/argp-help.c: Handle wide oriented stderr stream.
819 2001-08-18 Ulrich Drepper <drepper@redhat.com>
821 * sysdeps/generic/strtol.c: Little optimizations. Add some
824 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
826 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
827 * wcsmbs/wcwidth.c (wcwdith): Likewise.
828 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
830 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
832 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
834 * time/time.h (struct timespec): Use __time_t for tv_sec element.
836 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
837 wchar_t for function declarations and defintions.
839 * misc/sys/select.h: Define __need_time_t before including <time.h>.
840 Define suseconds_t if it hasn't happened yet.
842 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
844 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
846 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
849 * conform/data/stddef.h-data: Remove wint_t.
851 * conform/conformtest.pl: Change namespace test to take #undef
854 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
856 * conform/data/sys/socket.h-data: Add sockatmark.
858 2001-08-17 Ulrich Drepper <drepper@redhat.com>
860 * io/fts.c: Update from recent BSD source.
862 2001-08-17 Roland McGrath <roland@frob.com>
864 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
865 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
868 2001-08-17 Ulrich Drepper <drepper@redhat.com>
870 * locale/duplocale.c (__duplocale): Also initialize the special
873 * conform/data/netdb.h-data: Adjust gai_strerror return type.
875 2001-08-17 Andreas Jaeger <aj@suse.de>
877 * misc/getpass.c: Include wchar.h for prototypes.
878 * malloc/obstack.c: Likewise.
880 2001-08-17 Ulrich Drepper <drepper@redhat.com>
882 * sunrpc/svc_simple.c (universal): Use __write instead of write.
884 * wcsmbs/wcscoll.c: Also define __wcscoll.
885 * include/wchar.h: Declare __wcscoll.
887 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
888 * libio/vwprintf.c: Likewise.
889 * libio/wprintf.c: Likewise.
891 * iconv/gconv_cache.c: Use __munmap instead of munmap.
893 2001-08-16 Ulrich Drepper <drepper@redhat.com>
895 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
897 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
898 wcslen, and __wcscoll instead of wcscoll.
900 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
902 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
903 __getuid instead of getuid.
905 * stdio-common/perror.c (perror): Use __close instead of close.
906 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
907 * libio/freopen.c (freopen): Likewise.
908 * libio/freopen64.c (freopen64): Likewise.
910 * libio/tst-ungetwc2.c (main): Define str const.
912 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
913 * libio/fwprintf.c: Also define __fwprintf.
914 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
915 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
916 * assert/assert-perr.c: Likewise.
917 * assert/assert.c: Likewise.
918 * gmon/gmon.c: Likewise.
919 * inet/rcmd.c: Likewise.
920 * malloc/obstack.c: Likewise.
921 * misc/err.c: Likewise.
922 * misc/error.c: Likewise.
923 * misc/getpass.c: Likewise.
924 * posix/getopt.c: Likewise.
925 * resolv/res_hconf.c: Likewise.
926 * stdio-common/perror.c: Likewise.
927 * stdio-common/psignal.c: Likewise.
928 * stdlib/fmtmsg.c: Likewise.
929 * sunrpc/auth_unix.c: Likewise.
930 * sunrpc/clnt_perr.c: Likewise.
931 * sunrpc/clnt_tcp.c: Likewise.
932 * sunrpc/clnt_udp.c: Likewise.
933 * sunrpc/clnt_unix.c: Likewise.
934 * sunrpc/svc_simple.c: Likewise.
935 * sunrpc/svc_tcp.c: Likewise.
936 * sunrpc/svc_udp.c: Likewise.
937 * sunrpc/svc_unix.c: Likewise.
938 * sunrpc/xdr.c: Likewise.
939 * sunrpc/xdr_array.c: Likewise.
940 * sunrpc/xdr_rec.c: Likewise.
941 * sunrpc/xdr_ref.c: Likewise.
942 * sysdeps/generic/wordexp.c: Likewise.
944 * po/it.po: Update from translation team.
946 * misc/err.c: Handle wide oriented stderr stream.
948 2001-08-14 Tom Rix <trix@redhat.com>
950 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
951 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
953 2001-08-13 Tom Rix <trix@redhat.com>
955 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
956 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
959 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
961 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
962 Store the access registers to the ucontext structure.
963 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
966 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
967 Load the access registers from the ucontext structure.
968 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
971 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
972 offsets to the new ucontext layout.
973 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
975 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
976 of the ucontext structure.
977 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
979 2001-08-15 Ulrich Drepper <drepper@redhat.com>
981 * misc/error.c (error): Handle wide oriented stderr stream correctly.
982 (error_at_line): Likewise.
984 * stdio-common/perror.c (perror): Implement according to standard.
985 The stream orientation must not be changed if the stream was not
986 oriented before the call.
987 * stdio-common/Makefile (tests): Add tst-perror.
988 * stdio-common/tst-perror.c: New file.
991 See ChangeLog.12 for earlier changes.