1 2001-12-07 Andreas Schwab <schwab@suse.de>
3 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
5 2001-12-06 Geoff Keating <geoffk@redhat.com>
7 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
8 save/restore functions here.
9 (libm-support): Don't define these functions here.
10 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
12 * sysdeps/powerpc/fe_nomask.c: Move to...
13 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
14 * sysdeps/powerpc/fprrest.S: Move to...
15 * sysdeps/powerpc/fpu/fprrest.S: ... here.
16 * sysdeps/powerpc/fprsave.S: Move to...
17 * sysdeps/powerpc/fpu/fprsave.S: ... here.
19 2001-12-06 Ulrich Drepper <drepper@redhat.com>
21 * sysdeps/unix/sysv/linux/opensock.c: New file.
23 2001-12-06 Geoff Keating <geoffk@redhat.com>
25 * config.make.in (with-fp): Define from configure.
26 * configure.in: Substitute with_fp.
27 * configure: Regenerate.
28 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
29 specified, and don't change FPU environment.
31 2001-12-06 Ulrich Drepper <drepper@redhat.com>
33 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
34 * assert/assert.c: Check result of __asprintf call and don't use
36 * assert/assert-perr.c: Likewise.
37 * inet/rcmd.c: Likewise.
38 * locale/programs/localedef.c (main): Check result of
39 construct_output_path and exit if it failed.
40 (construct_output_path): Check result of asprintf and mkdir calls and
42 * posix/getopt.c: Check result of __asprintf calls and fail if
44 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
46 2001-12-05 Ulrich Drepper <drepper@redhat.com>
48 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
50 * sysdeps/generic/strncase.c: Likewise.
51 * string/tester.c: Add tests for strcasecmp and strncasecmp.
53 2001-12-05 Geoff Keating <geoffk@redhat.com>
55 * scripts/cpp: Test the exit status from 'type', not 'awk'.
57 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
58 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
59 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
60 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
61 * sysdeps/powerpc/fclrexcpt.c: Move to...
62 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
63 * sysdeps/powerpc/fpu_control.h: Move to...
64 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
66 2001-12-05 Ulrich Drepper <drepper@redhat.com>
68 * iconvdata/ibm1129.h: Remove duplicate mappings.
69 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
70 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
71 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
73 * timezone/zic.c: Fix handling of turnaround times.
74 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
76 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
78 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
81 2001-12-05 Ulrich Drepper <drepper@redhat.com>
83 * posix/regex.c: For use outside glibc defined bounded pointer
84 macros here. Patch by Jim Meyering <jim@meyering.net>.
86 * iconvdata/Makefile (modules): Add TCVN5712-1.
87 * iconvdata/TESTS: Add TCVN5712-1.
88 * iconvdata/gconv-modules: Likewise.
89 * iconvdata/tcvn5712-1.c: New file.
90 * iconvdata/testdata/TCVN-5712: New file.
91 * iconvdata/testdata/TCVN-5712..UTF8: New file.
93 2001-12-04 Ulrich Drepper <drepper@redhat.com>
95 * iconvdata/cp1258.c: Optimize conversion from UCS4.
97 2001-12-02 Roland McGrath <roland@frob.com>
99 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
101 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
102 Reported by Jeff Bailey <jbailey@nisa.net>.
104 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
105 Reported by Jeff Bailey <jbailey@nisa.net>.
107 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
108 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
109 Reported by Jeff Bailey <jbailey@nisa.net>.
111 2001-12-01 Roland McGrath <roland@frob.com>
113 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
114 missing backslash in test arguments.
115 * sysdeps/mach/hurd/configure: Regenerated.
117 2001-11-26 Roland McGrath <roland@frob.com>
119 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
120 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
122 2001-11-30 Ulrich Drepper <drepper@redhat.com>
124 * iconvdata/Makefile (modules): Add ARMSCII-8.
125 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
126 * iconvdata/armscii-8.c: New file.
128 2001-11-29 Jakub Jelinek <jakub@redhat.com>
130 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
131 don't match, fix {{a,b},c} globbing, clean up.
132 Patch by Flavio Veloso <flaviovs@magnux.com>.
133 * posix/globtest.sh: Add new tests.
135 2001-11-29 Andreas Jaeger <aj@suse.de>
137 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
138 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
140 * sysdeps/generic/abort.c: Include libioP.h for
141 _IO_flush_all_lockp prototype.
143 2001-11-29 Ulrich Drepper <drepper@redhat.com>
145 * posix/regex.h: Define __restrict_arr correctly.
147 2001-11-28 Ulrich Drepper <drepper@redhat.com>
149 * iconvdata/ibm1163.c: New file.
150 * iconvdata/ibm1163.h: New file.
151 * iconvdata/ibm1164.c: New file.
152 * iconvdata/ibm1164.h: New file.
153 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
154 * iconvdata/Makefile: Likewise.
155 * iconvdata/testdata/IBM1163: New file.
156 * iconvdata/testdata/IBM1163..UTF8: New file.
157 * iconvdata/testdata/IBM1164: New file.
158 * iconvdata/testdata/IBM1164..UTF8: New file.
159 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
161 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
162 * iconvdata/ibm1124.h: Likewise.
163 * iconvdata/ibm1132.h: Likewise.
164 * iconvdata/ibm1133.h: Likewise.
165 * iconvdata/ibm1160.h: Likewise.
166 * iconvdata/ibm1161.h: Likewise.
167 * iconvdata/ibm1162.h: Likewise.
168 * iconvdata/ibm856.h: Likewise.
169 * iconvdata/ibm922.h: Likewise.
170 * iconvdata/ibm930.h: Likewise.
171 * iconvdata/ibm932.h: Likewise.
172 * iconvdata/ibm933.h: Likewise.
173 * iconvdata/ibm935.h: Likewise.
174 * iconvdata/ibm937.h: Likewise.
175 * iconvdata/ibm939.h: Likewise.
176 * iconvdata/ibm943.h: Likewise.
177 * iconvdata/ibm930.c: Pretty printing.
178 * iconvdata/ibm937.c: Avoid access accross array boundary.
180 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
181 the current locale's codeset.
182 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
184 * iconv/iconv_prog.c: Pass empty strings as default value for to-
185 and from-charset. Don't determine locale's charset here.
187 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
188 as the old _IO_flush_all but lock only if parameter is nonzero.
189 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
190 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
191 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
192 if libio is used [PR libc/2575].
194 2001-11-28 Jakub Jelinek <jakub@redhat.com>
196 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
197 __signbitl): Only define for ISO C99.
199 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
201 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
202 herrnop to NETDB_INTERNAL if we run out of buffer space.
204 2001-11-28 Ulrich Drepper <drepper@redhat.com>
206 * nss/nss_files/files-XXX.c (internal_getent): Correct input
207 overflow test for platforms with signed char.
208 Reported by Andrew Haley <aph@cambridge.redhat.com>.
210 2001-11-28 Bruno Haible <bruno@clisp.org>
212 * locale/programs/simple-hash.c (lookup_2): Remove function.
213 (insert_entry_2): Call lookup instead of lookup_2.
215 2001-03-04 Bruno Haible <bruno@clisp.org>
217 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
219 2001-10-31 Bruno Haible <bruno@clisp.org>
221 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
223 2001-03-21 Bruno Haible <bruno@clisp.org>
225 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
226 chokes on empty macro arguments.
227 * intl/plural.y: Add #pragma for alloca on AIX 3.
229 2001-11-27 Ulrich Drepper <drepper@redhat.com>
231 * intl/dcigettext.c (guess_category_value): Only implement for
232 glibc. Otherwise rely on function _nl_locale_name which isn't
233 present in the glibc sources.
235 2001-09-24 Bruno Haible <bruno@clisp.org>
237 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
238 transliteration when building on a glibc system but outside glibc.
240 2001-09-22 Bruno Haible <bruno@clisp.org>
242 * intl/plural-eval.c: New file, extracted from dcigettext.c.
243 * intl/dcigettext.c (plural_eval): Remove function, moved to
245 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
246 Include plural-eval.c.
248 2001-09-22 Bruno Haible <bruno@clisp.org>
250 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
251 don't start with a digit; nplurals must be positive.
253 2001-09-02 Bruno Haible <bruno@clisp.org>
255 * intl/plural-exp.h: New file, extracted from gettextP.h.
256 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
257 * intl/gettextP.h (struct expression, struct parse_args,
258 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
259 * intl/loadmsgcat.c: Include plural-exp.h.
260 (PLURAL_PARSE): Move macro to plural-exp.h.
261 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
263 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
264 EXTRACT_PLURAL_EXPRESSION.
265 (_nl_unload_domain): Update.
266 * intl/dcigettext.c: Include plural-exp.h.
267 * intl/plural.y: Include plural-exp.h, not gettextP.h.
268 (FREE_EXPRESSION): Move macro to plural-exp.h.
269 * intl/Makefile (routines): Add plural-exp.
270 (distribute): Add plural-exp.h.
272 2001-07-28 Bruno Haible <bruno@clisp.org>
274 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
275 isdigit, tolower argument to 'unsigned char'.
276 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
278 * intl/localealias.c (read_alias_file): Cast isspace argument to
281 2001-10-20 Bruno Haible <bruno@clisp.org>
283 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
285 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
286 with the variable 'index' in plural_lookup.
287 * intl/l10nflist.c (strchr): Likewise.
288 * intl/localealias.c (strchr): Likewise.
290 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
291 * intl/bindtextdom.c: Likewise.
292 * intl/dcigettext.c: Likewise.
293 * intl/dgettext.c: Likewise.
294 * intl/dngettext.c: Likewise.
295 * intl/explodename.c: Likewise.
296 * intl/finddomain.c: Likewise.
297 * intl/gettext.c: Likewise.
298 * intl/l10nflist.c: Likewise.
299 * intl/loadmsgcat.c: Likewise.
300 * intl/localealias.c: Likewise.
301 * intl/ngettext.c: Likewise.
302 * intl/textdomain.c: Likewise.
303 * intl/gettext.h: Assume <limits.h> exists.
305 2001-11-27 Ulrich Drepper <drepper@redhat.com>
307 * stdio-common/Makefile (tests): Add scanf11.
308 * stdio-common/scanf11.c: New file.
310 2001-11-26 Ulrich Drepper <drepper@redhat.com>
312 * version.h (RELEASE): Define as development.
313 (VERSION): Set to 2.2.90.
315 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
317 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
318 * nis/nss_nis/nis-grp.c: Likewise.
319 * nis/nss_nisplus/nisplus-grp.c: Likewise.
321 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
322 * nis/nss_nis/nis-pwd.c: Likewise.
323 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
325 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
326 * nis/nss_nisplus/nisplus-parser.c: Likewise.
327 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
329 * nscd/grpcache.c: Use strtoul instead of atol.
330 * nscd/pwdcache.c: Likewise.
331 * nss/getent.c: Likewise.
333 2001-11-27 Paul Eggert <eggert@twinsun.com>
335 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
336 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
338 2001-11-19 Bruno Haible <bruno@clisp.org>
340 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
342 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
343 improves the quality of the hash function, especially for short
346 2001-11-26 Ulrich Drepper <drepper@redhat.com>
348 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
349 are found call conv_error and not input_error [PR libc/2669].
351 * math/bits/mathcalls.h: Mark ceil and floor as const.
352 Reported by David Mosberger.
354 2001-11-21 Jim Meyering <meyering@lucent.com>
356 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
357 Define to be __-prefixed.
358 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
360 2001-11-26 Andreas Jaeger <aj@suse.de>
362 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
365 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
367 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
370 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
371 unused variables. Fix threshold for returning 1.0.
373 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
376 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
377 remove unused variables.
379 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
381 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
382 include local math header files.
384 2001-11-22 Andreas Jaeger <aj@suse.de>
386 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
389 2001-11-21 Andreas Jaeger <aj@suse.de>
391 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
393 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
396 2001-11-15 Andreas Jaeger <aj@suse.de>
398 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
399 compilers that support it.
401 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
402 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
403 * stdlib/stdlib.h: Likewise.
405 2001-11-17 Ulrich Drepper <drepper@redhat.com>
407 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
408 statement with gotos.
409 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
411 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
413 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
415 2001-11-15 Ulrich Drepper <drepper@redhat.com>
417 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
419 2001-10-02 Jakub Jelinek <jakub@redhat.com>
420 H.J. Lu <hjl@gnu.org>
422 * Versions.def (libc): Add GCC_3.0.
423 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
424 if gcc supports this flag.
425 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
426 (gcc3): Allow glibc to be compiled with gcc 3.x.
427 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
428 * config.make.in (static-libgcc, unwind-find-fde): Add.
429 * Makerules (build-shlib-helper, build-module-helper): Use it.
430 * scripts/versions.awk: Make sure GLIBC_ versions come first.
431 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
433 (_fini): Call __deregister_frame_info_bases if
434 __register_frame_info_bases was used to register.
435 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
437 (__register_frame_info_bases, __register_frame_info_table_bases,
438 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
439 * elf/Makefile (routines): Add unwind-dw2-fde.
440 (shared-only-routines): Add unwind-dw2-fde.
441 * sysdeps/alpha/gccframe.h: New file.
442 * sysdeps/arm/gccframe.h: New file.
443 * sysdeps/generic/framestate.c: New file.
444 * sysdeps/generic/dwarf2.h: New file.
445 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
446 * sysdeps/generic/unwind-dw2-fde.c: New file.
447 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
448 * sysdeps/generic/unwind-dw2-fde.h: New file.
449 * sysdeps/generic/unwind-dw2.c: New file.
450 * sysdeps/generic/unwind-pe.h: New file.
451 * sysdeps/generic/unwind.h: New file.
452 * sysdeps/hppa/gccframe.h: New file.
453 * sysdeps/i386/gccframe.h: New file.
454 * sysdeps/m68k/gccframe.h: New file.
455 * sysdeps/mips/gccframe.h: New file.
456 * sysdeps/powerpc/gccframe.h: New file.
457 * sysdeps/s390/gccframe.h: New file.
458 * sysdeps/sh/gccframe.h: New file.
459 * sysdeps/sparc/gccframe.h: New file.
460 * sysdeps/vax/gccframe.h: New file.
461 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
462 Set on all architectures except ia64.
463 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
465 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
466 __deregister_frame_info): Move to elf/Versions.
467 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
468 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
469 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
470 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
471 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
472 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
473 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
474 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
475 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
476 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
477 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
478 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
479 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
480 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
481 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
482 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
483 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
484 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
486 2001-11-15 Jeff Law <law@redhat.com>
488 * posix/regex.c (uintptr_t): Do not provide a definition if the
491 2001-11-13 Roland McGrath <roland@frob.com>
493 * stdio-common/tmpfile.c: Moved to ...
494 * sysdeps/generic/tmpfile.c: ... here.
495 * sysdeps/mach/hurd/tmpfile.c: New file.
497 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
498 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
499 (fopenport): Define as weak alias.
501 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
502 * libio/libioP.h: ... to here.
504 2001-11-12 Ulrich Drepper <drepper@redhat.com>
506 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
507 program header twice. Construct list with the needed information.
509 2001-11-10 Ulrich Drepper <drepper@redhat.com>
511 * po/ca.po: Update from translation team.
513 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
514 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
515 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
516 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
518 2001-11-10 Andreas Jaeger <aj@suse.de>
520 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
521 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
522 Contributed by Stephen L Moshier <moshier@mediaone.net>.
524 2001-11-09 Ulrich Drepper <drepper@redhat.com>
526 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
528 * elf/dl-load.c (is_dst): New function.
529 (_dl_dst_count): Use is_dst to check for DST variable.
530 (_dl_dst_substitute): Likewise.
532 2001-11-09 Roland McGrath <roland@frob.com>
534 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
535 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
536 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
537 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
538 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
539 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
540 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
541 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
542 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
543 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
544 * sysdeps/mach/hurd/powerpc/Dist: New file.
546 * hurd/privports.c (__get_privileged_ports):
547 Only contact the proc server if necessary for this call.
548 Suggested by Neal H Walfield <neal@cs.uml.edu>.
549 Check error return for mach_port_mod_refs.
551 2001-11-09 Andreas Schwab <schwab@suse.de>
553 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
555 2001-11-09 Ulrich Drepper <drepper@redhat.com>
557 * elf/dl-load.c (lose): Remove some unnecessary code. The new
558 object is always the last in the list.
559 (_dl_map_object_from_fd): Delete code to remove from object list
560 when DF_1_NOOPEN is seen. This is done in lose.
562 2001-11-08 Ulrich Drepper <drepper@redhat.com>
564 * elf/dl-object.c (_dl_new_object): Various small optimizations.
566 2001-11-07 Ulrich Drepper <drepper@redhat.com>
568 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
569 HWCAP_CHECK macro code.
571 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
572 Now returns MAP_FAILED on error.
573 * elf/rtld.c: Adjust caller.
574 * sysdeps/generic/dl-cache.c: Likewise.
575 * sysdeps/generic/ldsodefs.h: Adjust description.
577 * elf/dl-version.c (match_symbol): Optimize error handling for size.
578 (_dl_check_map_versions): Likewise.
580 2001-11-06 Ulrich Drepper <drepper@redhat.com>
582 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
583 _dl_signal_error directly, always use lose. Set fd to -1 after
585 (lose): Don't call close if fd == -1.
587 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
589 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
590 Also fix typo @code {mbsinit} to @code{mbsinit}.
592 2001-11-06 Ulrich Drepper <drepper@redhat.com>
594 * elf/dl-profile.c: Replace state variable with simple flag named
595 running. Remove commented-out code.
597 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
598 (_dl_init_paths): Likewise.
599 (_dl_map_object_from_fd): Likewise.
600 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
602 2001-11-06 Roland McGrath <roland@frob.com>
604 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
605 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
607 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
608 sysdeps/powerpc/elf/sysdep.h.
609 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
611 2001-11-05 Ulrich Drepper <drepper@redhat.com>
613 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
615 (process_envvars): Some more optimizations.
616 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
618 * elf/elf.h: Add dynamic tag definitions for prelinking.
620 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
621 Rewrite code to remove environment varables for SUID binaries.
622 Small optimization in LD_PROFILE handling.
623 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
625 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
627 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
629 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
630 strings. Change type of second parameter.
631 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
634 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
636 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
638 * manual/string.texi: Fix typos.
639 * manual/examples/argp-ex2.c: Likewise.
641 2001-11-05 Roland McGrath <roland@frob.com>
643 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
644 the more-specific unix/sysv/linux/powerpc file and breaks everything.
645 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
646 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
647 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
648 here, put under [__ELF__].
650 2001-11-05 Ulrich Drepper <drepper@redhat.com>
652 * manual/charset.texi: Extensive editing work.
653 * manual/nss.texi: Likewise.
654 Changes by Dennis Grace <dgrace@us.ibm.com>.
656 2001-11-04 Roland McGrath <roland@frob.com>
658 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
659 parameter to dir_mkfile.
661 2001-11-02 Jakub Jelinek <jakub@redhat.com>
663 * string/bits/string2.h (__strndup): If n is smaller than len, set
665 * string/tester.c (test_strndup): New function.
668 2001-11-01 Ulrich Drepper <drepper@redhat.com>
670 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
672 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
673 * scripts/cpp: New file.
675 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
676 for rtld_search_dirs content. Minor optimizations.
678 2001-10-31 Ulrich Drepper <drepper@redhat.com>
680 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
681 avoiding unnecessary duplication.
683 2001-10-31 Jakub Jelinek <jakub@redhat.com>
685 * elf/dl-load.c (_dl_map_object): If library was found using
686 LD_LIBRARY_PATH, don't try RUNPATH list.
688 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
690 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
691 Correct second argument of register_dump call.
692 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
695 2001-10-31 Ulrich Drepper <drepper@redhat.com>
697 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
699 * iconvdata/TESTS: Likewise.
700 * iconvdata/gconv-modules: Likewise.
701 * iconvdata/ibm1132.c: New file.
702 * iconvdata/ibm1132.h: New file.
703 * iconvdata/ibm1133.c: New file.
704 * iconvdata/ibm1133.h: New file.
705 * iconvdata/ibm1162.c: New file.
706 * iconvdata/ibm1162.h: New file.
707 * iconvdata/testdata/IBM1132: New file.
708 * iconvdata/testdata/IBM1132..UTF8: New file.
709 * iconvdata/testdata/IBM1133: New file.
710 * iconvdata/testdata/IBM1133..UTF8: New file.
711 * iconvdata/testdata/IBM1162: New file.
712 * iconvdata/testdata/IBM1162..UTF8: New file.
713 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
715 * string/string.h: Fix typo in comment.
716 * wcsmbs/wchar.h: Likewise.
718 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
720 * manual/getopt.texi (getopt_long, getopt_long_only): Include
721 const in type of longopts parameter.
723 2001-10-29 Andreas Jaeger <aj@suse.de>
725 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
727 2001-10-29 Kevin Ryde <user42@zip.com.au>
729 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
730 output, clarify `#' behaviour on 0.
731 (Floating-Point Conversions): Clarify that %g only uses %e when
732 the exponent would be greater than 1.
734 2001-10-28 Roland McGrath <roland@frob.com>
736 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
737 * sysdeps/mach/powerpc/machine-sp.h: New file.
738 * sysdeps/mach/powerpc/sysdep.h: New file.
739 * sysdeps/mach/powerpc/thread_state.h: New file.
741 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
742 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
743 expect to need the same thing on every platform.
745 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
746 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
748 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
749 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
750 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
751 Move all these assembly-related definitions to ...
752 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
754 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
755 by Peter Bruin <pjbruin@dds.nl>.
757 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
758 packing results for a `poll' call.
760 2001-10-26 Ulrich Drepper <drepper@redhat.com>
762 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
764 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
767 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
769 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
771 2001-10-24 H.J. Lu <hjl@gnu.org>
773 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
774 Use __BEGIN_DECLS/__END_DECLS around prototypes.
775 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
777 2001-10-21 Jim Meyering <meyering@lucent.com>
779 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
780 this code would end up calling gettext even in packages built
782 * posix/getopt.c (_): Likewise.
783 * posix/regex.c (_): Likewise.
785 2001-10-26 Ulrich Drepper <drepper@redhat.com>
787 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
789 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
790 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
792 2001-10-19 Jakub Jelinek <jakub@redhat.com>
794 * misc/sys/cdefs.h (__attribute_used__): Define.
795 * elf/rtld.c (_dl_start): Add __attribute_used__.
796 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
798 2001-10-25 Andreas Schwab <schwab@suse.de>
800 * stdlib/a64l.c: Expect least significant digit first.
801 * stdlib/l64a.c: Produce least significant digit first.
802 * stdlib/Makefile (tests): Add test-a64l.
803 * stdlib/test-a64l.c: New file.
804 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
806 2001-10-21 Ulrich Drepper <drepper@redhat.com>
808 * po/sk.po: Update from translation team.
810 2001-10-18 Ulrich Drepper <drepper@redhat.com>
812 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
814 2001-10-18 Andreas Schwab <schwab@suse.de>
816 * math/libm-test.inc (print_ulps): Print ulp values rounded to
818 (print_function_ulps): Likewise.
819 (print_complex_function_ulps): Likewise.
820 (print_max_error): Likewise.
821 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
823 2001-10-16 Andreas Schwab <schwab@suse.de>
825 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
828 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
829 BSD_SETJMP or BSD__SETJMP is defined, resp.
830 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
831 a tail call to __sigsetjmp that would require extending the
833 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
834 * sysdeps/m68k/bsd-setjmp.S: Deleted.
835 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
836 Reported by Jes Sorensen <jes@trained-monkey.org>.
838 2001-10-16 Andreas Jaeger <aj@suse.de>
840 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
841 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
844 2001-10-15 Ulrich Drepper <drepper@redhat.com>
846 * po/ca.po: New file. Contributed by the translation team.
848 2001-10-15 Ralf Baechle <ralf@gnu.org>
850 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
851 a varargs prototype. Remove dependency from kernel header files.
853 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
854 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
856 2001-10-14 Ulrich Drepper <drepper@redhat.com>
858 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
859 to generate hexadecimal identifier.
860 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
862 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
864 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
866 2001-10-14 Ulrich Drepper <drepper@redhat.com>
868 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
869 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
870 Contributed by Stephen L Moshier <moshier@mediaone.net>.
872 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
873 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
874 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
875 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
876 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
877 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
879 * timezone/africa: Update from tzdata2001d.
880 * timezone/asia: Likewise.
881 * timezone/australasia: Likewise.
882 * timezone/backward: Likewise.
883 * timezone/europe: Likewise.
884 * timezone/leapseconds: Likewise.
885 * timezone/northamerica: Likewise.
886 * timezone/southamerica: Likewise.
887 * timezone/zone.tab: Likewise.
889 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
891 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
892 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
894 2001-10-12 Ulrich Drepper <drepper@redhat.com>
896 * elf/elf.h (PT_TLS): New definition.
898 2001-10-10 Jeff Bailey <jbailey@nisa.net>
900 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
903 2001-10-07 Roland McGrath <roland@frob.com>
905 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
907 2001-10-10 Ulrich Drepper <drepper@redhat.com>
909 * elf/elf.h: Add more ELFOSABI_* constants.
911 2001-10-04 Ben Collins <bcollins@debian.org>
913 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
914 decleration of __need_wchar_t.
916 2001-10-03 Jakub Jelinek <jakub@redhat.com>
918 * string/bits/string2.h (__strsep_g): Add prototype.
920 * string/Versions (__strsep): Remove.
921 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
923 2001-10-07 Ulrich Drepper <drepper@redhat.com>
925 * manua/llio.texi: Clarify file references added by mmap.
926 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
928 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
930 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
931 Add sc_loadrs and sc_rbs_bas to match current kernel.
933 2001-09-27 Jakub Jelinek <jakub@redhat.com>
935 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
937 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
939 2001-09-27 Jakub Jelinek <jakub@redhat.com>
941 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
942 object has been bumped because of relocation dependency, avoid
943 duplicates in l_scope.
944 (show_scope): Fix typos.
945 * elf/Makefile: Add rules to build and run reldep6.
946 * elf/reldep6.c: New file.
947 * elf/reldep6mod0.c: New file.
948 * elf/reldep6mod1.c: New file.
949 * elf/reldep6mod2.c: New file.
950 * elf/reldep6mod3.c: New file.
951 * elf/reldep6mod4.c: New file.
953 2001-09-26 Jakub Jelinek <jakub@redhat.com>
955 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
957 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
958 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
959 for non-lazy binding. Fix .plt[32768+] handling.
960 (elf_machine_plt_value): Don't add addend.
961 (elf_machine_rela): Call sparc64_fixup_plt instead of
962 elf_machine_fixup_plt.
963 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
964 dynamic linker at 0xfffff800XXXXXXXX.
966 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
968 2001-09-28 Ulrich Drepper <drepper@redhat.com>
970 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
972 2001-09-25 Jakub Jelinek <jakub@redhat.com>
974 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
975 declare __cmsg_data field if its size would be bigger than 0.
976 (CMSG_DATA): Adjust accordingly.
977 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
978 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
979 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
980 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
981 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
982 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
983 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
985 2001-09-25 Ulrich Drepper <drepper@redhat.com>
987 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
988 * iconvdata/testdata/IBM1160: New file.
989 * iconvdata/testdata/IBM1160..UTF8: New file.
990 * iconvdata/testdata/IBM1161: New file.
991 * iconvdata/testdata/IBM1161..UTF8: New file.
992 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
994 2001-09-24 Ulrich Drepper <drepper@redhat.com>
996 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
997 UL_SETFSIZE computations better.
999 * rt/Makefile: Remove use of filter for librt again.
1001 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
1002 UL_SETFSIZE computations better.
1004 * string/Versions: Export __strsep for GLIBC_2.2.5.
1005 * string/bits/string2.h: Define all __STRING_INLINE functions if
1006 _FORCE_INLINES is defined.
1007 Use int instead of char of parameter types.
1008 (__strsep): Don't use __strsep_g. Don't define it.
1009 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
1010 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
1012 (__stpcpy_a_small): Renamed from __stpcpy_small.
1013 (__strcspn_c1): Don't define if _FORCE_INLINES.
1014 (__strspn_c1): Likewise.
1016 2001-09-22 Ben Collins <bcollins@debian.org>
1018 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
1019 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
1020 * sysdeps/ia64/bits/sigaction.h: Likewise.
1021 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
1023 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
1025 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
1027 2001-09-24 Jakub Jelinek <jakub@redhat.com>
1029 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
1031 2001-09-24 Ulrich Drepper <drepper@redhat.com>
1033 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
1035 2001-09-20 H.J. Lu <hjl@gnu.org>
1037 * include/dlfcn.h (__RTLD_SPROF): New definiton.
1038 * elf/dl-open.c (dl_open_worker): Return immediately after loading
1040 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
1041 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
1043 2001-09-20 H.J. Lu <hjl@gnu.org>
1045 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
1048 2001-09-22 Ulrich Drepper <drepper@redhat.com>
1050 * nss/getent.c: Accept -s parameter to overwrite rules in
1051 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
1053 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
1054 with as many ".0" as necessary to form a complete address
1055 inet_network understands.
1057 * nss/getent.c: Various cleanups. Use simpler and fewer function
1060 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1062 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
1064 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
1066 2001-09-22 Ulrich Drepper <drepper@redhat.com>
1068 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
1070 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
1071 * iconvdata/ibm1160.c: New file.
1072 * iconvdata/ibm1160.h: New file.
1073 * iconvdata/ibm1161.c: New file.
1074 * iconvdata/ibm1161.h: New file.
1075 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1077 2001-09-19 Jakub Jelinek <jakub@redhat.com>
1079 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
1080 difference between base address and first PT_LOAD's virtual address,
1081 not the base address.
1083 2001-09-11 Tom Rix <trix@redhat.com>
1085 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
1086 ifdef for __getopt_clean_environment.
1087 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
1089 2001-09-22 Andreas Jaeger <aj@suse.de>
1091 * elf/reldep4.c (main): Add proper prototype to fix warning.
1093 * elf/reldep5.c (main): Remove unused variable.
1095 * math/math_private.h: Add prototypes.
1097 2001-09-21 Andreas Jaeger <aj@suse.de>
1099 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
1100 * sysdeps/x86_64/Dist: New file.
1101 * sysdeps/x86_64/soft-fp/Dist: New file.
1103 * sysdeps/gnu/Dist: Remove eval.c.
1105 2001-09-20 Ulrich Drepper <drepper@redhat.com>
1107 * malloc/memusage.c (realloc): Don't count already allocated
1109 (me): Always use dlsym() to find the real implementations.
1111 * malloc/memusage.sh: Make -n option actually do something.
1113 2001-09-20 Andreas Jaeger <aj@suse.de>
1115 * elf/elf.h (R_390_NUM): Correct value.
1117 * Versions.def: Add missing versions 2.2.3 for libthread_db and
1120 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
1121 for x86-64, install x86-64 into */lib64.
1123 * shlib-versions: Add x86-64.
1125 * elf/elf.h: Add x86-64 relocations.
1127 2001-09-19 Ulrich Drepper <drepper@redhat.com>
1129 * po/fr.po: Update from translation team.
1131 2001-09-19 Andreas Jaeger <aj@suse.de>
1133 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
1134 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
1135 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
1136 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
1137 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
1138 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
1139 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
1140 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
1141 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
1142 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
1143 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
1144 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
1145 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
1146 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
1147 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
1148 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
1149 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
1150 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
1151 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
1152 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
1153 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
1154 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
1155 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
1156 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
1157 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
1158 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
1159 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
1160 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
1161 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
1162 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
1163 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
1164 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
1165 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
1166 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
1167 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
1168 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
1169 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
1170 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
1171 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
1172 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
1173 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
1174 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
1175 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
1176 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
1177 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
1178 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
1179 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
1180 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
1181 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
1182 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
1183 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
1184 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
1185 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
1186 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
1187 * sysdeps/unix/x86_64/sysdep.S: New file.
1188 * sysdeps/unix/x86_64/sysdep.h: New file.
1189 * sysdeps/x86_64/Implies: New file.
1190 * sysdeps/x86_64/Makefile: New file.
1191 * sysdeps/x86_64/Versions: New file.
1192 * sysdeps/x86_64/__longjmp.S: New file.
1193 * sysdeps/x86_64/abort-instr.h: New file.
1194 * sysdeps/x86_64/atomicity.h: New file.
1195 * sysdeps/x86_64/bits/endian.h: New file.
1196 * sysdeps/x86_64/bits/setjmp.h: New file.
1197 * sysdeps/x86_64/bits/string.h: New file.
1198 * sysdeps/x86_64/bp-asm.h: New file.
1199 * sysdeps/x86_64/bsd-_setjmp.S: New file.
1200 * sysdeps/x86_64/bsd-setjmp.S: New file.
1201 * sysdeps/x86_64/dl-machine.h: New file.
1202 * sysdeps/x86_64/elf/initfini.c: New file.
1203 * sysdeps/x86_64/elf/start.S: New file.
1204 * sysdeps/x86_64/ffs.c: New file.
1205 * sysdeps/x86_64/ffsll.c: New file.
1206 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
1207 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
1208 * sysdeps/x86_64/fpu/e_acosl.c: New file.
1209 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
1210 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
1211 * sysdeps/x86_64/fpu/e_expl.c: New file.
1212 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
1213 * sysdeps/x86_64/fpu/e_log10l.S: New file.
1214 * sysdeps/x86_64/fpu/e_log2l.S: New file.
1215 * sysdeps/x86_64/fpu/e_logl.S: New file.
1216 * sysdeps/x86_64/fpu/e_powl.S: New file.
1217 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
1218 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
1219 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
1220 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
1221 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
1222 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
1223 * sysdeps/x86_64/fpu/fegetenv.c: New file.
1224 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
1225 * sysdeps/x86_64/fpu/fegetround.c: New file.
1226 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
1227 * sysdeps/x86_64/fpu/fesetenv.c: New file.
1228 * sysdeps/x86_64/fpu/fesetround.c: New file.
1229 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
1230 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
1231 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
1232 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
1233 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
1234 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
1235 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
1236 * sysdeps/x86_64/fpu/s_atanl.c: New file.
1237 * sysdeps/x86_64/fpu/s_cosl.S: New file.
1238 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
1239 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
1240 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
1241 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
1242 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
1243 * sysdeps/x86_64/fpu/s_logbl.c: New file.
1244 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
1245 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
1246 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
1247 * sysdeps/x86_64/fpu/s_rintl.c: New file.
1248 * sysdeps/x86_64/fpu/s_significandl.c: New file.
1249 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
1250 * sysdeps/x86_64/fpu/s_sinl.S: New file.
1251 * sysdeps/x86_64/fpu/s_tanl.S: New file.
1252 * sysdeps/x86_64/gmp-mparam.h: New file.
1253 * sysdeps/x86_64/hp-timing.c: New file.
1254 * sysdeps/x86_64/hp-timing.h: New file.
1255 * sysdeps/x86_64/htonl.S: New file.
1256 * sysdeps/x86_64/memusage.h: New file.
1257 * sysdeps/x86_64/setjmp.S: New file.
1258 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
1259 * sysdeps/x86_64/stackinfo.h: New file.
1260 * sysdeps/x86_64/sysdep.h: New file.
1261 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
1263 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
1266 2001-09-18 Ulrich Drepper <drepper@redhat.com>
1268 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
1269 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
1271 2001-09-18 Andreas Schwab <schwab@suse.de>
1273 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
1274 list, now that l_scope is a pointer.
1276 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
1279 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
1281 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
1282 (elf_machine_rela_relative): Add a missing declaration.
1284 2001-09-18 Jakub Jelinek <jakub@redhat.com>
1286 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
1287 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
1288 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
1289 ldd-rewrite scripts.
1291 2001-09-18 Ulrich Drepper <drepper@redhat.com>
1293 * elf/ldd.bash.in: Update copyright message.
1295 2001-09-17 H.J. Lu <hjl@gnu.org>
1297 * hurd/hurdmalloc.c (bcopy): Removed.
1298 (realloc): Replace bcopy with memcpy.
1299 * hurd/path-lookup.c (file_name_path_scan): Likewise.
1300 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
1301 * sunrpc/rpcinfo.c (pmapdump): Likewise.
1303 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
1304 (gethostbyaddr): Likewise.
1305 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
1307 2001-09-18 Ulrich Drepper <drepper@redhat.com>
1309 * sysdeps/gnu/eval.c: Removed.
1311 2001-09-18 Andreas Jaeger <aj@suse.de>
1313 * sysdeps/i386/fpu/s_logbl.S: Move to ...
1314 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
1316 * sysdeps/i386/fpu/s_rintl.S: Move to ...
1317 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
1319 * sysdeps/i386/fpu/s_significandl.S: Move to ...
1320 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
1322 2001-09-16 Ulrich Drepper <drepper@redhat.com>
1324 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
1327 2001-09-14 H.J. Lu <hjl@gnu.org>
1329 * sysdeps/mips/fpu/libm-test-ulps: Updated.
1331 2001-09-14 Ulrich Drepper <drepper@redhat.com>
1333 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
1334 Patch by Florian La Roche <laroche@redhat.com>.
1336 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
1338 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
1341 2001-09-14 Andreas Schwab <schwab@suse.de>
1343 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
1344 Sumner <bls@sgi.com>.
1345 * posix/execlp.c: Likewise.
1347 2001-09-13 Jakub Jelinek <jakub@redhat.com>
1349 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
1350 is already found earlier in the search scope.
1352 2001-09-12 Jakub Jelinek <jakub@redhat.com>
1354 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
1357 2001-09-13 Ulrich Drepper <drepper@redhat.com>
1359 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
1361 2001-09-12 Ulrich Drepper <drepper@redhat.com>
1363 * config.h.in: Enforce optimization to be used.
1364 * Makeconfig (preprocess-versions): Define ASSEMBLER.
1365 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
1366 * posix/Makefile (annexc-CFLAGS): Define to -O.
1367 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
1369 2001-09-11 Ulrich Drepper <drepper@redhat.com>
1371 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
1372 Patch by Stephan Kulow.
1374 2001-09-08 Ben Collins <bcollins@debian.org>
1376 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
1377 usage of RESOLVE() (r_type, not reloc->r_type).
1379 2001-09-08 Ulrich Drepper <drepper@redhat.com>
1381 * elf/dl-object.c: Avoid allocating extra memory block for name.
1382 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
1383 allocated separately.
1384 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1386 2001-09-08 H.J. Lu <hjl@gnu.org>
1388 * po/zh_TW.po: Fix a typo.
1390 2001-09-07 Tom Rix <trix@redhat.com>
1392 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
1394 2001-08-26 Tom Rix <trix@redhat.com>
1396 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
1397 command line options.
1398 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
1399 * sysdeps/unix/sysv/aix/start.c: Removed.
1400 * sysdeps/unix/sysv/aix/start-libc.c: New file.
1401 * sysdeps/unix/sysv/aix/init-first.c: New file.
1402 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
1404 2001-09-08 Ben Collins <bcollins@debian.org>
1406 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
1407 * sysdeps/generic/dl-machine.h: Likewise.
1408 * sysdeps/hppa/dl-fptr.c: Likewise.
1409 * sysdeps/ia64/dl-fptr.c: Likewise.
1410 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
1411 * sysdeps/mips/dl-machine.h: Likewise.
1412 * sysdeps/mips/mips64/dl-machine.h: Likewise.
1413 * sysdeps/powerpc/dl-machine.c: Likewise.
1415 2001-09-07 Ben Collins <bcollins@debian.org>
1417 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
1419 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
1421 2001-09-08 Ulrich Drepper <drepper@redhat.com>
1423 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
1424 dependencies if necessary.
1426 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
1427 loaded directly) determine length if l_initfini list by iterating
1428 over its elements. Minor optimizations.
1429 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
1430 for dependency objects.
1431 If object was already loaded check whether any of the dependencies
1432 is already on the relocation dependency list. If yes, remove the
1433 latter. Minor optimizations.
1434 * elf/dl-lookup.c (add_dependency): Add check for self reference of
1435 maps here. Search l_initfini list only if the object was loaded
1436 directly and not only as a dependency.
1437 (_dl_lookup_symbol): Add relocation dependency also if object
1438 is not in global scope. Remove test for self-reference here.
1439 (_dl_lookup_versioned_symbol): Likewise.
1440 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
1441 element of first name record.
1442 * elf/loadtest.c: Add some more test to recognize early if an object
1444 * elf/Makefile: Add rules to build and run reldep5.
1445 * elf/reldep5.c: New file.
1446 * elf/reldepmod5.c: New file.
1447 * elf/reldepmod6.c: New file.
1449 * elf/reldep2.c: Fix typo.
1451 2001-09-07 Ulrich Drepper <drepper@redhat.com>
1453 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
1454 elements. Change l_scope to be a pointer only.
1455 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
1456 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
1457 here add searchlist of newly open file to the dependency's scope.
1458 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
1459 only searchlist from its scope. Free own scope array if necessary.
1460 * elf/Makefile (tests): Add dblload and dblunload now.
1462 2001-09-06 Andreas Jaeger <aj@suse.de>
1464 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
1467 2001-09-05 Ulrich Drepper <drepper@redhat.com>
1469 * elf/Makefile: Add rules to build new tests. Don't run them yet since
1471 * elf/dblload.c: New file.
1472 * elf/dblloadmod1.c: New file.
1473 * elf/dblloadmod2.c: New file.
1474 * elf/dblloadmod3.c: New file.
1475 * elf/dblunload.c: New file.
1477 2001-09-04 Richard Henderson <rth@redhat.com>
1479 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
1480 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
1482 2001-09-04 Ulrich Drepper <drepper@redhat.com>
1484 Correct very misleading message for error in failed runtime relocation.
1485 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
1487 (_dl_signal_cerror): Likewise.
1488 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
1489 * elf/dl-close.c: Likewise.
1490 * elf/dl-deps.c: Likewise.
1491 * elf/dl-load.c: Likewise.
1492 * elf/dl-lookup.c: Likewise.
1493 * elf/dl-open.c: Likewise.
1494 * elf/dl-reloc.c: Likewise.
1495 * elf/dl-sym.c: Likewise.
1496 * elf/dl-version.c: Likewise.
1497 * sysdeps/generic/dl-sysdep.c: Likewise.
1499 2001-09-04 Jakub Jelinek <jakub@redhat.com>
1501 * iconv/strtab.c (strtabinit): Initialize null Strent.
1502 (newstring): Move len == 0 handling...
1503 (strtabadd): ...here.
1504 If len == 1, return null Strent.
1505 When inserting a suffix of an existing string, check if
1506 it is not equal to some suffix already recorded.
1507 Copy left and right members over if adding longer string.
1509 2001-09-04 Jakub Jelinek <jakub@redhat.com>
1511 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
1513 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
1514 (__syscall_gethostname): Add prototype.
1516 2001-09-04 Ulrich Drepper <drepper@redhat.com>
1518 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
1520 2001-09-02 Ulrich Drepper <drepper@redhat.com>
1522 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
1524 2001-08-27 Roland McGrath <roland@frob.com>
1526 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
1527 short, copy that much into NAME anyway before returning error.
1529 2001-09-01 Richard Henderson <rth@redhat.com>
1531 * sysdeps/alpha/elf/Dist: Remove file.
1532 * sysdeps/alpha/elf/Makefile: Remove file.
1533 * sysdeps/alpha/elf/crtbegin.S: Remove file.
1534 * sysdeps/alpha/elf/crtend.S: Remove file.
1535 * sysdeps/alpha/elf/initfini.c: New file.
1537 2001-09-01 Mark Kettenis <kettenis@gnu.org>
1539 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
1540 * iconv/tst-iconv3.c: Likewise.
1542 2001-09-01 Jakub Jelinek <jakub@redhat.com>
1544 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
1546 2001-09-01 Ulrich Drepper <drepper@redhat.com>
1548 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
1550 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
1551 * iconv/iconv_prog.c (insert_cache): New function.
1552 (print_known_names): If cache is used call insert_cache to use the
1553 information from the cache [PR libc/2509].
1555 2001-08-31 Ulrich Drepper <drepper@redhat.com>
1557 * time/strptime.c (strptime_internal): Recognize 'l' format and
1558 handle it like 'I' for symmetry with strftime.
1560 2001-08-31 Richard Henderson <rth@redhat.com>
1562 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
1563 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
1564 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
1565 (print_statistics): Make scalar unsigned long long.
1566 * sysdeps/alpha/hp-timing.h: New file.
1568 2001-08-31 Jakub Jelinek <jakub@redhat.com>
1570 * stdio-common/perror.c (perror): Save errno early, pass it
1571 down to perror_internal.
1572 (perror_internal): Add errnum argument.
1574 2001-08-31 Jakub Jelinek <jakub@redhat.com>
1576 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
1577 Don't add old memory content for R_ALPHA_REFQUAD.
1579 2001-08-30 Ulrich Drepper <drepper@redhat.com>
1581 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
1584 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
1585 instead of open, __close instead of close, __getpagesize instead
1588 * string/argz-stringify.c (__argz_stringify): Use __strnlen
1590 * include/string.h (strndupa): Redefine here to use __strnlen
1592 * string/strndup.c (__strndup): Use __strnlen not strnlen.
1594 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
1597 2001-08-30 Jakub Jelinek <jakub@redhat.com>
1599 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
1600 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
1601 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
1602 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
1603 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
1604 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
1605 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
1607 2001-08-30 Ulrich Drepper <drepper@redhat.com>
1609 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
1611 2001-08-30 Andreas Jaeger <aj@suse.de>
1613 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
1614 contributed Stephen L Moshier.
1616 2001-08-30 Jakub Jelinek <jakub@redhat.com>
1618 * sunrpc/etc.rpc (sgi_fam): Add.
1620 2001-08-30 Ulrich Drepper <drepper@redhat.com>
1622 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
1624 2001-08-29 Ulrich Drepper <drepper@redhat.com>
1626 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
1627 first is from a previous call.
1628 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
1630 2001-08-29 Andreas Schwab <schwab@suse.de>
1632 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
1634 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1636 * config.make.in (INSTALL_SCRIPT): Define.
1637 * Makeconfig (INSTALL_SCRIPT): Define.
1638 * Makerules (do-install-script): New macro to install scripts using
1640 (install-bin-script): New rule to install scripts with
1642 (install-bin-script-nosubdir): New rule.
1643 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
1644 (distinfo-vars): Add $(install-bin-script).
1645 * Rules (others): Likewise.
1646 * Makefile (glibcbug): Install with install-bin-script.
1647 * debug/Makefile (xtrace): Likewise.
1648 (catchsegv): Likewise.
1649 * elf/Makefile (ldd): Likewise.
1650 * malloc/Makefile (mtrace): Likewise.
1651 * timezone/Makefile (tzselect): Likewise.
1653 2001-08-29 H.J. Lu <hjl@gnu.org>
1655 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
1656 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
1657 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
1659 2001-08-29 Andreas Schwab <schwab@suse.de>
1661 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
1663 2001-08-28 H.J. Lu <hjl@gnu.org>
1665 * Makeconfig (combreloc-LDFLAGS): New variable.
1666 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
1667 * config.make.in (have-z-combreloc): New variable.
1668 * configure.in: Substitute libc_cv_z_combreloc.
1670 2001-08-29 Ulrich Drepper <drepper@redhat.com>
1672 * po/sv.po: Update from translation team.
1673 * po/fr.po: Likewise.
1674 * po/da.po: Likewise.
1676 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1678 * Makerules: Fix a typo: MD% -> MD5.
1680 2001-08-28 Ulrich Drepper <drepper@redhat.com>
1682 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
1683 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
1685 2001-08-28 Andreas Jaeger <aj@suse.de>
1687 * manual/libc-texinfo.sh: Add entry about free manuals.
1689 * manual/contrib.texi (Contributors): Fix cross reference.
1691 * manual/libc.texinfo (Copying): Include freemanuals.
1693 * manual/Makefile (appendices): Add freemanuals.
1695 * manual/freemanuals.texi: New file.
1696 Patch by Brian Youmans <3diff@gnu.org>.
1698 * manual/libm-err-tab.pl: Pretty print more platforms, print a
1701 * manual/math.texi (Errors in Math Functions): Fix grammar, start
1702 table on separate page.
1703 Patch by Brian Youmans <3diff@gnu.org>.
1705 2001-08-27 Ulrich Drepper <drepper@redhat.com>
1707 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
1708 the connection went down after we first used it try to connect
1709 again and resend the message before printing to the console.
1710 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
1712 2001-08-27 Jakub Jelinek <jakub@redhat.com>
1714 * string/tst-strlen.c (main): Test strnlen (, -1) too.
1715 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
1718 2001-08-27 Ulrich Drepper <drepper@redhat.com>
1720 * iconv/strtab.c (searchstring): Use correct length for comparison.
1721 (strtabadd): Account total size correct if new string has old string as
1724 2001-08-27 Jakub Jelinek <jakub@redhat.com>
1726 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
1728 2001-08-27 Andreas Jaeger <aj@suse.de>
1730 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
1732 * math/libm-test.inc (j0_test): Add extra tests.
1733 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
1734 not x, in Hankel approximation.
1735 Patches by Stephen L Moshier.
1737 2001-08-26 Ulrich Drepper <drepper@redhat.com>
1739 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
1742 * configure.in: Fix test for .rela.dyn section.
1744 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
1746 2001-08-26 Jakub Jelinek <jakub@redhat.com>
1748 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
1749 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
1750 Pass type_class to _dl_lookup_*.
1751 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
1752 Pass around just type_class instead of noexec, noplt pair.
1753 (_dl_lookup_versioned_symbol): Likewise.
1754 (_dl_lookup_symbol_skip): Pass around just type_class instead of
1756 (_dl_lookup_versioned_symbol_skip): Likewise.
1757 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
1758 * elf/do-lookup.h (do_lookup): Likewise.
1759 * include/link.h (struct link_map): Replace noexec and noplt fields
1760 in l_lookup_cache with type_class field.
1761 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
1762 ELF_RTYPE_CLASS_COPY): Define.
1763 Adjust prototypes for _dl_lookup_symbol and
1764 _dl_lookup_versioned_symbol.
1765 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
1766 elf_machine_lookup_noexec_p): Remove.
1767 (elf_machine_type_class): Define.
1768 * sysdeps/arm/dl-machine.h: Likewise.
1769 * sysdeps/hppa/dl-machine.h: Likewise.
1770 * sysdeps/cris/dl-machine.h: Likewise.
1771 * sysdeps/i386/dl-machine.h: Likewise.
1772 * sysdeps/ia64/dl-machine.h: Likewise.
1773 * sysdeps/m68k/dl-machine.h: Likewise.
1774 * sysdeps/mips/mips64/dl-machine.h: Likewise.
1775 * sysdeps/mips/dl-machine.h: Likewise.
1776 * sysdeps/powerpc/dl-machine.h: Likewise.
1777 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1778 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1779 * sysdeps/sh/dl-machine.h: Likewise.
1780 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1781 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1783 2001-08-26 Ulrich Drepper <drepper@redhat.com>
1785 * manual/message.texi (Advanced gettext functions): Change
1786 description of plural forms for Slovak.
1787 Reported by Marcel Telka <marcel@telka.sk>.
1789 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
1790 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
1792 2001-08-26 Jakub Jelinek <jakub@redhat.com>
1794 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
1795 typo. Patch by Florian La Roche <laroche@redhat.com>.
1797 2001-08-26 Ulrich Drepper <drepper@redhat.com>
1799 * include/link.h (struct link_map): Add l_lookup_cache element.
1800 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
1801 (RESOLVE_MAP): Likewise.
1802 (_dl_relocate_object): Remove cache initialization.
1803 * elf/dl-lookup.c: Rip out cache handling code.
1804 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
1807 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
1808 remove some __builtin_expect.
1809 (_dl_lookup_versioned_symbol): Likewise.
1811 * config.h.in: Add HAVE_Z_COMBRELOC.
1812 * configure.in: Add test for -z combreloc.
1814 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
1815 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
1816 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
1817 case to almost no code.
1819 2001-08-25 Ulrich Drepper <drepper@redhat.com>
1821 * po/tr.po: Update from translation team.
1823 2001-08-24 Andreas Jaeger <aj@suse.de>
1825 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
1828 2001-08-24 Ulrich Drepper <drepper@redhat.com>
1830 * elf/rtld.c (print_statistics): Printf % after percent values.
1831 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
1833 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
1834 don't have to compute the hash value and initialize current_value.
1835 Move reference_name variable to where it is needed.
1836 (_dl_lookup_versioned_symbol): Likewise.
1838 2001-08-24 Roland McGrath <roland@frob.com>
1840 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
1841 Just test that strerror returns non-null for a few errno codes.
1843 2001-08-23 Roland McGrath <roland@frob.com>
1845 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
1846 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
1848 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
1850 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
1853 2001-08-24 Ulrich Drepper <drepper@redhat.com>
1855 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
1858 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
1859 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
1861 * elf/rtld.c: Include <sys/param.h>.
1862 * elf/dl-reloc.c: Likewise.
1864 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1866 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
1867 empty to prevent junk from being generated.
1868 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
1870 2001-08-24 Jakub Jelinek <jakub@redhat.com>
1872 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
1873 records. Rename endrel to relative, initialize it to r, and use it
1874 in elf_machine_rel_relative calls. Point r after relative relocs.
1876 2001-08-24 Ulrich Drepper <drepper@redhat.com>
1878 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
1881 2001-08-24 Jakub Jelinek <jakub@redhat.com>
1883 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
1884 necessary. Undefine newly defined macros at the end.
1885 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
1886 Rename from elf_machine_rel_relative.
1887 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
1888 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
1889 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
1890 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
1892 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
1894 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
1896 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
1898 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
1899 Likewise. Fix argument types.
1900 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
1901 Likewise. Fix argument types.
1902 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
1904 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
1905 ElfW(Rel) in argument.
1906 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
1909 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1911 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
1913 2001-08-24 Andreas Jaeger <aj@suse.de>
1915 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
1916 Stephen L Moshier <moshier@mediaone.net>.
1918 2001-08-24 Ulrich Drepper <drepper@redhat.com>
1920 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
1921 first if RELCOUNT is set.
1923 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
1924 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
1925 elf_machine_rel_relative.
1926 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
1927 Minor optimizations.
1928 * sysdeps/arm/dl-machine.h: Likewise.
1929 * sysdeps/cris/dl-machine.h: Likewise.
1930 * sysdeps/hppa/dl-machine.h: Likewise.
1931 * sysdeps/i386/dl-machine.h: Likewise.
1932 * sysdeps/ia64/dl-machine.h: Likewise.
1933 * sysdeps/m68k/dl-machine.h: Likewise.
1934 * sysdeps/mips/dl-machine.h: Likewise.
1935 * sysdeps/powerpc/dl-machine.h: Likewise.
1936 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1937 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1938 * sysdeps/sh/dl-machine.h: Likewise.
1939 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1940 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1942 2001-08-23 Roland McGrath <roland@frob.com>
1944 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
1946 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
1947 sysdeps/mach version. Implement counting ("recursive") mutexes
1948 on top of cthreads mutexes.
1949 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
1951 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
1952 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
1953 (__libc_cleanup_region_start, __libc_cleanup_region_end,
1954 __libc_clean_end): Define these to call the cleanup function after
1955 normal exit when they're supposed to.
1957 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
1958 Take new first arg DOIT, a boolean saying whether to really install
1959 any cleanup handler.
1960 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
1961 (__libc_cleanup_end): Likewise.
1962 * sysdeps/generic/bits/libc-lock.h: Same changes.
1963 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
1964 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
1965 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
1967 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
1968 * sysdeps/generic/bits/stdio-lock.h
1969 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
1971 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1973 * elf/ldconfig.c (search_dir): Remove stale symlinks.
1975 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1977 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
1978 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
1980 (_dl_lookup_versioned_symbol): Likewise.
1981 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
1983 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
1984 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
1985 (lookup_cache, lookup_cache_versioned): Add declarations.
1987 2001-08-23 Ulrich Drepper <drepper@redhat.com>
1989 * stdlib/tst-random.c (main): Swap parameters in fail call.
1990 Patch by Pete Bevin <pete@petebevin.com>.
1992 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1994 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
1996 2001-08-23 Ulrich Drepper <drepper@redhat.com>
1998 * malloc/obstack.c: Indent preprocessor directives.
1999 Patch by Jim Meyering <meyering@ascend.com>.
2001 * po/ja.po: Update from translation team.
2003 2001-08-23 Roland McGrath <roland@frob.com>
2005 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
2007 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
2008 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
2010 2001-08-22 Roland McGrath <roland@frob.com>
2012 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
2013 __libc_lock_define_recursive.
2014 * elf/dl-open.c: Don't declare it here any more.
2015 * elf/dl-close.c: Likewise.
2016 * elf/dl-lookup.c: Likewise.
2017 * elf/dl-iteratephdr.c: Likewise.
2018 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
2019 __libc_lock_unlock_recursive.
2020 * elf/dl-close.c (_dl_close): Likewise
2021 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
2022 * elf/dl-open.c (_dl_open): Likewise
2024 * sysdeps/generic/bits/libc-lock.h
2025 (__libc_lock_define_recursive): New macro.
2026 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
2027 (_IO_lock_lock): Use __libc_lock_lock_recursive.
2028 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
2030 * conform/conformtest.pl (checknamespace): Sort the output list.
2032 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
2033 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
2034 definitions conditional on [__USE_XOPEN].
2036 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
2037 these unconditionally, not only use [__USE_BSD], so as to match
2038 the sysdeps/unix/sysv/linux files.
2040 2001-08-22 Ulrich Drepper <drepper@redhat.com>
2042 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
2045 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
2048 2001-08-22 Roland McGrath <roland@frob.com>
2050 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
2051 conditionalization of sa_handler/sa_sigaction member types to
2052 match the sysdeps/unix/sysv/linux file.
2054 2001-08-22 Ulrich Drepper <drepper@redhat.com>
2056 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
2057 symbol sizes a bit better.
2059 * sysdeps/ia64/strncpy.S: Complete rewrite.
2060 Contributed by Jakub Jelinek <jakub@redhat.com>.
2062 * string/stratcliff.c (main): Add strncpy test.
2064 2001-08-22 Roland McGrath <roland@frob.com>
2066 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
2067 and don't declare unsetenv or _environ directly.
2068 (unsetenv): Return int, not void. Use __environ instead of _environ.
2070 2001-08-01 Mark Kettenis <kettenis@gnu.org>
2072 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
2073 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
2074 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
2075 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
2076 test for cmsg struct size.
2078 2001-04-23 Paul Eggert <eggert@twinsun.com>
2080 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
2081 Rename __argc to ___argc in prototypes to avoid compatibility
2082 problems with systems that reserve the identifier "__argc".
2083 Similarly for __argv.
2085 2001-08-21 Roland McGrath <roland@frob.com>
2087 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
2089 * mach/Makefile (tests): Removed.
2090 * mach/hello.c: File removed.
2092 2001-08-22 Ulrich Drepper <drepper@redhat.com>
2094 * po/sv.po: Update from translation team.
2096 * stdio-common/vfscanf.c: Fix handling of %l[].
2097 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
2099 * libio/Makefile (tests): Add tst-sscanf.
2100 * libio/tst-sscanf.c: New file.
2102 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
2103 * malloc/mtrace.c (tr_where): dli_sname always points to a
2104 non-empty string if != NULL.
2105 Reported by Tim Janik <timj@gtk.org>.
2107 2001-08-22 Jakub Jelinek <jakub@redhat.com>
2109 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
2110 buf. Free resources on failure.
2111 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
2112 (makefd_xprt): Likewise.
2113 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
2114 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
2115 * sunrpc/auth_unix.c (authunix_create): Likewise.
2117 2001-08-21 Jakub Jelinek <jakub@redhat.com>
2119 * string/strnlen.c: Remove.
2120 * sysdeps/generic/strnlen.c: New file.
2121 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
2123 2001-08-21 Roland McGrath <roland@frob.com>
2125 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
2126 as a macro, not an extern inline function.
2128 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
2129 * Versions.def (libc): Add GLIBC_2.2.5 set.
2130 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
2131 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
2133 2001-08-20 Roland McGrath <roland@frob.com>
2135 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
2136 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
2138 2001-08-21 Ulrich Drepper <drepper@redhat.com>
2140 * string/bits/string2.h: Remove strnlen optimization here.
2141 * sysdeps/i386/i486/bits/string.h: Add it here.
2143 2001-08-21 Wolfram Gloger <wg@malloc.de>
2145 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
2147 2001-08-21 Ulrich Drepper <drepper@redhat.com>
2149 * po/gl.po: Update from translation team.
2151 2001-08-20 Ulrich Drepper <drepper@redhat.com>
2153 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
2154 * misc/err.c (convert_and_print): Likewise.
2156 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
2159 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2161 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
2162 change of the gregset_t type.
2163 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
2165 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
2167 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
2169 2001-08-20 Ulrich Drepper <drepper@redhat.com>
2171 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
2173 * string/strnlen.c: Fix the implementation. We cannot use memchr.
2175 2001-08-18 Mark Kettenis <kettenis@gnu.org>
2177 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
2178 before calling the cthreads initialization code.
2180 2001-08-20 Ulrich Drepper <drepper@redhat.com>
2182 * argp/argp-help.c: Fix two problems introduced in last change.
2184 * include/dirent.h: Include <dirstream.h> first.
2186 2001-08-19 Ulrich Drepper <drepper@redhat.com>
2188 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
2190 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
2191 * sunrpc/xdr_rec.c: Likewise.
2192 * sunrpc/xdr_mem.c: Likewise.
2193 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
2194 * sunrpc/rpc_cmsg.c: Likewise.
2195 * sunrpc/getrpcport.c (getrpcport): Likewise.
2196 * sunrpc/clnt_simp.c (callrpc): Likewise.
2197 * sunrpc/clnt_gen.c (clnt_create): Likewise.
2198 * string/envz.c: Likewise.
2200 * po/ko.po: Update from translation team.
2202 * argp/argp-help.c: Handle wide oriented stderr stream.
2204 2001-08-18 Ulrich Drepper <drepper@redhat.com>
2206 * sysdeps/generic/strtol.c: Little optimizations. Add some
2209 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
2211 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
2212 * wcsmbs/wcwidth.c (wcwdith): Likewise.
2213 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
2215 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
2217 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
2219 * time/time.h (struct timespec): Use __time_t for tv_sec element.
2221 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
2222 wchar_t for function declarations and defintions.
2224 * misc/sys/select.h: Define __need_time_t before including <time.h>.
2225 Define suseconds_t if it hasn't happened yet.
2227 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
2229 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
2231 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
2234 * conform/data/stddef.h-data: Remove wint_t.
2236 * conform/conformtest.pl: Change namespace test to take #undef
2239 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
2241 * conform/data/sys/socket.h-data: Add sockatmark.
2243 2001-08-17 Ulrich Drepper <drepper@redhat.com>
2245 * io/fts.c: Update from recent BSD source.
2247 2001-08-17 Roland McGrath <roland@frob.com>
2249 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
2250 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
2253 2001-08-17 Ulrich Drepper <drepper@redhat.com>
2255 * locale/duplocale.c (__duplocale): Also initialize the special
2258 * conform/data/netdb.h-data: Adjust gai_strerror return type.
2260 2001-08-17 Andreas Jaeger <aj@suse.de>
2262 * misc/getpass.c: Include wchar.h for prototypes.
2263 * malloc/obstack.c: Likewise.
2265 2001-08-17 Ulrich Drepper <drepper@redhat.com>
2267 * sunrpc/svc_simple.c (universal): Use __write instead of write.
2269 * wcsmbs/wcscoll.c: Also define __wcscoll.
2270 * include/wchar.h: Declare __wcscoll.
2272 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
2273 * libio/vwprintf.c: Likewise.
2274 * libio/wprintf.c: Likewise.
2276 * iconv/gconv_cache.c: Use __munmap instead of munmap.
2278 2001-08-16 Ulrich Drepper <drepper@redhat.com>
2280 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
2282 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
2283 wcslen, and __wcscoll instead of wcscoll.
2285 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
2287 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
2288 __getuid instead of getuid.
2290 * stdio-common/perror.c (perror): Use __close instead of close.
2291 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
2292 * libio/freopen.c (freopen): Likewise.
2293 * libio/freopen64.c (freopen64): Likewise.
2295 * libio/tst-ungetwc2.c (main): Define str const.
2297 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
2298 * libio/fwprintf.c: Also define __fwprintf.
2299 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
2300 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
2301 * assert/assert-perr.c: Likewise.
2302 * assert/assert.c: Likewise.
2303 * gmon/gmon.c: Likewise.
2304 * inet/rcmd.c: Likewise.
2305 * malloc/obstack.c: Likewise.
2306 * misc/err.c: Likewise.
2307 * misc/error.c: Likewise.
2308 * misc/getpass.c: Likewise.
2309 * posix/getopt.c: Likewise.
2310 * resolv/res_hconf.c: Likewise.
2311 * stdio-common/perror.c: Likewise.
2312 * stdio-common/psignal.c: Likewise.
2313 * stdlib/fmtmsg.c: Likewise.
2314 * sunrpc/auth_unix.c: Likewise.
2315 * sunrpc/clnt_perr.c: Likewise.
2316 * sunrpc/clnt_tcp.c: Likewise.
2317 * sunrpc/clnt_udp.c: Likewise.
2318 * sunrpc/clnt_unix.c: Likewise.
2319 * sunrpc/svc_simple.c: Likewise.
2320 * sunrpc/svc_tcp.c: Likewise.
2321 * sunrpc/svc_udp.c: Likewise.
2322 * sunrpc/svc_unix.c: Likewise.
2323 * sunrpc/xdr.c: Likewise.
2324 * sunrpc/xdr_array.c: Likewise.
2325 * sunrpc/xdr_rec.c: Likewise.
2326 * sunrpc/xdr_ref.c: Likewise.
2327 * sysdeps/generic/wordexp.c: Likewise.
2329 * po/it.po: Update from translation team.
2331 * misc/err.c: Handle wide oriented stderr stream.
2333 2001-08-14 Tom Rix <trix@redhat.com>
2335 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
2336 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
2338 2001-08-13 Tom Rix <trix@redhat.com>
2340 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
2341 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
2344 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
2346 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
2347 Store the access registers to the ucontext structure.
2348 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
2351 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
2352 Load the access registers from the ucontext structure.
2353 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
2356 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
2357 offsets to the new ucontext layout.
2358 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
2360 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
2361 of the ucontext structure.
2362 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
2364 2001-08-15 Ulrich Drepper <drepper@redhat.com>
2366 * misc/error.c (error): Handle wide oriented stderr stream correctly.
2367 (error_at_line): Likewise.
2369 * stdio-common/perror.c (perror): Implement according to standard.
2370 The stream orientation must not be changed if the stream was not
2371 oriented before the call.
2372 * stdio-common/Makefile (tests): Add tst-perror.
2373 * stdio-common/tst-perror.c: New file.
2376 See ChangeLog.12 for earlier changes.