1 2001-12-11 Ulrich Drepper <drepper@redhat.com>
3 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
4 where appropriate instead of numbers. Little optimizations.
6 2001-12-10 Roland McGrath <roland@frob.com>
8 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
11 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
12 set to GLIBC_2.2.5, not GLIBC_2.2.4.
14 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
15 Fix conditionals so this is set by default for stdio and not for libio.
16 * sysdeps/mach/hurd/configure: Regenerated.
18 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
20 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
22 2001-12-10 Ulrich Drepper <drepper@redhat.com>
24 * io/Makefile (tests): Add bug-ftw3.
25 * io/bug-ftw3.c: New file.
27 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
28 matches and GLOB_NOCHECK is set.
29 * posix/globtest.sh: Correct expected result for NOCHECK test.
31 * po/ca.po: Update from translation team.
33 2001-12-09 Ulrich Drepper <drepper@redhat.com>
35 Implement transliteration of characters in strings of the locale
37 * locale/programs/linereader.c: Adjust for additional parameter to
39 (get_string): If character <Uxxxx> is not found try to transliterate
41 * locale/programs/ld-ctype.c: Adjust for additional parameter to
42 lr_token. Add const to charmap parameter of all functions.
43 (find_translit, find_translit2): New functions.
44 * locale/programs/charmap.c: Adjust for additional parameter to
46 * locale/programs/repertoire.c: Likewise.
47 * locale/programs/linereader.h: Likewise.
48 * locale/programs/ld-address.c: Likewise. Add const to charmap
49 parameter of all functions.
50 * locale/programs/ld-collate.c: Likewise.
51 * locale/programs/ld-identification.c: Likewise.
52 * locale/programs/ld-measurement.c: Likewise.
53 * locale/programs/ld-messages.c: Likewise.
54 * locale/programs/ld-monetary.c: Likewise.
55 * locale/programs/ld-name.c: Likewise.
56 * locale/programs/ld-numeric.c: Likewise.
57 * locale/programs/ld-paper.c: Likewise.
58 * locale/programs/ld-paper.c: Likewise.
59 * locale/programs/ld-telephone.c: Likewise.
60 * locale/programs/ld-time.c: Likewise.
61 * locale/programs/locfile.c: Likewise.
62 * locale/programs/localedef.c: Likewise.
63 * locale/programs/localedef.h: Likewise.
64 * locale/programs/locfile.h: Likewise. Add declaration for
66 * locale/programs/simple-hash.c: Add const to first parameter of
67 find_entry, iterate_table, and lookup.
68 * locale/programs/simple-hash.h: Likewise.
69 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
71 * include/locale.h: Define __LC_LAST.
72 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
74 2001-12-07 Geoff Keating <geoffk@redhat.com>
76 * sysdeps/powerpc/Dist: Update for recent FP changes.
77 * sysdeps/powerpc/fpu/Dist: Likewise.
79 2001-12-07 Andreas Schwab <schwab@suse.de>
81 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
83 2001-12-06 Geoff Keating <geoffk@redhat.com>
85 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
86 save/restore functions here.
87 (libm-support): Don't define these functions here.
88 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
90 * sysdeps/powerpc/fe_nomask.c: Move to...
91 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
92 * sysdeps/powerpc/fprrest.S: Move to...
93 * sysdeps/powerpc/fpu/fprrest.S: ... here.
94 * sysdeps/powerpc/fprsave.S: Move to...
95 * sysdeps/powerpc/fpu/fprsave.S: ... here.
97 2001-12-06 Ulrich Drepper <drepper@redhat.com>
99 * sysdeps/unix/sysv/linux/opensock.c: New file.
101 2001-12-06 Geoff Keating <geoffk@redhat.com>
103 * config.make.in (with-fp): Define from configure.
104 * configure.in: Substitute with_fp.
105 * configure: Regenerate.
106 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
107 specified, and don't change FPU environment.
109 2001-12-06 Ulrich Drepper <drepper@redhat.com>
111 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
112 * assert/assert.c: Check result of __asprintf call and don't use
114 * assert/assert-perr.c: Likewise.
115 * inet/rcmd.c: Likewise.
116 * locale/programs/localedef.c (main): Check result of
117 construct_output_path and exit if it failed.
118 (construct_output_path): Check result of asprintf and mkdir calls and
120 * posix/getopt.c: Check result of __asprintf calls and fail if
122 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
124 2001-12-05 Ulrich Drepper <drepper@redhat.com>
126 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
128 * sysdeps/generic/strncase.c: Likewise.
129 * string/tester.c: Add tests for strcasecmp and strncasecmp.
131 2001-12-05 Geoff Keating <geoffk@redhat.com>
133 * scripts/cpp: Test the exit status from 'type', not 'awk'.
135 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
136 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
137 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
138 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
139 * sysdeps/powerpc/fclrexcpt.c: Move to...
140 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
141 * sysdeps/powerpc/fpu_control.h: Move to...
142 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
144 2001-12-05 Ulrich Drepper <drepper@redhat.com>
146 * iconvdata/ibm1129.h: Remove duplicate mappings.
147 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
148 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
149 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
151 * timezone/zic.c: Fix handling of turnaround times.
152 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
154 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
156 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
159 2001-12-05 Ulrich Drepper <drepper@redhat.com>
161 * posix/regex.c: For use outside glibc defined bounded pointer
162 macros here. Patch by Jim Meyering <jim@meyering.net>.
164 * iconvdata/Makefile (modules): Add TCVN5712-1.
165 * iconvdata/TESTS: Add TCVN5712-1.
166 * iconvdata/gconv-modules: Likewise.
167 * iconvdata/tcvn5712-1.c: New file.
168 * iconvdata/testdata/TCVN-5712: New file.
169 * iconvdata/testdata/TCVN-5712..UTF8: New file.
171 2001-12-04 Ulrich Drepper <drepper@redhat.com>
173 * iconvdata/cp1258.c: Optimize conversion from UCS4.
175 2001-12-02 Roland McGrath <roland@frob.com>
177 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
179 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
180 Reported by Jeff Bailey <jbailey@nisa.net>.
182 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
183 Reported by Jeff Bailey <jbailey@nisa.net>.
185 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
186 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
187 Reported by Jeff Bailey <jbailey@nisa.net>.
189 2001-12-01 Roland McGrath <roland@frob.com>
191 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
192 missing backslash in test arguments.
193 * sysdeps/mach/hurd/configure: Regenerated.
195 2001-11-26 Roland McGrath <roland@frob.com>
197 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
198 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
200 2001-11-30 Ulrich Drepper <drepper@redhat.com>
202 * iconvdata/Makefile (modules): Add ARMSCII-8.
203 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
204 * iconvdata/armscii-8.c: New file.
206 2001-11-29 Jakub Jelinek <jakub@redhat.com>
208 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
209 don't match, fix {{a,b},c} globbing, clean up.
210 Patch by Flavio Veloso <flaviovs@magnux.com>.
211 * posix/globtest.sh: Add new tests.
213 2001-11-29 Andreas Jaeger <aj@suse.de>
215 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
216 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
218 * sysdeps/generic/abort.c: Include libioP.h for
219 _IO_flush_all_lockp prototype.
221 2001-11-29 Ulrich Drepper <drepper@redhat.com>
223 * posix/regex.h: Define __restrict_arr correctly.
225 2001-11-28 Ulrich Drepper <drepper@redhat.com>
227 * iconvdata/ibm1163.c: New file.
228 * iconvdata/ibm1163.h: New file.
229 * iconvdata/ibm1164.c: New file.
230 * iconvdata/ibm1164.h: New file.
231 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
232 * iconvdata/Makefile: Likewise.
233 * iconvdata/testdata/IBM1163: New file.
234 * iconvdata/testdata/IBM1163..UTF8: New file.
235 * iconvdata/testdata/IBM1164: New file.
236 * iconvdata/testdata/IBM1164..UTF8: New file.
237 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
239 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
240 * iconvdata/ibm1124.h: Likewise.
241 * iconvdata/ibm1132.h: Likewise.
242 * iconvdata/ibm1133.h: Likewise.
243 * iconvdata/ibm1160.h: Likewise.
244 * iconvdata/ibm1161.h: Likewise.
245 * iconvdata/ibm1162.h: Likewise.
246 * iconvdata/ibm856.h: Likewise.
247 * iconvdata/ibm922.h: Likewise.
248 * iconvdata/ibm930.h: Likewise.
249 * iconvdata/ibm932.h: Likewise.
250 * iconvdata/ibm933.h: Likewise.
251 * iconvdata/ibm935.h: Likewise.
252 * iconvdata/ibm937.h: Likewise.
253 * iconvdata/ibm939.h: Likewise.
254 * iconvdata/ibm943.h: Likewise.
255 * iconvdata/ibm930.c: Pretty printing.
256 * iconvdata/ibm937.c: Avoid access accross array boundary.
258 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
259 the current locale's codeset.
260 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
262 * iconv/iconv_prog.c: Pass empty strings as default value for to-
263 and from-charset. Don't determine locale's charset here.
265 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
266 as the old _IO_flush_all but lock only if parameter is nonzero.
267 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
268 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
269 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
270 if libio is used [PR libc/2575].
272 2001-11-28 Jakub Jelinek <jakub@redhat.com>
274 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
275 __signbitl): Only define for ISO C99.
277 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
279 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
280 herrnop to NETDB_INTERNAL if we run out of buffer space.
282 2001-11-28 Ulrich Drepper <drepper@redhat.com>
284 * nss/nss_files/files-XXX.c (internal_getent): Correct input
285 overflow test for platforms with signed char.
286 Reported by Andrew Haley <aph@cambridge.redhat.com>.
288 2001-11-28 Bruno Haible <bruno@clisp.org>
290 * locale/programs/simple-hash.c (lookup_2): Remove function.
291 (insert_entry_2): Call lookup instead of lookup_2.
293 2001-03-04 Bruno Haible <bruno@clisp.org>
295 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
297 2001-10-31 Bruno Haible <bruno@clisp.org>
299 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
301 2001-03-21 Bruno Haible <bruno@clisp.org>
303 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
304 chokes on empty macro arguments.
305 * intl/plural.y: Add #pragma for alloca on AIX 3.
307 2001-11-27 Ulrich Drepper <drepper@redhat.com>
309 * intl/dcigettext.c (guess_category_value): Only implement for
310 glibc. Otherwise rely on function _nl_locale_name which isn't
311 present in the glibc sources.
313 2001-09-24 Bruno Haible <bruno@clisp.org>
315 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
316 transliteration when building on a glibc system but outside glibc.
318 2001-09-22 Bruno Haible <bruno@clisp.org>
320 * intl/plural-eval.c: New file, extracted from dcigettext.c.
321 * intl/dcigettext.c (plural_eval): Remove function, moved to
323 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
324 Include plural-eval.c.
326 2001-09-22 Bruno Haible <bruno@clisp.org>
328 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
329 don't start with a digit; nplurals must be positive.
331 2001-09-02 Bruno Haible <bruno@clisp.org>
333 * intl/plural-exp.h: New file, extracted from gettextP.h.
334 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
335 * intl/gettextP.h (struct expression, struct parse_args,
336 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
337 * intl/loadmsgcat.c: Include plural-exp.h.
338 (PLURAL_PARSE): Move macro to plural-exp.h.
339 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
341 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
342 EXTRACT_PLURAL_EXPRESSION.
343 (_nl_unload_domain): Update.
344 * intl/dcigettext.c: Include plural-exp.h.
345 * intl/plural.y: Include plural-exp.h, not gettextP.h.
346 (FREE_EXPRESSION): Move macro to plural-exp.h.
347 * intl/Makefile (routines): Add plural-exp.
348 (distribute): Add plural-exp.h.
350 2001-07-28 Bruno Haible <bruno@clisp.org>
352 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
353 isdigit, tolower argument to 'unsigned char'.
354 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
356 * intl/localealias.c (read_alias_file): Cast isspace argument to
359 2001-10-20 Bruno Haible <bruno@clisp.org>
361 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
363 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
364 with the variable 'index' in plural_lookup.
365 * intl/l10nflist.c (strchr): Likewise.
366 * intl/localealias.c (strchr): Likewise.
368 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
369 * intl/bindtextdom.c: Likewise.
370 * intl/dcigettext.c: Likewise.
371 * intl/dgettext.c: Likewise.
372 * intl/dngettext.c: Likewise.
373 * intl/explodename.c: Likewise.
374 * intl/finddomain.c: Likewise.
375 * intl/gettext.c: Likewise.
376 * intl/l10nflist.c: Likewise.
377 * intl/loadmsgcat.c: Likewise.
378 * intl/localealias.c: Likewise.
379 * intl/ngettext.c: Likewise.
380 * intl/textdomain.c: Likewise.
381 * intl/gettext.h: Assume <limits.h> exists.
383 2001-11-27 Ulrich Drepper <drepper@redhat.com>
385 * stdio-common/Makefile (tests): Add scanf11.
386 * stdio-common/scanf11.c: New file.
388 2001-11-26 Ulrich Drepper <drepper@redhat.com>
390 * version.h (RELEASE): Define as development.
391 (VERSION): Set to 2.2.90.
393 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
395 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
396 * nis/nss_nis/nis-grp.c: Likewise.
397 * nis/nss_nisplus/nisplus-grp.c: Likewise.
399 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
400 * nis/nss_nis/nis-pwd.c: Likewise.
401 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
403 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
404 * nis/nss_nisplus/nisplus-parser.c: Likewise.
405 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
407 * nscd/grpcache.c: Use strtoul instead of atol.
408 * nscd/pwdcache.c: Likewise.
409 * nss/getent.c: Likewise.
411 2001-11-27 Paul Eggert <eggert@twinsun.com>
413 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
414 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
416 2001-11-19 Bruno Haible <bruno@clisp.org>
418 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
420 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
421 improves the quality of the hash function, especially for short
424 2001-11-26 Ulrich Drepper <drepper@redhat.com>
426 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
427 are found call conv_error and not input_error [PR libc/2669].
429 * math/bits/mathcalls.h: Mark ceil and floor as const.
430 Reported by David Mosberger.
432 2001-11-21 Jim Meyering <meyering@lucent.com>
434 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
435 Define to be __-prefixed.
436 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
438 2001-11-26 Andreas Jaeger <aj@suse.de>
440 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
443 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
445 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
448 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
449 unused variables. Fix threshold for returning 1.0.
451 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
454 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
455 remove unused variables.
457 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
459 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
460 include local math header files.
462 2001-11-22 Andreas Jaeger <aj@suse.de>
464 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
467 2001-11-21 Andreas Jaeger <aj@suse.de>
469 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
471 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
474 2001-11-15 Andreas Jaeger <aj@suse.de>
476 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
477 compilers that support it.
479 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
480 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
481 * stdlib/stdlib.h: Likewise.
483 2001-11-17 Ulrich Drepper <drepper@redhat.com>
485 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
486 statement with gotos.
487 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
489 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
491 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
493 2001-11-15 Ulrich Drepper <drepper@redhat.com>
495 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
497 2001-10-02 Jakub Jelinek <jakub@redhat.com>
498 H.J. Lu <hjl@gnu.org>
500 * Versions.def (libc): Add GCC_3.0.
501 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
502 if gcc supports this flag.
503 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
504 (gcc3): Allow glibc to be compiled with gcc 3.x.
505 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
506 * config.make.in (static-libgcc, unwind-find-fde): Add.
507 * Makerules (build-shlib-helper, build-module-helper): Use it.
508 * scripts/versions.awk: Make sure GLIBC_ versions come first.
509 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
511 (_fini): Call __deregister_frame_info_bases if
512 __register_frame_info_bases was used to register.
513 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
515 (__register_frame_info_bases, __register_frame_info_table_bases,
516 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
517 * elf/Makefile (routines): Add unwind-dw2-fde.
518 (shared-only-routines): Add unwind-dw2-fde.
519 * sysdeps/alpha/gccframe.h: New file.
520 * sysdeps/arm/gccframe.h: New file.
521 * sysdeps/generic/framestate.c: New file.
522 * sysdeps/generic/dwarf2.h: New file.
523 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
524 * sysdeps/generic/unwind-dw2-fde.c: New file.
525 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
526 * sysdeps/generic/unwind-dw2-fde.h: New file.
527 * sysdeps/generic/unwind-dw2.c: New file.
528 * sysdeps/generic/unwind-pe.h: New file.
529 * sysdeps/generic/unwind.h: New file.
530 * sysdeps/hppa/gccframe.h: New file.
531 * sysdeps/i386/gccframe.h: New file.
532 * sysdeps/m68k/gccframe.h: New file.
533 * sysdeps/mips/gccframe.h: New file.
534 * sysdeps/powerpc/gccframe.h: New file.
535 * sysdeps/s390/gccframe.h: New file.
536 * sysdeps/sh/gccframe.h: New file.
537 * sysdeps/sparc/gccframe.h: New file.
538 * sysdeps/vax/gccframe.h: New file.
539 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
540 Set on all architectures except ia64.
541 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
543 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
544 __deregister_frame_info): Move to elf/Versions.
545 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
546 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
547 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
548 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
549 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
550 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
551 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
552 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
553 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
554 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
555 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
556 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
557 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
558 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
559 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
560 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
561 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
562 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
564 2001-11-15 Jeff Law <law@redhat.com>
566 * posix/regex.c (uintptr_t): Do not provide a definition if the
569 2001-11-13 Roland McGrath <roland@frob.com>
571 * stdio-common/tmpfile.c: Moved to ...
572 * sysdeps/generic/tmpfile.c: ... here.
573 * sysdeps/mach/hurd/tmpfile.c: New file.
575 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
576 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
577 (fopenport): Define as weak alias.
579 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
580 * libio/libioP.h: ... to here.
582 2001-11-12 Ulrich Drepper <drepper@redhat.com>
584 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
585 program header twice. Construct list with the needed information.
587 2001-11-10 Ulrich Drepper <drepper@redhat.com>
589 * po/ca.po: Update from translation team.
591 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
592 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
593 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
594 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
596 2001-11-10 Andreas Jaeger <aj@suse.de>
598 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
599 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
600 Contributed by Stephen L Moshier <moshier@mediaone.net>.
602 2001-11-09 Ulrich Drepper <drepper@redhat.com>
604 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
606 * elf/dl-load.c (is_dst): New function.
607 (_dl_dst_count): Use is_dst to check for DST variable.
608 (_dl_dst_substitute): Likewise.
610 2001-11-09 Roland McGrath <roland@frob.com>
612 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
613 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
614 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
615 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
616 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
617 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
618 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
619 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
620 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
621 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
622 * sysdeps/mach/hurd/powerpc/Dist: New file.
624 * hurd/privports.c (__get_privileged_ports):
625 Only contact the proc server if necessary for this call.
626 Suggested by Neal H Walfield <neal@cs.uml.edu>.
627 Check error return for mach_port_mod_refs.
629 2001-11-09 Andreas Schwab <schwab@suse.de>
631 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
633 2001-11-09 Ulrich Drepper <drepper@redhat.com>
635 * elf/dl-load.c (lose): Remove some unnecessary code. The new
636 object is always the last in the list.
637 (_dl_map_object_from_fd): Delete code to remove from object list
638 when DF_1_NOOPEN is seen. This is done in lose.
640 2001-11-08 Ulrich Drepper <drepper@redhat.com>
642 * elf/dl-object.c (_dl_new_object): Various small optimizations.
644 2001-11-07 Ulrich Drepper <drepper@redhat.com>
646 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
647 HWCAP_CHECK macro code.
649 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
650 Now returns MAP_FAILED on error.
651 * elf/rtld.c: Adjust caller.
652 * sysdeps/generic/dl-cache.c: Likewise.
653 * sysdeps/generic/ldsodefs.h: Adjust description.
655 * elf/dl-version.c (match_symbol): Optimize error handling for size.
656 (_dl_check_map_versions): Likewise.
658 2001-11-06 Ulrich Drepper <drepper@redhat.com>
660 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
661 _dl_signal_error directly, always use lose. Set fd to -1 after
663 (lose): Don't call close if fd == -1.
665 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
667 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
668 Also fix typo @code {mbsinit} to @code{mbsinit}.
670 2001-11-06 Ulrich Drepper <drepper@redhat.com>
672 * elf/dl-profile.c: Replace state variable with simple flag named
673 running. Remove commented-out code.
675 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
676 (_dl_init_paths): Likewise.
677 (_dl_map_object_from_fd): Likewise.
678 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
680 2001-11-06 Roland McGrath <roland@frob.com>
682 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
683 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
685 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
686 sysdeps/powerpc/elf/sysdep.h.
687 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
689 2001-11-05 Ulrich Drepper <drepper@redhat.com>
691 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
693 (process_envvars): Some more optimizations.
694 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
696 * elf/elf.h: Add dynamic tag definitions for prelinking.
698 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
699 Rewrite code to remove environment varables for SUID binaries.
700 Small optimization in LD_PROFILE handling.
701 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
703 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
705 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
707 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
708 strings. Change type of second parameter.
709 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
712 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
714 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
716 * manual/string.texi: Fix typos.
717 * manual/examples/argp-ex2.c: Likewise.
719 2001-11-05 Roland McGrath <roland@frob.com>
721 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
722 the more-specific unix/sysv/linux/powerpc file and breaks everything.
723 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
724 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
725 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
726 here, put under [__ELF__].
728 2001-11-05 Ulrich Drepper <drepper@redhat.com>
730 * manual/charset.texi: Extensive editing work.
731 * manual/nss.texi: Likewise.
732 Changes by Dennis Grace <dgrace@us.ibm.com>.
734 2001-11-04 Roland McGrath <roland@frob.com>
736 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
737 parameter to dir_mkfile.
739 2001-11-02 Jakub Jelinek <jakub@redhat.com>
741 * string/bits/string2.h (__strndup): If n is smaller than len, set
743 * string/tester.c (test_strndup): New function.
746 2001-11-01 Ulrich Drepper <drepper@redhat.com>
748 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
750 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
751 * scripts/cpp: New file.
753 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
754 for rtld_search_dirs content. Minor optimizations.
756 2001-10-31 Ulrich Drepper <drepper@redhat.com>
758 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
759 avoiding unnecessary duplication.
761 2001-10-31 Jakub Jelinek <jakub@redhat.com>
763 * elf/dl-load.c (_dl_map_object): If library was found using
764 LD_LIBRARY_PATH, don't try RUNPATH list.
766 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
768 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
769 Correct second argument of register_dump call.
770 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
773 2001-10-31 Ulrich Drepper <drepper@redhat.com>
775 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
777 * iconvdata/TESTS: Likewise.
778 * iconvdata/gconv-modules: Likewise.
779 * iconvdata/ibm1132.c: New file.
780 * iconvdata/ibm1132.h: New file.
781 * iconvdata/ibm1133.c: New file.
782 * iconvdata/ibm1133.h: New file.
783 * iconvdata/ibm1162.c: New file.
784 * iconvdata/ibm1162.h: New file.
785 * iconvdata/testdata/IBM1132: New file.
786 * iconvdata/testdata/IBM1132..UTF8: New file.
787 * iconvdata/testdata/IBM1133: New file.
788 * iconvdata/testdata/IBM1133..UTF8: New file.
789 * iconvdata/testdata/IBM1162: New file.
790 * iconvdata/testdata/IBM1162..UTF8: New file.
791 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
793 * string/string.h: Fix typo in comment.
794 * wcsmbs/wchar.h: Likewise.
796 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
798 * manual/getopt.texi (getopt_long, getopt_long_only): Include
799 const in type of longopts parameter.
801 2001-10-29 Andreas Jaeger <aj@suse.de>
803 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
805 2001-10-29 Kevin Ryde <user42@zip.com.au>
807 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
808 output, clarify `#' behaviour on 0.
809 (Floating-Point Conversions): Clarify that %g only uses %e when
810 the exponent would be greater than 1.
812 2001-10-28 Roland McGrath <roland@frob.com>
814 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
815 * sysdeps/mach/powerpc/machine-sp.h: New file.
816 * sysdeps/mach/powerpc/sysdep.h: New file.
817 * sysdeps/mach/powerpc/thread_state.h: New file.
819 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
820 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
821 expect to need the same thing on every platform.
823 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
824 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
826 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
827 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
828 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
829 Move all these assembly-related definitions to ...
830 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
832 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
833 by Peter Bruin <pjbruin@dds.nl>.
835 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
836 packing results for a `poll' call.
838 2001-10-26 Ulrich Drepper <drepper@redhat.com>
840 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
842 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
845 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
847 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
849 2001-10-24 H.J. Lu <hjl@gnu.org>
851 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
852 Use __BEGIN_DECLS/__END_DECLS around prototypes.
853 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
855 2001-10-21 Jim Meyering <meyering@lucent.com>
857 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
858 this code would end up calling gettext even in packages built
860 * posix/getopt.c (_): Likewise.
861 * posix/regex.c (_): Likewise.
863 2001-10-26 Ulrich Drepper <drepper@redhat.com>
865 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
867 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
868 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
870 2001-10-19 Jakub Jelinek <jakub@redhat.com>
872 * misc/sys/cdefs.h (__attribute_used__): Define.
873 * elf/rtld.c (_dl_start): Add __attribute_used__.
874 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
876 2001-10-25 Andreas Schwab <schwab@suse.de>
878 * stdlib/a64l.c: Expect least significant digit first.
879 * stdlib/l64a.c: Produce least significant digit first.
880 * stdlib/Makefile (tests): Add test-a64l.
881 * stdlib/test-a64l.c: New file.
882 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
884 2001-10-21 Ulrich Drepper <drepper@redhat.com>
886 * po/sk.po: Update from translation team.
888 2001-10-18 Ulrich Drepper <drepper@redhat.com>
890 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
892 2001-10-18 Andreas Schwab <schwab@suse.de>
894 * math/libm-test.inc (print_ulps): Print ulp values rounded to
896 (print_function_ulps): Likewise.
897 (print_complex_function_ulps): Likewise.
898 (print_max_error): Likewise.
899 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
901 2001-10-16 Andreas Schwab <schwab@suse.de>
903 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
906 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
907 BSD_SETJMP or BSD__SETJMP is defined, resp.
908 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
909 a tail call to __sigsetjmp that would require extending the
911 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
912 * sysdeps/m68k/bsd-setjmp.S: Deleted.
913 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
914 Reported by Jes Sorensen <jes@trained-monkey.org>.
916 2001-10-16 Andreas Jaeger <aj@suse.de>
918 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
919 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
922 2001-10-15 Ulrich Drepper <drepper@redhat.com>
924 * po/ca.po: New file. Contributed by the translation team.
926 2001-10-15 Ralf Baechle <ralf@gnu.org>
928 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
929 a varargs prototype. Remove dependency from kernel header files.
931 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
932 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
934 2001-10-14 Ulrich Drepper <drepper@redhat.com>
936 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
937 to generate hexadecimal identifier.
938 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
940 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
942 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
944 2001-10-14 Ulrich Drepper <drepper@redhat.com>
946 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
947 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
948 Contributed by Stephen L Moshier <moshier@mediaone.net>.
950 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
951 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
952 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
953 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
954 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
955 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
957 * timezone/africa: Update from tzdata2001d.
958 * timezone/asia: Likewise.
959 * timezone/australasia: Likewise.
960 * timezone/backward: Likewise.
961 * timezone/europe: Likewise.
962 * timezone/leapseconds: Likewise.
963 * timezone/northamerica: Likewise.
964 * timezone/southamerica: Likewise.
965 * timezone/zone.tab: Likewise.
967 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
969 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
970 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
972 2001-10-12 Ulrich Drepper <drepper@redhat.com>
974 * elf/elf.h (PT_TLS): New definition.
976 2001-10-10 Jeff Bailey <jbailey@nisa.net>
978 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
981 2001-10-07 Roland McGrath <roland@frob.com>
983 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
985 2001-10-10 Ulrich Drepper <drepper@redhat.com>
987 * elf/elf.h: Add more ELFOSABI_* constants.
989 2001-10-04 Ben Collins <bcollins@debian.org>
991 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
992 decleration of __need_wchar_t.
994 2001-10-03 Jakub Jelinek <jakub@redhat.com>
996 * string/bits/string2.h (__strsep_g): Add prototype.
998 * string/Versions (__strsep): Remove.
999 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
1001 2001-10-07 Ulrich Drepper <drepper@redhat.com>
1003 * manua/llio.texi: Clarify file references added by mmap.
1004 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
1006 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
1008 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
1009 Add sc_loadrs and sc_rbs_bas to match current kernel.
1011 2001-09-27 Jakub Jelinek <jakub@redhat.com>
1013 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
1015 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
1017 2001-09-27 Jakub Jelinek <jakub@redhat.com>
1019 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
1020 object has been bumped because of relocation dependency, avoid
1021 duplicates in l_scope.
1022 (show_scope): Fix typos.
1023 * elf/Makefile: Add rules to build and run reldep6.
1024 * elf/reldep6.c: New file.
1025 * elf/reldep6mod0.c: New file.
1026 * elf/reldep6mod1.c: New file.
1027 * elf/reldep6mod2.c: New file.
1028 * elf/reldep6mod3.c: New file.
1029 * elf/reldep6mod4.c: New file.
1031 2001-09-26 Jakub Jelinek <jakub@redhat.com>
1033 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
1035 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
1036 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
1037 for non-lazy binding. Fix .plt[32768+] handling.
1038 (elf_machine_plt_value): Don't add addend.
1039 (elf_machine_rela): Call sparc64_fixup_plt instead of
1040 elf_machine_fixup_plt.
1041 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
1042 dynamic linker at 0xfffff800XXXXXXXX.
1044 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
1046 2001-09-28 Ulrich Drepper <drepper@redhat.com>
1048 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
1050 2001-09-25 Jakub Jelinek <jakub@redhat.com>
1052 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
1053 declare __cmsg_data field if its size would be bigger than 0.
1054 (CMSG_DATA): Adjust accordingly.
1055 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
1056 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
1057 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
1058 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
1059 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
1060 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
1061 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1063 2001-09-25 Ulrich Drepper <drepper@redhat.com>
1065 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
1066 * iconvdata/testdata/IBM1160: New file.
1067 * iconvdata/testdata/IBM1160..UTF8: New file.
1068 * iconvdata/testdata/IBM1161: New file.
1069 * iconvdata/testdata/IBM1161..UTF8: New file.
1070 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1072 2001-09-24 Ulrich Drepper <drepper@redhat.com>
1074 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
1075 UL_SETFSIZE computations better.
1077 * rt/Makefile: Remove use of filter for librt again.
1079 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
1080 UL_SETFSIZE computations better.
1082 * string/Versions: Export __strsep for GLIBC_2.2.5.
1083 * string/bits/string2.h: Define all __STRING_INLINE functions if
1084 _FORCE_INLINES is defined.
1085 Use int instead of char of parameter types.
1086 (__strsep): Don't use __strsep_g. Don't define it.
1087 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
1088 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
1090 (__stpcpy_a_small): Renamed from __stpcpy_small.
1091 (__strcspn_c1): Don't define if _FORCE_INLINES.
1092 (__strspn_c1): Likewise.
1094 2001-09-22 Ben Collins <bcollins@debian.org>
1096 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
1097 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
1098 * sysdeps/ia64/bits/sigaction.h: Likewise.
1099 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
1101 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
1103 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
1105 2001-09-24 Jakub Jelinek <jakub@redhat.com>
1107 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
1109 2001-09-24 Ulrich Drepper <drepper@redhat.com>
1111 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
1113 2001-09-20 H.J. Lu <hjl@gnu.org>
1115 * include/dlfcn.h (__RTLD_SPROF): New definiton.
1116 * elf/dl-open.c (dl_open_worker): Return immediately after loading
1118 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
1119 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
1121 2001-09-20 H.J. Lu <hjl@gnu.org>
1123 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
1126 2001-09-22 Ulrich Drepper <drepper@redhat.com>
1128 * nss/getent.c: Accept -s parameter to overwrite rules in
1129 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
1131 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
1132 with as many ".0" as necessary to form a complete address
1133 inet_network understands.
1135 * nss/getent.c: Various cleanups. Use simpler and fewer function
1138 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1140 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
1142 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
1144 2001-09-22 Ulrich Drepper <drepper@redhat.com>
1146 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
1148 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
1149 * iconvdata/ibm1160.c: New file.
1150 * iconvdata/ibm1160.h: New file.
1151 * iconvdata/ibm1161.c: New file.
1152 * iconvdata/ibm1161.h: New file.
1153 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1155 2001-09-19 Jakub Jelinek <jakub@redhat.com>
1157 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
1158 difference between base address and first PT_LOAD's virtual address,
1159 not the base address.
1161 2001-09-11 Tom Rix <trix@redhat.com>
1163 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
1164 ifdef for __getopt_clean_environment.
1165 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
1167 2001-09-22 Andreas Jaeger <aj@suse.de>
1169 * elf/reldep4.c (main): Add proper prototype to fix warning.
1171 * elf/reldep5.c (main): Remove unused variable.
1173 * math/math_private.h: Add prototypes.
1175 2001-09-21 Andreas Jaeger <aj@suse.de>
1177 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
1178 * sysdeps/x86_64/Dist: New file.
1179 * sysdeps/x86_64/soft-fp/Dist: New file.
1181 * sysdeps/gnu/Dist: Remove eval.c.
1183 2001-09-20 Ulrich Drepper <drepper@redhat.com>
1185 * malloc/memusage.c (realloc): Don't count already allocated
1187 (me): Always use dlsym() to find the real implementations.
1189 * malloc/memusage.sh: Make -n option actually do something.
1191 2001-09-20 Andreas Jaeger <aj@suse.de>
1193 * elf/elf.h (R_390_NUM): Correct value.
1195 * Versions.def: Add missing versions 2.2.3 for libthread_db and
1198 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
1199 for x86-64, install x86-64 into */lib64.
1201 * shlib-versions: Add x86-64.
1203 * elf/elf.h: Add x86-64 relocations.
1205 2001-09-19 Ulrich Drepper <drepper@redhat.com>
1207 * po/fr.po: Update from translation team.
1209 2001-09-19 Andreas Jaeger <aj@suse.de>
1211 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
1212 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
1213 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
1214 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
1215 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
1216 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
1217 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
1218 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
1219 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
1220 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
1221 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
1222 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
1223 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
1224 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
1225 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
1226 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
1227 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
1228 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
1229 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
1230 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
1231 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
1232 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
1233 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
1234 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
1235 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
1236 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
1237 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
1238 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
1239 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
1240 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
1241 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
1242 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
1243 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
1244 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
1245 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
1246 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
1247 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
1248 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
1249 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
1250 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
1251 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
1252 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
1253 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
1254 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
1255 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
1256 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
1257 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
1258 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
1259 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
1260 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
1261 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
1262 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
1263 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
1264 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
1265 * sysdeps/unix/x86_64/sysdep.S: New file.
1266 * sysdeps/unix/x86_64/sysdep.h: New file.
1267 * sysdeps/x86_64/Implies: New file.
1268 * sysdeps/x86_64/Makefile: New file.
1269 * sysdeps/x86_64/Versions: New file.
1270 * sysdeps/x86_64/__longjmp.S: New file.
1271 * sysdeps/x86_64/abort-instr.h: New file.
1272 * sysdeps/x86_64/atomicity.h: New file.
1273 * sysdeps/x86_64/bits/endian.h: New file.
1274 * sysdeps/x86_64/bits/setjmp.h: New file.
1275 * sysdeps/x86_64/bits/string.h: New file.
1276 * sysdeps/x86_64/bp-asm.h: New file.
1277 * sysdeps/x86_64/bsd-_setjmp.S: New file.
1278 * sysdeps/x86_64/bsd-setjmp.S: New file.
1279 * sysdeps/x86_64/dl-machine.h: New file.
1280 * sysdeps/x86_64/elf/initfini.c: New file.
1281 * sysdeps/x86_64/elf/start.S: New file.
1282 * sysdeps/x86_64/ffs.c: New file.
1283 * sysdeps/x86_64/ffsll.c: New file.
1284 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
1285 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
1286 * sysdeps/x86_64/fpu/e_acosl.c: New file.
1287 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
1288 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
1289 * sysdeps/x86_64/fpu/e_expl.c: New file.
1290 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
1291 * sysdeps/x86_64/fpu/e_log10l.S: New file.
1292 * sysdeps/x86_64/fpu/e_log2l.S: New file.
1293 * sysdeps/x86_64/fpu/e_logl.S: New file.
1294 * sysdeps/x86_64/fpu/e_powl.S: New file.
1295 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
1296 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
1297 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
1298 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
1299 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
1300 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
1301 * sysdeps/x86_64/fpu/fegetenv.c: New file.
1302 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
1303 * sysdeps/x86_64/fpu/fegetround.c: New file.
1304 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
1305 * sysdeps/x86_64/fpu/fesetenv.c: New file.
1306 * sysdeps/x86_64/fpu/fesetround.c: New file.
1307 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
1308 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
1309 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
1310 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
1311 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
1312 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
1313 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
1314 * sysdeps/x86_64/fpu/s_atanl.c: New file.
1315 * sysdeps/x86_64/fpu/s_cosl.S: New file.
1316 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
1317 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
1318 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
1319 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
1320 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
1321 * sysdeps/x86_64/fpu/s_logbl.c: New file.
1322 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
1323 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
1324 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
1325 * sysdeps/x86_64/fpu/s_rintl.c: New file.
1326 * sysdeps/x86_64/fpu/s_significandl.c: New file.
1327 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
1328 * sysdeps/x86_64/fpu/s_sinl.S: New file.
1329 * sysdeps/x86_64/fpu/s_tanl.S: New file.
1330 * sysdeps/x86_64/gmp-mparam.h: New file.
1331 * sysdeps/x86_64/hp-timing.c: New file.
1332 * sysdeps/x86_64/hp-timing.h: New file.
1333 * sysdeps/x86_64/htonl.S: New file.
1334 * sysdeps/x86_64/memusage.h: New file.
1335 * sysdeps/x86_64/setjmp.S: New file.
1336 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
1337 * sysdeps/x86_64/stackinfo.h: New file.
1338 * sysdeps/x86_64/sysdep.h: New file.
1339 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
1341 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
1344 2001-09-18 Ulrich Drepper <drepper@redhat.com>
1346 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
1347 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
1349 2001-09-18 Andreas Schwab <schwab@suse.de>
1351 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
1352 list, now that l_scope is a pointer.
1354 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
1357 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
1359 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
1360 (elf_machine_rela_relative): Add a missing declaration.
1362 2001-09-18 Jakub Jelinek <jakub@redhat.com>
1364 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
1365 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
1366 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
1367 ldd-rewrite scripts.
1369 2001-09-18 Ulrich Drepper <drepper@redhat.com>
1371 * elf/ldd.bash.in: Update copyright message.
1373 2001-09-17 H.J. Lu <hjl@gnu.org>
1375 * hurd/hurdmalloc.c (bcopy): Removed.
1376 (realloc): Replace bcopy with memcpy.
1377 * hurd/path-lookup.c (file_name_path_scan): Likewise.
1378 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
1379 * sunrpc/rpcinfo.c (pmapdump): Likewise.
1381 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
1382 (gethostbyaddr): Likewise.
1383 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
1385 2001-09-18 Ulrich Drepper <drepper@redhat.com>
1387 * sysdeps/gnu/eval.c: Removed.
1389 2001-09-18 Andreas Jaeger <aj@suse.de>
1391 * sysdeps/i386/fpu/s_logbl.S: Move to ...
1392 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
1394 * sysdeps/i386/fpu/s_rintl.S: Move to ...
1395 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
1397 * sysdeps/i386/fpu/s_significandl.S: Move to ...
1398 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
1400 2001-09-16 Ulrich Drepper <drepper@redhat.com>
1402 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
1405 2001-09-14 H.J. Lu <hjl@gnu.org>
1407 * sysdeps/mips/fpu/libm-test-ulps: Updated.
1409 2001-09-14 Ulrich Drepper <drepper@redhat.com>
1411 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
1412 Patch by Florian La Roche <laroche@redhat.com>.
1414 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
1416 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
1419 2001-09-14 Andreas Schwab <schwab@suse.de>
1421 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
1422 Sumner <bls@sgi.com>.
1423 * posix/execlp.c: Likewise.
1425 2001-09-13 Jakub Jelinek <jakub@redhat.com>
1427 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
1428 is already found earlier in the search scope.
1430 2001-09-12 Jakub Jelinek <jakub@redhat.com>
1432 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
1435 2001-09-13 Ulrich Drepper <drepper@redhat.com>
1437 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
1439 2001-09-12 Ulrich Drepper <drepper@redhat.com>
1441 * config.h.in: Enforce optimization to be used.
1442 * Makeconfig (preprocess-versions): Define ASSEMBLER.
1443 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
1444 * posix/Makefile (annexc-CFLAGS): Define to -O.
1445 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
1447 2001-09-11 Ulrich Drepper <drepper@redhat.com>
1449 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
1450 Patch by Stephan Kulow.
1452 2001-09-08 Ben Collins <bcollins@debian.org>
1454 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
1455 usage of RESOLVE() (r_type, not reloc->r_type).
1457 2001-09-08 Ulrich Drepper <drepper@redhat.com>
1459 * elf/dl-object.c: Avoid allocating extra memory block for name.
1460 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
1461 allocated separately.
1462 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1464 2001-09-08 H.J. Lu <hjl@gnu.org>
1466 * po/zh_TW.po: Fix a typo.
1468 2001-09-07 Tom Rix <trix@redhat.com>
1470 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
1472 2001-08-26 Tom Rix <trix@redhat.com>
1474 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
1475 command line options.
1476 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
1477 * sysdeps/unix/sysv/aix/start.c: Removed.
1478 * sysdeps/unix/sysv/aix/start-libc.c: New file.
1479 * sysdeps/unix/sysv/aix/init-first.c: New file.
1480 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
1482 2001-09-08 Ben Collins <bcollins@debian.org>
1484 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
1485 * sysdeps/generic/dl-machine.h: Likewise.
1486 * sysdeps/hppa/dl-fptr.c: Likewise.
1487 * sysdeps/ia64/dl-fptr.c: Likewise.
1488 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
1489 * sysdeps/mips/dl-machine.h: Likewise.
1490 * sysdeps/mips/mips64/dl-machine.h: Likewise.
1491 * sysdeps/powerpc/dl-machine.c: Likewise.
1493 2001-09-07 Ben Collins <bcollins@debian.org>
1495 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
1497 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
1499 2001-09-08 Ulrich Drepper <drepper@redhat.com>
1501 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
1502 dependencies if necessary.
1504 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
1505 loaded directly) determine length if l_initfini list by iterating
1506 over its elements. Minor optimizations.
1507 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
1508 for dependency objects.
1509 If object was already loaded check whether any of the dependencies
1510 is already on the relocation dependency list. If yes, remove the
1511 latter. Minor optimizations.
1512 * elf/dl-lookup.c (add_dependency): Add check for self reference of
1513 maps here. Search l_initfini list only if the object was loaded
1514 directly and not only as a dependency.
1515 (_dl_lookup_symbol): Add relocation dependency also if object
1516 is not in global scope. Remove test for self-reference here.
1517 (_dl_lookup_versioned_symbol): Likewise.
1518 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
1519 element of first name record.
1520 * elf/loadtest.c: Add some more test to recognize early if an object
1522 * elf/Makefile: Add rules to build and run reldep5.
1523 * elf/reldep5.c: New file.
1524 * elf/reldepmod5.c: New file.
1525 * elf/reldepmod6.c: New file.
1527 * elf/reldep2.c: Fix typo.
1529 2001-09-07 Ulrich Drepper <drepper@redhat.com>
1531 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
1532 elements. Change l_scope to be a pointer only.
1533 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
1534 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
1535 here add searchlist of newly open file to the dependency's scope.
1536 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
1537 only searchlist from its scope. Free own scope array if necessary.
1538 * elf/Makefile (tests): Add dblload and dblunload now.
1540 2001-09-06 Andreas Jaeger <aj@suse.de>
1542 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
1545 2001-09-05 Ulrich Drepper <drepper@redhat.com>
1547 * elf/Makefile: Add rules to build new tests. Don't run them yet since
1549 * elf/dblload.c: New file.
1550 * elf/dblloadmod1.c: New file.
1551 * elf/dblloadmod2.c: New file.
1552 * elf/dblloadmod3.c: New file.
1553 * elf/dblunload.c: New file.
1555 2001-09-04 Richard Henderson <rth@redhat.com>
1557 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
1558 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
1560 2001-09-04 Ulrich Drepper <drepper@redhat.com>
1562 Correct very misleading message for error in failed runtime relocation.
1563 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
1565 (_dl_signal_cerror): Likewise.
1566 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
1567 * elf/dl-close.c: Likewise.
1568 * elf/dl-deps.c: Likewise.
1569 * elf/dl-load.c: Likewise.
1570 * elf/dl-lookup.c: Likewise.
1571 * elf/dl-open.c: Likewise.
1572 * elf/dl-reloc.c: Likewise.
1573 * elf/dl-sym.c: Likewise.
1574 * elf/dl-version.c: Likewise.
1575 * sysdeps/generic/dl-sysdep.c: Likewise.
1577 2001-09-04 Jakub Jelinek <jakub@redhat.com>
1579 * iconv/strtab.c (strtabinit): Initialize null Strent.
1580 (newstring): Move len == 0 handling...
1581 (strtabadd): ...here.
1582 If len == 1, return null Strent.
1583 When inserting a suffix of an existing string, check if
1584 it is not equal to some suffix already recorded.
1585 Copy left and right members over if adding longer string.
1587 2001-09-04 Jakub Jelinek <jakub@redhat.com>
1589 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
1591 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
1592 (__syscall_gethostname): Add prototype.
1594 2001-09-04 Ulrich Drepper <drepper@redhat.com>
1596 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
1598 2001-09-02 Ulrich Drepper <drepper@redhat.com>
1600 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
1602 2001-08-27 Roland McGrath <roland@frob.com>
1604 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
1605 short, copy that much into NAME anyway before returning error.
1607 2001-09-01 Richard Henderson <rth@redhat.com>
1609 * sysdeps/alpha/elf/Dist: Remove file.
1610 * sysdeps/alpha/elf/Makefile: Remove file.
1611 * sysdeps/alpha/elf/crtbegin.S: Remove file.
1612 * sysdeps/alpha/elf/crtend.S: Remove file.
1613 * sysdeps/alpha/elf/initfini.c: New file.
1615 2001-09-01 Mark Kettenis <kettenis@gnu.org>
1617 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
1618 * iconv/tst-iconv3.c: Likewise.
1620 2001-09-01 Jakub Jelinek <jakub@redhat.com>
1622 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
1624 2001-09-01 Ulrich Drepper <drepper@redhat.com>
1626 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
1628 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
1629 * iconv/iconv_prog.c (insert_cache): New function.
1630 (print_known_names): If cache is used call insert_cache to use the
1631 information from the cache [PR libc/2509].
1633 2001-08-31 Ulrich Drepper <drepper@redhat.com>
1635 * time/strptime.c (strptime_internal): Recognize 'l' format and
1636 handle it like 'I' for symmetry with strftime.
1638 2001-08-31 Richard Henderson <rth@redhat.com>
1640 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
1641 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
1642 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
1643 (print_statistics): Make scalar unsigned long long.
1644 * sysdeps/alpha/hp-timing.h: New file.
1646 2001-08-31 Jakub Jelinek <jakub@redhat.com>
1648 * stdio-common/perror.c (perror): Save errno early, pass it
1649 down to perror_internal.
1650 (perror_internal): Add errnum argument.
1652 2001-08-31 Jakub Jelinek <jakub@redhat.com>
1654 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
1655 Don't add old memory content for R_ALPHA_REFQUAD.
1657 2001-08-30 Ulrich Drepper <drepper@redhat.com>
1659 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
1662 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
1663 instead of open, __close instead of close, __getpagesize instead
1666 * string/argz-stringify.c (__argz_stringify): Use __strnlen
1668 * include/string.h (strndupa): Redefine here to use __strnlen
1670 * string/strndup.c (__strndup): Use __strnlen not strnlen.
1672 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
1675 2001-08-30 Jakub Jelinek <jakub@redhat.com>
1677 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
1678 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
1679 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
1680 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
1681 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
1682 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
1683 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
1685 2001-08-30 Ulrich Drepper <drepper@redhat.com>
1687 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
1689 2001-08-30 Andreas Jaeger <aj@suse.de>
1691 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
1692 contributed Stephen L Moshier.
1694 2001-08-30 Jakub Jelinek <jakub@redhat.com>
1696 * sunrpc/etc.rpc (sgi_fam): Add.
1698 2001-08-30 Ulrich Drepper <drepper@redhat.com>
1700 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
1702 2001-08-29 Ulrich Drepper <drepper@redhat.com>
1704 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
1705 first is from a previous call.
1706 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
1708 2001-08-29 Andreas Schwab <schwab@suse.de>
1710 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
1712 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1714 * config.make.in (INSTALL_SCRIPT): Define.
1715 * Makeconfig (INSTALL_SCRIPT): Define.
1716 * Makerules (do-install-script): New macro to install scripts using
1718 (install-bin-script): New rule to install scripts with
1720 (install-bin-script-nosubdir): New rule.
1721 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
1722 (distinfo-vars): Add $(install-bin-script).
1723 * Rules (others): Likewise.
1724 * Makefile (glibcbug): Install with install-bin-script.
1725 * debug/Makefile (xtrace): Likewise.
1726 (catchsegv): Likewise.
1727 * elf/Makefile (ldd): Likewise.
1728 * malloc/Makefile (mtrace): Likewise.
1729 * timezone/Makefile (tzselect): Likewise.
1731 2001-08-29 H.J. Lu <hjl@gnu.org>
1733 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
1734 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
1735 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
1737 2001-08-29 Andreas Schwab <schwab@suse.de>
1739 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
1741 2001-08-28 H.J. Lu <hjl@gnu.org>
1743 * Makeconfig (combreloc-LDFLAGS): New variable.
1744 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
1745 * config.make.in (have-z-combreloc): New variable.
1746 * configure.in: Substitute libc_cv_z_combreloc.
1748 2001-08-29 Ulrich Drepper <drepper@redhat.com>
1750 * po/sv.po: Update from translation team.
1751 * po/fr.po: Likewise.
1752 * po/da.po: Likewise.
1754 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1756 * Makerules: Fix a typo: MD% -> MD5.
1758 2001-08-28 Ulrich Drepper <drepper@redhat.com>
1760 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
1761 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
1763 2001-08-28 Andreas Jaeger <aj@suse.de>
1765 * manual/libc-texinfo.sh: Add entry about free manuals.
1767 * manual/contrib.texi (Contributors): Fix cross reference.
1769 * manual/libc.texinfo (Copying): Include freemanuals.
1771 * manual/Makefile (appendices): Add freemanuals.
1773 * manual/freemanuals.texi: New file.
1774 Patch by Brian Youmans <3diff@gnu.org>.
1776 * manual/libm-err-tab.pl: Pretty print more platforms, print a
1779 * manual/math.texi (Errors in Math Functions): Fix grammar, start
1780 table on separate page.
1781 Patch by Brian Youmans <3diff@gnu.org>.
1783 2001-08-27 Ulrich Drepper <drepper@redhat.com>
1785 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
1786 the connection went down after we first used it try to connect
1787 again and resend the message before printing to the console.
1788 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
1790 2001-08-27 Jakub Jelinek <jakub@redhat.com>
1792 * string/tst-strlen.c (main): Test strnlen (, -1) too.
1793 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
1796 2001-08-27 Ulrich Drepper <drepper@redhat.com>
1798 * iconv/strtab.c (searchstring): Use correct length for comparison.
1799 (strtabadd): Account total size correct if new string has old string as
1802 2001-08-27 Jakub Jelinek <jakub@redhat.com>
1804 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
1806 2001-08-27 Andreas Jaeger <aj@suse.de>
1808 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
1810 * math/libm-test.inc (j0_test): Add extra tests.
1811 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
1812 not x, in Hankel approximation.
1813 Patches by Stephen L Moshier.
1815 2001-08-26 Ulrich Drepper <drepper@redhat.com>
1817 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
1820 * configure.in: Fix test for .rela.dyn section.
1822 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
1824 2001-08-26 Jakub Jelinek <jakub@redhat.com>
1826 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
1827 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
1828 Pass type_class to _dl_lookup_*.
1829 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
1830 Pass around just type_class instead of noexec, noplt pair.
1831 (_dl_lookup_versioned_symbol): Likewise.
1832 (_dl_lookup_symbol_skip): Pass around just type_class instead of
1834 (_dl_lookup_versioned_symbol_skip): Likewise.
1835 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
1836 * elf/do-lookup.h (do_lookup): Likewise.
1837 * include/link.h (struct link_map): Replace noexec and noplt fields
1838 in l_lookup_cache with type_class field.
1839 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
1840 ELF_RTYPE_CLASS_COPY): Define.
1841 Adjust prototypes for _dl_lookup_symbol and
1842 _dl_lookup_versioned_symbol.
1843 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
1844 elf_machine_lookup_noexec_p): Remove.
1845 (elf_machine_type_class): Define.
1846 * sysdeps/arm/dl-machine.h: Likewise.
1847 * sysdeps/hppa/dl-machine.h: Likewise.
1848 * sysdeps/cris/dl-machine.h: Likewise.
1849 * sysdeps/i386/dl-machine.h: Likewise.
1850 * sysdeps/ia64/dl-machine.h: Likewise.
1851 * sysdeps/m68k/dl-machine.h: Likewise.
1852 * sysdeps/mips/mips64/dl-machine.h: Likewise.
1853 * sysdeps/mips/dl-machine.h: Likewise.
1854 * sysdeps/powerpc/dl-machine.h: Likewise.
1855 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1856 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1857 * sysdeps/sh/dl-machine.h: Likewise.
1858 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1859 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1861 2001-08-26 Ulrich Drepper <drepper@redhat.com>
1863 * manual/message.texi (Advanced gettext functions): Change
1864 description of plural forms for Slovak.
1865 Reported by Marcel Telka <marcel@telka.sk>.
1867 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
1868 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
1870 2001-08-26 Jakub Jelinek <jakub@redhat.com>
1872 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
1873 typo. Patch by Florian La Roche <laroche@redhat.com>.
1875 2001-08-26 Ulrich Drepper <drepper@redhat.com>
1877 * include/link.h (struct link_map): Add l_lookup_cache element.
1878 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
1879 (RESOLVE_MAP): Likewise.
1880 (_dl_relocate_object): Remove cache initialization.
1881 * elf/dl-lookup.c: Rip out cache handling code.
1882 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
1885 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
1886 remove some __builtin_expect.
1887 (_dl_lookup_versioned_symbol): Likewise.
1889 * config.h.in: Add HAVE_Z_COMBRELOC.
1890 * configure.in: Add test for -z combreloc.
1892 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
1893 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
1894 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
1895 case to almost no code.
1897 2001-08-25 Ulrich Drepper <drepper@redhat.com>
1899 * po/tr.po: Update from translation team.
1901 2001-08-24 Andreas Jaeger <aj@suse.de>
1903 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
1906 2001-08-24 Ulrich Drepper <drepper@redhat.com>
1908 * elf/rtld.c (print_statistics): Printf % after percent values.
1909 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
1911 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
1912 don't have to compute the hash value and initialize current_value.
1913 Move reference_name variable to where it is needed.
1914 (_dl_lookup_versioned_symbol): Likewise.
1916 2001-08-24 Roland McGrath <roland@frob.com>
1918 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
1919 Just test that strerror returns non-null for a few errno codes.
1921 2001-08-23 Roland McGrath <roland@frob.com>
1923 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
1924 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
1926 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
1928 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
1931 2001-08-24 Ulrich Drepper <drepper@redhat.com>
1933 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
1936 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
1937 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
1939 * elf/rtld.c: Include <sys/param.h>.
1940 * elf/dl-reloc.c: Likewise.
1942 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1944 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
1945 empty to prevent junk from being generated.
1946 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
1948 2001-08-24 Jakub Jelinek <jakub@redhat.com>
1950 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
1951 records. Rename endrel to relative, initialize it to r, and use it
1952 in elf_machine_rel_relative calls. Point r after relative relocs.
1954 2001-08-24 Ulrich Drepper <drepper@redhat.com>
1956 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
1959 2001-08-24 Jakub Jelinek <jakub@redhat.com>
1961 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
1962 necessary. Undefine newly defined macros at the end.
1963 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
1964 Rename from elf_machine_rel_relative.
1965 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
1966 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
1967 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
1968 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
1970 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
1972 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
1974 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
1976 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
1977 Likewise. Fix argument types.
1978 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
1979 Likewise. Fix argument types.
1980 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
1982 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
1983 ElfW(Rel) in argument.
1984 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
1987 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1989 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
1991 2001-08-24 Andreas Jaeger <aj@suse.de>
1993 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
1994 Stephen L Moshier <moshier@mediaone.net>.
1996 2001-08-24 Ulrich Drepper <drepper@redhat.com>
1998 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
1999 first if RELCOUNT is set.
2001 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
2002 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
2003 elf_machine_rel_relative.
2004 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
2005 Minor optimizations.
2006 * sysdeps/arm/dl-machine.h: Likewise.
2007 * sysdeps/cris/dl-machine.h: Likewise.
2008 * sysdeps/hppa/dl-machine.h: Likewise.
2009 * sysdeps/i386/dl-machine.h: Likewise.
2010 * sysdeps/ia64/dl-machine.h: Likewise.
2011 * sysdeps/m68k/dl-machine.h: Likewise.
2012 * sysdeps/mips/dl-machine.h: Likewise.
2013 * sysdeps/powerpc/dl-machine.h: Likewise.
2014 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2015 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2016 * sysdeps/sh/dl-machine.h: Likewise.
2017 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2018 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2020 2001-08-23 Roland McGrath <roland@frob.com>
2022 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
2024 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
2025 sysdeps/mach version. Implement counting ("recursive") mutexes
2026 on top of cthreads mutexes.
2027 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
2029 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
2030 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
2031 (__libc_cleanup_region_start, __libc_cleanup_region_end,
2032 __libc_clean_end): Define these to call the cleanup function after
2033 normal exit when they're supposed to.
2035 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
2036 Take new first arg DOIT, a boolean saying whether to really install
2037 any cleanup handler.
2038 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
2039 (__libc_cleanup_end): Likewise.
2040 * sysdeps/generic/bits/libc-lock.h: Same changes.
2041 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
2042 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
2043 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
2045 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
2046 * sysdeps/generic/bits/stdio-lock.h
2047 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
2049 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2051 * elf/ldconfig.c (search_dir): Remove stale symlinks.
2053 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2055 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
2056 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
2058 (_dl_lookup_versioned_symbol): Likewise.
2059 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
2061 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
2062 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
2063 (lookup_cache, lookup_cache_versioned): Add declarations.
2065 2001-08-23 Ulrich Drepper <drepper@redhat.com>
2067 * stdlib/tst-random.c (main): Swap parameters in fail call.
2068 Patch by Pete Bevin <pete@petebevin.com>.
2070 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2072 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
2074 2001-08-23 Ulrich Drepper <drepper@redhat.com>
2076 * malloc/obstack.c: Indent preprocessor directives.
2077 Patch by Jim Meyering <meyering@ascend.com>.
2079 * po/ja.po: Update from translation team.
2081 2001-08-23 Roland McGrath <roland@frob.com>
2083 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
2085 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
2086 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
2088 2001-08-22 Roland McGrath <roland@frob.com>
2090 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
2091 __libc_lock_define_recursive.
2092 * elf/dl-open.c: Don't declare it here any more.
2093 * elf/dl-close.c: Likewise.
2094 * elf/dl-lookup.c: Likewise.
2095 * elf/dl-iteratephdr.c: Likewise.
2096 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
2097 __libc_lock_unlock_recursive.
2098 * elf/dl-close.c (_dl_close): Likewise
2099 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
2100 * elf/dl-open.c (_dl_open): Likewise
2102 * sysdeps/generic/bits/libc-lock.h
2103 (__libc_lock_define_recursive): New macro.
2104 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
2105 (_IO_lock_lock): Use __libc_lock_lock_recursive.
2106 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
2108 * conform/conformtest.pl (checknamespace): Sort the output list.
2110 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
2111 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
2112 definitions conditional on [__USE_XOPEN].
2114 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
2115 these unconditionally, not only use [__USE_BSD], so as to match
2116 the sysdeps/unix/sysv/linux files.
2118 2001-08-22 Ulrich Drepper <drepper@redhat.com>
2120 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
2123 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
2126 2001-08-22 Roland McGrath <roland@frob.com>
2128 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
2129 conditionalization of sa_handler/sa_sigaction member types to
2130 match the sysdeps/unix/sysv/linux file.
2132 2001-08-22 Ulrich Drepper <drepper@redhat.com>
2134 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
2135 symbol sizes a bit better.
2137 * sysdeps/ia64/strncpy.S: Complete rewrite.
2138 Contributed by Jakub Jelinek <jakub@redhat.com>.
2140 * string/stratcliff.c (main): Add strncpy test.
2142 2001-08-22 Roland McGrath <roland@frob.com>
2144 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
2145 and don't declare unsetenv or _environ directly.
2146 (unsetenv): Return int, not void. Use __environ instead of _environ.
2148 2001-08-01 Mark Kettenis <kettenis@gnu.org>
2150 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
2151 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
2152 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
2153 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
2154 test for cmsg struct size.
2156 2001-04-23 Paul Eggert <eggert@twinsun.com>
2158 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
2159 Rename __argc to ___argc in prototypes to avoid compatibility
2160 problems with systems that reserve the identifier "__argc".
2161 Similarly for __argv.
2163 2001-08-21 Roland McGrath <roland@frob.com>
2165 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
2167 * mach/Makefile (tests): Removed.
2168 * mach/hello.c: File removed.
2170 2001-08-22 Ulrich Drepper <drepper@redhat.com>
2172 * po/sv.po: Update from translation team.
2174 * stdio-common/vfscanf.c: Fix handling of %l[].
2175 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
2177 * libio/Makefile (tests): Add tst-sscanf.
2178 * libio/tst-sscanf.c: New file.
2180 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
2181 * malloc/mtrace.c (tr_where): dli_sname always points to a
2182 non-empty string if != NULL.
2183 Reported by Tim Janik <timj@gtk.org>.
2185 2001-08-22 Jakub Jelinek <jakub@redhat.com>
2187 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
2188 buf. Free resources on failure.
2189 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
2190 (makefd_xprt): Likewise.
2191 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
2192 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
2193 * sunrpc/auth_unix.c (authunix_create): Likewise.
2195 2001-08-21 Jakub Jelinek <jakub@redhat.com>
2197 * string/strnlen.c: Remove.
2198 * sysdeps/generic/strnlen.c: New file.
2199 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
2201 2001-08-21 Roland McGrath <roland@frob.com>
2203 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
2204 as a macro, not an extern inline function.
2206 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
2207 * Versions.def (libc): Add GLIBC_2.2.5 set.
2208 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
2209 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
2211 2001-08-20 Roland McGrath <roland@frob.com>
2213 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
2214 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
2216 2001-08-21 Ulrich Drepper <drepper@redhat.com>
2218 * string/bits/string2.h: Remove strnlen optimization here.
2219 * sysdeps/i386/i486/bits/string.h: Add it here.
2221 2001-08-21 Wolfram Gloger <wg@malloc.de>
2223 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
2225 2001-08-21 Ulrich Drepper <drepper@redhat.com>
2227 * po/gl.po: Update from translation team.
2229 2001-08-20 Ulrich Drepper <drepper@redhat.com>
2231 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
2232 * misc/err.c (convert_and_print): Likewise.
2234 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
2237 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2239 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
2240 change of the gregset_t type.
2241 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
2243 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
2245 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
2247 2001-08-20 Ulrich Drepper <drepper@redhat.com>
2249 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
2251 * string/strnlen.c: Fix the implementation. We cannot use memchr.
2253 2001-08-18 Mark Kettenis <kettenis@gnu.org>
2255 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
2256 before calling the cthreads initialization code.
2258 2001-08-20 Ulrich Drepper <drepper@redhat.com>
2260 * argp/argp-help.c: Fix two problems introduced in last change.
2262 * include/dirent.h: Include <dirstream.h> first.
2264 2001-08-19 Ulrich Drepper <drepper@redhat.com>
2266 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
2268 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
2269 * sunrpc/xdr_rec.c: Likewise.
2270 * sunrpc/xdr_mem.c: Likewise.
2271 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
2272 * sunrpc/rpc_cmsg.c: Likewise.
2273 * sunrpc/getrpcport.c (getrpcport): Likewise.
2274 * sunrpc/clnt_simp.c (callrpc): Likewise.
2275 * sunrpc/clnt_gen.c (clnt_create): Likewise.
2276 * string/envz.c: Likewise.
2278 * po/ko.po: Update from translation team.
2280 * argp/argp-help.c: Handle wide oriented stderr stream.
2282 2001-08-18 Ulrich Drepper <drepper@redhat.com>
2284 * sysdeps/generic/strtol.c: Little optimizations. Add some
2287 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
2289 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
2290 * wcsmbs/wcwidth.c (wcwdith): Likewise.
2291 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
2293 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
2295 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
2297 * time/time.h (struct timespec): Use __time_t for tv_sec element.
2299 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
2300 wchar_t for function declarations and defintions.
2302 * misc/sys/select.h: Define __need_time_t before including <time.h>.
2303 Define suseconds_t if it hasn't happened yet.
2305 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
2307 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
2309 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
2312 * conform/data/stddef.h-data: Remove wint_t.
2314 * conform/conformtest.pl: Change namespace test to take #undef
2317 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
2319 * conform/data/sys/socket.h-data: Add sockatmark.
2321 2001-08-17 Ulrich Drepper <drepper@redhat.com>
2323 * io/fts.c: Update from recent BSD source.
2325 2001-08-17 Roland McGrath <roland@frob.com>
2327 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
2328 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
2331 2001-08-17 Ulrich Drepper <drepper@redhat.com>
2333 * locale/duplocale.c (__duplocale): Also initialize the special
2336 * conform/data/netdb.h-data: Adjust gai_strerror return type.
2338 2001-08-17 Andreas Jaeger <aj@suse.de>
2340 * misc/getpass.c: Include wchar.h for prototypes.
2341 * malloc/obstack.c: Likewise.
2343 2001-08-17 Ulrich Drepper <drepper@redhat.com>
2345 * sunrpc/svc_simple.c (universal): Use __write instead of write.
2347 * wcsmbs/wcscoll.c: Also define __wcscoll.
2348 * include/wchar.h: Declare __wcscoll.
2350 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
2351 * libio/vwprintf.c: Likewise.
2352 * libio/wprintf.c: Likewise.
2354 * iconv/gconv_cache.c: Use __munmap instead of munmap.
2356 2001-08-16 Ulrich Drepper <drepper@redhat.com>
2358 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
2360 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
2361 wcslen, and __wcscoll instead of wcscoll.
2363 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
2365 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
2366 __getuid instead of getuid.
2368 * stdio-common/perror.c (perror): Use __close instead of close.
2369 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
2370 * libio/freopen.c (freopen): Likewise.
2371 * libio/freopen64.c (freopen64): Likewise.
2373 * libio/tst-ungetwc2.c (main): Define str const.
2375 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
2376 * libio/fwprintf.c: Also define __fwprintf.
2377 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
2378 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
2379 * assert/assert-perr.c: Likewise.
2380 * assert/assert.c: Likewise.
2381 * gmon/gmon.c: Likewise.
2382 * inet/rcmd.c: Likewise.
2383 * malloc/obstack.c: Likewise.
2384 * misc/err.c: Likewise.
2385 * misc/error.c: Likewise.
2386 * misc/getpass.c: Likewise.
2387 * posix/getopt.c: Likewise.
2388 * resolv/res_hconf.c: Likewise.
2389 * stdio-common/perror.c: Likewise.
2390 * stdio-common/psignal.c: Likewise.
2391 * stdlib/fmtmsg.c: Likewise.
2392 * sunrpc/auth_unix.c: Likewise.
2393 * sunrpc/clnt_perr.c: Likewise.
2394 * sunrpc/clnt_tcp.c: Likewise.
2395 * sunrpc/clnt_udp.c: Likewise.
2396 * sunrpc/clnt_unix.c: Likewise.
2397 * sunrpc/svc_simple.c: Likewise.
2398 * sunrpc/svc_tcp.c: Likewise.
2399 * sunrpc/svc_udp.c: Likewise.
2400 * sunrpc/svc_unix.c: Likewise.
2401 * sunrpc/xdr.c: Likewise.
2402 * sunrpc/xdr_array.c: Likewise.
2403 * sunrpc/xdr_rec.c: Likewise.
2404 * sunrpc/xdr_ref.c: Likewise.
2405 * sysdeps/generic/wordexp.c: Likewise.
2407 * po/it.po: Update from translation team.
2409 * misc/err.c: Handle wide oriented stderr stream.
2411 2001-08-14 Tom Rix <trix@redhat.com>
2413 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
2414 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
2416 2001-08-13 Tom Rix <trix@redhat.com>
2418 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
2419 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
2422 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
2424 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
2425 Store the access registers to the ucontext structure.
2426 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
2429 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
2430 Load the access registers from the ucontext structure.
2431 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
2434 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
2435 offsets to the new ucontext layout.
2436 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
2438 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
2439 of the ucontext structure.
2440 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
2442 2001-08-15 Ulrich Drepper <drepper@redhat.com>
2444 * misc/error.c (error): Handle wide oriented stderr stream correctly.
2445 (error_at_line): Likewise.
2447 * stdio-common/perror.c (perror): Implement according to standard.
2448 The stream orientation must not be changed if the stream was not
2449 oriented before the call.
2450 * stdio-common/Makefile (tests): Add tst-perror.
2451 * stdio-common/tst-perror.c: New file.
2454 See ChangeLog.12 for earlier changes.