Include sys/param.h. (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
[glibc.git] / ChangeLog
blob3afb9aba7d1b67f8a4543da18b3f5ffa05992bb0
1 2001-12-31  Andreas Jaeger  <aj@suse.de>
3         * configure.in: Don't check for gsed since we do not use it
4         anywhere.
6 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
8         * io/fts.c: Update from BSD to fix memory leaks.
10 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
12         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
13         * elf/chroot_canon.c: Likewise.
14         * elf/dl-object.c: Likewise.
15         * iconv/iconv_charmap.c: Likewise.
16         * iconv/iconv_prog.c: Likewise.
17         * libio/iogetdelim.c: Likewise.
18         * locale/lc-time.c: Likewise.
19         * stdlib/canonicalize.c: Likewise.
20         * sunrpc/svc.c: Likewise.
21         * sysdeps/generic/glob.c: Likewise.
23 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
25         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
26         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
27         remove high order bit from the program counter.
28         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
30 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
32         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
33         unnecessary code and add missing reloc types.
34         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
35         case for reloc type R_390_NONE.
37 2001-12-28  Andreas Jaeger  <aj@suse.de>
39         * io/bug-ftw3.c: Include string.h for prototypes.
41         * crypt/md5test.c (main): Remove unused variable.
43         * dlfcn/modstatic.c: Add prototype to avoid warning.
45 2001-12-26  Roland McGrath  <roland@frob.com>
47         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
48         check only (SS->pending & MASK) for the signal to return.
49         From Jeroen Dekkers <jeroen@dekkers.cx>.
51 2001-12-22  Roland McGrath  <roland@frob.com>
53         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
54         Use preprocessor #if conditionals instead of `if' to avoid
55         warnings about divide by zero in dead code.
57         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
58         _hurd_port_init, and __hurd_self_sigstate.
60         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
62 2001-12-21  Andreas Jaeger  <aj@suse.de>
64         * elf/dblloadmod1.c: Add prototype to avoid warning.
65         * elf/dblloadmod2.c: Likewise.
66         * elf/dblloadmod3.c: Likewise.
67         * elf/reldepmod5.c: Likewise.
68         * elf/reldepmod6.c: Likewise.
70         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
71         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
72         used on all architectures.
74         * sunrpc/svc_tcp.c: Add noreturn attribute for
75         svctcp_rendezvous_abort.
76         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
78         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
79         to avoid warning.
81 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
83         * manual/llio.texi (aio_fsync): Fix a typo.
84         Patch by Tammy Fox <tfox@redhat.com>.
86 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
88         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
89         stack bias from child stack pointer before passing it to clone syscall.
91 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
93         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
94         _SC_TZNAME_MAX.
95         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
96         Reported by Thorsten Kukuk <kukuk@suse.de>.
98         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
99         add some casts.
101         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
103 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
105         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
106         conforming: return EBADF if file descriptor is invalid and EINVAL
107         if file descriptor is no valid tty.
108         * login/tst-grantpt.c: New file.
109         * login/Makefile (tests): Add tst-grantpt.
111 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
113         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
114         different than implemented in last patch.
115         * io/bug-ftw3.c: Adjust test for changed handling of
116         inaccessibility of toplevel dir.
118 2001-12-16  Roland McGrath  <roland@frob.com>
120         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
121         * grp/initgroups.c (internal_getgrouplist): Likewise.
123         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
124         `default:' to silence new GCC warning.
125         Rewrite cast of lvalue to silence new GCC warning.
127         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
129         * sysdeps/mach/hurd/spawni.c: New file, by me with a
130         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
132 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
134         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
135         Patch by Stephen R. van den Berg.
137         * crypt/md5.h: Define md5_uintptr.
139 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
141         * libio/tst_swprintf.c (main): Add test for string argument with
142         zero precision.
143         * stdio-common/Makefile (tests): Add tst-sprintf.
144         * stdio-common/tst-sprintf.c: New file.
146 2001-12-13  Andreas Schwab  <schwab@suse.de>
148         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
149         zero precision with wide character string format.
151 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
153         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
154         but have a user supplied buffer, return the empty buffer, not NULL.
156 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
158         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
159         Patch by Eric Sharkey <sharkey@netrics.com>.
161         * crypt/md5test.c (main): Add test for multiple calls to
162         __md5_process_bytes to itererate over input string.
164 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
166         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
167         from __nis_findfastest.  Take timeout value from parameter.
168         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
169         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
170         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
172 2001-12-12  Andreas Jaeger  <aj@suse.de>
174         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
175         combreloc test so that it works in this case.
177         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
179 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
181         * sysdeps/sh/Makefile: New file.
182         * sysdeps/sh/_mcount.S: New file.
183         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
184         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
186 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
188         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
189         limitation [PR libc/2564].
191 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
193         * elf/Makefile (dl-routines): Add conflict.
194         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
195         (ld.so): Add _begin local symbol.
196         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
197         Define.
198         * elf/dl-deps.c (_dl_build_local_scope): New.
199         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
200         of all libraries.
201         * elf/do-rel.h (VALIDX): Define.
202         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
203         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
204         can be skipped.
205         * elf/dl-conflict.c: New file.
206         * elf/dl-lookup.c (_dl_debug_bindings): New.
207         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
208         non-NULL.
209         (_dl_lookup_symbol_skip): Likewise.
210         (_dl_lookup_versioned_symbol): Likewise.
211         (_dl_lookup_versioned_symbol_skip): Likewise.
212         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
213         define to ElfW(Rel).
214         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
215         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
216         ranges.
217         Don't adjust address dynamic tags if l_addr is 0.
218         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
219         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
220         (VALIDX, ADDRIDX): Define.
221         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
222         (dl_main): Print library list for LD_TRACE_PRELINKING.
223         If prelinking information can be used, skip relocating libraries and
224         call _dl_resolve_conflicts instead.
225         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
226         * elf/dl-load.c (_dl_map_object): Don't create fake libs
227         if LD_TRACE_PRELINKING.
228         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
229         + DT_ADDRNUM.
230         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
231         (DL_DEBUG_PRELINK): Define.
232         (_dl_resolve_conflicts): Add prototype.
234         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
235         .plt for prelinked libraries where prelinking info cannot be used.
236         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
237         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
238         * sysdeps/arm/bits/link.h: New file.
239         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
240         content of .got[1].
241         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
242         (ELF_MACHINE_PLT_REL): Define.
243         (elf_machine_rela, elf_machine_rela_relative): New.
244         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
245         of adjusting it if prelinked and prelinking cannot be used.
246         * sysdeps/i386/bits/link.h: New file.
247         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
248         content of .got[1].
249         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
250         (ELF_MACHINE_PLT_REL): Define.
251         (elf_machine_rela, elf_machine_rela_relative): New.
252         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
253         of adjusting it if prelinked and prelinking cannot be used.
254         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
255         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
256         to find out map for R_PPC_JMP_SLOT relocs.
257         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
258         (OPCODE_BA): Define.
259         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
260         libraries where prelinking info cannot be used.
261         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
262         (elf_machine_fixup_plt): Call sparc_fixup_plt.
263         (elf_machine_rela): Set value to 0 if relocating conflicts.
264         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
265         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
266         (sparc64_fixup_plt): Fix a typo.
267         (elf_machine_rela): Set value to 0 if relocating conflicts.
268         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
269         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
270         libraries where prelinking info cannot be used.
271         * sysdeps/sh/bits/link.h: New file.
272         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
273         content of .got[1].
274         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
275         of adjusting it if prelinked and prelinking cannot be used.
276         * sysdeps/s390/s390-32/bits/link.h: New file.
277         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
278         Save original content of .got[1].
279         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
280         of adjusting it if prelinked and prelinking cannot be used.
281         * sysdeps/s390/s390-64/bits/link.h: New file.
282         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
283         Save original content of .got[1].
284         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
285         of adjusting it if prelinked and prelinking cannot be used.
286         * sysdeps/x86_64/bits/link.h: New file.
287         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
288         Save original content of .got[1].
289         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
290         of adjusting it if prelinked and prelinking cannot be used.
292 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
294         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
295         where appropriate instead of numbers.  Little optimizations.
297 2001-12-10  Roland McGrath  <roland@frob.com>
299         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
300         set it.
302         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
303         set to GLIBC_2.2.5, not GLIBC_2.2.4.
305         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
306         Fix conditionals so this is set by default for stdio and not for libio.
307         * sysdeps/mach/hurd/configure: Regenerated.
309 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
311         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
313 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
315         * io/Makefile (tests): Add bug-ftw3.
316         * io/bug-ftw3.c: New file.
318         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
319         matches and GLOB_NOCHECK is set.
320         * posix/globtest.sh: Correct expected result for NOCHECK test.
322         * po/ca.po: Update from translation team.
324 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
326         Implement transliteration of characters in strings of the locale
327         definitions.
328         * locale/programs/linereader.c: Adjust for additional parameter to
329         lr_token.
330         (get_string): If character <Uxxxx> is not found try to transliterate
331         it.
332         * locale/programs/ld-ctype.c: Adjust for additional parameter to
333         lr_token.  Add const to charmap parameter of all functions.
334         (find_translit, find_translit2): New functions.
335         * locale/programs/charmap.c: Adjust for additional parameter to
336         lr_token.
337         * locale/programs/repertoire.c: Likewise.
338         * locale/programs/linereader.h: Likewise.
339         * locale/programs/ld-address.c: Likewise.  Add const to charmap
340         parameter of all functions.
341         * locale/programs/ld-collate.c: Likewise.
342         * locale/programs/ld-identification.c: Likewise.
343         * locale/programs/ld-measurement.c: Likewise.
344         * locale/programs/ld-messages.c: Likewise.
345         * locale/programs/ld-monetary.c: Likewise.
346         * locale/programs/ld-name.c: Likewise.
347         * locale/programs/ld-numeric.c: Likewise.
348         * locale/programs/ld-paper.c: Likewise.
349         * locale/programs/ld-paper.c: Likewise.
350         * locale/programs/ld-telephone.c: Likewise.
351         * locale/programs/ld-time.c: Likewise.
352         * locale/programs/locfile.c: Likewise.
353         * locale/programs/localedef.c: Likewise.
354         * locale/programs/localedef.h: Likewise.
355         * locale/programs/locfile.h: Likewise.  Add declaration for
356         find_translit.
357         * locale/programs/simple-hash.c: Add const to first parameter of
358         find_entry, iterate_table, and lookup.
359         * locale/programs/simple-hash.h: Likewise.
360         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
361         instead.
362         * include/locale.h: Define __LC_LAST.
363         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
365 2001-12-07  Geoff Keating  <geoffk@redhat.com>
367         * sysdeps/powerpc/Dist: Update for recent FP changes.
368         * sysdeps/powerpc/fpu/Dist: Likewise.
370 2001-12-07  Andreas Schwab  <schwab@suse.de>
372         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
374 2001-12-06  Geoff Keating  <geoffk@redhat.com>
376         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
377         save/restore functions here.
378         (libm-support): Don't define these functions here.
379         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
380         functions here.
381         * sysdeps/powerpc/fe_nomask.c: Move to...
382         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
383         * sysdeps/powerpc/fprrest.S: Move to...
384         * sysdeps/powerpc/fpu/fprrest.S: ... here.
385         * sysdeps/powerpc/fprsave.S: Move to...
386         * sysdeps/powerpc/fpu/fprsave.S: ... here.
388 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
390         * sysdeps/unix/sysv/linux/opensock.c: New file.
392 2001-12-06  Geoff Keating  <geoffk@redhat.com>
394         * config.make.in (with-fp): Define from configure.
395         * configure.in: Substitute with_fp.
396         * configure: Regenerate.
397         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
398         specified, and don't change FPU environment.
400 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
402         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
403         * assert/assert.c: Check result of __asprintf call and don't use
404         string if it failed.
405         * assert/assert-perr.c: Likewise.
406         * inet/rcmd.c: Likewise.
407         * locale/programs/localedef.c (main): Check result of
408         construct_output_path and exit if it failed.
409         (construct_output_path): Check result of asprintf and mkdir calls and
410         fail if they failed.
411         * posix/getopt.c: Check result of __asprintf calls and fail if
412         they failed.
413         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
415 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
417         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
418         patch.
419         * sysdeps/generic/strncase.c: Likewise.
420         * string/tester.c: Add tests for strcasecmp and strncasecmp.
422 2001-12-05  Geoff Keating  <geoffk@redhat.com>
424         * scripts/cpp: Test the exit status from 'type', not 'awk'.
426         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
427         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
428         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
429         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
430         * sysdeps/powerpc/fclrexcpt.c: Move to...
431         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
432         * sysdeps/powerpc/fpu_control.h: Move to...
433         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
435 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
437         * iconvdata/ibm1129.h: Remove duplicate mappings.
438         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
439         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
440         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
442         * timezone/zic.c: Fix handling of turnaround times.
443         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
445 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
447         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
448         overflow problem.
450 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
452         * posix/regex.c: For use outside glibc defined bounded pointer
453         macros here.  Patch by Jim Meyering <jim@meyering.net>.
455         * iconvdata/Makefile (modules): Add TCVN5712-1.
456         * iconvdata/TESTS: Add TCVN5712-1.
457         * iconvdata/gconv-modules: Likewise.
458         * iconvdata/tcvn5712-1.c: New file.
459         * iconvdata/testdata/TCVN-5712: New file.
460         * iconvdata/testdata/TCVN-5712..UTF8: New file.
462 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
464         * iconvdata/cp1258.c: Optimize conversion from UCS4.
466 2001-12-02  Roland McGrath  <roland@frob.com>
468         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
470         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
471         Reported by Jeff Bailey <jbailey@nisa.net>.
473         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
474         Reported by Jeff Bailey <jbailey@nisa.net>.
476         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
477         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
478         Reported by Jeff Bailey <jbailey@nisa.net>.
480 2001-12-01  Roland McGrath  <roland@frob.com>
482         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
483         missing backslash in test arguments.
484         * sysdeps/mach/hurd/configure: Regenerated.
486 2001-11-26  Roland McGrath  <roland@frob.com>
488         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
489         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
491 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
493         * iconvdata/Makefile (modules): Add ARMSCII-8.
494         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
495         * iconvdata/armscii-8.c: New file.
497 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
499         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
500         don't match, fix {{a,b},c} globbing, clean up.
501         Patch by Flavio Veloso <flaviovs@magnux.com>.
502         * posix/globtest.sh: Add new tests.
504 2001-11-29  Andreas Jaeger  <aj@suse.de>
506         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
507         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
509         * sysdeps/generic/abort.c: Include libioP.h for
510         _IO_flush_all_lockp prototype.
512 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
514         * posix/regex.h: Define __restrict_arr correctly.
516 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
518         * iconvdata/ibm1163.c: New file.
519         * iconvdata/ibm1163.h: New file.
520         * iconvdata/ibm1164.c: New file.
521         * iconvdata/ibm1164.h: New file.
522         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
523         * iconvdata/Makefile: Likewise.
524         * iconvdata/testdata/IBM1163: New file.
525         * iconvdata/testdata/IBM1163..UTF8: New file.
526         * iconvdata/testdata/IBM1164: New file.
527         * iconvdata/testdata/IBM1164..UTF8: New file.
528         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
530         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
531         * iconvdata/ibm1124.h: Likewise.
532         * iconvdata/ibm1132.h: Likewise.
533         * iconvdata/ibm1133.h: Likewise.
534         * iconvdata/ibm1160.h: Likewise.
535         * iconvdata/ibm1161.h: Likewise.
536         * iconvdata/ibm1162.h: Likewise.
537         * iconvdata/ibm856.h: Likewise.
538         * iconvdata/ibm922.h: Likewise.
539         * iconvdata/ibm930.h: Likewise.
540         * iconvdata/ibm932.h: Likewise.
541         * iconvdata/ibm933.h: Likewise.
542         * iconvdata/ibm935.h: Likewise.
543         * iconvdata/ibm937.h: Likewise.
544         * iconvdata/ibm939.h: Likewise.
545         * iconvdata/ibm943.h: Likewise.
546         * iconvdata/ibm930.c: Pretty printing.
547         * iconvdata/ibm937.c: Avoid access accross array boundary.
549         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
550         the current locale's codeset.
551         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
552         empty input string.
553         * iconv/iconv_prog.c: Pass empty strings as default value for to-
554         and from-charset.  Don't determine locale's charset here.
556         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
557         as the old _IO_flush_all but lock only if parameter is nonzero.
558         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
559         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
560         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
561         if libio is used [PR libc/2575].
563 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
565         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
566         __signbitl): Only define for ISO C99.
568 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
570         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
571         herrnop to NETDB_INTERNAL if we run out of buffer space.
573 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
575         * nss/nss_files/files-XXX.c (internal_getent): Correct input
576         overflow test for platforms with signed char.
577         Reported by Andrew Haley <aph@cambridge.redhat.com>.
579 2001-11-28  Bruno Haible  <bruno@clisp.org>
581         * locale/programs/simple-hash.c (lookup_2): Remove function.
582         (insert_entry_2): Call lookup instead of lookup_2.
584 2001-03-04  Bruno Haible  <bruno@clisp.org>
586         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
588 2001-10-31  Bruno Haible  <bruno@clisp.org>
590         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
592 2001-03-21  Bruno Haible  <bruno@clisp.org>
594         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
595         chokes on empty macro arguments.
596         * intl/plural.y: Add #pragma for alloca on AIX 3.
598 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
600         * intl/dcigettext.c (guess_category_value): Only implement for
601         glibc.  Otherwise rely on function _nl_locale_name which isn't
602         present in the glibc sources.
604 2001-09-24  Bruno Haible  <bruno@clisp.org>
606         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
607         transliteration when building on a glibc system but outside glibc.
609 2001-09-22  Bruno Haible  <bruno@clisp.org>
611         * intl/plural-eval.c: New file, extracted from dcigettext.c.
612         * intl/dcigettext.c (plural_eval): Remove function, moved to
613         intl/plural-eval.c.
614         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
615         Include plural-eval.c.
617 2001-09-22  Bruno Haible  <bruno@clisp.org>
619         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
620         don't start with a digit; nplurals must be positive.
622 2001-09-02  Bruno Haible  <bruno@clisp.org>
624         * intl/plural-exp.h: New file, extracted from gettextP.h.
625         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
626         * intl/gettextP.h (struct expression, struct parse_args,
627         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
628         * intl/loadmsgcat.c: Include plural-exp.h.
629         (PLURAL_PARSE): Move macro to plural-exp.h.
630         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
631         plural-exp.c.
632         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
633         EXTRACT_PLURAL_EXPRESSION.
634         (_nl_unload_domain): Update.
635         * intl/dcigettext.c: Include plural-exp.h.
636         * intl/plural.y: Include plural-exp.h, not gettextP.h.
637         (FREE_EXPRESSION): Move macro to plural-exp.h.
638         * intl/Makefile (routines): Add plural-exp.
639         (distribute): Add plural-exp.h.
641 2001-07-28  Bruno Haible  <bruno@clisp.org>
643         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
644         isdigit, tolower argument to 'unsigned char'.
645         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
646         'unsigned char'.
647         * intl/localealias.c (read_alias_file): Cast isspace argument to
648         'unsigned char'.
650 2001-10-20  Bruno Haible  <bruno@clisp.org>
652         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
653         anyway.)
654         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
655         with the variable 'index' in plural_lookup.
656         * intl/l10nflist.c (strchr): Likewise.
657         * intl/localealias.c (strchr): Likewise.
659         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
660         * intl/bindtextdom.c: Likewise.
661         * intl/dcigettext.c: Likewise.
662         * intl/dgettext.c: Likewise.
663         * intl/dngettext.c: Likewise.
664         * intl/explodename.c: Likewise.
665         * intl/finddomain.c: Likewise.
666         * intl/gettext.c: Likewise.
667         * intl/l10nflist.c: Likewise.
668         * intl/loadmsgcat.c: Likewise.
669         * intl/localealias.c: Likewise.
670         * intl/ngettext.c: Likewise.
671         * intl/textdomain.c: Likewise.
672         * intl/gettext.h: Assume <limits.h> exists.
674 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
676         * stdio-common/Makefile (tests): Add scanf11.
677         * stdio-common/scanf11.c: New file.
679 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
681         * version.h (RELEASE): Define as development.
682         (VERSION): Set to 2.2.90.
684 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
686         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
687         * nis/nss_nis/nis-grp.c: Likewise.
688         * nis/nss_nisplus/nisplus-grp.c: Likewise.
690         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
691         * nis/nss_nis/nis-pwd.c: Likewise.
692         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
694         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
695         * nis/nss_nisplus/nisplus-parser.c: Likewise.
696         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
698         * nscd/grpcache.c: Use strtoul instead of atol.
699         * nscd/pwdcache.c: Likewise.
700         * nss/getent.c: Likewise.
702 2001-11-27  Paul Eggert  <eggert@twinsun.com>
704         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
705         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
707 2001-11-19  Bruno Haible  <bruno@clisp.org>
709         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
710         90%.
711         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
712         improves the quality of the hash function, especially for short
713         strings.
715 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
717         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
718         are found call conv_error and not input_error [PR libc/2669].
720         * math/bits/mathcalls.h: Mark ceil and floor as const.
721         Reported by David Mosberger.
723 2001-11-21  Jim Meyering  <meyering@lucent.com>
725         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
726         Define to be __-prefixed.
727         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
729 2001-11-26  Andreas Jaeger  <aj@suse.de>
731         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
732         avoid warning.
734 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
736         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
737         initialization.
739         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
740         unused variables.  Fix threshold for returning 1.0.
742         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
743         argument.
745         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
746         remove unused variables.
748         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
750         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
751         include local math header files.
753 2001-11-22  Andreas Jaeger  <aj@suse.de>
755         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
756         avoid warning.
758 2001-11-21  Andreas Jaeger  <aj@suse.de>
760         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
762         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
763         sys/debugreg.h
765 2001-11-15  Andreas Jaeger  <aj@suse.de>
767         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
768         compilers that support it.
770         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
771         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
772         * stdlib/stdlib.h: Likewise.
774 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
776         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
777         statement with gotos.
778         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
780 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
782         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
784 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
786         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
788 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
789             H.J. Lu  <hjl@gnu.org>
791         * Versions.def (libc): Add GCC_3.0.
792         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
793         if gcc supports this flag.
794         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
795         (gcc3): Allow glibc to be compiled with gcc 3.x.
796         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
797         * config.make.in (static-libgcc, unwind-find-fde): Add.
798         * Makerules (build-shlib-helper, build-module-helper): Use it.
799         * scripts/versions.awk: Make sure GLIBC_ versions come first.
800         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
801         necessary.
802         (_fini): Call __deregister_frame_info_bases if
803         __register_frame_info_bases was used to register.
804         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
805         for GLIBC_2.0.
806         (__register_frame_info_bases, __register_frame_info_table_bases,
807         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
808         * elf/Makefile (routines): Add unwind-dw2-fde.
809         (shared-only-routines): Add unwind-dw2-fde.
810         * sysdeps/alpha/gccframe.h: New file.
811         * sysdeps/arm/gccframe.h: New file.
812         * sysdeps/generic/framestate.c: New file.
813         * sysdeps/generic/dwarf2.h: New file.
814         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
815         * sysdeps/generic/unwind-dw2-fde.c: New file.
816         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
817         * sysdeps/generic/unwind-dw2-fde.h: New file.
818         * sysdeps/generic/unwind-dw2.c: New file.
819         * sysdeps/generic/unwind-pe.h: New file.
820         * sysdeps/generic/unwind.h: New file.
821         * sysdeps/hppa/gccframe.h: New file.
822         * sysdeps/i386/gccframe.h: New file.
823         * sysdeps/m68k/gccframe.h: New file.
824         * sysdeps/mips/gccframe.h: New file.
825         * sysdeps/powerpc/gccframe.h: New file.
826         * sysdeps/s390/gccframe.h: New file.
827         * sysdeps/sh/gccframe.h: New file.
828         * sysdeps/sparc/gccframe.h: New file.
829         * sysdeps/vax/gccframe.h: New file.
830         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
831         Set on all architectures except ia64.
832         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
833         for i386.
834         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
835         __deregister_frame_info): Move to elf/Versions.
836         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
837         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
838         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
839         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
840         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
841         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
842         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
843         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
844         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
845         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
846         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
847         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
848         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
849         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
850         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
851         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
852         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
853         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
855 2001-11-15  Jeff Law  <law@redhat.com>
857         * posix/regex.c (uintptr_t): Do not provide a definition if the
858         system provided one.
860 2001-11-13  Roland McGrath  <roland@frob.com>
862         * stdio-common/tmpfile.c: Moved to ...
863         * sysdeps/generic/tmpfile.c: ... here.
864         * sysdeps/mach/hurd/tmpfile.c: New file.
866         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
867         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
868         (fopenport): Define as weak alias.
870         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
871         * libio/libioP.h: ... to here.
873 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
875         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
876         program header twice.  Construct list with the needed information.
878 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
880         * po/ca.po: Update from translation team.
882         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
883         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
884         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
885         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
887 2001-11-10  Andreas Jaeger  <aj@suse.de>
889         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
890         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
891         Contributed by Stephen L Moshier <moshier@mediaone.net>.
893 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
895         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
896         correctly.
897         * elf/dl-load.c (is_dst): New function.
898         (_dl_dst_count): Use is_dst to check for DST variable.
899         (_dl_dst_substitute): Likewise.
901 2001-11-09  Roland McGrath  <roland@frob.com>
903         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
904         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
905         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
906         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
907         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
908         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
909         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
910         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
911         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
912         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
913         * sysdeps/mach/hurd/powerpc/Dist: New file.
915         * hurd/privports.c (__get_privileged_ports):
916         Only contact the proc server if necessary for this call.
917         Suggested by Neal H Walfield <neal@cs.uml.edu>.
918         Check error return for mach_port_mod_refs.
920 2001-11-09  Andreas Schwab  <schwab@suse.de>
922         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
924 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
926         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
927         object is always the last in the list.
928         (_dl_map_object_from_fd): Delete code to remove from object list
929         when DF_1_NOOPEN is seen.  This is done in lose.
931 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
933         * elf/dl-object.c (_dl_new_object): Various small optimizations.
935 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
937         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
938         HWCAP_CHECK macro code.
940         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
941         Now returns MAP_FAILED on error.
942         * elf/rtld.c: Adjust caller.
943         * sysdeps/generic/dl-cache.c: Likewise.
944         * sysdeps/generic/ldsodefs.h: Adjust description.
946         * elf/dl-version.c (match_symbol): Optimize error handling for size.
947         (_dl_check_map_versions): Likewise.
949 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
951         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
952         _dl_signal_error directly, always use lose.  Set fd to -1 after
953         file is closed.
954         (lose): Don't call close if fd == -1.
956 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
958         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
959          Also fix typo @code {mbsinit} to @code{mbsinit}.
961 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
963         * elf/dl-profile.c: Replace state variable with simple flag named
964         running.  Remove commented-out code.
966         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
967         (_dl_init_paths): Likewise.
968         (_dl_map_object_from_fd): Likewise.
969         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
971 2001-11-06  Roland McGrath  <roland@frob.com>
973         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
974         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
976         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
977         sysdeps/powerpc/elf/sysdep.h.
978         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
980 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
982         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
983         speed.
984         (process_envvars): Some more optimizations.
985         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
987         * elf/elf.h: Add dynamic tag definitions for prelinking.
989         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
990         Rewrite code to remove environment varables for SUID binaries.
991         Small optimization in LD_PROFILE handling.
992         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
993         changes.
994         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
996         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
998         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
999         strings.  Change type of second parameter.
1000         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
1001         for last change.
1003         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
1005 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
1007         * manual/string.texi: Fix typos.
1008         * manual/examples/argp-ex2.c: Likewise.
1010 2001-11-05  Roland McGrath  <roland@frob.com>
1012         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
1013         the more-specific unix/sysv/linux/powerpc file and breaks everything.
1014         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
1015         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
1016         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
1017         here, put under [__ELF__].
1019 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
1021         * manual/charset.texi: Extensive editing work.
1022         * manual/nss.texi: Likewise.
1023         Changes by Dennis Grace <dgrace@us.ibm.com>.
1025 2001-11-04  Roland McGrath  <roland@frob.com>
1027         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
1028         parameter to dir_mkfile.
1030 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
1032         * string/bits/string2.h (__strndup): If n is smaller than len, set
1033         len to n + 1.
1034         * string/tester.c (test_strndup): New function.
1035         (main): Call it.
1037 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
1039         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
1041         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
1042         * scripts/cpp: New file.
1044         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
1045         for rtld_search_dirs content.  Minor optimizations.
1047 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
1049         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
1050         avoiding unnecessary duplication.
1052 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
1054         * elf/dl-load.c (_dl_map_object): If library was found using
1055         LD_LIBRARY_PATH, don't try RUNPATH list.
1057 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1059         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
1060         Correct second argument of register_dump call.
1061         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
1062         Likewise.
1064 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
1066         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
1067         modules.
1068         * iconvdata/TESTS: Likewise.
1069         * iconvdata/gconv-modules: Likewise.
1070         * iconvdata/ibm1132.c: New file.
1071         * iconvdata/ibm1132.h: New file.
1072         * iconvdata/ibm1133.c: New file.
1073         * iconvdata/ibm1133.h: New file.
1074         * iconvdata/ibm1162.c: New file.
1075         * iconvdata/ibm1162.h: New file.
1076         * iconvdata/testdata/IBM1132: New file.
1077         * iconvdata/testdata/IBM1132..UTF8: New file.
1078         * iconvdata/testdata/IBM1133: New file.
1079         * iconvdata/testdata/IBM1133..UTF8: New file.
1080         * iconvdata/testdata/IBM1162: New file.
1081         * iconvdata/testdata/IBM1162..UTF8: New file.
1082         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
1084         * string/string.h: Fix typo in comment.
1085         * wcsmbs/wchar.h: Likewise.
1087 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
1089         * manual/getopt.texi (getopt_long, getopt_long_only): Include
1090         const in type of longopts parameter.
1092 2001-10-29  Andreas Jaeger  <aj@suse.de>
1094         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
1096 2001-10-29  Kevin Ryde  <user42@zip.com.au>
1098         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
1099         output, clarify `#' behaviour on 0.
1100         (Floating-Point Conversions): Clarify that %g only uses %e when
1101         the exponent would be greater than 1.
1103 2001-10-28  Roland McGrath  <roland@frob.com>
1105         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
1106         * sysdeps/mach/powerpc/machine-sp.h: New file.
1107         * sysdeps/mach/powerpc/sysdep.h: New file.
1108         * sysdeps/mach/powerpc/thread_state.h: New file.
1110         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
1111         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
1112         expect to need the same thing on every platform.
1114         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
1115         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
1117         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
1118         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
1119         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
1120         Move all these assembly-related definitions to ...
1121         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
1123         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
1124         by Peter Bruin <pjbruin@dds.nl>.
1126         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
1127         packing results for a `poll' call.
1129 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
1131         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
1132         correctly.
1133         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
1134         bracket expression.
1136         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
1137         nrules value.
1138         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
1140 2001-10-24  H.J. Lu  <hjl@gnu.org>
1142         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
1143         Use __BEGIN_DECLS/__END_DECLS around prototypes.
1144         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
1146 2001-10-21  Jim Meyering  <meyering@lucent.com>
1148         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
1149         this code would end up calling gettext even in packages built
1150         with --disable-nls.
1151         * posix/getopt.c (_): Likewise.
1152         * posix/regex.c (_): Likewise.
1154 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
1156         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
1157         lookup not ip6.int.
1158         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
1159         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
1161 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
1163         * misc/sys/cdefs.h (__attribute_used__): Define.
1164         * elf/rtld.c (_dl_start): Add __attribute_used__.
1165         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
1167 2001-10-25  Andreas Schwab  <schwab@suse.de>
1169         * stdlib/a64l.c: Expect least significant digit first.
1170         * stdlib/l64a.c: Produce least significant digit first.
1171         * stdlib/Makefile (tests): Add test-a64l.
1172         * stdlib/test-a64l.c: New file.
1173         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
1175 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
1177         * po/sk.po: Update from translation team.
1179 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
1181         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
1183 2001-10-18  Andreas Schwab  <schwab@suse.de>
1185         * math/libm-test.inc (print_ulps): Print ulp values rounded to
1186         next whole number.
1187         (print_function_ulps): Likewise.
1188         (print_complex_function_ulps): Likewise.
1189         (print_max_error): Likewise.
1190         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
1192 2001-10-16  Andreas Schwab  <schwab@suse.de>
1194         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
1195         implementation.
1197         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
1198         BSD_SETJMP or BSD__SETJMP is defined, resp.
1199         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
1200         a tail call to __sigsetjmp that would require extending the
1201         caller's frame.
1202         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
1203         * sysdeps/m68k/bsd-setjmp.S: Deleted.
1204         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
1205         Reported by Jes Sorensen <jes@trained-monkey.org>.
1207 2001-10-16  Andreas Jaeger  <aj@suse.de>
1209         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
1210         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
1211         close PR libc/2589.
1213 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
1215         * po/ca.po: New file.  Contributed by the translation team.
1217 2001-10-15  Ralf Baechle  <ralf@gnu.org>
1219         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
1220         a varargs prototype.  Remove dependency from kernel header files.
1222         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
1223         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
1225 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
1227         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
1228         to generate hexadecimal identifier.
1229         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
1231 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
1233         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
1235 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
1237         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
1238         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
1239         Contributed by Stephen L Moshier <moshier@mediaone.net>.
1241         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
1242         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1243         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
1244         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
1245         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
1246         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
1248         * timezone/africa: Update from tzdata2001d.
1249         * timezone/asia: Likewise.
1250         * timezone/australasia: Likewise.
1251         * timezone/backward: Likewise.
1252         * timezone/europe: Likewise.
1253         * timezone/leapseconds: Likewise.
1254         * timezone/northamerica: Likewise.
1255         * timezone/southamerica: Likewise.
1256         * timezone/zone.tab: Likewise.
1258 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1260         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
1261         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
1263 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
1265         * elf/elf.h (PT_TLS): New definition.
1267 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
1269         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
1270         bits/errno.h
1272 2001-10-07  Roland McGrath  <roland@frob.com>
1274         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
1276 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
1278         * elf/elf.h: Add more ELFOSABI_* constants.
1280 2001-10-04  Ben Collins  <bcollins@debian.org>
1282         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
1283         decleration of __need_wchar_t.
1285 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
1287         * string/bits/string2.h (__strsep_g): Add prototype.
1288         (__strsep): Use it.
1289         * string/Versions (__strsep): Remove.
1290         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
1292 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
1294         * manua/llio.texi: Clarify file references added by mmap.
1295         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
1297 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
1299         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
1300         Add sc_loadrs and sc_rbs_bas to match current kernel.
1302 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
1304         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
1306         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
1308 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
1310         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
1311         object has been bumped because of relocation dependency, avoid
1312         duplicates in l_scope.
1313         (show_scope): Fix typos.
1314         * elf/Makefile: Add rules to build and run reldep6.
1315         * elf/reldep6.c: New file.
1316         * elf/reldep6mod0.c: New file.
1317         * elf/reldep6mod1.c: New file.
1318         * elf/reldep6mod2.c: New file.
1319         * elf/reldep6mod3.c: New file.
1320         * elf/reldep6mod4.c: New file.
1322 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
1324         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
1325         sparc64_fixup_plt.
1326         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
1327         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
1328         for non-lazy binding. Fix .plt[32768+] handling.
1329         (elf_machine_plt_value): Don't add addend.
1330         (elf_machine_rela): Call sparc64_fixup_plt instead of
1331         elf_machine_fixup_plt.
1332         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
1333         dynamic linker at 0xfffff800XXXXXXXX.
1335         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
1337 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
1339         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
1341 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
1343         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
1344         declare __cmsg_data field if its size would be bigger than 0.
1345         (CMSG_DATA): Adjust accordingly.
1346         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
1347         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
1348         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
1349         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
1350         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
1351         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
1352         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1354 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
1356         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
1357         * iconvdata/testdata/IBM1160: New file.
1358         * iconvdata/testdata/IBM1160..UTF8: New file.
1359         * iconvdata/testdata/IBM1161: New file.
1360         * iconvdata/testdata/IBM1161..UTF8: New file.
1361         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1363 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
1365         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
1366         UL_SETFSIZE computations better.
1368         * rt/Makefile: Remove use of filter for librt again.
1370         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
1371         UL_SETFSIZE computations better.
1373         * string/Versions: Export __strsep for GLIBC_2.2.5.
1374         * string/bits/string2.h: Define all __STRING_INLINE functions if
1375         _FORCE_INLINES is defined.
1376         Use int instead of char of parameter types.
1377         (__strsep): Don't use __strsep_g.  Don't define it.
1378         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
1379         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
1380         __strcpy_small.
1381         (__stpcpy_a_small): Renamed from __stpcpy_small.
1382         (__strcspn_c1): Don't define if _FORCE_INLINES.
1383         (__strspn_c1): Likewise.
1385 2001-09-22  Ben Collins  <bcollins@debian.org>
1387         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
1388         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
1389         * sysdeps/ia64/bits/sigaction.h: Likewise.
1390         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
1392 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
1394         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
1396 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
1398         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
1400 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
1402         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
1404 2001-09-20  H.J. Lu  <hjl@gnu.org>
1406         * include/dlfcn.h (__RTLD_SPROF): New definiton.
1407         * elf/dl-open.c (dl_open_worker): Return immediately after loading
1408         for __RTLD_SPROF.
1409         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
1410         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
1412 2001-09-20  H.J. Lu  <hjl@gnu.org>
1414         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
1415         don't add 1.
1417 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
1419         * nss/getent.c: Accept -s parameter to overwrite rules in
1420         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
1422         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
1423         with as many ".0" as necessary to form a complete address
1424         inet_network understands.
1426         * nss/getent.c: Various cleanups.  Use simpler and fewer function
1427         calls.
1429 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1431         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
1432         _JMPBUF_UNWINDS.
1433         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
1435 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
1437         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
1438         IBM1161.
1439         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
1440         * iconvdata/ibm1160.c: New file.
1441         * iconvdata/ibm1160.h: New file.
1442         * iconvdata/ibm1161.c: New file.
1443         * iconvdata/ibm1161.h: New file.
1444         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1446 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
1448         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
1449         difference between base address and first PT_LOAD's virtual address,
1450         not the base address.
1452 2001-09-11  Tom Rix  <trix@redhat.com>
1454         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
1455         ifdef for __getopt_clean_environment.
1456         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
1458 2001-09-22  Andreas Jaeger  <aj@suse.de>
1460         * elf/reldep4.c (main): Add proper prototype to fix warning.
1462         * elf/reldep5.c (main): Remove unused variable.
1464         * math/math_private.h: Add prototypes.
1466 2001-09-21  Andreas Jaeger  <aj@suse.de>
1468         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
1469         * sysdeps/x86_64/Dist: New file.
1470         * sysdeps/x86_64/soft-fp/Dist: New file.
1472         * sysdeps/gnu/Dist: Remove eval.c.
1474 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
1476         * malloc/memusage.c (realloc): Don't count already allocated
1477         memory in the sums.
1478         (me): Always use dlsym() to find the real implementations.
1480         * malloc/memusage.sh: Make -n option actually do something.
1482 2001-09-20  Andreas Jaeger  <aj@suse.de>
1484         * elf/elf.h (R_390_NUM): Correct value.
1486         * Versions.def: Add missing versions 2.2.3 for libthread_db and
1487         libpthread.
1489         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
1490         for x86-64, install x86-64 into */lib64.
1492         * shlib-versions: Add x86-64.
1494         * elf/elf.h: Add x86-64 relocations.
1496 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
1498         * po/fr.po: Update from translation team.
1500 2001-09-19  Andreas Jaeger  <aj@suse.de>
1502         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
1503         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
1504         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
1505         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
1506         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
1507         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
1508         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
1509         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
1510         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
1511         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
1512         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
1513         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
1514         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
1515         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
1516         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
1517         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
1518         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
1519         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
1520         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
1521         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
1522         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
1523         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
1524         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
1525         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
1526         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
1527         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
1528         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
1529         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
1530         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
1531         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
1532         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
1533         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
1534         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
1535         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
1536         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
1537         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
1538         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
1539         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
1540         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
1541         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
1542         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
1543         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
1544         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
1545         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
1546         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
1547         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
1548         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
1549         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
1550         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
1551         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
1552         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
1553         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
1554         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
1555         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
1556         * sysdeps/unix/x86_64/sysdep.S: New file.
1557         * sysdeps/unix/x86_64/sysdep.h: New file.
1558         * sysdeps/x86_64/Implies: New file.
1559         * sysdeps/x86_64/Makefile: New file.
1560         * sysdeps/x86_64/Versions: New file.
1561         * sysdeps/x86_64/__longjmp.S: New file.
1562         * sysdeps/x86_64/abort-instr.h: New file.
1563         * sysdeps/x86_64/atomicity.h: New file.
1564         * sysdeps/x86_64/bits/endian.h: New file.
1565         * sysdeps/x86_64/bits/setjmp.h: New file.
1566         * sysdeps/x86_64/bits/string.h: New file.
1567         * sysdeps/x86_64/bp-asm.h: New file.
1568         * sysdeps/x86_64/bsd-_setjmp.S: New file.
1569         * sysdeps/x86_64/bsd-setjmp.S: New file.
1570         * sysdeps/x86_64/dl-machine.h: New file.
1571         * sysdeps/x86_64/elf/initfini.c: New file.
1572         * sysdeps/x86_64/elf/start.S: New file.
1573         * sysdeps/x86_64/ffs.c: New file.
1574         * sysdeps/x86_64/ffsll.c: New file.
1575         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
1576         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
1577         * sysdeps/x86_64/fpu/e_acosl.c: New file.
1578         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
1579         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
1580         * sysdeps/x86_64/fpu/e_expl.c: New file.
1581         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
1582         * sysdeps/x86_64/fpu/e_log10l.S: New file.
1583         * sysdeps/x86_64/fpu/e_log2l.S: New file.
1584         * sysdeps/x86_64/fpu/e_logl.S: New file.
1585         * sysdeps/x86_64/fpu/e_powl.S: New file.
1586         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
1587         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
1588         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
1589         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
1590         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
1591         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
1592         * sysdeps/x86_64/fpu/fegetenv.c: New file.
1593         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
1594         * sysdeps/x86_64/fpu/fegetround.c: New file.
1595         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
1596         * sysdeps/x86_64/fpu/fesetenv.c: New file.
1597         * sysdeps/x86_64/fpu/fesetround.c: New file.
1598         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
1599         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
1600         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
1601         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
1602         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
1603         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
1604         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
1605         * sysdeps/x86_64/fpu/s_atanl.c: New file.
1606         * sysdeps/x86_64/fpu/s_cosl.S: New file.
1607         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
1608         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
1609         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
1610         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
1611         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
1612         * sysdeps/x86_64/fpu/s_logbl.c: New file.
1613         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
1614         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
1615         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
1616         * sysdeps/x86_64/fpu/s_rintl.c: New file.
1617         * sysdeps/x86_64/fpu/s_significandl.c: New file.
1618         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
1619         * sysdeps/x86_64/fpu/s_sinl.S: New file.
1620         * sysdeps/x86_64/fpu/s_tanl.S: New file.
1621         * sysdeps/x86_64/gmp-mparam.h: New file.
1622         * sysdeps/x86_64/hp-timing.c: New file.
1623         * sysdeps/x86_64/hp-timing.h: New file.
1624         * sysdeps/x86_64/htonl.S: New file.
1625         * sysdeps/x86_64/memusage.h: New file.
1626         * sysdeps/x86_64/setjmp.S: New file.
1627         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
1628         * sysdeps/x86_64/stackinfo.h: New file.
1629         * sysdeps/x86_64/sysdep.h: New file.
1630         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
1632         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
1633         L Moshier.
1635 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
1637         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
1638         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
1640 2001-09-18  Andreas Schwab  <schwab@suse.de>
1642         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
1643         list, now that l_scope is a pointer.
1645         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
1646         scope list.
1648 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
1650         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
1651         (elf_machine_rela_relative): Add a missing declaration.
1653 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
1655         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
1656         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
1657         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
1658         ldd-rewrite scripts.
1660 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
1662         * elf/ldd.bash.in: Update copyright message.
1664 2001-09-17  H.J. Lu  <hjl@gnu.org>
1666         * hurd/hurdmalloc.c (bcopy): Removed.
1667         (realloc): Replace bcopy with memcpy.
1668         * hurd/path-lookup.c (file_name_path_scan): Likewise.
1669         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
1670         * sunrpc/rpcinfo.c (pmapdump): Likewise.
1672         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
1673         (gethostbyaddr): Likewise.
1674         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
1676 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
1678         * sysdeps/gnu/eval.c: Removed.
1680 2001-09-18  Andreas Jaeger  <aj@suse.de>
1682         * sysdeps/i386/fpu/s_logbl.S: Move to ...
1683         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
1685         * sysdeps/i386/fpu/s_rintl.S: Move to ...
1686         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
1688         * sysdeps/i386/fpu/s_significandl.S: Move to ...
1689         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
1691 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
1693         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
1694         nrules value.
1696 2001-09-14  H.J. Lu  <hjl@gnu.org>
1698         * sysdeps/mips/fpu/libm-test-ulps: Updated.
1700 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
1702         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
1703         Patch by Florian La Roche <laroche@redhat.com>.
1705         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
1707         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
1708         ETHER_CRC_LEN.
1710 2001-09-14  Andreas Schwab  <schwab@suse.de>
1712         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
1713         Sumner <bls@sgi.com>.
1714         * posix/execlp.c: Likewise.
1716 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
1718         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
1719         is already found earlier in the search scope.
1721 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
1723         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
1724         filter.
1726 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
1728         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
1730 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
1732         * config.h.in: Enforce optimization to be used.
1733         * Makeconfig (preprocess-versions): Define ASSEMBLER.
1734         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
1735         * posix/Makefile (annexc-CFLAGS): Define to -O.
1736         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
1738 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
1740         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
1741         Patch by Stephan Kulow.
1743 2001-09-08  Ben Collins  <bcollins@debian.org>
1745         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
1746         usage of RESOLVE() (r_type, not reloc->r_type).
1748 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
1750         * elf/dl-object.c: Avoid allocating extra memory block for name.
1751         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
1752         allocated separately.
1753         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1755 2001-09-08  H.J. Lu  <hjl@gnu.org>
1757         * po/zh_TW.po: Fix a typo.
1759 2001-09-07  Tom Rix  <trix@redhat.com>
1761         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
1763 2001-08-26  Tom Rix  <trix@redhat.com>
1765         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
1766         command line options.
1767         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
1768         * sysdeps/unix/sysv/aix/start.c: Removed.
1769         * sysdeps/unix/sysv/aix/start-libc.c: New file.
1770         * sysdeps/unix/sysv/aix/init-first.c: New file.
1771         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
1773 2001-09-08  Ben Collins  <bcollins@debian.org>
1775         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
1776         * sysdeps/generic/dl-machine.h: Likewise.
1777         * sysdeps/hppa/dl-fptr.c: Likewise.
1778         * sysdeps/ia64/dl-fptr.c: Likewise.
1779         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
1780         * sysdeps/mips/dl-machine.h: Likewise.
1781         * sysdeps/mips/mips64/dl-machine.h: Likewise.
1782         * sysdeps/powerpc/dl-machine.c: Likewise.
1784 2001-09-07  Ben Collins  <bcollins@debian.org>
1786         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
1788         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
1790 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
1792         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
1793         dependencies if necessary.
1795         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
1796         loaded directly) determine length if l_initfini list by iterating
1797         over its elements.  Minor optimizations.
1798         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
1799         for dependency objects.
1800         If object was already loaded check whether any of the dependencies
1801         is already on the relocation dependency list.  If yes, remove the
1802         latter.  Minor optimizations.
1803         * elf/dl-lookup.c (add_dependency): Add check for self reference of
1804         maps here.  Search l_initfini list only if the object was loaded
1805         directly and not only as a dependency.
1806         (_dl_lookup_symbol): Add relocation dependency also if object
1807         is not in global scope.  Remove test for self-reference here.
1808         (_dl_lookup_versioned_symbol): Likewise.
1809         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
1810         element of first name record.
1811         * elf/loadtest.c: Add some more test to recognize early if an object
1812         wasn't unloaded.
1813         * elf/Makefile: Add rules to build and run reldep5.
1814         * elf/reldep5.c: New file.
1815         * elf/reldepmod5.c: New file.
1816         * elf/reldepmod6.c: New file.
1818         * elf/reldep2.c: Fix typo.
1820 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
1822         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
1823         elements.  Change l_scope to be a pointer only.
1824         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
1825         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
1826         here add searchlist of newly open file to the dependency's scope.
1827         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
1828         only searchlist from its scope.  Free own scope array if necessary.
1829         * elf/Makefile (tests): Add dblload and dblunload now.
1831 2001-09-06  Andreas Jaeger  <aj@suse.de>
1833         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
1834         Stephen L Moshier.
1836 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
1838         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
1839         they both fail.
1840         * elf/dblload.c: New file.
1841         * elf/dblloadmod1.c: New file.
1842         * elf/dblloadmod2.c: New file.
1843         * elf/dblloadmod3.c: New file.
1844         * elf/dblunload.c: New file.
1846 2001-09-04  Richard Henderson  <rth@redhat.com>
1848         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
1849         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
1851 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
1853         Correct very misleading message for error in failed runtime relocation.
1854         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
1855         place of the error.
1856         (_dl_signal_cerror): Likewise.
1857         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
1858         * elf/dl-close.c: Likewise.
1859         * elf/dl-deps.c: Likewise.
1860         * elf/dl-load.c: Likewise.
1861         * elf/dl-lookup.c: Likewise.
1862         * elf/dl-open.c: Likewise.
1863         * elf/dl-reloc.c: Likewise.
1864         * elf/dl-sym.c: Likewise.
1865         * elf/dl-version.c: Likewise.
1866         * sysdeps/generic/dl-sysdep.c: Likewise.
1868 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
1870         * iconv/strtab.c (strtabinit): Initialize null Strent.
1871         (newstring): Move len == 0 handling...
1872         (strtabadd): ...here.
1873         If len == 1, return null Strent.
1874         When inserting a suffix of an existing string, check if
1875         it is not equal to some suffix already recorded.
1876         Copy left and right members over if adding longer string.
1878 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
1880         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
1882         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
1883         (__syscall_gethostname): Add prototype.
1885 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
1887         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
1889 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
1891         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
1893 2001-08-27  Roland McGrath  <roland@frob.com>
1895         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
1896         short, copy that much into NAME anyway before returning error.
1898 2001-09-01  Richard Henderson  <rth@redhat.com>
1900         * sysdeps/alpha/elf/Dist: Remove file.
1901         * sysdeps/alpha/elf/Makefile: Remove file.
1902         * sysdeps/alpha/elf/crtbegin.S: Remove file.
1903         * sysdeps/alpha/elf/crtend.S: Remove file.
1904         * sysdeps/alpha/elf/initfini.c: New file.
1906 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
1908         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
1909         * iconv/tst-iconv3.c: Likewise.
1911 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
1913         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
1915 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
1917         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
1918         export it.
1919         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
1920         * iconv/iconv_prog.c (insert_cache): New function.
1921         (print_known_names): If cache is used call insert_cache to use the
1922         information from the cache [PR libc/2509].
1924 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
1926         * time/strptime.c (strptime_internal): Recognize 'l' format and
1927         handle it like 'I' for symmetry with strftime.
1929 2001-08-31  Richard Henderson  <rth@redhat.com>
1931         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
1932         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
1933         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
1934         (print_statistics): Make scalar unsigned long long.
1935         * sysdeps/alpha/hp-timing.h: New file.
1937 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
1939         * stdio-common/perror.c (perror): Save errno early, pass it
1940         down to perror_internal.
1941         (perror_internal): Add errnum argument.
1943 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
1945         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
1946         Don't add old memory content for R_ALPHA_REFQUAD.
1948 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
1950         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
1951         memory correctly.
1953         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
1954         instead of open, __close instead of close, __getpagesize instead
1955         of getpagesize.
1957         * string/argz-stringify.c (__argz_stringify): Use __strnlen
1958         instead of strnlen.
1959         * include/string.h (strndupa): Redefine here to use __strnlen
1960         instead of strnlen.
1961         * string/strndup.c (__strndup): Use __strnlen not strnlen.
1963         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
1964         connected).
1966 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
1968         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
1969         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
1970         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
1971         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
1972         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
1973         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
1974         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
1976 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
1978         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
1980 2001-08-30  Andreas Jaeger  <aj@suse.de>
1982         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
1983         contributed Stephen L Moshier.
1985 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
1987         * sunrpc/etc.rpc (sgi_fam): Add.
1989 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
1991         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
1993 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
1995         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
1996         first is from a previous call.
1997         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
1999 2001-08-29  Andreas Schwab  <schwab@suse.de>
2001         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
2003 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2005         * config.make.in (INSTALL_SCRIPT): Define.
2006         * Makeconfig (INSTALL_SCRIPT): Define.
2007         * Makerules (do-install-script): New macro to install scripts using
2008         INSTALL_SCRIPT.
2009         (install-bin-script): New rule to install scripts with
2010         do-install-script.
2011         (install-bin-script-nosubdir): New rule.
2012         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
2013         (distinfo-vars): Add $(install-bin-script).
2014         * Rules (others): Likewise.
2015         * Makefile (glibcbug): Install with install-bin-script.
2016         * debug/Makefile (xtrace): Likewise.
2017         (catchsegv): Likewise.
2018         * elf/Makefile (ldd): Likewise.
2019         * malloc/Makefile (mtrace): Likewise.
2020         * timezone/Makefile (tzselect): Likewise.
2022 2001-08-29  H.J. Lu  <hjl@gnu.org>
2024         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
2025         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
2026         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
2028 2001-08-29  Andreas Schwab  <schwab@suse.de>
2030         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
2032 2001-08-28  H.J. Lu  <hjl@gnu.org>
2034         * Makeconfig (combreloc-LDFLAGS): New variable.
2035         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
2036         * config.make.in (have-z-combreloc): New variable.
2037         * configure.in: Substitute libc_cv_z_combreloc.
2039 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
2041         * po/sv.po: Update from translation team.
2042         * po/fr.po: Likewise.
2043         * po/da.po: Likewise.
2045 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2047         * Makerules: Fix a typo: MD% -> MD5.
2049 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
2051         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
2052         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
2054 2001-08-28  Andreas Jaeger  <aj@suse.de>
2056         * manual/libc-texinfo.sh: Add entry about free manuals.
2058         * manual/contrib.texi (Contributors): Fix cross reference.
2060         * manual/libc.texinfo (Copying): Include freemanuals.
2062         * manual/Makefile (appendices): Add freemanuals.
2064         * manual/freemanuals.texi: New file.
2065         Patch by Brian Youmans <3diff@gnu.org>.
2067         * manual/libm-err-tab.pl: Pretty print more platforms, print a
2068         smaller table.
2070         * manual/math.texi (Errors in Math Functions): Fix grammar, start
2071         table on separate page.
2072         Patch by Brian Youmans <3diff@gnu.org>.
2074 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
2076         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
2077         the connection went down after we first used it try to connect
2078         again and resend the message before printing to the console.
2079         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
2081 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
2083         * string/tst-strlen.c (main): Test strnlen (, -1) too.
2084         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
2085         bit set.
2087 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
2089         * iconv/strtab.c (searchstring): Use correct length for comparison.
2090         (strtabadd): Account total size correct if new string has old string as
2091         substring.
2093 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
2095         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
2097 2001-08-27  Andreas Jaeger  <aj@suse.de>
2099         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
2101         * math/libm-test.inc (j0_test): Add extra tests.
2102         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
2103         not x, in Hankel approximation.
2104         Patches by Stephen L Moshier.
2106 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
2108         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
2109         link_map.
2111         * configure.in: Fix test for .rela.dyn section.
2113         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
2115 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
2117         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
2118         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
2119         Pass type_class to _dl_lookup_*.
2120         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
2121         Pass around just type_class instead of noexec, noplt pair.
2122         (_dl_lookup_versioned_symbol): Likewise.
2123         (_dl_lookup_symbol_skip): Pass around just type_class instead of
2124         noexec, noplt pair.
2125         (_dl_lookup_versioned_symbol_skip): Likewise.
2126         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
2127         * elf/do-lookup.h (do_lookup): Likewise.
2128         * include/link.h (struct link_map): Replace noexec and noplt fields
2129         in l_lookup_cache with type_class field.
2130         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
2131         ELF_RTYPE_CLASS_COPY): Define.
2132         Adjust prototypes for _dl_lookup_symbol and
2133         _dl_lookup_versioned_symbol.
2134         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
2135         elf_machine_lookup_noexec_p): Remove.
2136         (elf_machine_type_class): Define.
2137         * sysdeps/arm/dl-machine.h: Likewise.
2138         * sysdeps/hppa/dl-machine.h: Likewise.
2139         * sysdeps/cris/dl-machine.h: Likewise.
2140         * sysdeps/i386/dl-machine.h: Likewise.
2141         * sysdeps/ia64/dl-machine.h: Likewise.
2142         * sysdeps/m68k/dl-machine.h: Likewise.
2143         * sysdeps/mips/mips64/dl-machine.h: Likewise.
2144         * sysdeps/mips/dl-machine.h: Likewise.
2145         * sysdeps/powerpc/dl-machine.h: Likewise.
2146         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2147         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2148         * sysdeps/sh/dl-machine.h: Likewise.
2149         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2150         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2152 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
2154         * manual/message.texi (Advanced gettext functions): Change
2155         description of plural forms for Slovak.
2156         Reported by Marcel Telka <marcel@telka.sk>.
2158         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
2159         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
2161 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
2163         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
2164         typo.  Patch by Florian La Roche <laroche@redhat.com>.
2166 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
2168         * include/link.h (struct link_map): Add l_lookup_cache element.
2169         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
2170         (RESOLVE_MAP): Likewise.
2171         (_dl_relocate_object): Remove cache initialization.
2172         * elf/dl-lookup.c: Rip out cache handling code.
2173         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
2174         declarations.
2176         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
2177         remove some __builtin_expect.
2178         (_dl_lookup_versioned_symbol): Likewise.
2180         * config.h.in: Add HAVE_Z_COMBRELOC.
2181         * configure.in: Add test for -z combreloc.
2183         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
2184         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
2185         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
2186         case to almost no code.
2188 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
2190         * po/tr.po: Update from translation team.
2192 2001-08-24  Andreas Jaeger  <aj@suse.de>
2194         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
2195         make clean works.
2197 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2199         * elf/rtld.c (print_statistics): Printf % after percent values.
2200         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
2202         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
2203         don't have to compute the hash value and initialize current_value.
2204         Move reference_name variable to where it is needed.
2205         (_dl_lookup_versioned_symbol): Likewise.
2207 2001-08-24  Roland McGrath  <roland@frob.com>
2209         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
2210         Just test that strerror returns non-null for a few errno codes.
2212 2001-08-23  Roland McGrath  <roland@frob.com>
2214         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
2215         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
2217         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
2219         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
2220         __mach_reply_port.
2222 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2224         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
2225         returns NULL.
2227         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
2228         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
2229         doesn't do it.
2230         * elf/rtld.c: Include <sys/param.h>.
2231         * elf/dl-reloc.c: Likewise.
2233 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2235         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
2236         empty to prevent junk from being generated.
2237         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
2239 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
2241         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
2242         records.  Rename endrel to relative, initialize it to r, and use it
2243         in elf_machine_rel_relative calls.  Point r after relative relocs.
2245 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2247         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
2248         of R_386_NONE.
2250 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
2252         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
2253         necessary.  Undefine newly defined macros at the end.
2254         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
2255         Rename from elf_machine_rel_relative.
2256         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
2257         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
2258         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
2259         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
2260         Likewise.
2261         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
2262         Likewise.
2263         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
2264         Fix argument types.
2265         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
2266         Fix argument types.
2267         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
2268         Likewise.  Fix argument types.
2269         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
2270         Likewise.  Fix argument types.
2271         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
2272         Fix argument types.
2273         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
2274         ElfW(Rel) in argument.
2275         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
2276         function.
2278 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
2280         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
2282 2001-08-24  Andreas Jaeger  <aj@suse.de>
2284         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
2285         Stephen L Moshier <moshier@mediaone.net>.
2287 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2289         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
2290         first if RELCOUNT is set.
2292         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
2293         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
2294         elf_machine_rel_relative.
2295         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
2296         Minor optimizations.
2297         * sysdeps/arm/dl-machine.h: Likewise.
2298         * sysdeps/cris/dl-machine.h: Likewise.
2299         * sysdeps/hppa/dl-machine.h: Likewise.
2300         * sysdeps/i386/dl-machine.h: Likewise.
2301         * sysdeps/ia64/dl-machine.h: Likewise.
2302         * sysdeps/m68k/dl-machine.h: Likewise.
2303         * sysdeps/mips/dl-machine.h: Likewise.
2304         * sysdeps/powerpc/dl-machine.h: Likewise.
2305         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2306         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2307         * sysdeps/sh/dl-machine.h: Likewise.
2308         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2309         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2311 2001-08-23  Roland McGrath  <roland@frob.com>
2313         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
2315         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
2316         sysdeps/mach version.  Implement counting ("recursive") mutexes
2317         on top of cthreads mutexes.
2318         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
2320         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
2321         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
2322         (__libc_cleanup_region_start, __libc_cleanup_region_end,
2323         __libc_clean_end): Define these to call the cleanup function after
2324         normal exit when they're supposed to.
2326         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
2327         Take new first arg DOIT, a boolean saying whether to really install
2328         any cleanup handler.
2329         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
2330         (__libc_cleanup_end): Likewise.
2331         * sysdeps/generic/bits/libc-lock.h: Same changes.
2332         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
2333         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
2334         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
2335         Likewise.
2336         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
2337         * sysdeps/generic/bits/stdio-lock.h
2338         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
2340 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2342         * elf/ldconfig.c (search_dir): Remove stale symlinks.
2344 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2346         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
2347         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
2348         lookups in cache.
2349         (_dl_lookup_versioned_symbol): Likewise.
2350         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
2351         relocation lookup.
2352         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
2353         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
2354         (lookup_cache, lookup_cache_versioned): Add declarations.
2356 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
2358         * stdlib/tst-random.c (main): Swap parameters in fail call.
2359         Patch by Pete Bevin <pete@petebevin.com>.
2361 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2363         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
2365 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
2367         * malloc/obstack.c: Indent preprocessor directives.
2368         Patch by Jim Meyering <meyering@ascend.com>.
2370         * po/ja.po: Update from translation team.
2372 2001-08-23  Roland McGrath  <roland@frob.com>
2374         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
2376         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
2377         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
2379 2001-08-22  Roland McGrath  <roland@frob.com>
2381         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
2382         __libc_lock_define_recursive.
2383         * elf/dl-open.c: Don't declare it here any more.
2384         * elf/dl-close.c: Likewise.
2385         * elf/dl-lookup.c: Likewise.
2386         * elf/dl-iteratephdr.c: Likewise.
2387         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
2388         __libc_lock_unlock_recursive.
2389         * elf/dl-close.c (_dl_close): Likewise
2390         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
2391         * elf/dl-open.c (_dl_open): Likewise
2393         * sysdeps/generic/bits/libc-lock.h
2394         (__libc_lock_define_recursive): New macro.
2395         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
2396         (_IO_lock_lock): Use __libc_lock_lock_recursive.
2397         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
2399         * conform/conformtest.pl (checknamespace): Sort the output list.
2401         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
2402         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
2403         definitions conditional on [__USE_XOPEN].
2405         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
2406         these unconditionally, not only use [__USE_BSD], so as to match
2407         the sysdeps/unix/sysv/linux files.
2409 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
2411         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
2412         avoid warnings.
2414         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
2415         DL_LOOKUP_ADDRESS.
2417 2001-08-22  Roland McGrath  <roland@frob.com>
2419         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
2420         conditionalization of sa_handler/sa_sigaction member types to
2421         match the sysdeps/unix/sysv/linux file.
2423 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
2425         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
2426         symbol sizes a bit better.
2428         * sysdeps/ia64/strncpy.S: Complete rewrite.
2429         Contributed by Jakub Jelinek <jakub@redhat.com>.
2431         * string/stratcliff.c (main): Add strncpy test.
2433 2001-08-22  Roland McGrath  <roland@frob.com>
2435         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
2436         and don't declare unsetenv or _environ directly.
2437         (unsetenv): Return int, not void.  Use __environ instead of _environ.
2439 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
2441         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
2442         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
2443         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
2444         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
2445         test for cmsg struct size.
2447 2001-04-23  Paul Eggert  <eggert@twinsun.com>
2449         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
2450         Rename __argc to ___argc in prototypes to avoid compatibility
2451         problems with systems that reserve the identifier "__argc".
2452         Similarly for __argv.
2454 2001-08-21  Roland McGrath  <roland@frob.com>
2456         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
2458         * mach/Makefile (tests): Removed.
2459         * mach/hello.c: File removed.
2461 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
2463         * po/sv.po: Update from translation team.
2465         * stdio-common/vfscanf.c: Fix handling of %l[].
2466         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
2468         * libio/Makefile (tests): Add tst-sscanf.
2469         * libio/tst-sscanf.c: New file.
2471         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
2472         * malloc/mtrace.c (tr_where): dli_sname always points to a
2473         non-empty string if != NULL.
2474         Reported by Tim Janik <timj@gtk.org>.
2476 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
2478         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
2479         buf.  Free resources on failure.
2480         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
2481         (makefd_xprt): Likewise.
2482         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
2483         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
2484         * sunrpc/auth_unix.c (authunix_create): Likewise.
2486 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
2488         * string/strnlen.c: Remove.
2489         * sysdeps/generic/strnlen.c: New file.
2490         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
2492 2001-08-21  Roland McGrath  <roland@frob.com>
2494         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
2495         as a macro, not an extern inline function.
2497         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
2498         * Versions.def (libc): Add GLIBC_2.2.5 set.
2499         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
2500         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
2502 2001-08-20  Roland McGrath  <roland@frob.com>
2504         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
2505         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
2507 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
2509         * string/bits/string2.h: Remove strnlen optimization here.
2510         * sysdeps/i386/i486/bits/string.h: Add it here.
2512 2001-08-21  Wolfram Gloger  <wg@malloc.de>
2514         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
2516 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
2518         * po/gl.po: Update from translation team.
2520 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
2522         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
2523         * misc/err.c (convert_and_print): Likewise.
2525         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
2526         function calls.
2528 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2530         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
2531         change of the gregset_t type.
2532         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
2534 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2536         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
2538 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
2540         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
2542         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
2544 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
2546         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
2547         before calling the cthreads initialization code.
2549 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
2551         * argp/argp-help.c: Fix two problems introduced in last change.
2553         * include/dirent.h: Include <dirstream.h> first.
2555 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
2557         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
2559         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
2560         * sunrpc/xdr_rec.c: Likewise.
2561         * sunrpc/xdr_mem.c: Likewise.
2562         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
2563         * sunrpc/rpc_cmsg.c: Likewise.
2564         * sunrpc/getrpcport.c (getrpcport): Likewise.
2565         * sunrpc/clnt_simp.c (callrpc): Likewise.
2566         * sunrpc/clnt_gen.c (clnt_create): Likewise.
2567         * string/envz.c: Likewise.
2569         * po/ko.po: Update from translation team.
2571         * argp/argp-help.c: Handle wide oriented stderr stream.
2573 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
2575         * sysdeps/generic/strtol.c: Little optimizations.  Add some
2576         __builtin_expect.
2578         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
2580         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
2581         * wcsmbs/wcwidth.c (wcwdith): Likewise.
2582         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
2584         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
2586         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
2588         * time/time.h (struct timespec): Use __time_t for tv_sec element.
2590         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
2591         wchar_t for function declarations and defintions.
2593         * misc/sys/select.h: Define __need_time_t before including <time.h>.
2594         Define suseconds_t if it hasn't happened yet.
2596         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
2598         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
2600         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
2601         <stddef.h>.
2603         * conform/data/stddef.h-data: Remove wint_t.
2605         * conform/conformtest.pl: Change namespace test to take #undef
2606         lines into account.
2608         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
2610         * conform/data/sys/socket.h-data: Add sockatmark.
2612 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
2614         * io/fts.c: Update from recent BSD source.
2616 2001-08-17  Roland McGrath  <roland@frob.com>
2618         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
2619         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
2620         Likewise.
2622 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
2624         * locale/duplocale.c (__duplocale): Also initialize the special
2625         __ctype_* elements.
2627         * conform/data/netdb.h-data: Adjust gai_strerror return type.
2629 2001-08-17  Andreas Jaeger  <aj@suse.de>
2631         * misc/getpass.c: Include wchar.h for prototypes.
2632         * malloc/obstack.c: Likewise.
2634 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
2636         * sunrpc/svc_simple.c (universal): Use __write instead of write.
2638         * wcsmbs/wcscoll.c: Also define __wcscoll.
2639         * include/wchar.h: Declare __wcscoll.
2641         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
2642         * libio/vwprintf.c: Likewise.
2643         * libio/wprintf.c: Likewise.
2645         * iconv/gconv_cache.c: Use __munmap instead of munmap.
2647 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
2649         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
2650         instead of mbrtowc.
2651         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
2652         wcslen, and __wcscoll instead of wcscoll.
2654         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
2656         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
2657         __getuid instead of getuid.
2659         * stdio-common/perror.c (perror): Use __close instead of close.
2660         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
2661         * libio/freopen.c (freopen): Likewise.
2662         * libio/freopen64.c (freopen64): Likewise.
2664         * libio/tst-ungetwc2.c (main): Define str const.
2666         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
2667         * libio/fwprintf.c: Also define __fwprintf.
2668         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
2669         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
2670         * assert/assert-perr.c: Likewise.
2671         * assert/assert.c: Likewise.
2672         * gmon/gmon.c: Likewise.
2673         * inet/rcmd.c: Likewise.
2674         * malloc/obstack.c: Likewise.
2675         * misc/err.c: Likewise.
2676         * misc/error.c: Likewise.
2677         * misc/getpass.c: Likewise.
2678         * posix/getopt.c: Likewise.
2679         * resolv/res_hconf.c: Likewise.
2680         * stdio-common/perror.c: Likewise.
2681         * stdio-common/psignal.c: Likewise.
2682         * stdlib/fmtmsg.c: Likewise.
2683         * sunrpc/auth_unix.c: Likewise.
2684         * sunrpc/clnt_perr.c: Likewise.
2685         * sunrpc/clnt_tcp.c: Likewise.
2686         * sunrpc/clnt_udp.c: Likewise.
2687         * sunrpc/clnt_unix.c: Likewise.
2688         * sunrpc/svc_simple.c: Likewise.
2689         * sunrpc/svc_tcp.c: Likewise.
2690         * sunrpc/svc_udp.c: Likewise.
2691         * sunrpc/svc_unix.c: Likewise.
2692         * sunrpc/xdr.c: Likewise.
2693         * sunrpc/xdr_array.c: Likewise.
2694         * sunrpc/xdr_rec.c: Likewise.
2695         * sunrpc/xdr_ref.c: Likewise.
2696         * sysdeps/generic/wordexp.c: Likewise.
2698         * po/it.po: Update from translation team.
2700         * misc/err.c: Handle wide oriented stderr stream.
2702 2001-08-14  Tom Rix  <trix@redhat.com>
2704         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
2705         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
2707 2001-08-13  Tom Rix  <trix@redhat.com>
2709         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
2710         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
2711         and __intptr_t.
2713 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2715         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
2716         Store the access registers to the ucontext structure.
2717         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
2718         Likewise.
2720         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
2721         Load the access registers from the ucontext structure.
2722         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
2723         Likewise.
2725         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
2726         offsets to the new ucontext layout.
2727         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
2729         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
2730         of the ucontext structure.
2731         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
2733 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
2735         * misc/error.c (error): Handle wide oriented stderr stream correctly.
2736         (error_at_line): Likewise.
2738         * stdio-common/perror.c (perror): Implement according to standard.
2739         The stream orientation must not be changed if the stream was not
2740         oriented before the call.
2741         * stdio-common/Makefile (tests): Add tst-perror.
2742         * stdio-common/tst-perror.c: New file.
2745 See ChangeLog.12 for earlier changes.