Update.
[glibc.git] / ChangeLog
blob52bdb75712423049ce8e9e166e83cd3332203e18
1 2001-09-08  Ben Collins  <bcollins@debian.org>
3         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
4         usage of RESOLVE() (r_type, not reloc->r_type).
6 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
8         * elf/dl-object.c: Avoid allocating extra memory block for name.
9         * elf/dl-close.c (_dl_close): Don't free l_libname if it is no
10         allocated separately.
11         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
13 2001-09-08  H.J. Lu  <hjl@gnu.org>
15         * po/zh_TW.po: Fix a typo.
17 2001-09-07  Tom Rix  <trix@redhat.com>
19         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
21 2001-08-26  Tom Rix  <trix@redhat.com>
23         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
24         command line options.
25         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
26         * sysdeps/unix/sysv/aix/start.c: Removed.
27         * sysdeps/unix/sysv/aix/start-libc.c: New file.
28         * sysdeps/unix/sysv/aix/init-first.c: New file.
29         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
31 2001-09-08  Ben Collins  <bcollins@debian.org>
33         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
34         * sysdeps/generic/dl-machine.h: Likewise.
35         * sysdeps/hppa/dl-fptr.c: Likewise.
36         * sysdeps/ia64/dl-fptr.c: Likewise.
37         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
38         * sysdeps/mips/dl-machine.h: Likewise.
39         * sysdeps/mips/mips64/dl-machine.h: Likewise.
40         * sysdeps/powerpc/dl-machine.c: Likewise.
42 2001-09-07  Ben Collins  <bcollins@debian.org>
44         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
46         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
48 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
50         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
51         dependencies if necessary.
53         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
54         loaded directly) determine length if l_initfini list by iterating
55         over its elements.  Minor optimizations.
56         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
57         for dependency objects.
58         If object was already loaded check whether any of the dependencies
59         is already on the relocation dependency list.  If yes, remove the
60         latter.  Minor optimizations.
61         * elf/dl-lookup.c (add_dependency): Add check for self reference of
62         maps here.  Search l_initfini list only if the object was loaded
63         directly and not only as a dependency.
64         (_dl_lookup_symbol): Add relocation dependency also if object
65         is not in global scope.  Remove test for self-reference here.
66         (_dl_lookup_versioned_symbol): Likewise.
67         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
68         element of first name record.
69         * elf/loadtest.c: Add some more test to recognize early if an object
70         wasn't unloaded.
71         * elf/Makefile: Add rules to build and run reldep5.
72         * elf/reldep5.c: New file.
73         * elf/reldepmod5.c: New file.
74         * elf/reldepmod6.c: New file.
76         * elf/reldep2.c: Fix typo.
78 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
80         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
81         elements.  Change l_scope to be a pointer only.
82         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
83         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
84         here add searchlist of newly open file to the dependency's scope.
85         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
86         only searchlist from its scope.  Free own scope array if necessary.
87         * elf/Makefile (tests): Add dblload and dblunload now.
89 2001-09-06  Andreas Jaeger  <aj@suse.de>
91         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
92         Stephen L Moshier.
94 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
96         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
97         they both fail.
98         * elf/dblload.c: New file.
99         * elf/dblloadmod1.c: New file.
100         * elf/dblloadmod2.c: New file.
101         * elf/dblloadmod3.c: New file.
102         * elf/dblunload.c: New file.
104 2001-09-04  Richard Henderson  <rth@redhat.com>
106         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
107         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
109 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
111         Correct very misleading message for error in failed runtime relocation.
112         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
113         place of the error.
114         (_dl_signal_cerror): Likewise.
115         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
116         * elf/dl-close.c: Likewise.
117         * elf/dl-deps.c: Likewise.
118         * elf/dl-load.c: Likewise.
119         * elf/dl-lookup.c: Likewise.
120         * elf/dl-open.c: Likewise.
121         * elf/dl-reloc.c: Likewise.
122         * elf/dl-sym.c: Likewise.
123         * elf/dl-version.c: Likewise.
124         * sysdeps/generic/dl-sysdep.c: Likewise.
126 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
128         * iconv/strtab.c (strtabinit): Initialize null Strent.
129         (newstring): Move len == 0 handling...
130         (strtabadd): ...here.
131         If len == 1, return null Strent.
132         When inserting a suffix of an existing string, check if
133         it is not equal to some suffix already recorded.
134         Copy left and right members over if adding longer string.
136 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
138         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
140         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
141         (__syscall_gethostname): Add prototype.
143 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
145         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
147 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
149         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
151 2001-08-27  Roland McGrath  <roland@frob.com>
153         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
154         short, copy that much into NAME anyway before returning error.
156 2001-09-01  Richard Henderson  <rth@redhat.com>
158         * sysdeps/alpha/elf/Dist: Remove file.
159         * sysdeps/alpha/elf/Makefile: Remove file.
160         * sysdeps/alpha/elf/crtbegin.S: Remove file.
161         * sysdeps/alpha/elf/crtend.S: Remove file.
162         * sysdeps/alpha/elf/initfini.c: New file.
164 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
166         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
167         * iconv/tst-iconv3.c: Likewise.
169 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
171         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
173 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
175         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
176         export it.
177         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
178         * iconv/iconv_prog.c (insert_cache): New function.
179         (print_known_names): If cache is used call insert_cache to use the
180         information from the cache [PR libc/2509].
182 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
184         * time/strptime.c (strptime_internal): Recognize 'l' format and
185         handle it like 'I' for symmetry with strftime.
187 2001-08-31  Richard Henderson  <rth@redhat.com>
189         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
190         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
191         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
192         (print_statistics): Make scalar unsigned long long.
193         * sysdeps/alpha/hp-timing.h: New file.
195 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
197         * stdio-common/perror.c (perror): Save errno early, pass it
198         down to perror_internal.
199         (perror_internal): Add errnum argument.
201 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
203         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
204         Don't add old memory content for R_ALPHA_REFQUAD.
206 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
208         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
209         memory correctly.
211         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
212         instead of open, __close instead of close, __getpagesize instead
213         of getpagesize.
215         * string/argz-stringify.c (__argz_stringify): Use __strnlen
216         instead of strnlen.
217         * include/string.h (strndupa): Redefine here to use __strnlen
218         instead of strnlen.
219         * string/strndup.c (__strndup): Use __strnlen not strnlen.
221         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
222         connected).
224 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
226         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
227         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
228         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
229         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
230         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
231         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
232         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
234 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
236         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
238 2001-08-30  Andreas Jaeger  <aj@suse.de>
240         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
241         contributed Stephen L Moshier.
243 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
245         * sunrpc/etc.rpc (sgi_fam): Add.
247 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
249         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
251 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
253         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
254         first is from a previous call.
255         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
257 2001-08-29  Andreas Schwab  <schwab@suse.de>
259         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
261 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
263         * config.make.in (INSTALL_SCRIPT): Define.
264         * Makeconfig (INSTALL_SCRIPT): Define.
265         * Makerules (do-install-script): New macro to install scripts using
266         INSTALL_SCRIPT.
267         (install-bin-script): New rule to install scripts with
268         do-install-script.
269         (install-bin-script-nosubdir): New rule.
270         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
271         (distinfo-vars): Add $(install-bin-script).
272         * Rules (others): Likewise.
273         * Makefile (glibcbug): Install with install-bin-script.
274         * debug/Makefile (xtrace): Likewise.
275         (catchsegv): Likewise.
276         * elf/Makefile (ldd): Likewise.
277         * malloc/Makefile (mtrace): Likewise.
278         * timezone/Makefile (tzselect): Likewise.
280 2001-08-29  H.J. Lu  <hjl@gnu.org>
282         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
283         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
284         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
286 2001-08-29  Andreas Schwab  <schwab@suse.de>
288         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
290 2001-08-28  H.J. Lu  <hjl@gnu.org>
292         * Makeconfig (combreloc-LDFLAGS): New variable.
293         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
294         * config.make.in (have-z-combreloc): New variable.
295         * configure.in: Substitute libc_cv_z_combreloc.
297 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
299         * po/sv.po: Update from translation team.
300         * po/fr.po: Likewise.
301         * po/da.po: Likewise.
303 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
305         * Makerules: Fix a typo: MD% -> MD5.
307 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
309         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
310         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
312 2001-08-28  Andreas Jaeger  <aj@suse.de>
314         * manual/libc-texinfo.sh: Add entry about free manuals.
316         * manual/contrib.texi (Contributors): Fix cross reference.
318         * manual/libc.texinfo (Copying): Include freemanuals.
320         * manual/Makefile (appendices): Add freemanuals.
322         * manual/freemanuals.texi: New file.
323         Patch by Brian Youmans <3diff@gnu.org>.
325         * manual/libm-err-tab.pl: Pretty print more platforms, print a
326         smaller table.
328         * manual/math.texi (Errors in Math Functions): Fix grammar, start
329         table on separate page.
330         Patch by Brian Youmans <3diff@gnu.org>.
332 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
334         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
335         the connection went down after we first used it try to connect
336         again and resend the message before printing to the console.
337         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
339 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
341         * string/tst-strlen.c (main): Test strnlen (, -1) too.
342         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
343         bit set.
345 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
347         * iconv/strtab.c (searchstring): Use correct length for comparison.
348         (strtabadd): Account total size correct if new string has old string as
349         substring.
351 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
353         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
355 2001-08-27  Andreas Jaeger  <aj@suse.de>
357         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
359         * math/libm-test.inc (j0_test): Add extra tests.
360         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
361         not x, in Hankel approximation.
362         Patches by Stephen L Moshier.
364 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
366         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
367         link_map.
369         * configure.in: Fix test for .rela.dyn section.
371         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
373 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
375         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
376         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
377         Pass type_class to _dl_lookup_*.
378         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_clas parameter now.
379         Pass around just type_class instead of noexec, noplt pair.
380         (_dl_lookup_versioned_symbol): Likewise.
381         (_dl_lookup_symbol_skip): Pass around just type_class instead of
382         noexec, noplt pair.
383         (_dl_lookup_versioned_symbol_skip): Likewise.
384         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
385         * elf/do-lookup.h (do_lookup): Likewise.
386         * include/link.h (struct link_map): Replace noexec and noplt fields
387         in l_lookup_cache with type_class field.
388         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
389         ELF_RTYPE_CLASS_COPY): Define.
390         Adjust prototypes for _dl_lookup_symbol and
391         _dl_lookup_versioned_symbol.
392         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
393         elf_machine_lookup_noexec_p): Remove.
394         (elf_machine_type_class): Define.
395         * sysdeps/arm/dl-machine.h: Likewise.
396         * sysdeps/hppa/dl-machine.h: Likewise.
397         * sysdeps/cris/dl-machine.h: Likewise.
398         * sysdeps/i386/dl-machine.h: Likewise.
399         * sysdeps/ia64/dl-machine.h: Likewise.
400         * sysdeps/m68k/dl-machine.h: Likewise.
401         * sysdeps/mips/mips64/dl-machine.h: Likewise.
402         * sysdeps/mips/dl-machine.h: Likewise.
403         * sysdeps/powerpc/dl-machine.h: Likewise.
404         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
405         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
406         * sysdeps/sh/dl-machine.h: Likewise.
407         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
408         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
410 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
412         * manual/message.texi (Advanced gettext functions): Change
413         description of plural forms for Slovak.
414         Reported by Marcel Telka <marcel@telka.sk>.
416         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
417         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
419 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
421         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
422         typo.  Patch by Florian La Roche <laroche@redhat.com>.
424 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
426         * include/link.h (struct link_map): Add l_lookup_cache element.
427         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
428         (RESOLVE_MAP): Likewise.
429         (_dl_relocate_object): Remove cache initialization.
430         * elf/dl-lookup.c: Rip out cache handling code.
431         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
432         declarations.
434         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
435         remove some __builtin_expect.
436         (_dl_lookup_versioned_symbol): Likewise.
438         * config.h.in: Add HAVE_Z_COMBRELOC.
439         * configure.in: Add test for -z combreloc.
441         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
442         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
443         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
444         case to almost no code.
446 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
448         * po/tr.po: Update from translation team.
450 2001-08-24  Andreas Jaeger  <aj@suse.de>
452         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
453         make clean works.
455 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
457         * elf/rtld.c (print_statistics): Printf % after percent values.
458         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
460         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
461         don't have to compute the hash value and initialize current_value.
462         Move reference_name variable to where it is needed.
463         (_dl_lookup_versioned_symbol): Likewise.
465 2001-08-24  Roland McGrath  <roland@frob.com>
467         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
468         Just test that strerror returns non-null for a few errno codes.
470 2001-08-23  Roland McGrath  <roland@frob.com>
472         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
473         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
475         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
477         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
478         __mach_reply_port.
480 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
482         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
483         returns NULL.
485         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
486         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
487         doesn't do it.
488         * elf/rtld.c: Include <sys/param.h>.
489         * elf/dl-reloc.c: Likewise.
491 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
493         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
494         empty to prevent junk from being generated.
495         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
497 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
499         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
500         records.  Rename endrel to relative, initialize it to r, and use it
501         in elf_machine_rel_relative calls.  Point r after relative relocs.
503 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
505         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
506         of R_386_NONE.
508 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
510         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
511         necessary.  Undefine newly defined macros at the end.
512         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
513         Rename from elf_machine_rel_relative.
514         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
515         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
516         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
517         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
518         Likewise.
519         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
520         Likewise.
521         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
522         Fix argument types.
523         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
524         Fix argument types.
525         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
526         Likewise.  Fix argument types.
527         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
528         Likewise.  Fix argument types.
529         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
530         Fix argument types.
531         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
532         ElfW(Rel) in argument.
533         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
534         function.
536 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
538         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
540 2001-08-24  Andreas Jaeger  <aj@suse.de>
542         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
543         Stephen L Moshier <moshier@mediaone.net>.
545 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
547         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
548         first if RELCOUNT is set.
550         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
551         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
552         elf_machine_rel_relative.
553         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
554         Minor optimizations.
555         * sysdeps/arm/dl-machine.h: Likewise.
556         * sysdeps/cris/dl-machine.h: Likewise.
557         * sysdeps/hppa/dl-machine.h: Likewise.
558         * sysdeps/i386/dl-machine.h: Likewise.
559         * sysdeps/ia64/dl-machine.h: Likewise.
560         * sysdeps/m68k/dl-machine.h: Likewise.
561         * sysdeps/mips/dl-machine.h: Likewise.
562         * sysdeps/powerpc/dl-machine.h: Likewise.
563         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
564         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
565         * sysdeps/sh/dl-machine.h: Likewise.
566         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
567         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
569 2001-08-23  Roland McGrath  <roland@frob.com>
571         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
573         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
574         sysdeps/mach version.  Implement counting ("recursive") mutexes
575         on top of cthreads mutexes.
576         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
578         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
579         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
580         (__libc_cleanup_region_start, __libc_cleanup_region_end,
581         __libc_clean_end): Define these to call the cleanup function after
582         normal exit when they're supposed to.
584         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
585         Take new first arg DOIT, a boolean saying whether to really install
586         any cleanup handler.
587         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
588         (__libc_cleanup_end): Likewise.
589         * sysdeps/generic/bits/libc-lock.h: Same changes.
590         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
591         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
592         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
593         Likewise.
594         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
595         * sysdeps/generic/bits/stdio-lock.h
596         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
598 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
600         * elf/ldconfig.c (search_dir): Remove stale symlinks.
602 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
604         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
605         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
606         lookups in cache.
607         (_dl_lookup_versioned_symbol): Likewise.
608         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
609         relocation lookup.
610         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
611         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
612         (lookup_cache, lookup_cache_versioned): Add declarations.
614 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
616         * stdlib/tst-random.c (main): Swap parameters in fail call.
617         Patch by Pete Bevin <pete@petebevin.com>.
619 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
621         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
623 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
625         * malloc/obstack.c: Indent preprocessor directives.
626         Patch by Jim Meyering <meyering@ascend.com>.
628         * po/ja.po: Update from translation team.
630 2001-08-23  Roland McGrath  <roland@frob.com>
632         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
634         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
635         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
637 2001-08-22  Roland McGrath  <roland@frob.com>
639         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
640         __libc_lock_define_recursive.
641         * elf/dl-open.c: Don't declare it here any more.
642         * elf/dl-close.c: Likewise.
643         * elf/dl-lookup.c: Likewise.
644         * elf/dl-iteratephdr.c: Likewise.
645         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
646         __libc_lock_unlock_recursive.
647         * elf/dl-close.c (_dl_close): Likewise
648         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
649         * elf/dl-open.c (_dl_open): Likewise
651         * sysdeps/generic/bits/libc-lock.h
652         (__libc_lock_define_recursive): New macro.
653         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
654         (_IO_lock_lock): Use __libc_lock_lock_recursive.
655         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
657         * conform/conformtest.pl (checknamespace): Sort the output list.
659         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
660         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
661         definitions conditional on [__USE_XOPEN].
663         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
664         these unconditionally, not only use [__USE_BSD], so as to match
665         the sysdeps/unix/sysv/linux files.
667 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
669         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
670         avoid warnings.
672         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
673         DL_LOOKUP_ADDRESS.
675 2001-08-22  Roland McGrath  <roland@frob.com>
677         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
678         conditionalization of sa_handler/sa_sigaction member types to
679         match the sysdeps/unix/sysv/linux file.
681 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
683         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
684         symbol sizes a bit better.
686         * sysdeps/ia64/strncpy.S: Complete rewrite.
687         Contributed by Jakub Jelinek <jakub@redhat.com>.
689         * string/stratcliff.c (main): Add strncpy test.
691 2001-08-22  Roland McGrath  <roland@frob.com>
693         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
694         and don't declare unsetenv or _environ directly.
695         (unsetenv): Return int, not void.  Use __environ instead of _environ.
697 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
699         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
700         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
701         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
702         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
703         test for cmsg struct size.
705 2001-04-23  Paul Eggert  <eggert@twinsun.com>
707         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
708         Rename __argc to ___argc in prototypes to avoid compatibility
709         problems with systems that reserve the identifier "__argc".
710         Similarly for __argv.
712 2001-08-21  Roland McGrath  <roland@frob.com>
714         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
716         * mach/Makefile (tests): Removed.
717         * mach/hello.c: File removed.
719 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
721         * po/sv.po: Update from translation team.
723         * stdio-common/vfscanf.c: Fix handling of %l[].
724         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
726         * libio/Makefile (tests): Add tst-sscanf.
727         * libio/tst-sscanf.c: New file.
729         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
730         * malloc/mtrace.c (tr_where): dli_sname always points to a
731         non-empty string if != NULL.
732         Reported by Tim Janik <timj@gtk.org>.
734 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
736         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
737         buf.  Free resources on failure.
738         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
739         (makefd_xprt): Likewise.
740         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
741         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
742         * sunrpc/auth_unix.c (authunix_create): Likewise.
744 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
746         * string/strnlen.c: Remove.
747         * sysdeps/generic/strnlen.c: New.
748         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
750 2001-08-21  Roland McGrath  <roland@frob.com>
752         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
753         as a macro, not an extern inline function.
755         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
756         * Versions.def (libc): Add GLIBC_2.2.5 set.
757         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
758         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
760 2001-08-20  Roland McGrath  <roland@frob.com>
762         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
763         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
765 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
767         * string/bits/string2.h: Remove strnlen optimization here.
768         * sysdeps/i386/i486/bits/string.h: Add it here.
770 2001-08-21  Wolfram Gloger  <wg@malloc.de>
772         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
774 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
776         * po/gl.po: Update from translation team.
778 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
780         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
781         * misc/err.c (convert_and_print): Likewise.
783         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
784         function calls.
786 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
788         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
789         change of the gregset_t type.
790         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
792 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
794         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
796 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
798         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
800         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
802 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
804         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
805         before calling the cthreads initialization code.
807 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
809         * argp/argp-help.c: Fix two problems introduced in last change.
811         * include/dirent.h: Include <dirstream.h> first.
813 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
815         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
817         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
818         * sunrpc/xdr_rec.c: Likewise.
819         * sunrpc/xdr_mem.c: Likewise.
820         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
821         * sunrpc/rpc_cmsg.c: Likewise.
822         * sunrpc/getrpcport.c (getrpcport): Likewise.
823         * sunrpc/clnt_simp.c (callrpc): Likewise.
824         * sunrpc/clnt_gen.c (clnt_create): Likewise.
825         * string/envz.c: Likewise.
827         * po/ko.po: Update from translation team.
829         * argp/argp-help.c: Handle wide oriented stderr stream.
831 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
833         * sysdeps/generic/strtol.c: Little optimizations.  Add some
834         __builtin_expect.
836         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
838         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
839         * wcsmbs/wcwidth.c (wcwdith): Likewise.
840         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
842         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
844         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
846         * time/time.h (struct timespec): Use __time_t for tv_sec element.
848         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
849         wchar_t for function declarations and defintions.
851         * misc/sys/select.h: Define __need_time_t before including <time.h>.
852         Define suseconds_t if it hasn't happened yet.
854         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
856         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
858         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
859         <stddef.h>.
861         * conform/data/stddef.h-data: Remove wint_t.
863         * conform/conformtest.pl: Change namespace test to take #undef
864         lines into account.
866         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
868         * conform/data/sys/socket.h-data: Add sockatmark.
870 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
872         * io/fts.c: Update from recent BSD source.
874 2001-08-17  Roland McGrath  <roland@frob.com>
876         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
877         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
878         Likewise.
880 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
882         * locale/duplocale.c (__duplocale): Also initialize the special
883         __ctype_* elements.
885         * conform/data/netdb.h-data: Adjust gai_strerror return type.
887 2001-08-17  Andreas Jaeger  <aj@suse.de>
889         * misc/getpass.c: Include wchar.h for prototypes.
890         * malloc/obstack.c: Likewise.
892 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
894         * sunrpc/svc_simple.c (universal): Use __write instead of write.
896         * wcsmbs/wcscoll.c: Also define __wcscoll.
897         * include/wchar.h: Declare __wcscoll.
899         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
900         * libio/vwprintf.c: Likewise.
901         * libio/wprintf.c: Likewise.
903         * iconv/gconv_cache.c: Use __munmap instead of munmap.
905 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
907         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
908         instead of mbrtowc.
909         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
910         wcslen, and __wcscoll instead of wcscoll.
912         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
914         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
915         __getuid instead of getuid.
917         * stdio-common/perror.c (perror): Use __close instead of close.
918         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
919         * libio/freopen.c (freopen): Likewise.
920         * libio/freopen64.c (freopen64): Likewise.
922         * libio/tst-ungetwc2.c (main): Define str const.
924         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
925         * libio/fwprintf.c: Also define __fwprintf.
926         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
927         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
928         * assert/assert-perr.c: Likewise.
929         * assert/assert.c: Likewise.
930         * gmon/gmon.c: Likewise.
931         * inet/rcmd.c: Likewise.
932         * malloc/obstack.c: Likewise.
933         * misc/err.c: Likewise.
934         * misc/error.c: Likewise.
935         * misc/getpass.c: Likewise.
936         * posix/getopt.c: Likewise.
937         * resolv/res_hconf.c: Likewise.
938         * stdio-common/perror.c: Likewise.
939         * stdio-common/psignal.c: Likewise.
940         * stdlib/fmtmsg.c: Likewise.
941         * sunrpc/auth_unix.c: Likewise.
942         * sunrpc/clnt_perr.c: Likewise.
943         * sunrpc/clnt_tcp.c: Likewise.
944         * sunrpc/clnt_udp.c: Likewise.
945         * sunrpc/clnt_unix.c: Likewise.
946         * sunrpc/svc_simple.c: Likewise.
947         * sunrpc/svc_tcp.c: Likewise.
948         * sunrpc/svc_udp.c: Likewise.
949         * sunrpc/svc_unix.c: Likewise.
950         * sunrpc/xdr.c: Likewise.
951         * sunrpc/xdr_array.c: Likewise.
952         * sunrpc/xdr_rec.c: Likewise.
953         * sunrpc/xdr_ref.c: Likewise.
954         * sysdeps/generic/wordexp.c: Likewise.
956         * po/it.po: Update from translation team.
958         * misc/err.c: Handle wide oriented stderr stream.
960 2001-08-14  Tom Rix  <trix@redhat.com>
962         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
963         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
965 2001-08-13  Tom Rix  <trix@redhat.com>
967         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
968         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
969         and __intptr_t.
971 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
973         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
974         Store the access registers to the ucontext structure.
975         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
976         Likewise.
978         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
979         Load the access registers from the ucontext structure.
980         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
981         Likewise.
983         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
984         offsets to the new ucontext layout.
985         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
987         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
988         of the ucontext structure.
989         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
991 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
993         * misc/error.c (error): Handle wide oriented stderr stream correctly.
994         (error_at_line): Likewise.
996         * stdio-common/perror.c (perror): Implement according to standard.
997         The stream orientation must not be changed if the stream was not
998         oriented before the call.
999         * stdio-common/Makefile (tests): Add tst-perror.
1000         * stdio-common/tst-perror.c: New file.
1003 See ChangeLog.12 for earlier changes.