Correct references to ETHER_CRC_LEN.
[glibc.git] / ChangeLog
blob9a7271993fdf96a5812f53e5d3460a158d355204
1 2001-09-14  Andreas Schwab  <schwab@suse.de>
3         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
4         Sumner <bls@sgi.com>.
5         * posix/execlp.c: Likewise.
7 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
9         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
10         is already found earlier in the search scope.
12 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
14         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
15         filter.
17 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
19         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
21 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
23         * config.h.in: Enforce optimization to be used.
24         * Makeconfig (preprocess-versions): Define ASSEMBLER.
25         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
26         * posix/Makefile (annexc-CFLAGS): Define to -O.
27         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
29 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
31         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
32         Patch by Stephan Kulow.
34 2001-09-08  Ben Collins  <bcollins@debian.org>
36         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
37         usage of RESOLVE() (r_type, not reloc->r_type).
39 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
41         * elf/dl-object.c: Avoid allocating extra memory block for name.
42         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
43         allocated separately.
44         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
46 2001-09-08  H.J. Lu  <hjl@gnu.org>
48         * po/zh_TW.po: Fix a typo.
50 2001-09-07  Tom Rix  <trix@redhat.com>
52         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
54 2001-08-26  Tom Rix  <trix@redhat.com>
56         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
57         command line options.
58         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
59         * sysdeps/unix/sysv/aix/start.c: Removed.
60         * sysdeps/unix/sysv/aix/start-libc.c: New file.
61         * sysdeps/unix/sysv/aix/init-first.c: New file.
62         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
64 2001-09-08  Ben Collins  <bcollins@debian.org>
66         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
67         * sysdeps/generic/dl-machine.h: Likewise.
68         * sysdeps/hppa/dl-fptr.c: Likewise.
69         * sysdeps/ia64/dl-fptr.c: Likewise.
70         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
71         * sysdeps/mips/dl-machine.h: Likewise.
72         * sysdeps/mips/mips64/dl-machine.h: Likewise.
73         * sysdeps/powerpc/dl-machine.c: Likewise.
75 2001-09-07  Ben Collins  <bcollins@debian.org>
77         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
79         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
81 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
83         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
84         dependencies if necessary.
86         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
87         loaded directly) determine length if l_initfini list by iterating
88         over its elements.  Minor optimizations.
89         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
90         for dependency objects.
91         If object was already loaded check whether any of the dependencies
92         is already on the relocation dependency list.  If yes, remove the
93         latter.  Minor optimizations.
94         * elf/dl-lookup.c (add_dependency): Add check for self reference of
95         maps here.  Search l_initfini list only if the object was loaded
96         directly and not only as a dependency.
97         (_dl_lookup_symbol): Add relocation dependency also if object
98         is not in global scope.  Remove test for self-reference here.
99         (_dl_lookup_versioned_symbol): Likewise.
100         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
101         element of first name record.
102         * elf/loadtest.c: Add some more test to recognize early if an object
103         wasn't unloaded.
104         * elf/Makefile: Add rules to build and run reldep5.
105         * elf/reldep5.c: New file.
106         * elf/reldepmod5.c: New file.
107         * elf/reldepmod6.c: New file.
109         * elf/reldep2.c: Fix typo.
111 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
113         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
114         elements.  Change l_scope to be a pointer only.
115         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
116         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
117         here add searchlist of newly open file to the dependency's scope.
118         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
119         only searchlist from its scope.  Free own scope array if necessary.
120         * elf/Makefile (tests): Add dblload and dblunload now.
122 2001-09-06  Andreas Jaeger  <aj@suse.de>
124         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
125         Stephen L Moshier.
127 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
129         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
130         they both fail.
131         * elf/dblload.c: New file.
132         * elf/dblloadmod1.c: New file.
133         * elf/dblloadmod2.c: New file.
134         * elf/dblloadmod3.c: New file.
135         * elf/dblunload.c: New file.
137 2001-09-04  Richard Henderson  <rth@redhat.com>
139         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
140         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
142 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
144         Correct very misleading message for error in failed runtime relocation.
145         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
146         place of the error.
147         (_dl_signal_cerror): Likewise.
148         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
149         * elf/dl-close.c: Likewise.
150         * elf/dl-deps.c: Likewise.
151         * elf/dl-load.c: Likewise.
152         * elf/dl-lookup.c: Likewise.
153         * elf/dl-open.c: Likewise.
154         * elf/dl-reloc.c: Likewise.
155         * elf/dl-sym.c: Likewise.
156         * elf/dl-version.c: Likewise.
157         * sysdeps/generic/dl-sysdep.c: Likewise.
159 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
161         * iconv/strtab.c (strtabinit): Initialize null Strent.
162         (newstring): Move len == 0 handling...
163         (strtabadd): ...here.
164         If len == 1, return null Strent.
165         When inserting a suffix of an existing string, check if
166         it is not equal to some suffix already recorded.
167         Copy left and right members over if adding longer string.
169 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
171         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
173         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
174         (__syscall_gethostname): Add prototype.
176 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
178         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
180 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
182         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
184 2001-08-27  Roland McGrath  <roland@frob.com>
186         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
187         short, copy that much into NAME anyway before returning error.
189 2001-09-01  Richard Henderson  <rth@redhat.com>
191         * sysdeps/alpha/elf/Dist: Remove file.
192         * sysdeps/alpha/elf/Makefile: Remove file.
193         * sysdeps/alpha/elf/crtbegin.S: Remove file.
194         * sysdeps/alpha/elf/crtend.S: Remove file.
195         * sysdeps/alpha/elf/initfini.c: New file.
197 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
199         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
200         * iconv/tst-iconv3.c: Likewise.
202 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
204         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
206 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
208         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
209         export it.
210         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
211         * iconv/iconv_prog.c (insert_cache): New function.
212         (print_known_names): If cache is used call insert_cache to use the
213         information from the cache [PR libc/2509].
215 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
217         * time/strptime.c (strptime_internal): Recognize 'l' format and
218         handle it like 'I' for symmetry with strftime.
220 2001-08-31  Richard Henderson  <rth@redhat.com>
222         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
223         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
224         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
225         (print_statistics): Make scalar unsigned long long.
226         * sysdeps/alpha/hp-timing.h: New file.
228 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
230         * stdio-common/perror.c (perror): Save errno early, pass it
231         down to perror_internal.
232         (perror_internal): Add errnum argument.
234 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
236         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
237         Don't add old memory content for R_ALPHA_REFQUAD.
239 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
241         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
242         memory correctly.
244         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
245         instead of open, __close instead of close, __getpagesize instead
246         of getpagesize.
248         * string/argz-stringify.c (__argz_stringify): Use __strnlen
249         instead of strnlen.
250         * include/string.h (strndupa): Redefine here to use __strnlen
251         instead of strnlen.
252         * string/strndup.c (__strndup): Use __strnlen not strnlen.
254         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
255         connected).
257 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
259         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
260         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
261         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
262         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
263         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
264         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
265         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
267 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
269         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
271 2001-08-30  Andreas Jaeger  <aj@suse.de>
273         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
274         contributed Stephen L Moshier.
276 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
278         * sunrpc/etc.rpc (sgi_fam): Add.
280 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
282         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
284 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
286         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
287         first is from a previous call.
288         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
290 2001-08-29  Andreas Schwab  <schwab@suse.de>
292         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
294 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
296         * config.make.in (INSTALL_SCRIPT): Define.
297         * Makeconfig (INSTALL_SCRIPT): Define.
298         * Makerules (do-install-script): New macro to install scripts using
299         INSTALL_SCRIPT.
300         (install-bin-script): New rule to install scripts with
301         do-install-script.
302         (install-bin-script-nosubdir): New rule.
303         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
304         (distinfo-vars): Add $(install-bin-script).
305         * Rules (others): Likewise.
306         * Makefile (glibcbug): Install with install-bin-script.
307         * debug/Makefile (xtrace): Likewise.
308         (catchsegv): Likewise.
309         * elf/Makefile (ldd): Likewise.
310         * malloc/Makefile (mtrace): Likewise.
311         * timezone/Makefile (tzselect): Likewise.
313 2001-08-29  H.J. Lu  <hjl@gnu.org>
315         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
316         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
317         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
319 2001-08-29  Andreas Schwab  <schwab@suse.de>
321         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
323 2001-08-28  H.J. Lu  <hjl@gnu.org>
325         * Makeconfig (combreloc-LDFLAGS): New variable.
326         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
327         * config.make.in (have-z-combreloc): New variable.
328         * configure.in: Substitute libc_cv_z_combreloc.
330 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
332         * po/sv.po: Update from translation team.
333         * po/fr.po: Likewise.
334         * po/da.po: Likewise.
336 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
338         * Makerules: Fix a typo: MD% -> MD5.
340 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
342         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
343         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
345 2001-08-28  Andreas Jaeger  <aj@suse.de>
347         * manual/libc-texinfo.sh: Add entry about free manuals.
349         * manual/contrib.texi (Contributors): Fix cross reference.
351         * manual/libc.texinfo (Copying): Include freemanuals.
353         * manual/Makefile (appendices): Add freemanuals.
355         * manual/freemanuals.texi: New file.
356         Patch by Brian Youmans <3diff@gnu.org>.
358         * manual/libm-err-tab.pl: Pretty print more platforms, print a
359         smaller table.
361         * manual/math.texi (Errors in Math Functions): Fix grammar, start
362         table on separate page.
363         Patch by Brian Youmans <3diff@gnu.org>.
365 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
367         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
368         the connection went down after we first used it try to connect
369         again and resend the message before printing to the console.
370         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
372 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
374         * string/tst-strlen.c (main): Test strnlen (, -1) too.
375         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
376         bit set.
378 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
380         * iconv/strtab.c (searchstring): Use correct length for comparison.
381         (strtabadd): Account total size correct if new string has old string as
382         substring.
384 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
386         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
388 2001-08-27  Andreas Jaeger  <aj@suse.de>
390         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
392         * math/libm-test.inc (j0_test): Add extra tests.
393         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
394         not x, in Hankel approximation.
395         Patches by Stephen L Moshier.
397 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
399         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
400         link_map.
402         * configure.in: Fix test for .rela.dyn section.
404         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
406 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
408         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
409         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
410         Pass type_class to _dl_lookup_*.
411         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_clas parameter now.
412         Pass around just type_class instead of noexec, noplt pair.
413         (_dl_lookup_versioned_symbol): Likewise.
414         (_dl_lookup_symbol_skip): Pass around just type_class instead of
415         noexec, noplt pair.
416         (_dl_lookup_versioned_symbol_skip): Likewise.
417         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
418         * elf/do-lookup.h (do_lookup): Likewise.
419         * include/link.h (struct link_map): Replace noexec and noplt fields
420         in l_lookup_cache with type_class field.
421         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
422         ELF_RTYPE_CLASS_COPY): Define.
423         Adjust prototypes for _dl_lookup_symbol and
424         _dl_lookup_versioned_symbol.
425         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
426         elf_machine_lookup_noexec_p): Remove.
427         (elf_machine_type_class): Define.
428         * sysdeps/arm/dl-machine.h: Likewise.
429         * sysdeps/hppa/dl-machine.h: Likewise.
430         * sysdeps/cris/dl-machine.h: Likewise.
431         * sysdeps/i386/dl-machine.h: Likewise.
432         * sysdeps/ia64/dl-machine.h: Likewise.
433         * sysdeps/m68k/dl-machine.h: Likewise.
434         * sysdeps/mips/mips64/dl-machine.h: Likewise.
435         * sysdeps/mips/dl-machine.h: Likewise.
436         * sysdeps/powerpc/dl-machine.h: Likewise.
437         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
438         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
439         * sysdeps/sh/dl-machine.h: Likewise.
440         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
441         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
443 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
445         * manual/message.texi (Advanced gettext functions): Change
446         description of plural forms for Slovak.
447         Reported by Marcel Telka <marcel@telka.sk>.
449         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
450         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
452 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
454         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
455         typo.  Patch by Florian La Roche <laroche@redhat.com>.
457 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
459         * include/link.h (struct link_map): Add l_lookup_cache element.
460         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
461         (RESOLVE_MAP): Likewise.
462         (_dl_relocate_object): Remove cache initialization.
463         * elf/dl-lookup.c: Rip out cache handling code.
464         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
465         declarations.
467         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
468         remove some __builtin_expect.
469         (_dl_lookup_versioned_symbol): Likewise.
471         * config.h.in: Add HAVE_Z_COMBRELOC.
472         * configure.in: Add test for -z combreloc.
474         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
475         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
476         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
477         case to almost no code.
479 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
481         * po/tr.po: Update from translation team.
483 2001-08-24  Andreas Jaeger  <aj@suse.de>
485         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
486         make clean works.
488 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
490         * elf/rtld.c (print_statistics): Printf % after percent values.
491         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
493         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
494         don't have to compute the hash value and initialize current_value.
495         Move reference_name variable to where it is needed.
496         (_dl_lookup_versioned_symbol): Likewise.
498 2001-08-24  Roland McGrath  <roland@frob.com>
500         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
501         Just test that strerror returns non-null for a few errno codes.
503 2001-08-23  Roland McGrath  <roland@frob.com>
505         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
506         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
508         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
510         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
511         __mach_reply_port.
513 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
515         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
516         returns NULL.
518         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
519         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
520         doesn't do it.
521         * elf/rtld.c: Include <sys/param.h>.
522         * elf/dl-reloc.c: Likewise.
524 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
526         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
527         empty to prevent junk from being generated.
528         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
530 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
532         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
533         records.  Rename endrel to relative, initialize it to r, and use it
534         in elf_machine_rel_relative calls.  Point r after relative relocs.
536 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
538         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
539         of R_386_NONE.
541 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
543         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
544         necessary.  Undefine newly defined macros at the end.
545         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
546         Rename from elf_machine_rel_relative.
547         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
548         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
549         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
550         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
551         Likewise.
552         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
553         Likewise.
554         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
555         Fix argument types.
556         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
557         Fix argument types.
558         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
559         Likewise.  Fix argument types.
560         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
561         Likewise.  Fix argument types.
562         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
563         Fix argument types.
564         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
565         ElfW(Rel) in argument.
566         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
567         function.
569 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
571         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
573 2001-08-24  Andreas Jaeger  <aj@suse.de>
575         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
576         Stephen L Moshier <moshier@mediaone.net>.
578 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
580         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
581         first if RELCOUNT is set.
583         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
584         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
585         elf_machine_rel_relative.
586         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
587         Minor optimizations.
588         * sysdeps/arm/dl-machine.h: Likewise.
589         * sysdeps/cris/dl-machine.h: Likewise.
590         * sysdeps/hppa/dl-machine.h: Likewise.
591         * sysdeps/i386/dl-machine.h: Likewise.
592         * sysdeps/ia64/dl-machine.h: Likewise.
593         * sysdeps/m68k/dl-machine.h: Likewise.
594         * sysdeps/mips/dl-machine.h: Likewise.
595         * sysdeps/powerpc/dl-machine.h: Likewise.
596         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
597         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
598         * sysdeps/sh/dl-machine.h: Likewise.
599         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
600         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
602 2001-08-23  Roland McGrath  <roland@frob.com>
604         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
606         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
607         sysdeps/mach version.  Implement counting ("recursive") mutexes
608         on top of cthreads mutexes.
609         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
611         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
612         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
613         (__libc_cleanup_region_start, __libc_cleanup_region_end,
614         __libc_clean_end): Define these to call the cleanup function after
615         normal exit when they're supposed to.
617         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
618         Take new first arg DOIT, a boolean saying whether to really install
619         any cleanup handler.
620         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
621         (__libc_cleanup_end): Likewise.
622         * sysdeps/generic/bits/libc-lock.h: Same changes.
623         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
624         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
625         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
626         Likewise.
627         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
628         * sysdeps/generic/bits/stdio-lock.h
629         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
631 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
633         * elf/ldconfig.c (search_dir): Remove stale symlinks.
635 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
637         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
638         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
639         lookups in cache.
640         (_dl_lookup_versioned_symbol): Likewise.
641         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
642         relocation lookup.
643         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
644         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
645         (lookup_cache, lookup_cache_versioned): Add declarations.
647 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
649         * stdlib/tst-random.c (main): Swap parameters in fail call.
650         Patch by Pete Bevin <pete@petebevin.com>.
652 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
654         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
656 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
658         * malloc/obstack.c: Indent preprocessor directives.
659         Patch by Jim Meyering <meyering@ascend.com>.
661         * po/ja.po: Update from translation team.
663 2001-08-23  Roland McGrath  <roland@frob.com>
665         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
667         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
668         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
670 2001-08-22  Roland McGrath  <roland@frob.com>
672         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
673         __libc_lock_define_recursive.
674         * elf/dl-open.c: Don't declare it here any more.
675         * elf/dl-close.c: Likewise.
676         * elf/dl-lookup.c: Likewise.
677         * elf/dl-iteratephdr.c: Likewise.
678         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
679         __libc_lock_unlock_recursive.
680         * elf/dl-close.c (_dl_close): Likewise
681         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
682         * elf/dl-open.c (_dl_open): Likewise
684         * sysdeps/generic/bits/libc-lock.h
685         (__libc_lock_define_recursive): New macro.
686         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
687         (_IO_lock_lock): Use __libc_lock_lock_recursive.
688         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
690         * conform/conformtest.pl (checknamespace): Sort the output list.
692         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
693         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
694         definitions conditional on [__USE_XOPEN].
696         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
697         these unconditionally, not only use [__USE_BSD], so as to match
698         the sysdeps/unix/sysv/linux files.
700 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
702         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
703         avoid warnings.
705         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
706         DL_LOOKUP_ADDRESS.
708 2001-08-22  Roland McGrath  <roland@frob.com>
710         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
711         conditionalization of sa_handler/sa_sigaction member types to
712         match the sysdeps/unix/sysv/linux file.
714 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
716         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
717         symbol sizes a bit better.
719         * sysdeps/ia64/strncpy.S: Complete rewrite.
720         Contributed by Jakub Jelinek <jakub@redhat.com>.
722         * string/stratcliff.c (main): Add strncpy test.
724 2001-08-22  Roland McGrath  <roland@frob.com>
726         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
727         and don't declare unsetenv or _environ directly.
728         (unsetenv): Return int, not void.  Use __environ instead of _environ.
730 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
732         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
733         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
734         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
735         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
736         test for cmsg struct size.
738 2001-04-23  Paul Eggert  <eggert@twinsun.com>
740         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
741         Rename __argc to ___argc in prototypes to avoid compatibility
742         problems with systems that reserve the identifier "__argc".
743         Similarly for __argv.
745 2001-08-21  Roland McGrath  <roland@frob.com>
747         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
749         * mach/Makefile (tests): Removed.
750         * mach/hello.c: File removed.
752 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
754         * po/sv.po: Update from translation team.
756         * stdio-common/vfscanf.c: Fix handling of %l[].
757         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
759         * libio/Makefile (tests): Add tst-sscanf.
760         * libio/tst-sscanf.c: New file.
762         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
763         * malloc/mtrace.c (tr_where): dli_sname always points to a
764         non-empty string if != NULL.
765         Reported by Tim Janik <timj@gtk.org>.
767 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
769         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
770         buf.  Free resources on failure.
771         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
772         (makefd_xprt): Likewise.
773         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
774         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
775         * sunrpc/auth_unix.c (authunix_create): Likewise.
777 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
779         * string/strnlen.c: Remove.
780         * sysdeps/generic/strnlen.c: New.
781         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
783 2001-08-21  Roland McGrath  <roland@frob.com>
785         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
786         as a macro, not an extern inline function.
788         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
789         * Versions.def (libc): Add GLIBC_2.2.5 set.
790         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
791         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
793 2001-08-20  Roland McGrath  <roland@frob.com>
795         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
796         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
798 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
800         * string/bits/string2.h: Remove strnlen optimization here.
801         * sysdeps/i386/i486/bits/string.h: Add it here.
803 2001-08-21  Wolfram Gloger  <wg@malloc.de>
805         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
807 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
809         * po/gl.po: Update from translation team.
811 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
813         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
814         * misc/err.c (convert_and_print): Likewise.
816         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
817         function calls.
819 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
821         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
822         change of the gregset_t type.
823         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
825 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
827         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
829 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
831         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
833         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
835 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
837         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
838         before calling the cthreads initialization code.
840 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
842         * argp/argp-help.c: Fix two problems introduced in last change.
844         * include/dirent.h: Include <dirstream.h> first.
846 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
848         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
850         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
851         * sunrpc/xdr_rec.c: Likewise.
852         * sunrpc/xdr_mem.c: Likewise.
853         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
854         * sunrpc/rpc_cmsg.c: Likewise.
855         * sunrpc/getrpcport.c (getrpcport): Likewise.
856         * sunrpc/clnt_simp.c (callrpc): Likewise.
857         * sunrpc/clnt_gen.c (clnt_create): Likewise.
858         * string/envz.c: Likewise.
860         * po/ko.po: Update from translation team.
862         * argp/argp-help.c: Handle wide oriented stderr stream.
864 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
866         * sysdeps/generic/strtol.c: Little optimizations.  Add some
867         __builtin_expect.
869         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
871         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
872         * wcsmbs/wcwidth.c (wcwdith): Likewise.
873         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
875         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
877         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
879         * time/time.h (struct timespec): Use __time_t for tv_sec element.
881         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
882         wchar_t for function declarations and defintions.
884         * misc/sys/select.h: Define __need_time_t before including <time.h>.
885         Define suseconds_t if it hasn't happened yet.
887         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
889         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
891         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
892         <stddef.h>.
894         * conform/data/stddef.h-data: Remove wint_t.
896         * conform/conformtest.pl: Change namespace test to take #undef
897         lines into account.
899         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
901         * conform/data/sys/socket.h-data: Add sockatmark.
903 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
905         * io/fts.c: Update from recent BSD source.
907 2001-08-17  Roland McGrath  <roland@frob.com>
909         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
910         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
911         Likewise.
913 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
915         * locale/duplocale.c (__duplocale): Also initialize the special
916         __ctype_* elements.
918         * conform/data/netdb.h-data: Adjust gai_strerror return type.
920 2001-08-17  Andreas Jaeger  <aj@suse.de>
922         * misc/getpass.c: Include wchar.h for prototypes.
923         * malloc/obstack.c: Likewise.
925 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
927         * sunrpc/svc_simple.c (universal): Use __write instead of write.
929         * wcsmbs/wcscoll.c: Also define __wcscoll.
930         * include/wchar.h: Declare __wcscoll.
932         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
933         * libio/vwprintf.c: Likewise.
934         * libio/wprintf.c: Likewise.
936         * iconv/gconv_cache.c: Use __munmap instead of munmap.
938 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
940         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
941         instead of mbrtowc.
942         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
943         wcslen, and __wcscoll instead of wcscoll.
945         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
947         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
948         __getuid instead of getuid.
950         * stdio-common/perror.c (perror): Use __close instead of close.
951         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
952         * libio/freopen.c (freopen): Likewise.
953         * libio/freopen64.c (freopen64): Likewise.
955         * libio/tst-ungetwc2.c (main): Define str const.
957         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
958         * libio/fwprintf.c: Also define __fwprintf.
959         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
960         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
961         * assert/assert-perr.c: Likewise.
962         * assert/assert.c: Likewise.
963         * gmon/gmon.c: Likewise.
964         * inet/rcmd.c: Likewise.
965         * malloc/obstack.c: Likewise.
966         * misc/err.c: Likewise.
967         * misc/error.c: Likewise.
968         * misc/getpass.c: Likewise.
969         * posix/getopt.c: Likewise.
970         * resolv/res_hconf.c: Likewise.
971         * stdio-common/perror.c: Likewise.
972         * stdio-common/psignal.c: Likewise.
973         * stdlib/fmtmsg.c: Likewise.
974         * sunrpc/auth_unix.c: Likewise.
975         * sunrpc/clnt_perr.c: Likewise.
976         * sunrpc/clnt_tcp.c: Likewise.
977         * sunrpc/clnt_udp.c: Likewise.
978         * sunrpc/clnt_unix.c: Likewise.
979         * sunrpc/svc_simple.c: Likewise.
980         * sunrpc/svc_tcp.c: Likewise.
981         * sunrpc/svc_udp.c: Likewise.
982         * sunrpc/svc_unix.c: Likewise.
983         * sunrpc/xdr.c: Likewise.
984         * sunrpc/xdr_array.c: Likewise.
985         * sunrpc/xdr_rec.c: Likewise.
986         * sunrpc/xdr_ref.c: Likewise.
987         * sysdeps/generic/wordexp.c: Likewise.
989         * po/it.po: Update from translation team.
991         * misc/err.c: Handle wide oriented stderr stream.
993 2001-08-14  Tom Rix  <trix@redhat.com>
995         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
996         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
998 2001-08-13  Tom Rix  <trix@redhat.com>
1000         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
1001         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
1002         and __intptr_t.
1004 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1006         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
1007         Store the access registers to the ucontext structure.
1008         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
1009         Likewise.
1011         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
1012         Load the access registers from the ucontext structure.
1013         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
1014         Likewise.
1016         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
1017         offsets to the new ucontext layout.
1018         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
1020         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
1021         of the ucontext structure.
1022         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
1024 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
1026         * misc/error.c (error): Handle wide oriented stderr stream correctly.
1027         (error_at_line): Likewise.
1029         * stdio-common/perror.c (perror): Implement according to standard.
1030         The stream orientation must not be changed if the stream was not
1031         oriented before the call.
1032         * stdio-common/Makefile (tests): Add tst-perror.
1033         * stdio-common/tst-perror.c: New file.
1036 See ChangeLog.12 for earlier changes.