Update.
[glibc.git] / ChangeLog
blob42bf1914c6196553dab9aa4f8602de15b2502f0a
1 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
3         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
4         for removing reference of module in slotinfo list.
5         (_dl_close): Use remove_slotinfo.
6         * sysdeps/generic/dl-tls.c: General pretty printing.
7         (oom): Define only if SHARED.
8         (_dl_next_tls_modid): Correct starting point for the case we assume
9         there is a gap.  Add missing instruction grouping (doh!).  Correct
10         tests for reaching maximum index.
11         * elf/Makefile: Add rules to build and run tst-tls7.
12         * elf/tst-tls7.c: New file.
13         * elf/tst-tlsmod3.c: New file.
15         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
16         USE_TLS.
17         * elf/tst-tlsmod2.c: Likewise.
19         * elf/dl-close.c (_dl_close): When closing an object using TLS
20         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
21         true.  Increment dl_tls_generation only if we closed any TLS-using
22         object.
23         * elf/tst-tls6.c: New file.
24         * elf/Makefile: Add rules to build and run tst-tls6.
26         * po/da.po: Update from translation team.
28         * locale/categories.def: Fix typo [PR libc/2948].
29         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
30         [PR libc/2949].
31         * locale/iso-4217.def: Update from official version [PR libc/2950].
32         * glibcbug.in: Honor TMPDIR [PR libc/2951].
33         * locale/programs/ld-collate.c (collate_finish): Bail out with a
34         message if input is too confusion instead of using assert.
35         (collate_read): Don't crash on unknown symbol [PR libc/2952].
36         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
38         * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
39         * elf/tst-tls2.c: Likewise.
40         * elf/tst-tls3.c: Likewise.
42 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
44         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
46 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
48         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
49         if this is really necessary.
51         * elf/dl-close.c (_dl_close): Implement freeing entries in the
52         slotinfo array.
53         (free_mem): Free memory for the slotinfo array if possible.
55 2002-02-12  Andreas Schwab  <schwab@suse.de>
57         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
59 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
61         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
62         TLS_DTV_UNALLOCATE.
63         (oom): New function.
64         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
65         (_dl_determine_tlsoffset): Likewise.
66         (_dl_allocate_tls): Likewise.
67         (__TLS_GET_ADDR): Define if not already defined.
68         (_dl_tls_symaddr): New function.
69         (allocate_and_init): New function.
70         (__tls_get_addr): Actually implement handling of generation counter
71         and deferred allocation.
72         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
73         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
74         _dl_tls_generation.
75         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
76         Declare _dl_tls_symaddr.
77         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
78         SHARED.
79         * include/link.h (struct link_map):  Remove l_tls_nextimage and
80         l_tls_previmage.
81         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
82         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
83         (_dl_vsym): Likewise.
84         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
85         layout.
86         (dl_main): Allow PT_TLS be present for empty segment.  Remove
87         nextimage list handling.  Instead add all modules using TLS to
88         dl_tls_dtv_slotinfo_list.
89         * elf/dl-open.c (dl_open_worker): After successfully loading all
90         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
91         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
92         empty segment don't do anything.  Remove handling of initimage list.
93         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
94         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
95         * elf/dl-minimal.c: Define __libc_memalign.
96         * elf/dl-support.c: Remove _dl_initimage_list.  Add
97         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
98         _dl_tls_generation.
99         * include/stdlib.h: Declare __libc_memalign.
101         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
102         * elf/tst-tls4.c: New file.
103         * elf/tst-tls5.c: New file.
104         * elf/tst-tlsmod2.c: New file.
106         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
108         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
110         * elf/tst-tls1.c: Use test-skeleton.c.
111         * elf/tst-tls2.c: Likewise.
112         * elf/tst-tls3.c: Likewise.
114         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
116 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
118         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
120 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
122         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
124         * elf/tst-tls3.c: New file.
125         * elf/tst-tlsmod1.c: New file.
126         * elf/Makefile: Add rules to build and run tst-tls3.
128         * sysdeps/i386/dl-machine.h: Include <tls.h>.
129         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
130         TLS relocations.
132         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
134         * po/fr.po: Update from translation team.
136         * elf/tls-macros.h: Add alternative macros for use in PIC.
138         * elf/dl-lookup.c: Include <tls.h>.
139         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
141         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
142         required by passing pointer to last element of the list.
144         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
145         l_tls_initimage to a place where it actually is performed.
147         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
148         after globfree() calls.
150         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
151         (openaux): Pass open_mode as new last argument to _dl_map_object.
152         (_dl_map_object_deps): Add new argument open_mode.  Initialize
153         open_mode element of args variable with it.
154         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
155         _dl_map_object_deps.
156         * elf/rtld.c (dl_main): Add zero as last parameter to
157         _dl_map_object_deps call.
158         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
159         * elf/nodlopen2.c: New file.
160         * elf/nodlopenmod2.c: New file.
161         * elf/Makefile: Add rules to build and run nodlopen2.
163         * elf/tst-tls1.c: Move TLS helper macros to...
164         * elf/tls-macros.h: ...here.  New file.
165         * elf/tst-tls2.c: New file.
166         * elf/Makefile (tests): Add tst-tls2.
167         (distribute): Add tls-macros.h.
169         * po/sv.po: Update from translation team.
171         * elf/tst-tls1.c (main): Add complete set of tests.  Split
172         architecture specific definitions from the actual test code.
174         * po/tr.po: Update from translation team.
176 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
178         * elf/Makefile (tests): Add tst-tls1.
179         * elf/tst-tls1.c: New file.
181         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
182         alignment of TCB for now.
184         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
185         initialization image for the application itself.
187         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
188         loop to initialize TLS block.
190 2002-02-08  Richard Henderson  <rth@redhat.com>
192         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
193         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
195         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
197 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
199         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
201 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
203         * po/ca.po: Update from translation team.
204         * po/sk.po: Likewise.
206         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
207         (dl_main): Move dtv/static TLS handling before relocation.
208         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
209         TLS_INIT_TP to allocate and install the dtv/static TLS block.
210         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
211         so far uses TLS initialize GL(dl_tls_static_size) and
212         GL(dl_tls_static_align) to account for the TCB.
213         (_dl_allocate_tls): New function.
214         * sysdeps/generic/ldsodefs.h (rtld_global): Add
215         _dl_initial_dtv_malloced.
217         * configure.in: Test for __builtin_memset more realistically.
219         * csu/version.c (banner): If TLS support is available say so.
221 2002-02-04  H.J. Lu  <hjl@gnu.org>
223         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
224         __attribute_used__.
225         (__dl_runtime_resolve): Likewise.
227         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
228         declaration.
230 2001-11-15  H.J. Lu  <hjl@gnu.org>
232         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
233         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
235         * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
237 2002-02-07  H.J. Lu  <hjl@gnu.org>
239         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
240         ".set noreorder".
241         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
242         Likewise.
244 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
246         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
248         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
249         ___tls_get_addr_internal.
250         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
252         * po/ko.po: Update from translation team.
254 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
256         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
257         attribute, change __pad{1,2} type to unsigned int.
258         (struct stat64): Remove packed attribute.
260 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
262         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
264 2002-02-07  Andreas Schwab  <schwab@suse.de>
266         * configure.in: Fix check for -zcombreloc.
268 2002-02-06  H.J. Lu  <hjl@gnu.org>
270         * config.h.in (HAVE_BUILTIN_MEMSET): New.
271         * configure.in: Check if __builtin_memset really works.
272         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
273         __GNUC_PREREQ (2, 96) before using __builtin_memset.
275 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
277         * io/bug-ftw3.c (main): Don't try the test if root.
279 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
281         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
282         constraints.
283         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
284         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
285         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
286         Likewise.
287         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
288         a weak alias for __clone.
289         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
290         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
291         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
292         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
293         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
294         a weak alias for __mmap64.
296 2002-02-05  H.J. Lu  <hjl@gnu.org>
298         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
299         (atomic_add): Likewise.
300         (compare_and_swap): Likewise.
301         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
303 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
305         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
307         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
308         alignment of the TCB and store total size and alignment of static
309         TLS block in _dl_tls_static_size and _dl_tls_static_align.
310         tls_index is a typedef.
311         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
312         _dl_tls_static_align.
313         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
314         * elf/dl-support.c: Define _dl_tls_static_size and
315         _dl_tls_static_align.
317 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
319         * configure.in: Add --without-tls option.
320         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
321         --without-tls is given.
323         * sysdeps/generic/dl-tls.c: Include <tls.h>.
325         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
327 2002-02-06  Roland McGrath  <roland@frob.com>
329         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
330         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
332         * scripts/versions.awk: Improve error message for missing version.
333         Each version inherits from the last one only if they have the same
334         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
335         but not GLIBC_x and FOO_y.
337         * scripts/firstversions.awk: Handle libraries that don't have each
338         particular version named in the third column of shlib-versions.
340         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
342 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
344         * Versions.def [ld]: Add GLIBC_2.3.
345         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
346         * elf/Makefile (dl-routines): Add dl-tls.
347         (distribute): Add dl-tls.h.
348         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
349         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
350         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
351         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
352         along with the other info in the link map.  Change queueing of init
353         images for double linked list.  Use _dl_next_tls_modid to compute
354         l_tls_modid.
355         * elf/rtld.c (_dl_start_final): Store alignment requirement
356         along with the other info in rtld map and executable map.
357         (dl_main): Add ld.so to the init image list if necessary.  Compute
358         final module ID with _dl_next_tls_modid.
359         * include/link.h (struct link_map): Add l_tls_previmage and
360         l_tls_align.
361         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
362         * sysdeps/i386/elf/Versions: New file.
363         * sysdeps/generic/dl-tls.c: New file.
364         * sysdeps/generic/dl-tls.h: New file.
365         * sysdeps/i386/dl-tls.h: New file.
367 2002-02-06  Roland McGrath  <roland@frob.com>
369         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
370         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
372 2002-01-05  Roland McGrath  <roland@frob.com>
374         * sysdeps/mach/configure.in: New file.
375         * sysdeps/mach/configure: New generated file.
377         * mach/Makefile (user-interfaces): Remove default_pager_helper.
378         It has never been used by anything.
380 2002-02-06  H.J. Lu  <hjl@gnu.org>
382         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
383         is included.
385 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
387         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
388         attribute((packed)) to counter stupid people misusing gcc options.
389         (struct stat64): Likewise.
391 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
393         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
394         the variables which are used as booleans.
396 2002-02-06  Andreas Jaeger  <aj@suse.de>
398         * include/libc-symbols.h (INTUSE): Renamed from INT.
399         * elf/dl-deps.c: Change users.
400         * sysdeps/generic/dl-sysdep.c: Likewise.
401         * sysdeps/generic/dl-cache.c: Likewise.
402         * elf/dl-reloc.c: Likewise.
403         * elf/rtld.c: Likewise.
404         * elf/dl-version.c: Likewise.
405         * elf/dl-load.c: Likewise.
406         * elf/dl-dst.h: Likewise.
407         * elf/dl-init.c: Likewise.
408         * elf/dl-error.c: Likewise.
409         * elf/dl-fini.c: Likewise.
410         * elf/dl-runtime.c: Likewise.
411         * elf/do-lookup.h: Likewise.
413         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
414         definition.
415         * stdio-common/_itowa.h: Likewise.
417 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
419         * elf/dl-minimal.c: Define _itoa_lower_digits.
421         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
422         DT_FLAGS set.
424         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
425         loading modules with the DF_STATIC_TLS flag set.
426         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
427         element.
428         * include/link.h (struct link_map): Add l_flags field.
429         * elf/elf.h (DF_STATIC_TLS): New definition.
431         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
432         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
434         * elf/rtld.c (process_dl_debug): Correct printing help message.
435         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
436         for %s.
438         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
439         definition and pass &errno in use of this variable.
440         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
442 2002-02-04  Andreas Schwab  <schwab@suse.de>
444         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
445         * locale/programs/charmap-dir.c: Wrap calls that output messages
446         with WITH_CUR_LOCALE.  Include "localedef.h" first.
447         * locale/programs/charmap.c: Likewise.
448         * locale/programs/ld-address.c: Likewise.
449         * locale/programs/ld-collate.c: Likewise.
450         * locale/programs/ld-ctype.c: Likewise.
451         * locale/programs/ld-identification.c: Likewise.
452         * locale/programs/ld-measurement.c: Likewise.
453         * locale/programs/ld-messages.c: Likewise.
454         * locale/programs/ld-monetary.c: Likewise.
455         * locale/programs/ld-name.c: Likewise.
456         * locale/programs/ld-numeric.c: Likewise.
457         * locale/programs/ld-paper.c: Likewise.
458         * locale/programs/ld-telephone.c: Likewise.
459         * locale/programs/ld-time.c: Likewise.
460         * locale/programs/linereader.c: Likewise.
461         * locale/programs/linereader.h: Likewise.
462         * locale/programs/localedef.c: Likewise.
463         * locale/programs/locfile.c: Likewise.
464         * locale/programs/repertoire.c: Likewise.
466 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
468         * elf/rtld.c (_dl_start_final): Determine load address to locate
469         ehdr with GL(dl_rtld_map).l_map_start.
471         * po/ca.po: Update from translation team.
473         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
474         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
475         header entry.
476         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
477         _dl_tls_module_cnt.
478         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
480 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
482         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
483         * include/link.h (struct link_map): Add various members for TLS
484         information.
485         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
486         _rtld_tlsoffset, add _dl_initimage_list.
487         * sysdeps/i386/dl-lookupcfg.h: New file.
488         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
489         TLS relocation.  When using TLS we now use RESOLVE_MAP.
490         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
491         is used.
493         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
494         unused.
496         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
497         thread-pointer as soon as possible.
498         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
499         elements in rtld_global.
500         * sysdeps/generic/tls.h: New file.
501         * elf/Makefile (distribute): Add tls.h.
502         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
503         relocations.  Not complete yet.
505         * resolv/resolv.h: Allow user to define __need_res_state and only
506         define __res_start structure then.
507         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
509         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
510         dl_cpuclock_offset initialization to _dl_start_final.
511         (_dl_show_auxv): Avoid unnecessary sign extension.
512         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
514 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
516         * config.h.in: Add HAVE_TLS_SUPPORT.
517         * sysdeps/i386/elf/configure.in: New file.
519 2002-02-03  Andreas Schwab  <schwab@suse.de>
521         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
522         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
524 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
526         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
527         alloca if the memory reqirements are too high.
529 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
531         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
532         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
533         the former is available anyway and speed isn't important here.
534         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
535         * elf/dl-version.c (match_symbol): Likewise.
536         (_dl_check_map_versions): Likewise.
537         * elf/rtld.c (process_envvars): Likewise.
538         (print_statistics): Likewise.
539         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
540         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
541         bases.  Add assert to catch uses of unimplemented features.
542         (__strsep): Add assert to catch uses of unimplemented features.
543         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
544         and avoid inline optimization.
545         * elf/rtld.c (process_envvars): Likewise.
546         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
547         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
548         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
550 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
552         * stdio-common/_itoa.h: Minor simplifications of the code.
553         * stdio-common/_itoa.c: Likewise.
555         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
556         instead of _dl_printf for debugging info output.
558         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
559         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
561 2002-02-01  H.J. Lu  <hjl@gnu.org>
563         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
564         (atomic_add): Likewise.
565         (compare_and_swap): Return 0 only when failed to compare. Use
566         branch likely.
568         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
569         branch likely.
571 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
573         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
575 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
577         * elf/dl-minimal.c (__strsep): New minimal implementation.
579 2002-02-02  Paul Eggert  <eggert@twinsun.com>
581         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
582         (__mktime_internal): If no tm_isdst is requested, prefer solutions
583         with tm_isdst > 0 when the requested time falls within a
584         spring-forward gap [PR libc/2894].
586 2002-02-03  Andreas Schwab  <schwab@suse.de>
588         * stdio-common/tst-rndseek.c: Increase timeout.
590 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
592         Change ld.so to not use functions which are exported.  One cannot
593         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
594         definitions.
595         * include/libc-symbols.h: Define INT and INTDEF.
596         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
597         _dl_signal_error_internal, _dl_map_object_internal,
598         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
599         _dl_lookup_versioned_symbol_internal,
600         _dl_relocate_object_internal, _dl_debug_state_internal,
601         _dl_start_profile_internal, and _dl_unload_cache_internal.
602         * include/dlfcn.h: Declare _dl_catch_error_internal.
603         * elf/rtld.c: Use INT for calls to any of the *_internal functions
604         above.  Add INTDEF to function definitions.
605         * elf/dl-debug.c: Likewise.
606         * elf/dl-deps.c: Likewise.
607         * elf/dl-dst.h: Likewise.
608         * elf/dl-error.c: Likewise.
609         * elf/dl-fini.c: Likewise.
610         * elf/dl-init.c: Likewise.
611         * elf/dl-load.c: Likewise.
612         * elf/dl-lookup.c: Likewise.
613         * elf/dl-misc.c: Likewise.
614         * elf/dl-open.c: Likewise.
615         * elf/dl-profile.c: Likewise.
616         * elf/dl-reloc.c: Likewise.
617         * elf/dl-runtime.c: Likewise.
618         * elf/dl-version.c: Likewise.
619         * elf/do-lookup.h: Likewise.
620         * sysdeps/generic/dl-cache.c: Likewise.
621         * sysdeps/generic/dl-sysdep.c: Likewise.
622         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
623         instead of _dl_init.
624         * sysdeps/arm/dl-machine.h: Likewise.
625         * sysdeps/cris/dl-machine.h: Likewise.
626         * sysdeps/hppa/dl-machine.h: Likewise.
627         * sysdeps/i386/dl-machine.h: Likewise.
628         * sysdeps/ia64/dl-machine.h: Likewise.
629         * sysdeps/m68k/dl-machine.h: Likewise.
630         * sysdeps/mips/dl-machine.h: Likewise.
631         * sysdeps/mips/mips64/dl-machine.h: Likewise.
632         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
633         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
634         * sysdeps/sh/dl-machine.h: Likewise.
635         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
636         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
637         * sysdeps/x86_64/dl-machine.h: Likewise.
638         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
640         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
641         and _dl_debug_initialize.
643         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
644         more information.
645         * elf/rtld.c (dl_main): Avoid strrchr.
646         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
647         result of readlink.  Search from the back for '/'.
649         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
650         strncpy if possible.
652         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
653         strncmp.
654         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
655         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
656         strspn, and strcspn.
657         (process_envvars): Don't use strcspn.
659         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
660         (_dl_dst_substitute): Likewise.
662 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
664         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
665         code which is never used when relocating ld.so itself.
667         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
668         starting ld.so itself.  Move l_addr variable initialization closer
669         to use.
670         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
672 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
674         * Versions.def (libc): Add GLIBC_PRIVATE.
675         (libdb, libnss_db, libdb1): Remove.
676         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
677         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
678         (libpthread): Add GLIBC_PRIVATE.
679         (libresolv): Likewise, remove GLIBC_2.1.
680         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
681         GLIBC_2.2.3, GLIBC_2.3.
682         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
683         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
684         _dl_sym, _dl_vsym): Likewise.
685         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
686         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
687         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
688         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
689         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
690         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
691         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
692         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
693         Likewise.
694         (_dl_object_relocation_scope): Remove.
695         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
696         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
697         __gconv_cache): Move to GLIBC_PRIVATE.
698         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
699         __internal_setnetgrent): Likewise.
700         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
701         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
702         * locale/Versions (__collate_element_hash, __collate_element_strings,
703         __collate_symbol_classes, __collate_symbol_hash,
704         __collate_symbol_strings, _nl_current_LC_COLLATE,
705         _nl_current_LC_CTYPE): Likewise.
706         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
707         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
708         (libnss_nis, libnss_nisplus): Likewise.
709         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
710         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
711         (libnss_files): Move all symbols to GLIBC_PRIVATE.
712         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
713         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
714         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
715         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
716         __ns_get16, __ns_samename): Likewise.
717         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
718         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
719         GLIBC_PRIVATE.
720         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
721         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
722         __libc_connect): Likewise.
723         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
724         Likewise.
725         * stdlib/Versions (__libc_system): Likewise.
726         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
727         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
728         * sysdeps/ia64/fpu/Versions: Likewise.
729         * sysdeps/ia64/Versions: Likewise.
730         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
731         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
732         to GLIBC_PRIVATE.
733         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
734         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
735         __libc_sigaction): Likewise.
736         * termios/Versions (__libc_tcdrain): Likewise.
738         * misc/sys/cdefs (__attribute_noinline__): Define.
739         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
740         __attribute_noinline__.
742         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
743         * elf/dl-xstat64.c: New file.
744         * elf/dl-fxstat64.c: New file.
745         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
746         don't export __fxstat64 at multiple versions.
747         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
748         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
750 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
752         * locale/program/ld-collate.c (collate_finish): Assign a wide
753         char collation sequence value to multi character collating
754         elements, and avoid over writing by non-character elements.
756 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
758         * elf/Makefile (distribute): Add dl-procinfo.c.
759         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
760         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
762 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
764         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
765         definition.
766         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
767         _rtld_global struct.
768         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
769         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
770         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
771         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
772         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
773         _dl_fpu_control_set): Remove unused externs.
774         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
775         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
776         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
777         related variables in _rtld_global struct.
778         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
779         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
780         unused extern.
782 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
784         * sysdeps/generic/dl-procinfo.c: New file.
786 2002-02-01  Andreas Schwab  <schwab@suse.de>
788         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
790 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
792         * elf/rtld.c (_dl_start): Mark as internal_function.
793         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
794         in register.
795         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
796         General pretty printing.
798 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
800         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
801         * elf/dl-reloc.c: Pretty printing.
802         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
803         procinfo-related variables in rtld_global struct.
804         * elf/dl-support.c: Likewise.
805         * elf/rtld.c: Likewise.
806         * sysdeps/i386/i686/Makefile: Likewise.
807         * sysdeps/i386/i686/hp-timing.c: Likewise.
808         * sysdeps/i386/i686/hp-timing.h: Likewise.
809         * sysdeps/ia64/Makefile: Likewise.
810         * sysdeps/ia64/hp-timing.c: Likewise.
811         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
812         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
813         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
814         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
815         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
816         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
817         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
818         * sysdeps/x86_64/Makefile: Likewise.
820         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
821         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
822         _dl_debug_fd to rtld_global.
823         * elf/Versions: Likewise.
824         * elf/dl-close.c: Likewise.
825         * elf/dl-iteratephdr.c: Likewise.
826         * elf/dl-lookup.c: Likewise.
827         * elf/dl-misc.c: Likewise.
828         * elf/dl-open.c: Likewise.
829         * elf/dl-support.c: Likewise.
830         * elf/do-lookup.h: Likewise.
831         * elf/rtld.c: Likewise.
832         * sysdeps/generic/dl-cache.c: Likewise.
833         * sysdeps/generic/dl-sysdep.c: Likewise.
834         * sysdeps/ia64/Versions: Likewise.
835         * sysdeps/unix/clock_gettime.c: Likewise.
836         * sysdeps/unix/clock_settime.c: Likewise.
837         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
838         * sysdeps/sparc/Versions: Removed.
839         * sysdeps/i386/i686/Versions : Removed.
840         * sysdeps/x86_64/Versions: Removed.
841         * configure.in: Define HAVE_PROTECTED if .protected is available.
842         * config.h.in: Add entry for HAVE_PROTECTED.
844 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
846         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
847         code in struct _rtld_global.  Export this struct, remove all
848         exports for the signal variables.
849         * sysdeps/arm/dl-machine: Likewise.
850         * sysdeps/generic/dl-origin: Likewise.
851         * sysdeps/generic/dl-sysdep: Likewise.
852         * sysdeps/generic/dl-cache: Likewise.
853         * sysdeps/hppa/dl-fptr: Likewise.
854         * sysdeps/hppa/dl-machine: Likewise.
855         * sysdeps/cris/dl-machine: Likewise.
856         * sysdeps/i386/dl-machine: Likewise.
857         * sysdeps/ia64/dl-machine: Likewise.
858         * sysdeps/m68k/dl-machine: Likewise.
859         * sysdeps/mach/hurd/dl-sysdep: Likewise.
860         * sysdeps/mips/mips64/dl-machine: Likewise.
861         * sysdeps/mips/dl-machine: Likewise.
862         * sysdeps/powerpc/elf/libc-start: Likewise.
863         * sysdeps/powerpc/dl-machine: Likewise.
864         * sysdeps/powerpc/dl-start: Likewise.
865         * sysdeps/sparc/sparc32/dl-machine: Likewise.
866         * sysdeps/sparc/sparc64/dl-machine: Likewise.
867         * sysdeps/sh/dl-machine: Likewise.
868         * sysdeps/s390/s390-32/dl-machine: Likewise.
869         * sysdeps/s390/s390-64/dl-machine: Likewise.
870         * sysdeps/unix/sysv/aix/libc-start: Likewise.
871         * sysdeps/unix/sysv/aix/start-libc: Likewise.
872         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
873         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
874         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
875         * sysdeps/x86_64/dl-machine: Likewise.
877 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
879         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
880         are too high.
882 2002-01-31  Andreas Schwab  <schwab@suse.de>
884         * sysdeps/posix/readv.c: Check for ssize_t overflow.
886 2002-01-31  Andreas Schwab  <schwab@suse.de>
888         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
889         reference to _dl_pagesize.
891 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
893         * Versions.def [ld]: Add GLIBC_2.3.
894         * elf/dl-addr.c: Move global variables for SHARED code in struct
895         _rtld_global.  Export this struct, remove all exports for the
896         signal variables.
897         * elf/dl-close.c: Likewise.
898         * elf/dl-conflict.c: Likewise.
899         * elf/dl-debug.c: Likewise.
900         * elf/dl-deps.c: Likewise.
901         * elf/dl-dst.h: Likewise.
902         * elf/dl-error.c: Likewise.
903         * elf/dl-fini.c: Likewise.
904         * elf/dl-init.c: Likewise.
905         * elf/dl-iteratephdr.c: Likewise.
906         * elf/dl-libc.c: Likewise.
907         * elf/dl-load.c: Likewise.
908         * elf/dl-lookup.c: Likewise.
909         * elf/dl-minimal.c: Likewise.
910         * elf/dl-object.c: Likewise.
911         * elf/dl-open.c: Likewise.
912         * elf/dl-profile.c: Likewise.
913         * elf/dl-profstub.c: Likewise.
914         * elf/dl-reloc.c: Likewise.
915         * elf/dl-runtime.c: Likewise.
916         * elf/dl-support.c: Likewise.
917         * elf/dl-sym.c: Likewise.
918         * elf/dl-version.c: Likewise.
919         * elf/do-lookup.h: Likewise.
920         * elf/do-rel.h: Likewise.
921         * elf/dynamic-link.h: Likewise.
922         * elf/rtld.c: Likewise.
923         * sysdeps/generic/dl-cache.c: Likewise.
924         * sysdeps/generic/dl-sysdep.c: Likewise.
925         * sysdeps/generic/ldsodefs.h: Likewise.
926         * sysdeps/generic/libc-start.c: Likewise.
927         * sysdeps/i386/dl-machine.h: Likewise.
928         * sysdeps/ia64/dl-fptr.c: Likewise.
929         * sysdeps/ia64/dl-machine.h: Likewise.
930         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
931         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
932         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
933         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
934         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
935         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
936         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
937         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
939 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
941         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
942         to avoid warning
943         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
945         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
946         SHARED version.
947         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
949         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
951 2002-01-29  Ben Collins  <bcollins@debian.org>
953         * string/bits/string2.h (__mempcpy): Protect size arg for
954         addition when using __builtin_memcpy.
956 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
958         * stdlib/Makefile (tests): Add tst-qsort.
959         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
961         * manual/signal.texi (Process Signal Mask): Document that
962         pthread_sigmask, not sigprocmask, must be used in MT programs.
963         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
965         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
966         found.
967         * misc/Makefile (tests): Add tst-hsearch.
968         * misc/tst-hsearch.c: New file.
970 2002-01-18  Wolfram Gloger  <wg@malloc.de>
972         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
973         * malloc/malloc.h: Likewise.
974         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
975         * malloc/arena.c: New file.
976         * malloc/hooks.c: New file.
977         * malloc/tst-mallocstate.c: New file.
978         * malloc/Makefile: Add new testcase tst-mallocstate.
979         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
981 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
983         * stdlib/msort.c: Remove last patch.  The optimization violates the
984         same rule which qsort.c had problems with.
986 2002-01-27  Paul Eggert  <eggert@twinsun.com>
988         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
989         to a pivot element that lies outside the array to be sorted, as
990         ISO C99 requires that the comparison function be called only with
991         addresses of array elements [PR libc/2880].
993 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
995         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
996         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
998         * timezone/asia: Update from tzdata2002b.
999         * timezone/australasia: Likewise.
1000         * timezone/backward: Likewise.
1001         * timezone/europe: Likewise.
1002         * timezone/leapseconds: Likewise.
1003         * timezone/iso3166.tab: Likewise.
1004         * timezone/zone.tab: Likewise.
1006 2002-01-23  Richard Henderson  <rth@redhat.com>
1008         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
1010 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
1012         * string/strxfrm.c: Allocate one more byte for rulearr and clear
1013         this element [PR libc/2855].
1015         * string/strcoll.c: Handle zero-length arguments specially
1016         [PR libc/2856].
1018 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
1020         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
1021         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
1022         short lengths and constant src.
1023         (strcpy): Don't optimize for gcc 3.0+.
1024         (__stpcpy): For gcc 3.0+, don't use
1025         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
1026         for short string literal src.
1028 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
1030         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
1031         Set for arm, too.
1033 2001-01-22  Paul Eggert  <eggert@twinsun.com>
1035         * manual/llio.texi (Linked Channels, Cleaning Streams):
1036         Make it clearer that a just-opened input stream might need cleaning.
1038 2002-01-21  H.J. Lu  <hjl@gnu.org>
1040         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
1041         Don't use label at end of compound statement.
1043 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
1045         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
1046         Remove test for negative integer arg; sin_pi does it correctly.
1048 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
1050         * nscd/Makefile (distribute): Filter out xmalloc.c.
1052 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
1054         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
1055         Set offset if read end wasn't the buffer end.
1056         (_IO_file_seekoff_mmap): New function.
1057         (_IO_file_xsgetn_mmap): New function.
1058         (_IO_file_jumps_mmap): Use the two new functions.
1059         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
1060         != end buffer.
1061         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
1062         _IO_file_underflow_mmap.
1063         * libio/iofopen.c: Don't position file descriptor at end of file.
1064         * libio/tst-widetext.c: Improve error messages.
1065         * stdio-common/tst-rndseek.c: Likewise.
1067 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
1069         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
1070         end of enum for !_GNU_SOURCE.
1071         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
1072         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
1073         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
1074         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
1075         values unless _GNU_SOURCE.
1077         * iconvdata/tcvn5712-1.c: Minor cleanups.
1079 2002-01-18  Andreas Schwab  <schwab@suse.de>
1081         * sysdeps/unix/sysv/linux/configure.in
1082         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
1084 2002-01-16  Roger Sayle  <roger@eyesopen.com>
1086         * stdlib/msort.c (msort_with_tmp): Replace implementation with
1087         more efficient "Towers of Hanoi" mergesort.
1088         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
1089         for generic, sizeof(int) and sizeof(long) variants respectively.
1091 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
1093         * manual/syslog.texi (openlog): Describe possible problems with
1094         first parameter.
1095         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
1097         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
1098         * nscd/connections.c (begin_drop_privileges): New function.
1099         (finish_drop_privileges): New function.
1100         (nscd_init): Call the new functions which also install all groups
1101         for the server user.
1102         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
1103         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
1105 2002-01-17  H.J. Lu  <hjl@gnu.org>
1107         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
1108         `const' from `got'.
1110 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1112         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
1113         instructions for pointer operations.
1114         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
1116 2002-01-17  Andreas Jaeger  <aj@suse.de>
1118         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
1119         __uint128_t build-in.
1121         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
1122         PowerPC, sync with 2.2 branch.
1124 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
1126         * posix/getconf.c: Update copyright year.
1127         * nss/getent.c: Likewise.
1128         * nscd/nscd_nischeck.c: Likewise.
1129         * iconv/iconvconfig.c: Likewise.
1130         * iconv/iconv_prog.c: Likewise.
1131         * elf/ldconfig.c: Likewise.
1132         * catgets/gencat.c: Likewise.
1133         * csu/version.c: Likewise.
1134         * elf/ldd.bash.in: Likewise.
1135         * elf/sprof.c (print_version): Likewise.
1136         * locale/programs/locale.c: Likewise.
1137         * locale/programs/localedef.c: Likewise.
1138         * nscd/nscd.c (print_version): Likewise.
1139         * debug/xtrace.sh: Likewise.
1140         * malloc/memusage.sh: Likewise.
1141         * malloc/mtrace.pl: Likewise.
1143 2002-01-16  Andreas Schwab  <schwab@suse.de>
1145         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
1146         reliably remove "-ia64" from rtld name.
1148 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
1150         * iconvdata/gb18030.c: Bug fixes and support for more characters.
1151         Patch by Yu Shao <yshao@redhat.com>.
1153 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1155         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
1156         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
1157         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
1159 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1161         * sysdeps/s390/fpu/libm-test-ulps: Update.
1163 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
1165         * elf/elf.h: Update x86 relocations.
1167 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
1169         * locale/programs/charmap.c (new_width): Check whether byte
1170         sequences for both ends of range have the same length.
1172 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
1174         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
1176 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
1178         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
1179         string literals.
1180         (__full_ieee754_sqrt): Add __attribute_used__.
1182 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
1184         * sysdeps/generic/group_member.c (__group_member): Also check
1185         groups[0] [PR libc/2781].
1187 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
1189         * Makefile (distribute): Add scripts/cpp.
1190         * elf/Makefile (distribute): Add reldep6mod[01234].c,
1191         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
1192         unwind-dw2-fde.h, and dwarf2.h.
1193         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
1194         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
1195         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
1196         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
1198 2002-01-07  Roland McGrath  <roland@frob.com>
1200         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
1201         volatile on type of ARGC so the compiler doesn't get clever.
1203 2002-01-07  Andreas Jaeger  <aj@suse.de>
1205         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
1206         * sysdeps/i386/bits/byteswap.h: Likewise.
1207         * sysdeps/ia64/bits/byteswap.h: Likewise.
1208         * sysdeps/m68k/bits/byteswap.h: Likewise.
1209         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
1210         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise.
1212 2002-01-02  Bruno Haible  <bruno@clisp.org>
1214         * intl/plural.y: Fix %expect count.
1216 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
1218         * elf/Makefile (routines, shared-only-routines): Add
1219         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
1220         * elf/elf.h (PT_GNU_EH_FRAME): Define.
1221         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
1222         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
1223         Optimize if .eh_frame section contains no FDEs.
1224         (__register_frame, __deregister_frame_info_bases,
1225         __deregister_frame): Likewise.
1226         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
1227         DW_CFA_restore handling.
1229 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
1231         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
1233         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
1234         for x < 0.25 and restore original range reduction method.
1235         (__ieee754_lgammal_r): Make sure signgam is set before returning.
1237 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
1239         * libio/fileops.c (_IO_file_underflow_mmap): New function.
1240         (_IO_file_close_mmap): New function.
1241         (_IO_file_jumps_mmap): New variable.
1242         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
1243         trying to convert rest of byte buffer.
1244         (_IO_wfile_underflow_mmap): New function.
1245         (_IO_wfile_jumps_mmap): New variable.
1246         * libio/iofopen.c (__fopen_maybe_mmap): New function.
1247         (__fopen_internal): New function.  Split out from _IO_new_fopen.
1248         (_IO_new_fopen): Call __fopen_internal.
1249         * libio/iofopen64.c: Just call __fopen_internal.
1250         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
1251         successfully.
1252         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
1253         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
1254         _IO_file_close_mmap.
1256         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
1257         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
1259         * stdio-common/Makefile (tests): Add tst-rndseek.
1260         * stdio-common/tst-rndseek.c: New file.
1262 2002-01-05  Roland McGrath  <roland@frob.com>
1264         * config.h.in (HAVE_MIG_RETCODE): New #undef.
1265         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
1266         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
1267         * sysdeps/mach/hurd/configure: Regenerated.
1269 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
1271         * elf/elf.h: Add more TLS definitions.
1273 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
1275         * include/features.h (__GLIBC_MINOR__): Bump to 3.
1277 2002-01-02  Roland McGrath  <roland@frob.com>
1279         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
1280         __sigisemptyset.  Don't use MASK uninitialized.
1282         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
1283         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
1284         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
1285         __sigdelset, __sigaddset, __sigorset.
1287         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
1288         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
1290         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
1291         _hurd_ports is null.
1293         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
1294         for old CMU and new OSF Mach interface flavors.
1295         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
1296         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
1298         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
1300         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
1301         Pass extra arguments to task_create for OSF variant.
1302         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
1304         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
1305         conditional on [HAVE_AUX_VECTOR].
1307         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
1308         mach_msg_timeout_t as type of final argument.
1310         * hurd/privports.c (__get_privileged_ports):
1311         Change host_priv_t to mach_port_t in argument type.
1312         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
1313         Update decls.
1315         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
1316         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
1317         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
1318         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
1319         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
1320         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1322 2002-01-01  Roland McGrath  <roland@frob.com>
1324         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
1326 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
1328         * include/stdlib.h: Define inlines for the _l variants of the strto*
1329         functions.
1331 2002-01-01  Roland McGrath  <roland@frob.com>
1333         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
1335         * mach/Machrules (MIG): Set CPP as well as CC.
1337 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
1339         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
1340         locale to parse /proc/loadavg [PR libc/2760].
1342 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
1344         * elf/dl-conflict.c: Include sys/param.h.
1345         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
1346         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
1347         warning.
1348         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
1349         literals to avoid warnings.
1351 2001-12-31  Andreas Jaeger  <aj@suse.de>
1353         * configure.in: Don't check for gsed since we do not use it anywhere.
1355 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
1357         * io/fts.c: Update from BSD to fix memory leaks.
1359 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
1361         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
1362         * elf/chroot_canon.c: Likewise.
1363         * elf/dl-object.c: Likewise.
1364         * iconv/iconv_charmap.c: Likewise.
1365         * iconv/iconv_prog.c: Likewise.
1366         * libio/iogetdelim.c: Likewise.
1367         * locale/lc-time.c: Likewise.
1368         * stdlib/canonicalize.c: Likewise.
1369         * sunrpc/svc.c: Likewise.
1370         * sysdeps/generic/glob.c: Likewise.
1372 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1374         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
1375         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
1376         remove high order bit from the program counter.
1377         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
1379 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1381         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
1382         unnecessary code and add missing reloc types.
1383         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
1384         case for reloc type R_390_NONE.
1386 2001-12-28  Andreas Jaeger  <aj@suse.de>
1388         * io/bug-ftw3.c: Include string.h for prototypes.
1390         * crypt/md5test.c (main): Remove unused variable.
1392         * dlfcn/modstatic.c: Add prototype to avoid warning.
1394 2001-12-26  Roland McGrath  <roland@frob.com>
1396         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
1397         check only (SS->pending & MASK) for the signal to return.
1398         From Jeroen Dekkers <jeroen@dekkers.cx>.
1400 2001-12-22  Roland McGrath  <roland@frob.com>
1402         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
1403         Use preprocessor #if conditionals instead of `if' to avoid
1404         warnings about divide by zero in dead code.
1406         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
1407         _hurd_port_init, and __hurd_self_sigstate.
1409         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
1411 2001-12-21  Andreas Jaeger  <aj@suse.de>
1413         * elf/dblloadmod1.c: Add prototype to avoid warning.
1414         * elf/dblloadmod2.c: Likewise.
1415         * elf/dblloadmod3.c: Likewise.
1416         * elf/reldepmod5.c: Likewise.
1417         * elf/reldepmod6.c: Likewise.
1419         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
1420         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
1421         used on all architectures.
1423         * sunrpc/svc_tcp.c: Add noreturn attribute for
1424         svctcp_rendezvous_abort.
1425         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
1427         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
1428         to avoid warning.
1430 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
1432         * manual/llio.texi (aio_fsync): Fix a typo.
1433         Patch by Tammy Fox <tfox@redhat.com>.
1435 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
1437         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
1438         stack bias from child stack pointer before passing it to clone syscall.
1440 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
1442         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
1443         _SC_TZNAME_MAX.
1444         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
1445         Reported by Thorsten Kukuk <kukuk@suse.de>.
1447         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
1448         add some casts.
1450         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
1452 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
1454         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
1455         conforming: return EBADF if file descriptor is invalid and EINVAL
1456         if file descriptor is no valid tty.
1457         * login/tst-grantpt.c: New file.
1458         * login/Makefile (tests): Add tst-grantpt.
1460 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
1462         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
1463         different than implemented in last patch.
1464         * io/bug-ftw3.c: Adjust test for changed handling of
1465         inaccessibility of toplevel dir.
1467 2001-12-16  Roland McGrath  <roland@frob.com>
1469         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
1470         * grp/initgroups.c (internal_getgrouplist): Likewise.
1472         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
1473         `default:' to silence new GCC warning.
1474         Rewrite cast of lvalue to silence new GCC warning.
1476         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
1478         * sysdeps/mach/hurd/spawni.c: New file, by me with a
1479         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
1481 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
1483         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
1484         Patch by Stephen R. van den Berg.
1486         * crypt/md5.h: Define md5_uintptr.
1488 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
1490         * libio/tst_swprintf.c (main): Add test for string argument with
1491         zero precision.
1492         * stdio-common/Makefile (tests): Add tst-sprintf.
1493         * stdio-common/tst-sprintf.c: New file.
1495 2001-12-13  Andreas Schwab  <schwab@suse.de>
1497         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
1498         zero precision with wide character string format.
1500 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
1502         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
1503         but have a user supplied buffer, return the empty buffer, not NULL.
1505 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
1507         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
1508         Patch by Eric Sharkey <sharkey@netrics.com>.
1510         * crypt/md5test.c (main): Add test for multiple calls to
1511         __md5_process_bytes to itererate over input string.
1513 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
1515         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
1516         from __nis_findfastest.  Take timeout value from parameter.
1517         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
1518         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
1519         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
1521 2001-12-12  Andreas Jaeger  <aj@suse.de>
1523         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
1524         combreloc test so that it works in this case.
1526         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
1528 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
1530         * sysdeps/sh/Makefile: New file.
1531         * sysdeps/sh/_mcount.S: New file.
1532         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
1533         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
1535 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
1537         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
1538         limitation [PR libc/2564].
1540 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
1542         * elf/Makefile (dl-routines): Add conflict.
1543         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
1544         (ld.so): Add _begin local symbol.
1545         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
1546         Define.
1547         * elf/dl-deps.c (_dl_build_local_scope): New.
1548         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
1549         of all libraries.
1550         * elf/do-rel.h (VALIDX): Define.
1551         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
1552         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
1553         can be skipped.
1554         * elf/dl-conflict.c: New file.
1555         * elf/dl-lookup.c (_dl_debug_bindings): New.
1556         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
1557         non-NULL.
1558         (_dl_lookup_symbol_skip): Likewise.
1559         (_dl_lookup_versioned_symbol): Likewise.
1560         (_dl_lookup_versioned_symbol_skip): Likewise.
1561         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
1562         define to ElfW(Rel).
1563         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
1564         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
1565         ranges.
1566         Don't adjust address dynamic tags if l_addr is 0.
1567         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
1568         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
1569         (VALIDX, ADDRIDX): Define.
1570         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
1571         (dl_main): Print library list for LD_TRACE_PRELINKING.
1572         If prelinking information can be used, skip relocating libraries and
1573         call _dl_resolve_conflicts instead.
1574         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
1575         * elf/dl-load.c (_dl_map_object): Don't create fake libs
1576         if LD_TRACE_PRELINKING.
1577         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
1578         + DT_ADDRNUM.
1579         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
1580         (DL_DEBUG_PRELINK): Define.
1581         (_dl_resolve_conflicts): Add prototype.
1583         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
1584         .plt for prelinked libraries where prelinking info cannot be used.
1585         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
1586         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
1587         * sysdeps/arm/bits/link.h: New file.
1588         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
1589         content of .got[1].
1590         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
1591         (ELF_MACHINE_PLT_REL): Define.
1592         (elf_machine_rela, elf_machine_rela_relative): New.
1593         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
1594         of adjusting it if prelinked and prelinking cannot be used.
1595         * sysdeps/i386/bits/link.h: New file.
1596         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
1597         content of .got[1].
1598         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
1599         (ELF_MACHINE_PLT_REL): Define.
1600         (elf_machine_rela, elf_machine_rela_relative): New.
1601         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
1602         of adjusting it if prelinked and prelinking cannot be used.
1603         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
1604         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
1605         to find out map for R_PPC_JMP_SLOT relocs.
1606         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
1607         (OPCODE_BA): Define.
1608         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
1609         libraries where prelinking info cannot be used.
1610         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
1611         (elf_machine_fixup_plt): Call sparc_fixup_plt.
1612         (elf_machine_rela): Set value to 0 if relocating conflicts.
1613         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
1614         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
1615         (sparc64_fixup_plt): Fix a typo.
1616         (elf_machine_rela): Set value to 0 if relocating conflicts.
1617         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
1618         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
1619         libraries where prelinking info cannot be used.
1620         * sysdeps/sh/bits/link.h: New file.
1621         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
1622         content of .got[1].
1623         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
1624         of adjusting it if prelinked and prelinking cannot be used.
1625         * sysdeps/s390/s390-32/bits/link.h: New file.
1626         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
1627         Save original content of .got[1].
1628         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
1629         of adjusting it if prelinked and prelinking cannot be used.
1630         * sysdeps/s390/s390-64/bits/link.h: New file.
1631         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
1632         Save original content of .got[1].
1633         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
1634         of adjusting it if prelinked and prelinking cannot be used.
1635         * sysdeps/x86_64/bits/link.h: New file.
1636         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
1637         Save original content of .got[1].
1638         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
1639         of adjusting it if prelinked and prelinking cannot be used.
1641 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
1643         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
1644         where appropriate instead of numbers.  Little optimizations.
1646 2001-12-10  Roland McGrath  <roland@frob.com>
1648         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
1649         set it.
1651         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
1652         set to GLIBC_2.2.5, not GLIBC_2.2.4.
1654         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
1655         Fix conditionals so this is set by default for stdio and not for libio.
1656         * sysdeps/mach/hurd/configure: Regenerated.
1658 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
1660         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
1662 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
1664         * io/Makefile (tests): Add bug-ftw3.
1665         * io/bug-ftw3.c: New file.
1667         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
1668         matches and GLOB_NOCHECK is set.
1669         * posix/globtest.sh: Correct expected result for NOCHECK test.
1671         * po/ca.po: Update from translation team.
1673 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
1675         Implement transliteration of characters in strings of the locale
1676         definitions.
1677         * locale/programs/linereader.c: Adjust for additional parameter to
1678         lr_token.
1679         (get_string): If character <Uxxxx> is not found try to transliterate
1680         it.
1681         * locale/programs/ld-ctype.c: Adjust for additional parameter to
1682         lr_token.  Add const to charmap parameter of all functions.
1683         (find_translit, find_translit2): New functions.
1684         * locale/programs/charmap.c: Adjust for additional parameter to
1685         lr_token.
1686         * locale/programs/repertoire.c: Likewise.
1687         * locale/programs/linereader.h: Likewise.
1688         * locale/programs/ld-address.c: Likewise.  Add const to charmap
1689         parameter of all functions.
1690         * locale/programs/ld-collate.c: Likewise.
1691         * locale/programs/ld-identification.c: Likewise.
1692         * locale/programs/ld-measurement.c: Likewise.
1693         * locale/programs/ld-messages.c: Likewise.
1694         * locale/programs/ld-monetary.c: Likewise.
1695         * locale/programs/ld-name.c: Likewise.
1696         * locale/programs/ld-numeric.c: Likewise.
1697         * locale/programs/ld-paper.c: Likewise.
1698         * locale/programs/ld-paper.c: Likewise.
1699         * locale/programs/ld-telephone.c: Likewise.
1700         * locale/programs/ld-time.c: Likewise.
1701         * locale/programs/locfile.c: Likewise.
1702         * locale/programs/localedef.c: Likewise.
1703         * locale/programs/localedef.h: Likewise.
1704         * locale/programs/locfile.h: Likewise.  Add declaration for
1705         find_translit.
1706         * locale/programs/simple-hash.c: Add const to first parameter of
1707         find_entry, iterate_table, and lookup.
1708         * locale/programs/simple-hash.h: Likewise.
1709         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
1710         instead.
1711         * include/locale.h: Define __LC_LAST.
1712         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
1714 2001-12-07  Geoff Keating  <geoffk@redhat.com>
1716         * sysdeps/powerpc/Dist: Update for recent FP changes.
1717         * sysdeps/powerpc/fpu/Dist: Likewise.
1719 2001-12-07  Andreas Schwab  <schwab@suse.de>
1721         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
1723 2001-12-06  Geoff Keating  <geoffk@redhat.com>
1725         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
1726         save/restore functions here.
1727         (libm-support): Don't define these functions here.
1728         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
1729         functions here.
1730         * sysdeps/powerpc/fe_nomask.c: Move to...
1731         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
1732         * sysdeps/powerpc/fprrest.S: Move to...
1733         * sysdeps/powerpc/fpu/fprrest.S: ... here.
1734         * sysdeps/powerpc/fprsave.S: Move to...
1735         * sysdeps/powerpc/fpu/fprsave.S: ... here.
1737 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
1739         * sysdeps/unix/sysv/linux/opensock.c: New file.
1741 2001-12-06  Geoff Keating  <geoffk@redhat.com>
1743         * config.make.in (with-fp): Define from configure.
1744         * configure.in: Substitute with_fp.
1745         * configure: Regenerate.
1746         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
1747         specified, and don't change FPU environment.
1749 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
1751         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
1752         * assert/assert.c: Check result of __asprintf call and don't use
1753         string if it failed.
1754         * assert/assert-perr.c: Likewise.
1755         * inet/rcmd.c: Likewise.
1756         * locale/programs/localedef.c (main): Check result of
1757         construct_output_path and exit if it failed.
1758         (construct_output_path): Check result of asprintf and mkdir calls and
1759         fail if they failed.
1760         * posix/getopt.c: Check result of __asprintf calls and fail if
1761         they failed.
1762         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
1764 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1766         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
1767         patch.
1768         * sysdeps/generic/strncase.c: Likewise.
1769         * string/tester.c: Add tests for strcasecmp and strncasecmp.
1771 2001-12-05  Geoff Keating  <geoffk@redhat.com>
1773         * scripts/cpp: Test the exit status from 'type', not 'awk'.
1775         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
1776         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
1777         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
1778         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
1779         * sysdeps/powerpc/fclrexcpt.c: Move to...
1780         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
1781         * sysdeps/powerpc/fpu_control.h: Move to...
1782         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
1784 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1786         * iconvdata/ibm1129.h: Remove duplicate mappings.
1787         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
1788         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
1789         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1791         * timezone/zic.c: Fix handling of turnaround times.
1792         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
1794 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
1796         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
1797         overflow problem.
1799 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1801         * posix/regex.c: For use outside glibc defined bounded pointer
1802         macros here.  Patch by Jim Meyering <jim@meyering.net>.
1804         * iconvdata/Makefile (modules): Add TCVN5712-1.
1805         * iconvdata/TESTS: Add TCVN5712-1.
1806         * iconvdata/gconv-modules: Likewise.
1807         * iconvdata/tcvn5712-1.c: New file.
1808         * iconvdata/testdata/TCVN-5712: New file.
1809         * iconvdata/testdata/TCVN-5712..UTF8: New file.
1811 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
1813         * iconvdata/cp1258.c: Optimize conversion from UCS4.
1815 2001-12-02  Roland McGrath  <roland@frob.com>
1817         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
1819         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
1820         Reported by Jeff Bailey <jbailey@nisa.net>.
1822         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
1823         Reported by Jeff Bailey <jbailey@nisa.net>.
1825         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
1826         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
1827         Reported by Jeff Bailey <jbailey@nisa.net>.
1829 2001-12-01  Roland McGrath  <roland@frob.com>
1831         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
1832         missing backslash in test arguments.
1833         * sysdeps/mach/hurd/configure: Regenerated.
1835 2001-11-26  Roland McGrath  <roland@frob.com>
1837         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
1838         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
1840 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
1842         * iconvdata/Makefile (modules): Add ARMSCII-8.
1843         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
1844         * iconvdata/armscii-8.c: New file.
1846 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
1848         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
1849         don't match, fix {{a,b},c} globbing, clean up.
1850         Patch by Flavio Veloso <flaviovs@magnux.com>.
1851         * posix/globtest.sh: Add new tests.
1853 2001-11-29  Andreas Jaeger  <aj@suse.de>
1855         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
1856         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
1858         * sysdeps/generic/abort.c: Include libioP.h for
1859         _IO_flush_all_lockp prototype.
1861 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
1863         * posix/regex.h: Define __restrict_arr correctly.
1865 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
1867         * iconvdata/ibm1163.c: New file.
1868         * iconvdata/ibm1163.h: New file.
1869         * iconvdata/ibm1164.c: New file.
1870         * iconvdata/ibm1164.h: New file.
1871         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
1872         * iconvdata/Makefile: Likewise.
1873         * iconvdata/testdata/IBM1163: New file.
1874         * iconvdata/testdata/IBM1163..UTF8: New file.
1875         * iconvdata/testdata/IBM1164: New file.
1876         * iconvdata/testdata/IBM1164..UTF8: New file.
1877         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1879         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
1880         * iconvdata/ibm1124.h: Likewise.
1881         * iconvdata/ibm1132.h: Likewise.
1882         * iconvdata/ibm1133.h: Likewise.
1883         * iconvdata/ibm1160.h: Likewise.
1884         * iconvdata/ibm1161.h: Likewise.
1885         * iconvdata/ibm1162.h: Likewise.
1886         * iconvdata/ibm856.h: Likewise.
1887         * iconvdata/ibm922.h: Likewise.
1888         * iconvdata/ibm930.h: Likewise.
1889         * iconvdata/ibm932.h: Likewise.
1890         * iconvdata/ibm933.h: Likewise.
1891         * iconvdata/ibm935.h: Likewise.
1892         * iconvdata/ibm937.h: Likewise.
1893         * iconvdata/ibm939.h: Likewise.
1894         * iconvdata/ibm943.h: Likewise.
1895         * iconvdata/ibm930.c: Pretty printing.
1896         * iconvdata/ibm937.c: Avoid access accross array boundary.
1898         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
1899         the current locale's codeset.
1900         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
1901         empty input string.
1902         * iconv/iconv_prog.c: Pass empty strings as default value for to-
1903         and from-charset.  Don't determine locale's charset here.
1905         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
1906         as the old _IO_flush_all but lock only if parameter is nonzero.
1907         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
1908         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
1909         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
1910         if libio is used [PR libc/2575].
1912 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
1914         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
1915         __signbitl): Only define for ISO C99.
1917 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
1919         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
1920         herrnop to NETDB_INTERNAL if we run out of buffer space.
1922 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
1924         * nss/nss_files/files-XXX.c (internal_getent): Correct input
1925         overflow test for platforms with signed char.
1926         Reported by Andrew Haley <aph@cambridge.redhat.com>.
1928 2001-11-28  Bruno Haible  <bruno@clisp.org>
1930         * locale/programs/simple-hash.c (lookup_2): Remove function.
1931         (insert_entry_2): Call lookup instead of lookup_2.
1933 2001-03-04  Bruno Haible  <bruno@clisp.org>
1935         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
1937 2001-10-31  Bruno Haible  <bruno@clisp.org>
1939         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
1941 2001-03-21  Bruno Haible  <bruno@clisp.org>
1943         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
1944         chokes on empty macro arguments.
1945         * intl/plural.y: Add #pragma for alloca on AIX 3.
1947 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
1949         * intl/dcigettext.c (guess_category_value): Only implement for
1950         glibc.  Otherwise rely on function _nl_locale_name which isn't
1951         present in the glibc sources.
1953 2001-09-24  Bruno Haible  <bruno@clisp.org>
1955         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
1956         transliteration when building on a glibc system but outside glibc.
1958 2001-09-22  Bruno Haible  <bruno@clisp.org>
1960         * intl/plural-eval.c: New file, extracted from dcigettext.c.
1961         * intl/dcigettext.c (plural_eval): Remove function, moved to
1962         intl/plural-eval.c.
1963         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
1964         Include plural-eval.c.
1966 2001-09-22  Bruno Haible  <bruno@clisp.org>
1968         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
1969         don't start with a digit; nplurals must be positive.
1971 2001-09-02  Bruno Haible  <bruno@clisp.org>
1973         * intl/plural-exp.h: New file, extracted from gettextP.h.
1974         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
1975         * intl/gettextP.h (struct expression, struct parse_args,
1976         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
1977         * intl/loadmsgcat.c: Include plural-exp.h.
1978         (PLURAL_PARSE): Move macro to plural-exp.h.
1979         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
1980         plural-exp.c.
1981         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
1982         EXTRACT_PLURAL_EXPRESSION.
1983         (_nl_unload_domain): Update.
1984         * intl/dcigettext.c: Include plural-exp.h.
1985         * intl/plural.y: Include plural-exp.h, not gettextP.h.
1986         (FREE_EXPRESSION): Move macro to plural-exp.h.
1987         * intl/Makefile (routines): Add plural-exp.
1988         (distribute): Add plural-exp.h.
1990 2001-07-28  Bruno Haible  <bruno@clisp.org>
1992         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
1993         isdigit, tolower argument to 'unsigned char'.
1994         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
1995         'unsigned char'.
1996         * intl/localealias.c (read_alias_file): Cast isspace argument to
1997         'unsigned char'.
1999 2001-10-20  Bruno Haible  <bruno@clisp.org>
2001         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
2002         anyway.)
2003         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
2004         with the variable 'index' in plural_lookup.
2005         * intl/l10nflist.c (strchr): Likewise.
2006         * intl/localealias.c (strchr): Likewise.
2008         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
2009         * intl/bindtextdom.c: Likewise.
2010         * intl/dcigettext.c: Likewise.
2011         * intl/dgettext.c: Likewise.
2012         * intl/dngettext.c: Likewise.
2013         * intl/explodename.c: Likewise.
2014         * intl/finddomain.c: Likewise.
2015         * intl/gettext.c: Likewise.
2016         * intl/l10nflist.c: Likewise.
2017         * intl/loadmsgcat.c: Likewise.
2018         * intl/localealias.c: Likewise.
2019         * intl/ngettext.c: Likewise.
2020         * intl/textdomain.c: Likewise.
2021         * intl/gettext.h: Assume <limits.h> exists.
2023 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
2025         * stdio-common/Makefile (tests): Add scanf11.
2026         * stdio-common/scanf11.c: New file.
2028 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
2030         * version.h (RELEASE): Define as development.
2031         (VERSION): Set to 2.2.90.
2033 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
2035         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
2036         * nis/nss_nis/nis-grp.c: Likewise.
2037         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2039         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
2040         * nis/nss_nis/nis-pwd.c: Likewise.
2041         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2043         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
2044         * nis/nss_nisplus/nisplus-parser.c: Likewise.
2045         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
2047         * nscd/grpcache.c: Use strtoul instead of atol.
2048         * nscd/pwdcache.c: Likewise.
2049         * nss/getent.c: Likewise.
2051 2001-11-27  Paul Eggert  <eggert@twinsun.com>
2053         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
2054         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
2056 2001-11-19  Bruno Haible  <bruno@clisp.org>
2058         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
2059         90%.
2060         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
2061         improves the quality of the hash function, especially for short
2062         strings.
2064 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
2066         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
2067         are found call conv_error and not input_error [PR libc/2669].
2069         * math/bits/mathcalls.h: Mark ceil and floor as const.
2070         Reported by David Mosberger.
2072 2001-11-21  Jim Meyering  <meyering@lucent.com>
2074         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
2075         Define to be __-prefixed.
2076         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
2078 2001-11-26  Andreas Jaeger  <aj@suse.de>
2080         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
2081         avoid warning.
2083 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
2085         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
2086         initialization.
2088         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
2089         unused variables.  Fix threshold for returning 1.0.
2091         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
2092         argument.
2094         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
2095         remove unused variables.
2097         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
2099         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
2100         include local math header files.
2102 2001-11-22  Andreas Jaeger  <aj@suse.de>
2104         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
2105         avoid warning.
2107 2001-11-21  Andreas Jaeger  <aj@suse.de>
2109         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
2111         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
2112         sys/debugreg.h
2114 2001-11-15  Andreas Jaeger  <aj@suse.de>
2116         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
2117         compilers that support it.
2119         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
2120         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
2121         * stdlib/stdlib.h: Likewise.
2123 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
2125         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
2126         statement with gotos.
2127         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
2129 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
2131         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
2133 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
2135         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
2137 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
2138             H.J. Lu  <hjl@gnu.org>
2140         * Versions.def (libc): Add GCC_3.0.
2141         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
2142         if gcc supports this flag.
2143         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
2144         (gcc3): Allow glibc to be compiled with gcc 3.x.
2145         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
2146         * config.make.in (static-libgcc, unwind-find-fde): Add.
2147         * Makerules (build-shlib-helper, build-module-helper): Use it.
2148         * scripts/versions.awk: Make sure GLIBC_ versions come first.
2149         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
2150         necessary.
2151         (_fini): Call __deregister_frame_info_bases if
2152         __register_frame_info_bases was used to register.
2153         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
2154         for GLIBC_2.0.
2155         (__register_frame_info_bases, __register_frame_info_table_bases,
2156         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
2157         * elf/Makefile (routines): Add unwind-dw2-fde.
2158         (shared-only-routines): Add unwind-dw2-fde.
2159         * sysdeps/alpha/gccframe.h: New file.
2160         * sysdeps/arm/gccframe.h: New file.
2161         * sysdeps/generic/framestate.c: New file.
2162         * sysdeps/generic/dwarf2.h: New file.
2163         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
2164         * sysdeps/generic/unwind-dw2-fde.c: New file.
2165         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
2166         * sysdeps/generic/unwind-dw2-fde.h: New file.
2167         * sysdeps/generic/unwind-dw2.c: New file.
2168         * sysdeps/generic/unwind-pe.h: New file.
2169         * sysdeps/generic/unwind.h: New file.
2170         * sysdeps/hppa/gccframe.h: New file.
2171         * sysdeps/i386/gccframe.h: New file.
2172         * sysdeps/m68k/gccframe.h: New file.
2173         * sysdeps/mips/gccframe.h: New file.
2174         * sysdeps/powerpc/gccframe.h: New file.
2175         * sysdeps/s390/gccframe.h: New file.
2176         * sysdeps/sh/gccframe.h: New file.
2177         * sysdeps/sparc/gccframe.h: New file.
2178         * sysdeps/vax/gccframe.h: New file.
2179         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
2180         Set on all architectures except ia64.
2181         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
2182         for i386.
2183         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
2184         __deregister_frame_info): Move to elf/Versions.
2185         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
2186         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2187         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2188         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
2189         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2190         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2191         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2192         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2193         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2194         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
2195         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
2196         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
2197         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2198         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
2199         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
2200         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
2201         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
2202         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
2204 2001-11-15  Jeff Law  <law@redhat.com>
2206         * posix/regex.c (uintptr_t): Do not provide a definition if the
2207         system provided one.
2209 2001-11-13  Roland McGrath  <roland@frob.com>
2211         * stdio-common/tmpfile.c: Moved to ...
2212         * sysdeps/generic/tmpfile.c: ... here.
2213         * sysdeps/mach/hurd/tmpfile.c: New file.
2215         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
2216         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
2217         (fopenport): Define as weak alias.
2219         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
2220         * libio/libioP.h: ... to here.
2222 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
2224         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
2225         program header twice.  Construct list with the needed information.
2227 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
2229         * po/ca.po: Update from translation team.
2231         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
2232         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
2233         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
2234         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
2236 2001-11-10  Andreas Jaeger  <aj@suse.de>
2238         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
2239         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2240         Contributed by Stephen L Moshier <moshier@mediaone.net>.
2242 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
2244         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
2245         correctly.
2246         * elf/dl-load.c (is_dst): New function.
2247         (_dl_dst_count): Use is_dst to check for DST variable.
2248         (_dl_dst_substitute): Likewise.
2250 2001-11-09  Roland McGrath  <roland@frob.com>
2252         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
2253         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
2254         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
2255         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
2256         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
2257         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
2258         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
2259         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
2260         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
2261         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
2262         * sysdeps/mach/hurd/powerpc/Dist: New file.
2264         * hurd/privports.c (__get_privileged_ports):
2265         Only contact the proc server if necessary for this call.
2266         Suggested by Neal H Walfield <neal@cs.uml.edu>.
2267         Check error return for mach_port_mod_refs.
2269 2001-11-09  Andreas Schwab  <schwab@suse.de>
2271         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
2273 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
2275         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
2276         object is always the last in the list.
2277         (_dl_map_object_from_fd): Delete code to remove from object list
2278         when DF_1_NOOPEN is seen.  This is done in lose.
2280 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
2282         * elf/dl-object.c (_dl_new_object): Various small optimizations.
2284 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
2286         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
2287         HWCAP_CHECK macro code.
2289         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
2290         Now returns MAP_FAILED on error.
2291         * elf/rtld.c: Adjust caller.
2292         * sysdeps/generic/dl-cache.c: Likewise.
2293         * sysdeps/generic/ldsodefs.h: Adjust description.
2295         * elf/dl-version.c (match_symbol): Optimize error handling for size.
2296         (_dl_check_map_versions): Likewise.
2298 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
2300         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
2301         _dl_signal_error directly, always use lose.  Set fd to -1 after
2302         file is closed.
2303         (lose): Don't call close if fd == -1.
2305 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
2307         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
2308          Also fix typo @code {mbsinit} to @code{mbsinit}.
2310 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
2312         * elf/dl-profile.c: Replace state variable with simple flag named
2313         running.  Remove commented-out code.
2315         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
2316         (_dl_init_paths): Likewise.
2317         (_dl_map_object_from_fd): Likewise.
2318         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
2320 2001-11-06  Roland McGrath  <roland@frob.com>
2322         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
2323         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
2325         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
2326         sysdeps/powerpc/elf/sysdep.h.
2327         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
2329 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
2331         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
2332         speed.
2333         (process_envvars): Some more optimizations.
2334         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
2336         * elf/elf.h: Add dynamic tag definitions for prelinking.
2338         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
2339         Rewrite code to remove environment varables for SUID binaries.
2340         Small optimization in LD_PROFILE handling.
2341         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
2342         changes.
2343         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
2345         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
2347         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
2348         strings.  Change type of second parameter.
2349         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
2350         for last change.
2352         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
2354 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
2356         * manual/string.texi: Fix typos.
2357         * manual/examples/argp-ex2.c: Likewise.
2359 2001-11-05  Roland McGrath  <roland@frob.com>
2361         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
2362         the more-specific unix/sysv/linux/powerpc file and breaks everything.
2363         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
2364         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
2365         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
2366         here, put under [__ELF__].
2368 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
2370         * manual/charset.texi: Extensive editing work.
2371         * manual/nss.texi: Likewise.
2372         Changes by Dennis Grace <dgrace@us.ibm.com>.
2374 2001-11-04  Roland McGrath  <roland@frob.com>
2376         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
2377         parameter to dir_mkfile.
2379 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
2381         * string/bits/string2.h (__strndup): If n is smaller than len, set
2382         len to n + 1.
2383         * string/tester.c (test_strndup): New function.
2384         (main): Call it.
2386 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
2388         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
2390         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
2391         * scripts/cpp: New file.
2393         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
2394         for rtld_search_dirs content.  Minor optimizations.
2396 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
2398         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
2399         avoiding unnecessary duplication.
2401 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
2403         * elf/dl-load.c (_dl_map_object): If library was found using
2404         LD_LIBRARY_PATH, don't try RUNPATH list.
2406 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2408         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
2409         Correct second argument of register_dump call.
2410         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
2411         Likewise.
2413 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
2415         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
2416         modules.
2417         * iconvdata/TESTS: Likewise.
2418         * iconvdata/gconv-modules: Likewise.
2419         * iconvdata/ibm1132.c: New file.
2420         * iconvdata/ibm1132.h: New file.
2421         * iconvdata/ibm1133.c: New file.
2422         * iconvdata/ibm1133.h: New file.
2423         * iconvdata/ibm1162.c: New file.
2424         * iconvdata/ibm1162.h: New file.
2425         * iconvdata/testdata/IBM1132: New file.
2426         * iconvdata/testdata/IBM1132..UTF8: New file.
2427         * iconvdata/testdata/IBM1133: New file.
2428         * iconvdata/testdata/IBM1133..UTF8: New file.
2429         * iconvdata/testdata/IBM1162: New file.
2430         * iconvdata/testdata/IBM1162..UTF8: New file.
2431         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
2433         * string/string.h: Fix typo in comment.
2434         * wcsmbs/wchar.h: Likewise.
2436 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
2438         * manual/getopt.texi (getopt_long, getopt_long_only): Include
2439         const in type of longopts parameter.
2441 2001-10-29  Andreas Jaeger  <aj@suse.de>
2443         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
2445 2001-10-29  Kevin Ryde  <user42@zip.com.au>
2447         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
2448         output, clarify `#' behaviour on 0.
2449         (Floating-Point Conversions): Clarify that %g only uses %e when
2450         the exponent would be greater than 1.
2452 2001-10-28  Roland McGrath  <roland@frob.com>
2454         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
2455         * sysdeps/mach/powerpc/machine-sp.h: New file.
2456         * sysdeps/mach/powerpc/sysdep.h: New file.
2457         * sysdeps/mach/powerpc/thread_state.h: New file.
2459         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
2460         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
2461         expect to need the same thing on every platform.
2463         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
2464         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
2466         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
2467         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
2468         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
2469         Move all these assembly-related definitions to ...
2470         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
2472         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
2473         by Peter Bruin <pjbruin@dds.nl>.
2475         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
2476         packing results for a `poll' call.
2478 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
2480         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
2481         correctly.
2482         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
2483         bracket expression.
2485         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
2486         nrules value.
2487         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
2489 2001-10-24  H.J. Lu  <hjl@gnu.org>
2491         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
2492         Use __BEGIN_DECLS/__END_DECLS around prototypes.
2493         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
2495 2001-10-21  Jim Meyering  <meyering@lucent.com>
2497         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
2498         this code would end up calling gettext even in packages built
2499         with --disable-nls.
2500         * posix/getopt.c (_): Likewise.
2501         * posix/regex.c (_): Likewise.
2503 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
2505         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
2506         lookup not ip6.int.
2507         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
2508         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
2510 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
2512         * misc/sys/cdefs.h (__attribute_used__): Define.
2513         * elf/rtld.c (_dl_start): Add __attribute_used__.
2514         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
2516 2001-10-25  Andreas Schwab  <schwab@suse.de>
2518         * stdlib/a64l.c: Expect least significant digit first.
2519         * stdlib/l64a.c: Produce least significant digit first.
2520         * stdlib/Makefile (tests): Add test-a64l.
2521         * stdlib/test-a64l.c: New file.
2522         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
2524 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
2526         * po/sk.po: Update from translation team.
2528 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
2530         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
2532 2001-10-18  Andreas Schwab  <schwab@suse.de>
2534         * math/libm-test.inc (print_ulps): Print ulp values rounded to
2535         next whole number.
2536         (print_function_ulps): Likewise.
2537         (print_complex_function_ulps): Likewise.
2538         (print_max_error): Likewise.
2539         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
2541 2001-10-16  Andreas Schwab  <schwab@suse.de>
2543         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
2544         implementation.
2546         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
2547         BSD_SETJMP or BSD__SETJMP is defined, resp.
2548         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
2549         a tail call to __sigsetjmp that would require extending the
2550         caller's frame.
2551         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
2552         * sysdeps/m68k/bsd-setjmp.S: Deleted.
2553         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
2554         Reported by Jes Sorensen <jes@trained-monkey.org>.
2556 2001-10-16  Andreas Jaeger  <aj@suse.de>
2558         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
2559         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
2560         close PR libc/2589.
2562 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
2564         * po/ca.po: New file.  Contributed by the translation team.
2566 2001-10-15  Ralf Baechle  <ralf@gnu.org>
2568         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
2569         a varargs prototype.  Remove dependency from kernel header files.
2571         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
2572         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
2574 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
2576         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
2577         to generate hexadecimal identifier.
2578         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
2580 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
2582         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
2584 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
2586         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
2587         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
2588         Contributed by Stephen L Moshier <moshier@mediaone.net>.
2590         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
2591         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2592         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
2593         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
2594         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
2595         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
2597         * timezone/africa: Update from tzdata2001d.
2598         * timezone/asia: Likewise.
2599         * timezone/australasia: Likewise.
2600         * timezone/backward: Likewise.
2601         * timezone/europe: Likewise.
2602         * timezone/leapseconds: Likewise.
2603         * timezone/northamerica: Likewise.
2604         * timezone/southamerica: Likewise.
2605         * timezone/zone.tab: Likewise.
2607 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2609         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
2610         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
2612 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
2614         * elf/elf.h (PT_TLS): New definition.
2616 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
2618         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
2619         bits/errno.h
2621 2001-10-07  Roland McGrath  <roland@frob.com>
2623         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
2625 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
2627         * elf/elf.h: Add more ELFOSABI_* constants.
2629 2001-10-04  Ben Collins  <bcollins@debian.org>
2631         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
2632         decleration of __need_wchar_t.
2634 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
2636         * string/bits/string2.h (__strsep_g): Add prototype.
2637         (__strsep): Use it.
2638         * string/Versions (__strsep): Remove.
2639         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
2641 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
2643         * manua/llio.texi: Clarify file references added by mmap.
2644         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
2646 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
2648         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
2649         Add sc_loadrs and sc_rbs_bas to match current kernel.
2651 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
2653         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
2655         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
2657 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
2659         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
2660         object has been bumped because of relocation dependency, avoid
2661         duplicates in l_scope.
2662         (show_scope): Fix typos.
2663         * elf/Makefile: Add rules to build and run reldep6.
2664         * elf/reldep6.c: New file.
2665         * elf/reldep6mod0.c: New file.
2666         * elf/reldep6mod1.c: New file.
2667         * elf/reldep6mod2.c: New file.
2668         * elf/reldep6mod3.c: New file.
2669         * elf/reldep6mod4.c: New file.
2671 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
2673         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
2674         sparc64_fixup_plt.
2675         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
2676         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
2677         for non-lazy binding. Fix .plt[32768+] handling.
2678         (elf_machine_plt_value): Don't add addend.
2679         (elf_machine_rela): Call sparc64_fixup_plt instead of
2680         elf_machine_fixup_plt.
2681         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
2682         dynamic linker at 0xfffff800XXXXXXXX.
2684         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
2686 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
2688         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
2690 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
2692         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
2693         declare __cmsg_data field if its size would be bigger than 0.
2694         (CMSG_DATA): Adjust accordingly.
2695         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
2696         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
2697         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
2698         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
2699         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2700         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
2701         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2703 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
2705         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
2706         * iconvdata/testdata/IBM1160: New file.
2707         * iconvdata/testdata/IBM1160..UTF8: New file.
2708         * iconvdata/testdata/IBM1161: New file.
2709         * iconvdata/testdata/IBM1161..UTF8: New file.
2710         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2712 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
2714         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
2715         UL_SETFSIZE computations better.
2717         * rt/Makefile: Remove use of filter for librt again.
2719         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
2720         UL_SETFSIZE computations better.
2722         * string/Versions: Export __strsep for GLIBC_2.2.5.
2723         * string/bits/string2.h: Define all __STRING_INLINE functions if
2724         _FORCE_INLINES is defined.
2725         Use int instead of char of parameter types.
2726         (__strsep): Don't use __strsep_g.  Don't define it.
2727         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
2728         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
2729         __strcpy_small.
2730         (__stpcpy_a_small): Renamed from __stpcpy_small.
2731         (__strcspn_c1): Don't define if _FORCE_INLINES.
2732         (__strspn_c1): Likewise.
2734 2001-09-22  Ben Collins  <bcollins@debian.org>
2736         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
2737         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
2738         * sysdeps/ia64/bits/sigaction.h: Likewise.
2739         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
2741 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
2743         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
2745 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
2747         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
2749 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
2751         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
2753 2001-09-20  H.J. Lu  <hjl@gnu.org>
2755         * include/dlfcn.h (__RTLD_SPROF): New definiton.
2756         * elf/dl-open.c (dl_open_worker): Return immediately after loading
2757         for __RTLD_SPROF.
2758         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
2759         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
2761 2001-09-20  H.J. Lu  <hjl@gnu.org>
2763         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
2764         don't add 1.
2766 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
2768         * nss/getent.c: Accept -s parameter to overwrite rules in
2769         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
2771         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
2772         with as many ".0" as necessary to form a complete address
2773         inet_network understands.
2775         * nss/getent.c: Various cleanups.  Use simpler and fewer function
2776         calls.
2778 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2780         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
2781         _JMPBUF_UNWINDS.
2782         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
2784 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
2786         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
2787         IBM1161.
2788         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
2789         * iconvdata/ibm1160.c: New file.
2790         * iconvdata/ibm1160.h: New file.
2791         * iconvdata/ibm1161.c: New file.
2792         * iconvdata/ibm1161.h: New file.
2793         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2795 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
2797         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
2798         difference between base address and first PT_LOAD's virtual address,
2799         not the base address.
2801 2001-09-11  Tom Rix  <trix@redhat.com>
2803         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
2804         ifdef for __getopt_clean_environment.
2805         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
2807 2001-09-22  Andreas Jaeger  <aj@suse.de>
2809         * elf/reldep4.c (main): Add proper prototype to fix warning.
2811         * elf/reldep5.c (main): Remove unused variable.
2813         * math/math_private.h: Add prototypes.
2815 2001-09-21  Andreas Jaeger  <aj@suse.de>
2817         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
2818         * sysdeps/x86_64/Dist: New file.
2819         * sysdeps/x86_64/soft-fp/Dist: New file.
2821         * sysdeps/gnu/Dist: Remove eval.c.
2823 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
2825         * malloc/memusage.c (realloc): Don't count already allocated
2826         memory in the sums.
2827         (me): Always use dlsym() to find the real implementations.
2829         * malloc/memusage.sh: Make -n option actually do something.
2831 2001-09-20  Andreas Jaeger  <aj@suse.de>
2833         * elf/elf.h (R_390_NUM): Correct value.
2835         * Versions.def: Add missing versions 2.2.3 for libthread_db and
2836         libpthread.
2838         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
2839         for x86-64, install x86-64 into */lib64.
2841         * shlib-versions: Add x86-64.
2843         * elf/elf.h: Add x86-64 relocations.
2845 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
2847         * po/fr.po: Update from translation team.
2849 2001-09-19  Andreas Jaeger  <aj@suse.de>
2851         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
2852         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
2853         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
2854         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
2855         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
2856         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
2857         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
2858         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
2859         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
2860         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
2861         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
2862         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
2863         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
2864         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
2865         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
2866         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
2867         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
2868         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
2869         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
2870         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
2871         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
2872         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
2873         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
2874         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
2875         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
2876         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
2877         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
2878         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
2879         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
2880         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
2881         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
2882         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
2883         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
2884         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
2885         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
2886         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
2887         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
2888         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
2889         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
2890         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
2891         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
2892         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
2893         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
2894         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
2895         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
2896         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
2897         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
2898         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
2899         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
2900         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
2901         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
2902         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
2903         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
2904         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
2905         * sysdeps/unix/x86_64/sysdep.S: New file.
2906         * sysdeps/unix/x86_64/sysdep.h: New file.
2907         * sysdeps/x86_64/Implies: New file.
2908         * sysdeps/x86_64/Makefile: New file.
2909         * sysdeps/x86_64/Versions: New file.
2910         * sysdeps/x86_64/__longjmp.S: New file.
2911         * sysdeps/x86_64/abort-instr.h: New file.
2912         * sysdeps/x86_64/atomicity.h: New file.
2913         * sysdeps/x86_64/bits/endian.h: New file.
2914         * sysdeps/x86_64/bits/setjmp.h: New file.
2915         * sysdeps/x86_64/bits/string.h: New file.
2916         * sysdeps/x86_64/bp-asm.h: New file.
2917         * sysdeps/x86_64/bsd-_setjmp.S: New file.
2918         * sysdeps/x86_64/bsd-setjmp.S: New file.
2919         * sysdeps/x86_64/dl-machine.h: New file.
2920         * sysdeps/x86_64/elf/initfini.c: New file.
2921         * sysdeps/x86_64/elf/start.S: New file.
2922         * sysdeps/x86_64/ffs.c: New file.
2923         * sysdeps/x86_64/ffsll.c: New file.
2924         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
2925         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
2926         * sysdeps/x86_64/fpu/e_acosl.c: New file.
2927         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
2928         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
2929         * sysdeps/x86_64/fpu/e_expl.c: New file.
2930         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
2931         * sysdeps/x86_64/fpu/e_log10l.S: New file.
2932         * sysdeps/x86_64/fpu/e_log2l.S: New file.
2933         * sysdeps/x86_64/fpu/e_logl.S: New file.
2934         * sysdeps/x86_64/fpu/e_powl.S: New file.
2935         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
2936         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
2937         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
2938         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
2939         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
2940         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
2941         * sysdeps/x86_64/fpu/fegetenv.c: New file.
2942         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
2943         * sysdeps/x86_64/fpu/fegetround.c: New file.
2944         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
2945         * sysdeps/x86_64/fpu/fesetenv.c: New file.
2946         * sysdeps/x86_64/fpu/fesetround.c: New file.
2947         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
2948         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
2949         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
2950         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
2951         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
2952         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
2953         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
2954         * sysdeps/x86_64/fpu/s_atanl.c: New file.
2955         * sysdeps/x86_64/fpu/s_cosl.S: New file.
2956         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
2957         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
2958         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
2959         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
2960         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
2961         * sysdeps/x86_64/fpu/s_logbl.c: New file.
2962         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
2963         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
2964         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
2965         * sysdeps/x86_64/fpu/s_rintl.c: New file.
2966         * sysdeps/x86_64/fpu/s_significandl.c: New file.
2967         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
2968         * sysdeps/x86_64/fpu/s_sinl.S: New file.
2969         * sysdeps/x86_64/fpu/s_tanl.S: New file.
2970         * sysdeps/x86_64/gmp-mparam.h: New file.
2971         * sysdeps/x86_64/hp-timing.c: New file.
2972         * sysdeps/x86_64/hp-timing.h: New file.
2973         * sysdeps/x86_64/htonl.S: New file.
2974         * sysdeps/x86_64/memusage.h: New file.
2975         * sysdeps/x86_64/setjmp.S: New file.
2976         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
2977         * sysdeps/x86_64/stackinfo.h: New file.
2978         * sysdeps/x86_64/sysdep.h: New file.
2979         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
2981         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
2982         L Moshier.
2984 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2986         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
2987         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
2989 2001-09-18  Andreas Schwab  <schwab@suse.de>
2991         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
2992         list, now that l_scope is a pointer.
2994         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
2995         scope list.
2997 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2999         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
3000         (elf_machine_rela_relative): Add a missing declaration.
3002 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
3004         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
3005         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
3006         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
3007         ldd-rewrite scripts.
3009 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
3011         * elf/ldd.bash.in: Update copyright message.
3013 2001-09-17  H.J. Lu  <hjl@gnu.org>
3015         * hurd/hurdmalloc.c (bcopy): Removed.
3016         (realloc): Replace bcopy with memcpy.
3017         * hurd/path-lookup.c (file_name_path_scan): Likewise.
3018         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
3019         * sunrpc/rpcinfo.c (pmapdump): Likewise.
3021         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
3022         (gethostbyaddr): Likewise.
3023         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
3025 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
3027         * sysdeps/gnu/eval.c: Removed.
3029 2001-09-18  Andreas Jaeger  <aj@suse.de>
3031         * sysdeps/i386/fpu/s_logbl.S: Move to ...
3032         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
3034         * sysdeps/i386/fpu/s_rintl.S: Move to ...
3035         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
3037         * sysdeps/i386/fpu/s_significandl.S: Move to ...
3038         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
3040 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
3042         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
3043         nrules value.
3045 2001-09-14  H.J. Lu  <hjl@gnu.org>
3047         * sysdeps/mips/fpu/libm-test-ulps: Updated.
3049 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
3051         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
3052         Patch by Florian La Roche <laroche@redhat.com>.
3054         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
3056         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
3057         ETHER_CRC_LEN.
3059 2001-09-14  Andreas Schwab  <schwab@suse.de>
3061         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
3062         Sumner <bls@sgi.com>.
3063         * posix/execlp.c: Likewise.
3065 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
3067         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
3068         is already found earlier in the search scope.
3070 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
3072         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
3073         filter.
3075 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
3077         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
3079 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
3081         * config.h.in: Enforce optimization to be used.
3082         * Makeconfig (preprocess-versions): Define ASSEMBLER.
3083         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
3084         * posix/Makefile (annexc-CFLAGS): Define to -O.
3085         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
3087 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
3089         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
3090         Patch by Stephan Kulow.
3092 2001-09-08  Ben Collins  <bcollins@debian.org>
3094         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
3095         usage of RESOLVE() (r_type, not reloc->r_type).
3097 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
3099         * elf/dl-object.c: Avoid allocating extra memory block for name.
3100         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
3101         allocated separately.
3102         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
3104 2001-09-08  H.J. Lu  <hjl@gnu.org>
3106         * po/zh_TW.po: Fix a typo.
3108 2001-09-07  Tom Rix  <trix@redhat.com>
3110         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
3112 2001-08-26  Tom Rix  <trix@redhat.com>
3114         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
3115         command line options.
3116         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
3117         * sysdeps/unix/sysv/aix/start.c: Removed.
3118         * sysdeps/unix/sysv/aix/start-libc.c: New file.
3119         * sysdeps/unix/sysv/aix/init-first.c: New file.
3120         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
3122 2001-09-08  Ben Collins  <bcollins@debian.org>
3124         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
3125         * sysdeps/generic/dl-machine.h: Likewise.
3126         * sysdeps/hppa/dl-fptr.c: Likewise.
3127         * sysdeps/ia64/dl-fptr.c: Likewise.
3128         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
3129         * sysdeps/mips/dl-machine.h: Likewise.
3130         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3131         * sysdeps/powerpc/dl-machine.c: Likewise.
3133 2001-09-07  Ben Collins  <bcollins@debian.org>
3135         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
3137         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
3139 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
3141         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
3142         dependencies if necessary.
3144         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
3145         loaded directly) determine length if l_initfini list by iterating
3146         over its elements.  Minor optimizations.
3147         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
3148         for dependency objects.
3149         If object was already loaded check whether any of the dependencies
3150         is already on the relocation dependency list.  If yes, remove the
3151         latter.  Minor optimizations.
3152         * elf/dl-lookup.c (add_dependency): Add check for self reference of
3153         maps here.  Search l_initfini list only if the object was loaded
3154         directly and not only as a dependency.
3155         (_dl_lookup_symbol): Add relocation dependency also if object
3156         is not in global scope.  Remove test for self-reference here.
3157         (_dl_lookup_versioned_symbol): Likewise.
3158         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
3159         element of first name record.
3160         * elf/loadtest.c: Add some more test to recognize early if an object
3161         wasn't unloaded.
3162         * elf/Makefile: Add rules to build and run reldep5.
3163         * elf/reldep5.c: New file.
3164         * elf/reldepmod5.c: New file.
3165         * elf/reldepmod6.c: New file.
3167         * elf/reldep2.c: Fix typo.
3169 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
3171         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
3172         elements.  Change l_scope to be a pointer only.
3173         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
3174         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
3175         here add searchlist of newly open file to the dependency's scope.
3176         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
3177         only searchlist from its scope.  Free own scope array if necessary.
3178         * elf/Makefile (tests): Add dblload and dblunload now.
3180 2001-09-06  Andreas Jaeger  <aj@suse.de>
3182         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
3183         Stephen L Moshier.
3185 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
3187         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
3188         they both fail.
3189         * elf/dblload.c: New file.
3190         * elf/dblloadmod1.c: New file.
3191         * elf/dblloadmod2.c: New file.
3192         * elf/dblloadmod3.c: New file.
3193         * elf/dblunload.c: New file.
3195 2001-09-04  Richard Henderson  <rth@redhat.com>
3197         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
3198         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
3200 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
3202         Correct very misleading message for error in failed runtime relocation.
3203         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
3204         place of the error.
3205         (_dl_signal_cerror): Likewise.
3206         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
3207         * elf/dl-close.c: Likewise.
3208         * elf/dl-deps.c: Likewise.
3209         * elf/dl-load.c: Likewise.
3210         * elf/dl-lookup.c: Likewise.
3211         * elf/dl-open.c: Likewise.
3212         * elf/dl-reloc.c: Likewise.
3213         * elf/dl-sym.c: Likewise.
3214         * elf/dl-version.c: Likewise.
3215         * sysdeps/generic/dl-sysdep.c: Likewise.
3217 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
3219         * iconv/strtab.c (strtabinit): Initialize null Strent.
3220         (newstring): Move len == 0 handling...
3221         (strtabadd): ...here.
3222         If len == 1, return null Strent.
3223         When inserting a suffix of an existing string, check if
3224         it is not equal to some suffix already recorded.
3225         Copy left and right members over if adding longer string.
3227 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
3229         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
3231         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
3232         (__syscall_gethostname): Add prototype.
3234 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
3236         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
3238 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
3240         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
3242 2001-08-27  Roland McGrath  <roland@frob.com>
3244         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
3245         short, copy that much into NAME anyway before returning error.
3247 2001-09-01  Richard Henderson  <rth@redhat.com>
3249         * sysdeps/alpha/elf/Dist: Remove file.
3250         * sysdeps/alpha/elf/Makefile: Remove file.
3251         * sysdeps/alpha/elf/crtbegin.S: Remove file.
3252         * sysdeps/alpha/elf/crtend.S: Remove file.
3253         * sysdeps/alpha/elf/initfini.c: New file.
3255 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
3257         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
3258         * iconv/tst-iconv3.c: Likewise.
3260 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
3262         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
3264 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
3266         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
3267         export it.
3268         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
3269         * iconv/iconv_prog.c (insert_cache): New function.
3270         (print_known_names): If cache is used call insert_cache to use the
3271         information from the cache [PR libc/2509].
3273 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
3275         * time/strptime.c (strptime_internal): Recognize 'l' format and
3276         handle it like 'I' for symmetry with strftime.
3278 2001-08-31  Richard Henderson  <rth@redhat.com>
3280         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
3281         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
3282         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
3283         (print_statistics): Make scalar unsigned long long.
3284         * sysdeps/alpha/hp-timing.h: New file.
3286 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
3288         * stdio-common/perror.c (perror): Save errno early, pass it
3289         down to perror_internal.
3290         (perror_internal): Add errnum argument.
3292 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
3294         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
3295         Don't add old memory content for R_ALPHA_REFQUAD.
3297 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
3299         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
3300         memory correctly.
3302         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
3303         instead of open, __close instead of close, __getpagesize instead
3304         of getpagesize.
3306         * string/argz-stringify.c (__argz_stringify): Use __strnlen
3307         instead of strnlen.
3308         * include/string.h (strndupa): Redefine here to use __strnlen
3309         instead of strnlen.
3310         * string/strndup.c (__strndup): Use __strnlen not strnlen.
3312         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
3313         connected).
3315 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
3317         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
3318         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
3319         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
3320         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
3321         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
3322         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
3323         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
3325 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
3327         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
3329 2001-08-30  Andreas Jaeger  <aj@suse.de>
3331         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
3332         contributed Stephen L Moshier.
3334 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
3336         * sunrpc/etc.rpc (sgi_fam): Add.
3338 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
3340         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
3342 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
3344         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
3345         first is from a previous call.
3346         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
3348 2001-08-29  Andreas Schwab  <schwab@suse.de>
3350         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
3352 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3354         * config.make.in (INSTALL_SCRIPT): Define.
3355         * Makeconfig (INSTALL_SCRIPT): Define.
3356         * Makerules (do-install-script): New macro to install scripts using
3357         INSTALL_SCRIPT.
3358         (install-bin-script): New rule to install scripts with
3359         do-install-script.
3360         (install-bin-script-nosubdir): New rule.
3361         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
3362         (distinfo-vars): Add $(install-bin-script).
3363         * Rules (others): Likewise.
3364         * Makefile (glibcbug): Install with install-bin-script.
3365         * debug/Makefile (xtrace): Likewise.
3366         (catchsegv): Likewise.
3367         * elf/Makefile (ldd): Likewise.
3368         * malloc/Makefile (mtrace): Likewise.
3369         * timezone/Makefile (tzselect): Likewise.
3371 2001-08-29  H.J. Lu  <hjl@gnu.org>
3373         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
3374         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
3375         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
3377 2001-08-29  Andreas Schwab  <schwab@suse.de>
3379         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
3381 2001-08-28  H.J. Lu  <hjl@gnu.org>
3383         * Makeconfig (combreloc-LDFLAGS): New variable.
3384         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
3385         * config.make.in (have-z-combreloc): New variable.
3386         * configure.in: Substitute libc_cv_z_combreloc.
3388 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
3390         * po/sv.po: Update from translation team.
3391         * po/fr.po: Likewise.
3392         * po/da.po: Likewise.
3394 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3396         * Makerules: Fix a typo: MD% -> MD5.
3398 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
3400         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
3401         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
3403 2001-08-28  Andreas Jaeger  <aj@suse.de>
3405         * manual/libc-texinfo.sh: Add entry about free manuals.
3407         * manual/contrib.texi (Contributors): Fix cross reference.
3409         * manual/libc.texinfo (Copying): Include freemanuals.
3411         * manual/Makefile (appendices): Add freemanuals.
3413         * manual/freemanuals.texi: New file.
3414         Patch by Brian Youmans <3diff@gnu.org>.
3416         * manual/libm-err-tab.pl: Pretty print more platforms, print a
3417         smaller table.
3419         * manual/math.texi (Errors in Math Functions): Fix grammar, start
3420         table on separate page.
3421         Patch by Brian Youmans <3diff@gnu.org>.
3423 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
3425         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
3426         the connection went down after we first used it try to connect
3427         again and resend the message before printing to the console.
3428         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
3430 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
3432         * string/tst-strlen.c (main): Test strnlen (, -1) too.
3433         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
3434         bit set.
3436 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
3438         * iconv/strtab.c (searchstring): Use correct length for comparison.
3439         (strtabadd): Account total size correct if new string has old string as
3440         substring.
3442 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
3444         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
3446 2001-08-27  Andreas Jaeger  <aj@suse.de>
3448         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
3450         * math/libm-test.inc (j0_test): Add extra tests.
3451         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
3452         not x, in Hankel approximation.
3453         Patches by Stephen L Moshier.
3455 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3457         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
3458         link_map.
3460         * configure.in: Fix test for .rela.dyn section.
3462         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
3464 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
3466         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
3467         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
3468         Pass type_class to _dl_lookup_*.
3469         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
3470         Pass around just type_class instead of noexec, noplt pair.
3471         (_dl_lookup_versioned_symbol): Likewise.
3472         (_dl_lookup_symbol_skip): Pass around just type_class instead of
3473         noexec, noplt pair.
3474         (_dl_lookup_versioned_symbol_skip): Likewise.
3475         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
3476         * elf/do-lookup.h (do_lookup): Likewise.
3477         * include/link.h (struct link_map): Replace noexec and noplt fields
3478         in l_lookup_cache with type_class field.
3479         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
3480         ELF_RTYPE_CLASS_COPY): Define.
3481         Adjust prototypes for _dl_lookup_symbol and
3482         _dl_lookup_versioned_symbol.
3483         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
3484         elf_machine_lookup_noexec_p): Remove.
3485         (elf_machine_type_class): Define.
3486         * sysdeps/arm/dl-machine.h: Likewise.
3487         * sysdeps/hppa/dl-machine.h: Likewise.
3488         * sysdeps/cris/dl-machine.h: Likewise.
3489         * sysdeps/i386/dl-machine.h: Likewise.
3490         * sysdeps/ia64/dl-machine.h: Likewise.
3491         * sysdeps/m68k/dl-machine.h: Likewise.
3492         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3493         * sysdeps/mips/dl-machine.h: Likewise.
3494         * sysdeps/powerpc/dl-machine.h: Likewise.
3495         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3496         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3497         * sysdeps/sh/dl-machine.h: Likewise.
3498         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3499         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3501 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3503         * manual/message.texi (Advanced gettext functions): Change
3504         description of plural forms for Slovak.
3505         Reported by Marcel Telka <marcel@telka.sk>.
3507         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
3508         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
3510 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
3512         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
3513         typo.  Patch by Florian La Roche <laroche@redhat.com>.
3515 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3517         * include/link.h (struct link_map): Add l_lookup_cache element.
3518         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
3519         (RESOLVE_MAP): Likewise.
3520         (_dl_relocate_object): Remove cache initialization.
3521         * elf/dl-lookup.c: Rip out cache handling code.
3522         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
3523         declarations.
3525         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
3526         remove some __builtin_expect.
3527         (_dl_lookup_versioned_symbol): Likewise.
3529         * config.h.in: Add HAVE_Z_COMBRELOC.
3530         * configure.in: Add test for -z combreloc.
3532         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
3533         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
3534         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
3535         case to almost no code.
3537 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
3539         * po/tr.po: Update from translation team.
3541 2001-08-24  Andreas Jaeger  <aj@suse.de>
3543         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
3544         make clean works.
3546 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3548         * elf/rtld.c (print_statistics): Printf % after percent values.
3549         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
3551         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
3552         don't have to compute the hash value and initialize current_value.
3553         Move reference_name variable to where it is needed.
3554         (_dl_lookup_versioned_symbol): Likewise.
3556 2001-08-24  Roland McGrath  <roland@frob.com>
3558         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
3559         Just test that strerror returns non-null for a few errno codes.
3561 2001-08-23  Roland McGrath  <roland@frob.com>
3563         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
3564         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
3566         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
3568         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
3569         __mach_reply_port.
3571 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3573         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
3574         returns NULL.
3576         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
3577         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
3578         doesn't do it.
3579         * elf/rtld.c: Include <sys/param.h>.
3580         * elf/dl-reloc.c: Likewise.
3582 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3584         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
3585         empty to prevent junk from being generated.
3586         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
3588 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
3590         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
3591         records.  Rename endrel to relative, initialize it to r, and use it
3592         in elf_machine_rel_relative calls.  Point r after relative relocs.
3594 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3596         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
3597         of R_386_NONE.
3599 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
3601         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
3602         necessary.  Undefine newly defined macros at the end.
3603         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
3604         Rename from elf_machine_rel_relative.
3605         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
3606         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
3607         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
3608         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
3609         Likewise.
3610         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
3611         Likewise.
3612         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
3613         Fix argument types.
3614         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
3615         Fix argument types.
3616         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
3617         Likewise.  Fix argument types.
3618         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
3619         Likewise.  Fix argument types.
3620         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
3621         Fix argument types.
3622         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
3623         ElfW(Rel) in argument.
3624         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
3625         function.
3627 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
3629         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
3631 2001-08-24  Andreas Jaeger  <aj@suse.de>
3633         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
3634         Stephen L Moshier <moshier@mediaone.net>.
3636 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3638         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
3639         first if RELCOUNT is set.
3641         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
3642         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
3643         elf_machine_rel_relative.
3644         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
3645         Minor optimizations.
3646         * sysdeps/arm/dl-machine.h: Likewise.
3647         * sysdeps/cris/dl-machine.h: Likewise.
3648         * sysdeps/hppa/dl-machine.h: Likewise.
3649         * sysdeps/i386/dl-machine.h: Likewise.
3650         * sysdeps/ia64/dl-machine.h: Likewise.
3651         * sysdeps/m68k/dl-machine.h: Likewise.
3652         * sysdeps/mips/dl-machine.h: Likewise.
3653         * sysdeps/powerpc/dl-machine.h: Likewise.
3654         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3655         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3656         * sysdeps/sh/dl-machine.h: Likewise.
3657         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3658         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3660 2001-08-23  Roland McGrath  <roland@frob.com>
3662         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
3664         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
3665         sysdeps/mach version.  Implement counting ("recursive") mutexes
3666         on top of cthreads mutexes.
3667         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
3669         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
3670         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
3671         (__libc_cleanup_region_start, __libc_cleanup_region_end,
3672         __libc_clean_end): Define these to call the cleanup function after
3673         normal exit when they're supposed to.
3675         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
3676         Take new first arg DOIT, a boolean saying whether to really install
3677         any cleanup handler.
3678         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
3679         (__libc_cleanup_end): Likewise.
3680         * sysdeps/generic/bits/libc-lock.h: Same changes.
3681         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
3682         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
3683         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
3684         Likewise.
3685         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
3686         * sysdeps/generic/bits/stdio-lock.h
3687         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
3689 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3691         * elf/ldconfig.c (search_dir): Remove stale symlinks.
3693 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3695         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
3696         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
3697         lookups in cache.
3698         (_dl_lookup_versioned_symbol): Likewise.
3699         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
3700         relocation lookup.
3701         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
3702         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
3703         (lookup_cache, lookup_cache_versioned): Add declarations.
3705 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
3707         * stdlib/tst-random.c (main): Swap parameters in fail call.
3708         Patch by Pete Bevin <pete@petebevin.com>.
3710 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3712         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
3714 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
3716         * malloc/obstack.c: Indent preprocessor directives.
3717         Patch by Jim Meyering <meyering@ascend.com>.
3719         * po/ja.po: Update from translation team.
3721 2001-08-23  Roland McGrath  <roland@frob.com>
3723         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
3725         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
3726         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
3728 2001-08-22  Roland McGrath  <roland@frob.com>
3730         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
3731         __libc_lock_define_recursive.
3732         * elf/dl-open.c: Don't declare it here any more.
3733         * elf/dl-close.c: Likewise.
3734         * elf/dl-lookup.c: Likewise.
3735         * elf/dl-iteratephdr.c: Likewise.
3736         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
3737         __libc_lock_unlock_recursive.
3738         * elf/dl-close.c (_dl_close): Likewise
3739         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
3740         * elf/dl-open.c (_dl_open): Likewise
3742         * sysdeps/generic/bits/libc-lock.h
3743         (__libc_lock_define_recursive): New macro.
3744         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
3745         (_IO_lock_lock): Use __libc_lock_lock_recursive.
3746         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
3748         * conform/conformtest.pl (checknamespace): Sort the output list.
3750         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
3751         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
3752         definitions conditional on [__USE_XOPEN].
3754         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
3755         these unconditionally, not only use [__USE_BSD], so as to match
3756         the sysdeps/unix/sysv/linux files.
3758 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3760         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
3761         avoid warnings.
3763         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
3764         DL_LOOKUP_ADDRESS.
3766 2001-08-22  Roland McGrath  <roland@frob.com>
3768         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
3769         conditionalization of sa_handler/sa_sigaction member types to
3770         match the sysdeps/unix/sysv/linux file.
3772 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3774         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
3775         symbol sizes a bit better.
3777         * sysdeps/ia64/strncpy.S: Complete rewrite.
3778         Contributed by Jakub Jelinek <jakub@redhat.com>.
3780         * string/stratcliff.c (main): Add strncpy test.
3782 2001-08-22  Roland McGrath  <roland@frob.com>
3784         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
3785         and don't declare unsetenv or _environ directly.
3786         (unsetenv): Return int, not void.  Use __environ instead of _environ.
3788 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
3790         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
3791         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
3792         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
3793         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
3794         test for cmsg struct size.
3796 2001-04-23  Paul Eggert  <eggert@twinsun.com>
3798         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
3799         Rename __argc to ___argc in prototypes to avoid compatibility
3800         problems with systems that reserve the identifier "__argc".
3801         Similarly for __argv.
3803 2001-08-21  Roland McGrath  <roland@frob.com>
3805         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
3807         * mach/Makefile (tests): Removed.
3808         * mach/hello.c: File removed.
3810 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3812         * po/sv.po: Update from translation team.
3814         * stdio-common/vfscanf.c: Fix handling of %l[].
3815         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
3817         * libio/Makefile (tests): Add tst-sscanf.
3818         * libio/tst-sscanf.c: New file.
3820         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
3821         * malloc/mtrace.c (tr_where): dli_sname always points to a
3822         non-empty string if != NULL.
3823         Reported by Tim Janik <timj@gtk.org>.
3825 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
3827         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
3828         buf.  Free resources on failure.
3829         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
3830         (makefd_xprt): Likewise.
3831         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
3832         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
3833         * sunrpc/auth_unix.c (authunix_create): Likewise.
3835 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
3837         * string/strnlen.c: Remove.
3838         * sysdeps/generic/strnlen.c: New file.
3839         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
3841 2001-08-21  Roland McGrath  <roland@frob.com>
3843         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
3844         as a macro, not an extern inline function.
3846         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
3847         * Versions.def (libc): Add GLIBC_2.2.5 set.
3848         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
3849         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
3851 2001-08-20  Roland McGrath  <roland@frob.com>
3853         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
3854         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
3856 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
3858         * string/bits/string2.h: Remove strnlen optimization here.
3859         * sysdeps/i386/i486/bits/string.h: Add it here.
3861 2001-08-21  Wolfram Gloger  <wg@malloc.de>
3863         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
3865 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
3867         * po/gl.po: Update from translation team.
3869 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3871         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
3872         * misc/err.c (convert_and_print): Likewise.
3874         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
3875         function calls.
3877 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3879         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
3880         change of the gregset_t type.
3881         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3883 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
3885         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
3887 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3889         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
3891         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
3893 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
3895         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
3896         before calling the cthreads initialization code.
3898 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3900         * argp/argp-help.c: Fix two problems introduced in last change.
3902         * include/dirent.h: Include <dirstream.h> first.
3904 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
3906         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
3908         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
3909         * sunrpc/xdr_rec.c: Likewise.
3910         * sunrpc/xdr_mem.c: Likewise.
3911         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
3912         * sunrpc/rpc_cmsg.c: Likewise.
3913         * sunrpc/getrpcport.c (getrpcport): Likewise.
3914         * sunrpc/clnt_simp.c (callrpc): Likewise.
3915         * sunrpc/clnt_gen.c (clnt_create): Likewise.
3916         * string/envz.c: Likewise.
3918         * po/ko.po: Update from translation team.
3920         * argp/argp-help.c: Handle wide oriented stderr stream.
3922 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
3924         * sysdeps/generic/strtol.c: Little optimizations.  Add some
3925         __builtin_expect.
3927         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
3929         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
3930         * wcsmbs/wcwidth.c (wcwdith): Likewise.
3931         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
3933         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
3935         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
3937         * time/time.h (struct timespec): Use __time_t for tv_sec element.
3939         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
3940         wchar_t for function declarations and defintions.
3942         * misc/sys/select.h: Define __need_time_t before including <time.h>.
3943         Define suseconds_t if it hasn't happened yet.
3945         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
3947         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
3949         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
3950         <stddef.h>.
3952         * conform/data/stddef.h-data: Remove wint_t.
3954         * conform/conformtest.pl: Change namespace test to take #undef
3955         lines into account.
3957         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
3959         * conform/data/sys/socket.h-data: Add sockatmark.
3961 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3963         * io/fts.c: Update from recent BSD source.
3965 2001-08-17  Roland McGrath  <roland@frob.com>
3967         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
3968         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
3969         Likewise.
3971 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3973         * locale/duplocale.c (__duplocale): Also initialize the special
3974         __ctype_* elements.
3976         * conform/data/netdb.h-data: Adjust gai_strerror return type.
3978 2001-08-17  Andreas Jaeger  <aj@suse.de>
3980         * misc/getpass.c: Include wchar.h for prototypes.
3981         * malloc/obstack.c: Likewise.
3983 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3985         * sunrpc/svc_simple.c (universal): Use __write instead of write.
3987         * wcsmbs/wcscoll.c: Also define __wcscoll.
3988         * include/wchar.h: Declare __wcscoll.
3990         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
3991         * libio/vwprintf.c: Likewise.
3992         * libio/wprintf.c: Likewise.
3994         * iconv/gconv_cache.c: Use __munmap instead of munmap.
3996 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
3998         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
3999         instead of mbrtowc.
4000         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
4001         wcslen, and __wcscoll instead of wcscoll.
4003         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
4005         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
4006         __getuid instead of getuid.
4008         * stdio-common/perror.c (perror): Use __close instead of close.
4009         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
4010         * libio/freopen.c (freopen): Likewise.
4011         * libio/freopen64.c (freopen64): Likewise.
4013         * libio/tst-ungetwc2.c (main): Define str const.
4015         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
4016         * libio/fwprintf.c: Also define __fwprintf.
4017         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
4018         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
4019         * assert/assert-perr.c: Likewise.
4020         * assert/assert.c: Likewise.
4021         * gmon/gmon.c: Likewise.
4022         * inet/rcmd.c: Likewise.
4023         * malloc/obstack.c: Likewise.
4024         * misc/err.c: Likewise.
4025         * misc/error.c: Likewise.
4026         * misc/getpass.c: Likewise.
4027         * posix/getopt.c: Likewise.
4028         * resolv/res_hconf.c: Likewise.
4029         * stdio-common/perror.c: Likewise.
4030         * stdio-common/psignal.c: Likewise.
4031         * stdlib/fmtmsg.c: Likewise.
4032         * sunrpc/auth_unix.c: Likewise.
4033         * sunrpc/clnt_perr.c: Likewise.
4034         * sunrpc/clnt_tcp.c: Likewise.
4035         * sunrpc/clnt_udp.c: Likewise.
4036         * sunrpc/clnt_unix.c: Likewise.
4037         * sunrpc/svc_simple.c: Likewise.
4038         * sunrpc/svc_tcp.c: Likewise.
4039         * sunrpc/svc_udp.c: Likewise.
4040         * sunrpc/svc_unix.c: Likewise.
4041         * sunrpc/xdr.c: Likewise.
4042         * sunrpc/xdr_array.c: Likewise.
4043         * sunrpc/xdr_rec.c: Likewise.
4044         * sunrpc/xdr_ref.c: Likewise.
4045         * sysdeps/generic/wordexp.c: Likewise.
4047         * po/it.po: Update from translation team.
4049         * misc/err.c: Handle wide oriented stderr stream.
4051 2001-08-14  Tom Rix  <trix@redhat.com>
4053         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
4054         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
4056 2001-08-13  Tom Rix  <trix@redhat.com>
4058         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
4059         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
4060         and __intptr_t.
4062 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4064         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
4065         Store the access registers to the ucontext structure.
4066         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
4067         Likewise.
4069         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
4070         Load the access registers from the ucontext structure.
4071         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
4072         Likewise.
4074         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
4075         offsets to the new ucontext layout.
4076         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
4078         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
4079         of the ucontext structure.
4080         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
4082 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
4084         * misc/error.c (error): Handle wide oriented stderr stream correctly.
4085         (error_at_line): Likewise.
4087         * stdio-common/perror.c (perror): Implement according to standard.
4088         The stream orientation must not be changed if the stream was not
4089         oriented before the call.
4090         * stdio-common/Makefile (tests): Add tst-perror.
4091         * stdio-common/tst-perror.c: New file.
4094 See ChangeLog.12 for earlier changes.