Update.
[glibc.git] / ChangeLog
blob912ed55af88f21a007707219e7c2a38268d8c9fa
1 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
4         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
5         remove high order bit from the program counter.
6         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
8 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
11         unnecessary code and add missing reloc types.
12         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
13         case for reloc type R_390_NONE.
15 2001-12-28  Andreas Jaeger  <aj@suse.de>
17         * io/bug-ftw3.c: Include string.h for prototypes.
19         * crypt/md5test.c (main): Remove unused variable.
21         * dlfcn/modstatic.c: Add prototype to avoid warning.
23 2001-12-26  Roland McGrath  <roland@frob.com>
25         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
26         check only (SS->pending & MASK) for the signal to return.
27         From Jeroen Dekkers <jeroen@dekkers.cx>.
29 2001-12-22  Roland McGrath  <roland@frob.com>
31         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
32         Use preprocessor #if conditionals instead of `if' to avoid
33         warnings about divide by zero in dead code.
35         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
36         _hurd_port_init, and __hurd_self_sigstate.
38         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
40 2001-12-21  Andreas Jaeger  <aj@suse.de>
42         * elf/dblloadmod1.c: Add prototype to avoid warning.
43         * elf/dblloadmod2.c: Likewise.
44         * elf/dblloadmod3.c: Likewise.
45         * elf/reldepmod5.c: Likewise.
46         * elf/reldepmod6.c: Likewise.
48         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
49         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
50         used on all architectures.
52         * sunrpc/svc_tcp.c: Add noreturn attribute for
53         svctcp_rendezvous_abort.
54         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
56         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
57         to avoid warning.
59 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
61         * manual/llio.texi (aio_fsync): Fix a typo.
62         Patch by Tammy Fox <tfox@redhat.com>.
64 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
66         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
67         stack bias from child stack pointer before passing it to clone syscall.
69 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
71         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
72         _SC_TZNAME_MAX.
73         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
74         Reported by Thorsten Kukuk <kukuk@suse.de>.
76         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
77         add some casts.
79         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
81 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
83         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
84         conforming: return EBADF if file descriptor is invalid and EINVAL
85         if file descriptor is no valid tty.
86         * login/tst-grantpt.c: New file.
87         * login/Makefile (tests): Add tst-grantpt.
89 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
91         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
92         different than implemented in last patch.
93         * io/bug-ftw3.c: Adjust test for changed handling of
94         inaccessibility of toplevel dir.
96 2001-12-16  Roland McGrath  <roland@frob.com>
98         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
99         * grp/initgroups.c (internal_getgrouplist): Likewise.
101         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
102         `default:' to silence new GCC warning.
103         Rewrite cast of lvalue to silence new GCC warning.
105         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
107         * sysdeps/mach/hurd/spawni.c: New file, by me with a
108         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
110 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
112         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
113         Patch by Stephen R. van den Berg.
115         * crypt/md5.h: Define md5_uintptr.
117 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
119         * libio/tst_swprintf.c (main): Add test for string argument with
120         zero precision.
121         * stdio-common/Makefile (tests): Add tst-sprintf.
122         * stdio-common/tst-sprintf.c: New file.
124 2001-12-13  Andreas Schwab  <schwab@suse.de>
126         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
127         zero precision with wide character string format.
129 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
131         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
132         but have a user supplied buffer, return the empty buffer, not NULL.
134 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
136         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
137         Patch by Eric Sharkey <sharkey@netrics.com>.
139         * crypt/md5test.c (main): Add test for multiple calls to
140         __md5_process_bytes to itererate over input string.
142 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
144         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
145         from __nis_findfastest.  Take timeout value from parameter.
146         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
147         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
148         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
150 2001-12-12  Andreas Jaeger  <aj@suse.de>
152         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
153         combreloc test so that it works in this case.
155         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
157 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
159         * sysdeps/sh/Makefile: New file.
160         * sysdeps/sh/_mcount.S: New file.
161         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
162         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
164 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
166         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
167         limitation [PR libc/2564].
169 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
171         * elf/Makefile (dl-routines): Add conflict.
172         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
173         (ld.so): Add _begin local symbol.
174         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
175         Define.
176         * elf/dl-deps.c (_dl_build_local_scope): New.
177         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
178         of all libraries.
179         * elf/do-rel.h (VALIDX): Define.
180         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
181         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
182         can be skipped.
183         * elf/dl-conflict.c: New file.
184         * elf/dl-lookup.c (_dl_debug_bindings): New.
185         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
186         non-NULL.
187         (_dl_lookup_symbol_skip): Likewise.
188         (_dl_lookup_versioned_symbol): Likewise.
189         (_dl_lookup_versioned_symbol_skip): Likewise.
190         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
191         define to ElfW(Rel).
192         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
193         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
194         ranges.
195         Don't adjust address dynamic tags if l_addr is 0.
196         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
197         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
198         (VALIDX, ADDRIDX): Define.
199         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
200         (dl_main): Print library list for LD_TRACE_PRELINKING.
201         If prelinking information can be used, skip relocating libraries and
202         call _dl_resolve_conflicts instead.
203         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
204         * elf/dl-load.c (_dl_map_object): Don't create fake libs
205         if LD_TRACE_PRELINKING.
206         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
207         + DT_ADDRNUM.
208         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
209         (DL_DEBUG_PRELINK): Define.
210         (_dl_resolve_conflicts): Add prototype.
212         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
213         .plt for prelinked libraries where prelinking info cannot be used.
214         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
215         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
216         * sysdeps/arm/bits/link.h: New file.
217         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
218         content of .got[1].
219         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
220         (ELF_MACHINE_PLT_REL): Define.
221         (elf_machine_rela, elf_machine_rela_relative): New.
222         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
223         of adjusting it if prelinked and prelinking cannot be used.
224         * sysdeps/i386/bits/link.h: New file.
225         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
226         content of .got[1].
227         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
228         (ELF_MACHINE_PLT_REL): Define.
229         (elf_machine_rela, elf_machine_rela_relative): New.
230         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
231         of adjusting it if prelinked and prelinking cannot be used.
232         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
233         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
234         to find out map for R_PPC_JMP_SLOT relocs.
235         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
236         (OPCODE_BA): Define.
237         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
238         libraries where prelinking info cannot be used.
239         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
240         (elf_machine_fixup_plt): Call sparc_fixup_plt.
241         (elf_machine_rela): Set value to 0 if relocating conflicts.
242         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
243         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
244         (sparc64_fixup_plt): Fix a typo.
245         (elf_machine_rela): Set value to 0 if relocating conflicts.
246         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
247         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
248         libraries where prelinking info cannot be used.
249         * sysdeps/sh/bits/link.h: New file.
250         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
251         content of .got[1].
252         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
253         of adjusting it if prelinked and prelinking cannot be used.
254         * sysdeps/s390/s390-32/bits/link.h: New file.
255         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
256         Save original content of .got[1].
257         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
258         of adjusting it if prelinked and prelinking cannot be used.
259         * sysdeps/s390/s390-64/bits/link.h: New file.
260         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
261         Save original content of .got[1].
262         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
263         of adjusting it if prelinked and prelinking cannot be used.
264         * sysdeps/x86_64/bits/link.h: New file.
265         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
266         Save original content of .got[1].
267         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
268         of adjusting it if prelinked and prelinking cannot be used.
270 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
272         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
273         where appropriate instead of numbers.  Little optimizations.
275 2001-12-10  Roland McGrath  <roland@frob.com>
277         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
278         set it.
280         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
281         set to GLIBC_2.2.5, not GLIBC_2.2.4.
283         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
284         Fix conditionals so this is set by default for stdio and not for libio.
285         * sysdeps/mach/hurd/configure: Regenerated.
287 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
289         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
291 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
293         * io/Makefile (tests): Add bug-ftw3.
294         * io/bug-ftw3.c: New file.
296         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
297         matches and GLOB_NOCHECK is set.
298         * posix/globtest.sh: Correct expected result for NOCHECK test.
300         * po/ca.po: Update from translation team.
302 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
304         Implement transliteration of characters in strings of the locale
305         definitions.
306         * locale/programs/linereader.c: Adjust for additional parameter to
307         lr_token.
308         (get_string): If character <Uxxxx> is not found try to transliterate
309         it.
310         * locale/programs/ld-ctype.c: Adjust for additional parameter to
311         lr_token.  Add const to charmap parameter of all functions.
312         (find_translit, find_translit2): New functions.
313         * locale/programs/charmap.c: Adjust for additional parameter to
314         lr_token.
315         * locale/programs/repertoire.c: Likewise.
316         * locale/programs/linereader.h: Likewise.
317         * locale/programs/ld-address.c: Likewise.  Add const to charmap
318         parameter of all functions.
319         * locale/programs/ld-collate.c: Likewise.
320         * locale/programs/ld-identification.c: Likewise.
321         * locale/programs/ld-measurement.c: Likewise.
322         * locale/programs/ld-messages.c: Likewise.
323         * locale/programs/ld-monetary.c: Likewise.
324         * locale/programs/ld-name.c: Likewise.
325         * locale/programs/ld-numeric.c: Likewise.
326         * locale/programs/ld-paper.c: Likewise.
327         * locale/programs/ld-paper.c: Likewise.
328         * locale/programs/ld-telephone.c: Likewise.
329         * locale/programs/ld-time.c: Likewise.
330         * locale/programs/locfile.c: Likewise.
331         * locale/programs/localedef.c: Likewise.
332         * locale/programs/localedef.h: Likewise.
333         * locale/programs/locfile.h: Likewise.  Add declaration for
334         find_translit.
335         * locale/programs/simple-hash.c: Add const to first parameter of
336         find_entry, iterate_table, and lookup.
337         * locale/programs/simple-hash.h: Likewise.
338         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
339         instead.
340         * include/locale.h: Define __LC_LAST.
341         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
343 2001-12-07  Geoff Keating  <geoffk@redhat.com>
345         * sysdeps/powerpc/Dist: Update for recent FP changes.
346         * sysdeps/powerpc/fpu/Dist: Likewise.
348 2001-12-07  Andreas Schwab  <schwab@suse.de>
350         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
352 2001-12-06  Geoff Keating  <geoffk@redhat.com>
354         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
355         save/restore functions here.
356         (libm-support): Don't define these functions here.
357         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
358         functions here.
359         * sysdeps/powerpc/fe_nomask.c: Move to...
360         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
361         * sysdeps/powerpc/fprrest.S: Move to...
362         * sysdeps/powerpc/fpu/fprrest.S: ... here.
363         * sysdeps/powerpc/fprsave.S: Move to...
364         * sysdeps/powerpc/fpu/fprsave.S: ... here.
366 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
368         * sysdeps/unix/sysv/linux/opensock.c: New file.
370 2001-12-06  Geoff Keating  <geoffk@redhat.com>
372         * config.make.in (with-fp): Define from configure.
373         * configure.in: Substitute with_fp.
374         * configure: Regenerate.
375         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
376         specified, and don't change FPU environment.
378 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
380         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
381         * assert/assert.c: Check result of __asprintf call and don't use
382         string if it failed.
383         * assert/assert-perr.c: Likewise.
384         * inet/rcmd.c: Likewise.
385         * locale/programs/localedef.c (main): Check result of
386         construct_output_path and exit if it failed.
387         (construct_output_path): Check result of asprintf and mkdir calls and
388         fail if they failed.
389         * posix/getopt.c: Check result of __asprintf calls and fail if
390         they failed.
391         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
393 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
395         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
396         patch.
397         * sysdeps/generic/strncase.c: Likewise.
398         * string/tester.c: Add tests for strcasecmp and strncasecmp.
400 2001-12-05  Geoff Keating  <geoffk@redhat.com>
402         * scripts/cpp: Test the exit status from 'type', not 'awk'.
404         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
405         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
406         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
407         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
408         * sysdeps/powerpc/fclrexcpt.c: Move to...
409         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
410         * sysdeps/powerpc/fpu_control.h: Move to...
411         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
413 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
415         * iconvdata/ibm1129.h: Remove duplicate mappings.
416         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
417         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
418         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
420         * timezone/zic.c: Fix handling of turnaround times.
421         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
423 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
425         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
426         overflow problem.
428 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
430         * posix/regex.c: For use outside glibc defined bounded pointer
431         macros here.  Patch by Jim Meyering <jim@meyering.net>.
433         * iconvdata/Makefile (modules): Add TCVN5712-1.
434         * iconvdata/TESTS: Add TCVN5712-1.
435         * iconvdata/gconv-modules: Likewise.
436         * iconvdata/tcvn5712-1.c: New file.
437         * iconvdata/testdata/TCVN-5712: New file.
438         * iconvdata/testdata/TCVN-5712..UTF8: New file.
440 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
442         * iconvdata/cp1258.c: Optimize conversion from UCS4.
444 2001-12-02  Roland McGrath  <roland@frob.com>
446         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
448         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
449         Reported by Jeff Bailey <jbailey@nisa.net>.
451         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
452         Reported by Jeff Bailey <jbailey@nisa.net>.
454         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
455         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
456         Reported by Jeff Bailey <jbailey@nisa.net>.
458 2001-12-01  Roland McGrath  <roland@frob.com>
460         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
461         missing backslash in test arguments.
462         * sysdeps/mach/hurd/configure: Regenerated.
464 2001-11-26  Roland McGrath  <roland@frob.com>
466         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
467         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
469 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
471         * iconvdata/Makefile (modules): Add ARMSCII-8.
472         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
473         * iconvdata/armscii-8.c: New file.
475 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
477         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
478         don't match, fix {{a,b},c} globbing, clean up.
479         Patch by Flavio Veloso <flaviovs@magnux.com>.
480         * posix/globtest.sh: Add new tests.
482 2001-11-29  Andreas Jaeger  <aj@suse.de>
484         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
485         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
487         * sysdeps/generic/abort.c: Include libioP.h for
488         _IO_flush_all_lockp prototype.
490 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
492         * posix/regex.h: Define __restrict_arr correctly.
494 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
496         * iconvdata/ibm1163.c: New file.
497         * iconvdata/ibm1163.h: New file.
498         * iconvdata/ibm1164.c: New file.
499         * iconvdata/ibm1164.h: New file.
500         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
501         * iconvdata/Makefile: Likewise.
502         * iconvdata/testdata/IBM1163: New file.
503         * iconvdata/testdata/IBM1163..UTF8: New file.
504         * iconvdata/testdata/IBM1164: New file.
505         * iconvdata/testdata/IBM1164..UTF8: New file.
506         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
508         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
509         * iconvdata/ibm1124.h: Likewise.
510         * iconvdata/ibm1132.h: Likewise.
511         * iconvdata/ibm1133.h: Likewise.
512         * iconvdata/ibm1160.h: Likewise.
513         * iconvdata/ibm1161.h: Likewise.
514         * iconvdata/ibm1162.h: Likewise.
515         * iconvdata/ibm856.h: Likewise.
516         * iconvdata/ibm922.h: Likewise.
517         * iconvdata/ibm930.h: Likewise.
518         * iconvdata/ibm932.h: Likewise.
519         * iconvdata/ibm933.h: Likewise.
520         * iconvdata/ibm935.h: Likewise.
521         * iconvdata/ibm937.h: Likewise.
522         * iconvdata/ibm939.h: Likewise.
523         * iconvdata/ibm943.h: Likewise.
524         * iconvdata/ibm930.c: Pretty printing.
525         * iconvdata/ibm937.c: Avoid access accross array boundary.
527         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
528         the current locale's codeset.
529         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
530         empty input string.
531         * iconv/iconv_prog.c: Pass empty strings as default value for to-
532         and from-charset.  Don't determine locale's charset here.
534         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
535         as the old _IO_flush_all but lock only if parameter is nonzero.
536         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
537         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
538         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
539         if libio is used [PR libc/2575].
541 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
543         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
544         __signbitl): Only define for ISO C99.
546 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
548         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
549         herrnop to NETDB_INTERNAL if we run out of buffer space.
551 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
553         * nss/nss_files/files-XXX.c (internal_getent): Correct input
554         overflow test for platforms with signed char.
555         Reported by Andrew Haley <aph@cambridge.redhat.com>.
557 2001-11-28  Bruno Haible  <bruno@clisp.org>
559         * locale/programs/simple-hash.c (lookup_2): Remove function.
560         (insert_entry_2): Call lookup instead of lookup_2.
562 2001-03-04  Bruno Haible  <bruno@clisp.org>
564         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
566 2001-10-31  Bruno Haible  <bruno@clisp.org>
568         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
570 2001-03-21  Bruno Haible  <bruno@clisp.org>
572         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
573         chokes on empty macro arguments.
574         * intl/plural.y: Add #pragma for alloca on AIX 3.
576 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
578         * intl/dcigettext.c (guess_category_value): Only implement for
579         glibc.  Otherwise rely on function _nl_locale_name which isn't
580         present in the glibc sources.
582 2001-09-24  Bruno Haible  <bruno@clisp.org>
584         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
585         transliteration when building on a glibc system but outside glibc.
587 2001-09-22  Bruno Haible  <bruno@clisp.org>
589         * intl/plural-eval.c: New file, extracted from dcigettext.c.
590         * intl/dcigettext.c (plural_eval): Remove function, moved to
591         intl/plural-eval.c.
592         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
593         Include plural-eval.c.
595 2001-09-22  Bruno Haible  <bruno@clisp.org>
597         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
598         don't start with a digit; nplurals must be positive.
600 2001-09-02  Bruno Haible  <bruno@clisp.org>
602         * intl/plural-exp.h: New file, extracted from gettextP.h.
603         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
604         * intl/gettextP.h (struct expression, struct parse_args,
605         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
606         * intl/loadmsgcat.c: Include plural-exp.h.
607         (PLURAL_PARSE): Move macro to plural-exp.h.
608         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
609         plural-exp.c.
610         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
611         EXTRACT_PLURAL_EXPRESSION.
612         (_nl_unload_domain): Update.
613         * intl/dcigettext.c: Include plural-exp.h.
614         * intl/plural.y: Include plural-exp.h, not gettextP.h.
615         (FREE_EXPRESSION): Move macro to plural-exp.h.
616         * intl/Makefile (routines): Add plural-exp.
617         (distribute): Add plural-exp.h.
619 2001-07-28  Bruno Haible  <bruno@clisp.org>
621         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
622         isdigit, tolower argument to 'unsigned char'.
623         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
624         'unsigned char'.
625         * intl/localealias.c (read_alias_file): Cast isspace argument to
626         'unsigned char'.
628 2001-10-20  Bruno Haible  <bruno@clisp.org>
630         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
631         anyway.)
632         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
633         with the variable 'index' in plural_lookup.
634         * intl/l10nflist.c (strchr): Likewise.
635         * intl/localealias.c (strchr): Likewise.
637         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
638         * intl/bindtextdom.c: Likewise.
639         * intl/dcigettext.c: Likewise.
640         * intl/dgettext.c: Likewise.
641         * intl/dngettext.c: Likewise.
642         * intl/explodename.c: Likewise.
643         * intl/finddomain.c: Likewise.
644         * intl/gettext.c: Likewise.
645         * intl/l10nflist.c: Likewise.
646         * intl/loadmsgcat.c: Likewise.
647         * intl/localealias.c: Likewise.
648         * intl/ngettext.c: Likewise.
649         * intl/textdomain.c: Likewise.
650         * intl/gettext.h: Assume <limits.h> exists.
652 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
654         * stdio-common/Makefile (tests): Add scanf11.
655         * stdio-common/scanf11.c: New file.
657 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
659         * version.h (RELEASE): Define as development.
660         (VERSION): Set to 2.2.90.
662 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
664         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
665         * nis/nss_nis/nis-grp.c: Likewise.
666         * nis/nss_nisplus/nisplus-grp.c: Likewise.
668         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
669         * nis/nss_nis/nis-pwd.c: Likewise.
670         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
672         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
673         * nis/nss_nisplus/nisplus-parser.c: Likewise.
674         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
676         * nscd/grpcache.c: Use strtoul instead of atol.
677         * nscd/pwdcache.c: Likewise.
678         * nss/getent.c: Likewise.
680 2001-11-27  Paul Eggert  <eggert@twinsun.com>
682         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
683         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
685 2001-11-19  Bruno Haible  <bruno@clisp.org>
687         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
688         90%.
689         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
690         improves the quality of the hash function, especially for short
691         strings.
693 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
695         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
696         are found call conv_error and not input_error [PR libc/2669].
698         * math/bits/mathcalls.h: Mark ceil and floor as const.
699         Reported by David Mosberger.
701 2001-11-21  Jim Meyering  <meyering@lucent.com>
703         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
704         Define to be __-prefixed.
705         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
707 2001-11-26  Andreas Jaeger  <aj@suse.de>
709         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
710         avoid warning.
712 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
714         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
715         initialization.
717         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
718         unused variables.  Fix threshold for returning 1.0.
720         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
721         argument.
723         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
724         remove unused variables.
726         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
728         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
729         include local math header files.
731 2001-11-22  Andreas Jaeger  <aj@suse.de>
733         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
734         avoid warning.
736 2001-11-21  Andreas Jaeger  <aj@suse.de>
738         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
740         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
741         sys/debugreg.h
743 2001-11-15  Andreas Jaeger  <aj@suse.de>
745         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
746         compilers that support it.
748         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
749         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
750         * stdlib/stdlib.h: Likewise.
752 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
754         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
755         statement with gotos.
756         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
758 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
760         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
762 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
764         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
766 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
767             H.J. Lu  <hjl@gnu.org>
769         * Versions.def (libc): Add GCC_3.0.
770         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
771         if gcc supports this flag.
772         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
773         (gcc3): Allow glibc to be compiled with gcc 3.x.
774         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
775         * config.make.in (static-libgcc, unwind-find-fde): Add.
776         * Makerules (build-shlib-helper, build-module-helper): Use it.
777         * scripts/versions.awk: Make sure GLIBC_ versions come first.
778         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
779         necessary.
780         (_fini): Call __deregister_frame_info_bases if
781         __register_frame_info_bases was used to register.
782         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
783         for GLIBC_2.0.
784         (__register_frame_info_bases, __register_frame_info_table_bases,
785         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
786         * elf/Makefile (routines): Add unwind-dw2-fde.
787         (shared-only-routines): Add unwind-dw2-fde.
788         * sysdeps/alpha/gccframe.h: New file.
789         * sysdeps/arm/gccframe.h: New file.
790         * sysdeps/generic/framestate.c: New file.
791         * sysdeps/generic/dwarf2.h: New file.
792         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
793         * sysdeps/generic/unwind-dw2-fde.c: New file.
794         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
795         * sysdeps/generic/unwind-dw2-fde.h: New file.
796         * sysdeps/generic/unwind-dw2.c: New file.
797         * sysdeps/generic/unwind-pe.h: New file.
798         * sysdeps/generic/unwind.h: New file.
799         * sysdeps/hppa/gccframe.h: New file.
800         * sysdeps/i386/gccframe.h: New file.
801         * sysdeps/m68k/gccframe.h: New file.
802         * sysdeps/mips/gccframe.h: New file.
803         * sysdeps/powerpc/gccframe.h: New file.
804         * sysdeps/s390/gccframe.h: New file.
805         * sysdeps/sh/gccframe.h: New file.
806         * sysdeps/sparc/gccframe.h: New file.
807         * sysdeps/vax/gccframe.h: New file.
808         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
809         Set on all architectures except ia64.
810         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
811         for i386.
812         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
813         __deregister_frame_info): Move to elf/Versions.
814         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
815         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
816         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
817         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
818         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
819         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
820         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
821         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
822         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
823         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
824         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
825         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
826         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
827         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
828         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
829         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
830         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
831         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
833 2001-11-15  Jeff Law  <law@redhat.com>
835         * posix/regex.c (uintptr_t): Do not provide a definition if the
836         system provided one.
838 2001-11-13  Roland McGrath  <roland@frob.com>
840         * stdio-common/tmpfile.c: Moved to ...
841         * sysdeps/generic/tmpfile.c: ... here.
842         * sysdeps/mach/hurd/tmpfile.c: New file.
844         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
845         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
846         (fopenport): Define as weak alias.
848         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
849         * libio/libioP.h: ... to here.
851 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
853         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
854         program header twice.  Construct list with the needed information.
856 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
858         * po/ca.po: Update from translation team.
860         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
861         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
862         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
863         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
865 2001-11-10  Andreas Jaeger  <aj@suse.de>
867         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
868         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
869         Contributed by Stephen L Moshier <moshier@mediaone.net>.
871 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
873         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
874         correctly.
875         * elf/dl-load.c (is_dst): New function.
876         (_dl_dst_count): Use is_dst to check for DST variable.
877         (_dl_dst_substitute): Likewise.
879 2001-11-09  Roland McGrath  <roland@frob.com>
881         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
882         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
883         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
884         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
885         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
886         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
887         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
888         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
889         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
890         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
891         * sysdeps/mach/hurd/powerpc/Dist: New file.
893         * hurd/privports.c (__get_privileged_ports):
894         Only contact the proc server if necessary for this call.
895         Suggested by Neal H Walfield <neal@cs.uml.edu>.
896         Check error return for mach_port_mod_refs.
898 2001-11-09  Andreas Schwab  <schwab@suse.de>
900         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
902 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
904         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
905         object is always the last in the list.
906         (_dl_map_object_from_fd): Delete code to remove from object list
907         when DF_1_NOOPEN is seen.  This is done in lose.
909 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
911         * elf/dl-object.c (_dl_new_object): Various small optimizations.
913 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
915         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
916         HWCAP_CHECK macro code.
918         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
919         Now returns MAP_FAILED on error.
920         * elf/rtld.c: Adjust caller.
921         * sysdeps/generic/dl-cache.c: Likewise.
922         * sysdeps/generic/ldsodefs.h: Adjust description.
924         * elf/dl-version.c (match_symbol): Optimize error handling for size.
925         (_dl_check_map_versions): Likewise.
927 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
929         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
930         _dl_signal_error directly, always use lose.  Set fd to -1 after
931         file is closed.
932         (lose): Don't call close if fd == -1.
934 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
936         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
937          Also fix typo @code {mbsinit} to @code{mbsinit}.
939 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
941         * elf/dl-profile.c: Replace state variable with simple flag named
942         running.  Remove commented-out code.
944         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
945         (_dl_init_paths): Likewise.
946         (_dl_map_object_from_fd): Likewise.
947         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
949 2001-11-06  Roland McGrath  <roland@frob.com>
951         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
952         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
954         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
955         sysdeps/powerpc/elf/sysdep.h.
956         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
958 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
960         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
961         speed.
962         (process_envvars): Some more optimizations.
963         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
965         * elf/elf.h: Add dynamic tag definitions for prelinking.
967         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
968         Rewrite code to remove environment varables for SUID binaries.
969         Small optimization in LD_PROFILE handling.
970         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
971         changes.
972         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
974         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
976         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
977         strings.  Change type of second parameter.
978         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
979         for last change.
981         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
983 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
985         * manual/string.texi: Fix typos.
986         * manual/examples/argp-ex2.c: Likewise.
988 2001-11-05  Roland McGrath  <roland@frob.com>
990         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
991         the more-specific unix/sysv/linux/powerpc file and breaks everything.
992         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
993         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
994         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
995         here, put under [__ELF__].
997 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
999         * manual/charset.texi: Extensive editing work.
1000         * manual/nss.texi: Likewise.
1001         Changes by Dennis Grace <dgrace@us.ibm.com>.
1003 2001-11-04  Roland McGrath  <roland@frob.com>
1005         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
1006         parameter to dir_mkfile.
1008 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
1010         * string/bits/string2.h (__strndup): If n is smaller than len, set
1011         len to n + 1.
1012         * string/tester.c (test_strndup): New function.
1013         (main): Call it.
1015 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
1017         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
1019         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
1020         * scripts/cpp: New file.
1022         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
1023         for rtld_search_dirs content.  Minor optimizations.
1025 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
1027         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
1028         avoiding unnecessary duplication.
1030 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
1032         * elf/dl-load.c (_dl_map_object): If library was found using
1033         LD_LIBRARY_PATH, don't try RUNPATH list.
1035 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1037         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
1038         Correct second argument of register_dump call.
1039         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
1040         Likewise.
1042 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
1044         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
1045         modules.
1046         * iconvdata/TESTS: Likewise.
1047         * iconvdata/gconv-modules: Likewise.
1048         * iconvdata/ibm1132.c: New file.
1049         * iconvdata/ibm1132.h: New file.
1050         * iconvdata/ibm1133.c: New file.
1051         * iconvdata/ibm1133.h: New file.
1052         * iconvdata/ibm1162.c: New file.
1053         * iconvdata/ibm1162.h: New file.
1054         * iconvdata/testdata/IBM1132: New file.
1055         * iconvdata/testdata/IBM1132..UTF8: New file.
1056         * iconvdata/testdata/IBM1133: New file.
1057         * iconvdata/testdata/IBM1133..UTF8: New file.
1058         * iconvdata/testdata/IBM1162: New file.
1059         * iconvdata/testdata/IBM1162..UTF8: New file.
1060         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
1062         * string/string.h: Fix typo in comment.
1063         * wcsmbs/wchar.h: Likewise.
1065 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
1067         * manual/getopt.texi (getopt_long, getopt_long_only): Include
1068         const in type of longopts parameter.
1070 2001-10-29  Andreas Jaeger  <aj@suse.de>
1072         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
1074 2001-10-29  Kevin Ryde  <user42@zip.com.au>
1076         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
1077         output, clarify `#' behaviour on 0.
1078         (Floating-Point Conversions): Clarify that %g only uses %e when
1079         the exponent would be greater than 1.
1081 2001-10-28  Roland McGrath  <roland@frob.com>
1083         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
1084         * sysdeps/mach/powerpc/machine-sp.h: New file.
1085         * sysdeps/mach/powerpc/sysdep.h: New file.
1086         * sysdeps/mach/powerpc/thread_state.h: New file.
1088         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
1089         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
1090         expect to need the same thing on every platform.
1092         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
1093         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
1095         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
1096         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
1097         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
1098         Move all these assembly-related definitions to ...
1099         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
1101         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
1102         by Peter Bruin <pjbruin@dds.nl>.
1104         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
1105         packing results for a `poll' call.
1107 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
1109         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
1110         correctly.
1111         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
1112         bracket expression.
1114         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
1115         nrules value.
1116         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
1118 2001-10-24  H.J. Lu  <hjl@gnu.org>
1120         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
1121         Use __BEGIN_DECLS/__END_DECLS around prototypes.
1122         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
1124 2001-10-21  Jim Meyering  <meyering@lucent.com>
1126         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
1127         this code would end up calling gettext even in packages built
1128         with --disable-nls.
1129         * posix/getopt.c (_): Likewise.
1130         * posix/regex.c (_): Likewise.
1132 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
1134         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
1135         lookup not ip6.int.
1136         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
1137         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
1139 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
1141         * misc/sys/cdefs.h (__attribute_used__): Define.
1142         * elf/rtld.c (_dl_start): Add __attribute_used__.
1143         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
1145 2001-10-25  Andreas Schwab  <schwab@suse.de>
1147         * stdlib/a64l.c: Expect least significant digit first.
1148         * stdlib/l64a.c: Produce least significant digit first.
1149         * stdlib/Makefile (tests): Add test-a64l.
1150         * stdlib/test-a64l.c: New file.
1151         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
1153 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
1155         * po/sk.po: Update from translation team.
1157 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
1159         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
1161 2001-10-18  Andreas Schwab  <schwab@suse.de>
1163         * math/libm-test.inc (print_ulps): Print ulp values rounded to
1164         next whole number.
1165         (print_function_ulps): Likewise.
1166         (print_complex_function_ulps): Likewise.
1167         (print_max_error): Likewise.
1168         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
1170 2001-10-16  Andreas Schwab  <schwab@suse.de>
1172         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
1173         implementation.
1175         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
1176         BSD_SETJMP or BSD__SETJMP is defined, resp.
1177         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
1178         a tail call to __sigsetjmp that would require extending the
1179         caller's frame.
1180         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
1181         * sysdeps/m68k/bsd-setjmp.S: Deleted.
1182         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
1183         Reported by Jes Sorensen <jes@trained-monkey.org>.
1185 2001-10-16  Andreas Jaeger  <aj@suse.de>
1187         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
1188         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
1189         close PR libc/2589.
1191 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
1193         * po/ca.po: New file.  Contributed by the translation team.
1195 2001-10-15  Ralf Baechle  <ralf@gnu.org>
1197         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
1198         a varargs prototype.  Remove dependency from kernel header files.
1200         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
1201         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
1203 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
1205         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
1206         to generate hexadecimal identifier.
1207         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
1209 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
1211         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
1213 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
1215         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
1216         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
1217         Contributed by Stephen L Moshier <moshier@mediaone.net>.
1219         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
1220         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1221         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
1222         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
1223         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
1224         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
1226         * timezone/africa: Update from tzdata2001d.
1227         * timezone/asia: Likewise.
1228         * timezone/australasia: Likewise.
1229         * timezone/backward: Likewise.
1230         * timezone/europe: Likewise.
1231         * timezone/leapseconds: Likewise.
1232         * timezone/northamerica: Likewise.
1233         * timezone/southamerica: Likewise.
1234         * timezone/zone.tab: Likewise.
1236 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1238         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
1239         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
1241 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
1243         * elf/elf.h (PT_TLS): New definition.
1245 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
1247         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
1248         bits/errno.h
1250 2001-10-07  Roland McGrath  <roland@frob.com>
1252         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
1254 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
1256         * elf/elf.h: Add more ELFOSABI_* constants.
1258 2001-10-04  Ben Collins  <bcollins@debian.org>
1260         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
1261         decleration of __need_wchar_t.
1263 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
1265         * string/bits/string2.h (__strsep_g): Add prototype.
1266         (__strsep): Use it.
1267         * string/Versions (__strsep): Remove.
1268         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
1270 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
1272         * manua/llio.texi: Clarify file references added by mmap.
1273         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
1275 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
1277         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
1278         Add sc_loadrs and sc_rbs_bas to match current kernel.
1280 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
1282         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
1284         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
1286 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
1288         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
1289         object has been bumped because of relocation dependency, avoid
1290         duplicates in l_scope.
1291         (show_scope): Fix typos.
1292         * elf/Makefile: Add rules to build and run reldep6.
1293         * elf/reldep6.c: New file.
1294         * elf/reldep6mod0.c: New file.
1295         * elf/reldep6mod1.c: New file.
1296         * elf/reldep6mod2.c: New file.
1297         * elf/reldep6mod3.c: New file.
1298         * elf/reldep6mod4.c: New file.
1300 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
1302         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
1303         sparc64_fixup_plt.
1304         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
1305         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
1306         for non-lazy binding. Fix .plt[32768+] handling.
1307         (elf_machine_plt_value): Don't add addend.
1308         (elf_machine_rela): Call sparc64_fixup_plt instead of
1309         elf_machine_fixup_plt.
1310         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
1311         dynamic linker at 0xfffff800XXXXXXXX.
1313         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
1315 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
1317         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
1319 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
1321         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
1322         declare __cmsg_data field if its size would be bigger than 0.
1323         (CMSG_DATA): Adjust accordingly.
1324         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
1325         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
1326         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
1327         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
1328         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
1329         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
1330         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1332 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
1334         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
1335         * iconvdata/testdata/IBM1160: New file.
1336         * iconvdata/testdata/IBM1160..UTF8: New file.
1337         * iconvdata/testdata/IBM1161: New file.
1338         * iconvdata/testdata/IBM1161..UTF8: New file.
1339         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1341 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
1343         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
1344         UL_SETFSIZE computations better.
1346         * rt/Makefile: Remove use of filter for librt again.
1348         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
1349         UL_SETFSIZE computations better.
1351         * string/Versions: Export __strsep for GLIBC_2.2.5.
1352         * string/bits/string2.h: Define all __STRING_INLINE functions if
1353         _FORCE_INLINES is defined.
1354         Use int instead of char of parameter types.
1355         (__strsep): Don't use __strsep_g.  Don't define it.
1356         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
1357         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
1358         __strcpy_small.
1359         (__stpcpy_a_small): Renamed from __stpcpy_small.
1360         (__strcspn_c1): Don't define if _FORCE_INLINES.
1361         (__strspn_c1): Likewise.
1363 2001-09-22  Ben Collins  <bcollins@debian.org>
1365         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
1366         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
1367         * sysdeps/ia64/bits/sigaction.h: Likewise.
1368         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
1370 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
1372         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
1374 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
1376         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
1378 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
1380         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
1382 2001-09-20  H.J. Lu  <hjl@gnu.org>
1384         * include/dlfcn.h (__RTLD_SPROF): New definiton.
1385         * elf/dl-open.c (dl_open_worker): Return immediately after loading
1386         for __RTLD_SPROF.
1387         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
1388         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
1390 2001-09-20  H.J. Lu  <hjl@gnu.org>
1392         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
1393         don't add 1.
1395 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
1397         * nss/getent.c: Accept -s parameter to overwrite rules in
1398         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
1400         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
1401         with as many ".0" as necessary to form a complete address
1402         inet_network understands.
1404         * nss/getent.c: Various cleanups.  Use simpler and fewer function
1405         calls.
1407 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1409         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
1410         _JMPBUF_UNWINDS.
1411         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
1413 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
1415         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
1416         IBM1161.
1417         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
1418         * iconvdata/ibm1160.c: New file.
1419         * iconvdata/ibm1160.h: New file.
1420         * iconvdata/ibm1161.c: New file.
1421         * iconvdata/ibm1161.h: New file.
1422         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1424 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
1426         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
1427         difference between base address and first PT_LOAD's virtual address,
1428         not the base address.
1430 2001-09-11  Tom Rix  <trix@redhat.com>
1432         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
1433         ifdef for __getopt_clean_environment.
1434         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
1436 2001-09-22  Andreas Jaeger  <aj@suse.de>
1438         * elf/reldep4.c (main): Add proper prototype to fix warning.
1440         * elf/reldep5.c (main): Remove unused variable.
1442         * math/math_private.h: Add prototypes.
1444 2001-09-21  Andreas Jaeger  <aj@suse.de>
1446         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
1447         * sysdeps/x86_64/Dist: New file.
1448         * sysdeps/x86_64/soft-fp/Dist: New file.
1450         * sysdeps/gnu/Dist: Remove eval.c.
1452 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
1454         * malloc/memusage.c (realloc): Don't count already allocated
1455         memory in the sums.
1456         (me): Always use dlsym() to find the real implementations.
1458         * malloc/memusage.sh: Make -n option actually do something.
1460 2001-09-20  Andreas Jaeger  <aj@suse.de>
1462         * elf/elf.h (R_390_NUM): Correct value.
1464         * Versions.def: Add missing versions 2.2.3 for libthread_db and
1465         libpthread.
1467         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
1468         for x86-64, install x86-64 into */lib64.
1470         * shlib-versions: Add x86-64.
1472         * elf/elf.h: Add x86-64 relocations.
1474 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
1476         * po/fr.po: Update from translation team.
1478 2001-09-19  Andreas Jaeger  <aj@suse.de>
1480         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
1481         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
1482         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
1483         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
1484         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
1485         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
1486         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
1487         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
1488         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
1489         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
1490         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
1491         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
1492         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
1493         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
1494         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
1495         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
1496         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
1497         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
1498         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
1499         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
1500         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
1501         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
1502         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
1503         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
1504         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
1505         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
1506         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
1507         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
1508         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
1509         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
1510         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
1511         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
1512         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
1513         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
1514         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
1515         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
1516         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
1517         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
1518         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
1519         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
1520         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
1521         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
1522         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
1523         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
1524         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
1525         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
1526         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
1527         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
1528         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
1529         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
1530         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
1531         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
1532         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
1533         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
1534         * sysdeps/unix/x86_64/sysdep.S: New file.
1535         * sysdeps/unix/x86_64/sysdep.h: New file.
1536         * sysdeps/x86_64/Implies: New file.
1537         * sysdeps/x86_64/Makefile: New file.
1538         * sysdeps/x86_64/Versions: New file.
1539         * sysdeps/x86_64/__longjmp.S: New file.
1540         * sysdeps/x86_64/abort-instr.h: New file.
1541         * sysdeps/x86_64/atomicity.h: New file.
1542         * sysdeps/x86_64/bits/endian.h: New file.
1543         * sysdeps/x86_64/bits/setjmp.h: New file.
1544         * sysdeps/x86_64/bits/string.h: New file.
1545         * sysdeps/x86_64/bp-asm.h: New file.
1546         * sysdeps/x86_64/bsd-_setjmp.S: New file.
1547         * sysdeps/x86_64/bsd-setjmp.S: New file.
1548         * sysdeps/x86_64/dl-machine.h: New file.
1549         * sysdeps/x86_64/elf/initfini.c: New file.
1550         * sysdeps/x86_64/elf/start.S: New file.
1551         * sysdeps/x86_64/ffs.c: New file.
1552         * sysdeps/x86_64/ffsll.c: New file.
1553         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
1554         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
1555         * sysdeps/x86_64/fpu/e_acosl.c: New file.
1556         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
1557         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
1558         * sysdeps/x86_64/fpu/e_expl.c: New file.
1559         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
1560         * sysdeps/x86_64/fpu/e_log10l.S: New file.
1561         * sysdeps/x86_64/fpu/e_log2l.S: New file.
1562         * sysdeps/x86_64/fpu/e_logl.S: New file.
1563         * sysdeps/x86_64/fpu/e_powl.S: New file.
1564         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
1565         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
1566         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
1567         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
1568         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
1569         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
1570         * sysdeps/x86_64/fpu/fegetenv.c: New file.
1571         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
1572         * sysdeps/x86_64/fpu/fegetround.c: New file.
1573         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
1574         * sysdeps/x86_64/fpu/fesetenv.c: New file.
1575         * sysdeps/x86_64/fpu/fesetround.c: New file.
1576         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
1577         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
1578         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
1579         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
1580         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
1581         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
1582         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
1583         * sysdeps/x86_64/fpu/s_atanl.c: New file.
1584         * sysdeps/x86_64/fpu/s_cosl.S: New file.
1585         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
1586         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
1587         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
1588         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
1589         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
1590         * sysdeps/x86_64/fpu/s_logbl.c: New file.
1591         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
1592         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
1593         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
1594         * sysdeps/x86_64/fpu/s_rintl.c: New file.
1595         * sysdeps/x86_64/fpu/s_significandl.c: New file.
1596         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
1597         * sysdeps/x86_64/fpu/s_sinl.S: New file.
1598         * sysdeps/x86_64/fpu/s_tanl.S: New file.
1599         * sysdeps/x86_64/gmp-mparam.h: New file.
1600         * sysdeps/x86_64/hp-timing.c: New file.
1601         * sysdeps/x86_64/hp-timing.h: New file.
1602         * sysdeps/x86_64/htonl.S: New file.
1603         * sysdeps/x86_64/memusage.h: New file.
1604         * sysdeps/x86_64/setjmp.S: New file.
1605         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
1606         * sysdeps/x86_64/stackinfo.h: New file.
1607         * sysdeps/x86_64/sysdep.h: New file.
1608         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
1610         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
1611         L Moshier.
1613 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
1615         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
1616         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
1618 2001-09-18  Andreas Schwab  <schwab@suse.de>
1620         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
1621         list, now that l_scope is a pointer.
1623         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
1624         scope list.
1626 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
1628         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
1629         (elf_machine_rela_relative): Add a missing declaration.
1631 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
1633         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
1634         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
1635         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
1636         ldd-rewrite scripts.
1638 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
1640         * elf/ldd.bash.in: Update copyright message.
1642 2001-09-17  H.J. Lu  <hjl@gnu.org>
1644         * hurd/hurdmalloc.c (bcopy): Removed.
1645         (realloc): Replace bcopy with memcpy.
1646         * hurd/path-lookup.c (file_name_path_scan): Likewise.
1647         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
1648         * sunrpc/rpcinfo.c (pmapdump): Likewise.
1650         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
1651         (gethostbyaddr): Likewise.
1652         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
1654 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
1656         * sysdeps/gnu/eval.c: Removed.
1658 2001-09-18  Andreas Jaeger  <aj@suse.de>
1660         * sysdeps/i386/fpu/s_logbl.S: Move to ...
1661         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
1663         * sysdeps/i386/fpu/s_rintl.S: Move to ...
1664         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
1666         * sysdeps/i386/fpu/s_significandl.S: Move to ...
1667         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
1669 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
1671         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
1672         nrules value.
1674 2001-09-14  H.J. Lu  <hjl@gnu.org>
1676         * sysdeps/mips/fpu/libm-test-ulps: Updated.
1678 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
1680         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
1681         Patch by Florian La Roche <laroche@redhat.com>.
1683         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
1685         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
1686         ETHER_CRC_LEN.
1688 2001-09-14  Andreas Schwab  <schwab@suse.de>
1690         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
1691         Sumner <bls@sgi.com>.
1692         * posix/execlp.c: Likewise.
1694 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
1696         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
1697         is already found earlier in the search scope.
1699 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
1701         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
1702         filter.
1704 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
1706         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
1708 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
1710         * config.h.in: Enforce optimization to be used.
1711         * Makeconfig (preprocess-versions): Define ASSEMBLER.
1712         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
1713         * posix/Makefile (annexc-CFLAGS): Define to -O.
1714         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
1716 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
1718         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
1719         Patch by Stephan Kulow.
1721 2001-09-08  Ben Collins  <bcollins@debian.org>
1723         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
1724         usage of RESOLVE() (r_type, not reloc->r_type).
1726 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
1728         * elf/dl-object.c: Avoid allocating extra memory block for name.
1729         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
1730         allocated separately.
1731         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1733 2001-09-08  H.J. Lu  <hjl@gnu.org>
1735         * po/zh_TW.po: Fix a typo.
1737 2001-09-07  Tom Rix  <trix@redhat.com>
1739         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
1741 2001-08-26  Tom Rix  <trix@redhat.com>
1743         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
1744         command line options.
1745         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
1746         * sysdeps/unix/sysv/aix/start.c: Removed.
1747         * sysdeps/unix/sysv/aix/start-libc.c: New file.
1748         * sysdeps/unix/sysv/aix/init-first.c: New file.
1749         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
1751 2001-09-08  Ben Collins  <bcollins@debian.org>
1753         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
1754         * sysdeps/generic/dl-machine.h: Likewise.
1755         * sysdeps/hppa/dl-fptr.c: Likewise.
1756         * sysdeps/ia64/dl-fptr.c: Likewise.
1757         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
1758         * sysdeps/mips/dl-machine.h: Likewise.
1759         * sysdeps/mips/mips64/dl-machine.h: Likewise.
1760         * sysdeps/powerpc/dl-machine.c: Likewise.
1762 2001-09-07  Ben Collins  <bcollins@debian.org>
1764         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
1766         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
1768 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
1770         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
1771         dependencies if necessary.
1773         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
1774         loaded directly) determine length if l_initfini list by iterating
1775         over its elements.  Minor optimizations.
1776         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
1777         for dependency objects.
1778         If object was already loaded check whether any of the dependencies
1779         is already on the relocation dependency list.  If yes, remove the
1780         latter.  Minor optimizations.
1781         * elf/dl-lookup.c (add_dependency): Add check for self reference of
1782         maps here.  Search l_initfini list only if the object was loaded
1783         directly and not only as a dependency.
1784         (_dl_lookup_symbol): Add relocation dependency also if object
1785         is not in global scope.  Remove test for self-reference here.
1786         (_dl_lookup_versioned_symbol): Likewise.
1787         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
1788         element of first name record.
1789         * elf/loadtest.c: Add some more test to recognize early if an object
1790         wasn't unloaded.
1791         * elf/Makefile: Add rules to build and run reldep5.
1792         * elf/reldep5.c: New file.
1793         * elf/reldepmod5.c: New file.
1794         * elf/reldepmod6.c: New file.
1796         * elf/reldep2.c: Fix typo.
1798 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
1800         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
1801         elements.  Change l_scope to be a pointer only.
1802         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
1803         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
1804         here add searchlist of newly open file to the dependency's scope.
1805         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
1806         only searchlist from its scope.  Free own scope array if necessary.
1807         * elf/Makefile (tests): Add dblload and dblunload now.
1809 2001-09-06  Andreas Jaeger  <aj@suse.de>
1811         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
1812         Stephen L Moshier.
1814 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
1816         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
1817         they both fail.
1818         * elf/dblload.c: New file.
1819         * elf/dblloadmod1.c: New file.
1820         * elf/dblloadmod2.c: New file.
1821         * elf/dblloadmod3.c: New file.
1822         * elf/dblunload.c: New file.
1824 2001-09-04  Richard Henderson  <rth@redhat.com>
1826         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
1827         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
1829 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
1831         Correct very misleading message for error in failed runtime relocation.
1832         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
1833         place of the error.
1834         (_dl_signal_cerror): Likewise.
1835         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
1836         * elf/dl-close.c: Likewise.
1837         * elf/dl-deps.c: Likewise.
1838         * elf/dl-load.c: Likewise.
1839         * elf/dl-lookup.c: Likewise.
1840         * elf/dl-open.c: Likewise.
1841         * elf/dl-reloc.c: Likewise.
1842         * elf/dl-sym.c: Likewise.
1843         * elf/dl-version.c: Likewise.
1844         * sysdeps/generic/dl-sysdep.c: Likewise.
1846 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
1848         * iconv/strtab.c (strtabinit): Initialize null Strent.
1849         (newstring): Move len == 0 handling...
1850         (strtabadd): ...here.
1851         If len == 1, return null Strent.
1852         When inserting a suffix of an existing string, check if
1853         it is not equal to some suffix already recorded.
1854         Copy left and right members over if adding longer string.
1856 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
1858         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
1860         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
1861         (__syscall_gethostname): Add prototype.
1863 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
1865         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
1867 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
1869         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
1871 2001-08-27  Roland McGrath  <roland@frob.com>
1873         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
1874         short, copy that much into NAME anyway before returning error.
1876 2001-09-01  Richard Henderson  <rth@redhat.com>
1878         * sysdeps/alpha/elf/Dist: Remove file.
1879         * sysdeps/alpha/elf/Makefile: Remove file.
1880         * sysdeps/alpha/elf/crtbegin.S: Remove file.
1881         * sysdeps/alpha/elf/crtend.S: Remove file.
1882         * sysdeps/alpha/elf/initfini.c: New file.
1884 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
1886         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
1887         * iconv/tst-iconv3.c: Likewise.
1889 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
1891         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
1893 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
1895         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
1896         export it.
1897         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
1898         * iconv/iconv_prog.c (insert_cache): New function.
1899         (print_known_names): If cache is used call insert_cache to use the
1900         information from the cache [PR libc/2509].
1902 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
1904         * time/strptime.c (strptime_internal): Recognize 'l' format and
1905         handle it like 'I' for symmetry with strftime.
1907 2001-08-31  Richard Henderson  <rth@redhat.com>
1909         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
1910         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
1911         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
1912         (print_statistics): Make scalar unsigned long long.
1913         * sysdeps/alpha/hp-timing.h: New file.
1915 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
1917         * stdio-common/perror.c (perror): Save errno early, pass it
1918         down to perror_internal.
1919         (perror_internal): Add errnum argument.
1921 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
1923         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
1924         Don't add old memory content for R_ALPHA_REFQUAD.
1926 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
1928         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
1929         memory correctly.
1931         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
1932         instead of open, __close instead of close, __getpagesize instead
1933         of getpagesize.
1935         * string/argz-stringify.c (__argz_stringify): Use __strnlen
1936         instead of strnlen.
1937         * include/string.h (strndupa): Redefine here to use __strnlen
1938         instead of strnlen.
1939         * string/strndup.c (__strndup): Use __strnlen not strnlen.
1941         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
1942         connected).
1944 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
1946         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
1947         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
1948         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
1949         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
1950         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
1951         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
1952         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
1954 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
1956         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
1958 2001-08-30  Andreas Jaeger  <aj@suse.de>
1960         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
1961         contributed Stephen L Moshier.
1963 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
1965         * sunrpc/etc.rpc (sgi_fam): Add.
1967 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
1969         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
1971 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
1973         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
1974         first is from a previous call.
1975         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
1977 2001-08-29  Andreas Schwab  <schwab@suse.de>
1979         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
1981 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1983         * config.make.in (INSTALL_SCRIPT): Define.
1984         * Makeconfig (INSTALL_SCRIPT): Define.
1985         * Makerules (do-install-script): New macro to install scripts using
1986         INSTALL_SCRIPT.
1987         (install-bin-script): New rule to install scripts with
1988         do-install-script.
1989         (install-bin-script-nosubdir): New rule.
1990         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
1991         (distinfo-vars): Add $(install-bin-script).
1992         * Rules (others): Likewise.
1993         * Makefile (glibcbug): Install with install-bin-script.
1994         * debug/Makefile (xtrace): Likewise.
1995         (catchsegv): Likewise.
1996         * elf/Makefile (ldd): Likewise.
1997         * malloc/Makefile (mtrace): Likewise.
1998         * timezone/Makefile (tzselect): Likewise.
2000 2001-08-29  H.J. Lu  <hjl@gnu.org>
2002         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
2003         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
2004         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
2006 2001-08-29  Andreas Schwab  <schwab@suse.de>
2008         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
2010 2001-08-28  H.J. Lu  <hjl@gnu.org>
2012         * Makeconfig (combreloc-LDFLAGS): New variable.
2013         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
2014         * config.make.in (have-z-combreloc): New variable.
2015         * configure.in: Substitute libc_cv_z_combreloc.
2017 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
2019         * po/sv.po: Update from translation team.
2020         * po/fr.po: Likewise.
2021         * po/da.po: Likewise.
2023 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2025         * Makerules: Fix a typo: MD% -> MD5.
2027 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
2029         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
2030         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
2032 2001-08-28  Andreas Jaeger  <aj@suse.de>
2034         * manual/libc-texinfo.sh: Add entry about free manuals.
2036         * manual/contrib.texi (Contributors): Fix cross reference.
2038         * manual/libc.texinfo (Copying): Include freemanuals.
2040         * manual/Makefile (appendices): Add freemanuals.
2042         * manual/freemanuals.texi: New file.
2043         Patch by Brian Youmans <3diff@gnu.org>.
2045         * manual/libm-err-tab.pl: Pretty print more platforms, print a
2046         smaller table.
2048         * manual/math.texi (Errors in Math Functions): Fix grammar, start
2049         table on separate page.
2050         Patch by Brian Youmans <3diff@gnu.org>.
2052 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
2054         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
2055         the connection went down after we first used it try to connect
2056         again and resend the message before printing to the console.
2057         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
2059 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
2061         * string/tst-strlen.c (main): Test strnlen (, -1) too.
2062         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
2063         bit set.
2065 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
2067         * iconv/strtab.c (searchstring): Use correct length for comparison.
2068         (strtabadd): Account total size correct if new string has old string as
2069         substring.
2071 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
2073         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
2075 2001-08-27  Andreas Jaeger  <aj@suse.de>
2077         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
2079         * math/libm-test.inc (j0_test): Add extra tests.
2080         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
2081         not x, in Hankel approximation.
2082         Patches by Stephen L Moshier.
2084 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
2086         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
2087         link_map.
2089         * configure.in: Fix test for .rela.dyn section.
2091         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
2093 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
2095         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
2096         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
2097         Pass type_class to _dl_lookup_*.
2098         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
2099         Pass around just type_class instead of noexec, noplt pair.
2100         (_dl_lookup_versioned_symbol): Likewise.
2101         (_dl_lookup_symbol_skip): Pass around just type_class instead of
2102         noexec, noplt pair.
2103         (_dl_lookup_versioned_symbol_skip): Likewise.
2104         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
2105         * elf/do-lookup.h (do_lookup): Likewise.
2106         * include/link.h (struct link_map): Replace noexec and noplt fields
2107         in l_lookup_cache with type_class field.
2108         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
2109         ELF_RTYPE_CLASS_COPY): Define.
2110         Adjust prototypes for _dl_lookup_symbol and
2111         _dl_lookup_versioned_symbol.
2112         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
2113         elf_machine_lookup_noexec_p): Remove.
2114         (elf_machine_type_class): Define.
2115         * sysdeps/arm/dl-machine.h: Likewise.
2116         * sysdeps/hppa/dl-machine.h: Likewise.
2117         * sysdeps/cris/dl-machine.h: Likewise.
2118         * sysdeps/i386/dl-machine.h: Likewise.
2119         * sysdeps/ia64/dl-machine.h: Likewise.
2120         * sysdeps/m68k/dl-machine.h: Likewise.
2121         * sysdeps/mips/mips64/dl-machine.h: Likewise.
2122         * sysdeps/mips/dl-machine.h: Likewise.
2123         * sysdeps/powerpc/dl-machine.h: Likewise.
2124         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2125         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2126         * sysdeps/sh/dl-machine.h: Likewise.
2127         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2128         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2130 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
2132         * manual/message.texi (Advanced gettext functions): Change
2133         description of plural forms for Slovak.
2134         Reported by Marcel Telka <marcel@telka.sk>.
2136         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
2137         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
2139 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
2141         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
2142         typo.  Patch by Florian La Roche <laroche@redhat.com>.
2144 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
2146         * include/link.h (struct link_map): Add l_lookup_cache element.
2147         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
2148         (RESOLVE_MAP): Likewise.
2149         (_dl_relocate_object): Remove cache initialization.
2150         * elf/dl-lookup.c: Rip out cache handling code.
2151         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
2152         declarations.
2154         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
2155         remove some __builtin_expect.
2156         (_dl_lookup_versioned_symbol): Likewise.
2158         * config.h.in: Add HAVE_Z_COMBRELOC.
2159         * configure.in: Add test for -z combreloc.
2161         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
2162         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
2163         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
2164         case to almost no code.
2166 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
2168         * po/tr.po: Update from translation team.
2170 2001-08-24  Andreas Jaeger  <aj@suse.de>
2172         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
2173         make clean works.
2175 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2177         * elf/rtld.c (print_statistics): Printf % after percent values.
2178         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
2180         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
2181         don't have to compute the hash value and initialize current_value.
2182         Move reference_name variable to where it is needed.
2183         (_dl_lookup_versioned_symbol): Likewise.
2185 2001-08-24  Roland McGrath  <roland@frob.com>
2187         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
2188         Just test that strerror returns non-null for a few errno codes.
2190 2001-08-23  Roland McGrath  <roland@frob.com>
2192         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
2193         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
2195         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
2197         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
2198         __mach_reply_port.
2200 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2202         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
2203         returns NULL.
2205         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
2206         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
2207         doesn't do it.
2208         * elf/rtld.c: Include <sys/param.h>.
2209         * elf/dl-reloc.c: Likewise.
2211 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2213         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
2214         empty to prevent junk from being generated.
2215         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
2217 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
2219         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
2220         records.  Rename endrel to relative, initialize it to r, and use it
2221         in elf_machine_rel_relative calls.  Point r after relative relocs.
2223 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2225         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
2226         of R_386_NONE.
2228 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
2230         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
2231         necessary.  Undefine newly defined macros at the end.
2232         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
2233         Rename from elf_machine_rel_relative.
2234         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
2235         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
2236         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
2237         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
2238         Likewise.
2239         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
2240         Likewise.
2241         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
2242         Fix argument types.
2243         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
2244         Fix argument types.
2245         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
2246         Likewise.  Fix argument types.
2247         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
2248         Likewise.  Fix argument types.
2249         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
2250         Fix argument types.
2251         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
2252         ElfW(Rel) in argument.
2253         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
2254         function.
2256 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
2258         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
2260 2001-08-24  Andreas Jaeger  <aj@suse.de>
2262         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
2263         Stephen L Moshier <moshier@mediaone.net>.
2265 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2267         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
2268         first if RELCOUNT is set.
2270         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
2271         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
2272         elf_machine_rel_relative.
2273         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
2274         Minor optimizations.
2275         * sysdeps/arm/dl-machine.h: Likewise.
2276         * sysdeps/cris/dl-machine.h: Likewise.
2277         * sysdeps/hppa/dl-machine.h: Likewise.
2278         * sysdeps/i386/dl-machine.h: Likewise.
2279         * sysdeps/ia64/dl-machine.h: Likewise.
2280         * sysdeps/m68k/dl-machine.h: Likewise.
2281         * sysdeps/mips/dl-machine.h: Likewise.
2282         * sysdeps/powerpc/dl-machine.h: Likewise.
2283         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2284         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2285         * sysdeps/sh/dl-machine.h: Likewise.
2286         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2287         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2289 2001-08-23  Roland McGrath  <roland@frob.com>
2291         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
2293         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
2294         sysdeps/mach version.  Implement counting ("recursive") mutexes
2295         on top of cthreads mutexes.
2296         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
2298         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
2299         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
2300         (__libc_cleanup_region_start, __libc_cleanup_region_end,
2301         __libc_clean_end): Define these to call the cleanup function after
2302         normal exit when they're supposed to.
2304         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
2305         Take new first arg DOIT, a boolean saying whether to really install
2306         any cleanup handler.
2307         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
2308         (__libc_cleanup_end): Likewise.
2309         * sysdeps/generic/bits/libc-lock.h: Same changes.
2310         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
2311         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
2312         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
2313         Likewise.
2314         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
2315         * sysdeps/generic/bits/stdio-lock.h
2316         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
2318 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2320         * elf/ldconfig.c (search_dir): Remove stale symlinks.
2322 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2324         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
2325         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
2326         lookups in cache.
2327         (_dl_lookup_versioned_symbol): Likewise.
2328         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
2329         relocation lookup.
2330         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
2331         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
2332         (lookup_cache, lookup_cache_versioned): Add declarations.
2334 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
2336         * stdlib/tst-random.c (main): Swap parameters in fail call.
2337         Patch by Pete Bevin <pete@petebevin.com>.
2339 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2341         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
2343 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
2345         * malloc/obstack.c: Indent preprocessor directives.
2346         Patch by Jim Meyering <meyering@ascend.com>.
2348         * po/ja.po: Update from translation team.
2350 2001-08-23  Roland McGrath  <roland@frob.com>
2352         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
2354         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
2355         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
2357 2001-08-22  Roland McGrath  <roland@frob.com>
2359         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
2360         __libc_lock_define_recursive.
2361         * elf/dl-open.c: Don't declare it here any more.
2362         * elf/dl-close.c: Likewise.
2363         * elf/dl-lookup.c: Likewise.
2364         * elf/dl-iteratephdr.c: Likewise.
2365         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
2366         __libc_lock_unlock_recursive.
2367         * elf/dl-close.c (_dl_close): Likewise
2368         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
2369         * elf/dl-open.c (_dl_open): Likewise
2371         * sysdeps/generic/bits/libc-lock.h
2372         (__libc_lock_define_recursive): New macro.
2373         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
2374         (_IO_lock_lock): Use __libc_lock_lock_recursive.
2375         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
2377         * conform/conformtest.pl (checknamespace): Sort the output list.
2379         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
2380         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
2381         definitions conditional on [__USE_XOPEN].
2383         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
2384         these unconditionally, not only use [__USE_BSD], so as to match
2385         the sysdeps/unix/sysv/linux files.
2387 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
2389         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
2390         avoid warnings.
2392         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
2393         DL_LOOKUP_ADDRESS.
2395 2001-08-22  Roland McGrath  <roland@frob.com>
2397         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
2398         conditionalization of sa_handler/sa_sigaction member types to
2399         match the sysdeps/unix/sysv/linux file.
2401 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
2403         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
2404         symbol sizes a bit better.
2406         * sysdeps/ia64/strncpy.S: Complete rewrite.
2407         Contributed by Jakub Jelinek <jakub@redhat.com>.
2409         * string/stratcliff.c (main): Add strncpy test.
2411 2001-08-22  Roland McGrath  <roland@frob.com>
2413         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
2414         and don't declare unsetenv or _environ directly.
2415         (unsetenv): Return int, not void.  Use __environ instead of _environ.
2417 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
2419         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
2420         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
2421         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
2422         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
2423         test for cmsg struct size.
2425 2001-04-23  Paul Eggert  <eggert@twinsun.com>
2427         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
2428         Rename __argc to ___argc in prototypes to avoid compatibility
2429         problems with systems that reserve the identifier "__argc".
2430         Similarly for __argv.
2432 2001-08-21  Roland McGrath  <roland@frob.com>
2434         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
2436         * mach/Makefile (tests): Removed.
2437         * mach/hello.c: File removed.
2439 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
2441         * po/sv.po: Update from translation team.
2443         * stdio-common/vfscanf.c: Fix handling of %l[].
2444         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
2446         * libio/Makefile (tests): Add tst-sscanf.
2447         * libio/tst-sscanf.c: New file.
2449         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
2450         * malloc/mtrace.c (tr_where): dli_sname always points to a
2451         non-empty string if != NULL.
2452         Reported by Tim Janik <timj@gtk.org>.
2454 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
2456         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
2457         buf.  Free resources on failure.
2458         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
2459         (makefd_xprt): Likewise.
2460         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
2461         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
2462         * sunrpc/auth_unix.c (authunix_create): Likewise.
2464 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
2466         * string/strnlen.c: Remove.
2467         * sysdeps/generic/strnlen.c: New file.
2468         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
2470 2001-08-21  Roland McGrath  <roland@frob.com>
2472         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
2473         as a macro, not an extern inline function.
2475         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
2476         * Versions.def (libc): Add GLIBC_2.2.5 set.
2477         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
2478         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
2480 2001-08-20  Roland McGrath  <roland@frob.com>
2482         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
2483         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
2485 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
2487         * string/bits/string2.h: Remove strnlen optimization here.
2488         * sysdeps/i386/i486/bits/string.h: Add it here.
2490 2001-08-21  Wolfram Gloger  <wg@malloc.de>
2492         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
2494 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
2496         * po/gl.po: Update from translation team.
2498 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
2500         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
2501         * misc/err.c (convert_and_print): Likewise.
2503         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
2504         function calls.
2506 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2508         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
2509         change of the gregset_t type.
2510         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
2512 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2514         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
2516 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
2518         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
2520         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
2522 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
2524         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
2525         before calling the cthreads initialization code.
2527 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
2529         * argp/argp-help.c: Fix two problems introduced in last change.
2531         * include/dirent.h: Include <dirstream.h> first.
2533 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
2535         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
2537         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
2538         * sunrpc/xdr_rec.c: Likewise.
2539         * sunrpc/xdr_mem.c: Likewise.
2540         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
2541         * sunrpc/rpc_cmsg.c: Likewise.
2542         * sunrpc/getrpcport.c (getrpcport): Likewise.
2543         * sunrpc/clnt_simp.c (callrpc): Likewise.
2544         * sunrpc/clnt_gen.c (clnt_create): Likewise.
2545         * string/envz.c: Likewise.
2547         * po/ko.po: Update from translation team.
2549         * argp/argp-help.c: Handle wide oriented stderr stream.
2551 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
2553         * sysdeps/generic/strtol.c: Little optimizations.  Add some
2554         __builtin_expect.
2556         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
2558         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
2559         * wcsmbs/wcwidth.c (wcwdith): Likewise.
2560         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
2562         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
2564         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
2566         * time/time.h (struct timespec): Use __time_t for tv_sec element.
2568         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
2569         wchar_t for function declarations and defintions.
2571         * misc/sys/select.h: Define __need_time_t before including <time.h>.
2572         Define suseconds_t if it hasn't happened yet.
2574         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
2576         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
2578         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
2579         <stddef.h>.
2581         * conform/data/stddef.h-data: Remove wint_t.
2583         * conform/conformtest.pl: Change namespace test to take #undef
2584         lines into account.
2586         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
2588         * conform/data/sys/socket.h-data: Add sockatmark.
2590 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
2592         * io/fts.c: Update from recent BSD source.
2594 2001-08-17  Roland McGrath  <roland@frob.com>
2596         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
2597         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
2598         Likewise.
2600 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
2602         * locale/duplocale.c (__duplocale): Also initialize the special
2603         __ctype_* elements.
2605         * conform/data/netdb.h-data: Adjust gai_strerror return type.
2607 2001-08-17  Andreas Jaeger  <aj@suse.de>
2609         * misc/getpass.c: Include wchar.h for prototypes.
2610         * malloc/obstack.c: Likewise.
2612 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
2614         * sunrpc/svc_simple.c (universal): Use __write instead of write.
2616         * wcsmbs/wcscoll.c: Also define __wcscoll.
2617         * include/wchar.h: Declare __wcscoll.
2619         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
2620         * libio/vwprintf.c: Likewise.
2621         * libio/wprintf.c: Likewise.
2623         * iconv/gconv_cache.c: Use __munmap instead of munmap.
2625 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
2627         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
2628         instead of mbrtowc.
2629         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
2630         wcslen, and __wcscoll instead of wcscoll.
2632         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
2634         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
2635         __getuid instead of getuid.
2637         * stdio-common/perror.c (perror): Use __close instead of close.
2638         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
2639         * libio/freopen.c (freopen): Likewise.
2640         * libio/freopen64.c (freopen64): Likewise.
2642         * libio/tst-ungetwc2.c (main): Define str const.
2644         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
2645         * libio/fwprintf.c: Also define __fwprintf.
2646         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
2647         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
2648         * assert/assert-perr.c: Likewise.
2649         * assert/assert.c: Likewise.
2650         * gmon/gmon.c: Likewise.
2651         * inet/rcmd.c: Likewise.
2652         * malloc/obstack.c: Likewise.
2653         * misc/err.c: Likewise.
2654         * misc/error.c: Likewise.
2655         * misc/getpass.c: Likewise.
2656         * posix/getopt.c: Likewise.
2657         * resolv/res_hconf.c: Likewise.
2658         * stdio-common/perror.c: Likewise.
2659         * stdio-common/psignal.c: Likewise.
2660         * stdlib/fmtmsg.c: Likewise.
2661         * sunrpc/auth_unix.c: Likewise.
2662         * sunrpc/clnt_perr.c: Likewise.
2663         * sunrpc/clnt_tcp.c: Likewise.
2664         * sunrpc/clnt_udp.c: Likewise.
2665         * sunrpc/clnt_unix.c: Likewise.
2666         * sunrpc/svc_simple.c: Likewise.
2667         * sunrpc/svc_tcp.c: Likewise.
2668         * sunrpc/svc_udp.c: Likewise.
2669         * sunrpc/svc_unix.c: Likewise.
2670         * sunrpc/xdr.c: Likewise.
2671         * sunrpc/xdr_array.c: Likewise.
2672         * sunrpc/xdr_rec.c: Likewise.
2673         * sunrpc/xdr_ref.c: Likewise.
2674         * sysdeps/generic/wordexp.c: Likewise.
2676         * po/it.po: Update from translation team.
2678         * misc/err.c: Handle wide oriented stderr stream.
2680 2001-08-14  Tom Rix  <trix@redhat.com>
2682         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
2683         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
2685 2001-08-13  Tom Rix  <trix@redhat.com>
2687         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
2688         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
2689         and __intptr_t.
2691 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2693         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
2694         Store the access registers to the ucontext structure.
2695         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
2696         Likewise.
2698         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
2699         Load the access registers from the ucontext structure.
2700         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
2701         Likewise.
2703         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
2704         offsets to the new ucontext layout.
2705         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
2707         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
2708         of the ucontext structure.
2709         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
2711 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
2713         * misc/error.c (error): Handle wide oriented stderr stream correctly.
2714         (error_at_line): Likewise.
2716         * stdio-common/perror.c (perror): Implement according to standard.
2717         The stream orientation must not be changed if the stream was not
2718         oriented before the call.
2719         * stdio-common/Makefile (tests): Add tst-perror.
2720         * stdio-common/tst-perror.c: New file.
2723 See ChangeLog.12 for earlier changes.