Update.
[glibc.git] / ChangeLog
blob6a8ec414178264fa0bb9c0df8b646c62e704e4b1
1 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
3         Implement transliteration of characters in strings of the locale
4         definitions.
5         * locale/programs/linereader.c: Adjust for additional parameter to
6         lr_token.
7         (get_string): If character <Uxxxx> is not found try to transliterate
8         it.
9         * locale/programs/ld-ctype.c: Adjust for additional parameter to
10         lr_token.  Add const to charmap parameter of all functions.
11         (find_translit, find_translit2): New functions.
12         * locale/programs/charmap.c: Adjust for additional parameter to
13         lr_token.
14         * locale/programs/repertoire.c: Likewise.
15         * locale/programs/linereader.h: Likewise.
16         * locale/programs/ld-address.c: Likewise.  Add const to charmap
17         parameter of all functions.
18         * locale/programs/ld-collate.c: Likewise.
19         * locale/programs/ld-identification.c: Likewise.
20         * locale/programs/ld-measurement.c: Likewise.
21         * locale/programs/ld-messages.c: Likewise.
22         * locale/programs/ld-monetary.c: Likewise.
23         * locale/programs/ld-name.c: Likewise.
24         * locale/programs/ld-numeric.c: Likewise.
25         * locale/programs/ld-paper.c: Likewise.
26         * locale/programs/ld-paper.c: Likewise.
27         * locale/programs/ld-telephone.c: Likewise.
28         * locale/programs/ld-time.c: Likewise.
29         * locale/programs/locfile.c: Likewise.
30         * locale/programs/localedef.c: Likewise.
31         * locale/programs/localedef.h: Likewise.
32         * locale/programs/locfile.h: Likewise.  Add declaration for
33         find_translit.
34         * locale/programs/simple-hash.c: Add const to first parameter of
35         find_entry, iterate_table, and lookup.
36         * locale/programs/simple-hash.h: Likewise.
37         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
38         instead.
39         * include/locale.h: Define __LC_LAST.
40         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
42 2001-12-07  Geoff Keating  <geoffk@redhat.com>
44         * sysdeps/powerpc/Dist: Update for recent FP changes.
45         * sysdeps/powerpc/fpu/Dist: Likewise.
47 2001-12-07  Andreas Schwab  <schwab@suse.de>
49         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
51 2001-12-06  Geoff Keating  <geoffk@redhat.com>
53         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
54         save/restore functions here.
55         (libm-support): Don't define these functions here.
56         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
57         functions here.
58         * sysdeps/powerpc/fe_nomask.c: Move to...
59         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
60         * sysdeps/powerpc/fprrest.S: Move to...
61         * sysdeps/powerpc/fpu/fprrest.S: ... here.
62         * sysdeps/powerpc/fprsave.S: Move to...
63         * sysdeps/powerpc/fpu/fprsave.S: ... here.
65 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
67         * sysdeps/unix/sysv/linux/opensock.c: New file.
69 2001-12-06  Geoff Keating  <geoffk@redhat.com>
71         * config.make.in (with-fp): Define from configure.
72         * configure.in: Substitute with_fp.
73         * configure: Regenerate.
74         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
75         specified, and don't change FPU environment.
77 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
79         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
80         * assert/assert.c: Check result of __asprintf call and don't use
81         string if it failed.
82         * assert/assert-perr.c: Likewise.
83         * inet/rcmd.c: Likewise.
84         * locale/programs/localedef.c (main): Check result of
85         construct_output_path and exit if it failed.
86         (construct_output_path): Check result of asprintf and mkdir calls and
87         fail if they failed.
88         * posix/getopt.c: Check result of __asprintf calls and fail if
89         they failed.
90         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
92 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
94         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
95         patch.
96         * sysdeps/generic/strncase.c: Likewise.
97         * string/tester.c: Add tests for strcasecmp and strncasecmp.
99 2001-12-05  Geoff Keating  <geoffk@redhat.com>
101         * scripts/cpp: Test the exit status from 'type', not 'awk'.
103         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
104         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
105         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
106         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
107         * sysdeps/powerpc/fclrexcpt.c: Move to...
108         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
109         * sysdeps/powerpc/fpu_control.h: Move to...
110         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
112 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
114         * iconvdata/ibm1129.h: Remove duplicate mappings.
115         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
116         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
117         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
119         * timezone/zic.c: Fix handling of turnaround times.
120         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
122 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
124         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
125         overflow problem.
127 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
129         * posix/regex.c: For use outside glibc defined bounded pointer
130         macros here.  Patch by Jim Meyering <jim@meyering.net>.
132         * iconvdata/Makefile (modules): Add TCVN5712-1.
133         * iconvdata/TESTS: Add TCVN5712-1.
134         * iconvdata/gconv-modules: Likewise.
135         * iconvdata/tcvn5712-1.c: New file.
136         * iconvdata/testdata/TCVN-5712: New file.
137         * iconvdata/testdata/TCVN-5712..UTF8: New file.
139 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
141         * iconvdata/cp1258.c: Optimize conversion from UCS4.
143 2001-12-02  Roland McGrath  <roland@frob.com>
145         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
147         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
148         Reported by Jeff Bailey <jbailey@nisa.net>.
150         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
151         Reported by Jeff Bailey <jbailey@nisa.net>.
153         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
154         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
155         Reported by Jeff Bailey <jbailey@nisa.net>.
157 2001-12-01  Roland McGrath  <roland@frob.com>
159         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
160         missing backslash in test arguments.
161         * sysdeps/mach/hurd/configure: Regenerated.
163 2001-11-26  Roland McGrath  <roland@frob.com>
165         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
166         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
168 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
170         * iconvdata/Makefile (modules): Add ARMSCII-8.
171         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
172         * iconvdata/armscii-8.c: New file.
174 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
176         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
177         don't match, fix {{a,b},c} globbing, clean up.
178         Patch by Flavio Veloso <flaviovs@magnux.com>.
179         * posix/globtest.sh: Add new tests.
181 2001-11-29  Andreas Jaeger  <aj@suse.de>
183         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
184         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
186         * sysdeps/generic/abort.c: Include libioP.h for
187         _IO_flush_all_lockp prototype.
189 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
191         * posix/regex.h: Define __restrict_arr correctly.
193 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
195         * iconvdata/ibm1163.c: New file.
196         * iconvdata/ibm1163.h: New file.
197         * iconvdata/ibm1164.c: New file.
198         * iconvdata/ibm1164.h: New file.
199         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
200         * iconvdata/Makefile: Likewise.
201         * iconvdata/testdata/IBM1163: New file.
202         * iconvdata/testdata/IBM1163..UTF8: New file.
203         * iconvdata/testdata/IBM1164: New file.
204         * iconvdata/testdata/IBM1164..UTF8: New file.
205         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
207         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
208         * iconvdata/ibm1124.h: Likewise.
209         * iconvdata/ibm1132.h: Likewise.
210         * iconvdata/ibm1133.h: Likewise.
211         * iconvdata/ibm1160.h: Likewise.
212         * iconvdata/ibm1161.h: Likewise.
213         * iconvdata/ibm1162.h: Likewise.
214         * iconvdata/ibm856.h: Likewise.
215         * iconvdata/ibm922.h: Likewise.
216         * iconvdata/ibm930.h: Likewise.
217         * iconvdata/ibm932.h: Likewise.
218         * iconvdata/ibm933.h: Likewise.
219         * iconvdata/ibm935.h: Likewise.
220         * iconvdata/ibm937.h: Likewise.
221         * iconvdata/ibm939.h: Likewise.
222         * iconvdata/ibm943.h: Likewise.
223         * iconvdata/ibm930.c: Pretty printing.
224         * iconvdata/ibm937.c: Avoid access accross array boundary.
226         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
227         the current locale's codeset.
228         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
229         empty input string.
230         * iconv/iconv_prog.c: Pass empty strings as default value for to-
231         and from-charset.  Don't determine locale's charset here.
233         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
234         as the old _IO_flush_all but lock only if parameter is nonzero.
235         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
236         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
237         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
238         if libio is used [PR libc/2575].
240 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
242         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
243         __signbitl): Only define for ISO C99.
245 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
247         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
248         herrnop to NETDB_INTERNAL if we run out of buffer space.
250 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
252         * nss/nss_files/files-XXX.c (internal_getent): Correct input
253         overflow test for platforms with signed char.
254         Reported by Andrew Haley <aph@cambridge.redhat.com>.
256 2001-11-28  Bruno Haible  <bruno@clisp.org>
258         * locale/programs/simple-hash.c (lookup_2): Remove function.
259         (insert_entry_2): Call lookup instead of lookup_2.
261 2001-03-04  Bruno Haible  <bruno@clisp.org>
263         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
265 2001-10-31  Bruno Haible  <bruno@clisp.org>
267         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
269 2001-03-21  Bruno Haible  <bruno@clisp.org>
271         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
272         chokes on empty macro arguments.
273         * intl/plural.y: Add #pragma for alloca on AIX 3.
275 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
277         * intl/dcigettext.c (guess_category_value): Only implement for
278         glibc.  Otherwise rely on function _nl_locale_name which isn't
279         present in the glibc sources.
281 2001-09-24  Bruno Haible  <bruno@clisp.org>
283         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
284         transliteration when building on a glibc system but outside glibc.
286 2001-09-22  Bruno Haible  <bruno@clisp.org>
288         * intl/plural-eval.c: New file, extracted from dcigettext.c.
289         * intl/dcigettext.c (plural_eval): Remove function, moved to
290         intl/plural-eval.c.
291         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
292         Include plural-eval.c.
294 2001-09-22  Bruno Haible  <bruno@clisp.org>
296         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
297         don't start with a digit; nplurals must be positive.
299 2001-09-02  Bruno Haible  <bruno@clisp.org>
301         * intl/plural-exp.h: New file, extracted from gettextP.h.
302         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
303         * intl/gettextP.h (struct expression, struct parse_args,
304         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
305         * intl/loadmsgcat.c: Include plural-exp.h.
306         (PLURAL_PARSE): Move macro to plural-exp.h.
307         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
308         plural-exp.c.
309         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
310         EXTRACT_PLURAL_EXPRESSION.
311         (_nl_unload_domain): Update.
312         * intl/dcigettext.c: Include plural-exp.h.
313         * intl/plural.y: Include plural-exp.h, not gettextP.h.
314         (FREE_EXPRESSION): Move macro to plural-exp.h.
315         * intl/Makefile (routines): Add plural-exp.
316         (distribute): Add plural-exp.h.
318 2001-07-28  Bruno Haible  <bruno@clisp.org>
320         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
321         isdigit, tolower argument to 'unsigned char'.
322         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
323         'unsigned char'.
324         * intl/localealias.c (read_alias_file): Cast isspace argument to
325         'unsigned char'.
327 2001-10-20  Bruno Haible  <bruno@clisp.org>
329         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
330         anyway.)
331         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
332         with the variable 'index' in plural_lookup.
333         * intl/l10nflist.c (strchr): Likewise.
334         * intl/localealias.c (strchr): Likewise.
336         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
337         * intl/bindtextdom.c: Likewise.
338         * intl/dcigettext.c: Likewise.
339         * intl/dgettext.c: Likewise.
340         * intl/dngettext.c: Likewise.
341         * intl/explodename.c: Likewise.
342         * intl/finddomain.c: Likewise.
343         * intl/gettext.c: Likewise.
344         * intl/l10nflist.c: Likewise.
345         * intl/loadmsgcat.c: Likewise.
346         * intl/localealias.c: Likewise.
347         * intl/ngettext.c: Likewise.
348         * intl/textdomain.c: Likewise.
349         * intl/gettext.h: Assume <limits.h> exists.
351 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
353         * stdio-common/Makefile (tests): Add scanf11.
354         * stdio-common/scanf11.c: New file.
356 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
358         * version.h (RELEASE): Define as development.
359         (VERSION): Set to 2.2.90.
361 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
363         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
364         * nis/nss_nis/nis-grp.c: Likewise.
365         * nis/nss_nisplus/nisplus-grp.c: Likewise.
367         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
368         * nis/nss_nis/nis-pwd.c: Likewise.
369         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
371         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
372         * nis/nss_nisplus/nisplus-parser.c: Likewise.
373         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
375         * nscd/grpcache.c: Use strtoul instead of atol.
376         * nscd/pwdcache.c: Likewise.
377         * nss/getent.c: Likewise.
379 2001-11-27  Paul Eggert  <eggert@twinsun.com>
381         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
382         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
384 2001-11-19  Bruno Haible  <bruno@clisp.org>
386         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
387         90%.
388         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
389         improves the quality of the hash function, especially for short
390         strings.
392 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
394         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
395         are found call conv_error and not input_error [PR libc/2669].
397         * math/bits/mathcalls.h: Mark ceil and floor as const.
398         Reported by David Mosberger.
400 2001-11-21  Jim Meyering  <meyering@lucent.com>
402         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
403         Define to be __-prefixed.
404         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
406 2001-11-26  Andreas Jaeger  <aj@suse.de>
408         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
409         avoid warning.
411 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
413         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
414         initialization.
416         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
417         unused variables.  Fix threshold for returning 1.0.
419         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
420         argument.
422         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
423         remove unused variables.
425         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
427         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
428         include local math header files.
430 2001-11-22  Andreas Jaeger  <aj@suse.de>
432         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
433         avoid warning.
435 2001-11-21  Andreas Jaeger  <aj@suse.de>
437         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
439         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
440         sys/debugreg.h
442 2001-11-15  Andreas Jaeger  <aj@suse.de>
444         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
445         compilers that support it.
447         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
448         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
449         * stdlib/stdlib.h: Likewise.
451 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
453         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
454         statement with gotos.
455         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
457 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
459         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
461 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
463         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
465 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
466             H.J. Lu  <hjl@gnu.org>
468         * Versions.def (libc): Add GCC_3.0.
469         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
470         if gcc supports this flag.
471         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
472         (gcc3): Allow glibc to be compiled with gcc 3.x.
473         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
474         * config.make.in (static-libgcc, unwind-find-fde): Add.
475         * Makerules (build-shlib-helper, build-module-helper): Use it.
476         * scripts/versions.awk: Make sure GLIBC_ versions come first.
477         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
478         necessary.
479         (_fini): Call __deregister_frame_info_bases if
480         __register_frame_info_bases was used to register.
481         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
482         for GLIBC_2.0.
483         (__register_frame_info_bases, __register_frame_info_table_bases,
484         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
485         * elf/Makefile (routines): Add unwind-dw2-fde.
486         (shared-only-routines): Add unwind-dw2-fde.
487         * sysdeps/alpha/gccframe.h: New file.
488         * sysdeps/arm/gccframe.h: New file.
489         * sysdeps/generic/framestate.c: New file.
490         * sysdeps/generic/dwarf2.h: New file.
491         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
492         * sysdeps/generic/unwind-dw2-fde.c: New file.
493         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
494         * sysdeps/generic/unwind-dw2-fde.h: New file.
495         * sysdeps/generic/unwind-dw2.c: New file.
496         * sysdeps/generic/unwind-pe.h: New file.
497         * sysdeps/generic/unwind.h: New file.
498         * sysdeps/hppa/gccframe.h: New file.
499         * sysdeps/i386/gccframe.h: New file.
500         * sysdeps/m68k/gccframe.h: New file.
501         * sysdeps/mips/gccframe.h: New file.
502         * sysdeps/powerpc/gccframe.h: New file.
503         * sysdeps/s390/gccframe.h: New file.
504         * sysdeps/sh/gccframe.h: New file.
505         * sysdeps/sparc/gccframe.h: New file.
506         * sysdeps/vax/gccframe.h: New file.
507         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
508         Set on all architectures except ia64.
509         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
510         for i386.
511         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
512         __deregister_frame_info): Move to elf/Versions.
513         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
514         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
515         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
516         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
517         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
518         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
519         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
520         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
521         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
522         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
523         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
524         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
525         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
526         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
527         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
528         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
529         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
530         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
532 2001-11-15  Jeff Law  <law@redhat.com>
534         * posix/regex.c (uintptr_t): Do not provide a definition if the
535         system provided one.
537 2001-11-13  Roland McGrath  <roland@frob.com>
539         * stdio-common/tmpfile.c: Moved to ...
540         * sysdeps/generic/tmpfile.c: ... here.
541         * sysdeps/mach/hurd/tmpfile.c: New file.
543         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
544         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
545         (fopenport): Define as weak alias.
547         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
548         * libio/libioP.h: ... to here.
550 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
552         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
553         program header twice.  Construct list with the needed information.
555 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
557         * po/ca.po: Update from translation team.
559         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
560         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
561         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
562         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
564 2001-11-10  Andreas Jaeger  <aj@suse.de>
566         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
567         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
568         Contributed by Stephen L Moshier <moshier@mediaone.net>.
570 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
572         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
573         correctly.
574         * elf/dl-load.c (is_dst): New function.
575         (_dl_dst_count): Use is_dst to check for DST variable.
576         (_dl_dst_substitute): Likewise.
578 2001-11-09  Roland McGrath  <roland@frob.com>
580         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
581         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
582         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
583         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
584         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
585         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
586         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
587         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
588         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
589         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
590         * sysdeps/mach/hurd/powerpc/Dist: New file.
592         * hurd/privports.c (__get_privileged_ports):
593         Only contact the proc server if necessary for this call.
594         Suggested by Neal H Walfield <neal@cs.uml.edu>.
595         Check error return for mach_port_mod_refs.
597 2001-11-09  Andreas Schwab  <schwab@suse.de>
599         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
601 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
603         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
604         object is always the last in the list.
605         (_dl_map_object_from_fd): Delete code to remove from object list
606         when DF_1_NOOPEN is seen.  This is done in lose.
608 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
610         * elf/dl-object.c (_dl_new_object): Various small optimizations.
612 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
614         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
615         HWCAP_CHECK macro code.
617         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
618         Now returns MAP_FAILED on error.
619         * elf/rtld.c: Adjust caller.
620         * sysdeps/generic/dl-cache.c: Likewise.
621         * sysdeps/generic/ldsodefs.h: Adjust description.
623         * elf/dl-version.c (match_symbol): Optimize error handling for size.
624         (_dl_check_map_versions): Likewise.
626 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
628         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
629         _dl_signal_error directly, always use lose.  Set fd to -1 after
630         file is closed.
631         (lose): Don't call close if fd == -1.
633 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
635         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
636          Also fix typo @code {mbsinit} to @code{mbsinit}.
638 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
640         * elf/dl-profile.c: Replace state variable with simple flag named
641         running.  Remove commented-out code.
643         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
644         (_dl_init_paths): Likewise.
645         (_dl_map_object_from_fd): Likewise.
646         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
648 2001-11-06  Roland McGrath  <roland@frob.com>
650         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
651         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
653         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
654         sysdeps/powerpc/elf/sysdep.h.
655         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
657 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
659         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
660         speed.
661         (process_envvars): Some more optimizations.
662         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
664         * elf/elf.h: Add dynamic tag definitions for prelinking.
666         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
667         Rewrite code to remove environment varables for SUID binaries.
668         Small optimization in LD_PROFILE handling.
669         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
670         changes.
671         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
673         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
675         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
676         strings.  Change type of second parameter.
677         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
678         for last change.
680         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
682 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
684         * manual/string.texi: Fix typos.
685         * manual/examples/argp-ex2.c: Likewise.
687 2001-11-05  Roland McGrath  <roland@frob.com>
689         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
690         the more-specific unix/sysv/linux/powerpc file and breaks everything.
691         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
692         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
693         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
694         here, put under [__ELF__].
696 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
698         * manual/charset.texi: Extensive editing work.
699         * manual/nss.texi: Likewise.
700         Changes by Dennis Grace <dgrace@us.ibm.com>.
702 2001-11-04  Roland McGrath  <roland@frob.com>
704         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
705         parameter to dir_mkfile.
707 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
709         * string/bits/string2.h (__strndup): If n is smaller than len, set
710         len to n + 1.
711         * string/tester.c (test_strndup): New function.
712         (main): Call it.
714 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
716         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
718         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
719         * scripts/cpp: New file.
721         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
722         for rtld_search_dirs content.  Minor optimizations.
724 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
726         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
727         avoiding unnecessary duplication.
729 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
731         * elf/dl-load.c (_dl_map_object): If library was found using
732         LD_LIBRARY_PATH, don't try RUNPATH list.
734 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
736         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
737         Correct second argument of register_dump call.
738         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
739         Likewise.
741 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
743         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
744         modules.
745         * iconvdata/TESTS: Likewise.
746         * iconvdata/gconv-modules: Likewise.
747         * iconvdata/ibm1132.c: New file.
748         * iconvdata/ibm1132.h: New file.
749         * iconvdata/ibm1133.c: New file.
750         * iconvdata/ibm1133.h: New file.
751         * iconvdata/ibm1162.c: New file.
752         * iconvdata/ibm1162.h: New file.
753         * iconvdata/testdata/IBM1132: New file.
754         * iconvdata/testdata/IBM1132..UTF8: New file.
755         * iconvdata/testdata/IBM1133: New file.
756         * iconvdata/testdata/IBM1133..UTF8: New file.
757         * iconvdata/testdata/IBM1162: New file.
758         * iconvdata/testdata/IBM1162..UTF8: New file.
759         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
761         * string/string.h: Fix typo in comment.
762         * wcsmbs/wchar.h: Likewise.
764 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
766         * manual/getopt.texi (getopt_long, getopt_long_only): Include
767         const in type of longopts parameter.
769 2001-10-29  Andreas Jaeger  <aj@suse.de>
771         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
773 2001-10-29  Kevin Ryde  <user42@zip.com.au>
775         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
776         output, clarify `#' behaviour on 0.
777         (Floating-Point Conversions): Clarify that %g only uses %e when
778         the exponent would be greater than 1.
780 2001-10-28  Roland McGrath  <roland@frob.com>
782         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
783         * sysdeps/mach/powerpc/machine-sp.h: New file.
784         * sysdeps/mach/powerpc/sysdep.h: New file.
785         * sysdeps/mach/powerpc/thread_state.h: New file.
787         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
788         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
789         expect to need the same thing on every platform.
791         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
792         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
794         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
795         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
796         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
797         Move all these assembly-related definitions to ...
798         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
800         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
801         by Peter Bruin <pjbruin@dds.nl>.
803         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
804         packing results for a `poll' call.
806 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
808         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
809         correctly.
810         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
811         bracket expression.
813         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
814         nrules value.
815         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
817 2001-10-24  H.J. Lu  <hjl@gnu.org>
819         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
820         Use __BEGIN_DECLS/__END_DECLS around prototypes.
821         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
823 2001-10-21  Jim Meyering  <meyering@lucent.com>
825         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
826         this code would end up calling gettext even in packages built
827         with --disable-nls.
828         * posix/getopt.c (_): Likewise.
829         * posix/regex.c (_): Likewise.
831 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
833         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
834         lookup not ip6.int.
835         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
836         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
838 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
840         * misc/sys/cdefs.h (__attribute_used__): Define.
841         * elf/rtld.c (_dl_start): Add __attribute_used__.
842         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
844 2001-10-25  Andreas Schwab  <schwab@suse.de>
846         * stdlib/a64l.c: Expect least significant digit first.
847         * stdlib/l64a.c: Produce least significant digit first.
848         * stdlib/Makefile (tests): Add test-a64l.
849         * stdlib/test-a64l.c: New file.
850         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
852 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
854         * po/sk.po: Update from translation team.
856 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
858         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
860 2001-10-18  Andreas Schwab  <schwab@suse.de>
862         * math/libm-test.inc (print_ulps): Print ulp values rounded to
863         next whole number.
864         (print_function_ulps): Likewise.
865         (print_complex_function_ulps): Likewise.
866         (print_max_error): Likewise.
867         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
869 2001-10-16  Andreas Schwab  <schwab@suse.de>
871         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
872         implementation.
874         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
875         BSD_SETJMP or BSD__SETJMP is defined, resp.
876         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
877         a tail call to __sigsetjmp that would require extending the
878         caller's frame.
879         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
880         * sysdeps/m68k/bsd-setjmp.S: Deleted.
881         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
882         Reported by Jes Sorensen <jes@trained-monkey.org>.
884 2001-10-16  Andreas Jaeger  <aj@suse.de>
886         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
887         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
888         close PR libc/2589.
890 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
892         * po/ca.po: New file.  Contributed by the translation team.
894 2001-10-15  Ralf Baechle  <ralf@gnu.org>
896         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
897         a varargs prototype.  Remove dependency from kernel header files.
899         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
900         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
902 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
904         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
905         to generate hexadecimal identifier.
906         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
908 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
910         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
912 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
914         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
915         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
916         Contributed by Stephen L Moshier <moshier@mediaone.net>.
918         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
919         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
920         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
921         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
922         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
923         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
925         * timezone/africa: Update from tzdata2001d.
926         * timezone/asia: Likewise.
927         * timezone/australasia: Likewise.
928         * timezone/backward: Likewise.
929         * timezone/europe: Likewise.
930         * timezone/leapseconds: Likewise.
931         * timezone/northamerica: Likewise.
932         * timezone/southamerica: Likewise.
933         * timezone/zone.tab: Likewise.
935 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
937         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
938         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
940 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
942         * elf/elf.h (PT_TLS): New definition.
944 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
946         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
947         bits/errno.h
949 2001-10-07  Roland McGrath  <roland@frob.com>
951         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
953 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
955         * elf/elf.h: Add more ELFOSABI_* constants.
957 2001-10-04  Ben Collins  <bcollins@debian.org>
959         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
960         decleration of __need_wchar_t.
962 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
964         * string/bits/string2.h (__strsep_g): Add prototype.
965         (__strsep): Use it.
966         * string/Versions (__strsep): Remove.
967         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
969 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
971         * manua/llio.texi: Clarify file references added by mmap.
972         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
974 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
976         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
977         Add sc_loadrs and sc_rbs_bas to match current kernel.
979 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
981         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
983         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
985 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
987         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
988         object has been bumped because of relocation dependency, avoid
989         duplicates in l_scope.
990         (show_scope): Fix typos.
991         * elf/Makefile: Add rules to build and run reldep6.
992         * elf/reldep6.c: New file.
993         * elf/reldep6mod0.c: New file.
994         * elf/reldep6mod1.c: New file.
995         * elf/reldep6mod2.c: New file.
996         * elf/reldep6mod3.c: New file.
997         * elf/reldep6mod4.c: New file.
999 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
1001         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
1002         sparc64_fixup_plt.
1003         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
1004         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
1005         for non-lazy binding. Fix .plt[32768+] handling.
1006         (elf_machine_plt_value): Don't add addend.
1007         (elf_machine_rela): Call sparc64_fixup_plt instead of
1008         elf_machine_fixup_plt.
1009         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
1010         dynamic linker at 0xfffff800XXXXXXXX.
1012         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
1014 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
1016         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
1018 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
1020         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
1021         declare __cmsg_data field if its size would be bigger than 0.
1022         (CMSG_DATA): Adjust accordingly.
1023         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
1024         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
1025         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
1026         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
1027         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
1028         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
1029         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1031 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
1033         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
1034         * iconvdata/testdata/IBM1160: New file.
1035         * iconvdata/testdata/IBM1160..UTF8: New file.
1036         * iconvdata/testdata/IBM1161: New file.
1037         * iconvdata/testdata/IBM1161..UTF8: New file.
1038         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1040 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
1042         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
1043         UL_SETFSIZE computations better.
1045         * rt/Makefile: Remove use of filter for librt again.
1047         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
1048         UL_SETFSIZE computations better.
1050         * string/Versions: Export __strsep for GLIBC_2.2.5.
1051         * string/bits/string2.h: Define all __STRING_INLINE functions if
1052         _FORCE_INLINES is defined.
1053         Use int instead of char of parameter types.
1054         (__strsep): Don't use __strsep_g.  Don't define it.
1055         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
1056         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
1057         __strcpy_small.
1058         (__stpcpy_a_small): Renamed from __stpcpy_small.
1059         (__strcspn_c1): Don't define if _FORCE_INLINES.
1060         (__strspn_c1): Likewise.
1062 2001-09-22  Ben Collins  <bcollins@debian.org>
1064         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
1065         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
1066         * sysdeps/ia64/bits/sigaction.h: Likewise.
1067         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
1069 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
1071         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
1073 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
1075         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
1077 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
1079         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
1081 2001-09-20  H.J. Lu  <hjl@gnu.org>
1083         * include/dlfcn.h (__RTLD_SPROF): New definiton.
1084         * elf/dl-open.c (dl_open_worker): Return immediately after loading
1085         for __RTLD_SPROF.
1086         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
1087         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
1089 2001-09-20  H.J. Lu  <hjl@gnu.org>
1091         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
1092         don't add 1.
1094 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
1096         * nss/getent.c: Accept -s parameter to overwrite rules in
1097         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
1099         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
1100         with as many ".0" as necessary to form a complete address
1101         inet_network understands.
1103         * nss/getent.c: Various cleanups.  Use simpler and fewer function
1104         calls.
1106 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1108         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
1109         _JMPBUF_UNWINDS.
1110         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
1112 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
1114         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
1115         IBM1161.
1116         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
1117         * iconvdata/ibm1160.c: New file.
1118         * iconvdata/ibm1160.h: New file.
1119         * iconvdata/ibm1161.c: New file.
1120         * iconvdata/ibm1161.h: New file.
1121         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1123 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
1125         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
1126         difference between base address and first PT_LOAD's virtual address,
1127         not the base address.
1129 2001-09-11  Tom Rix  <trix@redhat.com>
1131         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
1132         ifdef for __getopt_clean_environment.
1133         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
1135 2001-09-22  Andreas Jaeger  <aj@suse.de>
1137         * elf/reldep4.c (main): Add proper prototype to fix warning.
1139         * elf/reldep5.c (main): Remove unused variable.
1141         * math/math_private.h: Add prototypes.
1143 2001-09-21  Andreas Jaeger  <aj@suse.de>
1145         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
1146         * sysdeps/x86_64/Dist: New file.
1147         * sysdeps/x86_64/soft-fp/Dist: New file.
1149         * sysdeps/gnu/Dist: Remove eval.c.
1151 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
1153         * malloc/memusage.c (realloc): Don't count already allocated
1154         memory in the sums.
1155         (me): Always use dlsym() to find the real implementations.
1157         * malloc/memusage.sh: Make -n option actually do something.
1159 2001-09-20  Andreas Jaeger  <aj@suse.de>
1161         * elf/elf.h (R_390_NUM): Correct value.
1163         * Versions.def: Add missing versions 2.2.3 for libthread_db and
1164         libpthread.
1166         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
1167         for x86-64, install x86-64 into */lib64.
1169         * shlib-versions: Add x86-64.
1171         * elf/elf.h: Add x86-64 relocations.
1173 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
1175         * po/fr.po: Update from translation team.
1177 2001-09-19  Andreas Jaeger  <aj@suse.de>
1179         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
1180         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
1181         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
1182         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
1183         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
1184         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
1185         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
1186         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
1187         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
1188         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
1189         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
1190         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
1191         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
1192         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
1193         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
1194         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
1195         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
1196         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
1197         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
1198         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
1199         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
1200         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
1201         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
1202         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
1203         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
1204         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
1205         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
1206         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
1207         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
1208         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
1209         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
1210         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
1211         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
1212         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
1213         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
1214         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
1215         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
1216         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
1217         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
1218         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
1219         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
1220         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
1221         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
1222         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
1223         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
1224         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
1225         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
1226         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
1227         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
1228         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
1229         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
1230         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
1231         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
1232         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
1233         * sysdeps/unix/x86_64/sysdep.S: New file.
1234         * sysdeps/unix/x86_64/sysdep.h: New file.
1235         * sysdeps/x86_64/Implies: New file.
1236         * sysdeps/x86_64/Makefile: New file.
1237         * sysdeps/x86_64/Versions: New file.
1238         * sysdeps/x86_64/__longjmp.S: New file.
1239         * sysdeps/x86_64/abort-instr.h: New file.
1240         * sysdeps/x86_64/atomicity.h: New file.
1241         * sysdeps/x86_64/bits/endian.h: New file.
1242         * sysdeps/x86_64/bits/setjmp.h: New file.
1243         * sysdeps/x86_64/bits/string.h: New file.
1244         * sysdeps/x86_64/bp-asm.h: New file.
1245         * sysdeps/x86_64/bsd-_setjmp.S: New file.
1246         * sysdeps/x86_64/bsd-setjmp.S: New file.
1247         * sysdeps/x86_64/dl-machine.h: New file.
1248         * sysdeps/x86_64/elf/initfini.c: New file.
1249         * sysdeps/x86_64/elf/start.S: New file.
1250         * sysdeps/x86_64/ffs.c: New file.
1251         * sysdeps/x86_64/ffsll.c: New file.
1252         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
1253         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
1254         * sysdeps/x86_64/fpu/e_acosl.c: New file.
1255         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
1256         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
1257         * sysdeps/x86_64/fpu/e_expl.c: New file.
1258         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
1259         * sysdeps/x86_64/fpu/e_log10l.S: New file.
1260         * sysdeps/x86_64/fpu/e_log2l.S: New file.
1261         * sysdeps/x86_64/fpu/e_logl.S: New file.
1262         * sysdeps/x86_64/fpu/e_powl.S: New file.
1263         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
1264         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
1265         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
1266         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
1267         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
1268         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
1269         * sysdeps/x86_64/fpu/fegetenv.c: New file.
1270         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
1271         * sysdeps/x86_64/fpu/fegetround.c: New file.
1272         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
1273         * sysdeps/x86_64/fpu/fesetenv.c: New file.
1274         * sysdeps/x86_64/fpu/fesetround.c: New file.
1275         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
1276         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
1277         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
1278         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
1279         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
1280         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
1281         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
1282         * sysdeps/x86_64/fpu/s_atanl.c: New file.
1283         * sysdeps/x86_64/fpu/s_cosl.S: New file.
1284         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
1285         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
1286         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
1287         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
1288         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
1289         * sysdeps/x86_64/fpu/s_logbl.c: New file.
1290         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
1291         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
1292         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
1293         * sysdeps/x86_64/fpu/s_rintl.c: New file.
1294         * sysdeps/x86_64/fpu/s_significandl.c: New file.
1295         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
1296         * sysdeps/x86_64/fpu/s_sinl.S: New file.
1297         * sysdeps/x86_64/fpu/s_tanl.S: New file.
1298         * sysdeps/x86_64/gmp-mparam.h: New file.
1299         * sysdeps/x86_64/hp-timing.c: New file.
1300         * sysdeps/x86_64/hp-timing.h: New file.
1301         * sysdeps/x86_64/htonl.S: New file.
1302         * sysdeps/x86_64/memusage.h: New file.
1303         * sysdeps/x86_64/setjmp.S: New file.
1304         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
1305         * sysdeps/x86_64/stackinfo.h: New file.
1306         * sysdeps/x86_64/sysdep.h: New file.
1307         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
1309         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
1310         L Moshier.
1312 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
1314         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
1315         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
1317 2001-09-18  Andreas Schwab  <schwab@suse.de>
1319         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
1320         list, now that l_scope is a pointer.
1322         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
1323         scope list.
1325 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
1327         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
1328         (elf_machine_rela_relative): Add a missing declaration.
1330 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
1332         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
1333         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
1334         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
1335         ldd-rewrite scripts.
1337 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
1339         * elf/ldd.bash.in: Update copyright message.
1341 2001-09-17  H.J. Lu  <hjl@gnu.org>
1343         * hurd/hurdmalloc.c (bcopy): Removed.
1344         (realloc): Replace bcopy with memcpy.
1345         * hurd/path-lookup.c (file_name_path_scan): Likewise.
1346         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
1347         * sunrpc/rpcinfo.c (pmapdump): Likewise.
1349         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
1350         (gethostbyaddr): Likewise.
1351         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
1353 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
1355         * sysdeps/gnu/eval.c: Removed.
1357 2001-09-18  Andreas Jaeger  <aj@suse.de>
1359         * sysdeps/i386/fpu/s_logbl.S: Move to ...
1360         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
1362         * sysdeps/i386/fpu/s_rintl.S: Move to ...
1363         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
1365         * sysdeps/i386/fpu/s_significandl.S: Move to ...
1366         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
1368 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
1370         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
1371         nrules value.
1373 2001-09-14  H.J. Lu  <hjl@gnu.org>
1375         * sysdeps/mips/fpu/libm-test-ulps: Updated.
1377 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
1379         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
1380         Patch by Florian La Roche <laroche@redhat.com>.
1382         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
1384         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
1385         ETHER_CRC_LEN.
1387 2001-09-14  Andreas Schwab  <schwab@suse.de>
1389         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
1390         Sumner <bls@sgi.com>.
1391         * posix/execlp.c: Likewise.
1393 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
1395         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
1396         is already found earlier in the search scope.
1398 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
1400         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
1401         filter.
1403 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
1405         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
1407 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
1409         * config.h.in: Enforce optimization to be used.
1410         * Makeconfig (preprocess-versions): Define ASSEMBLER.
1411         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
1412         * posix/Makefile (annexc-CFLAGS): Define to -O.
1413         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
1415 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
1417         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
1418         Patch by Stephan Kulow.
1420 2001-09-08  Ben Collins  <bcollins@debian.org>
1422         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
1423         usage of RESOLVE() (r_type, not reloc->r_type).
1425 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
1427         * elf/dl-object.c: Avoid allocating extra memory block for name.
1428         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
1429         allocated separately.
1430         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1432 2001-09-08  H.J. Lu  <hjl@gnu.org>
1434         * po/zh_TW.po: Fix a typo.
1436 2001-09-07  Tom Rix  <trix@redhat.com>
1438         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
1440 2001-08-26  Tom Rix  <trix@redhat.com>
1442         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
1443         command line options.
1444         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
1445         * sysdeps/unix/sysv/aix/start.c: Removed.
1446         * sysdeps/unix/sysv/aix/start-libc.c: New file.
1447         * sysdeps/unix/sysv/aix/init-first.c: New file.
1448         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
1450 2001-09-08  Ben Collins  <bcollins@debian.org>
1452         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
1453         * sysdeps/generic/dl-machine.h: Likewise.
1454         * sysdeps/hppa/dl-fptr.c: Likewise.
1455         * sysdeps/ia64/dl-fptr.c: Likewise.
1456         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
1457         * sysdeps/mips/dl-machine.h: Likewise.
1458         * sysdeps/mips/mips64/dl-machine.h: Likewise.
1459         * sysdeps/powerpc/dl-machine.c: Likewise.
1461 2001-09-07  Ben Collins  <bcollins@debian.org>
1463         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
1465         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
1467 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
1469         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
1470         dependencies if necessary.
1472         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
1473         loaded directly) determine length if l_initfini list by iterating
1474         over its elements.  Minor optimizations.
1475         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
1476         for dependency objects.
1477         If object was already loaded check whether any of the dependencies
1478         is already on the relocation dependency list.  If yes, remove the
1479         latter.  Minor optimizations.
1480         * elf/dl-lookup.c (add_dependency): Add check for self reference of
1481         maps here.  Search l_initfini list only if the object was loaded
1482         directly and not only as a dependency.
1483         (_dl_lookup_symbol): Add relocation dependency also if object
1484         is not in global scope.  Remove test for self-reference here.
1485         (_dl_lookup_versioned_symbol): Likewise.
1486         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
1487         element of first name record.
1488         * elf/loadtest.c: Add some more test to recognize early if an object
1489         wasn't unloaded.
1490         * elf/Makefile: Add rules to build and run reldep5.
1491         * elf/reldep5.c: New file.
1492         * elf/reldepmod5.c: New file.
1493         * elf/reldepmod6.c: New file.
1495         * elf/reldep2.c: Fix typo.
1497 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
1499         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
1500         elements.  Change l_scope to be a pointer only.
1501         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
1502         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
1503         here add searchlist of newly open file to the dependency's scope.
1504         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
1505         only searchlist from its scope.  Free own scope array if necessary.
1506         * elf/Makefile (tests): Add dblload and dblunload now.
1508 2001-09-06  Andreas Jaeger  <aj@suse.de>
1510         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
1511         Stephen L Moshier.
1513 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
1515         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
1516         they both fail.
1517         * elf/dblload.c: New file.
1518         * elf/dblloadmod1.c: New file.
1519         * elf/dblloadmod2.c: New file.
1520         * elf/dblloadmod3.c: New file.
1521         * elf/dblunload.c: New file.
1523 2001-09-04  Richard Henderson  <rth@redhat.com>
1525         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
1526         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
1528 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
1530         Correct very misleading message for error in failed runtime relocation.
1531         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
1532         place of the error.
1533         (_dl_signal_cerror): Likewise.
1534         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
1535         * elf/dl-close.c: Likewise.
1536         * elf/dl-deps.c: Likewise.
1537         * elf/dl-load.c: Likewise.
1538         * elf/dl-lookup.c: Likewise.
1539         * elf/dl-open.c: Likewise.
1540         * elf/dl-reloc.c: Likewise.
1541         * elf/dl-sym.c: Likewise.
1542         * elf/dl-version.c: Likewise.
1543         * sysdeps/generic/dl-sysdep.c: Likewise.
1545 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
1547         * iconv/strtab.c (strtabinit): Initialize null Strent.
1548         (newstring): Move len == 0 handling...
1549         (strtabadd): ...here.
1550         If len == 1, return null Strent.
1551         When inserting a suffix of an existing string, check if
1552         it is not equal to some suffix already recorded.
1553         Copy left and right members over if adding longer string.
1555 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
1557         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
1559         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
1560         (__syscall_gethostname): Add prototype.
1562 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
1564         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
1566 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
1568         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
1570 2001-08-27  Roland McGrath  <roland@frob.com>
1572         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
1573         short, copy that much into NAME anyway before returning error.
1575 2001-09-01  Richard Henderson  <rth@redhat.com>
1577         * sysdeps/alpha/elf/Dist: Remove file.
1578         * sysdeps/alpha/elf/Makefile: Remove file.
1579         * sysdeps/alpha/elf/crtbegin.S: Remove file.
1580         * sysdeps/alpha/elf/crtend.S: Remove file.
1581         * sysdeps/alpha/elf/initfini.c: New file.
1583 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
1585         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
1586         * iconv/tst-iconv3.c: Likewise.
1588 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
1590         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
1592 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
1594         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
1595         export it.
1596         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
1597         * iconv/iconv_prog.c (insert_cache): New function.
1598         (print_known_names): If cache is used call insert_cache to use the
1599         information from the cache [PR libc/2509].
1601 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
1603         * time/strptime.c (strptime_internal): Recognize 'l' format and
1604         handle it like 'I' for symmetry with strftime.
1606 2001-08-31  Richard Henderson  <rth@redhat.com>
1608         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
1609         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
1610         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
1611         (print_statistics): Make scalar unsigned long long.
1612         * sysdeps/alpha/hp-timing.h: New file.
1614 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
1616         * stdio-common/perror.c (perror): Save errno early, pass it
1617         down to perror_internal.
1618         (perror_internal): Add errnum argument.
1620 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
1622         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
1623         Don't add old memory content for R_ALPHA_REFQUAD.
1625 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
1627         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
1628         memory correctly.
1630         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
1631         instead of open, __close instead of close, __getpagesize instead
1632         of getpagesize.
1634         * string/argz-stringify.c (__argz_stringify): Use __strnlen
1635         instead of strnlen.
1636         * include/string.h (strndupa): Redefine here to use __strnlen
1637         instead of strnlen.
1638         * string/strndup.c (__strndup): Use __strnlen not strnlen.
1640         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
1641         connected).
1643 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
1645         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
1646         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
1647         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
1648         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
1649         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
1650         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
1651         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
1653 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
1655         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
1657 2001-08-30  Andreas Jaeger  <aj@suse.de>
1659         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
1660         contributed Stephen L Moshier.
1662 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
1664         * sunrpc/etc.rpc (sgi_fam): Add.
1666 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
1668         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
1670 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
1672         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
1673         first is from a previous call.
1674         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
1676 2001-08-29  Andreas Schwab  <schwab@suse.de>
1678         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
1680 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1682         * config.make.in (INSTALL_SCRIPT): Define.
1683         * Makeconfig (INSTALL_SCRIPT): Define.
1684         * Makerules (do-install-script): New macro to install scripts using
1685         INSTALL_SCRIPT.
1686         (install-bin-script): New rule to install scripts with
1687         do-install-script.
1688         (install-bin-script-nosubdir): New rule.
1689         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
1690         (distinfo-vars): Add $(install-bin-script).
1691         * Rules (others): Likewise.
1692         * Makefile (glibcbug): Install with install-bin-script.
1693         * debug/Makefile (xtrace): Likewise.
1694         (catchsegv): Likewise.
1695         * elf/Makefile (ldd): Likewise.
1696         * malloc/Makefile (mtrace): Likewise.
1697         * timezone/Makefile (tzselect): Likewise.
1699 2001-08-29  H.J. Lu  <hjl@gnu.org>
1701         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
1702         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
1703         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
1705 2001-08-29  Andreas Schwab  <schwab@suse.de>
1707         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
1709 2001-08-28  H.J. Lu  <hjl@gnu.org>
1711         * Makeconfig (combreloc-LDFLAGS): New variable.
1712         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
1713         * config.make.in (have-z-combreloc): New variable.
1714         * configure.in: Substitute libc_cv_z_combreloc.
1716 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
1718         * po/sv.po: Update from translation team.
1719         * po/fr.po: Likewise.
1720         * po/da.po: Likewise.
1722 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1724         * Makerules: Fix a typo: MD% -> MD5.
1726 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
1728         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
1729         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
1731 2001-08-28  Andreas Jaeger  <aj@suse.de>
1733         * manual/libc-texinfo.sh: Add entry about free manuals.
1735         * manual/contrib.texi (Contributors): Fix cross reference.
1737         * manual/libc.texinfo (Copying): Include freemanuals.
1739         * manual/Makefile (appendices): Add freemanuals.
1741         * manual/freemanuals.texi: New file.
1742         Patch by Brian Youmans <3diff@gnu.org>.
1744         * manual/libm-err-tab.pl: Pretty print more platforms, print a
1745         smaller table.
1747         * manual/math.texi (Errors in Math Functions): Fix grammar, start
1748         table on separate page.
1749         Patch by Brian Youmans <3diff@gnu.org>.
1751 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
1753         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
1754         the connection went down after we first used it try to connect
1755         again and resend the message before printing to the console.
1756         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
1758 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
1760         * string/tst-strlen.c (main): Test strnlen (, -1) too.
1761         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
1762         bit set.
1764 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
1766         * iconv/strtab.c (searchstring): Use correct length for comparison.
1767         (strtabadd): Account total size correct if new string has old string as
1768         substring.
1770 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
1772         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
1774 2001-08-27  Andreas Jaeger  <aj@suse.de>
1776         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
1778         * math/libm-test.inc (j0_test): Add extra tests.
1779         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
1780         not x, in Hankel approximation.
1781         Patches by Stephen L Moshier.
1783 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
1785         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
1786         link_map.
1788         * configure.in: Fix test for .rela.dyn section.
1790         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
1792 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
1794         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
1795         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
1796         Pass type_class to _dl_lookup_*.
1797         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
1798         Pass around just type_class instead of noexec, noplt pair.
1799         (_dl_lookup_versioned_symbol): Likewise.
1800         (_dl_lookup_symbol_skip): Pass around just type_class instead of
1801         noexec, noplt pair.
1802         (_dl_lookup_versioned_symbol_skip): Likewise.
1803         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
1804         * elf/do-lookup.h (do_lookup): Likewise.
1805         * include/link.h (struct link_map): Replace noexec and noplt fields
1806         in l_lookup_cache with type_class field.
1807         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
1808         ELF_RTYPE_CLASS_COPY): Define.
1809         Adjust prototypes for _dl_lookup_symbol and
1810         _dl_lookup_versioned_symbol.
1811         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
1812         elf_machine_lookup_noexec_p): Remove.
1813         (elf_machine_type_class): Define.
1814         * sysdeps/arm/dl-machine.h: Likewise.
1815         * sysdeps/hppa/dl-machine.h: Likewise.
1816         * sysdeps/cris/dl-machine.h: Likewise.
1817         * sysdeps/i386/dl-machine.h: Likewise.
1818         * sysdeps/ia64/dl-machine.h: Likewise.
1819         * sysdeps/m68k/dl-machine.h: Likewise.
1820         * sysdeps/mips/mips64/dl-machine.h: Likewise.
1821         * sysdeps/mips/dl-machine.h: Likewise.
1822         * sysdeps/powerpc/dl-machine.h: Likewise.
1823         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1824         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1825         * sysdeps/sh/dl-machine.h: Likewise.
1826         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1827         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1829 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
1831         * manual/message.texi (Advanced gettext functions): Change
1832         description of plural forms for Slovak.
1833         Reported by Marcel Telka <marcel@telka.sk>.
1835         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
1836         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
1838 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
1840         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
1841         typo.  Patch by Florian La Roche <laroche@redhat.com>.
1843 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
1845         * include/link.h (struct link_map): Add l_lookup_cache element.
1846         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
1847         (RESOLVE_MAP): Likewise.
1848         (_dl_relocate_object): Remove cache initialization.
1849         * elf/dl-lookup.c: Rip out cache handling code.
1850         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
1851         declarations.
1853         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
1854         remove some __builtin_expect.
1855         (_dl_lookup_versioned_symbol): Likewise.
1857         * config.h.in: Add HAVE_Z_COMBRELOC.
1858         * configure.in: Add test for -z combreloc.
1860         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
1861         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
1862         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
1863         case to almost no code.
1865 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
1867         * po/tr.po: Update from translation team.
1869 2001-08-24  Andreas Jaeger  <aj@suse.de>
1871         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
1872         make clean works.
1874 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
1876         * elf/rtld.c (print_statistics): Printf % after percent values.
1877         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
1879         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
1880         don't have to compute the hash value and initialize current_value.
1881         Move reference_name variable to where it is needed.
1882         (_dl_lookup_versioned_symbol): Likewise.
1884 2001-08-24  Roland McGrath  <roland@frob.com>
1886         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
1887         Just test that strerror returns non-null for a few errno codes.
1889 2001-08-23  Roland McGrath  <roland@frob.com>
1891         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
1892         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
1894         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
1896         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
1897         __mach_reply_port.
1899 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
1901         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
1902         returns NULL.
1904         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
1905         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
1906         doesn't do it.
1907         * elf/rtld.c: Include <sys/param.h>.
1908         * elf/dl-reloc.c: Likewise.
1910 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1912         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
1913         empty to prevent junk from being generated.
1914         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
1916 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
1918         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
1919         records.  Rename endrel to relative, initialize it to r, and use it
1920         in elf_machine_rel_relative calls.  Point r after relative relocs.
1922 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
1924         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
1925         of R_386_NONE.
1927 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
1929         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
1930         necessary.  Undefine newly defined macros at the end.
1931         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
1932         Rename from elf_machine_rel_relative.
1933         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
1934         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
1935         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
1936         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
1937         Likewise.
1938         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
1939         Likewise.
1940         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
1941         Fix argument types.
1942         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
1943         Fix argument types.
1944         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
1945         Likewise.  Fix argument types.
1946         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
1947         Likewise.  Fix argument types.
1948         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
1949         Fix argument types.
1950         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
1951         ElfW(Rel) in argument.
1952         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
1953         function.
1955 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
1957         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
1959 2001-08-24  Andreas Jaeger  <aj@suse.de>
1961         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
1962         Stephen L Moshier <moshier@mediaone.net>.
1964 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
1966         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
1967         first if RELCOUNT is set.
1969         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
1970         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
1971         elf_machine_rel_relative.
1972         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
1973         Minor optimizations.
1974         * sysdeps/arm/dl-machine.h: Likewise.
1975         * sysdeps/cris/dl-machine.h: Likewise.
1976         * sysdeps/hppa/dl-machine.h: Likewise.
1977         * sysdeps/i386/dl-machine.h: Likewise.
1978         * sysdeps/ia64/dl-machine.h: Likewise.
1979         * sysdeps/m68k/dl-machine.h: Likewise.
1980         * sysdeps/mips/dl-machine.h: Likewise.
1981         * sysdeps/powerpc/dl-machine.h: Likewise.
1982         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1983         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1984         * sysdeps/sh/dl-machine.h: Likewise.
1985         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1986         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1988 2001-08-23  Roland McGrath  <roland@frob.com>
1990         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
1992         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
1993         sysdeps/mach version.  Implement counting ("recursive") mutexes
1994         on top of cthreads mutexes.
1995         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
1997         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
1998         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
1999         (__libc_cleanup_region_start, __libc_cleanup_region_end,
2000         __libc_clean_end): Define these to call the cleanup function after
2001         normal exit when they're supposed to.
2003         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
2004         Take new first arg DOIT, a boolean saying whether to really install
2005         any cleanup handler.
2006         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
2007         (__libc_cleanup_end): Likewise.
2008         * sysdeps/generic/bits/libc-lock.h: Same changes.
2009         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
2010         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
2011         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
2012         Likewise.
2013         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
2014         * sysdeps/generic/bits/stdio-lock.h
2015         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
2017 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2019         * elf/ldconfig.c (search_dir): Remove stale symlinks.
2021 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2023         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
2024         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
2025         lookups in cache.
2026         (_dl_lookup_versioned_symbol): Likewise.
2027         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
2028         relocation lookup.
2029         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
2030         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
2031         (lookup_cache, lookup_cache_versioned): Add declarations.
2033 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
2035         * stdlib/tst-random.c (main): Swap parameters in fail call.
2036         Patch by Pete Bevin <pete@petebevin.com>.
2038 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2040         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
2042 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
2044         * malloc/obstack.c: Indent preprocessor directives.
2045         Patch by Jim Meyering <meyering@ascend.com>.
2047         * po/ja.po: Update from translation team.
2049 2001-08-23  Roland McGrath  <roland@frob.com>
2051         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
2053         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
2054         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
2056 2001-08-22  Roland McGrath  <roland@frob.com>
2058         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
2059         __libc_lock_define_recursive.
2060         * elf/dl-open.c: Don't declare it here any more.
2061         * elf/dl-close.c: Likewise.
2062         * elf/dl-lookup.c: Likewise.
2063         * elf/dl-iteratephdr.c: Likewise.
2064         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
2065         __libc_lock_unlock_recursive.
2066         * elf/dl-close.c (_dl_close): Likewise
2067         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
2068         * elf/dl-open.c (_dl_open): Likewise
2070         * sysdeps/generic/bits/libc-lock.h
2071         (__libc_lock_define_recursive): New macro.
2072         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
2073         (_IO_lock_lock): Use __libc_lock_lock_recursive.
2074         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
2076         * conform/conformtest.pl (checknamespace): Sort the output list.
2078         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
2079         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
2080         definitions conditional on [__USE_XOPEN].
2082         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
2083         these unconditionally, not only use [__USE_BSD], so as to match
2084         the sysdeps/unix/sysv/linux files.
2086 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
2088         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
2089         avoid warnings.
2091         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
2092         DL_LOOKUP_ADDRESS.
2094 2001-08-22  Roland McGrath  <roland@frob.com>
2096         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
2097         conditionalization of sa_handler/sa_sigaction member types to
2098         match the sysdeps/unix/sysv/linux file.
2100 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
2102         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
2103         symbol sizes a bit better.
2105         * sysdeps/ia64/strncpy.S: Complete rewrite.
2106         Contributed by Jakub Jelinek <jakub@redhat.com>.
2108         * string/stratcliff.c (main): Add strncpy test.
2110 2001-08-22  Roland McGrath  <roland@frob.com>
2112         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
2113         and don't declare unsetenv or _environ directly.
2114         (unsetenv): Return int, not void.  Use __environ instead of _environ.
2116 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
2118         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
2119         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
2120         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
2121         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
2122         test for cmsg struct size.
2124 2001-04-23  Paul Eggert  <eggert@twinsun.com>
2126         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
2127         Rename __argc to ___argc in prototypes to avoid compatibility
2128         problems with systems that reserve the identifier "__argc".
2129         Similarly for __argv.
2131 2001-08-21  Roland McGrath  <roland@frob.com>
2133         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
2135         * mach/Makefile (tests): Removed.
2136         * mach/hello.c: File removed.
2138 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
2140         * po/sv.po: Update from translation team.
2142         * stdio-common/vfscanf.c: Fix handling of %l[].
2143         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
2145         * libio/Makefile (tests): Add tst-sscanf.
2146         * libio/tst-sscanf.c: New file.
2148         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
2149         * malloc/mtrace.c (tr_where): dli_sname always points to a
2150         non-empty string if != NULL.
2151         Reported by Tim Janik <timj@gtk.org>.
2153 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
2155         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
2156         buf.  Free resources on failure.
2157         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
2158         (makefd_xprt): Likewise.
2159         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
2160         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
2161         * sunrpc/auth_unix.c (authunix_create): Likewise.
2163 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
2165         * string/strnlen.c: Remove.
2166         * sysdeps/generic/strnlen.c: New file.
2167         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
2169 2001-08-21  Roland McGrath  <roland@frob.com>
2171         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
2172         as a macro, not an extern inline function.
2174         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
2175         * Versions.def (libc): Add GLIBC_2.2.5 set.
2176         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
2177         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
2179 2001-08-20  Roland McGrath  <roland@frob.com>
2181         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
2182         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
2184 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
2186         * string/bits/string2.h: Remove strnlen optimization here.
2187         * sysdeps/i386/i486/bits/string.h: Add it here.
2189 2001-08-21  Wolfram Gloger  <wg@malloc.de>
2191         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
2193 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
2195         * po/gl.po: Update from translation team.
2197 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
2199         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
2200         * misc/err.c (convert_and_print): Likewise.
2202         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
2203         function calls.
2205 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2207         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
2208         change of the gregset_t type.
2209         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
2211 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2213         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
2215 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
2217         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
2219         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
2221 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
2223         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
2224         before calling the cthreads initialization code.
2226 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
2228         * argp/argp-help.c: Fix two problems introduced in last change.
2230         * include/dirent.h: Include <dirstream.h> first.
2232 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
2234         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
2236         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
2237         * sunrpc/xdr_rec.c: Likewise.
2238         * sunrpc/xdr_mem.c: Likewise.
2239         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
2240         * sunrpc/rpc_cmsg.c: Likewise.
2241         * sunrpc/getrpcport.c (getrpcport): Likewise.
2242         * sunrpc/clnt_simp.c (callrpc): Likewise.
2243         * sunrpc/clnt_gen.c (clnt_create): Likewise.
2244         * string/envz.c: Likewise.
2246         * po/ko.po: Update from translation team.
2248         * argp/argp-help.c: Handle wide oriented stderr stream.
2250 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
2252         * sysdeps/generic/strtol.c: Little optimizations.  Add some
2253         __builtin_expect.
2255         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
2257         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
2258         * wcsmbs/wcwidth.c (wcwdith): Likewise.
2259         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
2261         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
2263         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
2265         * time/time.h (struct timespec): Use __time_t for tv_sec element.
2267         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
2268         wchar_t for function declarations and defintions.
2270         * misc/sys/select.h: Define __need_time_t before including <time.h>.
2271         Define suseconds_t if it hasn't happened yet.
2273         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
2275         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
2277         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
2278         <stddef.h>.
2280         * conform/data/stddef.h-data: Remove wint_t.
2282         * conform/conformtest.pl: Change namespace test to take #undef
2283         lines into account.
2285         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
2287         * conform/data/sys/socket.h-data: Add sockatmark.
2289 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
2291         * io/fts.c: Update from recent BSD source.
2293 2001-08-17  Roland McGrath  <roland@frob.com>
2295         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
2296         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
2297         Likewise.
2299 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
2301         * locale/duplocale.c (__duplocale): Also initialize the special
2302         __ctype_* elements.
2304         * conform/data/netdb.h-data: Adjust gai_strerror return type.
2306 2001-08-17  Andreas Jaeger  <aj@suse.de>
2308         * misc/getpass.c: Include wchar.h for prototypes.
2309         * malloc/obstack.c: Likewise.
2311 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
2313         * sunrpc/svc_simple.c (universal): Use __write instead of write.
2315         * wcsmbs/wcscoll.c: Also define __wcscoll.
2316         * include/wchar.h: Declare __wcscoll.
2318         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
2319         * libio/vwprintf.c: Likewise.
2320         * libio/wprintf.c: Likewise.
2322         * iconv/gconv_cache.c: Use __munmap instead of munmap.
2324 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
2326         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
2327         instead of mbrtowc.
2328         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
2329         wcslen, and __wcscoll instead of wcscoll.
2331         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
2333         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
2334         __getuid instead of getuid.
2336         * stdio-common/perror.c (perror): Use __close instead of close.
2337         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
2338         * libio/freopen.c (freopen): Likewise.
2339         * libio/freopen64.c (freopen64): Likewise.
2341         * libio/tst-ungetwc2.c (main): Define str const.
2343         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
2344         * libio/fwprintf.c: Also define __fwprintf.
2345         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
2346         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
2347         * assert/assert-perr.c: Likewise.
2348         * assert/assert.c: Likewise.
2349         * gmon/gmon.c: Likewise.
2350         * inet/rcmd.c: Likewise.
2351         * malloc/obstack.c: Likewise.
2352         * misc/err.c: Likewise.
2353         * misc/error.c: Likewise.
2354         * misc/getpass.c: Likewise.
2355         * posix/getopt.c: Likewise.
2356         * resolv/res_hconf.c: Likewise.
2357         * stdio-common/perror.c: Likewise.
2358         * stdio-common/psignal.c: Likewise.
2359         * stdlib/fmtmsg.c: Likewise.
2360         * sunrpc/auth_unix.c: Likewise.
2361         * sunrpc/clnt_perr.c: Likewise.
2362         * sunrpc/clnt_tcp.c: Likewise.
2363         * sunrpc/clnt_udp.c: Likewise.
2364         * sunrpc/clnt_unix.c: Likewise.
2365         * sunrpc/svc_simple.c: Likewise.
2366         * sunrpc/svc_tcp.c: Likewise.
2367         * sunrpc/svc_udp.c: Likewise.
2368         * sunrpc/svc_unix.c: Likewise.
2369         * sunrpc/xdr.c: Likewise.
2370         * sunrpc/xdr_array.c: Likewise.
2371         * sunrpc/xdr_rec.c: Likewise.
2372         * sunrpc/xdr_ref.c: Likewise.
2373         * sysdeps/generic/wordexp.c: Likewise.
2375         * po/it.po: Update from translation team.
2377         * misc/err.c: Handle wide oriented stderr stream.
2379 2001-08-14  Tom Rix  <trix@redhat.com>
2381         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
2382         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
2384 2001-08-13  Tom Rix  <trix@redhat.com>
2386         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
2387         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
2388         and __intptr_t.
2390 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2392         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
2393         Store the access registers to the ucontext structure.
2394         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
2395         Likewise.
2397         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
2398         Load the access registers from the ucontext structure.
2399         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
2400         Likewise.
2402         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
2403         offsets to the new ucontext layout.
2404         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
2406         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
2407         of the ucontext structure.
2408         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
2410 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
2412         * misc/error.c (error): Handle wide oriented stderr stream correctly.
2413         (error_at_line): Likewise.
2415         * stdio-common/perror.c (perror): Implement according to standard.
2416         The stream orientation must not be changed if the stream was not
2417         oriented before the call.
2418         * stdio-common/Makefile (tests): Add tst-perror.
2419         * stdio-common/tst-perror.c: New file.
2422 See ChangeLog.12 for earlier changes.