1 2001-12-05 Ulrich Drepper <drepper@redhat.com>
3 * iconvdata/Makefile (modules): Add TCVN5712-1.
4 * iconvdata/TESTS: Add TCVN5712-1.
5 * iconvdata/gconv-modules: Likewise.
6 * iconvdata/tcvn5712-1.c: New file.
7 * iconvdata/testdata/TCVN5712-1: New file.
8 * iconvdata/testdata/TCVN5712-1..UTF8: New file.
10 2001-12-04 Ulrich Drepper <drepper@redhat.com>
12 * iconvdata/cp1258.c: Optimize conversion from UCS4.
14 2001-12-02 Roland McGrath <roland@frob.com>
16 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
18 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
19 Reported by Jeff Bailey <jbailey@nisa.net>.
21 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
22 Reported by Jeff Bailey <jbailey@nisa.net>.
24 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
25 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
26 Reported by Jeff Bailey <jbailey@nisa.net>.
28 2001-12-01 Roland McGrath <roland@frob.com>
30 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
31 missing backslash in test arguments.
32 * sysdeps/mach/hurd/configure: Regenerated.
34 2001-11-26 Roland McGrath <roland@frob.com>
36 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
37 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
39 2001-11-30 Ulrich Drepper <drepper@redhat.com>
41 * iconvdata/Makefile (modules): Add ARMSCII-8.
42 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
43 * iconvdata/armscii-8.c: New file.
45 2001-11-29 Jakub Jelinek <jakub@redhat.com>
47 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
48 don't match, fix {{a,b},c} globbing, clean up.
49 Patch by Flavio Veloso <flaviovs@magnux.com>.
50 * posix/globtest.sh: Add new tests.
52 2001-11-29 Andreas Jaeger <aj@suse.de>
54 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
55 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
57 * sysdeps/generic/abort.c: Include libioP.h for
58 _IO_flush_all_lockp prototype.
60 2001-11-29 Ulrich Drepper <drepper@redhat.com>
62 * posix/regex.h: Define __restrict_arr correctly.
64 2001-11-28 Ulrich Drepper <drepper@redhat.com>
66 * iconvdata/ibm1163.c: New file.
67 * iconvdata/ibm1163.h: New file.
68 * iconvdata/ibm1164.c: New file.
69 * iconvdata/ibm1164.h: New file.
70 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
71 * iconvdata/Makefile: Likewise.
72 * iconvdata/testdata/IBM1163: New file.
73 * iconvdata/testdata/IBM1163..UTF8: New file.
74 * iconvdata/testdata/IBM1164: New file.
75 * iconvdata/testdata/IBM1164..UTF8: New file.
76 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
78 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
79 * iconvdata/ibm1124.h: Likewise.
80 * iconvdata/ibm1132.h: Likewise.
81 * iconvdata/ibm1133.h: Likewise.
82 * iconvdata/ibm1160.h: Likewise.
83 * iconvdata/ibm1161.h: Likewise.
84 * iconvdata/ibm1162.h: Likewise.
85 * iconvdata/ibm856.h: Likewise.
86 * iconvdata/ibm922.h: Likewise.
87 * iconvdata/ibm930.h: Likewise.
88 * iconvdata/ibm932.h: Likewise.
89 * iconvdata/ibm933.h: Likewise.
90 * iconvdata/ibm935.h: Likewise.
91 * iconvdata/ibm937.h: Likewise.
92 * iconvdata/ibm939.h: Likewise.
93 * iconvdata/ibm943.h: Likewise.
94 * iconvdata/ibm930.c: Pretty printing.
95 * iconvdata/ibm937.c: Avoid access accross array boundary.
97 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
98 the current locale's codeset.
99 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
101 * iconv/iconv_prog.c: Pass empty strings as default value for to-
102 and from-charset. Don't determine locale's charset here.
104 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
105 as the old _IO_flush_all but lock only if parameter is nonzero.
106 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
107 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
108 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
109 if libio is used [PR libc/2575].
111 2001-11-28 Jakub Jelinek <jakub@redhat.com>
113 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
114 __signbitl): Only define for ISO C99.
116 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
118 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
119 herrnop to NETDB_INTERNAL if we run out of buffer space.
121 2001-11-28 Ulrich Drepper <drepper@redhat.com>
123 * nss/nss_files/files-XXX.c (internal_getent): Correct input
124 overflow test for platforms with signed char.
125 Reported by Andrew Haley <aph@cambridge.redhat.com>.
127 2001-11-28 Bruno Haible <bruno@clisp.org>
129 * locale/programs/simple-hash.c (lookup_2): Remove function.
130 (insert_entry_2): Call lookup instead of lookup_2.
132 2001-03-04 Bruno Haible <bruno@clisp.org>
134 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
136 2001-10-31 Bruno Haible <bruno@clisp.org>
138 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
140 2001-03-21 Bruno Haible <bruno@clisp.org>
142 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
143 chokes on empty macro arguments.
144 * intl/plural.y: Add #pragma for alloca on AIX 3.
146 2001-11-27 Ulrich Drepper <drepper@redhat.com>
148 * intl/dcigettext.c (guess_category_value): Only implement for
149 glibc. Otherwise rely on function _nl_locale_name which isn't
150 present in the glibc sources.
152 2001-09-24 Bruno Haible <bruno@clisp.org>
154 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
155 transliteration when building on a glibc system but outside glibc.
157 2001-09-22 Bruno Haible <bruno@clisp.org>
159 * intl/plural-eval.c: New file, extracted from dcigettext.c.
160 * intl/dcigettext.c (plural_eval): Remove function, moved to
162 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
163 Include plural-eval.c.
165 2001-09-22 Bruno Haible <bruno@clisp.org>
167 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
168 don't start with a digit; nplurals must be positive.
170 2001-09-02 Bruno Haible <bruno@clisp.org>
172 * intl/plural-exp.h: New file, extracted from gettextP.h.
173 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
174 * intl/gettextP.h (struct expression, struct parse_args,
175 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
176 * intl/loadmsgcat.c: Include plural-exp.h.
177 (PLURAL_PARSE): Move macro to plural-exp.h.
178 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
180 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
181 EXTRACT_PLURAL_EXPRESSION.
182 (_nl_unload_domain): Update.
183 * intl/dcigettext.c: Include plural-exp.h.
184 * intl/plural.y: Include plural-exp.h, not gettextP.h.
185 (FREE_EXPRESSION): Move macro to plural-exp.h.
186 * intl/Makefile (routines): Add plural-exp.
187 (distribute): Add plural-exp.h.
189 2001-07-28 Bruno Haible <bruno@clisp.org>
191 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
192 isdigit, tolower argument to 'unsigned char'.
193 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
195 * intl/localealias.c (read_alias_file): Cast isspace argument to
198 2001-10-20 Bruno Haible <bruno@clisp.org>
200 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
202 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
203 with the variable 'index' in plural_lookup.
204 * intl/l10nflist.c (strchr): Likewise.
205 * intl/localealias.c (strchr): Likewise.
207 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
208 * intl/bindtextdom.c: Likewise.
209 * intl/dcigettext.c: Likewise.
210 * intl/dgettext.c: Likewise.
211 * intl/dngettext.c: Likewise.
212 * intl/explodename.c: Likewise.
213 * intl/finddomain.c: Likewise.
214 * intl/gettext.c: Likewise.
215 * intl/l10nflist.c: Likewise.
216 * intl/loadmsgcat.c: Likewise.
217 * intl/localealias.c: Likewise.
218 * intl/ngettext.c: Likewise.
219 * intl/textdomain.c: Likewise.
220 * intl/gettext.h: Assume <limits.h> exists.
222 2001-11-27 Ulrich Drepper <drepper@redhat.com>
224 * stdio-common/Makefile (tests): Add scanf11.
225 * stdio-common/scanf11.c: New file.
227 2001-11-26 Ulrich Drepper <drepper@redhat.com>
229 * version.h (RELEASE): Define as development.
230 (VERSION): Set to 2.2.90.
232 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
234 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
235 * nis/nss_nis/nis-grp.c: Likewise.
236 * nis/nss_nisplus/nisplus-grp.c: Likewise.
238 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
239 * nis/nss_nis/nis-pwd.c: Likewise.
240 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
242 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
243 * nis/nss_nisplus/nisplus-parser.c: Likewise.
244 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
246 * nscd/grpcache.c: Use strtoul instead of atol.
247 * nscd/pwdcache.c: Likewise.
248 * nss/getent.c: Likewise.
250 2001-11-27 Paul Eggert <eggert@twinsun.com>
252 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
253 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
255 2001-11-19 Bruno Haible <bruno@clisp.org>
257 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
259 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
260 improves the quality of the hash function, especially for short
263 2001-11-26 Ulrich Drepper <drepper@redhat.com>
265 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
266 are found call conv_error and not input_error [PR libc/2669].
268 * math/bits/mathcalls.h: Mark ceil and floor as const.
269 Reported by David Mosberger.
271 2001-11-21 Jim Meyering <meyering@lucent.com>
273 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
274 Define to be __-prefixed.
275 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
277 2001-11-26 Andreas Jaeger <aj@suse.de>
279 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
282 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
284 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
287 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
288 unused variables. Fix threshold for returning 1.0.
290 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
293 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
294 remove unused variables.
296 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
298 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
299 include local math header files.
301 2001-11-22 Andreas Jaeger <aj@suse.de>
303 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
306 2001-11-21 Andreas Jaeger <aj@suse.de>
308 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
310 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
313 2001-11-15 Andreas Jaeger <aj@suse.de>
315 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
316 compilers that support it.
318 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
319 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
320 * stdlib/stdlib.h: Likewise.
322 2001-11-17 Ulrich Drepper <drepper@redhat.com>
324 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
325 statement with gotos.
326 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
328 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
330 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
332 2001-11-15 Ulrich Drepper <drepper@redhat.com>
334 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
336 2001-10-02 Jakub Jelinek <jakub@redhat.com>
337 H.J. Lu <hjl@gnu.org>
339 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
340 if gcc supports this flag.
341 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
342 (gcc3): Allow glibc to be compiled with gcc 3.x.
343 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
344 * config.make.in (static-libgcc, unwind-find-fde): Add.
345 * Makerules (build-shlib-helper, build-module-helper): Use it.
346 * scripts/versions.awk: Make sure GLIBC_ versions come first.
347 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
349 (_fini): Call __deregister_frame_info_bases if
350 __register_frame_info_bases was used to register.
351 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
353 (__register_frame_info_bases, __register_frame_info_table_bases,
354 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GLIBC_2.2.5.
355 * elf/Makefile (routines): Add unwind-dw2-fde.
356 (shared-only-routines): Add unwind-dw2-fde.
357 * sysdeps/alpha/gccframe.h: New file.
358 * sysdeps/arm/gccframe.h: New file.
359 * sysdeps/generic/framestate.c: New file.
360 * sysdeps/generic/dwarf2.h: New file.
361 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
362 * sysdeps/generic/unwind-dw2-fde.c: New file.
363 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
364 * sysdeps/generic/unwind-dw2-fde.h: New file.
365 * sysdeps/generic/unwind-dw2.c: New file.
366 * sysdeps/generic/unwind-pe.h: New file.
367 * sysdeps/generic/unwind.h: New file.
368 * sysdeps/hppa/gccframe.h: New file.
369 * sysdeps/i386/gccframe.h: New file.
370 * sysdeps/m68k/gccframe.h: New file.
371 * sysdeps/mips/gccframe.h: New file.
372 * sysdeps/powerpc/gccframe.h: New file.
373 * sysdeps/s390/gccframe.h: New file.
374 * sysdeps/sh/gccframe.h: New file.
375 * sysdeps/sparc/gccframe.h: New file.
376 * sysdeps/vax/gccframe.h: New file.
377 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
378 Set on all architectures except ia64.
379 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
381 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
382 __deregister_frame_info): Move to elf/Versions.
383 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
384 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
385 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
386 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
387 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
388 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
389 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
390 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
391 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
392 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
393 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
394 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
395 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
396 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
397 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
398 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
399 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
400 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
402 2001-11-15 Jeff Law <law@redhat.com>
404 * posix/regex.c (uintptr_t): Do not provide a definition if the
407 2001-11-13 Roland McGrath <roland@frob.com>
409 * stdio-common/tmpfile.c: Moved to ...
410 * sysdeps/generic/tmpfile.c: ... here.
411 * sysdeps/mach/hurd/tmpfile.c: New file.
413 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
414 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
415 (fopenport): Define as weak alias.
417 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
418 * libio/libioP.h: ... to here.
420 2001-11-12 Ulrich Drepper <drepper@redhat.com>
422 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
423 program header twice. Construct list with the needed information.
425 2001-11-10 Ulrich Drepper <drepper@redhat.com>
427 * po/ca.po: Update from translation team.
429 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
430 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
431 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
432 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
434 2001-11-10 Andreas Jaeger <aj@suse.de>
436 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
437 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
438 Contributed by Stephen L Moshier <moshier@mediaone.net>.
440 2001-11-09 Ulrich Drepper <drepper@redhat.com>
442 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
444 * elf/dl-load.c (is_dst): New function.
445 (_dl_dst_count): Use is_dst to check for DST variable.
446 (_dl_dst_substitute): Likewise.
448 2001-11-09 Roland McGrath <roland@frob.com>
450 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
451 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
452 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
453 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
454 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
455 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
456 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
457 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
458 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
459 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
460 * sysdeps/mach/hurd/powerpc/Dist: New file.
462 * hurd/privports.c (__get_privileged_ports):
463 Only contact the proc server if necessary for this call.
464 Suggested by Neal H Walfield <neal@cs.uml.edu>.
465 Check error return for mach_port_mod_refs.
467 2001-11-09 Andreas Schwab <schwab@suse.de>
469 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
471 2001-11-09 Ulrich Drepper <drepper@redhat.com>
473 * elf/dl-load.c (lose): Remove some unnecessary code. The new
474 object is always the last in the list.
475 (_dl_map_object_from_fd): Delete code to remove from object list
476 when DF_1_NOOPEN is seen. This is done in lose.
478 2001-11-08 Ulrich Drepper <drepper@redhat.com>
480 * elf/dl-object.c (_dl_new_object): Various small optimizations.
482 2001-11-07 Ulrich Drepper <drepper@redhat.com>
484 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
485 HWCAP_CHECK macro code.
487 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
488 Now returns MAP_FAILED on error.
489 * elf/rtld.c: Adjust caller.
490 * sysdeps/generic/dl-cache.c: Likewise.
491 * sysdeps/generic/ldsodefs.h: Adjust description.
493 * elf/dl-version.c (match_symbol): Optimize error handling for size.
494 (_dl_check_map_versions): Likewise.
496 2001-11-06 Ulrich Drepper <drepper@redhat.com>
498 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
499 _dl_signal_error directly, always use lose. Set fd to -1 after
501 (lose): Don't call close if fd == -1.
503 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
505 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
506 Also fix typo @code {mbsinit} to @code{mbsinit}.
508 2001-11-06 Ulrich Drepper <drepper@redhat.com>
510 * elf/dl-profile.c: Replace state variable with simple flag named
511 running. Remove commented-out code.
513 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
514 (_dl_init_paths): Likewise.
515 (_dl_map_object_from_fd): Likewise.
516 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
518 2001-11-06 Roland McGrath <roland@frob.com>
520 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
521 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
523 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
524 sysdeps/powerpc/elf/sysdep.h.
525 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
527 2001-11-05 Ulrich Drepper <drepper@redhat.com>
529 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
531 (process_envvars): Some more optimizations.
532 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
534 * elf/elf.h: Add dynamic tag definitions for prelinking.
536 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
537 Rewrite code to remove environment varables for SUID binaries.
538 Small optimization in LD_PROFILE handling.
539 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
541 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
543 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
545 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
546 strings. Change type of second parameter.
547 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
550 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
552 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
554 * manual/string.texi: Fix typos.
555 * manual/examples/argp-ex2.c: Likewise.
557 2001-11-05 Roland McGrath <roland@frob.com>
559 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
560 the more-specific unix/sysv/linux/powerpc file and breaks everything.
561 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
562 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
563 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
564 here, put under [__ELF__].
566 2001-11-05 Ulrich Drepper <drepper@redhat.com>
568 * manual/charset.texi: Extensive editing work.
569 * manual/nss.texi: Likewise.
570 Changes by Dennis Grace <dgrace@us.ibm.com>.
572 2001-11-04 Roland McGrath <roland@frob.com>
574 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
575 parameter to dir_mkfile.
577 2001-11-02 Jakub Jelinek <jakub@redhat.com>
579 * string/bits/string2.h (__strndup): If n is smaller than len, set
581 * string/tester.c (test_strndup): New function.
584 2001-11-01 Ulrich Drepper <drepper@redhat.com>
586 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
588 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
589 * scripts/cpp: New file.
591 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
592 for rtld_search_dirs content. Minor optimizations.
594 2001-10-31 Ulrich Drepper <drepper@redhat.com>
596 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
597 avoiding unnecessary duplication.
599 2001-10-31 Jakub Jelinek <jakub@redhat.com>
601 * elf/dl-load.c (_dl_map_object): If library was found using
602 LD_LIBRARY_PATH, don't try RUNPATH list.
604 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
606 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
607 Correct second argument of register_dump call.
608 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
611 2001-10-31 Ulrich Drepper <drepper@redhat.com>
613 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
615 * iconvdata/TESTS: Likewise.
616 * iconvdata/gconv-modules: Likewise.
617 * iconvdata/ibm1132.c: New file.
618 * iconvdata/ibm1132.h: New file.
619 * iconvdata/ibm1133.c: New file.
620 * iconvdata/ibm1133.h: New file.
621 * iconvdata/ibm1162.c: New file.
622 * iconvdata/ibm1162.h: New file.
623 * iconvdata/testdata/IBM1132: New file.
624 * iconvdata/testdata/IBM1132..UTF8: New file.
625 * iconvdata/testdata/IBM1133: New file.
626 * iconvdata/testdata/IBM1133..UTF8: New file.
627 * iconvdata/testdata/IBM1162: New file.
628 * iconvdata/testdata/IBM1162..UTF8: New file.
629 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
631 * string/string.h: Fix typo in comment.
632 * wcsmbs/wchar.h: Likewise.
634 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
636 * manual/getopt.texi (getopt_long, getopt_long_only): Include
637 const in type of longopts parameter.
639 2001-10-29 Andreas Jaeger <aj@suse.de>
641 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
643 2001-10-29 Kevin Ryde <user42@zip.com.au>
645 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
646 output, clarify `#' behaviour on 0.
647 (Floating-Point Conversions): Clarify that %g only uses %e when
648 the exponent would be greater than 1.
650 2001-10-28 Roland McGrath <roland@frob.com>
652 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
653 * sysdeps/mach/powerpc/machine-sp.h: New file.
654 * sysdeps/mach/powerpc/sysdep.h: New file.
655 * sysdeps/mach/powerpc/thread_state.h: New file.
657 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
658 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
659 expect to need the same thing on every platform.
661 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
662 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
664 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
665 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
666 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
667 Move all these assembly-related definitions to ...
668 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
670 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
671 by Peter Bruin <pjbruin@dds.nl>.
673 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
674 packing results for a `poll' call.
676 2001-10-26 Ulrich Drepper <drepper@redhat.com>
678 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
680 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
683 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
685 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
687 2001-10-24 H.J. Lu <hjl@gnu.org>
689 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
690 Use __BEGIN_DECLS/__END_DECLS around prototypes.
691 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
693 2001-10-21 Jim Meyering <meyering@lucent.com>
695 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
696 this code would end up calling gettext even in packages built
698 * posix/getopt.c (_): Likewise.
699 * posix/regex.c (_): Likewise.
701 2001-10-26 Ulrich Drepper <drepper@redhat.com>
703 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
705 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
706 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
708 2001-10-19 Jakub Jelinek <jakub@redhat.com>
710 * misc/sys/cdefs.h (__attribute_used__): Define.
711 * elf/rtld.c (_dl_start): Add __attribute_used__.
712 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
714 2001-10-25 Andreas Schwab <schwab@suse.de>
716 * stdlib/a64l.c: Expect least significant digit first.
717 * stdlib/l64a.c: Produce least significant digit first.
718 * stdlib/Makefile (tests): Add test-a64l.
719 * stdlib/test-a64l.c: New file.
720 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
722 2001-10-21 Ulrich Drepper <drepper@redhat.com>
724 * po/sk.po: Update from translation team.
726 2001-10-18 Ulrich Drepper <drepper@redhat.com>
728 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
730 2001-10-18 Andreas Schwab <schwab@suse.de>
732 * math/libm-test.inc (print_ulps): Print ulp values rounded to
734 (print_function_ulps): Likewise.
735 (print_complex_function_ulps): Likewise.
736 (print_max_error): Likewise.
737 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
739 2001-10-16 Andreas Schwab <schwab@suse.de>
741 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
744 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
745 BSD_SETJMP or BSD__SETJMP is defined, resp.
746 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
747 a tail call to __sigsetjmp that would require extending the
749 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
750 * sysdeps/m68k/bsd-setjmp.S: Deleted.
751 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
752 Reported by Jes Sorensen <jes@trained-monkey.org>.
754 2001-10-16 Andreas Jaeger <aj@suse.de>
756 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
757 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
760 2001-10-15 Ulrich Drepper <drepper@redhat.com>
762 * po/ca.po: New file. Contributed by the translation team.
764 2001-10-15 Ralf Baechle <ralf@gnu.org>
766 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
767 a varargs prototype. Remove dependency from kernel header files.
769 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
770 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
772 2001-10-14 Ulrich Drepper <drepper@redhat.com>
774 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
775 to generate hexadecimal identifier.
776 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
778 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
780 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
782 2001-10-14 Ulrich Drepper <drepper@redhat.com>
784 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
785 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
786 Contributed by Stephen L Moshier <moshier@mediaone.net>.
788 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
789 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
790 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
791 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
792 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
793 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
795 * timezone/africa: Update from tzdata2001d.
796 * timezone/asia: Likewise.
797 * timezone/australasia: Likewise.
798 * timezone/backward: Likewise.
799 * timezone/europe: Likewise.
800 * timezone/leapseconds: Likewise.
801 * timezone/northamerica: Likewise.
802 * timezone/southamerica: Likewise.
803 * timezone/zone.tab: Likewise.
805 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
807 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
808 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
810 2001-10-12 Ulrich Drepper <drepper@redhat.com>
812 * elf/elf.h (PT_TLS): New definition.
814 2001-10-10 Jeff Bailey <jbailey@nisa.net>
816 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
819 2001-10-07 Roland McGrath <roland@frob.com>
821 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
823 2001-10-10 Ulrich Drepper <drepper@redhat.com>
825 * elf/elf.h: Add more ELFOSABI_* constants.
827 2001-10-04 Ben Collins <bcollins@debian.org>
829 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
830 decleration of __need_wchar_t.
832 2001-10-03 Jakub Jelinek <jakub@redhat.com>
834 * string/bits/string2.h (__strsep_g): Add prototype.
836 * string/Versions (__strsep): Remove.
837 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
839 2001-10-07 Ulrich Drepper <drepper@redhat.com>
841 * manua/llio.texi: Clarify file references added by mmap.
842 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
844 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
846 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
847 Add sc_loadrs and sc_rbs_bas to match current kernel.
849 2001-09-27 Jakub Jelinek <jakub@redhat.com>
851 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
853 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
855 2001-09-27 Jakub Jelinek <jakub@redhat.com>
857 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
858 object has been bumped because of relocation dependency, avoid
859 duplicates in l_scope.
860 (show_scope): Fix typos.
861 * elf/Makefile: Add rules to build and run reldep6.
862 * elf/reldep6.c: New file.
863 * elf/reldep6mod0.c: New file.
864 * elf/reldep6mod1.c: New file.
865 * elf/reldep6mod2.c: New file.
866 * elf/reldep6mod3.c: New file.
867 * elf/reldep6mod4.c: New file.
869 2001-09-26 Jakub Jelinek <jakub@redhat.com>
871 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
873 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
874 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
875 for non-lazy binding. Fix .plt[32768+] handling.
876 (elf_machine_plt_value): Don't add addend.
877 (elf_machine_rela): Call sparc64_fixup_plt instead of
878 elf_machine_fixup_plt.
879 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
880 dynamic linker at 0xfffff800XXXXXXXX.
882 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
884 2001-09-28 Ulrich Drepper <drepper@redhat.com>
886 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
888 2001-09-25 Jakub Jelinek <jakub@redhat.com>
890 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
891 declare __cmsg_data field if its size would be bigger than 0.
892 (CMSG_DATA): Adjust accordingly.
893 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
894 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
895 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
896 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
897 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
898 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
899 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
901 2001-09-25 Ulrich Drepper <drepper@redhat.com>
903 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
904 * iconvdata/testdata/IBM1160: New file.
905 * iconvdata/testdata/IBM1160..UTF8: New file.
906 * iconvdata/testdata/IBM1161: New file.
907 * iconvdata/testdata/IBM1161..UTF8: New file.
908 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
910 2001-09-24 Ulrich Drepper <drepper@redhat.com>
912 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
913 UL_SETFSIZE computations better.
915 * rt/Makefile: Remove use of filter for librt again.
917 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
918 UL_SETFSIZE computations better.
920 * string/Versions: Export __strsep for GLIBC_2.2.5.
921 * string/bits/string2.h: Define all __STRING_INLINE functions if
922 _FORCE_INLINES is defined.
923 Use int instead of char of parameter types.
924 (__strsep): Don't use __strsep_g. Don't define it.
925 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
926 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
928 (__stpcpy_a_small): Renamed from __stpcpy_small.
929 (__strcspn_c1): Don't define if _FORCE_INLINES.
930 (__strspn_c1): Likewise.
932 2001-09-22 Ben Collins <bcollins@debian.org>
934 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
935 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
936 * sysdeps/ia64/bits/sigaction.h: Likewise.
937 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
939 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
941 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
943 2001-09-24 Jakub Jelinek <jakub@redhat.com>
945 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
947 2001-09-24 Ulrich Drepper <drepper@redhat.com>
949 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
951 2001-09-20 H.J. Lu <hjl@gnu.org>
953 * include/dlfcn.h (__RTLD_SPROF): New definiton.
954 * elf/dl-open.c (dl_open_worker): Return immediately after loading
956 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
957 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
959 2001-09-20 H.J. Lu <hjl@gnu.org>
961 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
964 2001-09-22 Ulrich Drepper <drepper@redhat.com>
966 * nss/getent.c: Accept -s parameter to overwrite rules in
967 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
969 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
970 with as many ".0" as necessary to form a complete address
971 inet_network understands.
973 * nss/getent.c: Various cleanups. Use simpler and fewer function
976 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
978 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
980 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
982 2001-09-22 Ulrich Drepper <drepper@redhat.com>
984 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
986 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
987 * iconvdata/ibm1160.c: New file.
988 * iconvdata/ibm1160.h: New file.
989 * iconvdata/ibm1161.c: New file.
990 * iconvdata/ibm1161.h: New file.
991 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
993 2001-09-19 Jakub Jelinek <jakub@redhat.com>
995 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
996 difference between base address and first PT_LOAD's virtual address,
997 not the base address.
999 2001-09-11 Tom Rix <trix@redhat.com>
1001 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
1002 ifdef for __getopt_clean_environment.
1003 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
1005 2001-09-22 Andreas Jaeger <aj@suse.de>
1007 * elf/reldep4.c (main): Add proper prototype to fix warning.
1009 * elf/reldep5.c (main): Remove unused variable.
1011 * math/math_private.h: Add prototypes.
1013 2001-09-21 Andreas Jaeger <aj@suse.de>
1015 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
1016 * sysdeps/x86_64/Dist: New file.
1017 * sysdeps/x86_64/soft-fp/Dist: New file.
1019 * sysdeps/gnu/Dist: Remove eval.c.
1021 2001-09-20 Ulrich Drepper <drepper@redhat.com>
1023 * malloc/memusage.c (realloc): Don't count already allocated
1025 (me): Always use dlsym() to find the real implementations.
1027 * malloc/memusage.sh: Make -n option actually do something.
1029 2001-09-20 Andreas Jaeger <aj@suse.de>
1031 * elf/elf.h (R_390_NUM): Correct value.
1033 * Versions.def: Add missing versions 2.2.3 for libthread_db and
1036 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
1037 for x86-64, install x86-64 into */lib64.
1039 * shlib-versions: Add x86-64.
1041 * elf/elf.h: Add x86-64 relocations.
1043 2001-09-19 Ulrich Drepper <drepper@redhat.com>
1045 * po/fr.po: Update from translation team.
1047 2001-09-19 Andreas Jaeger <aj@suse.de>
1049 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
1050 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
1051 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
1052 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
1053 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
1054 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
1055 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
1056 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
1057 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
1058 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
1059 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
1060 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
1061 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
1062 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
1063 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
1064 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
1065 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
1066 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
1067 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
1068 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
1069 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
1070 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
1071 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
1072 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
1073 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
1074 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
1075 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
1076 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
1077 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
1078 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
1079 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
1080 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
1081 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
1082 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
1083 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
1084 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
1085 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
1086 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
1087 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
1088 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
1089 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
1090 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
1091 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
1092 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
1093 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
1094 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
1095 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
1096 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
1097 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
1098 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
1099 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
1100 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
1101 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
1102 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
1103 * sysdeps/unix/x86_64/sysdep.S: New file.
1104 * sysdeps/unix/x86_64/sysdep.h: New file.
1105 * sysdeps/x86_64/Implies: New file.
1106 * sysdeps/x86_64/Makefile: New file.
1107 * sysdeps/x86_64/Versions: New file.
1108 * sysdeps/x86_64/__longjmp.S: New file.
1109 * sysdeps/x86_64/abort-instr.h: New file.
1110 * sysdeps/x86_64/atomicity.h: New file.
1111 * sysdeps/x86_64/bits/endian.h: New file.
1112 * sysdeps/x86_64/bits/setjmp.h: New file.
1113 * sysdeps/x86_64/bits/string.h: New file.
1114 * sysdeps/x86_64/bp-asm.h: New file.
1115 * sysdeps/x86_64/bsd-_setjmp.S: New file.
1116 * sysdeps/x86_64/bsd-setjmp.S: New file.
1117 * sysdeps/x86_64/dl-machine.h: New file.
1118 * sysdeps/x86_64/elf/initfini.c: New file.
1119 * sysdeps/x86_64/elf/start.S: New file.
1120 * sysdeps/x86_64/ffs.c: New file.
1121 * sysdeps/x86_64/ffsll.c: New file.
1122 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
1123 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
1124 * sysdeps/x86_64/fpu/e_acosl.c: New file.
1125 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
1126 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
1127 * sysdeps/x86_64/fpu/e_expl.c: New file.
1128 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
1129 * sysdeps/x86_64/fpu/e_log10l.S: New file.
1130 * sysdeps/x86_64/fpu/e_log2l.S: New file.
1131 * sysdeps/x86_64/fpu/e_logl.S: New file.
1132 * sysdeps/x86_64/fpu/e_powl.S: New file.
1133 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
1134 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
1135 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
1136 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
1137 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
1138 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
1139 * sysdeps/x86_64/fpu/fegetenv.c: New file.
1140 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
1141 * sysdeps/x86_64/fpu/fegetround.c: New file.
1142 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
1143 * sysdeps/x86_64/fpu/fesetenv.c: New file.
1144 * sysdeps/x86_64/fpu/fesetround.c: New file.
1145 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
1146 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
1147 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
1148 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
1149 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
1150 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
1151 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
1152 * sysdeps/x86_64/fpu/s_atanl.c: New file.
1153 * sysdeps/x86_64/fpu/s_cosl.S: New file.
1154 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
1155 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
1156 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
1157 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
1158 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
1159 * sysdeps/x86_64/fpu/s_logbl.c: New file.
1160 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
1161 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
1162 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
1163 * sysdeps/x86_64/fpu/s_rintl.c: New file.
1164 * sysdeps/x86_64/fpu/s_significandl.c: New file.
1165 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
1166 * sysdeps/x86_64/fpu/s_sinl.S: New file.
1167 * sysdeps/x86_64/fpu/s_tanl.S: New file.
1168 * sysdeps/x86_64/gmp-mparam.h: New file.
1169 * sysdeps/x86_64/hp-timing.c: New file.
1170 * sysdeps/x86_64/hp-timing.h: New file.
1171 * sysdeps/x86_64/htonl.S: New file.
1172 * sysdeps/x86_64/memusage.h: New file.
1173 * sysdeps/x86_64/setjmp.S: New file.
1174 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
1175 * sysdeps/x86_64/stackinfo.h: New file.
1176 * sysdeps/x86_64/sysdep.h: New file.
1177 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
1179 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
1182 2001-09-18 Ulrich Drepper <drepper@redhat.com>
1184 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
1185 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
1187 2001-09-18 Andreas Schwab <schwab@suse.de>
1189 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
1190 list, now that l_scope is a pointer.
1192 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
1195 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
1197 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
1198 (elf_machine_rela_relative): Add a missing declaration.
1200 2001-09-18 Jakub Jelinek <jakub@redhat.com>
1202 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
1203 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
1204 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
1205 ldd-rewrite scripts.
1207 2001-09-18 Ulrich Drepper <drepper@redhat.com>
1209 * elf/ldd.bash.in: Update copyright message.
1211 2001-09-17 H.J. Lu <hjl@gnu.org>
1213 * hurd/hurdmalloc.c (bcopy): Removed.
1214 (realloc): Replace bcopy with memcpy.
1215 * hurd/path-lookup.c (file_name_path_scan): Likewise.
1216 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
1217 * sunrpc/rpcinfo.c (pmapdump): Likewise.
1219 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
1220 (gethostbyaddr): Likewise.
1221 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
1223 2001-09-18 Ulrich Drepper <drepper@redhat.com>
1225 * sysdeps/gnu/eval.c: Removed.
1227 2001-09-18 Andreas Jaeger <aj@suse.de>
1229 * sysdeps/i386/fpu/s_logbl.S: Move to ...
1230 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
1232 * sysdeps/i386/fpu/s_rintl.S: Move to ...
1233 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
1235 * sysdeps/i386/fpu/s_significandl.S: Move to ...
1236 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
1238 2001-09-16 Ulrich Drepper <drepper@redhat.com>
1240 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
1243 2001-09-14 H.J. Lu <hjl@gnu.org>
1245 * sysdeps/mips/fpu/libm-test-ulps: Updated.
1247 2001-09-14 Ulrich Drepper <drepper@redhat.com>
1249 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
1250 Patch by Florian La Roche <laroche@redhat.com>.
1252 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
1254 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
1257 2001-09-14 Andreas Schwab <schwab@suse.de>
1259 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
1260 Sumner <bls@sgi.com>.
1261 * posix/execlp.c: Likewise.
1263 2001-09-13 Jakub Jelinek <jakub@redhat.com>
1265 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
1266 is already found earlier in the search scope.
1268 2001-09-12 Jakub Jelinek <jakub@redhat.com>
1270 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
1273 2001-09-13 Ulrich Drepper <drepper@redhat.com>
1275 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
1277 2001-09-12 Ulrich Drepper <drepper@redhat.com>
1279 * config.h.in: Enforce optimization to be used.
1280 * Makeconfig (preprocess-versions): Define ASSEMBLER.
1281 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
1282 * posix/Makefile (annexc-CFLAGS): Define to -O.
1283 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
1285 2001-09-11 Ulrich Drepper <drepper@redhat.com>
1287 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
1288 Patch by Stephan Kulow.
1290 2001-09-08 Ben Collins <bcollins@debian.org>
1292 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
1293 usage of RESOLVE() (r_type, not reloc->r_type).
1295 2001-09-08 Ulrich Drepper <drepper@redhat.com>
1297 * elf/dl-object.c: Avoid allocating extra memory block for name.
1298 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
1299 allocated separately.
1300 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1302 2001-09-08 H.J. Lu <hjl@gnu.org>
1304 * po/zh_TW.po: Fix a typo.
1306 2001-09-07 Tom Rix <trix@redhat.com>
1308 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
1310 2001-08-26 Tom Rix <trix@redhat.com>
1312 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
1313 command line options.
1314 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
1315 * sysdeps/unix/sysv/aix/start.c: Removed.
1316 * sysdeps/unix/sysv/aix/start-libc.c: New file.
1317 * sysdeps/unix/sysv/aix/init-first.c: New file.
1318 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
1320 2001-09-08 Ben Collins <bcollins@debian.org>
1322 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
1323 * sysdeps/generic/dl-machine.h: Likewise.
1324 * sysdeps/hppa/dl-fptr.c: Likewise.
1325 * sysdeps/ia64/dl-fptr.c: Likewise.
1326 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
1327 * sysdeps/mips/dl-machine.h: Likewise.
1328 * sysdeps/mips/mips64/dl-machine.h: Likewise.
1329 * sysdeps/powerpc/dl-machine.c: Likewise.
1331 2001-09-07 Ben Collins <bcollins@debian.org>
1333 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
1335 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
1337 2001-09-08 Ulrich Drepper <drepper@redhat.com>
1339 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
1340 dependencies if necessary.
1342 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
1343 loaded directly) determine length if l_initfini list by iterating
1344 over its elements. Minor optimizations.
1345 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
1346 for dependency objects.
1347 If object was already loaded check whether any of the dependencies
1348 is already on the relocation dependency list. If yes, remove the
1349 latter. Minor optimizations.
1350 * elf/dl-lookup.c (add_dependency): Add check for self reference of
1351 maps here. Search l_initfini list only if the object was loaded
1352 directly and not only as a dependency.
1353 (_dl_lookup_symbol): Add relocation dependency also if object
1354 is not in global scope. Remove test for self-reference here.
1355 (_dl_lookup_versioned_symbol): Likewise.
1356 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
1357 element of first name record.
1358 * elf/loadtest.c: Add some more test to recognize early if an object
1360 * elf/Makefile: Add rules to build and run reldep5.
1361 * elf/reldep5.c: New file.
1362 * elf/reldepmod5.c: New file.
1363 * elf/reldepmod6.c: New file.
1365 * elf/reldep2.c: Fix typo.
1367 2001-09-07 Ulrich Drepper <drepper@redhat.com>
1369 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
1370 elements. Change l_scope to be a pointer only.
1371 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
1372 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
1373 here add searchlist of newly open file to the dependency's scope.
1374 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
1375 only searchlist from its scope. Free own scope array if necessary.
1376 * elf/Makefile (tests): Add dblload and dblunload now.
1378 2001-09-06 Andreas Jaeger <aj@suse.de>
1380 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
1383 2001-09-05 Ulrich Drepper <drepper@redhat.com>
1385 * elf/Makefile: Add rules to build new tests. Don't run them yet since
1387 * elf/dblload.c: New file.
1388 * elf/dblloadmod1.c: New file.
1389 * elf/dblloadmod2.c: New file.
1390 * elf/dblloadmod3.c: New file.
1391 * elf/dblunload.c: New file.
1393 2001-09-04 Richard Henderson <rth@redhat.com>
1395 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
1396 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
1398 2001-09-04 Ulrich Drepper <drepper@redhat.com>
1400 Correct very misleading message for error in failed runtime relocation.
1401 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
1403 (_dl_signal_cerror): Likewise.
1404 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
1405 * elf/dl-close.c: Likewise.
1406 * elf/dl-deps.c: Likewise.
1407 * elf/dl-load.c: Likewise.
1408 * elf/dl-lookup.c: Likewise.
1409 * elf/dl-open.c: Likewise.
1410 * elf/dl-reloc.c: Likewise.
1411 * elf/dl-sym.c: Likewise.
1412 * elf/dl-version.c: Likewise.
1413 * sysdeps/generic/dl-sysdep.c: Likewise.
1415 2001-09-04 Jakub Jelinek <jakub@redhat.com>
1417 * iconv/strtab.c (strtabinit): Initialize null Strent.
1418 (newstring): Move len == 0 handling...
1419 (strtabadd): ...here.
1420 If len == 1, return null Strent.
1421 When inserting a suffix of an existing string, check if
1422 it is not equal to some suffix already recorded.
1423 Copy left and right members over if adding longer string.
1425 2001-09-04 Jakub Jelinek <jakub@redhat.com>
1427 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
1429 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
1430 (__syscall_gethostname): Add prototype.
1432 2001-09-04 Ulrich Drepper <drepper@redhat.com>
1434 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
1436 2001-09-02 Ulrich Drepper <drepper@redhat.com>
1438 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
1440 2001-08-27 Roland McGrath <roland@frob.com>
1442 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
1443 short, copy that much into NAME anyway before returning error.
1445 2001-09-01 Richard Henderson <rth@redhat.com>
1447 * sysdeps/alpha/elf/Dist: Remove file.
1448 * sysdeps/alpha/elf/Makefile: Remove file.
1449 * sysdeps/alpha/elf/crtbegin.S: Remove file.
1450 * sysdeps/alpha/elf/crtend.S: Remove file.
1451 * sysdeps/alpha/elf/initfini.c: New file.
1453 2001-09-01 Mark Kettenis <kettenis@gnu.org>
1455 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
1456 * iconv/tst-iconv3.c: Likewise.
1458 2001-09-01 Jakub Jelinek <jakub@redhat.com>
1460 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
1462 2001-09-01 Ulrich Drepper <drepper@redhat.com>
1464 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
1466 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
1467 * iconv/iconv_prog.c (insert_cache): New function.
1468 (print_known_names): If cache is used call insert_cache to use the
1469 information from the cache [PR libc/2509].
1471 2001-08-31 Ulrich Drepper <drepper@redhat.com>
1473 * time/strptime.c (strptime_internal): Recognize 'l' format and
1474 handle it like 'I' for symmetry with strftime.
1476 2001-08-31 Richard Henderson <rth@redhat.com>
1478 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
1479 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
1480 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
1481 (print_statistics): Make scalar unsigned long long.
1482 * sysdeps/alpha/hp-timing.h: New file.
1484 2001-08-31 Jakub Jelinek <jakub@redhat.com>
1486 * stdio-common/perror.c (perror): Save errno early, pass it
1487 down to perror_internal.
1488 (perror_internal): Add errnum argument.
1490 2001-08-31 Jakub Jelinek <jakub@redhat.com>
1492 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
1493 Don't add old memory content for R_ALPHA_REFQUAD.
1495 2001-08-30 Ulrich Drepper <drepper@redhat.com>
1497 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
1500 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
1501 instead of open, __close instead of close, __getpagesize instead
1504 * string/argz-stringify.c (__argz_stringify): Use __strnlen
1506 * include/string.h (strndupa): Redefine here to use __strnlen
1508 * string/strndup.c (__strndup): Use __strnlen not strnlen.
1510 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
1513 2001-08-30 Jakub Jelinek <jakub@redhat.com>
1515 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
1516 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
1517 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
1518 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
1519 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
1520 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
1521 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
1523 2001-08-30 Ulrich Drepper <drepper@redhat.com>
1525 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
1527 2001-08-30 Andreas Jaeger <aj@suse.de>
1529 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
1530 contributed Stephen L Moshier.
1532 2001-08-30 Jakub Jelinek <jakub@redhat.com>
1534 * sunrpc/etc.rpc (sgi_fam): Add.
1536 2001-08-30 Ulrich Drepper <drepper@redhat.com>
1538 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
1540 2001-08-29 Ulrich Drepper <drepper@redhat.com>
1542 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
1543 first is from a previous call.
1544 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
1546 2001-08-29 Andreas Schwab <schwab@suse.de>
1548 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
1550 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1552 * config.make.in (INSTALL_SCRIPT): Define.
1553 * Makeconfig (INSTALL_SCRIPT): Define.
1554 * Makerules (do-install-script): New macro to install scripts using
1556 (install-bin-script): New rule to install scripts with
1558 (install-bin-script-nosubdir): New rule.
1559 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
1560 (distinfo-vars): Add $(install-bin-script).
1561 * Rules (others): Likewise.
1562 * Makefile (glibcbug): Install with install-bin-script.
1563 * debug/Makefile (xtrace): Likewise.
1564 (catchsegv): Likewise.
1565 * elf/Makefile (ldd): Likewise.
1566 * malloc/Makefile (mtrace): Likewise.
1567 * timezone/Makefile (tzselect): Likewise.
1569 2001-08-29 H.J. Lu <hjl@gnu.org>
1571 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
1572 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
1573 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
1575 2001-08-29 Andreas Schwab <schwab@suse.de>
1577 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
1579 2001-08-28 H.J. Lu <hjl@gnu.org>
1581 * Makeconfig (combreloc-LDFLAGS): New variable.
1582 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
1583 * config.make.in (have-z-combreloc): New variable.
1584 * configure.in: Substitute libc_cv_z_combreloc.
1586 2001-08-29 Ulrich Drepper <drepper@redhat.com>
1588 * po/sv.po: Update from translation team.
1589 * po/fr.po: Likewise.
1590 * po/da.po: Likewise.
1592 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1594 * Makerules: Fix a typo: MD% -> MD5.
1596 2001-08-28 Ulrich Drepper <drepper@redhat.com>
1598 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
1599 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
1601 2001-08-28 Andreas Jaeger <aj@suse.de>
1603 * manual/libc-texinfo.sh: Add entry about free manuals.
1605 * manual/contrib.texi (Contributors): Fix cross reference.
1607 * manual/libc.texinfo (Copying): Include freemanuals.
1609 * manual/Makefile (appendices): Add freemanuals.
1611 * manual/freemanuals.texi: New file.
1612 Patch by Brian Youmans <3diff@gnu.org>.
1614 * manual/libm-err-tab.pl: Pretty print more platforms, print a
1617 * manual/math.texi (Errors in Math Functions): Fix grammar, start
1618 table on separate page.
1619 Patch by Brian Youmans <3diff@gnu.org>.
1621 2001-08-27 Ulrich Drepper <drepper@redhat.com>
1623 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
1624 the connection went down after we first used it try to connect
1625 again and resend the message before printing to the console.
1626 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
1628 2001-08-27 Jakub Jelinek <jakub@redhat.com>
1630 * string/tst-strlen.c (main): Test strnlen (, -1) too.
1631 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
1634 2001-08-27 Ulrich Drepper <drepper@redhat.com>
1636 * iconv/strtab.c (searchstring): Use correct length for comparison.
1637 (strtabadd): Account total size correct if new string has old string as
1640 2001-08-27 Jakub Jelinek <jakub@redhat.com>
1642 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
1644 2001-08-27 Andreas Jaeger <aj@suse.de>
1646 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
1648 * math/libm-test.inc (j0_test): Add extra tests.
1649 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
1650 not x, in Hankel approximation.
1651 Patches by Stephen L Moshier.
1653 2001-08-26 Ulrich Drepper <drepper@redhat.com>
1655 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
1658 * configure.in: Fix test for .rela.dyn section.
1660 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
1662 2001-08-26 Jakub Jelinek <jakub@redhat.com>
1664 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
1665 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
1666 Pass type_class to _dl_lookup_*.
1667 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
1668 Pass around just type_class instead of noexec, noplt pair.
1669 (_dl_lookup_versioned_symbol): Likewise.
1670 (_dl_lookup_symbol_skip): Pass around just type_class instead of
1672 (_dl_lookup_versioned_symbol_skip): Likewise.
1673 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
1674 * elf/do-lookup.h (do_lookup): Likewise.
1675 * include/link.h (struct link_map): Replace noexec and noplt fields
1676 in l_lookup_cache with type_class field.
1677 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
1678 ELF_RTYPE_CLASS_COPY): Define.
1679 Adjust prototypes for _dl_lookup_symbol and
1680 _dl_lookup_versioned_symbol.
1681 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
1682 elf_machine_lookup_noexec_p): Remove.
1683 (elf_machine_type_class): Define.
1684 * sysdeps/arm/dl-machine.h: Likewise.
1685 * sysdeps/hppa/dl-machine.h: Likewise.
1686 * sysdeps/cris/dl-machine.h: Likewise.
1687 * sysdeps/i386/dl-machine.h: Likewise.
1688 * sysdeps/ia64/dl-machine.h: Likewise.
1689 * sysdeps/m68k/dl-machine.h: Likewise.
1690 * sysdeps/mips/mips64/dl-machine.h: Likewise.
1691 * sysdeps/mips/dl-machine.h: Likewise.
1692 * sysdeps/powerpc/dl-machine.h: Likewise.
1693 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1694 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1695 * sysdeps/sh/dl-machine.h: Likewise.
1696 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1697 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1699 2001-08-26 Ulrich Drepper <drepper@redhat.com>
1701 * manual/message.texi (Advanced gettext functions): Change
1702 description of plural forms for Slovak.
1703 Reported by Marcel Telka <marcel@telka.sk>.
1705 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
1706 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
1708 2001-08-26 Jakub Jelinek <jakub@redhat.com>
1710 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
1711 typo. Patch by Florian La Roche <laroche@redhat.com>.
1713 2001-08-26 Ulrich Drepper <drepper@redhat.com>
1715 * include/link.h (struct link_map): Add l_lookup_cache element.
1716 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
1717 (RESOLVE_MAP): Likewise.
1718 (_dl_relocate_object): Remove cache initialization.
1719 * elf/dl-lookup.c: Rip out cache handling code.
1720 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
1723 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
1724 remove some __builtin_expect.
1725 (_dl_lookup_versioned_symbol): Likewise.
1727 * config.h.in: Add HAVE_Z_COMBRELOC.
1728 * configure.in: Add test for -z combreloc.
1730 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
1731 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
1732 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
1733 case to almost no code.
1735 2001-08-25 Ulrich Drepper <drepper@redhat.com>
1737 * po/tr.po: Update from translation team.
1739 2001-08-24 Andreas Jaeger <aj@suse.de>
1741 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
1744 2001-08-24 Ulrich Drepper <drepper@redhat.com>
1746 * elf/rtld.c (print_statistics): Printf % after percent values.
1747 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
1749 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
1750 don't have to compute the hash value and initialize current_value.
1751 Move reference_name variable to where it is needed.
1752 (_dl_lookup_versioned_symbol): Likewise.
1754 2001-08-24 Roland McGrath <roland@frob.com>
1756 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
1757 Just test that strerror returns non-null for a few errno codes.
1759 2001-08-23 Roland McGrath <roland@frob.com>
1761 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
1762 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
1764 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
1766 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
1769 2001-08-24 Ulrich Drepper <drepper@redhat.com>
1771 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
1774 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
1775 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
1777 * elf/rtld.c: Include <sys/param.h>.
1778 * elf/dl-reloc.c: Likewise.
1780 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1782 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
1783 empty to prevent junk from being generated.
1784 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
1786 2001-08-24 Jakub Jelinek <jakub@redhat.com>
1788 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
1789 records. Rename endrel to relative, initialize it to r, and use it
1790 in elf_machine_rel_relative calls. Point r after relative relocs.
1792 2001-08-24 Ulrich Drepper <drepper@redhat.com>
1794 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
1797 2001-08-24 Jakub Jelinek <jakub@redhat.com>
1799 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
1800 necessary. Undefine newly defined macros at the end.
1801 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
1802 Rename from elf_machine_rel_relative.
1803 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
1804 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
1805 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
1806 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
1808 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
1810 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
1812 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
1814 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
1815 Likewise. Fix argument types.
1816 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
1817 Likewise. Fix argument types.
1818 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
1820 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
1821 ElfW(Rel) in argument.
1822 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
1825 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1827 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
1829 2001-08-24 Andreas Jaeger <aj@suse.de>
1831 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
1832 Stephen L Moshier <moshier@mediaone.net>.
1834 2001-08-24 Ulrich Drepper <drepper@redhat.com>
1836 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
1837 first if RELCOUNT is set.
1839 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
1840 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
1841 elf_machine_rel_relative.
1842 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
1843 Minor optimizations.
1844 * sysdeps/arm/dl-machine.h: Likewise.
1845 * sysdeps/cris/dl-machine.h: Likewise.
1846 * sysdeps/hppa/dl-machine.h: Likewise.
1847 * sysdeps/i386/dl-machine.h: Likewise.
1848 * sysdeps/ia64/dl-machine.h: Likewise.
1849 * sysdeps/m68k/dl-machine.h: Likewise.
1850 * sysdeps/mips/dl-machine.h: Likewise.
1851 * sysdeps/powerpc/dl-machine.h: Likewise.
1852 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1853 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1854 * sysdeps/sh/dl-machine.h: Likewise.
1855 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1856 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1858 2001-08-23 Roland McGrath <roland@frob.com>
1860 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
1862 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
1863 sysdeps/mach version. Implement counting ("recursive") mutexes
1864 on top of cthreads mutexes.
1865 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
1867 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
1868 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
1869 (__libc_cleanup_region_start, __libc_cleanup_region_end,
1870 __libc_clean_end): Define these to call the cleanup function after
1871 normal exit when they're supposed to.
1873 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
1874 Take new first arg DOIT, a boolean saying whether to really install
1875 any cleanup handler.
1876 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
1877 (__libc_cleanup_end): Likewise.
1878 * sysdeps/generic/bits/libc-lock.h: Same changes.
1879 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
1880 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
1881 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
1883 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
1884 * sysdeps/generic/bits/stdio-lock.h
1885 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
1887 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1889 * elf/ldconfig.c (search_dir): Remove stale symlinks.
1891 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1893 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
1894 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
1896 (_dl_lookup_versioned_symbol): Likewise.
1897 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
1899 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
1900 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
1901 (lookup_cache, lookup_cache_versioned): Add declarations.
1903 2001-08-23 Ulrich Drepper <drepper@redhat.com>
1905 * stdlib/tst-random.c (main): Swap parameters in fail call.
1906 Patch by Pete Bevin <pete@petebevin.com>.
1908 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1910 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
1912 2001-08-23 Ulrich Drepper <drepper@redhat.com>
1914 * malloc/obstack.c: Indent preprocessor directives.
1915 Patch by Jim Meyering <meyering@ascend.com>.
1917 * po/ja.po: Update from translation team.
1919 2001-08-23 Roland McGrath <roland@frob.com>
1921 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
1923 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
1924 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
1926 2001-08-22 Roland McGrath <roland@frob.com>
1928 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
1929 __libc_lock_define_recursive.
1930 * elf/dl-open.c: Don't declare it here any more.
1931 * elf/dl-close.c: Likewise.
1932 * elf/dl-lookup.c: Likewise.
1933 * elf/dl-iteratephdr.c: Likewise.
1934 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
1935 __libc_lock_unlock_recursive.
1936 * elf/dl-close.c (_dl_close): Likewise
1937 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
1938 * elf/dl-open.c (_dl_open): Likewise
1940 * sysdeps/generic/bits/libc-lock.h
1941 (__libc_lock_define_recursive): New macro.
1942 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
1943 (_IO_lock_lock): Use __libc_lock_lock_recursive.
1944 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
1946 * conform/conformtest.pl (checknamespace): Sort the output list.
1948 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
1949 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
1950 definitions conditional on [__USE_XOPEN].
1952 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
1953 these unconditionally, not only use [__USE_BSD], so as to match
1954 the sysdeps/unix/sysv/linux files.
1956 2001-08-22 Ulrich Drepper <drepper@redhat.com>
1958 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
1961 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
1964 2001-08-22 Roland McGrath <roland@frob.com>
1966 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
1967 conditionalization of sa_handler/sa_sigaction member types to
1968 match the sysdeps/unix/sysv/linux file.
1970 2001-08-22 Ulrich Drepper <drepper@redhat.com>
1972 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
1973 symbol sizes a bit better.
1975 * sysdeps/ia64/strncpy.S: Complete rewrite.
1976 Contributed by Jakub Jelinek <jakub@redhat.com>.
1978 * string/stratcliff.c (main): Add strncpy test.
1980 2001-08-22 Roland McGrath <roland@frob.com>
1982 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
1983 and don't declare unsetenv or _environ directly.
1984 (unsetenv): Return int, not void. Use __environ instead of _environ.
1986 2001-08-01 Mark Kettenis <kettenis@gnu.org>
1988 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
1989 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
1990 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
1991 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
1992 test for cmsg struct size.
1994 2001-04-23 Paul Eggert <eggert@twinsun.com>
1996 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
1997 Rename __argc to ___argc in prototypes to avoid compatibility
1998 problems with systems that reserve the identifier "__argc".
1999 Similarly for __argv.
2001 2001-08-21 Roland McGrath <roland@frob.com>
2003 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
2005 * mach/Makefile (tests): Removed.
2006 * mach/hello.c: File removed.
2008 2001-08-22 Ulrich Drepper <drepper@redhat.com>
2010 * po/sv.po: Update from translation team.
2012 * stdio-common/vfscanf.c: Fix handling of %l[].
2013 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
2015 * libio/Makefile (tests): Add tst-sscanf.
2016 * libio/tst-sscanf.c: New file.
2018 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
2019 * malloc/mtrace.c (tr_where): dli_sname always points to a
2020 non-empty string if != NULL.
2021 Reported by Tim Janik <timj@gtk.org>.
2023 2001-08-22 Jakub Jelinek <jakub@redhat.com>
2025 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
2026 buf. Free resources on failure.
2027 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
2028 (makefd_xprt): Likewise.
2029 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
2030 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
2031 * sunrpc/auth_unix.c (authunix_create): Likewise.
2033 2001-08-21 Jakub Jelinek <jakub@redhat.com>
2035 * string/strnlen.c: Remove.
2036 * sysdeps/generic/strnlen.c: New file.
2037 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
2039 2001-08-21 Roland McGrath <roland@frob.com>
2041 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
2042 as a macro, not an extern inline function.
2044 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
2045 * Versions.def (libc): Add GLIBC_2.2.5 set.
2046 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
2047 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
2049 2001-08-20 Roland McGrath <roland@frob.com>
2051 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
2052 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
2054 2001-08-21 Ulrich Drepper <drepper@redhat.com>
2056 * string/bits/string2.h: Remove strnlen optimization here.
2057 * sysdeps/i386/i486/bits/string.h: Add it here.
2059 2001-08-21 Wolfram Gloger <wg@malloc.de>
2061 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
2063 2001-08-21 Ulrich Drepper <drepper@redhat.com>
2065 * po/gl.po: Update from translation team.
2067 2001-08-20 Ulrich Drepper <drepper@redhat.com>
2069 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
2070 * misc/err.c (convert_and_print): Likewise.
2072 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
2075 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2077 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
2078 change of the gregset_t type.
2079 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
2081 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
2083 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
2085 2001-08-20 Ulrich Drepper <drepper@redhat.com>
2087 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
2089 * string/strnlen.c: Fix the implementation. We cannot use memchr.
2091 2001-08-18 Mark Kettenis <kettenis@gnu.org>
2093 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
2094 before calling the cthreads initialization code.
2096 2001-08-20 Ulrich Drepper <drepper@redhat.com>
2098 * argp/argp-help.c: Fix two problems introduced in last change.
2100 * include/dirent.h: Include <dirstream.h> first.
2102 2001-08-19 Ulrich Drepper <drepper@redhat.com>
2104 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
2106 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
2107 * sunrpc/xdr_rec.c: Likewise.
2108 * sunrpc/xdr_mem.c: Likewise.
2109 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
2110 * sunrpc/rpc_cmsg.c: Likewise.
2111 * sunrpc/getrpcport.c (getrpcport): Likewise.
2112 * sunrpc/clnt_simp.c (callrpc): Likewise.
2113 * sunrpc/clnt_gen.c (clnt_create): Likewise.
2114 * string/envz.c: Likewise.
2116 * po/ko.po: Update from translation team.
2118 * argp/argp-help.c: Handle wide oriented stderr stream.
2120 2001-08-18 Ulrich Drepper <drepper@redhat.com>
2122 * sysdeps/generic/strtol.c: Little optimizations. Add some
2125 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
2127 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
2128 * wcsmbs/wcwidth.c (wcwdith): Likewise.
2129 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
2131 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
2133 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
2135 * time/time.h (struct timespec): Use __time_t for tv_sec element.
2137 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
2138 wchar_t for function declarations and defintions.
2140 * misc/sys/select.h: Define __need_time_t before including <time.h>.
2141 Define suseconds_t if it hasn't happened yet.
2143 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
2145 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
2147 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
2150 * conform/data/stddef.h-data: Remove wint_t.
2152 * conform/conformtest.pl: Change namespace test to take #undef
2155 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
2157 * conform/data/sys/socket.h-data: Add sockatmark.
2159 2001-08-17 Ulrich Drepper <drepper@redhat.com>
2161 * io/fts.c: Update from recent BSD source.
2163 2001-08-17 Roland McGrath <roland@frob.com>
2165 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
2166 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
2169 2001-08-17 Ulrich Drepper <drepper@redhat.com>
2171 * locale/duplocale.c (__duplocale): Also initialize the special
2174 * conform/data/netdb.h-data: Adjust gai_strerror return type.
2176 2001-08-17 Andreas Jaeger <aj@suse.de>
2178 * misc/getpass.c: Include wchar.h for prototypes.
2179 * malloc/obstack.c: Likewise.
2181 2001-08-17 Ulrich Drepper <drepper@redhat.com>
2183 * sunrpc/svc_simple.c (universal): Use __write instead of write.
2185 * wcsmbs/wcscoll.c: Also define __wcscoll.
2186 * include/wchar.h: Declare __wcscoll.
2188 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
2189 * libio/vwprintf.c: Likewise.
2190 * libio/wprintf.c: Likewise.
2192 * iconv/gconv_cache.c: Use __munmap instead of munmap.
2194 2001-08-16 Ulrich Drepper <drepper@redhat.com>
2196 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
2198 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
2199 wcslen, and __wcscoll instead of wcscoll.
2201 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
2203 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
2204 __getuid instead of getuid.
2206 * stdio-common/perror.c (perror): Use __close instead of close.
2207 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
2208 * libio/freopen.c (freopen): Likewise.
2209 * libio/freopen64.c (freopen64): Likewise.
2211 * libio/tst-ungetwc2.c (main): Define str const.
2213 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
2214 * libio/fwprintf.c: Also define __fwprintf.
2215 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
2216 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
2217 * assert/assert-perr.c: Likewise.
2218 * assert/assert.c: Likewise.
2219 * gmon/gmon.c: Likewise.
2220 * inet/rcmd.c: Likewise.
2221 * malloc/obstack.c: Likewise.
2222 * misc/err.c: Likewise.
2223 * misc/error.c: Likewise.
2224 * misc/getpass.c: Likewise.
2225 * posix/getopt.c: Likewise.
2226 * resolv/res_hconf.c: Likewise.
2227 * stdio-common/perror.c: Likewise.
2228 * stdio-common/psignal.c: Likewise.
2229 * stdlib/fmtmsg.c: Likewise.
2230 * sunrpc/auth_unix.c: Likewise.
2231 * sunrpc/clnt_perr.c: Likewise.
2232 * sunrpc/clnt_tcp.c: Likewise.
2233 * sunrpc/clnt_udp.c: Likewise.
2234 * sunrpc/clnt_unix.c: Likewise.
2235 * sunrpc/svc_simple.c: Likewise.
2236 * sunrpc/svc_tcp.c: Likewise.
2237 * sunrpc/svc_udp.c: Likewise.
2238 * sunrpc/svc_unix.c: Likewise.
2239 * sunrpc/xdr.c: Likewise.
2240 * sunrpc/xdr_array.c: Likewise.
2241 * sunrpc/xdr_rec.c: Likewise.
2242 * sunrpc/xdr_ref.c: Likewise.
2243 * sysdeps/generic/wordexp.c: Likewise.
2245 * po/it.po: Update from translation team.
2247 * misc/err.c: Handle wide oriented stderr stream.
2249 2001-08-14 Tom Rix <trix@redhat.com>
2251 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
2252 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
2254 2001-08-13 Tom Rix <trix@redhat.com>
2256 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
2257 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
2260 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
2262 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
2263 Store the access registers to the ucontext structure.
2264 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
2267 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
2268 Load the access registers from the ucontext structure.
2269 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
2272 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
2273 offsets to the new ucontext layout.
2274 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
2276 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
2277 of the ucontext structure.
2278 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
2280 2001-08-15 Ulrich Drepper <drepper@redhat.com>
2282 * misc/error.c (error): Handle wide oriented stderr stream correctly.
2283 (error_at_line): Likewise.
2285 * stdio-common/perror.c (perror): Implement according to standard.
2286 The stream orientation must not be changed if the stream was not
2287 oriented before the call.
2288 * stdio-common/Makefile (tests): Add tst-perror.
2289 * stdio-common/tst-perror.c: New file.
2292 See ChangeLog.12 for earlier changes.