cygnus.com -> redhat.com
[glibc.git] / ChangeLog
blob7dc185b611031b92e0b34138121432823c6ad276
1 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
3         * elf/elf.h: Add more TLS definitions.
5 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
7         * include/features.h (__GLIBC_MINOR__): Bump to 3.
9 2002-01-02  Roland McGrath  <roland@frob.com>
11         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
12         __sigisemptyset.  Don't use MASK uninitialized.
14         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
15         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
16         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
17         __sigdelset, __sigaddset, __sigorset.
19         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
20         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
22         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
23         _hurd_ports is null.
25         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
26         for old CMU and new OSF Mach interface flavors.
27         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
28         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
30         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
32         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
33         Pass extra arguments to task_create for OSF variant.
34         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
36         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
37         conditional on [HAVE_AUX_VECTOR].
39         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
40         mach_msg_timeout_t as type of final argument.
42         * hurd/privports.c (__get_privileged_ports):
43         Change host_priv_t to mach_port_t in argument type.
44         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
45         Update decls.
47         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
48         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
49         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
50         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
51         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
52         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
54 2002-01-01  Roland McGrath  <roland@frob.com>
56         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
58 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
60         * include/stdlib.h: Define inlines for the _l variants of the strto*
61         functions.
63 2002-01-01  Roland McGrath  <roland@frob.com>
65         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
67         * mach/Machrules (MIG): Set CPP as well as CC.
69 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
71         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
72         locale to parse /proc/loadavg [PR libc/2760].
74 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
76         * elf/dl-conflict.c: Include sys/param.h.
77         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
78         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
79         warning.
80         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
81         literals to avoid warnings.
83 2001-12-31  Andreas Jaeger  <aj@suse.de>
85         * configure.in: Don't check for gsed since we do not use it anywhere.
87 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
89         * io/fts.c: Update from BSD to fix memory leaks.
91 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
93         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
94         * elf/chroot_canon.c: Likewise.
95         * elf/dl-object.c: Likewise.
96         * iconv/iconv_charmap.c: Likewise.
97         * iconv/iconv_prog.c: Likewise.
98         * libio/iogetdelim.c: Likewise.
99         * locale/lc-time.c: Likewise.
100         * stdlib/canonicalize.c: Likewise.
101         * sunrpc/svc.c: Likewise.
102         * sysdeps/generic/glob.c: Likewise.
104 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
106         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
107         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
108         remove high order bit from the program counter.
109         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
111 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
113         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
114         unnecessary code and add missing reloc types.
115         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
116         case for reloc type R_390_NONE.
118 2001-12-28  Andreas Jaeger  <aj@suse.de>
120         * io/bug-ftw3.c: Include string.h for prototypes.
122         * crypt/md5test.c (main): Remove unused variable.
124         * dlfcn/modstatic.c: Add prototype to avoid warning.
126 2001-12-26  Roland McGrath  <roland@frob.com>
128         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
129         check only (SS->pending & MASK) for the signal to return.
130         From Jeroen Dekkers <jeroen@dekkers.cx>.
132 2001-12-22  Roland McGrath  <roland@frob.com>
134         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
135         Use preprocessor #if conditionals instead of `if' to avoid
136         warnings about divide by zero in dead code.
138         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
139         _hurd_port_init, and __hurd_self_sigstate.
141         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
143 2001-12-21  Andreas Jaeger  <aj@suse.de>
145         * elf/dblloadmod1.c: Add prototype to avoid warning.
146         * elf/dblloadmod2.c: Likewise.
147         * elf/dblloadmod3.c: Likewise.
148         * elf/reldepmod5.c: Likewise.
149         * elf/reldepmod6.c: Likewise.
151         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
152         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
153         used on all architectures.
155         * sunrpc/svc_tcp.c: Add noreturn attribute for
156         svctcp_rendezvous_abort.
157         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
159         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
160         to avoid warning.
162 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
164         * manual/llio.texi (aio_fsync): Fix a typo.
165         Patch by Tammy Fox <tfox@redhat.com>.
167 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
169         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
170         stack bias from child stack pointer before passing it to clone syscall.
172 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
174         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
175         _SC_TZNAME_MAX.
176         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
177         Reported by Thorsten Kukuk <kukuk@suse.de>.
179         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
180         add some casts.
182         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
184 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
186         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
187         conforming: return EBADF if file descriptor is invalid and EINVAL
188         if file descriptor is no valid tty.
189         * login/tst-grantpt.c: New file.
190         * login/Makefile (tests): Add tst-grantpt.
192 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
194         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
195         different than implemented in last patch.
196         * io/bug-ftw3.c: Adjust test for changed handling of
197         inaccessibility of toplevel dir.
199 2001-12-16  Roland McGrath  <roland@frob.com>
201         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
202         * grp/initgroups.c (internal_getgrouplist): Likewise.
204         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
205         `default:' to silence new GCC warning.
206         Rewrite cast of lvalue to silence new GCC warning.
208         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
210         * sysdeps/mach/hurd/spawni.c: New file, by me with a
211         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
213 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
215         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
216         Patch by Stephen R. van den Berg.
218         * crypt/md5.h: Define md5_uintptr.
220 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
222         * libio/tst_swprintf.c (main): Add test for string argument with
223         zero precision.
224         * stdio-common/Makefile (tests): Add tst-sprintf.
225         * stdio-common/tst-sprintf.c: New file.
227 2001-12-13  Andreas Schwab  <schwab@suse.de>
229         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
230         zero precision with wide character string format.
232 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
234         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
235         but have a user supplied buffer, return the empty buffer, not NULL.
237 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
239         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
240         Patch by Eric Sharkey <sharkey@netrics.com>.
242         * crypt/md5test.c (main): Add test for multiple calls to
243         __md5_process_bytes to itererate over input string.
245 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
247         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
248         from __nis_findfastest.  Take timeout value from parameter.
249         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
250         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
251         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
253 2001-12-12  Andreas Jaeger  <aj@suse.de>
255         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
256         combreloc test so that it works in this case.
258         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
260 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
262         * sysdeps/sh/Makefile: New file.
263         * sysdeps/sh/_mcount.S: New file.
264         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
265         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
267 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
269         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
270         limitation [PR libc/2564].
272 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
274         * elf/Makefile (dl-routines): Add conflict.
275         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
276         (ld.so): Add _begin local symbol.
277         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
278         Define.
279         * elf/dl-deps.c (_dl_build_local_scope): New.
280         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
281         of all libraries.
282         * elf/do-rel.h (VALIDX): Define.
283         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
284         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
285         can be skipped.
286         * elf/dl-conflict.c: New file.
287         * elf/dl-lookup.c (_dl_debug_bindings): New.
288         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
289         non-NULL.
290         (_dl_lookup_symbol_skip): Likewise.
291         (_dl_lookup_versioned_symbol): Likewise.
292         (_dl_lookup_versioned_symbol_skip): Likewise.
293         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
294         define to ElfW(Rel).
295         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
296         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
297         ranges.
298         Don't adjust address dynamic tags if l_addr is 0.
299         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
300         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
301         (VALIDX, ADDRIDX): Define.
302         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
303         (dl_main): Print library list for LD_TRACE_PRELINKING.
304         If prelinking information can be used, skip relocating libraries and
305         call _dl_resolve_conflicts instead.
306         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
307         * elf/dl-load.c (_dl_map_object): Don't create fake libs
308         if LD_TRACE_PRELINKING.
309         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
310         + DT_ADDRNUM.
311         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
312         (DL_DEBUG_PRELINK): Define.
313         (_dl_resolve_conflicts): Add prototype.
315         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
316         .plt for prelinked libraries where prelinking info cannot be used.
317         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
318         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
319         * sysdeps/arm/bits/link.h: New file.
320         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
321         content of .got[1].
322         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
323         (ELF_MACHINE_PLT_REL): Define.
324         (elf_machine_rela, elf_machine_rela_relative): New.
325         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
326         of adjusting it if prelinked and prelinking cannot be used.
327         * sysdeps/i386/bits/link.h: New file.
328         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
329         content of .got[1].
330         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
331         (ELF_MACHINE_PLT_REL): Define.
332         (elf_machine_rela, elf_machine_rela_relative): New.
333         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
334         of adjusting it if prelinked and prelinking cannot be used.
335         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
336         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
337         to find out map for R_PPC_JMP_SLOT relocs.
338         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
339         (OPCODE_BA): Define.
340         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
341         libraries where prelinking info cannot be used.
342         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
343         (elf_machine_fixup_plt): Call sparc_fixup_plt.
344         (elf_machine_rela): Set value to 0 if relocating conflicts.
345         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
346         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
347         (sparc64_fixup_plt): Fix a typo.
348         (elf_machine_rela): Set value to 0 if relocating conflicts.
349         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
350         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
351         libraries where prelinking info cannot be used.
352         * sysdeps/sh/bits/link.h: New file.
353         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
354         content of .got[1].
355         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
356         of adjusting it if prelinked and prelinking cannot be used.
357         * sysdeps/s390/s390-32/bits/link.h: New file.
358         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
359         Save original content of .got[1].
360         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
361         of adjusting it if prelinked and prelinking cannot be used.
362         * sysdeps/s390/s390-64/bits/link.h: New file.
363         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
364         Save original content of .got[1].
365         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
366         of adjusting it if prelinked and prelinking cannot be used.
367         * sysdeps/x86_64/bits/link.h: New file.
368         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
369         Save original content of .got[1].
370         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
371         of adjusting it if prelinked and prelinking cannot be used.
373 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
375         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
376         where appropriate instead of numbers.  Little optimizations.
378 2001-12-10  Roland McGrath  <roland@frob.com>
380         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
381         set it.
383         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
384         set to GLIBC_2.2.5, not GLIBC_2.2.4.
386         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
387         Fix conditionals so this is set by default for stdio and not for libio.
388         * sysdeps/mach/hurd/configure: Regenerated.
390 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
392         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
394 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
396         * io/Makefile (tests): Add bug-ftw3.
397         * io/bug-ftw3.c: New file.
399         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
400         matches and GLOB_NOCHECK is set.
401         * posix/globtest.sh: Correct expected result for NOCHECK test.
403         * po/ca.po: Update from translation team.
405 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
407         Implement transliteration of characters in strings of the locale
408         definitions.
409         * locale/programs/linereader.c: Adjust for additional parameter to
410         lr_token.
411         (get_string): If character <Uxxxx> is not found try to transliterate
412         it.
413         * locale/programs/ld-ctype.c: Adjust for additional parameter to
414         lr_token.  Add const to charmap parameter of all functions.
415         (find_translit, find_translit2): New functions.
416         * locale/programs/charmap.c: Adjust for additional parameter to
417         lr_token.
418         * locale/programs/repertoire.c: Likewise.
419         * locale/programs/linereader.h: Likewise.
420         * locale/programs/ld-address.c: Likewise.  Add const to charmap
421         parameter of all functions.
422         * locale/programs/ld-collate.c: Likewise.
423         * locale/programs/ld-identification.c: Likewise.
424         * locale/programs/ld-measurement.c: Likewise.
425         * locale/programs/ld-messages.c: Likewise.
426         * locale/programs/ld-monetary.c: Likewise.
427         * locale/programs/ld-name.c: Likewise.
428         * locale/programs/ld-numeric.c: Likewise.
429         * locale/programs/ld-paper.c: Likewise.
430         * locale/programs/ld-paper.c: Likewise.
431         * locale/programs/ld-telephone.c: Likewise.
432         * locale/programs/ld-time.c: Likewise.
433         * locale/programs/locfile.c: Likewise.
434         * locale/programs/localedef.c: Likewise.
435         * locale/programs/localedef.h: Likewise.
436         * locale/programs/locfile.h: Likewise.  Add declaration for
437         find_translit.
438         * locale/programs/simple-hash.c: Add const to first parameter of
439         find_entry, iterate_table, and lookup.
440         * locale/programs/simple-hash.h: Likewise.
441         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
442         instead.
443         * include/locale.h: Define __LC_LAST.
444         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
446 2001-12-07  Geoff Keating  <geoffk@redhat.com>
448         * sysdeps/powerpc/Dist: Update for recent FP changes.
449         * sysdeps/powerpc/fpu/Dist: Likewise.
451 2001-12-07  Andreas Schwab  <schwab@suse.de>
453         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
455 2001-12-06  Geoff Keating  <geoffk@redhat.com>
457         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
458         save/restore functions here.
459         (libm-support): Don't define these functions here.
460         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
461         functions here.
462         * sysdeps/powerpc/fe_nomask.c: Move to...
463         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
464         * sysdeps/powerpc/fprrest.S: Move to...
465         * sysdeps/powerpc/fpu/fprrest.S: ... here.
466         * sysdeps/powerpc/fprsave.S: Move to...
467         * sysdeps/powerpc/fpu/fprsave.S: ... here.
469 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
471         * sysdeps/unix/sysv/linux/opensock.c: New file.
473 2001-12-06  Geoff Keating  <geoffk@redhat.com>
475         * config.make.in (with-fp): Define from configure.
476         * configure.in: Substitute with_fp.
477         * configure: Regenerate.
478         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
479         specified, and don't change FPU environment.
481 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
483         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
484         * assert/assert.c: Check result of __asprintf call and don't use
485         string if it failed.
486         * assert/assert-perr.c: Likewise.
487         * inet/rcmd.c: Likewise.
488         * locale/programs/localedef.c (main): Check result of
489         construct_output_path and exit if it failed.
490         (construct_output_path): Check result of asprintf and mkdir calls and
491         fail if they failed.
492         * posix/getopt.c: Check result of __asprintf calls and fail if
493         they failed.
494         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
496 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
498         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
499         patch.
500         * sysdeps/generic/strncase.c: Likewise.
501         * string/tester.c: Add tests for strcasecmp and strncasecmp.
503 2001-12-05  Geoff Keating  <geoffk@redhat.com>
505         * scripts/cpp: Test the exit status from 'type', not 'awk'.
507         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
508         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
509         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
510         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
511         * sysdeps/powerpc/fclrexcpt.c: Move to...
512         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
513         * sysdeps/powerpc/fpu_control.h: Move to...
514         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
516 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
518         * iconvdata/ibm1129.h: Remove duplicate mappings.
519         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
520         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
521         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
523         * timezone/zic.c: Fix handling of turnaround times.
524         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
526 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
528         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
529         overflow problem.
531 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
533         * posix/regex.c: For use outside glibc defined bounded pointer
534         macros here.  Patch by Jim Meyering <jim@meyering.net>.
536         * iconvdata/Makefile (modules): Add TCVN5712-1.
537         * iconvdata/TESTS: Add TCVN5712-1.
538         * iconvdata/gconv-modules: Likewise.
539         * iconvdata/tcvn5712-1.c: New file.
540         * iconvdata/testdata/TCVN-5712: New file.
541         * iconvdata/testdata/TCVN-5712..UTF8: New file.
543 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
545         * iconvdata/cp1258.c: Optimize conversion from UCS4.
547 2001-12-02  Roland McGrath  <roland@frob.com>
549         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
551         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
552         Reported by Jeff Bailey <jbailey@nisa.net>.
554         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
555         Reported by Jeff Bailey <jbailey@nisa.net>.
557         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
558         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
559         Reported by Jeff Bailey <jbailey@nisa.net>.
561 2001-12-01  Roland McGrath  <roland@frob.com>
563         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
564         missing backslash in test arguments.
565         * sysdeps/mach/hurd/configure: Regenerated.
567 2001-11-26  Roland McGrath  <roland@frob.com>
569         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
570         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
572 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
574         * iconvdata/Makefile (modules): Add ARMSCII-8.
575         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
576         * iconvdata/armscii-8.c: New file.
578 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
580         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
581         don't match, fix {{a,b},c} globbing, clean up.
582         Patch by Flavio Veloso <flaviovs@magnux.com>.
583         * posix/globtest.sh: Add new tests.
585 2001-11-29  Andreas Jaeger  <aj@suse.de>
587         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
588         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
590         * sysdeps/generic/abort.c: Include libioP.h for
591         _IO_flush_all_lockp prototype.
593 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
595         * posix/regex.h: Define __restrict_arr correctly.
597 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
599         * iconvdata/ibm1163.c: New file.
600         * iconvdata/ibm1163.h: New file.
601         * iconvdata/ibm1164.c: New file.
602         * iconvdata/ibm1164.h: New file.
603         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
604         * iconvdata/Makefile: Likewise.
605         * iconvdata/testdata/IBM1163: New file.
606         * iconvdata/testdata/IBM1163..UTF8: New file.
607         * iconvdata/testdata/IBM1164: New file.
608         * iconvdata/testdata/IBM1164..UTF8: New file.
609         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
611         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
612         * iconvdata/ibm1124.h: Likewise.
613         * iconvdata/ibm1132.h: Likewise.
614         * iconvdata/ibm1133.h: Likewise.
615         * iconvdata/ibm1160.h: Likewise.
616         * iconvdata/ibm1161.h: Likewise.
617         * iconvdata/ibm1162.h: Likewise.
618         * iconvdata/ibm856.h: Likewise.
619         * iconvdata/ibm922.h: Likewise.
620         * iconvdata/ibm930.h: Likewise.
621         * iconvdata/ibm932.h: Likewise.
622         * iconvdata/ibm933.h: Likewise.
623         * iconvdata/ibm935.h: Likewise.
624         * iconvdata/ibm937.h: Likewise.
625         * iconvdata/ibm939.h: Likewise.
626         * iconvdata/ibm943.h: Likewise.
627         * iconvdata/ibm930.c: Pretty printing.
628         * iconvdata/ibm937.c: Avoid access accross array boundary.
630         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
631         the current locale's codeset.
632         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
633         empty input string.
634         * iconv/iconv_prog.c: Pass empty strings as default value for to-
635         and from-charset.  Don't determine locale's charset here.
637         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
638         as the old _IO_flush_all but lock only if parameter is nonzero.
639         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
640         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
641         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
642         if libio is used [PR libc/2575].
644 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
646         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
647         __signbitl): Only define for ISO C99.
649 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
651         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
652         herrnop to NETDB_INTERNAL if we run out of buffer space.
654 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
656         * nss/nss_files/files-XXX.c (internal_getent): Correct input
657         overflow test for platforms with signed char.
658         Reported by Andrew Haley <aph@cambridge.redhat.com>.
660 2001-11-28  Bruno Haible  <bruno@clisp.org>
662         * locale/programs/simple-hash.c (lookup_2): Remove function.
663         (insert_entry_2): Call lookup instead of lookup_2.
665 2001-03-04  Bruno Haible  <bruno@clisp.org>
667         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
669 2001-10-31  Bruno Haible  <bruno@clisp.org>
671         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
673 2001-03-21  Bruno Haible  <bruno@clisp.org>
675         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
676         chokes on empty macro arguments.
677         * intl/plural.y: Add #pragma for alloca on AIX 3.
679 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
681         * intl/dcigettext.c (guess_category_value): Only implement for
682         glibc.  Otherwise rely on function _nl_locale_name which isn't
683         present in the glibc sources.
685 2001-09-24  Bruno Haible  <bruno@clisp.org>
687         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
688         transliteration when building on a glibc system but outside glibc.
690 2001-09-22  Bruno Haible  <bruno@clisp.org>
692         * intl/plural-eval.c: New file, extracted from dcigettext.c.
693         * intl/dcigettext.c (plural_eval): Remove function, moved to
694         intl/plural-eval.c.
695         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
696         Include plural-eval.c.
698 2001-09-22  Bruno Haible  <bruno@clisp.org>
700         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
701         don't start with a digit; nplurals must be positive.
703 2001-09-02  Bruno Haible  <bruno@clisp.org>
705         * intl/plural-exp.h: New file, extracted from gettextP.h.
706         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
707         * intl/gettextP.h (struct expression, struct parse_args,
708         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
709         * intl/loadmsgcat.c: Include plural-exp.h.
710         (PLURAL_PARSE): Move macro to plural-exp.h.
711         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
712         plural-exp.c.
713         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
714         EXTRACT_PLURAL_EXPRESSION.
715         (_nl_unload_domain): Update.
716         * intl/dcigettext.c: Include plural-exp.h.
717         * intl/plural.y: Include plural-exp.h, not gettextP.h.
718         (FREE_EXPRESSION): Move macro to plural-exp.h.
719         * intl/Makefile (routines): Add plural-exp.
720         (distribute): Add plural-exp.h.
722 2001-07-28  Bruno Haible  <bruno@clisp.org>
724         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
725         isdigit, tolower argument to 'unsigned char'.
726         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
727         'unsigned char'.
728         * intl/localealias.c (read_alias_file): Cast isspace argument to
729         'unsigned char'.
731 2001-10-20  Bruno Haible  <bruno@clisp.org>
733         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
734         anyway.)
735         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
736         with the variable 'index' in plural_lookup.
737         * intl/l10nflist.c (strchr): Likewise.
738         * intl/localealias.c (strchr): Likewise.
740         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
741         * intl/bindtextdom.c: Likewise.
742         * intl/dcigettext.c: Likewise.
743         * intl/dgettext.c: Likewise.
744         * intl/dngettext.c: Likewise.
745         * intl/explodename.c: Likewise.
746         * intl/finddomain.c: Likewise.
747         * intl/gettext.c: Likewise.
748         * intl/l10nflist.c: Likewise.
749         * intl/loadmsgcat.c: Likewise.
750         * intl/localealias.c: Likewise.
751         * intl/ngettext.c: Likewise.
752         * intl/textdomain.c: Likewise.
753         * intl/gettext.h: Assume <limits.h> exists.
755 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
757         * stdio-common/Makefile (tests): Add scanf11.
758         * stdio-common/scanf11.c: New file.
760 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
762         * version.h (RELEASE): Define as development.
763         (VERSION): Set to 2.2.90.
765 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
767         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
768         * nis/nss_nis/nis-grp.c: Likewise.
769         * nis/nss_nisplus/nisplus-grp.c: Likewise.
771         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
772         * nis/nss_nis/nis-pwd.c: Likewise.
773         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
775         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
776         * nis/nss_nisplus/nisplus-parser.c: Likewise.
777         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
779         * nscd/grpcache.c: Use strtoul instead of atol.
780         * nscd/pwdcache.c: Likewise.
781         * nss/getent.c: Likewise.
783 2001-11-27  Paul Eggert  <eggert@twinsun.com>
785         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
786         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
788 2001-11-19  Bruno Haible  <bruno@clisp.org>
790         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
791         90%.
792         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
793         improves the quality of the hash function, especially for short
794         strings.
796 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
798         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
799         are found call conv_error and not input_error [PR libc/2669].
801         * math/bits/mathcalls.h: Mark ceil and floor as const.
802         Reported by David Mosberger.
804 2001-11-21  Jim Meyering  <meyering@lucent.com>
806         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
807         Define to be __-prefixed.
808         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
810 2001-11-26  Andreas Jaeger  <aj@suse.de>
812         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
813         avoid warning.
815 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
817         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
818         initialization.
820         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
821         unused variables.  Fix threshold for returning 1.0.
823         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
824         argument.
826         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
827         remove unused variables.
829         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
831         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
832         include local math header files.
834 2001-11-22  Andreas Jaeger  <aj@suse.de>
836         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
837         avoid warning.
839 2001-11-21  Andreas Jaeger  <aj@suse.de>
841         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
843         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
844         sys/debugreg.h
846 2001-11-15  Andreas Jaeger  <aj@suse.de>
848         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
849         compilers that support it.
851         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
852         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
853         * stdlib/stdlib.h: Likewise.
855 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
857         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
858         statement with gotos.
859         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
861 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
863         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
865 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
867         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
869 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
870             H.J. Lu  <hjl@gnu.org>
872         * Versions.def (libc): Add GCC_3.0.
873         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
874         if gcc supports this flag.
875         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
876         (gcc3): Allow glibc to be compiled with gcc 3.x.
877         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
878         * config.make.in (static-libgcc, unwind-find-fde): Add.
879         * Makerules (build-shlib-helper, build-module-helper): Use it.
880         * scripts/versions.awk: Make sure GLIBC_ versions come first.
881         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
882         necessary.
883         (_fini): Call __deregister_frame_info_bases if
884         __register_frame_info_bases was used to register.
885         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
886         for GLIBC_2.0.
887         (__register_frame_info_bases, __register_frame_info_table_bases,
888         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
889         * elf/Makefile (routines): Add unwind-dw2-fde.
890         (shared-only-routines): Add unwind-dw2-fde.
891         * sysdeps/alpha/gccframe.h: New file.
892         * sysdeps/arm/gccframe.h: New file.
893         * sysdeps/generic/framestate.c: New file.
894         * sysdeps/generic/dwarf2.h: New file.
895         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
896         * sysdeps/generic/unwind-dw2-fde.c: New file.
897         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
898         * sysdeps/generic/unwind-dw2-fde.h: New file.
899         * sysdeps/generic/unwind-dw2.c: New file.
900         * sysdeps/generic/unwind-pe.h: New file.
901         * sysdeps/generic/unwind.h: New file.
902         * sysdeps/hppa/gccframe.h: New file.
903         * sysdeps/i386/gccframe.h: New file.
904         * sysdeps/m68k/gccframe.h: New file.
905         * sysdeps/mips/gccframe.h: New file.
906         * sysdeps/powerpc/gccframe.h: New file.
907         * sysdeps/s390/gccframe.h: New file.
908         * sysdeps/sh/gccframe.h: New file.
909         * sysdeps/sparc/gccframe.h: New file.
910         * sysdeps/vax/gccframe.h: New file.
911         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
912         Set on all architectures except ia64.
913         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
914         for i386.
915         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
916         __deregister_frame_info): Move to elf/Versions.
917         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
918         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
919         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
920         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
921         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
922         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
923         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
924         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
925         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
926         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
927         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
928         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
929         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
930         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
931         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
932         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
933         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
934         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
936 2001-11-15  Jeff Law  <law@redhat.com>
938         * posix/regex.c (uintptr_t): Do not provide a definition if the
939         system provided one.
941 2001-11-13  Roland McGrath  <roland@frob.com>
943         * stdio-common/tmpfile.c: Moved to ...
944         * sysdeps/generic/tmpfile.c: ... here.
945         * sysdeps/mach/hurd/tmpfile.c: New file.
947         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
948         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
949         (fopenport): Define as weak alias.
951         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
952         * libio/libioP.h: ... to here.
954 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
956         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
957         program header twice.  Construct list with the needed information.
959 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
961         * po/ca.po: Update from translation team.
963         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
964         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
965         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
966         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
968 2001-11-10  Andreas Jaeger  <aj@suse.de>
970         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
971         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
972         Contributed by Stephen L Moshier <moshier@mediaone.net>.
974 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
976         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
977         correctly.
978         * elf/dl-load.c (is_dst): New function.
979         (_dl_dst_count): Use is_dst to check for DST variable.
980         (_dl_dst_substitute): Likewise.
982 2001-11-09  Roland McGrath  <roland@frob.com>
984         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
985         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
986         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
987         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
988         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
989         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
990         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
991         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
992         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
993         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
994         * sysdeps/mach/hurd/powerpc/Dist: New file.
996         * hurd/privports.c (__get_privileged_ports):
997         Only contact the proc server if necessary for this call.
998         Suggested by Neal H Walfield <neal@cs.uml.edu>.
999         Check error return for mach_port_mod_refs.
1001 2001-11-09  Andreas Schwab  <schwab@suse.de>
1003         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
1005 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
1007         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
1008         object is always the last in the list.
1009         (_dl_map_object_from_fd): Delete code to remove from object list
1010         when DF_1_NOOPEN is seen.  This is done in lose.
1012 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
1014         * elf/dl-object.c (_dl_new_object): Various small optimizations.
1016 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
1018         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
1019         HWCAP_CHECK macro code.
1021         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
1022         Now returns MAP_FAILED on error.
1023         * elf/rtld.c: Adjust caller.
1024         * sysdeps/generic/dl-cache.c: Likewise.
1025         * sysdeps/generic/ldsodefs.h: Adjust description.
1027         * elf/dl-version.c (match_symbol): Optimize error handling for size.
1028         (_dl_check_map_versions): Likewise.
1030 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
1032         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
1033         _dl_signal_error directly, always use lose.  Set fd to -1 after
1034         file is closed.
1035         (lose): Don't call close if fd == -1.
1037 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
1039         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
1040          Also fix typo @code {mbsinit} to @code{mbsinit}.
1042 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
1044         * elf/dl-profile.c: Replace state variable with simple flag named
1045         running.  Remove commented-out code.
1047         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
1048         (_dl_init_paths): Likewise.
1049         (_dl_map_object_from_fd): Likewise.
1050         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
1052 2001-11-06  Roland McGrath  <roland@frob.com>
1054         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
1055         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
1057         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
1058         sysdeps/powerpc/elf/sysdep.h.
1059         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
1061 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
1063         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
1064         speed.
1065         (process_envvars): Some more optimizations.
1066         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
1068         * elf/elf.h: Add dynamic tag definitions for prelinking.
1070         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
1071         Rewrite code to remove environment varables for SUID binaries.
1072         Small optimization in LD_PROFILE handling.
1073         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
1074         changes.
1075         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
1077         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
1079         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
1080         strings.  Change type of second parameter.
1081         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
1082         for last change.
1084         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
1086 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
1088         * manual/string.texi: Fix typos.
1089         * manual/examples/argp-ex2.c: Likewise.
1091 2001-11-05  Roland McGrath  <roland@frob.com>
1093         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
1094         the more-specific unix/sysv/linux/powerpc file and breaks everything.
1095         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
1096         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
1097         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
1098         here, put under [__ELF__].
1100 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
1102         * manual/charset.texi: Extensive editing work.
1103         * manual/nss.texi: Likewise.
1104         Changes by Dennis Grace <dgrace@us.ibm.com>.
1106 2001-11-04  Roland McGrath  <roland@frob.com>
1108         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
1109         parameter to dir_mkfile.
1111 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
1113         * string/bits/string2.h (__strndup): If n is smaller than len, set
1114         len to n + 1.
1115         * string/tester.c (test_strndup): New function.
1116         (main): Call it.
1118 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
1120         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
1122         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
1123         * scripts/cpp: New file.
1125         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
1126         for rtld_search_dirs content.  Minor optimizations.
1128 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
1130         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
1131         avoiding unnecessary duplication.
1133 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
1135         * elf/dl-load.c (_dl_map_object): If library was found using
1136         LD_LIBRARY_PATH, don't try RUNPATH list.
1138 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1140         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
1141         Correct second argument of register_dump call.
1142         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
1143         Likewise.
1145 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
1147         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
1148         modules.
1149         * iconvdata/TESTS: Likewise.
1150         * iconvdata/gconv-modules: Likewise.
1151         * iconvdata/ibm1132.c: New file.
1152         * iconvdata/ibm1132.h: New file.
1153         * iconvdata/ibm1133.c: New file.
1154         * iconvdata/ibm1133.h: New file.
1155         * iconvdata/ibm1162.c: New file.
1156         * iconvdata/ibm1162.h: New file.
1157         * iconvdata/testdata/IBM1132: New file.
1158         * iconvdata/testdata/IBM1132..UTF8: New file.
1159         * iconvdata/testdata/IBM1133: New file.
1160         * iconvdata/testdata/IBM1133..UTF8: New file.
1161         * iconvdata/testdata/IBM1162: New file.
1162         * iconvdata/testdata/IBM1162..UTF8: New file.
1163         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
1165         * string/string.h: Fix typo in comment.
1166         * wcsmbs/wchar.h: Likewise.
1168 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
1170         * manual/getopt.texi (getopt_long, getopt_long_only): Include
1171         const in type of longopts parameter.
1173 2001-10-29  Andreas Jaeger  <aj@suse.de>
1175         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
1177 2001-10-29  Kevin Ryde  <user42@zip.com.au>
1179         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
1180         output, clarify `#' behaviour on 0.
1181         (Floating-Point Conversions): Clarify that %g only uses %e when
1182         the exponent would be greater than 1.
1184 2001-10-28  Roland McGrath  <roland@frob.com>
1186         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
1187         * sysdeps/mach/powerpc/machine-sp.h: New file.
1188         * sysdeps/mach/powerpc/sysdep.h: New file.
1189         * sysdeps/mach/powerpc/thread_state.h: New file.
1191         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
1192         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
1193         expect to need the same thing on every platform.
1195         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
1196         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
1198         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
1199         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
1200         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
1201         Move all these assembly-related definitions to ...
1202         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
1204         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
1205         by Peter Bruin <pjbruin@dds.nl>.
1207         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
1208         packing results for a `poll' call.
1210 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
1212         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
1213         correctly.
1214         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
1215         bracket expression.
1217         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
1218         nrules value.
1219         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
1221 2001-10-24  H.J. Lu  <hjl@gnu.org>
1223         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
1224         Use __BEGIN_DECLS/__END_DECLS around prototypes.
1225         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
1227 2001-10-21  Jim Meyering  <meyering@lucent.com>
1229         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
1230         this code would end up calling gettext even in packages built
1231         with --disable-nls.
1232         * posix/getopt.c (_): Likewise.
1233         * posix/regex.c (_): Likewise.
1235 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
1237         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
1238         lookup not ip6.int.
1239         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
1240         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
1242 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
1244         * misc/sys/cdefs.h (__attribute_used__): Define.
1245         * elf/rtld.c (_dl_start): Add __attribute_used__.
1246         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
1248 2001-10-25  Andreas Schwab  <schwab@suse.de>
1250         * stdlib/a64l.c: Expect least significant digit first.
1251         * stdlib/l64a.c: Produce least significant digit first.
1252         * stdlib/Makefile (tests): Add test-a64l.
1253         * stdlib/test-a64l.c: New file.
1254         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
1256 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
1258         * po/sk.po: Update from translation team.
1260 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
1262         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
1264 2001-10-18  Andreas Schwab  <schwab@suse.de>
1266         * math/libm-test.inc (print_ulps): Print ulp values rounded to
1267         next whole number.
1268         (print_function_ulps): Likewise.
1269         (print_complex_function_ulps): Likewise.
1270         (print_max_error): Likewise.
1271         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
1273 2001-10-16  Andreas Schwab  <schwab@suse.de>
1275         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
1276         implementation.
1278         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
1279         BSD_SETJMP or BSD__SETJMP is defined, resp.
1280         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
1281         a tail call to __sigsetjmp that would require extending the
1282         caller's frame.
1283         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
1284         * sysdeps/m68k/bsd-setjmp.S: Deleted.
1285         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
1286         Reported by Jes Sorensen <jes@trained-monkey.org>.
1288 2001-10-16  Andreas Jaeger  <aj@suse.de>
1290         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
1291         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
1292         close PR libc/2589.
1294 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
1296         * po/ca.po: New file.  Contributed by the translation team.
1298 2001-10-15  Ralf Baechle  <ralf@gnu.org>
1300         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
1301         a varargs prototype.  Remove dependency from kernel header files.
1303         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
1304         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
1306 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
1308         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
1309         to generate hexadecimal identifier.
1310         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
1312 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
1314         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
1316 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
1318         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
1319         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
1320         Contributed by Stephen L Moshier <moshier@mediaone.net>.
1322         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
1323         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1324         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
1325         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
1326         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
1327         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
1329         * timezone/africa: Update from tzdata2001d.
1330         * timezone/asia: Likewise.
1331         * timezone/australasia: Likewise.
1332         * timezone/backward: Likewise.
1333         * timezone/europe: Likewise.
1334         * timezone/leapseconds: Likewise.
1335         * timezone/northamerica: Likewise.
1336         * timezone/southamerica: Likewise.
1337         * timezone/zone.tab: Likewise.
1339 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1341         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
1342         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
1344 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
1346         * elf/elf.h (PT_TLS): New definition.
1348 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
1350         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
1351         bits/errno.h
1353 2001-10-07  Roland McGrath  <roland@frob.com>
1355         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
1357 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
1359         * elf/elf.h: Add more ELFOSABI_* constants.
1361 2001-10-04  Ben Collins  <bcollins@debian.org>
1363         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
1364         decleration of __need_wchar_t.
1366 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
1368         * string/bits/string2.h (__strsep_g): Add prototype.
1369         (__strsep): Use it.
1370         * string/Versions (__strsep): Remove.
1371         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
1373 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
1375         * manua/llio.texi: Clarify file references added by mmap.
1376         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
1378 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
1380         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
1381         Add sc_loadrs and sc_rbs_bas to match current kernel.
1383 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
1385         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
1387         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
1389 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
1391         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
1392         object has been bumped because of relocation dependency, avoid
1393         duplicates in l_scope.
1394         (show_scope): Fix typos.
1395         * elf/Makefile: Add rules to build and run reldep6.
1396         * elf/reldep6.c: New file.
1397         * elf/reldep6mod0.c: New file.
1398         * elf/reldep6mod1.c: New file.
1399         * elf/reldep6mod2.c: New file.
1400         * elf/reldep6mod3.c: New file.
1401         * elf/reldep6mod4.c: New file.
1403 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
1405         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
1406         sparc64_fixup_plt.
1407         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
1408         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
1409         for non-lazy binding. Fix .plt[32768+] handling.
1410         (elf_machine_plt_value): Don't add addend.
1411         (elf_machine_rela): Call sparc64_fixup_plt instead of
1412         elf_machine_fixup_plt.
1413         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
1414         dynamic linker at 0xfffff800XXXXXXXX.
1416         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
1418 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
1420         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
1422 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
1424         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
1425         declare __cmsg_data field if its size would be bigger than 0.
1426         (CMSG_DATA): Adjust accordingly.
1427         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
1428         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
1429         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
1430         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
1431         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
1432         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
1433         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1435 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
1437         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
1438         * iconvdata/testdata/IBM1160: New file.
1439         * iconvdata/testdata/IBM1160..UTF8: New file.
1440         * iconvdata/testdata/IBM1161: New file.
1441         * iconvdata/testdata/IBM1161..UTF8: New file.
1442         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1444 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
1446         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
1447         UL_SETFSIZE computations better.
1449         * rt/Makefile: Remove use of filter for librt again.
1451         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
1452         UL_SETFSIZE computations better.
1454         * string/Versions: Export __strsep for GLIBC_2.2.5.
1455         * string/bits/string2.h: Define all __STRING_INLINE functions if
1456         _FORCE_INLINES is defined.
1457         Use int instead of char of parameter types.
1458         (__strsep): Don't use __strsep_g.  Don't define it.
1459         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
1460         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
1461         __strcpy_small.
1462         (__stpcpy_a_small): Renamed from __stpcpy_small.
1463         (__strcspn_c1): Don't define if _FORCE_INLINES.
1464         (__strspn_c1): Likewise.
1466 2001-09-22  Ben Collins  <bcollins@debian.org>
1468         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
1469         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
1470         * sysdeps/ia64/bits/sigaction.h: Likewise.
1471         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
1473 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
1475         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
1477 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
1479         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
1481 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
1483         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
1485 2001-09-20  H.J. Lu  <hjl@gnu.org>
1487         * include/dlfcn.h (__RTLD_SPROF): New definiton.
1488         * elf/dl-open.c (dl_open_worker): Return immediately after loading
1489         for __RTLD_SPROF.
1490         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
1491         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
1493 2001-09-20  H.J. Lu  <hjl@gnu.org>
1495         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
1496         don't add 1.
1498 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
1500         * nss/getent.c: Accept -s parameter to overwrite rules in
1501         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
1503         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
1504         with as many ".0" as necessary to form a complete address
1505         inet_network understands.
1507         * nss/getent.c: Various cleanups.  Use simpler and fewer function
1508         calls.
1510 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1512         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
1513         _JMPBUF_UNWINDS.
1514         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
1516 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
1518         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
1519         IBM1161.
1520         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
1521         * iconvdata/ibm1160.c: New file.
1522         * iconvdata/ibm1160.h: New file.
1523         * iconvdata/ibm1161.c: New file.
1524         * iconvdata/ibm1161.h: New file.
1525         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1527 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
1529         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
1530         difference between base address and first PT_LOAD's virtual address,
1531         not the base address.
1533 2001-09-11  Tom Rix  <trix@redhat.com>
1535         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
1536         ifdef for __getopt_clean_environment.
1537         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
1539 2001-09-22  Andreas Jaeger  <aj@suse.de>
1541         * elf/reldep4.c (main): Add proper prototype to fix warning.
1543         * elf/reldep5.c (main): Remove unused variable.
1545         * math/math_private.h: Add prototypes.
1547 2001-09-21  Andreas Jaeger  <aj@suse.de>
1549         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
1550         * sysdeps/x86_64/Dist: New file.
1551         * sysdeps/x86_64/soft-fp/Dist: New file.
1553         * sysdeps/gnu/Dist: Remove eval.c.
1555 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
1557         * malloc/memusage.c (realloc): Don't count already allocated
1558         memory in the sums.
1559         (me): Always use dlsym() to find the real implementations.
1561         * malloc/memusage.sh: Make -n option actually do something.
1563 2001-09-20  Andreas Jaeger  <aj@suse.de>
1565         * elf/elf.h (R_390_NUM): Correct value.
1567         * Versions.def: Add missing versions 2.2.3 for libthread_db and
1568         libpthread.
1570         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
1571         for x86-64, install x86-64 into */lib64.
1573         * shlib-versions: Add x86-64.
1575         * elf/elf.h: Add x86-64 relocations.
1577 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
1579         * po/fr.po: Update from translation team.
1581 2001-09-19  Andreas Jaeger  <aj@suse.de>
1583         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
1584         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
1585         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
1586         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
1587         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
1588         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
1589         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
1590         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
1591         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
1592         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
1593         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
1594         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
1595         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
1596         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
1597         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
1598         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
1599         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
1600         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
1601         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
1602         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
1603         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
1604         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
1605         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
1606         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
1607         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
1608         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
1609         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
1610         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
1611         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
1612         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
1613         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
1614         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
1615         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
1616         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
1617         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
1618         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
1619         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
1620         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
1621         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
1622         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
1623         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
1624         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
1625         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
1626         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
1627         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
1628         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
1629         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
1630         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
1631         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
1632         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
1633         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
1634         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
1635         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
1636         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
1637         * sysdeps/unix/x86_64/sysdep.S: New file.
1638         * sysdeps/unix/x86_64/sysdep.h: New file.
1639         * sysdeps/x86_64/Implies: New file.
1640         * sysdeps/x86_64/Makefile: New file.
1641         * sysdeps/x86_64/Versions: New file.
1642         * sysdeps/x86_64/__longjmp.S: New file.
1643         * sysdeps/x86_64/abort-instr.h: New file.
1644         * sysdeps/x86_64/atomicity.h: New file.
1645         * sysdeps/x86_64/bits/endian.h: New file.
1646         * sysdeps/x86_64/bits/setjmp.h: New file.
1647         * sysdeps/x86_64/bits/string.h: New file.
1648         * sysdeps/x86_64/bp-asm.h: New file.
1649         * sysdeps/x86_64/bsd-_setjmp.S: New file.
1650         * sysdeps/x86_64/bsd-setjmp.S: New file.
1651         * sysdeps/x86_64/dl-machine.h: New file.
1652         * sysdeps/x86_64/elf/initfini.c: New file.
1653         * sysdeps/x86_64/elf/start.S: New file.
1654         * sysdeps/x86_64/ffs.c: New file.
1655         * sysdeps/x86_64/ffsll.c: New file.
1656         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
1657         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
1658         * sysdeps/x86_64/fpu/e_acosl.c: New file.
1659         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
1660         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
1661         * sysdeps/x86_64/fpu/e_expl.c: New file.
1662         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
1663         * sysdeps/x86_64/fpu/e_log10l.S: New file.
1664         * sysdeps/x86_64/fpu/e_log2l.S: New file.
1665         * sysdeps/x86_64/fpu/e_logl.S: New file.
1666         * sysdeps/x86_64/fpu/e_powl.S: New file.
1667         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
1668         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
1669         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
1670         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
1671         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
1672         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
1673         * sysdeps/x86_64/fpu/fegetenv.c: New file.
1674         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
1675         * sysdeps/x86_64/fpu/fegetround.c: New file.
1676         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
1677         * sysdeps/x86_64/fpu/fesetenv.c: New file.
1678         * sysdeps/x86_64/fpu/fesetround.c: New file.
1679         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
1680         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
1681         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
1682         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
1683         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
1684         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
1685         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
1686         * sysdeps/x86_64/fpu/s_atanl.c: New file.
1687         * sysdeps/x86_64/fpu/s_cosl.S: New file.
1688         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
1689         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
1690         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
1691         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
1692         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
1693         * sysdeps/x86_64/fpu/s_logbl.c: New file.
1694         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
1695         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
1696         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
1697         * sysdeps/x86_64/fpu/s_rintl.c: New file.
1698         * sysdeps/x86_64/fpu/s_significandl.c: New file.
1699         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
1700         * sysdeps/x86_64/fpu/s_sinl.S: New file.
1701         * sysdeps/x86_64/fpu/s_tanl.S: New file.
1702         * sysdeps/x86_64/gmp-mparam.h: New file.
1703         * sysdeps/x86_64/hp-timing.c: New file.
1704         * sysdeps/x86_64/hp-timing.h: New file.
1705         * sysdeps/x86_64/htonl.S: New file.
1706         * sysdeps/x86_64/memusage.h: New file.
1707         * sysdeps/x86_64/setjmp.S: New file.
1708         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
1709         * sysdeps/x86_64/stackinfo.h: New file.
1710         * sysdeps/x86_64/sysdep.h: New file.
1711         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
1713         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
1714         L Moshier.
1716 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
1718         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
1719         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
1721 2001-09-18  Andreas Schwab  <schwab@suse.de>
1723         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
1724         list, now that l_scope is a pointer.
1726         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
1727         scope list.
1729 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
1731         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
1732         (elf_machine_rela_relative): Add a missing declaration.
1734 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
1736         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
1737         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
1738         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
1739         ldd-rewrite scripts.
1741 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
1743         * elf/ldd.bash.in: Update copyright message.
1745 2001-09-17  H.J. Lu  <hjl@gnu.org>
1747         * hurd/hurdmalloc.c (bcopy): Removed.
1748         (realloc): Replace bcopy with memcpy.
1749         * hurd/path-lookup.c (file_name_path_scan): Likewise.
1750         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
1751         * sunrpc/rpcinfo.c (pmapdump): Likewise.
1753         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
1754         (gethostbyaddr): Likewise.
1755         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
1757 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
1759         * sysdeps/gnu/eval.c: Removed.
1761 2001-09-18  Andreas Jaeger  <aj@suse.de>
1763         * sysdeps/i386/fpu/s_logbl.S: Move to ...
1764         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
1766         * sysdeps/i386/fpu/s_rintl.S: Move to ...
1767         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
1769         * sysdeps/i386/fpu/s_significandl.S: Move to ...
1770         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
1772 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
1774         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
1775         nrules value.
1777 2001-09-14  H.J. Lu  <hjl@gnu.org>
1779         * sysdeps/mips/fpu/libm-test-ulps: Updated.
1781 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
1783         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
1784         Patch by Florian La Roche <laroche@redhat.com>.
1786         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
1788         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
1789         ETHER_CRC_LEN.
1791 2001-09-14  Andreas Schwab  <schwab@suse.de>
1793         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
1794         Sumner <bls@sgi.com>.
1795         * posix/execlp.c: Likewise.
1797 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
1799         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
1800         is already found earlier in the search scope.
1802 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
1804         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
1805         filter.
1807 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
1809         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
1811 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
1813         * config.h.in: Enforce optimization to be used.
1814         * Makeconfig (preprocess-versions): Define ASSEMBLER.
1815         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
1816         * posix/Makefile (annexc-CFLAGS): Define to -O.
1817         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
1819 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
1821         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
1822         Patch by Stephan Kulow.
1824 2001-09-08  Ben Collins  <bcollins@debian.org>
1826         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
1827         usage of RESOLVE() (r_type, not reloc->r_type).
1829 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
1831         * elf/dl-object.c: Avoid allocating extra memory block for name.
1832         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
1833         allocated separately.
1834         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1836 2001-09-08  H.J. Lu  <hjl@gnu.org>
1838         * po/zh_TW.po: Fix a typo.
1840 2001-09-07  Tom Rix  <trix@redhat.com>
1842         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
1844 2001-08-26  Tom Rix  <trix@redhat.com>
1846         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
1847         command line options.
1848         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
1849         * sysdeps/unix/sysv/aix/start.c: Removed.
1850         * sysdeps/unix/sysv/aix/start-libc.c: New file.
1851         * sysdeps/unix/sysv/aix/init-first.c: New file.
1852         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
1854 2001-09-08  Ben Collins  <bcollins@debian.org>
1856         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
1857         * sysdeps/generic/dl-machine.h: Likewise.
1858         * sysdeps/hppa/dl-fptr.c: Likewise.
1859         * sysdeps/ia64/dl-fptr.c: Likewise.
1860         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
1861         * sysdeps/mips/dl-machine.h: Likewise.
1862         * sysdeps/mips/mips64/dl-machine.h: Likewise.
1863         * sysdeps/powerpc/dl-machine.c: Likewise.
1865 2001-09-07  Ben Collins  <bcollins@debian.org>
1867         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
1869         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
1871 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
1873         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
1874         dependencies if necessary.
1876         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
1877         loaded directly) determine length if l_initfini list by iterating
1878         over its elements.  Minor optimizations.
1879         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
1880         for dependency objects.
1881         If object was already loaded check whether any of the dependencies
1882         is already on the relocation dependency list.  If yes, remove the
1883         latter.  Minor optimizations.
1884         * elf/dl-lookup.c (add_dependency): Add check for self reference of
1885         maps here.  Search l_initfini list only if the object was loaded
1886         directly and not only as a dependency.
1887         (_dl_lookup_symbol): Add relocation dependency also if object
1888         is not in global scope.  Remove test for self-reference here.
1889         (_dl_lookup_versioned_symbol): Likewise.
1890         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
1891         element of first name record.
1892         * elf/loadtest.c: Add some more test to recognize early if an object
1893         wasn't unloaded.
1894         * elf/Makefile: Add rules to build and run reldep5.
1895         * elf/reldep5.c: New file.
1896         * elf/reldepmod5.c: New file.
1897         * elf/reldepmod6.c: New file.
1899         * elf/reldep2.c: Fix typo.
1901 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
1903         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
1904         elements.  Change l_scope to be a pointer only.
1905         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
1906         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
1907         here add searchlist of newly open file to the dependency's scope.
1908         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
1909         only searchlist from its scope.  Free own scope array if necessary.
1910         * elf/Makefile (tests): Add dblload and dblunload now.
1912 2001-09-06  Andreas Jaeger  <aj@suse.de>
1914         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
1915         Stephen L Moshier.
1917 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
1919         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
1920         they both fail.
1921         * elf/dblload.c: New file.
1922         * elf/dblloadmod1.c: New file.
1923         * elf/dblloadmod2.c: New file.
1924         * elf/dblloadmod3.c: New file.
1925         * elf/dblunload.c: New file.
1927 2001-09-04  Richard Henderson  <rth@redhat.com>
1929         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
1930         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
1932 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
1934         Correct very misleading message for error in failed runtime relocation.
1935         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
1936         place of the error.
1937         (_dl_signal_cerror): Likewise.
1938         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
1939         * elf/dl-close.c: Likewise.
1940         * elf/dl-deps.c: Likewise.
1941         * elf/dl-load.c: Likewise.
1942         * elf/dl-lookup.c: Likewise.
1943         * elf/dl-open.c: Likewise.
1944         * elf/dl-reloc.c: Likewise.
1945         * elf/dl-sym.c: Likewise.
1946         * elf/dl-version.c: Likewise.
1947         * sysdeps/generic/dl-sysdep.c: Likewise.
1949 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
1951         * iconv/strtab.c (strtabinit): Initialize null Strent.
1952         (newstring): Move len == 0 handling...
1953         (strtabadd): ...here.
1954         If len == 1, return null Strent.
1955         When inserting a suffix of an existing string, check if
1956         it is not equal to some suffix already recorded.
1957         Copy left and right members over if adding longer string.
1959 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
1961         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
1963         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
1964         (__syscall_gethostname): Add prototype.
1966 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
1968         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
1970 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
1972         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
1974 2001-08-27  Roland McGrath  <roland@frob.com>
1976         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
1977         short, copy that much into NAME anyway before returning error.
1979 2001-09-01  Richard Henderson  <rth@redhat.com>
1981         * sysdeps/alpha/elf/Dist: Remove file.
1982         * sysdeps/alpha/elf/Makefile: Remove file.
1983         * sysdeps/alpha/elf/crtbegin.S: Remove file.
1984         * sysdeps/alpha/elf/crtend.S: Remove file.
1985         * sysdeps/alpha/elf/initfini.c: New file.
1987 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
1989         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
1990         * iconv/tst-iconv3.c: Likewise.
1992 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
1994         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
1996 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
1998         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
1999         export it.
2000         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
2001         * iconv/iconv_prog.c (insert_cache): New function.
2002         (print_known_names): If cache is used call insert_cache to use the
2003         information from the cache [PR libc/2509].
2005 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
2007         * time/strptime.c (strptime_internal): Recognize 'l' format and
2008         handle it like 'I' for symmetry with strftime.
2010 2001-08-31  Richard Henderson  <rth@redhat.com>
2012         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
2013         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
2014         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
2015         (print_statistics): Make scalar unsigned long long.
2016         * sysdeps/alpha/hp-timing.h: New file.
2018 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
2020         * stdio-common/perror.c (perror): Save errno early, pass it
2021         down to perror_internal.
2022         (perror_internal): Add errnum argument.
2024 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
2026         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
2027         Don't add old memory content for R_ALPHA_REFQUAD.
2029 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
2031         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
2032         memory correctly.
2034         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
2035         instead of open, __close instead of close, __getpagesize instead
2036         of getpagesize.
2038         * string/argz-stringify.c (__argz_stringify): Use __strnlen
2039         instead of strnlen.
2040         * include/string.h (strndupa): Redefine here to use __strnlen
2041         instead of strnlen.
2042         * string/strndup.c (__strndup): Use __strnlen not strnlen.
2044         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
2045         connected).
2047 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
2049         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
2050         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
2051         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
2052         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
2053         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
2054         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
2055         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
2057 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
2059         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
2061 2001-08-30  Andreas Jaeger  <aj@suse.de>
2063         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
2064         contributed Stephen L Moshier.
2066 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
2068         * sunrpc/etc.rpc (sgi_fam): Add.
2070 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
2072         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
2074 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
2076         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
2077         first is from a previous call.
2078         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
2080 2001-08-29  Andreas Schwab  <schwab@suse.de>
2082         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
2084 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2086         * config.make.in (INSTALL_SCRIPT): Define.
2087         * Makeconfig (INSTALL_SCRIPT): Define.
2088         * Makerules (do-install-script): New macro to install scripts using
2089         INSTALL_SCRIPT.
2090         (install-bin-script): New rule to install scripts with
2091         do-install-script.
2092         (install-bin-script-nosubdir): New rule.
2093         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
2094         (distinfo-vars): Add $(install-bin-script).
2095         * Rules (others): Likewise.
2096         * Makefile (glibcbug): Install with install-bin-script.
2097         * debug/Makefile (xtrace): Likewise.
2098         (catchsegv): Likewise.
2099         * elf/Makefile (ldd): Likewise.
2100         * malloc/Makefile (mtrace): Likewise.
2101         * timezone/Makefile (tzselect): Likewise.
2103 2001-08-29  H.J. Lu  <hjl@gnu.org>
2105         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
2106         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
2107         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
2109 2001-08-29  Andreas Schwab  <schwab@suse.de>
2111         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
2113 2001-08-28  H.J. Lu  <hjl@gnu.org>
2115         * Makeconfig (combreloc-LDFLAGS): New variable.
2116         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
2117         * config.make.in (have-z-combreloc): New variable.
2118         * configure.in: Substitute libc_cv_z_combreloc.
2120 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
2122         * po/sv.po: Update from translation team.
2123         * po/fr.po: Likewise.
2124         * po/da.po: Likewise.
2126 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2128         * Makerules: Fix a typo: MD% -> MD5.
2130 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
2132         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
2133         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
2135 2001-08-28  Andreas Jaeger  <aj@suse.de>
2137         * manual/libc-texinfo.sh: Add entry about free manuals.
2139         * manual/contrib.texi (Contributors): Fix cross reference.
2141         * manual/libc.texinfo (Copying): Include freemanuals.
2143         * manual/Makefile (appendices): Add freemanuals.
2145         * manual/freemanuals.texi: New file.
2146         Patch by Brian Youmans <3diff@gnu.org>.
2148         * manual/libm-err-tab.pl: Pretty print more platforms, print a
2149         smaller table.
2151         * manual/math.texi (Errors in Math Functions): Fix grammar, start
2152         table on separate page.
2153         Patch by Brian Youmans <3diff@gnu.org>.
2155 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
2157         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
2158         the connection went down after we first used it try to connect
2159         again and resend the message before printing to the console.
2160         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
2162 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
2164         * string/tst-strlen.c (main): Test strnlen (, -1) too.
2165         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
2166         bit set.
2168 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
2170         * iconv/strtab.c (searchstring): Use correct length for comparison.
2171         (strtabadd): Account total size correct if new string has old string as
2172         substring.
2174 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
2176         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
2178 2001-08-27  Andreas Jaeger  <aj@suse.de>
2180         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
2182         * math/libm-test.inc (j0_test): Add extra tests.
2183         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
2184         not x, in Hankel approximation.
2185         Patches by Stephen L Moshier.
2187 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
2189         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
2190         link_map.
2192         * configure.in: Fix test for .rela.dyn section.
2194         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
2196 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
2198         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
2199         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
2200         Pass type_class to _dl_lookup_*.
2201         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
2202         Pass around just type_class instead of noexec, noplt pair.
2203         (_dl_lookup_versioned_symbol): Likewise.
2204         (_dl_lookup_symbol_skip): Pass around just type_class instead of
2205         noexec, noplt pair.
2206         (_dl_lookup_versioned_symbol_skip): Likewise.
2207         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
2208         * elf/do-lookup.h (do_lookup): Likewise.
2209         * include/link.h (struct link_map): Replace noexec and noplt fields
2210         in l_lookup_cache with type_class field.
2211         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
2212         ELF_RTYPE_CLASS_COPY): Define.
2213         Adjust prototypes for _dl_lookup_symbol and
2214         _dl_lookup_versioned_symbol.
2215         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
2216         elf_machine_lookup_noexec_p): Remove.
2217         (elf_machine_type_class): Define.
2218         * sysdeps/arm/dl-machine.h: Likewise.
2219         * sysdeps/hppa/dl-machine.h: Likewise.
2220         * sysdeps/cris/dl-machine.h: Likewise.
2221         * sysdeps/i386/dl-machine.h: Likewise.
2222         * sysdeps/ia64/dl-machine.h: Likewise.
2223         * sysdeps/m68k/dl-machine.h: Likewise.
2224         * sysdeps/mips/mips64/dl-machine.h: Likewise.
2225         * sysdeps/mips/dl-machine.h: Likewise.
2226         * sysdeps/powerpc/dl-machine.h: Likewise.
2227         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2228         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2229         * sysdeps/sh/dl-machine.h: Likewise.
2230         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2231         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2233 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
2235         * manual/message.texi (Advanced gettext functions): Change
2236         description of plural forms for Slovak.
2237         Reported by Marcel Telka <marcel@telka.sk>.
2239         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
2240         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
2242 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
2244         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
2245         typo.  Patch by Florian La Roche <laroche@redhat.com>.
2247 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
2249         * include/link.h (struct link_map): Add l_lookup_cache element.
2250         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
2251         (RESOLVE_MAP): Likewise.
2252         (_dl_relocate_object): Remove cache initialization.
2253         * elf/dl-lookup.c: Rip out cache handling code.
2254         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
2255         declarations.
2257         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
2258         remove some __builtin_expect.
2259         (_dl_lookup_versioned_symbol): Likewise.
2261         * config.h.in: Add HAVE_Z_COMBRELOC.
2262         * configure.in: Add test for -z combreloc.
2264         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
2265         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
2266         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
2267         case to almost no code.
2269 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
2271         * po/tr.po: Update from translation team.
2273 2001-08-24  Andreas Jaeger  <aj@suse.de>
2275         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
2276         make clean works.
2278 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2280         * elf/rtld.c (print_statistics): Printf % after percent values.
2281         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
2283         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
2284         don't have to compute the hash value and initialize current_value.
2285         Move reference_name variable to where it is needed.
2286         (_dl_lookup_versioned_symbol): Likewise.
2288 2001-08-24  Roland McGrath  <roland@frob.com>
2290         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
2291         Just test that strerror returns non-null for a few errno codes.
2293 2001-08-23  Roland McGrath  <roland@frob.com>
2295         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
2296         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
2298         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
2300         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
2301         __mach_reply_port.
2303 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2305         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
2306         returns NULL.
2308         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
2309         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
2310         doesn't do it.
2311         * elf/rtld.c: Include <sys/param.h>.
2312         * elf/dl-reloc.c: Likewise.
2314 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2316         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
2317         empty to prevent junk from being generated.
2318         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
2320 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
2322         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
2323         records.  Rename endrel to relative, initialize it to r, and use it
2324         in elf_machine_rel_relative calls.  Point r after relative relocs.
2326 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2328         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
2329         of R_386_NONE.
2331 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
2333         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
2334         necessary.  Undefine newly defined macros at the end.
2335         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
2336         Rename from elf_machine_rel_relative.
2337         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
2338         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
2339         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
2340         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
2341         Likewise.
2342         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
2343         Likewise.
2344         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
2345         Fix argument types.
2346         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
2347         Fix argument types.
2348         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
2349         Likewise.  Fix argument types.
2350         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
2351         Likewise.  Fix argument types.
2352         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
2353         Fix argument types.
2354         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
2355         ElfW(Rel) in argument.
2356         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
2357         function.
2359 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
2361         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
2363 2001-08-24  Andreas Jaeger  <aj@suse.de>
2365         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
2366         Stephen L Moshier <moshier@mediaone.net>.
2368 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2370         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
2371         first if RELCOUNT is set.
2373         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
2374         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
2375         elf_machine_rel_relative.
2376         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
2377         Minor optimizations.
2378         * sysdeps/arm/dl-machine.h: Likewise.
2379         * sysdeps/cris/dl-machine.h: Likewise.
2380         * sysdeps/hppa/dl-machine.h: Likewise.
2381         * sysdeps/i386/dl-machine.h: Likewise.
2382         * sysdeps/ia64/dl-machine.h: Likewise.
2383         * sysdeps/m68k/dl-machine.h: Likewise.
2384         * sysdeps/mips/dl-machine.h: Likewise.
2385         * sysdeps/powerpc/dl-machine.h: Likewise.
2386         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2387         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2388         * sysdeps/sh/dl-machine.h: Likewise.
2389         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2390         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2392 2001-08-23  Roland McGrath  <roland@frob.com>
2394         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
2396         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
2397         sysdeps/mach version.  Implement counting ("recursive") mutexes
2398         on top of cthreads mutexes.
2399         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
2401         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
2402         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
2403         (__libc_cleanup_region_start, __libc_cleanup_region_end,
2404         __libc_clean_end): Define these to call the cleanup function after
2405         normal exit when they're supposed to.
2407         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
2408         Take new first arg DOIT, a boolean saying whether to really install
2409         any cleanup handler.
2410         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
2411         (__libc_cleanup_end): Likewise.
2412         * sysdeps/generic/bits/libc-lock.h: Same changes.
2413         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
2414         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
2415         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
2416         Likewise.
2417         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
2418         * sysdeps/generic/bits/stdio-lock.h
2419         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
2421 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2423         * elf/ldconfig.c (search_dir): Remove stale symlinks.
2425 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2427         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
2428         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
2429         lookups in cache.
2430         (_dl_lookup_versioned_symbol): Likewise.
2431         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
2432         relocation lookup.
2433         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
2434         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
2435         (lookup_cache, lookup_cache_versioned): Add declarations.
2437 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
2439         * stdlib/tst-random.c (main): Swap parameters in fail call.
2440         Patch by Pete Bevin <pete@petebevin.com>.
2442 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2444         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
2446 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
2448         * malloc/obstack.c: Indent preprocessor directives.
2449         Patch by Jim Meyering <meyering@ascend.com>.
2451         * po/ja.po: Update from translation team.
2453 2001-08-23  Roland McGrath  <roland@frob.com>
2455         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
2457         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
2458         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
2460 2001-08-22  Roland McGrath  <roland@frob.com>
2462         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
2463         __libc_lock_define_recursive.
2464         * elf/dl-open.c: Don't declare it here any more.
2465         * elf/dl-close.c: Likewise.
2466         * elf/dl-lookup.c: Likewise.
2467         * elf/dl-iteratephdr.c: Likewise.
2468         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
2469         __libc_lock_unlock_recursive.
2470         * elf/dl-close.c (_dl_close): Likewise
2471         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
2472         * elf/dl-open.c (_dl_open): Likewise
2474         * sysdeps/generic/bits/libc-lock.h
2475         (__libc_lock_define_recursive): New macro.
2476         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
2477         (_IO_lock_lock): Use __libc_lock_lock_recursive.
2478         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
2480         * conform/conformtest.pl (checknamespace): Sort the output list.
2482         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
2483         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
2484         definitions conditional on [__USE_XOPEN].
2486         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
2487         these unconditionally, not only use [__USE_BSD], so as to match
2488         the sysdeps/unix/sysv/linux files.
2490 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
2492         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
2493         avoid warnings.
2495         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
2496         DL_LOOKUP_ADDRESS.
2498 2001-08-22  Roland McGrath  <roland@frob.com>
2500         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
2501         conditionalization of sa_handler/sa_sigaction member types to
2502         match the sysdeps/unix/sysv/linux file.
2504 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
2506         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
2507         symbol sizes a bit better.
2509         * sysdeps/ia64/strncpy.S: Complete rewrite.
2510         Contributed by Jakub Jelinek <jakub@redhat.com>.
2512         * string/stratcliff.c (main): Add strncpy test.
2514 2001-08-22  Roland McGrath  <roland@frob.com>
2516         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
2517         and don't declare unsetenv or _environ directly.
2518         (unsetenv): Return int, not void.  Use __environ instead of _environ.
2520 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
2522         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
2523         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
2524         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
2525         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
2526         test for cmsg struct size.
2528 2001-04-23  Paul Eggert  <eggert@twinsun.com>
2530         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
2531         Rename __argc to ___argc in prototypes to avoid compatibility
2532         problems with systems that reserve the identifier "__argc".
2533         Similarly for __argv.
2535 2001-08-21  Roland McGrath  <roland@frob.com>
2537         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
2539         * mach/Makefile (tests): Removed.
2540         * mach/hello.c: File removed.
2542 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
2544         * po/sv.po: Update from translation team.
2546         * stdio-common/vfscanf.c: Fix handling of %l[].
2547         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
2549         * libio/Makefile (tests): Add tst-sscanf.
2550         * libio/tst-sscanf.c: New file.
2552         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
2553         * malloc/mtrace.c (tr_where): dli_sname always points to a
2554         non-empty string if != NULL.
2555         Reported by Tim Janik <timj@gtk.org>.
2557 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
2559         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
2560         buf.  Free resources on failure.
2561         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
2562         (makefd_xprt): Likewise.
2563         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
2564         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
2565         * sunrpc/auth_unix.c (authunix_create): Likewise.
2567 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
2569         * string/strnlen.c: Remove.
2570         * sysdeps/generic/strnlen.c: New file.
2571         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
2573 2001-08-21  Roland McGrath  <roland@frob.com>
2575         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
2576         as a macro, not an extern inline function.
2578         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
2579         * Versions.def (libc): Add GLIBC_2.2.5 set.
2580         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
2581         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
2583 2001-08-20  Roland McGrath  <roland@frob.com>
2585         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
2586         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
2588 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
2590         * string/bits/string2.h: Remove strnlen optimization here.
2591         * sysdeps/i386/i486/bits/string.h: Add it here.
2593 2001-08-21  Wolfram Gloger  <wg@malloc.de>
2595         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
2597 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
2599         * po/gl.po: Update from translation team.
2601 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
2603         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
2604         * misc/err.c (convert_and_print): Likewise.
2606         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
2607         function calls.
2609 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2611         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
2612         change of the gregset_t type.
2613         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
2615 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2617         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
2619 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
2621         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
2623         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
2625 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
2627         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
2628         before calling the cthreads initialization code.
2630 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
2632         * argp/argp-help.c: Fix two problems introduced in last change.
2634         * include/dirent.h: Include <dirstream.h> first.
2636 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
2638         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
2640         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
2641         * sunrpc/xdr_rec.c: Likewise.
2642         * sunrpc/xdr_mem.c: Likewise.
2643         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
2644         * sunrpc/rpc_cmsg.c: Likewise.
2645         * sunrpc/getrpcport.c (getrpcport): Likewise.
2646         * sunrpc/clnt_simp.c (callrpc): Likewise.
2647         * sunrpc/clnt_gen.c (clnt_create): Likewise.
2648         * string/envz.c: Likewise.
2650         * po/ko.po: Update from translation team.
2652         * argp/argp-help.c: Handle wide oriented stderr stream.
2654 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
2656         * sysdeps/generic/strtol.c: Little optimizations.  Add some
2657         __builtin_expect.
2659         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
2661         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
2662         * wcsmbs/wcwidth.c (wcwdith): Likewise.
2663         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
2665         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
2667         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
2669         * time/time.h (struct timespec): Use __time_t for tv_sec element.
2671         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
2672         wchar_t for function declarations and defintions.
2674         * misc/sys/select.h: Define __need_time_t before including <time.h>.
2675         Define suseconds_t if it hasn't happened yet.
2677         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
2679         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
2681         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
2682         <stddef.h>.
2684         * conform/data/stddef.h-data: Remove wint_t.
2686         * conform/conformtest.pl: Change namespace test to take #undef
2687         lines into account.
2689         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
2691         * conform/data/sys/socket.h-data: Add sockatmark.
2693 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
2695         * io/fts.c: Update from recent BSD source.
2697 2001-08-17  Roland McGrath  <roland@frob.com>
2699         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
2700         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
2701         Likewise.
2703 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
2705         * locale/duplocale.c (__duplocale): Also initialize the special
2706         __ctype_* elements.
2708         * conform/data/netdb.h-data: Adjust gai_strerror return type.
2710 2001-08-17  Andreas Jaeger  <aj@suse.de>
2712         * misc/getpass.c: Include wchar.h for prototypes.
2713         * malloc/obstack.c: Likewise.
2715 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
2717         * sunrpc/svc_simple.c (universal): Use __write instead of write.
2719         * wcsmbs/wcscoll.c: Also define __wcscoll.
2720         * include/wchar.h: Declare __wcscoll.
2722         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
2723         * libio/vwprintf.c: Likewise.
2724         * libio/wprintf.c: Likewise.
2726         * iconv/gconv_cache.c: Use __munmap instead of munmap.
2728 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
2730         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
2731         instead of mbrtowc.
2732         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
2733         wcslen, and __wcscoll instead of wcscoll.
2735         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
2737         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
2738         __getuid instead of getuid.
2740         * stdio-common/perror.c (perror): Use __close instead of close.
2741         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
2742         * libio/freopen.c (freopen): Likewise.
2743         * libio/freopen64.c (freopen64): Likewise.
2745         * libio/tst-ungetwc2.c (main): Define str const.
2747         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
2748         * libio/fwprintf.c: Also define __fwprintf.
2749         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
2750         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
2751         * assert/assert-perr.c: Likewise.
2752         * assert/assert.c: Likewise.
2753         * gmon/gmon.c: Likewise.
2754         * inet/rcmd.c: Likewise.
2755         * malloc/obstack.c: Likewise.
2756         * misc/err.c: Likewise.
2757         * misc/error.c: Likewise.
2758         * misc/getpass.c: Likewise.
2759         * posix/getopt.c: Likewise.
2760         * resolv/res_hconf.c: Likewise.
2761         * stdio-common/perror.c: Likewise.
2762         * stdio-common/psignal.c: Likewise.
2763         * stdlib/fmtmsg.c: Likewise.
2764         * sunrpc/auth_unix.c: Likewise.
2765         * sunrpc/clnt_perr.c: Likewise.
2766         * sunrpc/clnt_tcp.c: Likewise.
2767         * sunrpc/clnt_udp.c: Likewise.
2768         * sunrpc/clnt_unix.c: Likewise.
2769         * sunrpc/svc_simple.c: Likewise.
2770         * sunrpc/svc_tcp.c: Likewise.
2771         * sunrpc/svc_udp.c: Likewise.
2772         * sunrpc/svc_unix.c: Likewise.
2773         * sunrpc/xdr.c: Likewise.
2774         * sunrpc/xdr_array.c: Likewise.
2775         * sunrpc/xdr_rec.c: Likewise.
2776         * sunrpc/xdr_ref.c: Likewise.
2777         * sysdeps/generic/wordexp.c: Likewise.
2779         * po/it.po: Update from translation team.
2781         * misc/err.c: Handle wide oriented stderr stream.
2783 2001-08-14  Tom Rix  <trix@redhat.com>
2785         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
2786         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
2788 2001-08-13  Tom Rix  <trix@redhat.com>
2790         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
2791         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
2792         and __intptr_t.
2794 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2796         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
2797         Store the access registers to the ucontext structure.
2798         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
2799         Likewise.
2801         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
2802         Load the access registers from the ucontext structure.
2803         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
2804         Likewise.
2806         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
2807         offsets to the new ucontext layout.
2808         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
2810         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
2811         of the ucontext structure.
2812         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
2814 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
2816         * misc/error.c (error): Handle wide oriented stderr stream correctly.
2817         (error_at_line): Likewise.
2819         * stdio-common/perror.c (perror): Implement according to standard.
2820         The stream orientation must not be changed if the stream was not
2821         oriented before the call.
2822         * stdio-common/Makefile (tests): Add tst-perror.
2823         * stdio-common/tst-perror.c: New file.
2826 See ChangeLog.12 for earlier changes.