Update.
[glibc.git] / ChangeLog
blob4baf6bd1cc86bd9d0f561e0faafedd8c772c558b
1 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
3         * manual/llio.texi (aio_fsync): Fix a typo.
4         Patch by Tammy Fox <tfox@redhat.com>.
6 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
8         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
9         stack bias from child stack pointer before passing it to clone syscall.
11 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
13         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
14         _SC_TZNAME_MAX.
15         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
16         Reported by Thorsten Kukuk <kukuk@suse.de>.
18         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
19         add some casts.
21         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
23 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
25         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
26         conforming: return EBADF if file descriptor is invalid and EINVAL
27         if file descriptor is no valid tty.
28         * login/tst-grantpt.c: New file.
29         * login/Makefile (tests): Add tst-grantpt.
31 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
33         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
34         different than implemented in last patch.
35         * io/bug-ftw3.c: Adjust test for changed handling of
36         inaccessibility of toplevel dir.
38 2001-12-16  Roland McGrath  <roland@frob.com>
40         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
41         * grp/initgroups.c (internal_getgrouplist): Likewise.
43         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
44         `default:' to silence new GCC warning.
45         Rewrite cast of lvalue to silence new GCC warning.
47         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
49         * sysdeps/mach/hurd/spawni.c: New file, by me with a
50         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
52 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
54         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
55         Patch by Stephen R. van den Berg.
57         * crypt/md5.h: Define md5_uintptr.
59 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
61         * libio/tst_swprintf.c (main): Add test for string argument with
62         zero precision.
63         * stdio-common/Makefile (tests): Add tst-sprintf.
64         * stdio-common/tst-sprintf.c: New file.
66 2001-12-13  Andreas Schwab  <schwab@suse.de>
68         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
69         zero precision with wide character string format.
71 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
73         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
74         but have a user supplied buffer, return the empty buffer, not NULL.
76 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
78         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
79         Patch by Eric Sharkey <sharkey@netrics.com>.
81         * crypt/md5test.c (main): Add test for multiple calls to
82         __md5_process_bytes to itererate over input string.
84 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
86         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
87         from __nis_findfastest.  Take timeout value from parameter.
88         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
89         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
90         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
92 2001-12-12  Andreas Jaeger  <aj@suse.de>
94         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
95         combreloc test so that it works in this case.
97         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
99 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
101         * sysdeps/sh/Makefile: New file.
102         * sysdeps/sh/_mcount.S: New file.
103         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
104         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
106 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
108         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
109         limitation [PR libc/2564].
111 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
113         * elf/Makefile (dl-routines): Add conflict.
114         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
115         (ld.so): Add _begin local symbol.
116         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
117         Define.
118         * elf/dl-deps.c (_dl_build_local_scope): New.
119         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
120         of all libraries.
121         * elf/do-rel.h (VALIDX): Define.
122         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
123         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
124         can be skipped.
125         * elf/dl-conflict.c: New file.
126         * elf/dl-lookup.c (_dl_debug_bindings): New.
127         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
128         non-NULL.
129         (_dl_lookup_symbol_skip): Likewise.
130         (_dl_lookup_versioned_symbol): Likewise.
131         (_dl_lookup_versioned_symbol_skip): Likewise.
132         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
133         define to ElfW(Rel).
134         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
135         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
136         ranges.
137         Don't adjust address dynamic tags if l_addr is 0.
138         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
139         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
140         (VALIDX, ADDRIDX): Define.
141         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
142         (dl_main): Print library list for LD_TRACE_PRELINKING.
143         If prelinking information can be used, skip relocating libraries and
144         call _dl_resolve_conflicts instead.
145         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
146         * elf/dl-load.c (_dl_map_object): Don't create fake libs
147         if LD_TRACE_PRELINKING.
148         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
149         + DT_ADDRNUM.
150         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
151         (DL_DEBUG_PRELINK): Define.
152         (_dl_resolve_conflicts): Add prototype.
154         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
155         .plt for prelinked libraries where prelinking info cannot be used.
156         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
157         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
158         * sysdeps/arm/bits/link.h: New file.
159         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
160         content of .got[1].
161         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
162         (ELF_MACHINE_PLT_REL): Define.
163         (elf_machine_rela, elf_machine_rela_relative): New.
164         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
165         of adjusting it if prelinked and prelinking cannot be used.
166         * sysdeps/i386/bits/link.h: New file.
167         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
168         content of .got[1].
169         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
170         (ELF_MACHINE_PLT_REL): Define.
171         (elf_machine_rela, elf_machine_rela_relative): New.
172         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
173         of adjusting it if prelinked and prelinking cannot be used.
174         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
175         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
176         to find out map for R_PPC_JMP_SLOT relocs.
177         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
178         (OPCODE_BA): Define.
179         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
180         libraries where prelinking info cannot be used.
181         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
182         (elf_machine_fixup_plt): Call sparc_fixup_plt.
183         (elf_machine_rela): Set value to 0 if relocating conflicts.
184         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
185         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
186         (sparc64_fixup_plt): Fix a typo.
187         (elf_machine_rela): Set value to 0 if relocating conflicts.
188         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
189         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
190         libraries where prelinking info cannot be used.
191         * sysdeps/sh/bits/link.h: New file.
192         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
193         content of .got[1].
194         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
195         of adjusting it if prelinked and prelinking cannot be used.
196         * sysdeps/s390/s390-32/bits/link.h: New file.
197         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
198         Save original content of .got[1].
199         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
200         of adjusting it if prelinked and prelinking cannot be used.
201         * sysdeps/s390/s390-64/bits/link.h: New file.
202         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
203         Save original content of .got[1].
204         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
205         of adjusting it if prelinked and prelinking cannot be used.
206         * sysdeps/x86_64/bits/link.h: New file.
207         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
208         Save original content of .got[1].
209         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
210         of adjusting it if prelinked and prelinking cannot be used.
212 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
214         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
215         where appropriate instead of numbers.  Little optimizations.
217 2001-12-10  Roland McGrath  <roland@frob.com>
219         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
220         set it.
222         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
223         set to GLIBC_2.2.5, not GLIBC_2.2.4.
225         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
226         Fix conditionals so this is set by default for stdio and not for libio.
227         * sysdeps/mach/hurd/configure: Regenerated.
229 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
231         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
233 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
235         * io/Makefile (tests): Add bug-ftw3.
236         * io/bug-ftw3.c: New file.
238         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
239         matches and GLOB_NOCHECK is set.
240         * posix/globtest.sh: Correct expected result for NOCHECK test.
242         * po/ca.po: Update from translation team.
244 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
246         Implement transliteration of characters in strings of the locale
247         definitions.
248         * locale/programs/linereader.c: Adjust for additional parameter to
249         lr_token.
250         (get_string): If character <Uxxxx> is not found try to transliterate
251         it.
252         * locale/programs/ld-ctype.c: Adjust for additional parameter to
253         lr_token.  Add const to charmap parameter of all functions.
254         (find_translit, find_translit2): New functions.
255         * locale/programs/charmap.c: Adjust for additional parameter to
256         lr_token.
257         * locale/programs/repertoire.c: Likewise.
258         * locale/programs/linereader.h: Likewise.
259         * locale/programs/ld-address.c: Likewise.  Add const to charmap
260         parameter of all functions.
261         * locale/programs/ld-collate.c: Likewise.
262         * locale/programs/ld-identification.c: Likewise.
263         * locale/programs/ld-measurement.c: Likewise.
264         * locale/programs/ld-messages.c: Likewise.
265         * locale/programs/ld-monetary.c: Likewise.
266         * locale/programs/ld-name.c: Likewise.
267         * locale/programs/ld-numeric.c: Likewise.
268         * locale/programs/ld-paper.c: Likewise.
269         * locale/programs/ld-paper.c: Likewise.
270         * locale/programs/ld-telephone.c: Likewise.
271         * locale/programs/ld-time.c: Likewise.
272         * locale/programs/locfile.c: Likewise.
273         * locale/programs/localedef.c: Likewise.
274         * locale/programs/localedef.h: Likewise.
275         * locale/programs/locfile.h: Likewise.  Add declaration for
276         find_translit.
277         * locale/programs/simple-hash.c: Add const to first parameter of
278         find_entry, iterate_table, and lookup.
279         * locale/programs/simple-hash.h: Likewise.
280         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
281         instead.
282         * include/locale.h: Define __LC_LAST.
283         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
285 2001-12-07  Geoff Keating  <geoffk@redhat.com>
287         * sysdeps/powerpc/Dist: Update for recent FP changes.
288         * sysdeps/powerpc/fpu/Dist: Likewise.
290 2001-12-07  Andreas Schwab  <schwab@suse.de>
292         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
294 2001-12-06  Geoff Keating  <geoffk@redhat.com>
296         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
297         save/restore functions here.
298         (libm-support): Don't define these functions here.
299         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
300         functions here.
301         * sysdeps/powerpc/fe_nomask.c: Move to...
302         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
303         * sysdeps/powerpc/fprrest.S: Move to...
304         * sysdeps/powerpc/fpu/fprrest.S: ... here.
305         * sysdeps/powerpc/fprsave.S: Move to...
306         * sysdeps/powerpc/fpu/fprsave.S: ... here.
308 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
310         * sysdeps/unix/sysv/linux/opensock.c: New file.
312 2001-12-06  Geoff Keating  <geoffk@redhat.com>
314         * config.make.in (with-fp): Define from configure.
315         * configure.in: Substitute with_fp.
316         * configure: Regenerate.
317         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
318         specified, and don't change FPU environment.
320 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
322         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
323         * assert/assert.c: Check result of __asprintf call and don't use
324         string if it failed.
325         * assert/assert-perr.c: Likewise.
326         * inet/rcmd.c: Likewise.
327         * locale/programs/localedef.c (main): Check result of
328         construct_output_path and exit if it failed.
329         (construct_output_path): Check result of asprintf and mkdir calls and
330         fail if they failed.
331         * posix/getopt.c: Check result of __asprintf calls and fail if
332         they failed.
333         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
335 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
337         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
338         patch.
339         * sysdeps/generic/strncase.c: Likewise.
340         * string/tester.c: Add tests for strcasecmp and strncasecmp.
342 2001-12-05  Geoff Keating  <geoffk@redhat.com>
344         * scripts/cpp: Test the exit status from 'type', not 'awk'.
346         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
347         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
348         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
349         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
350         * sysdeps/powerpc/fclrexcpt.c: Move to...
351         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
352         * sysdeps/powerpc/fpu_control.h: Move to...
353         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
355 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
357         * iconvdata/ibm1129.h: Remove duplicate mappings.
358         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
359         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
360         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
362         * timezone/zic.c: Fix handling of turnaround times.
363         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
365 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
367         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
368         overflow problem.
370 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
372         * posix/regex.c: For use outside glibc defined bounded pointer
373         macros here.  Patch by Jim Meyering <jim@meyering.net>.
375         * iconvdata/Makefile (modules): Add TCVN5712-1.
376         * iconvdata/TESTS: Add TCVN5712-1.
377         * iconvdata/gconv-modules: Likewise.
378         * iconvdata/tcvn5712-1.c: New file.
379         * iconvdata/testdata/TCVN-5712: New file.
380         * iconvdata/testdata/TCVN-5712..UTF8: New file.
382 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
384         * iconvdata/cp1258.c: Optimize conversion from UCS4.
386 2001-12-02  Roland McGrath  <roland@frob.com>
388         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
390         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
391         Reported by Jeff Bailey <jbailey@nisa.net>.
393         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
394         Reported by Jeff Bailey <jbailey@nisa.net>.
396         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
397         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
398         Reported by Jeff Bailey <jbailey@nisa.net>.
400 2001-12-01  Roland McGrath  <roland@frob.com>
402         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
403         missing backslash in test arguments.
404         * sysdeps/mach/hurd/configure: Regenerated.
406 2001-11-26  Roland McGrath  <roland@frob.com>
408         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
409         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
411 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
413         * iconvdata/Makefile (modules): Add ARMSCII-8.
414         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
415         * iconvdata/armscii-8.c: New file.
417 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
419         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
420         don't match, fix {{a,b},c} globbing, clean up.
421         Patch by Flavio Veloso <flaviovs@magnux.com>.
422         * posix/globtest.sh: Add new tests.
424 2001-11-29  Andreas Jaeger  <aj@suse.de>
426         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
427         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
429         * sysdeps/generic/abort.c: Include libioP.h for
430         _IO_flush_all_lockp prototype.
432 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
434         * posix/regex.h: Define __restrict_arr correctly.
436 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
438         * iconvdata/ibm1163.c: New file.
439         * iconvdata/ibm1163.h: New file.
440         * iconvdata/ibm1164.c: New file.
441         * iconvdata/ibm1164.h: New file.
442         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
443         * iconvdata/Makefile: Likewise.
444         * iconvdata/testdata/IBM1163: New file.
445         * iconvdata/testdata/IBM1163..UTF8: New file.
446         * iconvdata/testdata/IBM1164: New file.
447         * iconvdata/testdata/IBM1164..UTF8: New file.
448         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
450         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
451         * iconvdata/ibm1124.h: Likewise.
452         * iconvdata/ibm1132.h: Likewise.
453         * iconvdata/ibm1133.h: Likewise.
454         * iconvdata/ibm1160.h: Likewise.
455         * iconvdata/ibm1161.h: Likewise.
456         * iconvdata/ibm1162.h: Likewise.
457         * iconvdata/ibm856.h: Likewise.
458         * iconvdata/ibm922.h: Likewise.
459         * iconvdata/ibm930.h: Likewise.
460         * iconvdata/ibm932.h: Likewise.
461         * iconvdata/ibm933.h: Likewise.
462         * iconvdata/ibm935.h: Likewise.
463         * iconvdata/ibm937.h: Likewise.
464         * iconvdata/ibm939.h: Likewise.
465         * iconvdata/ibm943.h: Likewise.
466         * iconvdata/ibm930.c: Pretty printing.
467         * iconvdata/ibm937.c: Avoid access accross array boundary.
469         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
470         the current locale's codeset.
471         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
472         empty input string.
473         * iconv/iconv_prog.c: Pass empty strings as default value for to-
474         and from-charset.  Don't determine locale's charset here.
476         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
477         as the old _IO_flush_all but lock only if parameter is nonzero.
478         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
479         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
480         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
481         if libio is used [PR libc/2575].
483 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
485         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
486         __signbitl): Only define for ISO C99.
488 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
490         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
491         herrnop to NETDB_INTERNAL if we run out of buffer space.
493 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
495         * nss/nss_files/files-XXX.c (internal_getent): Correct input
496         overflow test for platforms with signed char.
497         Reported by Andrew Haley <aph@cambridge.redhat.com>.
499 2001-11-28  Bruno Haible  <bruno@clisp.org>
501         * locale/programs/simple-hash.c (lookup_2): Remove function.
502         (insert_entry_2): Call lookup instead of lookup_2.
504 2001-03-04  Bruno Haible  <bruno@clisp.org>
506         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
508 2001-10-31  Bruno Haible  <bruno@clisp.org>
510         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
512 2001-03-21  Bruno Haible  <bruno@clisp.org>
514         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
515         chokes on empty macro arguments.
516         * intl/plural.y: Add #pragma for alloca on AIX 3.
518 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
520         * intl/dcigettext.c (guess_category_value): Only implement for
521         glibc.  Otherwise rely on function _nl_locale_name which isn't
522         present in the glibc sources.
524 2001-09-24  Bruno Haible  <bruno@clisp.org>
526         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
527         transliteration when building on a glibc system but outside glibc.
529 2001-09-22  Bruno Haible  <bruno@clisp.org>
531         * intl/plural-eval.c: New file, extracted from dcigettext.c.
532         * intl/dcigettext.c (plural_eval): Remove function, moved to
533         intl/plural-eval.c.
534         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
535         Include plural-eval.c.
537 2001-09-22  Bruno Haible  <bruno@clisp.org>
539         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
540         don't start with a digit; nplurals must be positive.
542 2001-09-02  Bruno Haible  <bruno@clisp.org>
544         * intl/plural-exp.h: New file, extracted from gettextP.h.
545         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
546         * intl/gettextP.h (struct expression, struct parse_args,
547         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
548         * intl/loadmsgcat.c: Include plural-exp.h.
549         (PLURAL_PARSE): Move macro to plural-exp.h.
550         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
551         plural-exp.c.
552         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
553         EXTRACT_PLURAL_EXPRESSION.
554         (_nl_unload_domain): Update.
555         * intl/dcigettext.c: Include plural-exp.h.
556         * intl/plural.y: Include plural-exp.h, not gettextP.h.
557         (FREE_EXPRESSION): Move macro to plural-exp.h.
558         * intl/Makefile (routines): Add plural-exp.
559         (distribute): Add plural-exp.h.
561 2001-07-28  Bruno Haible  <bruno@clisp.org>
563         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
564         isdigit, tolower argument to 'unsigned char'.
565         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
566         'unsigned char'.
567         * intl/localealias.c (read_alias_file): Cast isspace argument to
568         'unsigned char'.
570 2001-10-20  Bruno Haible  <bruno@clisp.org>
572         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
573         anyway.)
574         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
575         with the variable 'index' in plural_lookup.
576         * intl/l10nflist.c (strchr): Likewise.
577         * intl/localealias.c (strchr): Likewise.
579         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
580         * intl/bindtextdom.c: Likewise.
581         * intl/dcigettext.c: Likewise.
582         * intl/dgettext.c: Likewise.
583         * intl/dngettext.c: Likewise.
584         * intl/explodename.c: Likewise.
585         * intl/finddomain.c: Likewise.
586         * intl/gettext.c: Likewise.
587         * intl/l10nflist.c: Likewise.
588         * intl/loadmsgcat.c: Likewise.
589         * intl/localealias.c: Likewise.
590         * intl/ngettext.c: Likewise.
591         * intl/textdomain.c: Likewise.
592         * intl/gettext.h: Assume <limits.h> exists.
594 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
596         * stdio-common/Makefile (tests): Add scanf11.
597         * stdio-common/scanf11.c: New file.
599 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
601         * version.h (RELEASE): Define as development.
602         (VERSION): Set to 2.2.90.
604 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
606         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
607         * nis/nss_nis/nis-grp.c: Likewise.
608         * nis/nss_nisplus/nisplus-grp.c: Likewise.
610         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
611         * nis/nss_nis/nis-pwd.c: Likewise.
612         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
614         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
615         * nis/nss_nisplus/nisplus-parser.c: Likewise.
616         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
618         * nscd/grpcache.c: Use strtoul instead of atol.
619         * nscd/pwdcache.c: Likewise.
620         * nss/getent.c: Likewise.
622 2001-11-27  Paul Eggert  <eggert@twinsun.com>
624         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
625         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
627 2001-11-19  Bruno Haible  <bruno@clisp.org>
629         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
630         90%.
631         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
632         improves the quality of the hash function, especially for short
633         strings.
635 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
637         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
638         are found call conv_error and not input_error [PR libc/2669].
640         * math/bits/mathcalls.h: Mark ceil and floor as const.
641         Reported by David Mosberger.
643 2001-11-21  Jim Meyering  <meyering@lucent.com>
645         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
646         Define to be __-prefixed.
647         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
649 2001-11-26  Andreas Jaeger  <aj@suse.de>
651         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
652         avoid warning.
654 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
656         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
657         initialization.
659         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
660         unused variables.  Fix threshold for returning 1.0.
662         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
663         argument.
665         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
666         remove unused variables.
668         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
670         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
671         include local math header files.
673 2001-11-22  Andreas Jaeger  <aj@suse.de>
675         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
676         avoid warning.
678 2001-11-21  Andreas Jaeger  <aj@suse.de>
680         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
682         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
683         sys/debugreg.h
685 2001-11-15  Andreas Jaeger  <aj@suse.de>
687         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
688         compilers that support it.
690         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
691         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
692         * stdlib/stdlib.h: Likewise.
694 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
696         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
697         statement with gotos.
698         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
700 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
702         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
704 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
706         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
708 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
709             H.J. Lu  <hjl@gnu.org>
711         * Versions.def (libc): Add GCC_3.0.
712         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
713         if gcc supports this flag.
714         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
715         (gcc3): Allow glibc to be compiled with gcc 3.x.
716         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
717         * config.make.in (static-libgcc, unwind-find-fde): Add.
718         * Makerules (build-shlib-helper, build-module-helper): Use it.
719         * scripts/versions.awk: Make sure GLIBC_ versions come first.
720         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
721         necessary.
722         (_fini): Call __deregister_frame_info_bases if
723         __register_frame_info_bases was used to register.
724         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
725         for GLIBC_2.0.
726         (__register_frame_info_bases, __register_frame_info_table_bases,
727         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
728         * elf/Makefile (routines): Add unwind-dw2-fde.
729         (shared-only-routines): Add unwind-dw2-fde.
730         * sysdeps/alpha/gccframe.h: New file.
731         * sysdeps/arm/gccframe.h: New file.
732         * sysdeps/generic/framestate.c: New file.
733         * sysdeps/generic/dwarf2.h: New file.
734         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
735         * sysdeps/generic/unwind-dw2-fde.c: New file.
736         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
737         * sysdeps/generic/unwind-dw2-fde.h: New file.
738         * sysdeps/generic/unwind-dw2.c: New file.
739         * sysdeps/generic/unwind-pe.h: New file.
740         * sysdeps/generic/unwind.h: New file.
741         * sysdeps/hppa/gccframe.h: New file.
742         * sysdeps/i386/gccframe.h: New file.
743         * sysdeps/m68k/gccframe.h: New file.
744         * sysdeps/mips/gccframe.h: New file.
745         * sysdeps/powerpc/gccframe.h: New file.
746         * sysdeps/s390/gccframe.h: New file.
747         * sysdeps/sh/gccframe.h: New file.
748         * sysdeps/sparc/gccframe.h: New file.
749         * sysdeps/vax/gccframe.h: New file.
750         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
751         Set on all architectures except ia64.
752         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
753         for i386.
754         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
755         __deregister_frame_info): Move to elf/Versions.
756         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
757         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
758         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
759         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
760         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
761         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
762         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
763         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
764         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
765         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
766         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
767         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
768         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
769         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
770         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
771         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
772         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
773         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
775 2001-11-15  Jeff Law  <law@redhat.com>
777         * posix/regex.c (uintptr_t): Do not provide a definition if the
778         system provided one.
780 2001-11-13  Roland McGrath  <roland@frob.com>
782         * stdio-common/tmpfile.c: Moved to ...
783         * sysdeps/generic/tmpfile.c: ... here.
784         * sysdeps/mach/hurd/tmpfile.c: New file.
786         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
787         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
788         (fopenport): Define as weak alias.
790         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
791         * libio/libioP.h: ... to here.
793 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
795         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
796         program header twice.  Construct list with the needed information.
798 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
800         * po/ca.po: Update from translation team.
802         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
803         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
804         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
805         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
807 2001-11-10  Andreas Jaeger  <aj@suse.de>
809         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
810         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
811         Contributed by Stephen L Moshier <moshier@mediaone.net>.
813 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
815         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
816         correctly.
817         * elf/dl-load.c (is_dst): New function.
818         (_dl_dst_count): Use is_dst to check for DST variable.
819         (_dl_dst_substitute): Likewise.
821 2001-11-09  Roland McGrath  <roland@frob.com>
823         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
824         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
825         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
826         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
827         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
828         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
829         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
830         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
831         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
832         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
833         * sysdeps/mach/hurd/powerpc/Dist: New file.
835         * hurd/privports.c (__get_privileged_ports):
836         Only contact the proc server if necessary for this call.
837         Suggested by Neal H Walfield <neal@cs.uml.edu>.
838         Check error return for mach_port_mod_refs.
840 2001-11-09  Andreas Schwab  <schwab@suse.de>
842         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
844 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
846         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
847         object is always the last in the list.
848         (_dl_map_object_from_fd): Delete code to remove from object list
849         when DF_1_NOOPEN is seen.  This is done in lose.
851 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
853         * elf/dl-object.c (_dl_new_object): Various small optimizations.
855 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
857         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
858         HWCAP_CHECK macro code.
860         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
861         Now returns MAP_FAILED on error.
862         * elf/rtld.c: Adjust caller.
863         * sysdeps/generic/dl-cache.c: Likewise.
864         * sysdeps/generic/ldsodefs.h: Adjust description.
866         * elf/dl-version.c (match_symbol): Optimize error handling for size.
867         (_dl_check_map_versions): Likewise.
869 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
871         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
872         _dl_signal_error directly, always use lose.  Set fd to -1 after
873         file is closed.
874         (lose): Don't call close if fd == -1.
876 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
878         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
879          Also fix typo @code {mbsinit} to @code{mbsinit}.
881 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
883         * elf/dl-profile.c: Replace state variable with simple flag named
884         running.  Remove commented-out code.
886         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
887         (_dl_init_paths): Likewise.
888         (_dl_map_object_from_fd): Likewise.
889         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
891 2001-11-06  Roland McGrath  <roland@frob.com>
893         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
894         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
896         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
897         sysdeps/powerpc/elf/sysdep.h.
898         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
900 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
902         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
903         speed.
904         (process_envvars): Some more optimizations.
905         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
907         * elf/elf.h: Add dynamic tag definitions for prelinking.
909         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
910         Rewrite code to remove environment varables for SUID binaries.
911         Small optimization in LD_PROFILE handling.
912         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
913         changes.
914         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
916         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
918         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
919         strings.  Change type of second parameter.
920         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
921         for last change.
923         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
925 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
927         * manual/string.texi: Fix typos.
928         * manual/examples/argp-ex2.c: Likewise.
930 2001-11-05  Roland McGrath  <roland@frob.com>
932         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
933         the more-specific unix/sysv/linux/powerpc file and breaks everything.
934         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
935         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
936         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
937         here, put under [__ELF__].
939 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
941         * manual/charset.texi: Extensive editing work.
942         * manual/nss.texi: Likewise.
943         Changes by Dennis Grace <dgrace@us.ibm.com>.
945 2001-11-04  Roland McGrath  <roland@frob.com>
947         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
948         parameter to dir_mkfile.
950 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
952         * string/bits/string2.h (__strndup): If n is smaller than len, set
953         len to n + 1.
954         * string/tester.c (test_strndup): New function.
955         (main): Call it.
957 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
959         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
961         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
962         * scripts/cpp: New file.
964         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
965         for rtld_search_dirs content.  Minor optimizations.
967 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
969         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
970         avoiding unnecessary duplication.
972 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
974         * elf/dl-load.c (_dl_map_object): If library was found using
975         LD_LIBRARY_PATH, don't try RUNPATH list.
977 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
979         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
980         Correct second argument of register_dump call.
981         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
982         Likewise.
984 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
986         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
987         modules.
988         * iconvdata/TESTS: Likewise.
989         * iconvdata/gconv-modules: Likewise.
990         * iconvdata/ibm1132.c: New file.
991         * iconvdata/ibm1132.h: New file.
992         * iconvdata/ibm1133.c: New file.
993         * iconvdata/ibm1133.h: New file.
994         * iconvdata/ibm1162.c: New file.
995         * iconvdata/ibm1162.h: New file.
996         * iconvdata/testdata/IBM1132: New file.
997         * iconvdata/testdata/IBM1132..UTF8: New file.
998         * iconvdata/testdata/IBM1133: New file.
999         * iconvdata/testdata/IBM1133..UTF8: New file.
1000         * iconvdata/testdata/IBM1162: New file.
1001         * iconvdata/testdata/IBM1162..UTF8: New file.
1002         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
1004         * string/string.h: Fix typo in comment.
1005         * wcsmbs/wchar.h: Likewise.
1007 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
1009         * manual/getopt.texi (getopt_long, getopt_long_only): Include
1010         const in type of longopts parameter.
1012 2001-10-29  Andreas Jaeger  <aj@suse.de>
1014         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
1016 2001-10-29  Kevin Ryde  <user42@zip.com.au>
1018         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
1019         output, clarify `#' behaviour on 0.
1020         (Floating-Point Conversions): Clarify that %g only uses %e when
1021         the exponent would be greater than 1.
1023 2001-10-28  Roland McGrath  <roland@frob.com>
1025         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
1026         * sysdeps/mach/powerpc/machine-sp.h: New file.
1027         * sysdeps/mach/powerpc/sysdep.h: New file.
1028         * sysdeps/mach/powerpc/thread_state.h: New file.
1030         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
1031         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
1032         expect to need the same thing on every platform.
1034         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
1035         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
1037         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
1038         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
1039         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
1040         Move all these assembly-related definitions to ...
1041         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
1043         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
1044         by Peter Bruin <pjbruin@dds.nl>.
1046         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
1047         packing results for a `poll' call.
1049 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
1051         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
1052         correctly.
1053         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
1054         bracket expression.
1056         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
1057         nrules value.
1058         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
1060 2001-10-24  H.J. Lu  <hjl@gnu.org>
1062         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
1063         Use __BEGIN_DECLS/__END_DECLS around prototypes.
1064         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
1066 2001-10-21  Jim Meyering  <meyering@lucent.com>
1068         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
1069         this code would end up calling gettext even in packages built
1070         with --disable-nls.
1071         * posix/getopt.c (_): Likewise.
1072         * posix/regex.c (_): Likewise.
1074 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
1076         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
1077         lookup not ip6.int.
1078         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
1079         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
1081 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
1083         * misc/sys/cdefs.h (__attribute_used__): Define.
1084         * elf/rtld.c (_dl_start): Add __attribute_used__.
1085         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
1087 2001-10-25  Andreas Schwab  <schwab@suse.de>
1089         * stdlib/a64l.c: Expect least significant digit first.
1090         * stdlib/l64a.c: Produce least significant digit first.
1091         * stdlib/Makefile (tests): Add test-a64l.
1092         * stdlib/test-a64l.c: New file.
1093         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
1095 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
1097         * po/sk.po: Update from translation team.
1099 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
1101         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
1103 2001-10-18  Andreas Schwab  <schwab@suse.de>
1105         * math/libm-test.inc (print_ulps): Print ulp values rounded to
1106         next whole number.
1107         (print_function_ulps): Likewise.
1108         (print_complex_function_ulps): Likewise.
1109         (print_max_error): Likewise.
1110         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
1112 2001-10-16  Andreas Schwab  <schwab@suse.de>
1114         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
1115         implementation.
1117         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
1118         BSD_SETJMP or BSD__SETJMP is defined, resp.
1119         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
1120         a tail call to __sigsetjmp that would require extending the
1121         caller's frame.
1122         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
1123         * sysdeps/m68k/bsd-setjmp.S: Deleted.
1124         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
1125         Reported by Jes Sorensen <jes@trained-monkey.org>.
1127 2001-10-16  Andreas Jaeger  <aj@suse.de>
1129         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
1130         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
1131         close PR libc/2589.
1133 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
1135         * po/ca.po: New file.  Contributed by the translation team.
1137 2001-10-15  Ralf Baechle  <ralf@gnu.org>
1139         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
1140         a varargs prototype.  Remove dependency from kernel header files.
1142         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
1143         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
1145 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
1147         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
1148         to generate hexadecimal identifier.
1149         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
1151 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
1153         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
1155 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
1157         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
1158         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
1159         Contributed by Stephen L Moshier <moshier@mediaone.net>.
1161         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
1162         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1163         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
1164         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
1165         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
1166         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
1168         * timezone/africa: Update from tzdata2001d.
1169         * timezone/asia: Likewise.
1170         * timezone/australasia: Likewise.
1171         * timezone/backward: Likewise.
1172         * timezone/europe: Likewise.
1173         * timezone/leapseconds: Likewise.
1174         * timezone/northamerica: Likewise.
1175         * timezone/southamerica: Likewise.
1176         * timezone/zone.tab: Likewise.
1178 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1180         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
1181         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
1183 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
1185         * elf/elf.h (PT_TLS): New definition.
1187 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
1189         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
1190         bits/errno.h
1192 2001-10-07  Roland McGrath  <roland@frob.com>
1194         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
1196 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
1198         * elf/elf.h: Add more ELFOSABI_* constants.
1200 2001-10-04  Ben Collins  <bcollins@debian.org>
1202         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
1203         decleration of __need_wchar_t.
1205 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
1207         * string/bits/string2.h (__strsep_g): Add prototype.
1208         (__strsep): Use it.
1209         * string/Versions (__strsep): Remove.
1210         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
1212 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
1214         * manua/llio.texi: Clarify file references added by mmap.
1215         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
1217 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
1219         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
1220         Add sc_loadrs and sc_rbs_bas to match current kernel.
1222 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
1224         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
1226         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
1228 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
1230         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
1231         object has been bumped because of relocation dependency, avoid
1232         duplicates in l_scope.
1233         (show_scope): Fix typos.
1234         * elf/Makefile: Add rules to build and run reldep6.
1235         * elf/reldep6.c: New file.
1236         * elf/reldep6mod0.c: New file.
1237         * elf/reldep6mod1.c: New file.
1238         * elf/reldep6mod2.c: New file.
1239         * elf/reldep6mod3.c: New file.
1240         * elf/reldep6mod4.c: New file.
1242 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
1244         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
1245         sparc64_fixup_plt.
1246         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
1247         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
1248         for non-lazy binding. Fix .plt[32768+] handling.
1249         (elf_machine_plt_value): Don't add addend.
1250         (elf_machine_rela): Call sparc64_fixup_plt instead of
1251         elf_machine_fixup_plt.
1252         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
1253         dynamic linker at 0xfffff800XXXXXXXX.
1255         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
1257 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
1259         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
1261 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
1263         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
1264         declare __cmsg_data field if its size would be bigger than 0.
1265         (CMSG_DATA): Adjust accordingly.
1266         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
1267         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
1268         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
1269         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
1270         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
1271         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
1272         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1274 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
1276         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
1277         * iconvdata/testdata/IBM1160: New file.
1278         * iconvdata/testdata/IBM1160..UTF8: New file.
1279         * iconvdata/testdata/IBM1161: New file.
1280         * iconvdata/testdata/IBM1161..UTF8: New file.
1281         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1283 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
1285         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
1286         UL_SETFSIZE computations better.
1288         * rt/Makefile: Remove use of filter for librt again.
1290         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
1291         UL_SETFSIZE computations better.
1293         * string/Versions: Export __strsep for GLIBC_2.2.5.
1294         * string/bits/string2.h: Define all __STRING_INLINE functions if
1295         _FORCE_INLINES is defined.
1296         Use int instead of char of parameter types.
1297         (__strsep): Don't use __strsep_g.  Don't define it.
1298         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
1299         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
1300         __strcpy_small.
1301         (__stpcpy_a_small): Renamed from __stpcpy_small.
1302         (__strcspn_c1): Don't define if _FORCE_INLINES.
1303         (__strspn_c1): Likewise.
1305 2001-09-22  Ben Collins  <bcollins@debian.org>
1307         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
1308         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
1309         * sysdeps/ia64/bits/sigaction.h: Likewise.
1310         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
1312 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
1314         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
1316 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
1318         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
1320 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
1322         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
1324 2001-09-20  H.J. Lu  <hjl@gnu.org>
1326         * include/dlfcn.h (__RTLD_SPROF): New definiton.
1327         * elf/dl-open.c (dl_open_worker): Return immediately after loading
1328         for __RTLD_SPROF.
1329         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
1330         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
1332 2001-09-20  H.J. Lu  <hjl@gnu.org>
1334         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
1335         don't add 1.
1337 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
1339         * nss/getent.c: Accept -s parameter to overwrite rules in
1340         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
1342         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
1343         with as many ".0" as necessary to form a complete address
1344         inet_network understands.
1346         * nss/getent.c: Various cleanups.  Use simpler and fewer function
1347         calls.
1349 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1351         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
1352         _JMPBUF_UNWINDS.
1353         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
1355 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
1357         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
1358         IBM1161.
1359         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
1360         * iconvdata/ibm1160.c: New file.
1361         * iconvdata/ibm1160.h: New file.
1362         * iconvdata/ibm1161.c: New file.
1363         * iconvdata/ibm1161.h: New file.
1364         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1366 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
1368         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
1369         difference between base address and first PT_LOAD's virtual address,
1370         not the base address.
1372 2001-09-11  Tom Rix  <trix@redhat.com>
1374         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
1375         ifdef for __getopt_clean_environment.
1376         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
1378 2001-09-22  Andreas Jaeger  <aj@suse.de>
1380         * elf/reldep4.c (main): Add proper prototype to fix warning.
1382         * elf/reldep5.c (main): Remove unused variable.
1384         * math/math_private.h: Add prototypes.
1386 2001-09-21  Andreas Jaeger  <aj@suse.de>
1388         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
1389         * sysdeps/x86_64/Dist: New file.
1390         * sysdeps/x86_64/soft-fp/Dist: New file.
1392         * sysdeps/gnu/Dist: Remove eval.c.
1394 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
1396         * malloc/memusage.c (realloc): Don't count already allocated
1397         memory in the sums.
1398         (me): Always use dlsym() to find the real implementations.
1400         * malloc/memusage.sh: Make -n option actually do something.
1402 2001-09-20  Andreas Jaeger  <aj@suse.de>
1404         * elf/elf.h (R_390_NUM): Correct value.
1406         * Versions.def: Add missing versions 2.2.3 for libthread_db and
1407         libpthread.
1409         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
1410         for x86-64, install x86-64 into */lib64.
1412         * shlib-versions: Add x86-64.
1414         * elf/elf.h: Add x86-64 relocations.
1416 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
1418         * po/fr.po: Update from translation team.
1420 2001-09-19  Andreas Jaeger  <aj@suse.de>
1422         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
1423         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
1424         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
1425         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
1426         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
1427         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
1428         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
1429         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
1430         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
1431         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
1432         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
1433         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
1434         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
1435         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
1436         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
1437         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
1438         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
1439         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
1440         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
1441         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
1442         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
1443         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
1444         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
1445         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
1446         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
1447         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
1448         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
1449         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
1450         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
1451         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
1452         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
1453         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
1454         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
1455         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
1456         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
1457         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
1458         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
1459         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
1460         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
1461         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
1462         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
1463         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
1464         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
1465         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
1466         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
1467         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
1468         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
1469         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
1470         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
1471         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
1472         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
1473         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
1474         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
1475         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
1476         * sysdeps/unix/x86_64/sysdep.S: New file.
1477         * sysdeps/unix/x86_64/sysdep.h: New file.
1478         * sysdeps/x86_64/Implies: New file.
1479         * sysdeps/x86_64/Makefile: New file.
1480         * sysdeps/x86_64/Versions: New file.
1481         * sysdeps/x86_64/__longjmp.S: New file.
1482         * sysdeps/x86_64/abort-instr.h: New file.
1483         * sysdeps/x86_64/atomicity.h: New file.
1484         * sysdeps/x86_64/bits/endian.h: New file.
1485         * sysdeps/x86_64/bits/setjmp.h: New file.
1486         * sysdeps/x86_64/bits/string.h: New file.
1487         * sysdeps/x86_64/bp-asm.h: New file.
1488         * sysdeps/x86_64/bsd-_setjmp.S: New file.
1489         * sysdeps/x86_64/bsd-setjmp.S: New file.
1490         * sysdeps/x86_64/dl-machine.h: New file.
1491         * sysdeps/x86_64/elf/initfini.c: New file.
1492         * sysdeps/x86_64/elf/start.S: New file.
1493         * sysdeps/x86_64/ffs.c: New file.
1494         * sysdeps/x86_64/ffsll.c: New file.
1495         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
1496         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
1497         * sysdeps/x86_64/fpu/e_acosl.c: New file.
1498         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
1499         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
1500         * sysdeps/x86_64/fpu/e_expl.c: New file.
1501         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
1502         * sysdeps/x86_64/fpu/e_log10l.S: New file.
1503         * sysdeps/x86_64/fpu/e_log2l.S: New file.
1504         * sysdeps/x86_64/fpu/e_logl.S: New file.
1505         * sysdeps/x86_64/fpu/e_powl.S: New file.
1506         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
1507         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
1508         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
1509         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
1510         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
1511         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
1512         * sysdeps/x86_64/fpu/fegetenv.c: New file.
1513         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
1514         * sysdeps/x86_64/fpu/fegetround.c: New file.
1515         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
1516         * sysdeps/x86_64/fpu/fesetenv.c: New file.
1517         * sysdeps/x86_64/fpu/fesetround.c: New file.
1518         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
1519         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
1520         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
1521         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
1522         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
1523         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
1524         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
1525         * sysdeps/x86_64/fpu/s_atanl.c: New file.
1526         * sysdeps/x86_64/fpu/s_cosl.S: New file.
1527         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
1528         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
1529         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
1530         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
1531         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
1532         * sysdeps/x86_64/fpu/s_logbl.c: New file.
1533         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
1534         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
1535         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
1536         * sysdeps/x86_64/fpu/s_rintl.c: New file.
1537         * sysdeps/x86_64/fpu/s_significandl.c: New file.
1538         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
1539         * sysdeps/x86_64/fpu/s_sinl.S: New file.
1540         * sysdeps/x86_64/fpu/s_tanl.S: New file.
1541         * sysdeps/x86_64/gmp-mparam.h: New file.
1542         * sysdeps/x86_64/hp-timing.c: New file.
1543         * sysdeps/x86_64/hp-timing.h: New file.
1544         * sysdeps/x86_64/htonl.S: New file.
1545         * sysdeps/x86_64/memusage.h: New file.
1546         * sysdeps/x86_64/setjmp.S: New file.
1547         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
1548         * sysdeps/x86_64/stackinfo.h: New file.
1549         * sysdeps/x86_64/sysdep.h: New file.
1550         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
1552         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
1553         L Moshier.
1555 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
1557         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
1558         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
1560 2001-09-18  Andreas Schwab  <schwab@suse.de>
1562         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
1563         list, now that l_scope is a pointer.
1565         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
1566         scope list.
1568 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
1570         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
1571         (elf_machine_rela_relative): Add a missing declaration.
1573 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
1575         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
1576         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
1577         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
1578         ldd-rewrite scripts.
1580 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
1582         * elf/ldd.bash.in: Update copyright message.
1584 2001-09-17  H.J. Lu  <hjl@gnu.org>
1586         * hurd/hurdmalloc.c (bcopy): Removed.
1587         (realloc): Replace bcopy with memcpy.
1588         * hurd/path-lookup.c (file_name_path_scan): Likewise.
1589         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
1590         * sunrpc/rpcinfo.c (pmapdump): Likewise.
1592         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
1593         (gethostbyaddr): Likewise.
1594         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
1596 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
1598         * sysdeps/gnu/eval.c: Removed.
1600 2001-09-18  Andreas Jaeger  <aj@suse.de>
1602         * sysdeps/i386/fpu/s_logbl.S: Move to ...
1603         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
1605         * sysdeps/i386/fpu/s_rintl.S: Move to ...
1606         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
1608         * sysdeps/i386/fpu/s_significandl.S: Move to ...
1609         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
1611 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
1613         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
1614         nrules value.
1616 2001-09-14  H.J. Lu  <hjl@gnu.org>
1618         * sysdeps/mips/fpu/libm-test-ulps: Updated.
1620 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
1622         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
1623         Patch by Florian La Roche <laroche@redhat.com>.
1625         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
1627         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
1628         ETHER_CRC_LEN.
1630 2001-09-14  Andreas Schwab  <schwab@suse.de>
1632         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
1633         Sumner <bls@sgi.com>.
1634         * posix/execlp.c: Likewise.
1636 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
1638         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
1639         is already found earlier in the search scope.
1641 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
1643         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
1644         filter.
1646 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
1648         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
1650 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
1652         * config.h.in: Enforce optimization to be used.
1653         * Makeconfig (preprocess-versions): Define ASSEMBLER.
1654         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
1655         * posix/Makefile (annexc-CFLAGS): Define to -O.
1656         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
1658 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
1660         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
1661         Patch by Stephan Kulow.
1663 2001-09-08  Ben Collins  <bcollins@debian.org>
1665         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
1666         usage of RESOLVE() (r_type, not reloc->r_type).
1668 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
1670         * elf/dl-object.c: Avoid allocating extra memory block for name.
1671         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
1672         allocated separately.
1673         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1675 2001-09-08  H.J. Lu  <hjl@gnu.org>
1677         * po/zh_TW.po: Fix a typo.
1679 2001-09-07  Tom Rix  <trix@redhat.com>
1681         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
1683 2001-08-26  Tom Rix  <trix@redhat.com>
1685         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
1686         command line options.
1687         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
1688         * sysdeps/unix/sysv/aix/start.c: Removed.
1689         * sysdeps/unix/sysv/aix/start-libc.c: New file.
1690         * sysdeps/unix/sysv/aix/init-first.c: New file.
1691         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
1693 2001-09-08  Ben Collins  <bcollins@debian.org>
1695         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
1696         * sysdeps/generic/dl-machine.h: Likewise.
1697         * sysdeps/hppa/dl-fptr.c: Likewise.
1698         * sysdeps/ia64/dl-fptr.c: Likewise.
1699         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
1700         * sysdeps/mips/dl-machine.h: Likewise.
1701         * sysdeps/mips/mips64/dl-machine.h: Likewise.
1702         * sysdeps/powerpc/dl-machine.c: Likewise.
1704 2001-09-07  Ben Collins  <bcollins@debian.org>
1706         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
1708         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
1710 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
1712         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
1713         dependencies if necessary.
1715         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
1716         loaded directly) determine length if l_initfini list by iterating
1717         over its elements.  Minor optimizations.
1718         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
1719         for dependency objects.
1720         If object was already loaded check whether any of the dependencies
1721         is already on the relocation dependency list.  If yes, remove the
1722         latter.  Minor optimizations.
1723         * elf/dl-lookup.c (add_dependency): Add check for self reference of
1724         maps here.  Search l_initfini list only if the object was loaded
1725         directly and not only as a dependency.
1726         (_dl_lookup_symbol): Add relocation dependency also if object
1727         is not in global scope.  Remove test for self-reference here.
1728         (_dl_lookup_versioned_symbol): Likewise.
1729         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
1730         element of first name record.
1731         * elf/loadtest.c: Add some more test to recognize early if an object
1732         wasn't unloaded.
1733         * elf/Makefile: Add rules to build and run reldep5.
1734         * elf/reldep5.c: New file.
1735         * elf/reldepmod5.c: New file.
1736         * elf/reldepmod6.c: New file.
1738         * elf/reldep2.c: Fix typo.
1740 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
1742         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
1743         elements.  Change l_scope to be a pointer only.
1744         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
1745         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
1746         here add searchlist of newly open file to the dependency's scope.
1747         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
1748         only searchlist from its scope.  Free own scope array if necessary.
1749         * elf/Makefile (tests): Add dblload and dblunload now.
1751 2001-09-06  Andreas Jaeger  <aj@suse.de>
1753         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
1754         Stephen L Moshier.
1756 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
1758         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
1759         they both fail.
1760         * elf/dblload.c: New file.
1761         * elf/dblloadmod1.c: New file.
1762         * elf/dblloadmod2.c: New file.
1763         * elf/dblloadmod3.c: New file.
1764         * elf/dblunload.c: New file.
1766 2001-09-04  Richard Henderson  <rth@redhat.com>
1768         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
1769         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
1771 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
1773         Correct very misleading message for error in failed runtime relocation.
1774         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
1775         place of the error.
1776         (_dl_signal_cerror): Likewise.
1777         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
1778         * elf/dl-close.c: Likewise.
1779         * elf/dl-deps.c: Likewise.
1780         * elf/dl-load.c: Likewise.
1781         * elf/dl-lookup.c: Likewise.
1782         * elf/dl-open.c: Likewise.
1783         * elf/dl-reloc.c: Likewise.
1784         * elf/dl-sym.c: Likewise.
1785         * elf/dl-version.c: Likewise.
1786         * sysdeps/generic/dl-sysdep.c: Likewise.
1788 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
1790         * iconv/strtab.c (strtabinit): Initialize null Strent.
1791         (newstring): Move len == 0 handling...
1792         (strtabadd): ...here.
1793         If len == 1, return null Strent.
1794         When inserting a suffix of an existing string, check if
1795         it is not equal to some suffix already recorded.
1796         Copy left and right members over if adding longer string.
1798 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
1800         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
1802         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
1803         (__syscall_gethostname): Add prototype.
1805 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
1807         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
1809 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
1811         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
1813 2001-08-27  Roland McGrath  <roland@frob.com>
1815         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
1816         short, copy that much into NAME anyway before returning error.
1818 2001-09-01  Richard Henderson  <rth@redhat.com>
1820         * sysdeps/alpha/elf/Dist: Remove file.
1821         * sysdeps/alpha/elf/Makefile: Remove file.
1822         * sysdeps/alpha/elf/crtbegin.S: Remove file.
1823         * sysdeps/alpha/elf/crtend.S: Remove file.
1824         * sysdeps/alpha/elf/initfini.c: New file.
1826 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
1828         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
1829         * iconv/tst-iconv3.c: Likewise.
1831 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
1833         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
1835 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
1837         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
1838         export it.
1839         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
1840         * iconv/iconv_prog.c (insert_cache): New function.
1841         (print_known_names): If cache is used call insert_cache to use the
1842         information from the cache [PR libc/2509].
1844 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
1846         * time/strptime.c (strptime_internal): Recognize 'l' format and
1847         handle it like 'I' for symmetry with strftime.
1849 2001-08-31  Richard Henderson  <rth@redhat.com>
1851         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
1852         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
1853         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
1854         (print_statistics): Make scalar unsigned long long.
1855         * sysdeps/alpha/hp-timing.h: New file.
1857 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
1859         * stdio-common/perror.c (perror): Save errno early, pass it
1860         down to perror_internal.
1861         (perror_internal): Add errnum argument.
1863 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
1865         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
1866         Don't add old memory content for R_ALPHA_REFQUAD.
1868 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
1870         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
1871         memory correctly.
1873         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
1874         instead of open, __close instead of close, __getpagesize instead
1875         of getpagesize.
1877         * string/argz-stringify.c (__argz_stringify): Use __strnlen
1878         instead of strnlen.
1879         * include/string.h (strndupa): Redefine here to use __strnlen
1880         instead of strnlen.
1881         * string/strndup.c (__strndup): Use __strnlen not strnlen.
1883         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
1884         connected).
1886 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
1888         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
1889         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
1890         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
1891         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
1892         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
1893         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
1894         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
1896 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
1898         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
1900 2001-08-30  Andreas Jaeger  <aj@suse.de>
1902         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
1903         contributed Stephen L Moshier.
1905 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
1907         * sunrpc/etc.rpc (sgi_fam): Add.
1909 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
1911         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
1913 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
1915         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
1916         first is from a previous call.
1917         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
1919 2001-08-29  Andreas Schwab  <schwab@suse.de>
1921         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
1923 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1925         * config.make.in (INSTALL_SCRIPT): Define.
1926         * Makeconfig (INSTALL_SCRIPT): Define.
1927         * Makerules (do-install-script): New macro to install scripts using
1928         INSTALL_SCRIPT.
1929         (install-bin-script): New rule to install scripts with
1930         do-install-script.
1931         (install-bin-script-nosubdir): New rule.
1932         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
1933         (distinfo-vars): Add $(install-bin-script).
1934         * Rules (others): Likewise.
1935         * Makefile (glibcbug): Install with install-bin-script.
1936         * debug/Makefile (xtrace): Likewise.
1937         (catchsegv): Likewise.
1938         * elf/Makefile (ldd): Likewise.
1939         * malloc/Makefile (mtrace): Likewise.
1940         * timezone/Makefile (tzselect): Likewise.
1942 2001-08-29  H.J. Lu  <hjl@gnu.org>
1944         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
1945         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
1946         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
1948 2001-08-29  Andreas Schwab  <schwab@suse.de>
1950         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
1952 2001-08-28  H.J. Lu  <hjl@gnu.org>
1954         * Makeconfig (combreloc-LDFLAGS): New variable.
1955         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
1956         * config.make.in (have-z-combreloc): New variable.
1957         * configure.in: Substitute libc_cv_z_combreloc.
1959 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
1961         * po/sv.po: Update from translation team.
1962         * po/fr.po: Likewise.
1963         * po/da.po: Likewise.
1965 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1967         * Makerules: Fix a typo: MD% -> MD5.
1969 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
1971         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
1972         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
1974 2001-08-28  Andreas Jaeger  <aj@suse.de>
1976         * manual/libc-texinfo.sh: Add entry about free manuals.
1978         * manual/contrib.texi (Contributors): Fix cross reference.
1980         * manual/libc.texinfo (Copying): Include freemanuals.
1982         * manual/Makefile (appendices): Add freemanuals.
1984         * manual/freemanuals.texi: New file.
1985         Patch by Brian Youmans <3diff@gnu.org>.
1987         * manual/libm-err-tab.pl: Pretty print more platforms, print a
1988         smaller table.
1990         * manual/math.texi (Errors in Math Functions): Fix grammar, start
1991         table on separate page.
1992         Patch by Brian Youmans <3diff@gnu.org>.
1994 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
1996         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
1997         the connection went down after we first used it try to connect
1998         again and resend the message before printing to the console.
1999         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
2001 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
2003         * string/tst-strlen.c (main): Test strnlen (, -1) too.
2004         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
2005         bit set.
2007 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
2009         * iconv/strtab.c (searchstring): Use correct length for comparison.
2010         (strtabadd): Account total size correct if new string has old string as
2011         substring.
2013 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
2015         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
2017 2001-08-27  Andreas Jaeger  <aj@suse.de>
2019         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
2021         * math/libm-test.inc (j0_test): Add extra tests.
2022         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
2023         not x, in Hankel approximation.
2024         Patches by Stephen L Moshier.
2026 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
2028         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
2029         link_map.
2031         * configure.in: Fix test for .rela.dyn section.
2033         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
2035 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
2037         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
2038         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
2039         Pass type_class to _dl_lookup_*.
2040         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
2041         Pass around just type_class instead of noexec, noplt pair.
2042         (_dl_lookup_versioned_symbol): Likewise.
2043         (_dl_lookup_symbol_skip): Pass around just type_class instead of
2044         noexec, noplt pair.
2045         (_dl_lookup_versioned_symbol_skip): Likewise.
2046         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
2047         * elf/do-lookup.h (do_lookup): Likewise.
2048         * include/link.h (struct link_map): Replace noexec and noplt fields
2049         in l_lookup_cache with type_class field.
2050         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
2051         ELF_RTYPE_CLASS_COPY): Define.
2052         Adjust prototypes for _dl_lookup_symbol and
2053         _dl_lookup_versioned_symbol.
2054         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
2055         elf_machine_lookup_noexec_p): Remove.
2056         (elf_machine_type_class): Define.
2057         * sysdeps/arm/dl-machine.h: Likewise.
2058         * sysdeps/hppa/dl-machine.h: Likewise.
2059         * sysdeps/cris/dl-machine.h: Likewise.
2060         * sysdeps/i386/dl-machine.h: Likewise.
2061         * sysdeps/ia64/dl-machine.h: Likewise.
2062         * sysdeps/m68k/dl-machine.h: Likewise.
2063         * sysdeps/mips/mips64/dl-machine.h: Likewise.
2064         * sysdeps/mips/dl-machine.h: Likewise.
2065         * sysdeps/powerpc/dl-machine.h: Likewise.
2066         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2067         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2068         * sysdeps/sh/dl-machine.h: Likewise.
2069         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2070         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2072 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
2074         * manual/message.texi (Advanced gettext functions): Change
2075         description of plural forms for Slovak.
2076         Reported by Marcel Telka <marcel@telka.sk>.
2078         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
2079         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
2081 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
2083         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
2084         typo.  Patch by Florian La Roche <laroche@redhat.com>.
2086 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
2088         * include/link.h (struct link_map): Add l_lookup_cache element.
2089         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
2090         (RESOLVE_MAP): Likewise.
2091         (_dl_relocate_object): Remove cache initialization.
2092         * elf/dl-lookup.c: Rip out cache handling code.
2093         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
2094         declarations.
2096         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
2097         remove some __builtin_expect.
2098         (_dl_lookup_versioned_symbol): Likewise.
2100         * config.h.in: Add HAVE_Z_COMBRELOC.
2101         * configure.in: Add test for -z combreloc.
2103         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
2104         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
2105         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
2106         case to almost no code.
2108 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
2110         * po/tr.po: Update from translation team.
2112 2001-08-24  Andreas Jaeger  <aj@suse.de>
2114         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
2115         make clean works.
2117 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2119         * elf/rtld.c (print_statistics): Printf % after percent values.
2120         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
2122         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
2123         don't have to compute the hash value and initialize current_value.
2124         Move reference_name variable to where it is needed.
2125         (_dl_lookup_versioned_symbol): Likewise.
2127 2001-08-24  Roland McGrath  <roland@frob.com>
2129         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
2130         Just test that strerror returns non-null for a few errno codes.
2132 2001-08-23  Roland McGrath  <roland@frob.com>
2134         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
2135         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
2137         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
2139         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
2140         __mach_reply_port.
2142 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2144         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
2145         returns NULL.
2147         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
2148         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
2149         doesn't do it.
2150         * elf/rtld.c: Include <sys/param.h>.
2151         * elf/dl-reloc.c: Likewise.
2153 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2155         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
2156         empty to prevent junk from being generated.
2157         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
2159 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
2161         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
2162         records.  Rename endrel to relative, initialize it to r, and use it
2163         in elf_machine_rel_relative calls.  Point r after relative relocs.
2165 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2167         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
2168         of R_386_NONE.
2170 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
2172         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
2173         necessary.  Undefine newly defined macros at the end.
2174         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
2175         Rename from elf_machine_rel_relative.
2176         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
2177         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
2178         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
2179         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
2180         Likewise.
2181         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
2182         Likewise.
2183         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
2184         Fix argument types.
2185         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
2186         Fix argument types.
2187         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
2188         Likewise.  Fix argument types.
2189         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
2190         Likewise.  Fix argument types.
2191         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
2192         Fix argument types.
2193         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
2194         ElfW(Rel) in argument.
2195         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
2196         function.
2198 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
2200         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
2202 2001-08-24  Andreas Jaeger  <aj@suse.de>
2204         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
2205         Stephen L Moshier <moshier@mediaone.net>.
2207 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
2209         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
2210         first if RELCOUNT is set.
2212         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
2213         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
2214         elf_machine_rel_relative.
2215         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
2216         Minor optimizations.
2217         * sysdeps/arm/dl-machine.h: Likewise.
2218         * sysdeps/cris/dl-machine.h: Likewise.
2219         * sysdeps/hppa/dl-machine.h: Likewise.
2220         * sysdeps/i386/dl-machine.h: Likewise.
2221         * sysdeps/ia64/dl-machine.h: Likewise.
2222         * sysdeps/m68k/dl-machine.h: Likewise.
2223         * sysdeps/mips/dl-machine.h: Likewise.
2224         * sysdeps/powerpc/dl-machine.h: Likewise.
2225         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2226         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2227         * sysdeps/sh/dl-machine.h: Likewise.
2228         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2229         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2231 2001-08-23  Roland McGrath  <roland@frob.com>
2233         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
2235         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
2236         sysdeps/mach version.  Implement counting ("recursive") mutexes
2237         on top of cthreads mutexes.
2238         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
2240         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
2241         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
2242         (__libc_cleanup_region_start, __libc_cleanup_region_end,
2243         __libc_clean_end): Define these to call the cleanup function after
2244         normal exit when they're supposed to.
2246         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
2247         Take new first arg DOIT, a boolean saying whether to really install
2248         any cleanup handler.
2249         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
2250         (__libc_cleanup_end): Likewise.
2251         * sysdeps/generic/bits/libc-lock.h: Same changes.
2252         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
2253         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
2254         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
2255         Likewise.
2256         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
2257         * sysdeps/generic/bits/stdio-lock.h
2258         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
2260 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2262         * elf/ldconfig.c (search_dir): Remove stale symlinks.
2264 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2266         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
2267         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
2268         lookups in cache.
2269         (_dl_lookup_versioned_symbol): Likewise.
2270         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
2271         relocation lookup.
2272         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
2273         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
2274         (lookup_cache, lookup_cache_versioned): Add declarations.
2276 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
2278         * stdlib/tst-random.c (main): Swap parameters in fail call.
2279         Patch by Pete Bevin <pete@petebevin.com>.
2281 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2283         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
2285 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
2287         * malloc/obstack.c: Indent preprocessor directives.
2288         Patch by Jim Meyering <meyering@ascend.com>.
2290         * po/ja.po: Update from translation team.
2292 2001-08-23  Roland McGrath  <roland@frob.com>
2294         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
2296         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
2297         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
2299 2001-08-22  Roland McGrath  <roland@frob.com>
2301         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
2302         __libc_lock_define_recursive.
2303         * elf/dl-open.c: Don't declare it here any more.
2304         * elf/dl-close.c: Likewise.
2305         * elf/dl-lookup.c: Likewise.
2306         * elf/dl-iteratephdr.c: Likewise.
2307         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
2308         __libc_lock_unlock_recursive.
2309         * elf/dl-close.c (_dl_close): Likewise
2310         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
2311         * elf/dl-open.c (_dl_open): Likewise
2313         * sysdeps/generic/bits/libc-lock.h
2314         (__libc_lock_define_recursive): New macro.
2315         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
2316         (_IO_lock_lock): Use __libc_lock_lock_recursive.
2317         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
2319         * conform/conformtest.pl (checknamespace): Sort the output list.
2321         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
2322         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
2323         definitions conditional on [__USE_XOPEN].
2325         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
2326         these unconditionally, not only use [__USE_BSD], so as to match
2327         the sysdeps/unix/sysv/linux files.
2329 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
2331         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
2332         avoid warnings.
2334         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
2335         DL_LOOKUP_ADDRESS.
2337 2001-08-22  Roland McGrath  <roland@frob.com>
2339         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
2340         conditionalization of sa_handler/sa_sigaction member types to
2341         match the sysdeps/unix/sysv/linux file.
2343 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
2345         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
2346         symbol sizes a bit better.
2348         * sysdeps/ia64/strncpy.S: Complete rewrite.
2349         Contributed by Jakub Jelinek <jakub@redhat.com>.
2351         * string/stratcliff.c (main): Add strncpy test.
2353 2001-08-22  Roland McGrath  <roland@frob.com>
2355         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
2356         and don't declare unsetenv or _environ directly.
2357         (unsetenv): Return int, not void.  Use __environ instead of _environ.
2359 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
2361         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
2362         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
2363         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
2364         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
2365         test for cmsg struct size.
2367 2001-04-23  Paul Eggert  <eggert@twinsun.com>
2369         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
2370         Rename __argc to ___argc in prototypes to avoid compatibility
2371         problems with systems that reserve the identifier "__argc".
2372         Similarly for __argv.
2374 2001-08-21  Roland McGrath  <roland@frob.com>
2376         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
2378         * mach/Makefile (tests): Removed.
2379         * mach/hello.c: File removed.
2381 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
2383         * po/sv.po: Update from translation team.
2385         * stdio-common/vfscanf.c: Fix handling of %l[].
2386         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
2388         * libio/Makefile (tests): Add tst-sscanf.
2389         * libio/tst-sscanf.c: New file.
2391         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
2392         * malloc/mtrace.c (tr_where): dli_sname always points to a
2393         non-empty string if != NULL.
2394         Reported by Tim Janik <timj@gtk.org>.
2396 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
2398         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
2399         buf.  Free resources on failure.
2400         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
2401         (makefd_xprt): Likewise.
2402         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
2403         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
2404         * sunrpc/auth_unix.c (authunix_create): Likewise.
2406 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
2408         * string/strnlen.c: Remove.
2409         * sysdeps/generic/strnlen.c: New file.
2410         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
2412 2001-08-21  Roland McGrath  <roland@frob.com>
2414         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
2415         as a macro, not an extern inline function.
2417         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
2418         * Versions.def (libc): Add GLIBC_2.2.5 set.
2419         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
2420         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
2422 2001-08-20  Roland McGrath  <roland@frob.com>
2424         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
2425         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
2427 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
2429         * string/bits/string2.h: Remove strnlen optimization here.
2430         * sysdeps/i386/i486/bits/string.h: Add it here.
2432 2001-08-21  Wolfram Gloger  <wg@malloc.de>
2434         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
2436 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
2438         * po/gl.po: Update from translation team.
2440 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
2442         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
2443         * misc/err.c (convert_and_print): Likewise.
2445         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
2446         function calls.
2448 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2450         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
2451         change of the gregset_t type.
2452         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
2454 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2456         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
2458 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
2460         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
2462         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
2464 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
2466         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
2467         before calling the cthreads initialization code.
2469 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
2471         * argp/argp-help.c: Fix two problems introduced in last change.
2473         * include/dirent.h: Include <dirstream.h> first.
2475 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
2477         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
2479         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
2480         * sunrpc/xdr_rec.c: Likewise.
2481         * sunrpc/xdr_mem.c: Likewise.
2482         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
2483         * sunrpc/rpc_cmsg.c: Likewise.
2484         * sunrpc/getrpcport.c (getrpcport): Likewise.
2485         * sunrpc/clnt_simp.c (callrpc): Likewise.
2486         * sunrpc/clnt_gen.c (clnt_create): Likewise.
2487         * string/envz.c: Likewise.
2489         * po/ko.po: Update from translation team.
2491         * argp/argp-help.c: Handle wide oriented stderr stream.
2493 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
2495         * sysdeps/generic/strtol.c: Little optimizations.  Add some
2496         __builtin_expect.
2498         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
2500         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
2501         * wcsmbs/wcwidth.c (wcwdith): Likewise.
2502         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
2504         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
2506         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
2508         * time/time.h (struct timespec): Use __time_t for tv_sec element.
2510         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
2511         wchar_t for function declarations and defintions.
2513         * misc/sys/select.h: Define __need_time_t before including <time.h>.
2514         Define suseconds_t if it hasn't happened yet.
2516         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
2518         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
2520         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
2521         <stddef.h>.
2523         * conform/data/stddef.h-data: Remove wint_t.
2525         * conform/conformtest.pl: Change namespace test to take #undef
2526         lines into account.
2528         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
2530         * conform/data/sys/socket.h-data: Add sockatmark.
2532 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
2534         * io/fts.c: Update from recent BSD source.
2536 2001-08-17  Roland McGrath  <roland@frob.com>
2538         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
2539         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
2540         Likewise.
2542 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
2544         * locale/duplocale.c (__duplocale): Also initialize the special
2545         __ctype_* elements.
2547         * conform/data/netdb.h-data: Adjust gai_strerror return type.
2549 2001-08-17  Andreas Jaeger  <aj@suse.de>
2551         * misc/getpass.c: Include wchar.h for prototypes.
2552         * malloc/obstack.c: Likewise.
2554 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
2556         * sunrpc/svc_simple.c (universal): Use __write instead of write.
2558         * wcsmbs/wcscoll.c: Also define __wcscoll.
2559         * include/wchar.h: Declare __wcscoll.
2561         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
2562         * libio/vwprintf.c: Likewise.
2563         * libio/wprintf.c: Likewise.
2565         * iconv/gconv_cache.c: Use __munmap instead of munmap.
2567 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
2569         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
2570         instead of mbrtowc.
2571         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
2572         wcslen, and __wcscoll instead of wcscoll.
2574         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
2576         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
2577         __getuid instead of getuid.
2579         * stdio-common/perror.c (perror): Use __close instead of close.
2580         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
2581         * libio/freopen.c (freopen): Likewise.
2582         * libio/freopen64.c (freopen64): Likewise.
2584         * libio/tst-ungetwc2.c (main): Define str const.
2586         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
2587         * libio/fwprintf.c: Also define __fwprintf.
2588         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
2589         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
2590         * assert/assert-perr.c: Likewise.
2591         * assert/assert.c: Likewise.
2592         * gmon/gmon.c: Likewise.
2593         * inet/rcmd.c: Likewise.
2594         * malloc/obstack.c: Likewise.
2595         * misc/err.c: Likewise.
2596         * misc/error.c: Likewise.
2597         * misc/getpass.c: Likewise.
2598         * posix/getopt.c: Likewise.
2599         * resolv/res_hconf.c: Likewise.
2600         * stdio-common/perror.c: Likewise.
2601         * stdio-common/psignal.c: Likewise.
2602         * stdlib/fmtmsg.c: Likewise.
2603         * sunrpc/auth_unix.c: Likewise.
2604         * sunrpc/clnt_perr.c: Likewise.
2605         * sunrpc/clnt_tcp.c: Likewise.
2606         * sunrpc/clnt_udp.c: Likewise.
2607         * sunrpc/clnt_unix.c: Likewise.
2608         * sunrpc/svc_simple.c: Likewise.
2609         * sunrpc/svc_tcp.c: Likewise.
2610         * sunrpc/svc_udp.c: Likewise.
2611         * sunrpc/svc_unix.c: Likewise.
2612         * sunrpc/xdr.c: Likewise.
2613         * sunrpc/xdr_array.c: Likewise.
2614         * sunrpc/xdr_rec.c: Likewise.
2615         * sunrpc/xdr_ref.c: Likewise.
2616         * sysdeps/generic/wordexp.c: Likewise.
2618         * po/it.po: Update from translation team.
2620         * misc/err.c: Handle wide oriented stderr stream.
2622 2001-08-14  Tom Rix  <trix@redhat.com>
2624         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
2625         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
2627 2001-08-13  Tom Rix  <trix@redhat.com>
2629         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
2630         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
2631         and __intptr_t.
2633 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2635         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
2636         Store the access registers to the ucontext structure.
2637         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
2638         Likewise.
2640         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
2641         Load the access registers from the ucontext structure.
2642         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
2643         Likewise.
2645         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
2646         offsets to the new ucontext layout.
2647         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
2649         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
2650         of the ucontext structure.
2651         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
2653 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
2655         * misc/error.c (error): Handle wide oriented stderr stream correctly.
2656         (error_at_line): Likewise.
2658         * stdio-common/perror.c (perror): Implement according to standard.
2659         The stream orientation must not be changed if the stream was not
2660         oriented before the call.
2661         * stdio-common/Makefile (tests): Add tst-perror.
2662         * stdio-common/tst-perror.c: New file.
2665 See ChangeLog.12 for earlier changes.