Update.
[glibc.git] / ChangeLog
blob2540cbdb04b58e9d8519efc201cfae4474480357
1 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
3         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
4         * scripts/cpp: New file.
6         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
7         for rtld_search_dirs content.  Minor optimizations.
9 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
11         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
12         avoiding unnecessary duplication.
14 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
16         * elf/dl-load.c (_dl_map_object): If library was found using
17         LD_LIBRARY_PATH, don't try RUNPATH list.
19 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
21         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump (REGISTER_DUMP):
22         Correct second argument of register_dump call.
23         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump (REGISTER_DUMP):
24         Likewise.
26 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
28         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
29         modules.
30         * iconvdata/TESTS: Likewise.
31         * iconvdata/gconv-modules: Likewise.
32         * iconvdata/ibm1132.c: New file.
33         * iconvdata/ibm1132.h: New file.
34         * iconvdata/ibm1133.c: New file.
35         * iconvdata/ibm1133.h: New file.
36         * iconvdata/ibm1162.c: New file.
37         * iconvdata/ibm1162.h: New file.
38         * iconvdata/testdata/IBM1132: New file.
39         * iconvdata/testdata/IBM1132..UTF8: New file.
40         * iconvdata/testdata/IBM1133: New file.
41         * iconvdata/testdata/IBM1133..UTF8: New file.
42         * iconvdata/testdata/IBM1162: New file.
43         * iconvdata/testdata/IBM1162..UTF8: New file.
44         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
46         * string/string.h: Fix typo in comment.
47         * wcsmbs/wchar.h: Likewise.
49 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
51         * manual/getopt.texi (getopt_long, getopt_long_only): Include
52         const in type of longopts parameter.
54 2001-10-29  Andreas Jaeger  <aj@suse.de>
56         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
58 2001-10-29  Kevin Ryde  <user42@zip.com.au>
60         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
61         output, clarify `#' behaviour on 0.
62         (Floating-Point Conversions): Clarify that %g only uses %e when
63         the exponent would be greater than 1.
65 2001-10-28  Roland McGrath  <roland@frob.com>
67         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
68         * sysdeps/mach/powerpc/machine-sp.h: New file.
69         * sysdeps/mach/powerpc/sysdep.h: New file.
70         * sysdeps/mach/powerpc/thread_state.h: New file.
72         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
73         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
74         expect to need the same thing on every platform.
76         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
77         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
79         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
80         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
81         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
82         Move all these assembly-related definitions to ...
83         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
85         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
86         by Peter Bruin <pjbruin@dds.nl>.
88         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
89         packing results for a `poll' call.
91 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
93         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
94         correctly.
95         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
96         bracket expression.
98         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
99         nrules value.
100         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
102 2001-10-24  H.J. Lu  <hjl@gnu.org>
104         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
105         Use __BEGIN_DECLS/__END_DECLS around prototypes.
106         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
108 2001-10-21  Jim Meyering  <meyering@lucent.com>
110         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
111         this code would end up calling gettext even in packages built
112         with --disable-nls.
113         * posix/getopt.c (_): Likewise.
114         * posix/regex.c (_): Likewise.
116 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
118         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
119         lookup not ip6.int.
120         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
121         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
123 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
125         * misc/sys/cdefs.h (__attribute_used__): Define.
126         * elf/rtld.c (_dl_start): Add __attribute_used__.
127         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
129 2001-10-25  Andreas Schwab  <schwab@suse.de>
131         * stdlib/a64l.c: Expect least significant digit first.
132         * stdlib/l64a.c: Produce least significant digit first.
133         * stdlib/Makefile (tests): Add test-a64l.
134         * stdlib/test-a64l.c: New file.
135         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
137 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
139         * po/sk.po: Update from translation team.
141 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
143         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
145 2001-10-18  Andreas Schwab  <schwab@suse.de>
147         * math/libm-test.inc (print_ulps): Print ulp values rounded to
148         next whole number.
149         (print_function_ulps): Likewise.
150         (print_complex_function_ulps): Likewise.
151         (print_max_error): Likewise.
152         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
154 2001-10-16  Andreas Schwab  <schwab@suse.de>
156         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
157         implementation.
159         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
160         BSD_SETJMP or BSD__SETJMP is defined, resp.
161         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
162         a tail call to __sigsetjmp that would require extending the
163         caller's frame.
164         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
165         * sysdeps/m68k/bsd-setjmp.S: Deleted.
166         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
167         Reported by Jes Sorensen <jes@trained-monkey.org>.
169 2001-10-16  Andreas Jaeger  <aj@suse.de>
171         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
172         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
173         close PR libc/2589.
175 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
177         * po/ca.po: New file.  Contributed by the translation team.
179 2001-10-15  Ralf Baechle  <ralf@gnu.org>
181         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
182         a varargs prototype.  Remove dependency from kernel header files.
184         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
185         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
187 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
189         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
190         to generate hexadecimal identifier.
191         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
193 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
195         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
197 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
199         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
200         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
201         Contributed by Stephen L Moshier <moshier@mediaone.net>.
203         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
204         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
205         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
206         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
207         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
208         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
210         * timezone/africa: Update from tzdata2001d.
211         * timezone/asia: Likewise.
212         * timezone/australasia: Likewise.
213         * timezone/backward: Likewise.
214         * timezone/europe: Likewise.
215         * timezone/leapseconds: Likewise.
216         * timezone/northamerica: Likewise.
217         * timezone/southamerica: Likewise.
218         * timezone/zone.tab: Likewise.
220 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
222         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
223         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
225 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
227         * elf/elf.h (PT_TLS): New definition.
229 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
231         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
232         bits/errno.h
234 2001-10-07  Roland McGrath  <roland@frob.com>
236         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
238 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
240         * elf/elf.h: Add more ELFOSABI_* constants.
242 2001-10-04  Ben Collins  <bcollins@debian.org>
244         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
245         decleration of __need_wchar_t.
247 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
249         * string/bits/string2.h (__strsep_g): Add prototype.
250         (__strsep): Use it.
251         * string/Versions (__strsep): Remove.
252         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
254 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
256         * manua/llio.texi: Clarify file references added by mmap.
257         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
259 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
261         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
262         Add sc_loadrs and sc_rbs_bas to match current kernel.
264 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
266         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
268         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
270 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
272         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
273         object has been bumped because of relocation dependency, avoid
274         duplicates in l_scope.
275         (show_scope): Fix typos.
276         * elf/Makefile: Add rules to build and run reldep6.
277         * elf/reldep6.c: New file.
278         * elf/reldep6mod0.c: New file.
279         * elf/reldep6mod1.c: New file.
280         * elf/reldep6mod2.c: New file.
281         * elf/reldep6mod3.c: New file.
282         * elf/reldep6mod4.c: New file.
284 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
286         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
287         sparc64_fixup_plt.
288         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
289         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
290         for non-lazy binding. Fix .plt[32768+] handling.
291         (elf_machine_plt_value): Don't add addend.
292         (elf_machine_rela): Call sparc64_fixup_plt instead of
293         elf_machine_fixup_plt.
294         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
295         dynamic linker at 0xfffff800XXXXXXXX.
297         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
299 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
301         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
303 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
305         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
306         declare __cmsg_data field if its size would be bigger than 0.
307         (CMSG_DATA): Adjust accordingly.
308         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
309         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
310         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
311         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
312         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
313         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
314         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
316 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
318         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
319         * iconvdata/testdata/IBM1160: New file.
320         * iconvdata/testdata/IBM1160..UTF8: New file.
321         * iconvdata/testdata/IBM1161: New file.
322         * iconvdata/testdata/IBM1161..UTF8: New file.
323         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
325 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
327         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
328         UL_SETFSIZE computations better.
330         * rt/Makefile: Remove use of filter for librt again.
332         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
333         UL_SETFSIZE computations better.
335         * string/Versions: Export __strsep for GLIBC_2.2.5.
336         * string/bits/string2.h: Define all __STRING_INLINE functions if
337         _FORCE_INLINES is defined.
338         Use int instead of char of parameter types.
339         (__strsep): Don't use __strsep_g.  Don't define it.
340         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
341         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
342         __strcpy_small.
343         (__stpcpy_a_small): Renamed from __stpcpy_small.
344         (__strcspn_c1): Don't define if _FORCE_INLINES.
345         (__strspn_c1): Likewise.
347 2001-09-22  Ben Collins  <bcollins@debian.org>
349         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
350         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
351         * sysdeps/ia64/bits/sigaction.h: Likewise.
352         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
354 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
356         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
358 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
360         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
362 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
364         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
366 2001-09-20  H.J. Lu  <hjl@gnu.org>
368         * include/dlfcn.h (__RTLD_SPROF): New definiton.
369         * elf/dl-open.c (dl_open_worker): Return immediately after loading
370         for __RTLD_SPROF.
371         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
372         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
374 2001-09-20  H.J. Lu  <hjl@gnu.org>
376         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
377         don't add 1.
379 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
381         * nss/getent.c: Accept -s parameter to overwrite rules in
382         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
384         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
385         with as many ".0" as necessary to form a complete address
386         inet_network understands.
388         * nss/getent.c: Various cleanups.  Use simpler and fewer function
389         calls.
391 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
393         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
394         _JMPBUF_UNWINDS.
395         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
397 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
399         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
400         IBM1161.
401         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
402         * iconvdata/ibm1160.c: New file.
403         * iconvdata/ibm1160.h: New file.
404         * iconvdata/ibm1161.c: New file.
405         * iconvdata/ibm1161.h: New file.
406         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
408 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
410         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
411         difference between base address and first PT_LOAD's virtual address,
412         not the base address.
414 2001-09-11  Tom Rix  <trix@redhat.com>
416         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
417         ifdef for __getopt_clean_environment.
418         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
420 2001-09-22  Andreas Jaeger  <aj@suse.de>
422         * elf/reldep4.c (main): Add proper prototype to fix warning.
424         * elf/reldep5.c (main): Remove unused variable.
426         * math/math_private.h: Add prototypes.
428 2001-09-21  Andreas Jaeger  <aj@suse.de>
430         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
431         * sysdeps/x86_64/Dist: New file.
432         * sysdeps/x86_64/soft-fp/Dist: New file.
434         * sysdeps/gnu/Dist: Remove eval.c.
436 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
438         * malloc/memusage.c (realloc): Don't count already allocated
439         memory in the sums.
440         (me): Always use dlsym() to find the real implementations.
442         * malloc/memusage.sh: Make -n option actually do something.
444 2001-09-20  Andreas Jaeger  <aj@suse.de>
446         * elf/elf.h (R_390_NUM): Correct value.
448         * Versions.def: Add missing versions 2.2.3 for libthread_db and
449         libpthread.
451         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
452         for x86-64, install x86-64 into */lib64.
454         * shlib-versions: Add x86-64.
456         * elf/elf.h: Add x86-64 relocations.
458 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
460         * po/fr.po: Update from translation team.
462 2001-09-19  Andreas Jaeger  <aj@suse.de>
464         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
465         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
466         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
467         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
468         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
469         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
470         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
471         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
472         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
473         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
474         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
475         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
476         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
477         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
478         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
479         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
480         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
481         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
482         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
483         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
484         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
485         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
486         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
487         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
488         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
489         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
490         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
491         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
492         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
493         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
494         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
495         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
496         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
497         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
498         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
499         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
500         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
501         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
502         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
503         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
504         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
505         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
506         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
507         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
508         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
509         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
510         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
511         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
512         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
513         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
514         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
515         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
516         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
517         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
518         * sysdeps/unix/x86_64/sysdep.S: New file.
519         * sysdeps/unix/x86_64/sysdep.h: New file.
520         * sysdeps/x86_64/Implies: New file.
521         * sysdeps/x86_64/Makefile: New file.
522         * sysdeps/x86_64/Versions: New file.
523         * sysdeps/x86_64/__longjmp.S: New file.
524         * sysdeps/x86_64/abort-instr.h: New file.
525         * sysdeps/x86_64/atomicity.h: New file.
526         * sysdeps/x86_64/bits/endian.h: New file.
527         * sysdeps/x86_64/bits/setjmp.h: New file.
528         * sysdeps/x86_64/bits/string.h: New file.
529         * sysdeps/x86_64/bp-asm.h: New file.
530         * sysdeps/x86_64/bsd-_setjmp.S: New file.
531         * sysdeps/x86_64/bsd-setjmp.S: New file.
532         * sysdeps/x86_64/dl-machine.h: New file.
533         * sysdeps/x86_64/elf/initfini.c: New file.
534         * sysdeps/x86_64/elf/start.S: New file.
535         * sysdeps/x86_64/ffs.c: New file.
536         * sysdeps/x86_64/ffsll.c: New file.
537         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
538         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
539         * sysdeps/x86_64/fpu/e_acosl.c: New file.
540         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
541         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
542         * sysdeps/x86_64/fpu/e_expl.c: New file.
543         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
544         * sysdeps/x86_64/fpu/e_log10l.S: New file.
545         * sysdeps/x86_64/fpu/e_log2l.S: New file.
546         * sysdeps/x86_64/fpu/e_logl.S: New file.
547         * sysdeps/x86_64/fpu/e_powl.S: New file.
548         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
549         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
550         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
551         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
552         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
553         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
554         * sysdeps/x86_64/fpu/fegetenv.c: New file.
555         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
556         * sysdeps/x86_64/fpu/fegetround.c: New file.
557         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
558         * sysdeps/x86_64/fpu/fesetenv.c: New file.
559         * sysdeps/x86_64/fpu/fesetround.c: New file.
560         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
561         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
562         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
563         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
564         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
565         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
566         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
567         * sysdeps/x86_64/fpu/s_atanl.c: New file.
568         * sysdeps/x86_64/fpu/s_cosl.S: New file.
569         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
570         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
571         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
572         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
573         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
574         * sysdeps/x86_64/fpu/s_logbl.c: New file.
575         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
576         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
577         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
578         * sysdeps/x86_64/fpu/s_rintl.c: New file.
579         * sysdeps/x86_64/fpu/s_significandl.c: New file.
580         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
581         * sysdeps/x86_64/fpu/s_sinl.S: New file.
582         * sysdeps/x86_64/fpu/s_tanl.S: New file.
583         * sysdeps/x86_64/gmp-mparam.h: New file.
584         * sysdeps/x86_64/hp-timing.c: New file.
585         * sysdeps/x86_64/hp-timing.h: New file.
586         * sysdeps/x86_64/htonl.S: New file.
587         * sysdeps/x86_64/memusage.h: New file.
588         * sysdeps/x86_64/setjmp.S: New file.
589         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
590         * sysdeps/x86_64/stackinfo.h: New file.
591         * sysdeps/x86_64/sysdep.h: New file.
592         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
594         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
595         L Moshier.
597 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
599         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
600         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
602 2001-09-18  Andreas Schwab  <schwab@suse.de>
604         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
605         list, now that l_scope is a pointer.
607         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
608         scope list.
610 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
612         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
613         (elf_machine_rela_relative): Add a missing declaration.
615 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
617         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New.
618         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New.
619         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
620         ldd-rewrite scripts.
622 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
624         * elf/ldd.bash.in: Update copyright message.
626 2001-09-17  H.J. Lu  <hjl@gnu.org>
628         * hurd/hurdmalloc.c (bcopy): Removed.
629         (realloc): Replace bcopy with memcpy.
630         * hurd/path-lookup.c (file_name_path_scan): Likewise.
631         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
632         * sunrpc/rpcinfo.c (pmapdump): Likewise.
634         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
635         (gethostbyaddr): Likewise.
636         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
638 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
640         * sysdeps/gnu/eval.c: Removed.
642 2001-09-18  Andreas Jaeger  <aj@suse.de>
644         * sysdeps/i386/fpu/s_logbl.S: Move to ...
645         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
647         * sysdeps/i386/fpu/s_rintl.S: Move to ...
648         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
650         * sysdeps/i386/fpu/s_significandl.S: Move to ...
651         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
653 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
655         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
656         nrules value.
658 2001-09-14  H.J. Lu  <hjl@gnu.org>
660         * sysdeps/mips/fpu/libm-test-ulps: Updated.
662 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
664         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
665         Patch by Florian La Roche <laroche@redhat.com>.
667         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
669         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
670         ETHER_CRC_LEN.
672 2001-09-14  Andreas Schwab  <schwab@suse.de>
674         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
675         Sumner <bls@sgi.com>.
676         * posix/execlp.c: Likewise.
678 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
680         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
681         is already found earlier in the search scope.
683 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
685         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
686         filter.
688 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
690         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
692 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
694         * config.h.in: Enforce optimization to be used.
695         * Makeconfig (preprocess-versions): Define ASSEMBLER.
696         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
697         * posix/Makefile (annexc-CFLAGS): Define to -O.
698         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
700 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
702         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
703         Patch by Stephan Kulow.
705 2001-09-08  Ben Collins  <bcollins@debian.org>
707         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
708         usage of RESOLVE() (r_type, not reloc->r_type).
710 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
712         * elf/dl-object.c: Avoid allocating extra memory block for name.
713         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
714         allocated separately.
715         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
717 2001-09-08  H.J. Lu  <hjl@gnu.org>
719         * po/zh_TW.po: Fix a typo.
721 2001-09-07  Tom Rix  <trix@redhat.com>
723         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
725 2001-08-26  Tom Rix  <trix@redhat.com>
727         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
728         command line options.
729         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
730         * sysdeps/unix/sysv/aix/start.c: Removed.
731         * sysdeps/unix/sysv/aix/start-libc.c: New file.
732         * sysdeps/unix/sysv/aix/init-first.c: New file.
733         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
735 2001-09-08  Ben Collins  <bcollins@debian.org>
737         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
738         * sysdeps/generic/dl-machine.h: Likewise.
739         * sysdeps/hppa/dl-fptr.c: Likewise.
740         * sysdeps/ia64/dl-fptr.c: Likewise.
741         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
742         * sysdeps/mips/dl-machine.h: Likewise.
743         * sysdeps/mips/mips64/dl-machine.h: Likewise.
744         * sysdeps/powerpc/dl-machine.c: Likewise.
746 2001-09-07  Ben Collins  <bcollins@debian.org>
748         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
750         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
752 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
754         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
755         dependencies if necessary.
757         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
758         loaded directly) determine length if l_initfini list by iterating
759         over its elements.  Minor optimizations.
760         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
761         for dependency objects.
762         If object was already loaded check whether any of the dependencies
763         is already on the relocation dependency list.  If yes, remove the
764         latter.  Minor optimizations.
765         * elf/dl-lookup.c (add_dependency): Add check for self reference of
766         maps here.  Search l_initfini list only if the object was loaded
767         directly and not only as a dependency.
768         (_dl_lookup_symbol): Add relocation dependency also if object
769         is not in global scope.  Remove test for self-reference here.
770         (_dl_lookup_versioned_symbol): Likewise.
771         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
772         element of first name record.
773         * elf/loadtest.c: Add some more test to recognize early if an object
774         wasn't unloaded.
775         * elf/Makefile: Add rules to build and run reldep5.
776         * elf/reldep5.c: New file.
777         * elf/reldepmod5.c: New file.
778         * elf/reldepmod6.c: New file.
780         * elf/reldep2.c: Fix typo.
782 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
784         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
785         elements.  Change l_scope to be a pointer only.
786         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
787         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
788         here add searchlist of newly open file to the dependency's scope.
789         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
790         only searchlist from its scope.  Free own scope array if necessary.
791         * elf/Makefile (tests): Add dblload and dblunload now.
793 2001-09-06  Andreas Jaeger  <aj@suse.de>
795         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
796         Stephen L Moshier.
798 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
800         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
801         they both fail.
802         * elf/dblload.c: New file.
803         * elf/dblloadmod1.c: New file.
804         * elf/dblloadmod2.c: New file.
805         * elf/dblloadmod3.c: New file.
806         * elf/dblunload.c: New file.
808 2001-09-04  Richard Henderson  <rth@redhat.com>
810         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
811         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
813 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
815         Correct very misleading message for error in failed runtime relocation.
816         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
817         place of the error.
818         (_dl_signal_cerror): Likewise.
819         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
820         * elf/dl-close.c: Likewise.
821         * elf/dl-deps.c: Likewise.
822         * elf/dl-load.c: Likewise.
823         * elf/dl-lookup.c: Likewise.
824         * elf/dl-open.c: Likewise.
825         * elf/dl-reloc.c: Likewise.
826         * elf/dl-sym.c: Likewise.
827         * elf/dl-version.c: Likewise.
828         * sysdeps/generic/dl-sysdep.c: Likewise.
830 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
832         * iconv/strtab.c (strtabinit): Initialize null Strent.
833         (newstring): Move len == 0 handling...
834         (strtabadd): ...here.
835         If len == 1, return null Strent.
836         When inserting a suffix of an existing string, check if
837         it is not equal to some suffix already recorded.
838         Copy left and right members over if adding longer string.
840 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
842         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
844         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
845         (__syscall_gethostname): Add prototype.
847 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
849         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
851 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
853         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
855 2001-08-27  Roland McGrath  <roland@frob.com>
857         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
858         short, copy that much into NAME anyway before returning error.
860 2001-09-01  Richard Henderson  <rth@redhat.com>
862         * sysdeps/alpha/elf/Dist: Remove file.
863         * sysdeps/alpha/elf/Makefile: Remove file.
864         * sysdeps/alpha/elf/crtbegin.S: Remove file.
865         * sysdeps/alpha/elf/crtend.S: Remove file.
866         * sysdeps/alpha/elf/initfini.c: New file.
868 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
870         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
871         * iconv/tst-iconv3.c: Likewise.
873 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
875         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
877 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
879         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
880         export it.
881         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
882         * iconv/iconv_prog.c (insert_cache): New function.
883         (print_known_names): If cache is used call insert_cache to use the
884         information from the cache [PR libc/2509].
886 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
888         * time/strptime.c (strptime_internal): Recognize 'l' format and
889         handle it like 'I' for symmetry with strftime.
891 2001-08-31  Richard Henderson  <rth@redhat.com>
893         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
894         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
895         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
896         (print_statistics): Make scalar unsigned long long.
897         * sysdeps/alpha/hp-timing.h: New file.
899 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
901         * stdio-common/perror.c (perror): Save errno early, pass it
902         down to perror_internal.
903         (perror_internal): Add errnum argument.
905 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
907         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
908         Don't add old memory content for R_ALPHA_REFQUAD.
910 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
912         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
913         memory correctly.
915         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
916         instead of open, __close instead of close, __getpagesize instead
917         of getpagesize.
919         * string/argz-stringify.c (__argz_stringify): Use __strnlen
920         instead of strnlen.
921         * include/string.h (strndupa): Redefine here to use __strnlen
922         instead of strnlen.
923         * string/strndup.c (__strndup): Use __strnlen not strnlen.
925         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
926         connected).
928 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
930         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
931         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
932         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
933         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
934         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
935         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
936         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
938 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
940         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
942 2001-08-30  Andreas Jaeger  <aj@suse.de>
944         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
945         contributed Stephen L Moshier.
947 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
949         * sunrpc/etc.rpc (sgi_fam): Add.
951 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
953         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
955 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
957         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
958         first is from a previous call.
959         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
961 2001-08-29  Andreas Schwab  <schwab@suse.de>
963         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
965 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
967         * config.make.in (INSTALL_SCRIPT): Define.
968         * Makeconfig (INSTALL_SCRIPT): Define.
969         * Makerules (do-install-script): New macro to install scripts using
970         INSTALL_SCRIPT.
971         (install-bin-script): New rule to install scripts with
972         do-install-script.
973         (install-bin-script-nosubdir): New rule.
974         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
975         (distinfo-vars): Add $(install-bin-script).
976         * Rules (others): Likewise.
977         * Makefile (glibcbug): Install with install-bin-script.
978         * debug/Makefile (xtrace): Likewise.
979         (catchsegv): Likewise.
980         * elf/Makefile (ldd): Likewise.
981         * malloc/Makefile (mtrace): Likewise.
982         * timezone/Makefile (tzselect): Likewise.
984 2001-08-29  H.J. Lu  <hjl@gnu.org>
986         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
987         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
988         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
990 2001-08-29  Andreas Schwab  <schwab@suse.de>
992         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
994 2001-08-28  H.J. Lu  <hjl@gnu.org>
996         * Makeconfig (combreloc-LDFLAGS): New variable.
997         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
998         * config.make.in (have-z-combreloc): New variable.
999         * configure.in: Substitute libc_cv_z_combreloc.
1001 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
1003         * po/sv.po: Update from translation team.
1004         * po/fr.po: Likewise.
1005         * po/da.po: Likewise.
1007 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1009         * Makerules: Fix a typo: MD% -> MD5.
1011 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
1013         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
1014         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
1016 2001-08-28  Andreas Jaeger  <aj@suse.de>
1018         * manual/libc-texinfo.sh: Add entry about free manuals.
1020         * manual/contrib.texi (Contributors): Fix cross reference.
1022         * manual/libc.texinfo (Copying): Include freemanuals.
1024         * manual/Makefile (appendices): Add freemanuals.
1026         * manual/freemanuals.texi: New file.
1027         Patch by Brian Youmans <3diff@gnu.org>.
1029         * manual/libm-err-tab.pl: Pretty print more platforms, print a
1030         smaller table.
1032         * manual/math.texi (Errors in Math Functions): Fix grammar, start
1033         table on separate page.
1034         Patch by Brian Youmans <3diff@gnu.org>.
1036 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
1038         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
1039         the connection went down after we first used it try to connect
1040         again and resend the message before printing to the console.
1041         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
1043 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
1045         * string/tst-strlen.c (main): Test strnlen (, -1) too.
1046         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
1047         bit set.
1049 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
1051         * iconv/strtab.c (searchstring): Use correct length for comparison.
1052         (strtabadd): Account total size correct if new string has old string as
1053         substring.
1055 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
1057         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
1059 2001-08-27  Andreas Jaeger  <aj@suse.de>
1061         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
1063         * math/libm-test.inc (j0_test): Add extra tests.
1064         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
1065         not x, in Hankel approximation.
1066         Patches by Stephen L Moshier.
1068 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
1070         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
1071         link_map.
1073         * configure.in: Fix test for .rela.dyn section.
1075         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
1077 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
1079         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
1080         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
1081         Pass type_class to _dl_lookup_*.
1082         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
1083         Pass around just type_class instead of noexec, noplt pair.
1084         (_dl_lookup_versioned_symbol): Likewise.
1085         (_dl_lookup_symbol_skip): Pass around just type_class instead of
1086         noexec, noplt pair.
1087         (_dl_lookup_versioned_symbol_skip): Likewise.
1088         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
1089         * elf/do-lookup.h (do_lookup): Likewise.
1090         * include/link.h (struct link_map): Replace noexec and noplt fields
1091         in l_lookup_cache with type_class field.
1092         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
1093         ELF_RTYPE_CLASS_COPY): Define.
1094         Adjust prototypes for _dl_lookup_symbol and
1095         _dl_lookup_versioned_symbol.
1096         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
1097         elf_machine_lookup_noexec_p): Remove.
1098         (elf_machine_type_class): Define.
1099         * sysdeps/arm/dl-machine.h: Likewise.
1100         * sysdeps/hppa/dl-machine.h: Likewise.
1101         * sysdeps/cris/dl-machine.h: Likewise.
1102         * sysdeps/i386/dl-machine.h: Likewise.
1103         * sysdeps/ia64/dl-machine.h: Likewise.
1104         * sysdeps/m68k/dl-machine.h: Likewise.
1105         * sysdeps/mips/mips64/dl-machine.h: Likewise.
1106         * sysdeps/mips/dl-machine.h: Likewise.
1107         * sysdeps/powerpc/dl-machine.h: Likewise.
1108         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1109         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1110         * sysdeps/sh/dl-machine.h: Likewise.
1111         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1112         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1114 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
1116         * manual/message.texi (Advanced gettext functions): Change
1117         description of plural forms for Slovak.
1118         Reported by Marcel Telka <marcel@telka.sk>.
1120         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
1121         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
1123 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
1125         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
1126         typo.  Patch by Florian La Roche <laroche@redhat.com>.
1128 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
1130         * include/link.h (struct link_map): Add l_lookup_cache element.
1131         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
1132         (RESOLVE_MAP): Likewise.
1133         (_dl_relocate_object): Remove cache initialization.
1134         * elf/dl-lookup.c: Rip out cache handling code.
1135         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
1136         declarations.
1138         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
1139         remove some __builtin_expect.
1140         (_dl_lookup_versioned_symbol): Likewise.
1142         * config.h.in: Add HAVE_Z_COMBRELOC.
1143         * configure.in: Add test for -z combreloc.
1145         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
1146         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
1147         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
1148         case to almost no code.
1150 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
1152         * po/tr.po: Update from translation team.
1154 2001-08-24  Andreas Jaeger  <aj@suse.de>
1156         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
1157         make clean works.
1159 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
1161         * elf/rtld.c (print_statistics): Printf % after percent values.
1162         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
1164         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
1165         don't have to compute the hash value and initialize current_value.
1166         Move reference_name variable to where it is needed.
1167         (_dl_lookup_versioned_symbol): Likewise.
1169 2001-08-24  Roland McGrath  <roland@frob.com>
1171         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
1172         Just test that strerror returns non-null for a few errno codes.
1174 2001-08-23  Roland McGrath  <roland@frob.com>
1176         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
1177         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
1179         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
1181         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
1182         __mach_reply_port.
1184 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
1186         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
1187         returns NULL.
1189         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
1190         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
1191         doesn't do it.
1192         * elf/rtld.c: Include <sys/param.h>.
1193         * elf/dl-reloc.c: Likewise.
1195 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1197         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
1198         empty to prevent junk from being generated.
1199         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
1201 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
1203         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
1204         records.  Rename endrel to relative, initialize it to r, and use it
1205         in elf_machine_rel_relative calls.  Point r after relative relocs.
1207 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
1209         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
1210         of R_386_NONE.
1212 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
1214         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
1215         necessary.  Undefine newly defined macros at the end.
1216         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
1217         Rename from elf_machine_rel_relative.
1218         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
1219         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
1220         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
1221         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
1222         Likewise.
1223         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
1224         Likewise.
1225         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
1226         Fix argument types.
1227         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
1228         Fix argument types.
1229         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
1230         Likewise.  Fix argument types.
1231         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
1232         Likewise.  Fix argument types.
1233         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
1234         Fix argument types.
1235         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
1236         ElfW(Rel) in argument.
1237         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
1238         function.
1240 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
1242         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
1244 2001-08-24  Andreas Jaeger  <aj@suse.de>
1246         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
1247         Stephen L Moshier <moshier@mediaone.net>.
1249 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
1251         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
1252         first if RELCOUNT is set.
1254         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
1255         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
1256         elf_machine_rel_relative.
1257         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
1258         Minor optimizations.
1259         * sysdeps/arm/dl-machine.h: Likewise.
1260         * sysdeps/cris/dl-machine.h: Likewise.
1261         * sysdeps/hppa/dl-machine.h: Likewise.
1262         * sysdeps/i386/dl-machine.h: Likewise.
1263         * sysdeps/ia64/dl-machine.h: Likewise.
1264         * sysdeps/m68k/dl-machine.h: Likewise.
1265         * sysdeps/mips/dl-machine.h: Likewise.
1266         * sysdeps/powerpc/dl-machine.h: Likewise.
1267         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1268         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1269         * sysdeps/sh/dl-machine.h: Likewise.
1270         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1271         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1273 2001-08-23  Roland McGrath  <roland@frob.com>
1275         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
1277         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
1278         sysdeps/mach version.  Implement counting ("recursive") mutexes
1279         on top of cthreads mutexes.
1280         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
1282         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
1283         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
1284         (__libc_cleanup_region_start, __libc_cleanup_region_end,
1285         __libc_clean_end): Define these to call the cleanup function after
1286         normal exit when they're supposed to.
1288         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
1289         Take new first arg DOIT, a boolean saying whether to really install
1290         any cleanup handler.
1291         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
1292         (__libc_cleanup_end): Likewise.
1293         * sysdeps/generic/bits/libc-lock.h: Same changes.
1294         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
1295         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
1296         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
1297         Likewise.
1298         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
1299         * sysdeps/generic/bits/stdio-lock.h
1300         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
1302 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
1304         * elf/ldconfig.c (search_dir): Remove stale symlinks.
1306 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
1308         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
1309         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
1310         lookups in cache.
1311         (_dl_lookup_versioned_symbol): Likewise.
1312         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
1313         relocation lookup.
1314         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
1315         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
1316         (lookup_cache, lookup_cache_versioned): Add declarations.
1318 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
1320         * stdlib/tst-random.c (main): Swap parameters in fail call.
1321         Patch by Pete Bevin <pete@petebevin.com>.
1323 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
1325         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
1327 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
1329         * malloc/obstack.c: Indent preprocessor directives.
1330         Patch by Jim Meyering <meyering@ascend.com>.
1332         * po/ja.po: Update from translation team.
1334 2001-08-23  Roland McGrath  <roland@frob.com>
1336         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
1338         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
1339         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
1341 2001-08-22  Roland McGrath  <roland@frob.com>
1343         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
1344         __libc_lock_define_recursive.
1345         * elf/dl-open.c: Don't declare it here any more.
1346         * elf/dl-close.c: Likewise.
1347         * elf/dl-lookup.c: Likewise.
1348         * elf/dl-iteratephdr.c: Likewise.
1349         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
1350         __libc_lock_unlock_recursive.
1351         * elf/dl-close.c (_dl_close): Likewise
1352         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
1353         * elf/dl-open.c (_dl_open): Likewise
1355         * sysdeps/generic/bits/libc-lock.h
1356         (__libc_lock_define_recursive): New macro.
1357         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
1358         (_IO_lock_lock): Use __libc_lock_lock_recursive.
1359         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
1361         * conform/conformtest.pl (checknamespace): Sort the output list.
1363         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
1364         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
1365         definitions conditional on [__USE_XOPEN].
1367         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
1368         these unconditionally, not only use [__USE_BSD], so as to match
1369         the sysdeps/unix/sysv/linux files.
1371 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
1373         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
1374         avoid warnings.
1376         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
1377         DL_LOOKUP_ADDRESS.
1379 2001-08-22  Roland McGrath  <roland@frob.com>
1381         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
1382         conditionalization of sa_handler/sa_sigaction member types to
1383         match the sysdeps/unix/sysv/linux file.
1385 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
1387         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
1388         symbol sizes a bit better.
1390         * sysdeps/ia64/strncpy.S: Complete rewrite.
1391         Contributed by Jakub Jelinek <jakub@redhat.com>.
1393         * string/stratcliff.c (main): Add strncpy test.
1395 2001-08-22  Roland McGrath  <roland@frob.com>
1397         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
1398         and don't declare unsetenv or _environ directly.
1399         (unsetenv): Return int, not void.  Use __environ instead of _environ.
1401 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
1403         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
1404         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
1405         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
1406         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
1407         test for cmsg struct size.
1409 2001-04-23  Paul Eggert  <eggert@twinsun.com>
1411         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
1412         Rename __argc to ___argc in prototypes to avoid compatibility
1413         problems with systems that reserve the identifier "__argc".
1414         Similarly for __argv.
1416 2001-08-21  Roland McGrath  <roland@frob.com>
1418         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
1420         * mach/Makefile (tests): Removed.
1421         * mach/hello.c: File removed.
1423 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
1425         * po/sv.po: Update from translation team.
1427         * stdio-common/vfscanf.c: Fix handling of %l[].
1428         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
1430         * libio/Makefile (tests): Add tst-sscanf.
1431         * libio/tst-sscanf.c: New file.
1433         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
1434         * malloc/mtrace.c (tr_where): dli_sname always points to a
1435         non-empty string if != NULL.
1436         Reported by Tim Janik <timj@gtk.org>.
1438 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
1440         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
1441         buf.  Free resources on failure.
1442         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
1443         (makefd_xprt): Likewise.
1444         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
1445         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
1446         * sunrpc/auth_unix.c (authunix_create): Likewise.
1448 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
1450         * string/strnlen.c: Remove.
1451         * sysdeps/generic/strnlen.c: New.
1452         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
1454 2001-08-21  Roland McGrath  <roland@frob.com>
1456         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
1457         as a macro, not an extern inline function.
1459         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
1460         * Versions.def (libc): Add GLIBC_2.2.5 set.
1461         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
1462         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
1464 2001-08-20  Roland McGrath  <roland@frob.com>
1466         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
1467         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
1469 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
1471         * string/bits/string2.h: Remove strnlen optimization here.
1472         * sysdeps/i386/i486/bits/string.h: Add it here.
1474 2001-08-21  Wolfram Gloger  <wg@malloc.de>
1476         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
1478 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
1480         * po/gl.po: Update from translation team.
1482 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
1484         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
1485         * misc/err.c (convert_and_print): Likewise.
1487         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
1488         function calls.
1490 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1492         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
1493         change of the gregset_t type.
1494         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
1496 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
1498         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
1500 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
1502         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
1504         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
1506 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
1508         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
1509         before calling the cthreads initialization code.
1511 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
1513         * argp/argp-help.c: Fix two problems introduced in last change.
1515         * include/dirent.h: Include <dirstream.h> first.
1517 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
1519         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
1521         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
1522         * sunrpc/xdr_rec.c: Likewise.
1523         * sunrpc/xdr_mem.c: Likewise.
1524         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
1525         * sunrpc/rpc_cmsg.c: Likewise.
1526         * sunrpc/getrpcport.c (getrpcport): Likewise.
1527         * sunrpc/clnt_simp.c (callrpc): Likewise.
1528         * sunrpc/clnt_gen.c (clnt_create): Likewise.
1529         * string/envz.c: Likewise.
1531         * po/ko.po: Update from translation team.
1533         * argp/argp-help.c: Handle wide oriented stderr stream.
1535 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
1537         * sysdeps/generic/strtol.c: Little optimizations.  Add some
1538         __builtin_expect.
1540         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
1542         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
1543         * wcsmbs/wcwidth.c (wcwdith): Likewise.
1544         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
1546         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
1548         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
1550         * time/time.h (struct timespec): Use __time_t for tv_sec element.
1552         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
1553         wchar_t for function declarations and defintions.
1555         * misc/sys/select.h: Define __need_time_t before including <time.h>.
1556         Define suseconds_t if it hasn't happened yet.
1558         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
1560         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
1562         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
1563         <stddef.h>.
1565         * conform/data/stddef.h-data: Remove wint_t.
1567         * conform/conformtest.pl: Change namespace test to take #undef
1568         lines into account.
1570         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
1572         * conform/data/sys/socket.h-data: Add sockatmark.
1574 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
1576         * io/fts.c: Update from recent BSD source.
1578 2001-08-17  Roland McGrath  <roland@frob.com>
1580         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
1581         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
1582         Likewise.
1584 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
1586         * locale/duplocale.c (__duplocale): Also initialize the special
1587         __ctype_* elements.
1589         * conform/data/netdb.h-data: Adjust gai_strerror return type.
1591 2001-08-17  Andreas Jaeger  <aj@suse.de>
1593         * misc/getpass.c: Include wchar.h for prototypes.
1594         * malloc/obstack.c: Likewise.
1596 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
1598         * sunrpc/svc_simple.c (universal): Use __write instead of write.
1600         * wcsmbs/wcscoll.c: Also define __wcscoll.
1601         * include/wchar.h: Declare __wcscoll.
1603         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
1604         * libio/vwprintf.c: Likewise.
1605         * libio/wprintf.c: Likewise.
1607         * iconv/gconv_cache.c: Use __munmap instead of munmap.
1609 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
1611         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
1612         instead of mbrtowc.
1613         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
1614         wcslen, and __wcscoll instead of wcscoll.
1616         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
1618         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
1619         __getuid instead of getuid.
1621         * stdio-common/perror.c (perror): Use __close instead of close.
1622         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
1623         * libio/freopen.c (freopen): Likewise.
1624         * libio/freopen64.c (freopen64): Likewise.
1626         * libio/tst-ungetwc2.c (main): Define str const.
1628         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
1629         * libio/fwprintf.c: Also define __fwprintf.
1630         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
1631         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
1632         * assert/assert-perr.c: Likewise.
1633         * assert/assert.c: Likewise.
1634         * gmon/gmon.c: Likewise.
1635         * inet/rcmd.c: Likewise.
1636         * malloc/obstack.c: Likewise.
1637         * misc/err.c: Likewise.
1638         * misc/error.c: Likewise.
1639         * misc/getpass.c: Likewise.
1640         * posix/getopt.c: Likewise.
1641         * resolv/res_hconf.c: Likewise.
1642         * stdio-common/perror.c: Likewise.
1643         * stdio-common/psignal.c: Likewise.
1644         * stdlib/fmtmsg.c: Likewise.
1645         * sunrpc/auth_unix.c: Likewise.
1646         * sunrpc/clnt_perr.c: Likewise.
1647         * sunrpc/clnt_tcp.c: Likewise.
1648         * sunrpc/clnt_udp.c: Likewise.
1649         * sunrpc/clnt_unix.c: Likewise.
1650         * sunrpc/svc_simple.c: Likewise.
1651         * sunrpc/svc_tcp.c: Likewise.
1652         * sunrpc/svc_udp.c: Likewise.
1653         * sunrpc/svc_unix.c: Likewise.
1654         * sunrpc/xdr.c: Likewise.
1655         * sunrpc/xdr_array.c: Likewise.
1656         * sunrpc/xdr_rec.c: Likewise.
1657         * sunrpc/xdr_ref.c: Likewise.
1658         * sysdeps/generic/wordexp.c: Likewise.
1660         * po/it.po: Update from translation team.
1662         * misc/err.c: Handle wide oriented stderr stream.
1664 2001-08-14  Tom Rix  <trix@redhat.com>
1666         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
1667         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
1669 2001-08-13  Tom Rix  <trix@redhat.com>
1671         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
1672         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
1673         and __intptr_t.
1675 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1677         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
1678         Store the access registers to the ucontext structure.
1679         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
1680         Likewise.
1682         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
1683         Load the access registers from the ucontext structure.
1684         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
1685         Likewise.
1687         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
1688         offsets to the new ucontext layout.
1689         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
1691         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
1692         of the ucontext structure.
1693         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
1695 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
1697         * misc/error.c (error): Handle wide oriented stderr stream correctly.
1698         (error_at_line): Likewise.
1700         * stdio-common/perror.c (perror): Implement according to standard.
1701         The stream orientation must not be changed if the stream was not
1702         oriented before the call.
1703         * stdio-common/Makefile (tests): Add tst-perror.
1704         * stdio-common/tst-perror.c: New file.
1707 See ChangeLog.12 for earlier changes.