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